/* ============================================================
   Parallel Spaces — marketing site
   Static CSS, no build step. Apple-ecosystem aesthetic.
   ============================================================ */

:root {
  --bg:            #ffffff;
  --bg-alt:        #f5f5f7;
  --bg-card:       #ffffff;
  --text:          #1d1d1f;
  --text-soft:     #515154;
  --text-faint:    #86868b;
  --line:          #d2d2d7;
  --accent:        #9c5bd9;
  --accent-2:      #d99cf3;
  --accent-ink:    #7c3fc2;
  --radius:        20px;
  --radius-sm:     12px;
  --maxw:          1080px;
  --shadow:        0 10px 40px rgba(0,0,0,.08);
  --shadow-soft:   0 4px 20px rgba(0,0,0,.06);
  --nav-h:         52px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #000000;
    --bg-alt:      #0a0a0c;
    --bg-card:     #161618;
    --text:        #f5f5f7;
    --text-soft:   #c7c7cc;
    --text-faint:  #8e8e93;
    --line:        #2a2a2e;
    --shadow:      0 10px 40px rgba(0,0,0,.5);
    --shadow-soft: 0 4px 20px rgba(0,0,0,.4);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout helpers ---------------------------------------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px;
}

h1, h2, h3 { letter-spacing: -0.022em; line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 16px; font-size: 19px; color: var(--text-soft); }

.lead { font-size: 19px; color: var(--text-soft); }

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

.nav {
  position: sticky; top: 0; z-index: 100;
  min-height: var(--nav-h);
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  min-height: var(--nav-h); display: flex; align-items: center; gap: 28px;
}
.nav-brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 16px; color: var(--text);
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 14px; color: var(--text-soft); font-weight: 450;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  font-size: 14px; font-weight: 500;
  background: var(--accent); color: #fff !important;
  padding: 6px 14px; border-radius: 980px;
  white-space: nowrap;
}
.nav-cta:hover { text-decoration: none; opacity: .9; }

/* Hamburger button — injected by main.js, hidden on desktop */
.nav-toggle {
  display: none;
  width: 38px; height: 38px; padding: 0; margin-left: auto;
  background: none; border: none; cursor: pointer;
  border-radius: 10px;
  flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  font-family: inherit;
}
.nav-toggle:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.nav-toggle span {
  display: block;
  width: 20px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 500; padding: 12px 24px;
  border-radius: 980px; transition: transform .15s ease, opacity .15s ease;
  cursor: pointer; border: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff !important; }
.btn-primary:hover { opacity: .92; }
.btn-ghost {
  background: transparent; color: var(--accent-ink) !important;
  border: 1px solid var(--line);
}

/* App Store badge — official Apple lockup, light + dark via <picture> */
.appstore-badge { display: inline-block; line-height: 0; transition: opacity .15s ease; }
.appstore-badge:hover { opacity: .82; text-decoration: none; }
.appstore-badge img,
.appstore-badge svg { width: 187px; height: 48px; display: block; }

/* Product Hunt badge — custom pill, sized to match Apple lockup (≈187×48) */
.ph-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 187px; height: 48px; padding: 0 14px;
  border-radius: 10px;
  background: #000; color: #fff !important;
  font-family: inherit; line-height: 1;
  transition: opacity .15s ease, transform .15s ease;
  box-sizing: border-box; flex: none;
}
.ph-badge:hover { opacity: .88; text-decoration: none; transform: translateY(-1px); }
.ph-badge .ph-mark { flex: none; display: block; }
.ph-badge .ph-text { display: inline-flex; flex-direction: column; gap: 2px; }
.ph-badge .ph-eyebrow {
  font-size: 9px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: .82;
}
.ph-badge .ph-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
@media (prefers-color-scheme: dark) {
  .ph-badge { background: #fff; color: #000 !important; }
}

/* Secondary hero links row (replaces inline "See how it works" button) */
.hero-links {
  margin-top: 16px; display: flex; flex-wrap: wrap;
  gap: 8px 22px; align-items: center;
}
.hero-link {
  font-size: 14px; font-weight: 500;
  color: var(--accent-ink) !important;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, opacity .15s ease;
}
.hero-link:hover { border-bottom-color: currentColor; text-decoration: none; opacity: .9; }

/* ---- Hero (split: mockup left, brand + download right) ------ */

.hero {
  padding: 64px 0 80px;
  background:
    radial-gradient(70% 55% at 18% 0%,
      color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(55% 50% at 95% 30%,
      color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 56px; align-items: center;
}

/* RIGHT — brand + download */
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-brand {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
}
.hero-icon {
  width: 64px; height: 64px; border-radius: 16px;
  box-shadow: var(--shadow);
}
.hero-name {
  font-size: 21px; font-weight: 600; letter-spacing: -0.01em;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 72px); letter-spacing: -0.025em;
  background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 60%, var(--accent)));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px); color: var(--text-soft);
  margin: 18px 0 4px; max-width: 520px;
}
.hero-cta {
  margin-top: 26px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-faint); }

/* LEFT — macOS window mockup */
.hero-mock { margin: 0; }
.window-mock {
  border-radius: 14px; overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow:
    0 30px 80px -20px rgba(10, 60, 140, .28),
    0 12px 30px -6px rgba(0, 0, 0, .18);
  transform: perspective(2400px) rotateY(-2deg) rotateX(1deg);
  transition: transform .35s ease;
}
.window-mock:hover { transform: perspective(2400px) rotateY(0) rotateX(0); }
@media (prefers-color-scheme: dark) {
  .window-mock {
    box-shadow:
      0 30px 80px -20px rgba(0, 0, 0, .8),
      0 12px 30px -6px rgba(0, 0, 0, .5);
  }
}
.window-titlebar {
  height: 32px; display: flex; align-items: center; gap: 7px;
  padding: 0 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bg-alt) 80%, var(--bg-card)),
    var(--bg-alt));
}
.tl-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.tl-red    { background: #ff5f57; }
.tl-yellow { background: #febc2e; }
.tl-green  { background: #28c840; }
.window-title {
  margin-left: auto; margin-right: auto; font-size: 12px; font-weight: 500;
  color: var(--text-soft); transform: translateX(-30px);
}
.window-body { display: grid; grid-template-columns: 168px 1fr; min-height: 380px; }

/* Sidebar */
.mock-sidebar {
  background: var(--bg-alt); border-right: 1px solid var(--line);
  padding: 14px 10px; display: flex; flex-direction: column; gap: 4px;
}
.mock-side {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 7px;
  font-size: 12.5px; color: var(--text-soft);
}
.mock-side-active {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text);
}
.mock-side-ic { font-size: 12px; opacity: .8; width: 14px; text-align: center; }
.mock-pill {
  margin-left: auto; font-size: 10px; font-weight: 600;
  padding: 1px 7px; border-radius: 980px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text-soft);
}
.mock-new {
  margin-top: auto; padding: 8px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 600; text-align: center;
}

/* Main */
.mock-main { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.mock-toolbar { display: flex; gap: 6px; }
.mock-chip {
  font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 980px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text-soft);
}
.mock-chip-on { background: var(--accent); color: #fff; }

.mock-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px;
}
.mock-tile {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px; display: flex; flex-direction: column;
  align-items: center; gap: 4px; text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.mock-ic {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--tile, var(--accent)) 100%, transparent),
    color-mix(in srgb, var(--tile, var(--accent)) 70%, #000));
  color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--tile, var(--accent)) 40%, transparent);
}
.mock-tname { font-size: 11px; font-weight: 600; color: var(--text); }
.mock-tmeta { font-size: 10px; color: var(--text-faint); }
.mock-tmeta.running { color: #28c840; }
.mock-tbtn {
  font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 980px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-ink); margin-top: 2px;
}

/* ---- "Missing on Mac" section ------------------------------ */

.missing-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center;
}
.missing-list {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.missing-list li {
  padding: 16px 18px; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--line);
  font-size: 15px; color: var(--text-soft);
}
.missing-list li strong { color: var(--text); margin-right: 6px; }
@media (max-width: 900px) {
  .missing-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---- Media frames (video + screenshots) -------------------- */

.shots {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.shot {
  position: relative; aspect-ratio: 16 / 10;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in; padding: 0; margin: 0;
  font-family: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, transparent 60%,
    color-mix(in srgb, var(--accent) 14%, transparent));
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.shot:hover::after { opacity: 1; }

/* Hero image (replaces window-mock placeholder) */
.hero-img {
  width: 100%; height: auto;
  border-radius: 22px;
  box-shadow:
    0 30px 80px -20px color-mix(in srgb, var(--accent) 30%, rgba(0,0,0,.3)),
    0 12px 30px -6px rgba(0, 0, 0, .18);
  transform: perspective(2400px) rotateY(-2deg) rotateX(1deg);
  transition: transform .35s ease;
}
.hero-img:hover { transform: perspective(2400px) rotateY(0) rotateX(0); }
@media (prefers-color-scheme: dark) {
  .hero-img {
    box-shadow:
      0 30px 80px -20px color-mix(in srgb, var(--accent) 40%, rgba(0,0,0,.6)),
      0 12px 30px -6px rgba(0, 0, 0, .5);
  }
}

/* ── Lightbox carousel ───────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  animation: lb-fade .22s ease both;
}
.lightbox.open { display: flex; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox-img-wrap {
  position: relative; max-width: 92vw; max-height: 86vh;
  display: flex; align-items: center; justify-content: center;
  animation: lb-zoom .28s cubic-bezier(.34,1.4,.64,1) both;
}
@keyframes lb-zoom { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox img {
  max-width: 92vw; max-height: 86vh;
  border-radius: 16px; object-fit: contain;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .6);
}

/* Close, prev, next */
.lb-btn {
  position: fixed; z-index: 1001;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-family: inherit; font-size: 22px;
  transition: background .15s ease, transform .15s ease;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lb-btn:hover { background: rgba(255, 255, 255, .26); transform: scale(1.05); }
.lb-close { top: 24px; right: 24px; }
.lb-prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.05); }
.lb-next:hover { transform: translateY(-50%) scale(1.05); }
.lb-counter {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 980px;
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

@media (max-width: 600px) {
  .shots { grid-template-columns: 1fr; gap: 14px; }
  .lb-close { top: 16px; right: 16px; }
  .lb-prev  { left: 10px; width: 40px; height: 40px; }
  .lb-next  { right: 10px; width: 40px; height: 40px; }
  .hero-img { transform: none; border-radius: 16px; }
}

/* ---- Feature grid ------------------------------------------ */

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-soft);
}
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-size: 23px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 15px; }

/* ---- Steps ------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { text-align: left; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--text-soft); font-size: 15px; }

/* ---- Split section (webapps / native) ---------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
}
.panel.feature-dark {
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--accent) 90%, #000),
    color-mix(in srgb, var(--accent-2) 80%, #000));
  border: none; color: #fff;
}
.panel.feature-dark h3, .panel.feature-dark p { color: #fff; }
.panel .tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 980px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-ink);
}
.panel.feature-dark .tag { background: rgba(255,255,255,.18); color: #fff; }
.panel h3 { font-size: 24px; margin-bottom: 10px; }
.panel p { color: var(--text-soft); font-size: 16px; }
.panel ul { list-style: none; margin-top: 18px; }
.panel li {
  font-size: 15px; padding: 7px 0 7px 28px; position: relative;
}
.panel li::before {
  content: "✓"; position: absolute; left: 0; font-weight: 700;
  color: var(--accent-ink);
}
.panel.feature-dark li::before { color: #fff; }

/* ---- Privacy band ------------------------------------------ */

.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.privacy-item { text-align: center; }
.privacy-item .ic {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 27px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.privacy-item h3 { font-size: 17px; margin-bottom: 6px; }
.privacy-item p { font-size: 14px; color: var(--text-soft); }

/* ---- CTA band ---------------------------------------------- */

.cta-band {
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% 0%,
      color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--text-soft); font-size: 19px; margin-bottom: 28px; }

/* ---- FAQ --------------------------------------------------- */

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 4px;
  font-size: 18px; font-weight: 600; display: flex;
  justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--text-faint);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 4px 24px; color: var(--text-soft); font-size: 16px; }
.faq-item .answer p + p { margin-top: 12px; }
.faq-group-title { font-size: 15px; font-weight: 600; color: var(--accent-ink);
  text-transform: uppercase; letter-spacing: .04em; margin: 40px 0 6px; }

/* ---- Article (privacy / what's new) ------------------------ */

.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 30px; margin: 40px 0 12px; }
.article h3 { margin: 26px 0 8px; }
.article p, .article li { color: var(--text-soft); font-size: 16px; }
.article ul { margin: 10px 0 10px 22px; }
.article li { padding: 4px 0; }
.article .updated { color: var(--text-faint); font-size: 14px; }

/* What's New release cards */
.release {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; margin-bottom: 20px;
}
.release-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.release-ver {
  font-size: 22px; font-weight: 700;
}
.release-badge {
  font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 980px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-ink);
}
.release-date { color: var(--text-faint); font-size: 14px; margin-left: auto; }
.release-notes { margin-top: 14px; color: var(--text-soft); font-size: 16px; white-space: pre-line; }
.muted { color: var(--text-faint); }

/* ---- Page hero (sub-pages) --------------------------------- */

.page-hero { text-align: center; padding: 72px 0 24px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.page-hero p { margin-top: 14px; font-size: 19px; color: var(--text-soft); }

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

.footer { border-top: 1px solid var(--line); padding: 56px 0 64px; background: var(--bg-alt); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-brand span { font-weight: 600; font-size: 17px; }
.footer p { color: var(--text-faint); font-size: 14px; max-width: 320px; }
.footer h4 { font-size: 14px; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer li a { color: var(--text-soft); font-size: 14px; }
.footer li a:hover { color: var(--text); text-decoration: none; }
.footer-base {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--text-faint); font-size: 13px;
}

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

@media (max-width: 900px) {
  section { padding: 72px 0; }
  .grid, .steps, .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Stack hero — mock on top, copy below */
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { align-items: flex-start; }
  .window-mock { transform: none; }
}

@media (max-width: 760px) {
  /* Hamburger replaces inline links */
  .nav-toggle { display: inline-flex; }
  .nav .wrap  { gap: 12px; }
  .nav-cta    { padding: 5px 12px; font-size: 13px; }

  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
    padding: 8px 0;
    margin: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .28s ease;
  }
  .nav.open .nav-links { max-height: 70vh; }
  .nav-links a {
    padding: 14px 24px; font-size: 16px; color: var(--text);
    border-top: 1px solid var(--line);
  }
  .nav-links a:first-child { border-top: none; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  section { padding: 56px 0; }
  .grid, .steps, .privacy-grid, .shots { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 36px 0 48px; }
  .hero-grid { gap: 28px; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-cta .appstore-badge, .hero-cta .ph-badge { width: 100%; justify-content: center; }
  .hero-cta .appstore-badge img, .hero-cta .appstore-badge svg { margin: 0 auto; }
  .hero-links { justify-content: flex-start; }
  .hero-icon { width: 54px; height: 54px; }
  .hero-name { font-size: 18px; }
  .hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .hero-sub { font-size: 16px; }
  .window-body { grid-template-columns: 130px 1fr; min-height: 320px; }
  .mock-grid { grid-template-columns: repeat(2, 1fr); }
  .release-date { margin-left: 0; width: 100%; }

  /* Page sub-hero tighter */
  .page-hero { padding: 36px 0 12px; }
  .page-hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .page-hero p  { font-size: 16px; }

  /* Footer safe-area */
  .footer { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Section heads */
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 16px; }
  h2 { font-size: clamp(26px, 7vw, 34px); }
}

/* Landscape phones — compact, side-by-side again */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding: 28px 0 36px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; }
  .window-body { min-height: 280px; }
  .hero-icon { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
