:root {
      --blue: #1769e0;
      --blue-dark: #0d428f;
      --cyan: #dff6ff;
      --ink: #102033;
      --muted: #5f7188;
      --line: #d9e6f5;
      --paper: #f7fbff;
      --white: #ffffff;
      --green: #15a06a;
      --amber: #fff1c9;
      --shadow: 0 24px 70px rgba(16, 32, 51, .14);
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background: var(--paper);
      line-height: 1.58;
    }

    img { display: block; max-width: 100%; }

    a { color: inherit; text-decoration: none; }

    .container {
      width: min(1120px, calc(100vw - 40px));
      margin: 0 auto;
    }

    .topbar {
      position: fixed;
      z-index: 10;
      inset: 0 0 auto;
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 14px clamp(20px, 5vw, 76px);
      color: var(--white);
      background: linear-gradient(180deg, rgba(7, 20, 36, .72), rgba(7, 20, 36, .08));
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 11px;
      font-weight: 900;
    }

    .brand img {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      box-shadow: 0 12px 28px rgba(0,0,0,.2);
    }

    .nav {
      display: flex;
      align-items: center;
      gap: clamp(12px, 3vw, 26px);
      color: rgba(255,255,255,.88);
      font-weight: 750;
      font-size: .93rem;
    }

    .hero {
      position: relative;
      min-height: 92vh;
      display: grid;
      align-items: end;
      padding: 116px 0 58px;
      color: var(--white);
      overflow: hidden;
      background:
        linear-gradient(90deg, rgba(6, 20, 36, .94) 0%, rgba(6, 20, 36, .78) 43%, rgba(6, 20, 36, .18) 100%),
        url("images/surveydxf/feature.jpg") center / cover no-repeat;
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: auto 0 0;
      height: 24vh;
      background: linear-gradient(180deg, transparent, var(--paper));
      pointer-events: none;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      width: min(760px, 100%);
      padding-bottom: 8vh;
    }

    .kicker {
      margin: 0 0 16px;
      color: #cce6ff;
      font-size: .86rem;
      font-weight: 900;
      text-transform: uppercase;
    }

    h1,
    h2,
    h3 {
      margin: 0;
      line-height: 1.04;
      letter-spacing: 0;
    }

    h1 {
      font-size: clamp(3.1rem, 9vw, 7.1rem);
      max-width: 8ch;
    }

    .hero p {
      max-width: 660px;
      margin: 22px 0 0;
      color: rgba(255,255,255,.9);
      font-size: clamp(1.05rem, 2vw, 1.35rem);
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
      margin-top: 30px;
    }

    .button {
      min-height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 12px 18px;
      border: 1px solid transparent;
      border-radius: 8px;
      font-weight: 900;
      transition: transform 160ms ease, box-shadow 160ms ease;
    }

    .button:hover {
      transform: translateY(-2px);
    }

    .primary {
      color: var(--white);
      background: var(--blue);
      box-shadow: 0 16px 34px rgba(23,105,224,.28);
    }

    .secondary {
      color: var(--ink);
      background: var(--white);
      border-color: var(--line);
    }

    .ghost {
      color: var(--white);
      background: rgba(255,255,255,.14);
      border-color: rgba(255,255,255,.34);
      backdrop-filter: blur(10px);
    }

    .metrics {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1px;
      width: min(1080px, calc(100vw - 40px));
      margin: -72px auto 0;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--line);
      box-shadow: var(--shadow);
    }

    .metric {
      min-height: 118px;
      padding: 24px;
      background: var(--white);
    }

    .metric strong {
      display: block;
      color: var(--blue);
      font-size: clamp(1.45rem, 3vw, 2.35rem);
      line-height: 1;
    }

    .metric span {
      display: block;
      margin-top: 8px;
      color: var(--muted);
      font-weight: 700;
    }

    section {
      padding: clamp(58px, 9vw, 108px) 0;
    }

    .section-head {
      max-width: 780px;
      margin-bottom: 34px;
    }

    h2 {
      font-size: clamp(2rem, 4.6vw, 4rem);
    }

    .section-head p {
      margin: 17px 0 0;
      color: var(--muted);
      font-size: 1.06rem;
    }

    .feature-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }

    .feature {
      min-height: 234px;
      padding: 24px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    .feature:nth-child(2) { background: var(--cyan); }
    .feature:nth-child(3) { background: var(--amber); }

    .feature .label {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: var(--white);
      background: var(--blue);
      font-weight: 950;
    }

    .feature h3 {
      margin-top: 26px;
      font-size: 1.28rem;
    }

    .feature p {
      margin: 10px 0 0;
      color: var(--muted);
    }

    .showcase {
      color: var(--white);
      background: #0d2239;
      overflow: hidden;
    }

    .showcase .section-head p { color: rgba(255,255,255,.74); }

    .screen-grid {
      display: grid;
      grid-template-columns: .95fr 1.05fr;
      gap: clamp(20px, 4vw, 48px);
      align-items: center;
    }

    .product-media {
      display: grid;
      justify-items: center;
      gap: 22px;
    }

    .phone-shell {
      width: min(100%, 330px);
      border-radius: 42px;
      padding: 12px;
      background: #111827;
      box-shadow: 0 30px 80px rgba(16, 32, 51, .24);
    }

    .phone-shell::before {
      content: none;
    }

    .phone-screen {
      overflow: hidden;
      aspect-ratio: 9 / 19.5;
      border-radius: 32px;
      background: #111827;
    }

    .carousel-viewport {
      width: 100%;
      height: 100%;
      overflow: hidden;
      outline: none;
      touch-action: pan-y;
    }

    .carousel-viewport:focus-visible {
      box-shadow: inset 0 0 0 3px #72b8ff;
    }

    .carousel-track {
      display: flex;
      height: 100%;
      transform: translateX(0);
      transition: transform 320ms ease;
    }

    .carousel-track.is-dragging {
      transition: none;
    }

    .carousel-slide {
      min-width: 100%;
      height: 100%;
      background: #111827;
    }

    .carousel-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
    }

    .carousel-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
    }

    .icon-button {
      display: grid;
      width: 44px;
      height: 44px;
      place-items: center;
      border: 1px solid rgba(255,255,255,.2);
      border-radius: 50%;
      background: rgba(255,255,255,.08);
      color: var(--white);
      cursor: pointer;
      font: inherit;
      font-size: 1.8rem;
      line-height: 1;
      transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
    }

    .icon-button:hover {
      border-color: rgba(255,255,255,.48);
      background: rgba(255,255,255,.14);
      transform: translateY(-1px);
    }

    .carousel-dots {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 88px;
      gap: 8px;
    }

    .carousel-dot {
      width: 8px;
      height: 8px;
      border: 0;
      border-radius: 50%;
      background: rgba(255,255,255,.34);
      cursor: pointer;
      padding: 0;
      transition: width 180ms ease, background 180ms ease;
    }

    .carousel-dot.is-active {
      width: 22px;
      border-radius: 999px;
      background: var(--white);
    }

    .detail-list {
      display: grid;
      gap: 12px;
    }

    .detail {
      padding: 18px;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 8px;
      background: rgba(255,255,255,.06);
    }

    .detail h3 {
      font-size: 1.05rem;
    }

    .detail p {
      margin: 6px 0 0;
      color: rgba(255,255,255,.73);
    }

    .downloads {
      background: linear-gradient(180deg, var(--paper), #edf6ff);
    }

    .download-list {
      display: grid;
      gap: 12px;
      padding: 0;
      margin: 0;
      list-style: none;
    }

    .download-list li {
      display: grid;
      grid-template-columns: minmax(260px, 1fr) 110px 128px;
      align-items: center;
      gap: 18px;
      padding: 16px 18px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    .download-name {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
      font-weight: 850;
    }

    .download-name span:last-child {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .badge {
      flex: 0 0 auto;
      padding: 3px 9px;
      border-radius: 6px;
      color: var(--blue);
      background: #e5f0ff;
      font-size: .75rem;
      font-weight: 900;
      text-transform: uppercase;
    }

    .download-meta {
      color: var(--muted);
      font-size: .9rem;
      white-space: nowrap;
      text-align: right;
    }

    .download-count {
      color: var(--muted);
      font-size: .86rem;
      white-space: nowrap;
      text-align: right;
    }
    .dev-mode .download-list li {
      grid-template-columns: minmax(260px, 1fr) 110px 150px 128px;
    }

    .download-list .button {
      width: 128px;
      justify-self: end;
    }

    .split {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .panel {
      padding: clamp(24px, 4vw, 38px);
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    .panel h3 {
      font-size: clamp(1.35rem, 2.4vw, 2rem);
    }

    .panel p {
      margin: 12px 0 0;
      color: var(--muted);
    }


    .contact-dev {
      background: var(--white);
    }

    .contact-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
      gap: 18px;
      align-items: stretch;
    }

    .contact-card,
    .dev-counter-panel {
      padding: clamp(22px, 4vw, 34px);
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--paper);
    }

    .contact-card h3,
    .dev-counter-panel h3 {
      font-size: clamp(1.35rem, 2.2vw, 2rem);
    }

    .contact-card p,
    .dev-counter-panel p {
      margin: 12px 0 0;
      color: var(--muted);
    }

    .dev-counter-panel[hidden],
    [data-dev-only] {
      display: none !important;
    }

    .dev-mode [data-dev-only] {
      display: inline !important;
    }

    .dev-counter-panel {
      margin-top: 18px;
      background: #071424;
      color: var(--white);
      border-color: rgba(255,255,255,.14);
    }

    .dev-counter-panel .kicker,
    .dev-counter-panel p {
      color: rgba(255,255,255,.72);
    }

    .dev-counter-panel code {
      color: #dff6ff;
    }

    .counter-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-top: 20px;
    }

    .counter-card,
    .dev-download-row {
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 8px;
      background: rgba(255,255,255,.06);
    }

    .counter-card {
      padding: 16px;
    }

    .counter-card span,
    .dev-download-row span {
      color: rgba(255,255,255,.72);
      font-size: .86rem;
      font-weight: 800;
    }

    .counter-card strong {
      display: block;
      margin-top: 8px;
      font-size: 1.65rem;
      line-height: 1;
    }

    .dev-download-counters h4 {
      margin: 22px 0 10px;
      font-size: 1rem;
    }

    .dev-download-list {
      display: grid;
      gap: 8px;
    }

    .dev-download-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      padding: 12px 14px;
    }

    .dev-download-row span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .dev-download-row strong {
      font-size: 1rem;
    }
    .cta {
      color: var(--white);
      background:
        linear-gradient(90deg, rgba(7, 20, 36, .94), rgba(7, 20, 36, .7)),
        url("images/surveydxf/8-LEVELBOOK.png") center top / cover no-repeat;
    }

    .cta p {
      max-width: 620px;
      color: rgba(255,255,255,.78);
      font-size: 1.08rem;
    }

    footer {
      padding: 28px 0;
      border-top: 1px solid var(--line);
      background: var(--white);
      color: var(--muted);
      font-size: .93rem;
    }

    .footer-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
    }

    .footer-links {
      display: flex;
      gap: 18px;
      flex-wrap: wrap;
    }

    .footer-links a {
      color: var(--blue);
      font-weight: 800;
    }

    @media (max-width: 920px) {
      .topbar { position: absolute; }
      .nav a:not(.store-link) { display: none; }
      .hero {
        min-height: 88vh;
        background:
          linear-gradient(180deg, rgba(6, 20, 36, .9), rgba(6, 20, 36, .64)),
          url("images/surveydxf/feature.jpg") center / cover no-repeat;
      }
      .metrics,
      .feature-grid,
      .screen-grid,
      .contact-grid,
      .counter-grid,
      .split {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 620px) {
      .container { width: min(100% - 32px, 1120px); }
      .brand span { display: none; }
      .hero { min-height: 94vh; }
      h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
      .actions { flex-direction: column; align-items: stretch; }
      .button { width: 100%; }
      .metrics { width: calc(100vw - 28px); }
      .metric { min-height: 96px; padding: 18px; }
      .phone-shell { width: min(100%, 330px); }
      .download-list li {
        grid-template-columns: 1fr;
        align-items: stretch;
      }
      .download-meta,
      .download-count {
        text-align: left;
        white-space: normal;
      }
    .download-list .button {
        width: 100%;
        justify-self: stretch;
      }
    }
/* Printer-friendly SurveyDXF manual */
.no-print {}

.manual-page {
  display: grid;
  grid-template-columns: 240px minmax(0, 920px);
  gap: 34px;
  align-items: start;
  width: min(1220px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 112px 0 80px;
}

.manual-toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  font-size: .92rem;
  box-shadow: 0 14px 42px rgba(16, 32, 51, .08);
}

.manual-toc strong {
  color: var(--ink);
}

.manual-toc a:hover {
  color: var(--blue);
}

.manual-content {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.manual-cover {
  padding-bottom: 28px;
  border-bottom: 2px solid var(--line);
}

.manual-cover h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 7vw, 4.8rem);
}

.manual-cover .lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.manual-version {
  color: var(--muted);
  font-weight: 800;
}

.manual-content section {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.manual-content section:last-child {
  border-bottom: 0;
}

.manual-content h2 {
  margin-bottom: 12px;
  max-width: none;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.15;
}

.manual-content h3 {
  margin: 18px 0 8px;
}

.manual-content p,
.manual-content li {
  color: #263a50;
}

.manual-content code,
.manual-content pre {
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

.manual-content code {
  padding: .1rem .28rem;
  border-radius: 4px;
  background: var(--cyan);
}

.manual-content pre {
  overflow-x: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.manual-content pre code {
  padding: 0;
  background: transparent;
}

.manual-notice {
  margin-top: 24px;
  padding: 20px !important;
  border: 1px solid #f4c95d !important;
  border-radius: 8px;
  background: var(--amber);
}

@media (max-width: 900px) {
  .manual-page {
    grid-template-columns: 1fr;
  }

  .manual-toc {
    position: static;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    background: #fff;
    color: #000;
    font: 11pt/1.45 Arial, sans-serif;
  }

  .no-print,
  .topbar,
  footer,
  .manual-toc,
  .button {
    display: none !important;
  }

  .manual-page {
    display: block;
    width: auto;
    max-width: none;
    padding: 0;
  }

  .manual-content {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .manual-cover {
    min-height: 45vh;
    padding-top: 20mm;
    border-bottom: 2px solid #000;
    page-break-after: always;
  }

  .manual-cover h1 {
    font-size: 32pt;
  }

  .kicker,
  .manual-cover .lead,
  .manual-version,
  .manual-content p,
  .manual-content li {
    color: #000;
  }

  .manual-content section {
    padding: 10mm 0 6mm;
    border-bottom: 1px solid #ccc;
    break-inside: avoid;
  }

  .manual-content h2 {
    font-size: 17pt;
    page-break-after: avoid;
    break-after: avoid;
  }

  .manual-content h3 {
    font-size: 12pt;
    page-break-after: avoid;
    break-after: avoid;
  }

  .manual-content a {
    color: #000;
    text-decoration: underline;
  }

  .manual-content code {
    background: #eee;
  }

  .manual-content pre {
    white-space: pre-wrap;
    border: 1px solid #bbb;
    background: #f7f7f7;
  }

  .manual-notice {
    padding: 8mm !important;
    border: 1px solid #000 !important;
    background: #fff;
  }
}

/* Policy/document pages */
.policy-page {
  width: min(920px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 112px 0 80px;
}

.policy-page h1 {
  max-width: 880px;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
}

.policy-page h2 {
  max-width: 880px;
  margin-top: 34px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.policy-page p,
.policy-page li {
  color: #263a50;
}

.policy-page code {
  padding: .1rem .28rem;
  border-radius: 4px;
  background: var(--cyan);
}

.policy-page .muted,
.policy-page .fine {
  color: var(--muted);
}





