/* DockApp marketing site — shared styles.
   The landing + download pages (body.landing) are a cinematic dark surface that lets the real
   product screenshots sit natively; the legal pages (privacy/terms, no .landing) stay adaptive
   light/dark for readability. Brand palette from icon/render_store_images.swift:
   gradient #0A0A0F→#23253C, backlit-glow accent #4FA8FF. */

:root {
  --bg: #ffffff;
  --bg-elev: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-dim: #6e6e73;
  --border: #d2d2d7;
  --accent: #0a84ff;
  --accent-glow: #4fa8ff;
  --radius: 18px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d; --bg-elev: #141418; --card: #17171c;
    --text: #f5f5f7; --text-dim: #a1a1a8; --border: #2a2a30; --accent: #4fa8ff;
  }
}

/* Landing/download: force the cinematic dark palette regardless of system theme. */
body.landing {
  --bg: #0a0a0f; --bg-elev: #101018; --card: #15161d;
  --text: #f5f5f7; --text-dim: #9aa2b2; --border: #262832; --accent: #4fa8ff;
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- scroll reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 56px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.nav .brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav .links a { color: var(--text-dim); font-size: 14px; }
.nav .links a:hover { color: var(--text); text-decoration: none; }
.nav .links .btn { color: #fff; }
@media (max-width: 640px) { .nav .links a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 980px; font-size: 15px; font-weight: 550;
  background: var(--accent); color: #fff !important; border: 1px solid transparent;
  cursor: pointer; transition: filter .15s ease, transform .05s ease, background .15s ease;
}
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.big { padding: 15px 32px; font-size: 17px; }
.btn.secondary { background: transparent; color: var(--accent) !important; border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.ghost { background: rgba(255,255,255,.06); color: #fff !important; border-color: rgba(255,255,255,.16); }
.btn.ghost:hover { background: rgba(255,255,255,.11); filter: none; }

/* ---------- shared type accents ---------- */
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  padding: 6px 13px; border-radius: 980px;
}
.section-head { text-align: center; max-width: 660px; margin: 0 auto clamp(38px, 5vw, 62px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.025em; font-weight: 700; margin: 0; color: var(--text); text-wrap: balance; }
.section-head .sub { color: var(--text-dim); font-size: 18px; margin: 16px auto 0; max-width: 540px; line-height: 1.5; }
.sub { color: var(--text-dim); font-size: 18px; line-height: 1.5; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; text-align: center; padding: clamp(64px, 9vw, 96px) 0 clamp(40px, 6vw, 64px); }
.hero .glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 380px at 50% -8%, rgba(79,168,255,.22), transparent 62%),
    radial-gradient(1000px 560px at 50% 30%, rgba(35,37,60,.55), transparent 72%);
}
.hero .wrap { position: relative; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 74px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 22px 0 20px;
  color: #f7f9fc;
}
.hero .lede { font-size: clamp(17px, 2.2vw, 21px); color: #aab2c2; max-width: 600px; margin: 0 auto 32px; line-height: 1.55; text-wrap: balance; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .fine { margin-top: 20px; font-size: 13px; color: #7e8698; }
.hero img.icon { display: block; width: 128px; height: 128px; filter: drop-shadow(0 20px 44px rgba(0,0,0,.55)); margin: 0 auto 22px; }

.hero-shot { position: relative; margin: clamp(44px, 6vw, 72px) auto 0; max-width: 880px; }
.hero-shot::after {
  content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; top: 24%; bottom: -8%;
  background: radial-gradient(closest-side, rgba(79,168,255,.30), transparent 75%); filter: blur(34px);
}
.hero-shot img {
  display: block; width: 100%; height: auto; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10); box-shadow: 0 44px 100px -38px rgba(0,0,0,.85);
}

/* ---------- hero: "one Dock, styled your way" 2x3 variant grid ---------- */
.hero-docks {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px;
  max-width: 780px; margin: clamp(44px, 6vw, 68px) auto 0;
}
.dock-variant {
  position: relative; margin: 0; padding: 10px; border-radius: 14px;
  background: linear-gradient(160deg, #191b25 0%, #101119 100%);
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 46px -30px rgba(0,0,0,.68);
}
.dv-shot { aspect-ratio: 948 / 220; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; }
.dv-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dock-variant .vlabel {
  position: absolute; top: -10px; left: 14px; z-index: 1; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #d3dae8; background: #20222e; border: 1px solid rgba(255,255,255,.14); padding: 3px 10px; border-radius: 980px;
}
.hero-docks-cap { grid-column: 1 / -1; text-align: center; margin: 6px 0 0; font-size: 14px; color: #8a92a4; }
@media (max-width: 520px) { .hero-docks { grid-template-columns: 1fr; } }

/* ---------- framed product shot (editorial rows) ---------- */
.shot {
  margin: 0; padding: 12px; border-radius: 20px;
  background: linear-gradient(160deg, #191b25 0%, #101119 100%);
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 34px 74px -36px rgba(0,0,0,.78);
}
.shot img { display: block; width: 100%; height: auto; border-radius: 11px; }
.shot.portrait { max-width: 400px; margin-inline: auto; }

/* ---------- editorial showcase rows ---------- */
.showcase { padding: clamp(56px, 8vw, 100px) 0 clamp(24px, 4vw, 48px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 76px); align-items: center; padding: clamp(28px, 5vw, 52px) 0; }
.row .shot { order: 1; } .row .copy { order: 2; }
.row.reverse .shot { order: 2; } .row.reverse .copy { order: 1; }
.copy .kicker { display: inline-block; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.copy h3 { font-size: clamp(24px, 3vw, 34px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 14px; color: var(--text); }
.copy p { font-size: 17px; line-height: 1.62; color: var(--text-dim); margin: 0; max-width: 48ch; }

/* ---------- flagship: live-window-previews gallery (browser · terminal · mail) ---------- */
.feature-lead { text-align: center; max-width: 660px; margin: clamp(8px, 2vw, 20px) auto clamp(28px, 4vw, 44px); }
.feature-lead .kicker { display: inline-block; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.feature-lead h3 { font-size: clamp(24px, 3vw, 34px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 14px; color: var(--text); }
.feature-lead p { font-size: 17px; line-height: 1.62; color: var(--text-dim); margin: 0 auto; max-width: 56ch; }
.preview-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); }
.pv-card {
  margin: 0; padding: 14px 14px 4px; border-radius: 18px;
  background: linear-gradient(160deg, #191b25 0%, #101119 100%);
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 26px 60px -34px rgba(0,0,0,.78);
  display: flex; flex-direction: column;
}
.pv-shot { aspect-ratio: 1078 / 394; border-radius: 10px; overflow: hidden; background: #0a0a0e; display: flex; align-items: center; justify-content: center; }
.pv-shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pv-card figcaption { padding: 14px 4px 10px; }
.pv-card figcaption strong { display: block; font-size: 16px; color: var(--text); letter-spacing: -.01em; }
.pv-card figcaption span { font-size: 14px; color: var(--text-dim); }
@media (max-width: 760px) { .preview-gallery { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ---------- bento ---------- */
.bento-section { padding: clamp(56px, 8vw, 100px) 0; background: #0c0d14; border-block: 1px solid rgba(255,255,255,.05); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tile {
  grid-column: span 5; margin: 0; background: var(--card); border: 1px solid var(--border);
  border-radius: 22px; padding: 22px; display: flex; flex-direction: column;
}
.tile.wide { grid-column: span 7; }
.tile-shot {
  border-radius: 14px; overflow: hidden; background: #0a0a0e; border: 1px solid rgba(255,255,255,.06);
  padding: 16px; margin-bottom: 18px; flex: 1; display: flex; align-items: center; justify-content: center;
}
.tile-shot img { display: block; width: 100%; height: auto; border-radius: 8px; }
/* The "any edge" tile is a tall, narrow vertical dock — cap its height so it sits centered
   in the tile instead of stretching to full width and blowing up the row. */
.tile.edge .tile-shot img { width: auto; height: 300px; max-width: 100%; }
.tile figcaption h3 { font-size: 19px; margin: 0 0 6px; color: var(--text); letter-spacing: -.01em; }
.tile figcaption p { font-size: 15px; color: var(--text-dim); margin: 0; line-height: 1.5; }

/* ---------- differentiator pillars ---------- */
.pillars-section { padding: clamp(48px, 7vw, 84px) 0; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.pillar strong { display: block; font-size: 16px; margin-bottom: 6px; color: var(--text); letter-spacing: -.01em; }
.pillar span { color: var(--text-dim); font-size: 14px; line-height: 1.5; }

/* ---------- pricing ---------- */
.pricing { padding: clamp(56px, 8vw, 100px) 0; }
.price-card {
  max-width: 440px; margin: 0 auto; background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 40px 36px; text-align: center; box-shadow: 0 30px 70px -40px rgba(0,0,0,.6);
}
.price-card .tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 5px 12px; border-radius: 980px; margin-bottom: 18px;
}
.price-card .amount { font-size: 56px; font-weight: 700; letter-spacing: -.02em; }
.price-card .amount .was { font-size: 24px; font-weight: 500; color: var(--text-dim); text-decoration: line-through; margin-left: 10px; }
.price-card .per { color: var(--text-dim); margin: 4px 0 24px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; display: inline-block; }
.price-card li { padding: 7px 0 7px 28px; position: relative; font-size: 15px; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 15px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.faq-section { padding: clamp(56px, 8vw, 100px) 0; background: #0c0d14; border-block: 1px solid rgba(255,255,255,.05); }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 4px; }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-dim); font-weight: 400; font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--text-dim); margin: 12px 0 2px; font-size: 15px; line-height: 1.6; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); background: var(--bg-elev); padding: 40px 0; font-size: 13px; color: var(--text-dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer .brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
footer .brand img { width: 22px; height: 22px; border-radius: 5px; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
footer .links a { color: var(--text-dim); }
footer .copy { margin-left: auto; }

/* ---------- download page: bands + get-started steps ---------- */
section.band { padding: clamp(48px, 7vw, 84px) 0; }
section.band.alt { background: var(--bg-elev); }
.band h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; font-weight: 700; text-align: center; margin: 0 0 8px; color: var(--text); }
.band .sub { text-align: center; margin: 0 auto 40px; max-width: 620px; }
.dl-note { max-width: 620px; margin: 0 auto 40px; text-align: center; color: var(--text-dim); font-size: 16px; }
.dl-note strong { color: var(--text); }
.steps { counter-reset: step; display: grid; gap: 16px; max-width: 680px; margin: 0 auto; }
.step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px 22px 74px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px;
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 16px;
}
.step h3 { margin: 3px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.step p { margin: 0; color: var(--text-dim); font-size: 15px; line-height: 1.55; }
.step code { background: color-mix(in srgb, var(--text) 12%, transparent); padding: 1px 6px; border-radius: 5px; font-size: 13.5px; }
.req { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 16px; }

/* ---------- legal document pages (adaptive) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 6px; }
.doc .eff { color: var(--text-dim); font-size: 14px; margin: 0 0 36px; }
.doc h2 { font-size: 21px; margin: 40px 0 12px; letter-spacing: -.01em; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .legal-caps { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }
.doc strong { color: var(--text); }
.doc a { text-decoration: underline; }
.doc .back { display: inline-block; margin-bottom: 28px; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: 24px; }
  .row .shot, .row .copy, .row.reverse .shot, .row.reverse .copy { order: 0; }
  .copy p { max-width: none; }
  .shot.portrait { max-width: 460px; }
}
@media (max-width: 760px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile.wide { grid-column: span 1; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  footer .copy { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 480px) {
  .bento { grid-template-columns: 1fr; }
}
