/* =========================================================================
   Dropdesk — light, app-UI, conversion-first.
   Bricolage Grotesque display · system body · warm off-white · mono + one
   slate-blue accent used sparingly. Depth from shadow, never colour.
   ========================================================================= */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  font-style: normal;
}

:root {
  --bg: #fbfbfa;
  --bg-tint: #f4f4f2; /* faint sections */
  --surface: #ffffff;
  --ink-band: #0e0e10; /* the one dark band */

  --ink: #0a0a0a;
  --ink-2: #3d3d3f;
  --ink-3: #757578;
  --on-dark: #fbfbfa;
  --on-dark-2: #a7a7ac;

  --hairline: rgba(0, 0, 0, 0.09);
  --hairline-2: rgba(0, 0, 0, 0.14);
  --hairline-dark: rgba(255, 255, 255, 0.12);

  /* the single accent — used in ≤5 places */
  --accent: #4361ee;
  --accent-ink: #ffffff;
  --accent-weak: rgba(67, 97, 238, 0.12);

  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: min(1140px, calc(100% - 48px));
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(15, 15, 20, 0.05), 0 2px 8px rgba(15, 15, 20, 0.05);
  --shadow-md: 0 2px 4px rgba(15, 15, 20, 0.04), 0 14px 34px -10px rgba(15, 15, 20, 0.12);
  --shadow-lg: 0 4px 10px rgba(15, 15, 20, 0.05), 0 40px 80px -24px rgba(15, 15, 20, 0.28);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 140ms;
  --dur-reveal: 520ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  /* clip, not hidden: contains stray horizontal overflow without turning
     <html> into a scroll container (which breaks position: sticky and can
     wedge scrolling on iOS Safari during load) */
  overflow-x: clip;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

.site-body {
  position: relative;
  overflow-x: clip;
}

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

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

::selection {
  background: var(--accent-weak);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 5px;
}

/* ---------- Ambient background ---------- */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 42% at 50% -8%, rgba(67, 97, 238, 0.05), transparent 60%),
    radial-gradient(38% 30% at 92% 0%, rgba(0, 0, 0, 0.02), transparent 62%),
    var(--bg);
}

/* barely-there dotted grid, fades out fast */
.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(10, 10, 10, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(#000, transparent 42%);
  mask-image: linear-gradient(#000, transparent 42%);
}

.site-body > :not(.site-bg) {
  position: relative;
  z-index: 1;
}

/* scroll-progress rail */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--ink);
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: scroll-progress linear both;
    animation-timeline: scroll(root block);
  }
}

@keyframes scroll-progress {
  to {
    transform: scaleX(1);
  }
}

/* ---------- Type ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.section-head {
  max-width: 620px;
  margin: 0 auto clamp(36px, 5vw, 60px);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
}

.section-head p {
  margin: 16px 0 0;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-3);
}

/* ---------- Buttons ---------- */

.btn {
  --b-bg: transparent;
  --b-fg: var(--ink);
  --b-bd: var(--hairline-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--b-bd);
  background: var(--b-bg);
  color: var(--b-fg);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out),
    background var(--dur-press) var(--ease-out),
    border-color var(--dur-press) var(--ease-out),
    box-shadow var(--dur-press) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  --b-bg: var(--ink);
  --b-fg: var(--surface);
  --b-bd: transparent;
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  --b-bg: var(--surface);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  --b-bd: transparent;
  --b-fg: var(--ink-2);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.92rem;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    --b-bg: #26262a;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
  .btn-secondary:hover {
    --b-bd: var(--hairline-2);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
  .btn-ghost:hover {
    --b-fg: var(--ink);
    background: rgba(0, 0, 0, 0.04);
  }
}

/* Chrome CTA — polished primary with the Chrome mark */
.btn-chrome {
  --b-bg: var(--ink);
  --b-fg: var(--surface);
  --b-bd: transparent;
  gap: 10px;
  padding-left: 20px;
  box-shadow: 0 1px 2px rgba(15, 15, 20, 0.12), 0 10px 24px -8px rgba(15, 15, 20, 0.35);
}

.btn-chrome svg,
.btn-chrome img {
  width: 20px;
  height: 20px;
  flex: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn-chrome:hover {
    --b-bg: #26262a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(15, 15, 20, 0.14), 0 16px 34px -10px rgba(15, 15, 20, 0.4);
  }
}

/* Official-style store badges (the SVG is the badge) */
.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  border-radius: 9px;
  transition: transform var(--dur-press) var(--ease-out), filter var(--dur-press) var(--ease-out);
}

.store-badge svg,
.store-badge img {
  display: block;
  height: 44px;
  width: auto;
}

.store-badge:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .store-badge:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
  }
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 14px max(24px, calc((100% - 1140px) / 2));
  min-height: 62px;
}

.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(251, 251, 250, 0.8);
  border-bottom: 1px solid var(--hairline);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

/* blur only once the bar is actually active — keeps it off the
   compositor while the page is still at the top and loading */
.site-nav.is-scrolled::before {
  opacity: 1;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.site-nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  font-size: 0.94rem;
  font-weight: 500;
}

.site-nav-links a {
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--ink-2);
  transition: color 0.16s var(--ease-out), background 0.16s var(--ease-out);
}

.site-nav-links a:hover,
.site-nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
}

.site-nav-cta {
  margin-left: 4px;
}

/* ---------- Reveal ---------- */

.js .fade-up {
  opacity: 0;
  transform: translateY(12px) scale(0.992);
  transition: opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.js .fade-up.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(44px, 8vw, 84px) 0 clamp(52px, 9vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 clamp(16px, 2vw, 22px);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 5.6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.038em;
  font-weight: 700;
  font-optical-sizing: auto;
  color: var(--ink);
}

.hero-title > span {
  display: block;
  text-wrap: balance;
}

.hero-title .muted {
  color: #8b8b8b; /* fallback */
  color: color-mix(in oklab, var(--ink) 46%, var(--bg));
  font-weight: 600;
}

.hero-title .accent {
  display: inline;
  color: var(--accent);
}

.hero-sub {
  margin: clamp(20px, 2.6vw, 28px) 0 0;
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  line-height: 1.5;
  letter-spacing: -0.006em;
  color: var(--ink-2);
  max-width: 42ch;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: clamp(26px, 3.4vw, 38px);
}

.hero-note {
  margin: 15px 0 0;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}

/* hero visual — a single composed two-phone shot on a soft bloom */
.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 520px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -8% -12% -6%;
  background: radial-gradient(58% 52% at 52% 46%, rgba(67, 97, 238, 0.1), transparent 72%);
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 24px 44px rgba(15, 15, 20, 0.14));
}

/* ---------- Browser frame (DOM, reusable) ---------- */

.browser-frame {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--hairline);
  background: #f7f7f6;
}

.browser-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.14);
}

.browser-bar span {
  margin-left: 10px;
  flex: 1;
  height: 15px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.06);
}

.browser-shot {
  display: block;
  width: 100%;
}

/* ---------- Section scaffold ---------- */

.section {
  position: relative;
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0;
}

.section-tint {
  width: 100%;
  background: var(--bg-tint);
  border-block: 1px solid var(--hairline);
}

.section-tint .section-inner {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 0;
}

/* ---------- Flow (§3) ---------- */

.flow {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(6px, 1.4vw, 20px);
}

.flow-step {
  flex: 0 1 260px;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-media {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* phone steps */
.flow-media img {
  max-height: 100%;
  width: auto;
  filter: drop-shadow(0 20px 38px rgba(15, 15, 20, 0.13));
}

/* panel step — clean card, not a fake browser window */
.flow-step.is-panel .flow-media {
  align-items: stretch;
}

.flow-step.is-panel .flow-media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  border: 1px solid var(--hairline-2);
  box-shadow: var(--shadow-lg);
  filter: none;
  background: #0e0e10;
}

.flow-step figcaption {
  margin-top: 18px;
  max-width: 24ch;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-3);
}

.flow-step figcaption b {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.flow-arrow {
  flex: none;
  width: clamp(34px, 4vw, 56px);
  height: 24px;
  margin-top: 138px;
  color: var(--ink-3);
}

@media (max-width: 760px) {
  /* compact stacked flow — small phones, thin dividers, no scroll marathon */
  .flow {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .flow-step,
  .flow-step.is-panel {
    flex-basis: auto;
    width: 100%;
    max-width: 340px;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    text-align: left;
  }
  .flow-media {
    height: auto;
    width: 92px;
    flex: none;
  }
  .flow-media img {
    max-height: 176px;
    width: auto;
    max-width: 100%;
  }
  .flow-step.is-panel .flow-media {
    width: 100px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--hairline-2);
    box-shadow: var(--shadow-md);
  }
  .flow-step.is-panel .flow-media img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .flow-step figcaption {
    margin-top: 0;
    max-width: none;
    text-align: left;
  }
  .flow-arrow {
    width: 20px;
    height: 20px;
    margin: 0;
    transform: rotate(90deg);
    opacity: 0.7;
  }
}

/* ---------- Comparison table ---------- */

.cmp {
  width: min(940px, 100%);
  margin: 0 auto;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.cmp-head,
.cmp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cmp-cell {
  padding: clamp(16px, 2.4vw, 22px) clamp(18px, 2.6vw, 28px);
  border-top: 1px solid var(--hairline);
  font-size: 0.98rem;
  line-height: 1.5;
}

.cmp-cell + .cmp-cell {
  border-left: 1px solid var(--hairline);
}

.cmp-head .cmp-cell {
  border-top: 0;
}

/* header row */
.cmp-head {
  background: var(--bg-tint);
}

.cmp-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.cmp-h svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.cmp-h-without {
  color: var(--ink-3);
}

.cmp-h-with {
  color: var(--accent);
}

/* cell content: bold lead + one short line */
.cmp-without b,
.cmp-with b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.012em;
  margin-bottom: 2px;
}

.cmp-without {
  color: var(--ink-3);
}

.cmp-without b {
  color: var(--ink-2);
}

.cmp-with {
  color: var(--ink-2);
}

.cmp-with b {
  color: var(--ink);
}

/* highlight the "With Dropdesk" column as a continuous band */
.cmp-h-with,
.cmp-with {
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}

.cmp-row .cmp-with {
  border-left-color: color-mix(in srgb, var(--accent) 22%, var(--hairline));
}

@media (max-width: 720px) {
  .cmp {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .cmp-head {
    display: none;
  }
  .cmp-row {
    display: block;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }
  .cmp-cell {
    border-left: 0 !important;
    border-top: 1px solid var(--hairline);
    padding: 14px 18px;
  }
  .cmp-row .cmp-cell:first-child {
    border-top: 0;
  }
  .cmp-without,
  .cmp-with {
    position: relative;
    padding-left: 46px;
  }
  .cmp-without::before,
  .cmp-with::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 15px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
  }
  .cmp-without::before {
    content: "\00d7";
    background: var(--bg-tint);
    color: var(--ink-3);
  }
  .cmp-with::before {
    content: "\2713";
    background: var(--accent);
    color: #fff;
    font-size: 10px;
  }
  .cmp-with {
    background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  }
}

/* ---------- How it works (§4) ---------- */

.steps-visual {
  width: var(--shell);
  max-width: 880px;
  margin: 0 auto clamp(28px, 4vw, 48px);
}

.steps-visual img {
  width: 100%;
  filter: drop-shadow(0 28px 52px rgba(15, 15, 20, 0.16));
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  width: min(var(--shell), 900px);
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.step {
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 1.18rem;
  letter-spacing: -0.018em;
}

.step p {
  margin: 8px auto 0;
  max-width: 30ch;
  font-size: 0.98rem;
  color: var(--ink-3);
}

/* ---------- Both directions (§5) ---------- */

.both {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  width: var(--shell);
  max-width: 960px;
  margin: 0 auto;
  align-items: center;
}

.both-visual {
  margin: 0;
  justify-self: center;
  max-width: 300px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline-2);
  box-shadow: var(--shadow-lg);
  background: #0e0e10;
}

.both-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.6;
  object-fit: cover;
  object-position: center top;
}

.both-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.both-row .dir {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.both-row p {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.06rem;
  line-height: 1.55;
  max-width: 40ch;
}

@media (max-width: 780px) {
  .both {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .both-visual {
    order: -1;
    max-width: 240px;
  }
  .both-copy {
    gap: 22px;
  }
  .both-row p {
    font-size: 1rem;
  }
}

/* ---------- File cards + use cases (§6) ---------- */

.usecases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 20px);
  width: var(--shell);
  margin: 0 auto;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .file-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
}

.file-thumb {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-tint);
  color: var(--ink);
}

.file-thumb svg {
  width: 24px;
  height: 24px;
}

.file-card h3 {
  font-size: 1.06rem;
  letter-spacing: -0.014em;
  margin-bottom: 3px;
}

.file-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-3);
}

.file-card .file-meta {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* ---------- Privacy (§7) ---------- */

.privacy-inner {
  width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.privacy-inner h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.024em;
}

.privacy-inner h2 em {
  font-style: normal;
  color: var(--ink-3);
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.spec-list li {
  display: grid;
  grid-template-columns: 12ch 1fr;
  gap: 6px 20px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--hairline);
}

.spec-list .k {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}

.spec-list .v {
  color: var(--ink-2);
  font-size: 1rem;
}

.privacy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.privacy-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink);
}

.privacy-badges svg {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
}

/* ---------- FAQ (§9) ---------- */

.faq {
  width: min(760px, 100%);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-q svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  transition: transform 0.24s var(--ease-out);
}

.faq-item[data-open="true"] .faq-q svg {
  transform: rotate(180deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s var(--ease-out);
}

.faq-item[data-open="true"] .faq-a {
  grid-template-rows: 1fr;
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  margin: 0 0 18px;
  color: var(--ink-3);
  font-size: 1rem;
}

/* ---------- CTA band (§10) ---------- */

.cta-band {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  max-width: 16ch;
  margin: 0 auto 16px;
}

.cta-band p {
  margin: 0 auto 28px;
  color: var(--ink-3);
  font-size: 1.12rem;
  max-width: 42ch;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}


/* ---------- Footer ---------- */

.site-footer {
  width: var(--shell);
  margin: 0 auto;
  padding: 44px 0 60px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
  font-size: 0.9rem;
}

.site-footer-links a {
  color: var(--ink-3);
  transition: color 0.16s var(--ease-out);
}

.site-footer-links a:hover {
  color: var(--ink);
}

.site-footer-copy {
  width: 100%;
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* ---------- Sticky mobile CTA ---------- */

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* full-width fixed + inner padding — left/right insets on a fixed element
     are unreliable on some mobile browsers and can cause a sliver of
     horizontal scroll */
  padding: 0 12px 12px;
  z-index: 55;
  display: none;
  transform: translateY(140%);
  transition: transform 0.26s var(--ease-out);
}

.mobile-cta.is-shown {
  transform: none;
}

.mobile-cta .btn {
  width: 100%;
  box-shadow: var(--shadow-lg);
}

/* ---------- Inner pages ---------- */

.wrap {
  width: min(720px, calc(100% - 44px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.wrap-wide {
  width: min(860px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px) 0 80px;
}

.guide-hero {
  margin-bottom: 34px;
}

.guide-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin: 12px 0 14px;
}

.guide-lede {
  margin: 0;
  font-size: 1.18rem;
  color: var(--ink-3);
  max-width: 54ch;
}

.guide-block {
  margin-bottom: 18px;
  padding: clamp(22px, 3.4vw, 34px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-md);
}

.guide-block-muted {
  background: var(--bg-tint);
  box-shadow: none;
}

.get-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.get-grid .guide-block {
  margin-bottom: 0;
}

.guide-block .dir {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.guide-block .dir + h2 {
  margin-top: 0;
  font-size: 1.32rem;
}

.get-grid .guide-block p {
  color: var(--ink-3);
  margin: 0 0 18px;
}

@media (max-width: 680px) {
  .get-grid {
    grid-template-columns: 1fr;
  }
}

.guide-block.has-figure {
  display: grid;
  grid-template-columns: 1fr minmax(0, 300px);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.guide-figure {
  margin: 0;
  align-self: center;
}

/* extension panel screenshot — a clean floating card */
.guide-figure.is-panelshot {
  max-width: 280px;
  justify-self: center;
}

.guide-figure.is-panelshot img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--hairline-2);
  box-shadow: var(--shadow-lg);
  background: #0e0e10;
}

/* phone mockup — floats, no frame, keeps its shadow */
.guide-figure.is-phone {
  max-width: 220px;
  justify-self: center;
}

.guide-figure.is-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-block h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  letter-spacing: -0.016em;
  margin: 0 0 18px;
}

.guide-block h2 .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 680px) {
  .guide-block.has-figure {
    grid-template-columns: 1fr;
  }
  .guide-figure {
    order: -1;
  }
  .guide-figure.is-panelshot {
    max-width: 260px;
  }
  .guide-figure.is-phone {
    max-width: 190px;
  }
}

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: g;
}

.guide-steps li {
  counter-increment: g;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 4px 14px;
  margin-bottom: 16px;
}

.guide-steps li::before {
  content: counter(g);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.guide-steps strong {
  grid-column: 2;
  color: var(--ink);
  font-weight: 600;
}

.guide-steps span {
  grid-column: 2;
  color: var(--ink-3);
  font-size: 0.98rem;
}

.guide-tips {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-3);
  font-size: 0.98rem;
  line-height: 1.6;
}

.guide-tips li {
  margin: 8px 0;
}

.guide-block a:not(.btn):not(.store-badge),
.guide-tips a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.callout-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.doc .nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.doc .nav-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 0.9rem;
}

.doc .nav-links a {
  color: var(--ink-3);
}

.doc .nav-links a:hover,
.doc .nav-links a[aria-current="page"] {
  color: var(--ink);
}

.doc h1 {
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  letter-spacing: -0.026em;
  margin: 0 0 10px;
}

.doc h2 {
  font-size: 1.3rem;
  letter-spacing: -0.014em;
  margin: 32px 0 12px;
}

.doc h3 {
  font-size: 1.06rem;
  margin: 20px 0 8px;
}

.meta {
  margin: 0 0 28px;
  color: var(--ink-3);
  font-size: 0.85rem;
}

.doc p,
.doc li {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.62;
}

.doc ul {
  padding-left: 1.2em;
  margin: 0 0 12px;
}

.doc li {
  margin: 6px 0;
}

.doc strong {
  color: var(--ink);
  font-weight: 600;
}

.doc a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Article / guide pages ---------- */

.article .article-meta {
  color: var(--ink-3);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  margin: 0 0 26px;
}

.article .lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 8px;
  text-wrap: pretty;
}

.article h2 {
  font-size: 1.42rem;
  margin: 44px 0 12px;
}

.article h3 {
  font-size: 1.1rem;
  margin: 26px 0 8px;
}

.article p {
  text-wrap: pretty;
  margin: 0 0 14px;
}

.article .cmp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 8px;
  font-size: 0.96rem;
}

.article .cmp-table th,
.article .cmp-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.article .cmp-table thead th {
  color: var(--ink-3);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom-color: var(--hairline-2);
}

.article .cmp-table td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.article .cta-box {
  margin: 44px 0 12px;
  padding: 26px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.article .cta-box h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.article .cta-box p {
  color: var(--ink-2);
  margin: 0;
}

.article .cta-box .btn {
  margin-top: 16px;
}

.article .related {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.article .related h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.article .related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article .related li {
  margin: 8px 0;
}

@media (max-width: 620px) {
  .article .cmp-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Guides list on the home page */
.guide-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  max-width: 680px;
}

.guide-links a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  transition: border-color 0.16s var(--ease-out), transform 0.16s var(--ease-out),
    box-shadow 0.16s var(--ease-out);
}

.guide-links a:hover {
  border-color: var(--hairline-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.guide-links b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 3px;
}

.footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-3);
  font-size: 0.82rem;
}

.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.inline-icon { vertical-align: -3px; }
.eyebrow .icon-xs { color: var(--ink-3); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: clamp(32px, 8vw, 52px);
  }
  .hero-visual {
    order: 2;
    max-width: 400px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .both,
  .usecases {
    grid-template-columns: 1fr;
  }
  .privacy-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 36px);
  }
  .site-nav {
    padding: 12px 18px;
  }
  .site-nav-links {
    display: none;
  }
  .site-nav-cta {
    margin-left: auto;
  }

  /* tighter vertical rhythm on phones */
  .section {
    padding: clamp(40px, 11vw, 60px) 0;
  }
  .privacy-inner {
    padding: clamp(44px, 12vw, 68px) 0;
  }
  .section-head {
    margin-bottom: clamp(22px, 6vw, 34px);
  }
  .section-head h2 {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
  }

  .hero {
    padding: clamp(30px, 7vw, 52px) 0 clamp(36px, 9vw, 60px);
  }
  .hero-title {
    font-size: clamp(2.35rem, 11vw, 3.1rem);
    letter-spacing: -0.034em;
    line-height: 1.05;
  }
  .hero-sub {
    font-size: 1.06rem;
  }
  .hero-eyebrow {
    margin-bottom: 14px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .store-badges {
    justify-content: center;
  }

  .steps-visual {
    margin-bottom: clamp(20px, 6vw, 32px);
  }
  .steps {
    gap: 24px;
  }
  .step p {
    font-size: 0.95rem;
  }

  .mobile-cta {
    display: block;
  }
  .spec-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .site-footer-links {
    margin-left: 0;
  }
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .fade-up {
    opacity: 1;
    transform: none;
    transition-delay: 0s !important;
  }
  .btn:active,
  .btn:hover,
  .file-card:hover,
  .store-badge:hover {
    transform: none;
  }
  .scroll-progress {
    display: none;
  }
  .mobile-cta {
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-nav.is-scrolled::before {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --hairline: rgba(0, 0, 0, 0.2);
    --hairline-2: rgba(0, 0, 0, 0.32);
    --ink-2: #232325;
    --ink-3: #4a4a4d;
  }
}

/* ---------- Private analytics dashboard ---------- */

.admin-wrap {
  width: min(1040px, calc(100% - 44px));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.admin-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.admin-head p {
  margin: 6px 0 0;
  color: var(--ink-3);
  font-size: 0.95rem;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.admin-kpi {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  box-shadow: var(--shadow-sm);
}

.admin-kpi span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.admin-kpi strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 650;
}

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px 8px;
  margin-bottom: 18px;
}

.admin-panel h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 8px;
  border-top: 1px solid var(--hairline);
  font-size: 0.95rem;
}

.admin-table th {
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-table td:not(:first-child),
.admin-table th:not(:first-child) {
  text-align: right;
}

.admin-gate {
  width: min(400px, 100%);
  margin: 12vh auto 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.admin-gate h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.admin-gate p {
  margin: 0 0 20px;
  color: var(--ink-3);
  font-size: 0.95rem;
}

.admin-gate label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.admin-gate input {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--hairline-2);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.admin-error {
  color: #b42318;
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.admin-empty {
  color: var(--ink-3);
  padding: 8px 0 18px;
}

@media (max-width: 860px) {
  .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
