/* Palette mirrors DuoCamera/UI/CameraStyle.swift — the app is dark in every appearance. */
:root {
  --background: #101110;
  --deck: #191918;
  --surface: #2b2b28;
  --text: #f4f1ea;
  --secondary: #b8b5ac;
  --champagne: #e3cda7;
  --hairline: rgba(227, 205, 167, 0.18);

  --serif: "New York", ui-serif, "Newsreader", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --radius-shot: 28px;
  --gutter: 16px;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left));
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--champagne); color: var(--background);
  padding: 8px 14px; border-radius: 999px; z-index: 10;
}
.skip:focus { left: 16px; }

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

/* Header */
.bar {
  position: sticky; top: 0; z-index: 5;
  background: rgba(16, 17, 16, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 0.5px solid var(--hairline);
}
.bar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav a:not(.btn) { color: var(--secondary); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--text); }

/* Buttons — champagne fill, like the app's welcome Start and selected controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--champagne); color: var(--background);
  border-radius: 999px;
  font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: #ecdbbd; }
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 15px; }

/* Type */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--champagne); }
.center { text-align: center; }
.badge {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 0.5px solid rgba(227, 205, 167, 0.45); border-radius: 999px;
  background: var(--deck);
  color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.35;
}
.badge-dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 0 3px rgba(227, 205, 167, 0.18);
}
.foot span a { color: var(--text); }
.nowrap { white-space: nowrap; }
.eyebrow, .index {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--champagne);
}
.lede { color: var(--secondary); font-size: 19px; max-width: 34ch; }
.fine { color: var(--secondary); font-size: 14px; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(48px, 11vw, 92px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }

/* The first two screenshots are one continuous scene — keep them adjacent. */
.pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  max-width: 540px; width: 100%; margin-inline: auto;
}
.pair img, .feature-shot img {
  border-radius: var(--radius-shot);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 0.5px var(--hairline);
}

/* Features */
.features { background: var(--deck); padding: 88px 0; border-block: 0.5px solid var(--hairline); }
.features .wrap { display: grid; gap: 96px; }
.feature { display: grid; gap: 36px; align-items: center; }
.feature-shot { max-width: 340px; width: 80%; margin-inline: auto; }
.feature-copy { display: grid; gap: 16px; max-width: 460px; }
.feature h2 { font-size: clamp(34px, 6vw, 52px); }
.feature-copy > p:not(.index) { color: var(--secondary); }

.points { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 4px; }
.points li { position: relative; padding-left: 26px; }
.points li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--champagne);
}

/* Pricing */
.pricing { padding: 96px 0; }
.pricing h2 { font-size: clamp(34px, 6vw, 52px); max-width: 18ch; margin: 0 auto 48px; }
.plans { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }
.plan {
  background: var(--deck); border: 0.5px solid var(--hairline);
  border-radius: 24px; padding: 28px;
  display: grid; gap: 18px; align-content: start;
}
.plan h3 { font-size: 22px; font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.plan .points li { color: var(--secondary); }
.plan-pro { background: var(--surface); border-color: rgba(227, 205, 167, 0.45); }
.plan-pro .points li { color: var(--text); }
.plan-pro .points li::before { background: var(--champagne); }
.price { display: grid; gap: 6px; color: var(--secondary); font-size: 15px; }
.price strong { margin-right: 6px; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; color: var(--text); letter-spacing: -0.01em; }
.plan-pro .price strong { color: var(--champagne); }

/* FAQ */
.faq { padding: 0 0 96px; }
.faq h2 { font-size: clamp(34px, 6vw, 52px); margin-bottom: 36px; }
.faq-list { max-width: 760px; margin: 0 auto; border-top: 0.5px solid var(--hairline); }
.faq details { border-bottom: 0.5px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 20px 0;
  font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0.5px solid var(--hairline); color: var(--champagne);
  font-weight: 400; font-size: 20px; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--secondary); padding: 0 44px 22px 0; max-width: 64ch; }

/* Closing — shutter motif from the app */
.closing { padding: 40px 0 104px; }
.closing-inner { display: grid; justify-items: center; gap: 26px; text-align: center; }
.closing h2 { font-size: clamp(34px, 6vw, 56px); }
.closing .fine { max-width: 46ch; }
.shutter {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  background: var(--background);
  box-shadow: inset 0 0 0 2px var(--champagne);
}
.shutter::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(244, 241, 234, 0.35);
}
.shutter::after {
  content: ""; position: absolute; inset: 12px; border-radius: 50%;
  background: var(--champagne);
}

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(42px, 8vw, 64px); margin: 14px 0 12px; }
.legal .updated { color: var(--secondary); font-size: 15px; margin-bottom: 36px; }
.legal .summary {
  background: var(--deck); border: 0.5px solid var(--hairline); border-radius: 20px;
  padding: 22px 24px; margin-bottom: 40px;
}
.legal .summary p { color: var(--text); }
.legal h2 { font-size: 21px; font-weight: 600; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--secondary); }
.legal p + p { margin-top: 12px; }
.legal ul + p { margin-top: 16px; }
.legal ul { padding-left: 22px; margin-top: 12px; display: grid; gap: 8px; }
.legal li::marker { color: var(--champagne); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--champagne); text-underline-offset: 3px; text-decoration-thickness: 0.5px; }
.nav a[aria-current="page"] { color: var(--text); }

/* Footer */
.foot { border-top: 0.5px solid var(--hairline); padding: 28px 0 max(28px, env(safe-area-inset-bottom)); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--secondary); font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Wider layouts */
@media (min-width: 720px) {
  .plans { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero { padding: 88px 0 112px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature-shot { width: 100%; }
  .feature.flip .feature-shot { order: 2; }
}

@media (max-width: 820px) {
  .nav .nav-legal { display: none; }
}

@media (max-width: 480px) {
  .nav a:not(.btn) { display: none; }
  .btn:not(.btn-small) { width: 100%; }
  .cta-row .fine { width: 100%; text-align: center; }
  :root { --radius-shot: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
