/* Kur8 website. Colours and type follow the app (docs/DESIGN.md in Kur8/Main). */

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --ink: #15171C;
  --ink2: #3F4451;
  --muted: #5B6170;
  --line: #ECEEF2;
  --border: #E3E5EA;
  --accent: #4338CA;
  --accent-fill: #4338CA;
  --accent-ink: #2E2A8A;
  --accent-tint: #EEF0FF;
  --on-accent-soft: #E0E2FF;
  --success: #04694B;
  --success-tint: #E3F4EC;
  --warning-tint: #FFF1DE;
  --warning-ink: #8A3F06;
  --night: #0F1022;
  --radius: 20px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0E12;
    --card: #1A1C22;
    --ink: #F2F3F6;
    --ink2: #C9CCD6;
    --muted: #9CA1AE;
    --line: #2A2D35;
    --border: #2A2D35;
    --accent: #A9A4FF;
    --accent-fill: #5048E0;
    --accent-ink: #DCDAFF;
    --accent-tint: #24224A;
    --success: #5BD3A4;
    --success-tint: #12302A;
    --warning-tint: #3A2810;
    --warning-ink: #FFC98A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0E12; --card: #1A1C22; --ink: #F2F3F6; --ink2: #C9CCD6; --muted: #9CA1AE;
  --line: #2A2D35; --border: #2A2D35; --accent: #A9A4FF; --accent-fill: #5048E0;
  --accent-ink: #DCDAFF; --accent-tint: #24224A; --success: #5BD3A4; --success-tint: #12302A;
  --warning-tint: #3A2810; --warning-ink: #FFC98A; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink2);
  font: 400 18px/1.55 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(42px, 6.4vw, 76px); letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.fine { font-size: 15px; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.top-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.wordmark { font-weight: 800; font-size: 26px; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--accent); }
.top-nav { display: flex; gap: 28px; margin-left: auto; }
.top-nav a { color: var(--ink2); text-decoration: none; font-weight: 600; font-size: 16px; }
.top-nav a:hover { color: var(--accent); }
@media (max-width: 760px) { .top-nav { display: none; } .top-inner .pill { margin-left: auto; } }
html { scroll-padding-top: 76px; }
@media (max-width: 760px) { html { scroll-padding-top: 64px; } }
/* Phones: a menu button that opens the sections as a drop-down list */
.menu-btn { display: none; }
.menu { display: none; }
@media (max-width: 760px) {
  .top-inner { height: 56px; gap: 12px; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 11px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); cursor: pointer; }
  .menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu:not([hidden]) { display: grid; padding: 4px var(--gutter) 14px; border-top: 1px solid var(--border); animation: menu-in .22s ease-out; }
  .menu a { padding: 14px 4px; border-bottom: 1px solid var(--border); color: var(--ink); font-weight: 700; font-size: 18px; text-decoration: none; }
  .menu a:last-child { border-bottom: 0; }
  .menu a:active { color: var(--accent); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .menu:not([hidden]) { animation: none; } .menu-btn span { transition: none; } }

.pill, .button {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; text-decoration: none; border-radius: 999px; white-space: nowrap;
}
.pill { height: 40px; padding: 0 18px; font-size: 15px; }
.pill-solid { background: var(--accent-fill); color: #fff; }
.button { height: 56px; padding: 0 28px; font-size: 18px; background: #fff; color: #2E2A8A; border-radius: 18px; transition: transform .15s ease; }
.button:hover { transform: translateY(-1px); }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--night); }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 50% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,30,.78) 0%, rgba(10,10,30,.45) 55%, rgba(10,10,30,.15) 100%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end; padding-top: 88px; }
.hero-copy { padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hook { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; color: var(--on-accent-soft); margin-bottom: 18px; line-height: 1.35; }
.lede { font-size: clamp(19px, 2vw, 22px); color: rgba(255,255,255,.88); max-width: 34em; }
.works { color: rgba(255,255,255,.7); font-size: 16px; }
.badge {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .02em;
  padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.28); margin-bottom: 22px;
}
.badge.light { background: #fff; color: #2E2A8A; border: 0; font-size: 16px; padding: 10px 20px; margin: 8px 0 0; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.cta-note { color: rgba(255,255,255,.78); font-size: 16px; }
.hero-phone { align-self: end; }

/* Phones: real screenshots in a simple frame. A cut phone runs off the bottom of its box. */
.phone {
  border: 10px solid #101114; border-radius: 48px; overflow: hidden; background: #101114;
  box-shadow: 0 30px 60px -20px rgba(10,10,40,.45);
  max-width: 360px; margin: 0 auto;
}
.phone img { width: 100%; border-radius: 38px; }
.phone-cut { border-bottom: 0; border-radius: 48px 48px 0 0; box-shadow: none; -webkit-mask-image: linear-gradient(#000 76%, transparent); mask-image: linear-gradient(#000 76%, transparent); }
.phone-cut img { border-radius: 38px 38px 0 0; }
.hero .phone { box-shadow: none; background: transparent; border-color: rgba(16,17,20,.85); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; gap: 8px; }
  .hero-copy { padding-bottom: 32px; }
  .hero .phone { max-width: 300px; }
}

/* Problem */
.problem { background: var(--night); color: rgba(255,255,255,.82); padding: 96px 0 104px; }
.problem h2 { color: #fff; }
.problem .eyebrow { color: #B9B5FF; }
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 72px; }
.moments p {
  margin: 0; padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08); color: #fff; font-size: 21px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em;
}
.moments em { font-style: normal; color: #B9B5FF; display: block; margin-top: 6px; }
@media (max-width: 860px) { .moments { grid-template-columns: 1fr; margin-bottom: 48px; } }

/* Features */
.feature { padding: 104px 0; }
.feature.alt { background: var(--card); }
.eyebrow { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; }
.eyebrow.green { color: var(--success); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-copy p { max-width: 32em; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .feature { padding: 72px 0; }
}
.card { background: var(--card); border-radius: var(--radius); }
.feature.alt .card { background: var(--bg); }
.phone-side { max-width: 340px; }

/* Filter demo */
.demo { padding: 22px; border: 1px solid var(--border); }
.demo-title { font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  font: inherit; font-size: 15px; font-weight: 700; height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--card); color: var(--ink2);
}
.chip.on { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.chip:focus-visible, .button:focus-visible, .pill:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 470px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.post { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; line-height: 1.4; transition: background .25s ease; }
.post b { color: var(--ink); display: block; }
.post small { color: var(--muted); font-size: 13px; }
.post p { margin: 4px 0 0; }
.post.ad small { color: var(--ink2); font-weight: 700; }
.avatar { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; }
.a1 { background: #5B8DEF; } .a2 { background: #E07A5F; } .a3 { background: #3D9A7A; }
.a4 { background: #9B6BD6; } .a5 { background: #D9A13B; } .a6 { background: #4B5563; }
.post.hidden { background: var(--accent-tint); border-color: transparent; padding: 10px 14px; }
.post.hidden > * { display: none; }
.post.hidden::before { content: attr(data-note); color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.demo-foot { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* Allowance card */
.allowance {
  display: flex; align-items: center; gap: 28px; padding: 32px; border-radius: 28px;
  background: var(--accent-fill); color: #fff; max-width: 460px; margin: 0 auto; width: 100%;
}
.ring { width: 132px; flex: 0 0 132px; }
.ring text { fill: #fff; font: 800 26px "Figtree", sans-serif; }
.al-label { color: var(--on-accent-soft); margin: 0; font-size: 17px; }
.al-big { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; margin: 0; line-height: 1.15; }
.al-small { color: var(--on-accent-soft); margin: 4px 0 0; font-size: 16px; }
@media (max-width: 480px) { .allowance { flex-direction: column; text-align: center; } }

/* Sleep and Focus */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; max-width: 860px; margin-left: auto; margin-right: auto; }
.pair figure { margin: 0; }
.pair .phone { max-width: 320px; }
.pair .phone img { aspect-ratio: 860 / 950; object-fit: cover; object-position: top; }
.pair figcaption { max-width: 320px; margin: 20px auto 0; font-size: 16px; }
.pair figcaption b { color: var(--ink); }
@media (max-width: 700px) { .pair { grid-template-columns: 1fr; gap: 56px; } }

/* Privacy */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.point { padding: 28px; }
.point svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-tint); fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.point p { margin: 0; font-size: 16px; }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

/* Families */
.family { padding: 32px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.checks li { position: relative; padding-left: 40px; font-size: 18px; color: var(--ink); font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--success-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304694B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 16px; justify-content: center; margin: 40px 0 20px; }
.plan { padding: 28px; border: 2px solid var(--border); position: relative; }
.plan.best { border-color: var(--accent-fill); }
.plan p { margin: 0; font-size: 16px; }
.price { font-size: 40px !important; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; margin: 4px 0 8px !important; }
.price span { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tag { position: absolute; top: -14px; left: 24px; background: var(--accent-fill); color: #fff; font-size: 13px !important; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { background: var(--bg); border-radius: 16px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); padding: 20px 28px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 24px; color: var(--accent); font-weight: 500; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 20px; margin: 0; font-size: 17px; }

/* Closing */
.closing { position: relative; color: #fff; overflow: hidden; background: var(--night); }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10,10,30,.6), rgba(10,10,30,.45) 50%, rgba(10,10,30,.75)); }
.closing .form-note { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.closing .hero-bg img { object-position: 50% 72%; }
.closing-inner { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 200px; }
.closing h2 { color: #fff; font-size: clamp(36px, 5vw, 60px); }
.closing p { font-size: 20px; }
.hook.light { color: #fff; opacity: .9; }

/* Footer */
.foot { padding: 48px 0 32px; border-top: 1px solid var(--border); }
.foot-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin-bottom: 16px; }
.foot nav { display: grid; gap: 10px; align-content: start; }
.foot nav a { color: var(--ink2); text-decoration: none; font-size: 16px; }
.foot nav a:hover { color: var(--accent); }
.foot .fine { margin-top: 12px; max-width: 34em; }
@media (max-width: 700px) { .foot-inner { grid-template-columns: 1fr; } }

/* Legal pages */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: .6em; }
.doc h2 { font-size: 26px; margin-top: 1.6em; }
.doc h3 { margin-top: 1.4em; }
.doc li { margin-bottom: .4em; }
.doc blockquote { margin: 0 0 1.5em; padding: 16px 20px; border-radius: 14px; background: var(--warning-tint); color: var(--warning-ink); }
.doc blockquote p { margin: 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 16px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.back { display: inline-block; margin-bottom: 24px; font-weight: 700; text-decoration: none; }
@media (max-width: 700px) {
  .closing-inner { padding-top: 96px; padding-bottom: 300px; }
  .badge.light { font-size: 15px; }
}

/* Waitlist */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.waitlist { margin-top: 28px; max-width: 520px; }
.waitlist-row { display: flex; gap: 10px; }
.waitlist input {
  flex: 1; min-width: 0; height: 56px; padding: 0 18px; border-radius: 18px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12); color: #fff; font: inherit; font-size: 17px;
}
.waitlist input::placeholder { color: rgba(255,255,255,.7); }
.waitlist input:focus { outline: 3px solid #B9B5FF; outline-offset: 1px; }
.waitlist .button { border: 0; cursor: pointer; font-family: inherit; }
.waitlist .button[disabled] { opacity: .7; cursor: default; }
.form-note { margin: 12px 0 0; font-size: 15px; color: rgba(255,255,255,.78); }
.form-note.error { color: #FFD3C2; }
.waitlist.done .waitlist-row { display: none; }
.waitlist.done .form-note { font-size: 18px; font-weight: 700; color: #fff; }
.closing-form { display: flex; justify-content: center; text-align: left; }
.closing-form .waitlist { width: 100%; }
@media (max-width: 520px) {
  .waitlist-row { flex-direction: column; }
  .waitlist input { flex: none; }
}

/* Hero phone: the whole phone, playing a recording of the real app */
.phone-full { max-width: 330px; border-width: 11px; border-radius: 54px; position: relative; }
.phone-full video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1562; object-fit: cover; border-radius: 43px; background: #0D0E12; }
.phone-full::before { /* the island */
  content: ""; position: absolute; top: 12px; left: 50%; width: 30%; height: 22px; margin-left: -15%;
  background: #101114; border-radius: 20px; z-index: 1;
}
.hero .phone-full { box-shadow: 0 40px 80px -24px rgba(5, 10, 30, .55); background: #101114; border-color: #101114; }
.hero-inner { align-items: center; padding-bottom: 72px; }
.hero-copy { padding-bottom: 0; }
.phone-caption { text-shadow: 0 1px 6px rgba(0,0,0,.6); text-align: center; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 600; margin: 16px 0 0; }
@media (max-width: 860px) { .hero .phone-full { max-width: 280px; } .hero-inner { padding-bottom: 56px; gap: 40px; } }
.hero::after { background: linear-gradient(100deg, rgba(8,16,30,.72) 0%, rgba(8,16,30,.42) 50%, rgba(8,16,30,.08) 100%); }
@media (max-width: 860px) { .hero::after { background: linear-gradient(rgba(8,16,30,.7), rgba(8,16,30,.35) 55%, rgba(8,16,30,.2)); } }
.hero-bg img { object-position: 60% 50%; }
.badge .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #7CF0B5; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(124,240,181,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(124,240,181,0); } 100% { box-shadow: 0 0 0 0 rgba(124,240,181,0); } }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Photos of people */
.photo { margin: 0; border-radius: 28px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.photo:hover img { transform: scale(1.04); }
.familiar { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; margin-bottom: 80px; }
.familiar-photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; }
.familiar-photo img { width: 100%; height: 100%; object-fit: cover; }
.familiar .moments { grid-template-columns: 1fr; margin: 0; gap: 14px; }
@media (max-width: 860px) { .familiar { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; } .familiar-photo { aspect-ratio: 4 / 3; } }
.family-side { display: grid; gap: 16px; }
.family-side .photo { aspect-ratio: 4 / 3; }

/* Motion: things rise into place as they scroll into view */
.js [data-reveal], .js [data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in, .js [data-stagger].in > * { opacity: 1; transform: none; }
.js [data-stagger].in > * { transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-words] .w { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 55ms); }
.js [data-words].in .w { opacity: 1; transform: none; }
.js .ring-fill { stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.6s cubic-bezier(.3,.7,.2,1) .3s; }
.js .allowance.in .ring-fill { stroke-dashoffset: 188.5; }

/* Cards and bubbles respond to the pointer */
.card, .moments p, .plan, .point, .faq details, .chip, .allowance { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, background-color .25s ease, border-color .25s ease; }
@media (hover: hover) {
  .point:hover, .plan:hover, .moments p:hover, .family:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -22px rgba(30, 27, 90, .35); }
  .moments p:hover { background: rgba(255,255,255,.1); }
  .allowance:hover { transform: rotate(-1.2deg) scale(1.02); }
  .chip:hover { transform: translateY(-2px); }
  .faq details:hover { transform: translateX(4px); }
  .point:hover svg { transform: rotate(-8deg) scale(1.1); }
}
.point svg { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.chip:active { transform: scale(.94); }
.post { transition: background .3s ease, padding .3s ease, transform .3s ease; }
.post.hidden { animation: fold .45s cubic-bezier(.2,.7,.2,1); }
@keyframes fold { from { transform: scaleY(1.4); opacity: .4; } to { transform: none; opacity: 1; } }
.faq details[open] p { animation: drop .4s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-stagger] > *, .js [data-words] .w { opacity: 1 !important; transform: none !important; transition: none !important; }
  .float, .badge .dot, .post.hidden, .faq details[open] p { animation: none; }
  .ring-fill { transition: none; }
}

/* Closing: text over the sky on the left, the woman resting on the right */
.closing::after { background: linear-gradient(100deg, rgba(8,16,30,.66) 0%, rgba(8,16,30,.35) 45%, rgba(8,16,30,0) 70%); }
.closing .hero-bg img { object-position: 60% 50%; }
.closing-inner { text-align: left; padding-top: 120px; padding-bottom: 140px; }
.closing-inner > * { max-width: 560px; }
.closing-form { justify-content: flex-start; }
.closing h2 { font-size: clamp(36px, 4.6vw, 56px); }
@media (max-width: 700px) {
  .closing::after { background: linear-gradient(rgba(8,16,30,.7), rgba(8,16,30,.45) 60%, rgba(8,16,30,.1)); }
  .closing-inner { padding-top: 72px; padding-bottom: 260px; }
  .closing .hero-bg img { object-position: 70% 100%; }
}

/* Hero photo: sky above, the woman resting on the grass below the words */
.hero-bg img { object-position: 38% 70%; }
.hero::after { background: linear-gradient(100deg, rgba(10,30,70,.55) 0%, rgba(10,30,70,.28) 50%, rgba(10,30,70,0) 80%), linear-gradient(rgba(10,30,70,.25), rgba(10,30,70,0) 40%); }
@media (max-width: 860px) {
  .hero-bg img { object-position: 45% 100%; }
  .hero::after { background: linear-gradient(rgba(10,30,70,.6), rgba(10,30,70,.35) 60%, rgba(10,30,70,.1)); }
}
@media (min-width: 861px) {
  .hero-inner { align-items: start; padding-top: 72px; padding-bottom: 230px; }
  .hero-copy { padding-top: 40px; }
  .hero-bg img { object-position: 22% 100%; }
}

/* What Kur8 does, in three bubbles under the headline */
.bubbles { list-style: none; margin: 4px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.bubbles li {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 17px; line-height: 1.3;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); width: fit-content;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .25s ease;
}
.bubbles b { font-weight: 800; }
.bubbles svg { flex: 0 0 36px; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: #fff; fill: none; stroke: #4338CA; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .bubbles li:hover { transform: translateX(6px); background: rgba(255,255,255,.24); } }
@media (max-width: 860px) { .bubbles li { font-size: 16px; } }
/* Two by two on phones: icon above, text below */
@media (max-width: 700px) {
  .bubbles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: none; }
  .bubbles li { flex-direction: column; align-items: flex-start; gap: 10px; width: auto; padding: 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.35; }
  .bubbles svg { flex: 0 0 auto; width: 32px; height: 32px; padding: 7px; }
}
.hero h1 { margin-bottom: .35em; }
.hero-bg img { object-position: 50% 100%; }
@media (min-width: 861px) { .hero-bg img { object-position: 0% 100%; } }
.faq-lede { margin: 12px 0 0; color: var(--muted); }
.faq-group { margin: 40px 0 0; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.faq-group + .faq { margin-top: 14px; }


/* Hero: light (dark with the device), the app with notifications changing around it */
.hero-sub, .hero-chips { display: block; }
.hero { background: var(--bg); color: var(--ink); }
.hero::after, .phone-caption { display: none; }
.hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 80px; }
.hero-copy { padding: 0; }
.hero h1 { color: var(--ink); margin: 0; }
.hero h1 .w:last-child { color: var(--accent); }
.hero-sub { margin: 18px 0 0; max-width: 470px; font-size: 20px; line-height: 1.45; color: var(--muted); }
.hero-phone { position: relative; width: 100%; max-width: 470px; margin: 0 auto; }
.hero .phone-full { max-width: 290px; margin: 0 auto; background: #101114; border-color: #101114; box-shadow: 0 30px 60px -20px rgba(20,20,60,.4); }
.hero .waitlist { margin-top: 30px; }
.hero .waitlist .form-note { color: var(--muted); }
.hero .waitlist input { background: var(--card); border-color: var(--border); color: var(--ink); }
.hero .waitlist input::placeholder { color: var(--muted); }
.hero .waitlist .button { background: var(--accent-fill); color: #fff; }
.hero-chips { position: absolute; inset: 0; pointer-events: none; }
.hc { position: absolute; display: flex; gap: 8px; align-items: center; text-align: left; background: var(--card); color: var(--ink); border-radius: 16px; padding: 10px 14px 10px 10px; font-size: 14px; line-height: 1.25; box-shadow: 0 12px 30px -10px rgba(20,20,60,.35); max-width: 230px; transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.hc b { display: block; font-size: 16px; font-weight: 800; }
.hc span { color: var(--muted); }
.hc svg { flex: 0 0 32px; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--accent-tint); fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hc.out { opacity: 0; transform: translateY(8px) scale(.94); }
.hc1 { left: 0; top: 80px; } .hc2 { right: 0; top: 250px; } .hc3 { left: 10px; top: 430px; }
@media (max-width: 700px) {
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 32px; padding-bottom: 40px; text-align: center; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; font-size: 44px; }
  .hero-sub { order: 2; margin: 12px auto 0; max-width: 320px; font-size: 17px; }
  .hero-phone { order: 3; margin-top: 26px; }
  .hero .phone-full { max-width: 236px; }
  .hero .waitlist { order: 4; margin-top: 26px; text-align: left; }
  .hero .waitlist .form-note { text-align: center; }
  .hc { font-size: 13px; padding: 9px 12px 9px 9px; max-width: 205px; }
  .hc b { font-size: 15px; }
  .hc svg { flex-basis: 30px; width: 30px; height: 30px; }
  .hc1 { left: 0; top: 60px; } .hc2 { right: 0; top: 200px; } .hc3 { left: 6px; top: 340px; }
}

/* What Kur8 does: six features, three across */
/* What Kur8 does: one feature at a time, phone beside its words, with arrow buttons */
.pair.features { display: flex; gap: 0; max-width: 900px; margin: 48px auto 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pair.features::-webkit-scrollbar, .stats-scroll::-webkit-scrollbar { display: none; }
.pair.features:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 24px; }
.pair.features figure { flex: 0 0 100%; scroll-snap-align: center; display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; padding: 0 24px; }
.pair.features .phone { max-width: 300px; margin: 0; }
.pair.features figcaption { max-width: 440px; margin: 0; font-size: 21px; line-height: 1.5; text-align: left; }
.pair.features figcaption b { display: block; margin-bottom: 8px; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; }
@media (max-width: 700px) {
  .pair.features { margin: 32px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); gap: 16px; scroll-padding: 0 var(--gutter); }
  .pair.features figure { flex: 0 0 86%; display: block; padding: 0; }
  .pair.features .phone { max-width: 280px; margin: 0 auto; }
  .pair.features figcaption { margin: 18px auto 0; font-size: 16px; max-width: 320px; }
  .pair.features figcaption b { display: inline; font-size: inherit; letter-spacing: 0; }
}
/* Arrow buttons under a carousel */
.car-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.car-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s, opacity .2s, transform .15s; }
.car-btn:hover:not(:disabled) { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.car-btn:active:not(:disabled) { transform: scale(.94); }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.car-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.car-count { min-width: 56px; text-align: center; font-weight: 700; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* The research: cards that scroll sideways */
.stats-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; margin-top: 40px; padding: 4px 0 8px; scrollbar-width: none; scroll-padding: 0 max(var(--gutter), calc((100vw - 1120px) / 2)); }
.stats-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.stats { list-style: none; margin: 0; padding: 0 max(var(--gutter), calc((100vw - 1120px) / 2)); display: flex; gap: 16px; width: max-content; }
.stat { scroll-snap-align: start; flex: 0 0 280px; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(20,20,40,.06); }
.stat-tag { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); }
.stat-parents .stat-tag { background: var(--success-tint); color: var(--success); }
.stat-teenagers .stat-tag { background: var(--warning-tint); color: var(--warning-ink); }
.stat-num { margin: 16px 0 6px; font-size: 52px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.stat-text { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink2); flex: 1; }
.stat-src { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }
.stat-src::after { content: " \2197"; }
.stat-src:hover { text-decoration: underline; }
.stats-hint { margin-top: 4px; }

/* Getting started: five steps with the real screens */
.steps { list-style: none; margin: 48px auto 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; max-width: 1200px; }
.step { margin: 0; }
.step .phone { max-width: 240px; }
.step .phone img, .step .phone video { display: block; width: 100%; aspect-ratio: 860 / 1100; object-fit: cover; object-position: top; }
.step .phone img.show-bottom { object-position: bottom; }
.step .phone video { border-radius: 38px 38px 0 0; background: #0D0E12; }
.step-n { margin: 18px 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; font-size: 15.5px; }
@media (max-width: 1100px) and (min-width: 701px) { .steps { grid-template-columns: repeat(6, 1fr); } .step { grid-column: span 2; } .step:nth-child(4) { grid-column: 2 / span 2; } }
@media (max-width: 960px) and (min-width: 701px) { .steps { grid-template-columns: 1fr 1fr; } .step, .step:nth-child(4) { grid-column: auto; } .step:last-child { grid-column: 1 / -1; justify-self: center; max-width: 50%; } }
@media (max-width: 700px) {
  .steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 32px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 12px; }
  .step { flex: 0 0 78%; scroll-snap-align: center; }
}
.pair.features .phone video { display: block; width: 100%; aspect-ratio: 860 / 1100; object-fit: cover; object-position: top; border-radius: 38px 38px 0 0; background: #0D0E12; }
/* Research cards stand out from the section behind them, and the row fades at its edges */
.stats-section .stat { background: var(--bg); border: 1px solid var(--border); box-shadow: none; }
@media (min-width: 701px) { .stats-scroll { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%); } }
