/* Tempo launch page. Tokens: docs/BRAND.md §3. */
:root {
  --cream: #fbf6f0; --cream-2: #f4ebe2; --peach: #fdebe3; --line: #ecdfd4;
  --ink: #24170f; --ink-2: #5c473c; --ink-3: #8f796d;
  --coral: #e8674f; --coral-ink: #c24a33; --coral-btn: #cf5640; --tip: #ff5a26;
  --knock: var(--cream);                 /* the logo's cut-out colour = what's behind it */
  --max: 1160px;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
h1 em, h2 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--coral); letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 5vw, 54px); }
h3 { font-size: 24px; letter-spacing: -0.015em; line-height: 1.15; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; text-align: center; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
section { padding: 110px 0; }
@media (max-width: 700px) { section { padding: 72px 0; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { font: 600 12.5px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral-ink); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); line-height: 1.55; }

/* phase switch: <body data-phase="waitlist|preorder"> (js/site.js) */
body[data-phase="waitlist"] .only-preorder,
body[data-phase="preorder"] .only-waitlist { display: none !important; }

/* logo */
.logo { display: inline-flex; color: var(--ink); text-decoration: none; }
.logo svg { height: 38px; width: auto; overflow: visible; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 600 16px/1 var(--sans); padding: 16px 24px; border-radius: 999px; text-decoration: none; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; white-space: nowrap; }
.btn-primary { background: var(--coral-btn); color: #fff; box-shadow: 0 10px 24px -12px rgba(207, 86, 64, 0.8); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(207, 86, 64, 0.9); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* nav */
nav.top { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 240, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
nav.top.scrolled { border-color: var(--line); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--ink-2); }
.links a:not(.btn) { text-decoration: none; }
.links a:not(.btn):hover { color: var(--ink); }
.links .btn { padding: 11px 18px; font-size: 14.5px; }
@media (max-width: 760px) { .links a:not(.btn) { display: none; } }

/* hero */
.hero { padding: 56px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 32px; } }
.hero h1 { font-size: clamp(46px, 6.4vw, 84px); margin: 18px 0 22px; }
.hero .lead { margin-bottom: 30px; max-width: 30em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pricing { margin: -10px 0 26px; font-size: 17px; color: var(--ink-2); }
.pricing b { color: var(--ink); font-weight: 700; }

/* email form */
.join { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.join input[type="email"] { flex: 1 1 230px; min-width: 0; font: 400 16px/1 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 16px 20px; outline: none; transition: border-color 0.2s; }
.join input[type="email"]:focus { border-color: var(--coral); }
.join input[aria-invalid="true"] { border-color: var(--coral-btn); }
.join .btn { flex: 0 1 auto; }
.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.join .note { flex-basis: 100%; font-size: 14px; color: var(--ink-3); }
.join .done { flex-basis: 100%; font-size: 17px; font-weight: 600; color: var(--ink); background: var(--peach); border-radius: 16px; padding: 14px 18px; }
.join .done em { font-family: var(--serif); font-weight: 400; color: var(--coral-ink); }
.join .err { flex-basis: 100%; font-size: 14.5px; color: var(--coral-btn); }
.join.sent input, .join.sent .btn, .join.sent .note { display: none; }

/* the film */
.film { margin: 0; position: relative; }
.film video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; background: #e9e1d7; box-shadow: 0 40px 70px -40px rgba(90, 40, 20, 0.5); }
.film figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); text-align: center; }
.sound { position: absolute; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: 600 13.5px/1 var(--sans); color: var(--ink); background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(8px); border-radius: 999px; padding: 10px 14px; }
.sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound .wave { display: none; }
.sound[aria-pressed="true"] .wave { display: inline; }
.sound[aria-pressed="true"] .mute { display: none; }

/* the feeling */
.feeling { background: var(--cream-2); }
.feeling h2 { margin-bottom: 24px; }
.feeling .lead { margin: 0 auto; max-width: 36em; }
.turn { margin-top: 40px; font: 400 italic clamp(23px, 3vw, 31px)/1.3 var(--serif); }
.turn b { font: 700 normal 1em/1.3 var(--sans); color: var(--coral-ink); }

/* four moments */
.moments .wrap { display: grid; gap: 28px; }
.moment { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.moment:first-child { border-top: 0; }
.moment:nth-child(even) { grid-template-columns: 1fr 300px; }
.moment:nth-child(even) .clip { order: 2; }
@media (max-width: 760px) { .moment, .moment:nth-child(even) { grid-template-columns: 1fr; gap: 22px; } .moment:nth-child(even) .clip { order: 0; } }
.clip { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; background: #e9e1d7; }
.moment .num { font: 500 italic 18px/1 var(--serif); color: var(--coral-ink); margin-bottom: 14px; }
.moment h3 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.025em; margin-bottom: 14px; }
.moment p:not(.num) { color: var(--ink-2); font-size: 18px; max-width: 32em; }
.moment .soon { margin-top: 14px; font-size: 15px !important; color: var(--ink-3) !important; }

/* fits your setup */
.fits { background: var(--cream-2); }
.fits h2 { text-align: center; margin-bottom: 52px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--peach); margin-bottom: 18px; }
.card .ic svg { width: 22px; height: 22px; fill: none; stroke: var(--coral-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 16px; }

/* join / pre-order */
.offer { display: grid; grid-template-columns: 1fr 1.1fr; border-radius: 32px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -55px rgba(90, 40, 20, 0.5); }
@media (max-width: 900px) { .offer { grid-template-columns: 1fr; } }
.offer-media .clip { border-radius: 0; height: 100%; }
.offer-body { padding: 48px; }
@media (max-width: 560px) { .offer-body { padding: 28px 20px; } }
.offer h2 { font-size: clamp(36px, 4vw, 48px); margin: 12px 0 8px; }
.price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.price .amt { font: 700 48px/1 var(--sans); letter-spacing: -0.03em; }
.price .per { color: var(--ink-3); }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 13px; height: 7px; border-left: 2px solid var(--coral); border-bottom: 2px solid var(--coral); transform: rotate(-45deg); }
.fine { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 56px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }
details { border-top: 1px solid var(--line); padding: 20px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; font: 600 18px/1.35 var(--sans); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 26px/1 var(--sans); color: var(--coral); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 10px; color: var(--ink-2); max-width: 40em; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--ink-3); font-size: 14.5px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .logo svg { height: 32px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
