/* Previously — marketing site
   "Signal" design system: warm near-black + amber #F2A93B, ink-on-amber #1C1200,
   bezel #15120e. Type carries the personality: heavy tight display headlines with
   amber emphasis, dot-eyebrow labels. Signature: the rewind "‹‹" chevron — the
   "previously on…" recap made into a mark. System fonts only, no external assets. */

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

:root {
  --amber: #F2A93B;
  --amber-bright: #F7B54E;
  --amber-deep: #C77E14;
  --ink: #1C1200;              /* ink on amber */
  --bezel: #15120e;
  --screen: #050505;

  --bg: #08070a;
  --text: #ffffff;
  --muted: rgba(255,255,255,.66);
  --faint: rgba(255,255,255,.58);
  --hair: rgba(255,255,255,.12);
  --card: rgba(255,255,255,.035);
  --card-line: rgba(255,255,255,.09);

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);

  --font: -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  /* Warm near-black canvas with a soft amber wash top-centre so content lifts
     off the background instead of sinking into flat black. */
  background-image:
    radial-gradient(1200px 900px at 50% -8%, rgba(242,169,59,.16), transparent 62%),
    radial-gradient(900px 700px at 100% 4%, rgba(74,61,99,.28), transparent 60%),
    linear-gradient(180deg, #100c08 0%, #0a0806 30%, #08070a 100%);
  background-attachment: fixed;
}

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

a { color: inherit; text-decoration: none; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(242,169,59,.2); }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

#features, #privacy, #pricing, #faq { scroll-margin-top: 80px; }

/* Focus visibility — quality floor */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ============================ Eyebrow label ============================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 16px rgba(242,169,59,.6);
  flex: none;
}

/* ============================ Header ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(10,8,6,.62);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(10,8,6,.82);
  border-bottom-color: var(--hair);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
}
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.08);
}
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__name { color: #fff; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav__links {
  display: flex;
  gap: 30px;
}
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: #fff; }

@media (max-width: 720px) {
  .nav { gap: 12px; }
  .nav__links { gap: 14px; }
  .nav__links .nav-optional { display: none; }
  .nav__links a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
}
.btn:active { transform: translateY(1px); }

/* Apple-style App Store badge (drawn, not hotlinked) */
.btn-appstore {
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 13px;
  padding: 9px 16px 9px 14px;
  line-height: 1;
}
.btn-appstore:hover { border-color: rgba(255,255,255,.5); }
.btn-appstore svg { width: 26px; height: 26px; flex: none; }
.btn-appstore .badge-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.btn-appstore .badge-small { font-size: 10px; font-weight: 500; letter-spacing: .02em; opacity: .92; }
.btn-appstore .badge-large { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

.btn-appstore--sm { padding: 7px 13px 7px 11px; border-radius: 11px; }
.btn-appstore--sm svg { width: 21px; height: 21px; }
.btn-appstore--sm .badge-small { font-size: 8.5px; }
.btn-appstore--sm .badge-large { font-size: 15px; }

@media (max-width: 560px) {
  .header-cta .badge-txt { display: none; }
  .header-cta.btn-appstore--sm { padding: 8px; }
  .header-cta.btn-appstore--sm svg { width: 22px; height: 22px; }
}

@media (max-width: 420px) {
  .site-header .brand__name { display: none; }
  .header-inner { gap: 14px; }
}

/* ============================ Hero ============================ */
.hero {
  position: relative;
  padding-top: clamp(56px, 9vw, 104px);
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
}
/* Ghost rewind chevrons bleeding off the right edge — the signature, lifted
   straight from the app screenshots. */
.hero::before {
  content: "\2039\2039";
  position: absolute;
  right: -6%;
  top: 8%;
  font-size: clamp(320px, 46vw, 720px);
  font-weight: 800;
  letter-spacing: -.14em;
  line-height: 1;
  color: rgba(242,169,59,.10);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-copy { max-width: 620px; }
.hero h1 {
  margin-top: 26px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
}

/* ============================ Trust strip ============================ */
.proof-strip {
  border-block: 1px solid var(--hair);
  background: rgba(0,0,0,.2);
}
.proof-strip__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.proof-strip__inner span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
}
.proof-strip__inner span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede {
  margin-top: 26px;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 30em;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 14px;
  color: var(--faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-note::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  flex: none;
}

.hero-device { justify-self: center; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: none; }
  .hero-device { order: -1; }
}

/* ============================ iPhone device frame ============================ */
.device {
  position: relative;
  width: min(320px, 74vw);
  margin-inline: auto;
}
.device .bezel {
  background: var(--bezel);
  border-radius: 14% / 6.6%;
  padding: 2.1%;
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.12),
    0 0 90px rgba(242,169,59,.10),
    0 40px 80px rgba(0,0,0,.6),
    0 12px 28px rgba(0,0,0,.5);
}
.device .screen {
  position: relative;
  border-radius: 12% / 5.8%;
  overflow: hidden;
  background: var(--screen);
}
.device .screen img { width: 100%; height: auto; display: block; }
.device .island {
  position: absolute;
  top: 2.6%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  aspect-ratio: 10 / 3;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
/* subtle amber glow floor under the device */
.device::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%;
  bottom: -6%;
  height: 40px;
  background: radial-gradient(60% 100% at 50% 0, rgba(242,169,59,.22), transparent 70%);
  filter: blur(14px);
  z-index: -1;
}

/* ============================ Feature rows ============================ */
.features { padding: clamp(40px, 7vw, 80px) 0 clamp(20px, 3vw, 40px); }

.feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding: clamp(40px, 6vw, 72px) 0;
}
.feature + .feature { border-top: 1px solid var(--hair); }
.feature__media { justify-self: center; }
.feature__body { max-width: 480px; }
.feature__body h2 {
  margin-top: 20px;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.inline-cta {
  margin: 18px 0 70px;
  padding: 26px 30px;
  border: 1px solid var(--card-line);
  border-radius: 18px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.inline-cta p { font-size: 18px; font-weight: 650; }
.text-cta { color: var(--amber); font-weight: 750; white-space: nowrap; }
.text-cta:hover { color: var(--amber-bright); }
.text-cta span { display: inline-block; transition: transform .18s var(--ease); }
.text-cta:hover span { transform: translateX(3px); }

@media (max-width: 620px) {
  .inline-cta { align-items: flex-start; flex-direction: column; }
}
.feature__body h2 em { font-style: normal; color: var(--amber); }
.feature__body p {
  margin-top: 18px;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}
.feature__list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
}
.feature__list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15.5px;
  color: rgba(255,255,255,.8);
}
.feature__list li::before {
  content: "";
  margin-top: 7px;
  width: 14px; height: 8px;
  flex: none;
  border-left: 2.5px solid var(--amber);
  border-bottom: 2.5px solid var(--amber);
  transform: rotate(-45deg);
  border-bottom-left-radius: 2px;
}

/* alternate the image side */
.feature:nth-child(even) .feature__media { order: 2; }
.feature:nth-child(even) .feature__body { order: 1; }

/* Amber highlight panel (echoes the amber App Store shots) */
.feature--amber {
  background: linear-gradient(168deg, var(--amber-bright) 0%, var(--amber) 48%, #DD8F14 100%);
  color: var(--ink);
  border-radius: 28px;
  padding: clamp(36px, 5vw, 64px);
  margin: clamp(28px, 4vw, 48px) 0;
  overflow: hidden;
}
.feature--amber .eyebrow { color: var(--ink); }
.feature--amber .eyebrow::before { background: var(--ink); box-shadow: none; }
.feature--amber h2 { color: var(--ink); }
.feature--amber h2 em { color: #fff; }
.feature--amber p { color: rgba(28,18,0,.78); }
.feature--amber .feature__list li { color: rgba(28,18,0,.86); }
.feature--amber .feature__list li::before { border-color: var(--ink); }
.feature--amber + .feature { border-top: none; }
.feature--amber .device .bezel {
  box-shadow: 0 40px 80px rgba(92,56,0,.45), 0 12px 28px rgba(92,56,0,.3);
}
/* ghost score watermark for the stats panel */
.feature--amber .feature__body { position: relative; }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature__body { max-width: none; text-align: left; }
  .feature__media { order: -1 !important; }
  .feature:nth-child(even) .feature__media { order: -1; }
  .feature:nth-child(even) .feature__body { order: 0; }
  .feature--amber { text-align: left; }
}

/* ============================ Privacy section ============================ */
.privacy-band {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0;
  border-top: 1px solid var(--hair);
  overflow: hidden;
}
.privacy-band::before {
  content: "\2039\2039";
  position: absolute;
  left: -8%; bottom: -18%;
  font-size: clamp(280px, 40vw, 560px);
  font-weight: 800;
  letter-spacing: -.14em;
  line-height: 1;
  color: rgba(242,169,59,.06);
  pointer-events: none;
}
.privacy-band .section-head { position: relative; z-index: 1; max-width: 640px; }
.section-head h2 {
  margin-top: 20px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.section-head h2 em { font-style: normal; color: var(--amber); }
.section-head p {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 34em;
}
.privacy-cards {
  position: relative;
  z-index: 1;
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pcard {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  padding: 28px;
}
.pcard__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(242,169,59,.12);
  border: 1px solid rgba(242,169,59,.28);
  color: var(--amber);
  margin-bottom: 18px;
}
.pcard__icon svg { width: 22px; height: 22px; }
.pcard h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.pcard p { margin-top: 8px; font-size: 15px; color: var(--muted); line-height: 1.5; }

@media (max-width: 760px) {
  .privacy-cards { grid-template-columns: 1fr; }
}

/* ============================ Pricing line ============================ */
.pricing {
  padding: clamp(48px, 7vw, 88px) 0;
  border-top: 1px solid var(--hair);
  text-align: center;
}
.pricing h2 {
  margin: 20px auto 0;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  max-width: 20em;
  text-wrap: balance;
}
.pricing h2 em { font-style: normal; color: var(--amber); }
.pricing .pricing-lede {
  max-width: 42em;
  margin: 18px auto 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.pricing .pricing-sub { font-size: 15px; font-weight: 500; color: var(--faint); margin-top: 22px; }

/* ============================ FAQ ============================ */
.faq { padding: clamp(56px, 9vw, 104px) 0; border-top: 1px solid var(--hair); }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(36px, 7vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--hair); }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary {
  min-height: 68px;
  padding: 20px 42px 20px 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 17px;
  color: var(--amber);
  font-size: 25px;
  font-weight: 400;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 42px 22px 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.faq-list summary:hover { color: var(--amber-bright); }
.faq-list summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 4px; }
@media (max-width: 760px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ============================ Footer ============================ */
.site-footer {
  border-top: 1px solid var(--hair);
  padding: clamp(44px, 6vw, 72px) 0 40px;
  background: rgba(0,0,0,.3);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { max-width: 300px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--faint); line-height: 1.5; }
.footer-cols {
  display: flex;
  gap: clamp(36px, 6vw, 72px);
  flex-wrap: wrap;
}
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--faint);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: var(--muted);
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--faint);
}
.footer-bottom .attribution a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255,255,255,.3);
}
.footer-bottom .attribution a:hover { color: #fff; text-decoration-color: var(--amber); }
/* retro color-bar rule — the one nod to the icon's test-pattern bars */
.bar-rule {
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg,
    #EDE6D6 0 16.66%, #F2A93B 16.66% 33.33%, #E4572E 33.33% 50%,
    #C9518A 50% 66.66%, #3E7CB1 66.66% 83.33%, #2A9D8F 83.33% 100%);
  opacity: .8;
  margin-bottom: 36px;
}

/* ============================ Long-form prose (privacy / support) ============================ */
.page-hero {
  padding: clamp(56px, 9vw, 96px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--hair);
}
.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.02;
  text-wrap: balance;
}
.page-hero p { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 40em; }

.prose {
  padding: clamp(36px, 5vw, 56px) 0 clamp(64px, 9vw, 96px);
  max-width: 760px;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2em;
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
}
.prose h3 {
  margin-top: 1.6em;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}
.prose p, .prose li {
  font-size: 17px;
  line-height: 1.62;
  color: var(--muted);
}
.prose strong { color: #fff; font-weight: 600; }
.prose a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(242,169,59,.4);
}
.prose a:hover { text-decoration-color: var(--amber); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--amber); }
.prose hr { border: none; border-top: 1px solid var(--hair); margin: 2.2em 0; }
.prose .muted-note {
  font-size: 14px;
  color: var(--faint);
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 14px;
}

/* ============================ Scroll reveal ============================ */
/* Gated on .js (set by inline script) so content stays visible without JavaScript */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 760px) {
  body { background-attachment: scroll; }
}
