/* Loud Poster, as in App/Theme.swift: black at bedtime, yellow when it rings. */
@font-face { font-family: "Anton"; src: url("/assets/anton.woff2") format("woff2"); font-display: swap; }

:root {
  --yellow: #fff100;
  --black: #000;
  --red: #ed0024;
  --card: #171717;
  --line: #383838;
  --dim: #adadad;
  --text: #f2f2f2;
  --poster: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--black); color: var(--text); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--black); padding: 8px 14px; z-index: 10; font-weight: 800; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--poster); font-weight: 400; line-height: 1.02; letter-spacing: .005em; margin: 0 0 .4em; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }

/* Header and footer */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter); background: var(--black); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--yellow); text-decoration: none; font: 1.55rem/1 var(--poster); }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.top nav a { color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem; }
.top nav a:hover { color: var(--yellow); }
@media (max-width: 560px) { .top nav a:not(:last-child) { display: none; } }

.foot { border-top: 1px solid var(--line); padding: 48px var(--gutter) 56px; }
.foot-in { max-width: var(--max); margin: 0 auto; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot h2 { font-size: 1.5rem; color: var(--yellow); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 8px; }
.foot a { color: var(--text); }
.fine { grid-column: 1 / -1; color: var(--dim); font-size: .85rem; margin: 0; }

/* The App Store button */
.store { display: inline-flex; align-items: center; min-height: 56px; padding: 0 26px; border-radius: 999px; background: var(--black); color: var(--yellow);
  font: 1.35rem/1 var(--poster); text-decoration: none; letter-spacing: .01em; }
.store.soon { cursor: default; }
.on-black .store, .read .store { background: var(--yellow); color: var(--black); }

/* Phones: real app screens */
.phone { width: 300px; border-radius: 40px; border: 7px solid var(--black); background: var(--black); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.on-black .phone { border-color: #1f1f1f; box-shadow: none; }

/* Home sections */
.band-y, .band-k { padding: clamp(56px, 9vw, 112px) var(--gutter); }
.band-y { background: var(--yellow); color: var(--black); }
.band-y a:not(.store) { color: var(--black); }
.band-k + .band-k { border-top: 1px solid var(--line); }
.inner { max-width: var(--max); margin: 0 auto; }
.kicker { font: 1.15rem/1 var(--poster); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 18px; }
.band-k .kicker { color: var(--yellow); }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 34rem; }
.section-head { max-width: 44rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--dim); font-size: 1.1rem; }
.band-y .section-head p { color: #222; }

.hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: 0; overflow: hidden; }
.hero .inner { display: grid; gap: 40px; align-items: end; grid-template-columns: 1fr; }
.hero h1 { font-size: clamp(3.6rem, 15vw, 8rem); line-height: .98; margin-bottom: .3em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero .facts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }
.hero .facts li::before { content: "\2713"; margin-right: 8px; }
.hero-text { padding-bottom: clamp(40px, 6vw, 88px); }
.hero-phones { display: flex; justify-content: center; gap: 0; margin-bottom: -60px; }
.hero-phones .phone { width: min(62vw, 280px); position: relative; }
.hero-phones .phone + .phone { margin-left: 20px; margin-top: 70px; }
@media (max-width: 699px) { .hero-phones .phone + .phone { display: none; } }
@media (min-width: 900px) {
  .hero .inner { grid-template-columns: 1.1fr 1fr; }
  .hero-phones { justify-content: flex-end; }
}

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li { display: flex; flex-direction: column; gap: 16px; }
.steps .n { font: 4.5rem/1 var(--poster); color: var(--yellow); }
.steps h3 { margin: 0; }
.steps p { color: var(--dim); margin: 0; }
.steps .phone { width: min(100%, 280px); margin-top: 8px; }

/* Tasks */
.tasks { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.task { background: var(--black); color: var(--text); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.task h3 { color: var(--yellow); font-size: 2.3rem; margin: 0; }
.task p { margin: 0; }
.task .phone { width: min(100%, 260px); margin: 18px auto 0; border-color: #1f1f1f; box-shadow: none; }
.tag { align-self: flex-start; font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--yellow); color: var(--black); }
.tag.paid { background: transparent; color: var(--yellow); border: 2px solid var(--yellow); }

/* Ring timeline */
.rings { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.rings li { background: var(--card); border-radius: 16px; padding: 16px 8px; text-align: center; }
.rings b { display: block; font: clamp(1.4rem, 3.4vw, 2.4rem)/1 var(--poster); color: var(--yellow); font-weight: 400; }
.rings span { display: block; color: var(--dim); font-size: .8rem; margin-top: 6px; }
.rings li.first { background: var(--yellow); }
.rings li.first b, .rings li.first span { color: var(--black); }
@media (max-width: 640px) { .rings { grid-template-columns: repeat(3, 1fr); } }
.two { display: grid; gap: 24px 48px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.two p { color: var(--dim); }
.two strong { color: var(--text); }

/* Price */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.plan { border-radius: 28px; padding: clamp(24px, 4vw, 40px); background: var(--black); color: var(--text); }
.plan.free { background: transparent; color: var(--black); border: 4px solid var(--black); }
.plan .amount { font: clamp(3.6rem, 9vw, 5.5rem)/1 var(--poster); margin: 4px 0 6px; }
.plan.paid .amount { color: var(--yellow); }
.plan .per { font-weight: 800; margin-bottom: 20px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { padding: 10px 0; border-top: 2px solid currentColor; font-weight: 600; }
.plan.paid li { border-color: var(--line); }
.price-note { margin-top: 24px; font-weight: 700; }

/* Bedtime and privacy */
.split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
.split .phones { display: flex; gap: 16px; justify-content: center; }
.split .phones .phone { width: min(44vw, 260px); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding: 12px 0; border-top: 1px solid var(--line); }
.checks li::before { content: "\2713"; color: var(--yellow); font-weight: 900; margin-right: 10px; }

/* Questions */
.qa { max-width: 52rem; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 800; font-size: 1.15rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 2rem/1 var(--poster); color: var(--yellow); }
.qa details[open] summary::after { content: "\2212"; }
.qa details p { color: var(--dim); margin: 0 0 20px; max-width: 46rem; }

.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.guide-list a { display: block; padding: 20px 22px; border-radius: 18px; background: var(--card); color: var(--text); text-decoration: none; font-weight: 800; }
.guide-list a:hover { background: #222; color: var(--yellow); }
.cta-end { text-align: center; }
.cta-end h2 { font-size: clamp(3rem, 9vw, 6rem); }

/* Reading pages: guides, legal, 404 */
.read { max-width: 44rem; margin: 0 auto; padding: 40px var(--gutter) 72px; }
.read h1 { font-size: clamp(2.8rem, 8vw, 4.6rem); color: var(--yellow); margin-top: .2em; }
.read h2 { font-size: clamp(1.9rem, 4.5vw, 2.5rem); margin-top: 1.6em; color: var(--yellow); }
.read h3 { margin-top: 1.4em; }
.read ul, .read ol { padding-left: 1.3em; }
.read li { margin: 0 0 .5em; }
.read strong { color: #fff; }
.read .phone { width: min(70vw, 280px); margin: 32px auto; border-color: #1f1f1f; box-shadow: none; }
.crumb { color: var(--dim); font-size: .95rem; margin: 0; }
.crumb a { color: var(--dim); }
.updated { color: var(--dim); font-size: .95rem; }
.read table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .97rem; }
.read th, .read td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.read th { color: var(--yellow); font-weight: 800; }
.table-wrap { overflow-x: auto; }
.band { margin-top: 56px; padding: 32px; border-radius: 28px; background: var(--yellow); color: var(--black); }
.band h2 { margin-top: 0; color: var(--black); }
.band .store { background: var(--black); color: var(--yellow); }
.callout { border-left: 4px solid var(--yellow); padding: 4px 0 4px 18px; margin: 0 0 1.4em; }

@media (prefers-reduced-motion: no-preference) {
  a, .guide-list a { transition: color .15s, background-color .15s; }
}
