/* DayTone website. One look: night ground, coral signal, morning cream bands. Poppins throughout. */
:root {
  --night: #090A09;
  --panel: #171916;
  --panel-2: #1F221E;
  --line: #2A2D29;
  --line-2: #3A3D38;
  --cream: #F4EEE6;
  --cream-2: #E9E2DA;
  --ink: #10100F;
  --ink-soft: #55534E;
  --text: #F4EEE6;
  --text-2: #D6D2CB;
  --muted: #A8AAA2;
  --dim: #8F918A;
  --coral: #FF6545;
  --coral-hi: #FF8268;
  --coral-deep: #E4553A;
  --coral-ink: #B53A22;
  --green: #5FCB8A;
  --amber: #F2B84B;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 6vw, 120px);
  --section: clamp(56px, 9vw, 112px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; letter-spacing: -0.03em; font-weight: 700; }
a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-hi); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
button { font: inherit; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral-hi); }
.h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.cream { background: var(--cream); color: var(--ink); }
.cream .eyebrow { color: var(--coral-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 26px; border-radius: 999px; font-size: 17px; font-weight: 600; line-height: 1.2; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: #111210; }
.btn-primary:hover { background: var(--coral-hi); color: #111210; }
.btn-ghost { border: 1.5px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { color: var(--text); border-color: var(--dim); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { color: var(--cream); background: #26241f; }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(9, 10, 9, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.logo:hover { color: var(--text); }
.logo img { width: 32px; height: 32px; display: block; }
.site-nav { display: flex; gap: 30px; margin-left: auto; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--text-2); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-header .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
@media (max-width: 820px) { .site-nav { display: none; } .site-header .btn { margin-left: auto; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 110px); }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.fine { font-size: 14px; color: var(--dim); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: blink 1.4s ease-in-out infinite; }
.hero-stage { position: relative; height: clamp(520px, 52vw, 700px); min-width: 0; }
.hero-stage .pulse { position: absolute; left: 50%; top: 50%; width: min(640px, 110%); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--coral); transform: translate(-50%, -50%) scale(.55); opacity: 0; animation: pulse 3.6s ease-out infinite; }
.hero-stage .pulse:nth-child(2) { animation-delay: 1.2s; }
.hero-stage .pulse:nth-child(3) { animation-delay: 2.4s; }
.hero-stage .phone-a { position: absolute; left: 18%; top: 2%; width: 44%; max-width: 300px; }
.hero-stage .phone-b { position: absolute; left: 54%; top: 16%; width: 40%; max-width: 272px; }
.chip-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; animation: float 6s ease-in-out infinite; }
.chip-float i { width: 8px; height: 8px; border-radius: 50%; }
.chip-float.c2 { animation-delay: -2s; } .chip-float.c3 { animation-delay: -4s; }
.toast { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--cream); color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: 0 20px 40px rgba(0,0,0,.45); animation: float 6s ease-in-out infinite; white-space: nowrap; }
.toast span { width: 26px; height: 26px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { height: clamp(470px, 122vw, 620px); }
  .hero-stage .chip-float:not(.c2):not(.c3) { top: 0 !important; left: 0 !important; }
  .hero-stage .phone-a { left: 8%; width: 52%; }
  .hero-stage .phone-b { left: 50%; width: 46%; }
}

/* iPhone frame (iPhone 17 Pro proportions: 402 x 874 pt display). All inner sizes use cqw, so the phone scales as one piece. */
.iphone { position: relative; container-type: inline-size; aspect-ratio: 430 / 902; border-radius: 17.2% / 8.2%; background: #1b1c1e; box-shadow: inset 0 0 0 1.5px #5b5e63, inset 0 0 0 4px #2c2e31, 0 40px 80px rgba(0,0,0,.5), 0 8px 20px rgba(0,0,0,.35); }
.iphone.light { background: #dcd6ce; box-shadow: inset 0 0 0 1.5px #f5f1ea, inset 0 0 0 4px #bdb6ad, 0 40px 80px rgba(0,0,0,.45), 0 8px 20px rgba(0,0,0,.3); }
.iphone .side { position: absolute; width: 1.1%; border-radius: 2px; background: inherit; box-shadow: inset 0 0 0 1px #5b5e63; }
.iphone.light .side { box-shadow: inset 0 0 0 1px #f5f1ea; }
.iphone .s-action { left: -0.8%; top: 17%; height: 5%; }
.iphone .s-up { left: -0.8%; top: 25%; height: 8.5%; }
.iphone .s-down { left: -0.8%; top: 35.5%; height: 8.5%; }
.iphone .s-power { right: -0.8%; top: 28%; height: 12.5%; }
.iphone .screen { position: absolute; inset: 1.62% 3.4%; border-radius: 13.6% / 6.3%; overflow: hidden; background: #0F100F; color: var(--text); display: flex; flex-direction: column; gap: 3cqw; padding: 16cqw 4.5cqw 4.5cqw; font-size: 4cqw; line-height: 1.35; }
.iphone.light .screen { background: var(--cream); color: var(--ink); }
.iphone .island { position: absolute; left: 50%; top: 2.9cqw; width: 31cqw; height: 9.2cqw; transform: translateX(-50%); border-radius: 99px; background: #000; }
.iphone .screen.shot { padding: 0; gap: 0; background: #000; }
.iphone .screen.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Equalizer */
.eq { display: flex; align-items: flex-end; gap: 3px; }
.eq i { display: block; flex: 1; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(3n) { animation-duration: .7s; animation-delay: -.3s; }
.eq i:nth-child(3n+1) { animation-duration: 1.1s; animation-delay: -.6s; }
.eq i:nth-child(4n) { animation-duration: .8s; animation-delay: -.15s; }

/* How it works */
.timeline { position: relative; height: 56px; margin-top: 28px; }
.timeline .rail, .timeline .fill { position: absolute; left: 28px; top: 27px; height: 2px; }
.timeline .rail { right: 28px; background: var(--line); }
.timeline .fill { width: calc(100% - 56px); background: var(--coral); transform-origin: left; animation: track 7s ease-in-out infinite; }
.timeline .node { position: absolute; top: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1.5px solid var(--line-2); }
.timeline .node:nth-of-type(1) { left: 0; } .timeline .node:nth-of-type(2) { left: calc(50% - 28px); } .timeline .node:nth-of-type(3) { right: 0; background: var(--coral); border-color: var(--coral); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 12px; }
.card { background: var(--panel); border-radius: 28px; padding: clamp(24px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; line-height: 1.25; }
.card p { color: var(--muted); }
.card .when { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--dim); }
.card .when.now { color: var(--coral-hi); }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } .timeline { display: none; } }

/* Reliability */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.ring-card { background: var(--panel); border-radius: 28px; padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.ring-time { font-size: clamp(64px, 7vw, 88px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.ring-time small { font-size: .32em; font-weight: 600; letter-spacing: 0; }
.now-playing { display: flex; align-items: center; gap: 16px; color: var(--green); transition: color .3s ease; font-weight: 600; font-size: 15px; }
.now-playing .eq { width: min(180px, 40%); height: 40px; }
.ring-card[data-backup="true"] .now-playing { color: var(--coral); }
.outcome { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-radius: 18px; background: var(--panel-2); border: 1.5px solid var(--panel-2); color: var(--text); text-align: left; cursor: pointer; transition: border-color .3s ease; }
.outcome b { display: block; font-size: 17px; font-weight: 600; }
.outcome span.t { color: var(--muted); font-size: 15px; }
.outcome .d { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.ring-card[data-backup="false"] .outcome.song { border-color: var(--green); }
.ring-card[data-backup="true"] .outcome.backup { border-color: var(--coral); }
.divider { height: 1px; background: var(--line); }

/* Your rules */
.rules { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; padding-top: 20px; }
@media (max-width: 900px) { .rules { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.tones { display: flex; flex-wrap: wrap; gap: 12px; }
.tone { min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 0; background: var(--cream-2); color: var(--ink); font-size: 17px; font-weight: 600; cursor: pointer; transition: background .2s ease; }
.tone:hover { background: #ddd5cb; }
.tone[aria-pressed="true"] { background: var(--coral); color: #111210; }
.voice { background: var(--ink); color: var(--cream); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 18px; justify-content: space-between; min-height: 260px; }
.voice .who { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--coral-hi); text-transform: uppercase; }
.voice .who span { width: 44px; height: 44px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; }
.voice .line { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.voice .eq { height: 48px; color: var(--coral); }
.muted-ink { color: var(--ink-soft); font-size: 18px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 20px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { border-radius: 22px; padding: 28px; }
.feature h3 { font-size: 20px; }
.feature p { font-size: 15px; }
.icon-tile { width: 44px; height: 44px; border-radius: 14px; background: #241815; display: grid; place-items: center; }
.icon-tile svg { width: 22px; height: 22px; }

/* Inside the app */
.strip { overflow: hidden; padding-block: 40px 10px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.strip-track { display: flex; gap: 32px; width: max-content; animation: marquee 50s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip .iphone { width: clamp(200px, 20vw, 250px); flex-shrink: 0; box-shadow: inset 0 0 0 1.5px #5b5e63, inset 0 0 0 4px #2c2e31, 0 24px 48px rgba(0,0,0,.45); }
.strip .iphone.light { box-shadow: inset 0 0 0 1.5px #f5f1ea, inset 0 0 0 4px #bdb6ad, 0 24px 48px rgba(0,0,0,.45); }

/* After the alarm */
.coral-band { position: relative; overflow: hidden; background: var(--coral); color: var(--ink); }
.coral-band .eq { position: absolute; right: var(--gutter); bottom: 0; width: min(520px, 70%); height: min(300px, 55%); gap: 8px; color: var(--coral-deep); }
.coral-band .wrap { position: relative; }
.coral-band .eyebrow { color: var(--ink); }
.quote { max-width: 900px; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.12; }
.replay { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; }
.replay span { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
@media (max-width: 700px) { .coral-band .section { padding-bottom: 170px; } }

/* Privacy teaser */
.privacy-list { display: flex; flex-direction: column; gap: 14px; }
.privacy-list .card { border-radius: 22px; padding: 22px; gap: 4px; }
.privacy-list h3 { font-size: 17px; }
.privacy-list p { font-size: 15px; }

/* Closing */
.closing { position: relative; overflow: hidden; text-align: center; }
.closing .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; padding-block: clamp(80px, 10vw, 120px) clamp(220px, 24vw, 300px); }
.closing h2 { font-size: clamp(36px, 5vw, 64px); }
.closing .fine { color: var(--ink-soft); }
.sun { position: absolute; left: 50%; bottom: 0; width: clamp(300px, 40vw, 560px); aspect-ratio: 1; border-radius: 50%; background: var(--coral); transform: translate(-50%, 58%); animation: sun 9s ease-in-out infinite alternate; }
.rays { position: absolute; left: 50%; top: 100%; width: clamp(480px, 64vw, 900px); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .35; animation: spin 60s linear infinite; }

.closing-mark { width: clamp(72px, 8vw, 96px); height: auto; }

/* Footer */
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 32px; font-size: 14px; color: var(--dim); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-left: auto; }
.site-footer a, .site-footer span { color: var(--muted); }
@media (max-width: 620px) { .site-footer .links { margin-left: 0; } }

/* Document pages (privacy, support) */
.doc { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: clamp(40px, 7vw, 96px); padding-block: clamp(48px, 7vw, 96px) var(--section); }
.doc-toc { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.doc-toc p { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--dim); }
.doc-toc a { color: var(--text-2); font-size: 15px; }
.doc-body { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.doc-body h1 { font-size: clamp(40px, 5vw, 64px); }
.doc-body h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.doc-body section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 100px; }
.doc-body p, .doc-body li { font-size: 17px; color: var(--muted); }
.doc-body p a, .doc-body li a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.draft, .doc-body .draft { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #111210; background: var(--amber); padding: 5px 10px; border-radius: 6px; }
.placeholder { color: var(--amber) !important; border: 1px dashed #5A4A22; border-radius: 12px; padding: 14px 18px; }
@media (max-width: 860px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc-toc { position: static; } }

.support { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); padding-block: clamp(48px, 7vw, 96px) var(--section); }
@media (max-width: 900px) { .support { grid-template-columns: minmax(0, 1fr); } }
.support h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.mail-card { background: var(--coral); color: var(--ink); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.mail-card .addr { font-size: clamp(20px, 2vw, 24px); font-weight: 700; overflow-wrap: anywhere; }
.mail-card .row { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--panel); border-radius: 22px; padding: 6px 26px; }
.faq summary { list-style: none; display: flex; align-items: center; gap: 16px; min-height: 64px; cursor: pointer; font-size: clamp(17px, 1.5vw, 19px); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 24px; color: var(--coral); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* Motion */
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes pulse { 0% { transform: translate(-50%, -50%) scale(.55); opacity: .55; } 100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sun { from { transform: translate(-50%, 58%); } to { transform: translate(-50%, 34%); } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes track { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
@keyframes blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-stage .pulse { opacity: .2; }
  html { scroll-behavior: auto; }
}
