/* Animo website. Brand: docs/DECISIONS.md (Cobalt & Tangerine, Lora + Raleway, teardrop). */
@font-face { font-family: "Lora"; src: url("../assets/fonts/Lora_500Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../assets/fonts/Lora_600SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../assets/fonts/Lora_500Medium_Italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../assets/fonts/Raleway_400Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../assets/fonts/Raleway_500Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../assets/fonts/Raleway_600SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("../assets/fonts/Raleway_700Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --cobalt: #1F4FB8;
  --cobalt-deep: #183F95;
  --cobalt-soft: #86A8FF;
  --sun: #FF9E57;
  --sun-soft: #FFC79A;
  --bg: #F0F3F8;
  --surface: #FFFFFF;
  --surface-alt: #E1E7F2;
  --text: #111E3A;
  --muted: #55607A;
  --border: #D5DDEB;
  --night: #0B1226;
  --night-2: #121C38;
  --night-3: #1A2749;
  --night-text: #E9EEFA;
  --night-muted: #9DAACB;
  --radius: 24px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cobalt); }
.section { padding-block: 80px; }
.section-head { max-width: 640px; display: grid; gap: 14px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 5.4vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; font: 600 16px/1 var(--sans); cursor: pointer; text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.btn:active { transform: scale(.98); }
.btn-sun { background: var(--sun); color: #1A1206; box-shadow: 0 8px 24px rgba(255, 158, 87, .28); }
.btn-sun:hover { background: #FFAD70; color: #1A1206; }
.btn-cobalt { background: var(--cobalt); color: #fff; }
.btn-cobalt:hover { background: var(--cobalt-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--night-text); border: 1.5px solid rgba(233, 238, 250, .35); min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-ghost:hover { border-color: var(--night-text); color: #fff; }

/* header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; padding-top: max(16px, env(safe-area-inset-top, 0px)); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--night-text); text-decoration: none; font: 600 24px/1 var(--serif); }
.brand:hover { color: #fff; }
.brand img { width: 38px; height: 38px; }

/* hero: the night, like the reels */
.hero { position: relative; overflow: hidden; color: var(--night-text); background:
  radial-gradient(1200px 520px at 80% -10%, rgba(134, 168, 255, .22), transparent 60%),
  linear-gradient(180deg, #070B18 0%, var(--night) 45%, #10204A 100%); padding: 132px 0 0; }
.hero .stars { position: absolute; inset: 0; pointer-events: none; background-image:
  radial-gradient(1.5px 1.5px at 12% 18%, rgba(233,238,250,.8), transparent 60%), radial-gradient(1px 1px at 28% 32%, rgba(233,238,250,.6), transparent 60%),
  radial-gradient(1.5px 1.5px at 46% 12%, rgba(233,238,250,.7), transparent 60%), radial-gradient(1px 1px at 63% 26%, rgba(233,238,250,.5), transparent 60%),
  radial-gradient(1.5px 1.5px at 74% 44%, rgba(233,238,250,.6), transparent 60%), radial-gradient(1px 1px at 88% 16%, rgba(233,238,250,.7), transparent 60%),
  radial-gradient(1px 1px at 8% 52%, rgba(233,238,250,.5), transparent 60%), radial-gradient(1.5px 1.5px at 36% 58%, rgba(233,238,250,.4), transparent 60%); }
.moon { position: absolute; top: 96px; right: max(24px, 8vw); width: 70px; height: 70px; border-radius: 50%; box-shadow: inset -18px 8px 0 0 #FFE9C4; filter: drop-shadow(0 0 30px rgba(255, 210, 160, .35)); opacity: .95; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; padding-bottom: 72px; }
.hero h1 { font-size: clamp(44px, 9vw, 76px); letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--sun); }
.hero .lead { margin-top: 20px; font-size: clamp(18px, 2.6vw, 21px); color: #C9D3EC; max-width: 34ch; }
.hero .eyebrow { color: var(--sun-soft); margin-bottom: 18px; display: inline-flex; gap: 10px; align-items: center; }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 158, 87, .2); }
.wave { position: relative; display: block; width: 100%; height: 70px; margin-top: -1px; }

/* waitlist form */
.join { margin-top: 32px; max-width: 520px; background: rgba(18, 28, 56, .72); border: 1px solid rgba(134, 168, 255, .22); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(6px); }
.join label.field-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; color: var(--night-text); }
.join .row { display: flex; flex-wrap: wrap; gap: 10px; }
.join input[type="email"] { flex: 1 1 220px; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #6C7AA0; background: var(--night-2); color: var(--night-text); font: 500 16px var(--sans); }
.join input[type="email"]::placeholder { color: #7F8BAA; }
.join input[type="email"]:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255, 158, 87, .2); }
.join .btn { flex: 0 0 auto; }
.join .check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 15px; color: #C9D3EC; cursor: pointer; }
.join .check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--sun); }
.join .note { margin-top: 14px; font-size: 13.5px; color: var(--night-muted); }
.join .note a { color: var(--cobalt-soft); }
.join .status { margin-top: 14px; font-size: 15px; font-weight: 600; min-height: 1px; }
.join .status.ok { color: #9FE3B5; }
.join .status.err { color: var(--sun-soft); }
.join.done .row, .join.done .check, .join.done label.field-label { display: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* phones (drawn, not screenshots, so no habit names appear on a public page) */
.phones { position: relative; display: flex; justify-content: center; gap: 18px; min-height: 480px; }
.phone { width: 230px; aspect-ratio: 230 / 470; border-radius: 34px; background: #05080F; padding: 9px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45), 0 0 0 1px rgba(134, 168, 255, .18); flex: none; }
.phone .screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: var(--bg); color: var(--text); padding: 26px 16px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.phone.back { transform: translateY(40px) rotate(-4deg); }
.phone.front { transform: rotate(3deg); margin-left: -40px; }
.p-hello { display: flex; align-items: center; gap: 8px; font: 500 17px var(--serif); }
.p-hello img { width: 24px; height: 24px; }
.p-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px; }
.p-label { font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--cobalt); }
.p-num { font: 500 40px/1 var(--serif); margin-top: 6px; }
.p-num small { font-size: 18px; color: var(--muted); }
.p-sub { color: var(--muted); font-size: 10.5px; margin-top: 6px; }
.p-bar { height: 6px; border-radius: 3px; background: var(--surface-alt); margin-top: 10px; overflow: hidden; }
.p-bar i { display: block; height: 100%; width: 62%; background: var(--cobalt); border-radius: 3px; }
.p-urge { display: flex; gap: 10px; align-items: center; }
.p-drop { width: 34px; height: 34px; flex: none; background: var(--sun); border-radius: 50% 50% 50% 22%; display: grid; place-items: center; }
.p-drop svg { width: 18px; }
.p-actions { margin-top: auto; display: flex; gap: 8px; justify-content: flex-end; }
.p-pill { border-radius: 14px; padding: 9px 12px; font-weight: 600; font-size: 12px; border: 1.5px solid #6E7A96; background: #fff; }
.p-pill.save { background: var(--cobalt); color: #fff; border-color: var(--cobalt); border-radius: 16px 16px 16px 6px; }
.saveme { background: linear-gradient(180deg, #FCEADB 0%, #F0F3F8 28%, #A9BEF2 60%, var(--cobalt) 100%); align-items: center; text-align: center; }
.saveme .p-label { align-self: flex-start; }
.saveme .told { align-self: flex-start; text-align: left; font: 500 21px/1.15 var(--serif); position: relative; }
.saveme .told::after { content: ""; position: absolute; right: -14px; top: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--sun); opacity: .85; filter: blur(.5px); z-index: -1; }
.breath { margin-top: 18px; width: 120px; height: 120px; border-radius: 50% 50% 50% 18%; background: var(--cobalt); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255, 255, 255, .22), 0 0 0 26px rgba(255, 255, 255, .12); animation: breathe 8s ease-in-out infinite; }
.breath span { color: #fff; font: 500 15px var(--serif); }
@keyframes breathe { 0%, 100% { transform: scale(.92); } 45% { transform: scale(1.06); } }
.saveme .tide { color: #fff; font: 500 18px var(--serif); margin-top: 26px; }
.saveme .tide small { display: block; font: 500 11px var(--sans); opacity: .85; margin-top: 2px; }
.tiles { display: flex; justify-content: center; gap: 8px; margin-top: auto; }
.tiles span { background: rgba(255, 255, 255, .92); color: var(--cobalt); border-radius: 12px; padding: 7px 8px; font-size: 9.5px; font-weight: 600; }

/* the slide */
.slide-steps { display: grid; gap: 16px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; }
.step time { font: 500 28px var(--serif); color: var(--cobalt); }
.step h3 { font-size: 20px; font-family: var(--sans); font-weight: 600; }
.step p { color: var(--muted); }
.step.late time { color: var(--muted); }
.step.now { border: 2px solid var(--cobalt); }
.step.now .tag { position: absolute; top: -13px; left: 20px; background: var(--sun); color: #1A1206; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; }
.slide-note { margin-top: 28px; font: 500 italic clamp(20px, 3vw, 24px)/1.4 var(--serif); color: var(--text); max-width: 34ch; }

/* features */
.features { display: grid; gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.feature .ic { width: 52px; height: 52px; border-radius: 50% 50% 50% 18%; background: var(--cobalt); display: grid; place-items: center; margin-bottom: 6px; }
.feature .ic svg { width: 26px; height: 26px; stroke: var(--sun); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 22px; }
.feature p { color: var(--muted); }
.feature .free { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); background: #E3EBFF; border-radius: 999px; padding: 4px 10px; }

/* private: the night again */
.night { background: linear-gradient(180deg, var(--night) 0%, #10204A 100%); color: var(--night-text); }
.night .eyebrow { color: var(--sun-soft); }
.night .section-head p { color: #C9D3EC; }
.promises { display: grid; gap: 14px; }
.promise { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: rgba(26, 39, 73, .7); border: 1px solid rgba(134, 168, 255, .18); border-radius: 20px; padding: 20px; }
.promise svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: rgba(134, 168, 255, .14); stroke: var(--cobalt-soft); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promise h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; }
.promise p { color: var(--night-muted); font-size: 16px; margin-top: 4px; }

/* no shame + faith */
.quote { background: var(--cobalt); color: #fff; border-radius: 32px 32px 32px 10px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 18px; }
.quote h2 { font-size: clamp(30px, 5.6vw, 48px); }
.quote h2 em { color: var(--sun); font-style: italic; }
.quote p { color: #DCE5FF; max-width: 56ch; font-size: 18px; }
.reasons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.reasons span { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 8px 16px; font: 500 italic 17px var(--serif); }

/* who + faq */
.who { display: grid; gap: 28px; }
.who-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; }
.who-card h3 { font-size: 24px; }
.who-card p { color: var(--muted); }
.who-card.help { background: #FFF4EA; border-color: #F7D9BF; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--sans); color: var(--cobalt); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* closing CTA + footer */
.cta { text-align: center; display: grid; justify-items: center; gap: 18px; }
.cta h2 { font-size: clamp(32px, 6vw, 52px); }
.cta p { color: var(--muted); max-width: 44ch; }
footer { background: var(--night); color: var(--night-muted); padding: 48px 0 calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
footer .wrap { display: grid; gap: 22px; }
footer .brand { color: var(--night-text); }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { color: var(--night-text); }
footer .small { font-size: 13px; }

/* simple pages (privacy, help) */
.page-top { position: static; background: var(--night); }
.doc { max-width: 720px; padding-block: 56px 80px; }
.doc h1 { font-size: clamp(36px, 7vw, 52px); margin-bottom: 10px; }
.doc .updated { color: var(--muted); margin-bottom: 32px; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; }
.doc p, .doc li { color: #2C3856; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.lines { display: grid; gap: 12px; margin-top: 8px; }
.line { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px 20px; display: grid; gap: 4px; }
.line strong { font-size: 17px; }
.line .num { font: 600 22px var(--sans); color: var(--cobalt); text-decoration: none; }
.line small { color: var(--muted); font-size: 14px; }
.urgent { background: #FFF4EA; border: 1px solid #F7D9BF; border-radius: 20px; padding: 20px; margin-bottom: 8px; }

/* larger screens */
@media (min-width: 760px) {
  .slide-steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .who { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .section { padding-block: 104px; }
}
@media (max-width: 520px) {
  .phones { min-height: 420px; }
  .phone { width: 196px; }
  .phone.front { margin-left: -70px; }
  .join .btn { width: 100%; }
  .moon { width: 52px; height: 52px; top: 88px; box-shadow: inset -13px 6px 0 0 #FFE9C4; }
}
