/* Cooper Rise landing. Colours from the approved mockup (docs/mockup/v1.html): accent purple, six category colours.
   Display face = the logo's Barlow Semi Condensed Black. Watch screens are inline SVG drawn by tools/build-web.py. */
@font-face {
  font-family: 'CR Display';
  src: url('/fonts/BarlowSemiCondensed-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
:root {
  --bg: #0d0f14; --bg2: #161922; --bg3: #1d212b; --line: rgba(255,255,255,.07);
  --fg: #eef0f5; --muted: #9ba1ae; --soft: #c9ccd6;
  --accent: #8F7CFF; --accent-ink: #0d0f14;
  --c0: #E5484D; --c1: #F07A3A; --c2: #F2C230; --c3: #8BD346; --c4: #2FC18C; --c5: #36B7F0;
  --display: 'CR Display', 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --label: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; line-height: .92; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: clamp(38px, 6.4vw, 72px); text-transform: uppercase; }
h3 { font-family: var(--label); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: .01em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.label { font: 700 13px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(17px, 1.7vw, 20px); max-width: 36em; }
.muted { color: var(--muted); }
.label + h2 { margin-top: 12px; }
h2 + .lead { margin-top: 18px; }

/* watch screens (inline SVG) */
.wsvg { display: block; width: 100%; height: 100%; border-radius: 50%; }
.wsvg text { font-family: var(--body); }
.wsvg text.n { font-family: var(--label); }
.watch { position: relative; aspect-ratio: 1; border-radius: 50%; background: #000; box-shadow: 0 0 0 7px #222630, 0 0 0 9px #464b57, 0 30px 70px -20px rgba(0,0,0,.9); }
.glance { border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px #2b2e38, 0 24px 60px -20px rgba(0,0,0,.9); background: #000; }
.glance .wsvg { border-radius: 22px; }
.grow { animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; transform-origin: 227px 227px; }
@keyframes grow { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: scale(1); } }
.pulse { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: .1; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(13,15,20,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 21px/1 var(--display); letter-spacing: .01em; white-space: nowrap; text-transform: uppercase; }
.brand img { width: 32px; height: 32px; }
.brand span { color: var(--accent); }
.nav .lang { margin-left: auto; position: relative; }
.nav .lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; font: 700 13px/1 var(--label); letter-spacing: .14em; color: var(--muted); padding: 8px 10px 8px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; }
.nav .lang summary::-webkit-details-marker { display: none; }
.nav .lang summary::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.nav .lang[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav .lang summary:hover, .nav .lang[open] summary { color: var(--fg); border-color: rgba(255,255,255,.32); }
.nav .lang .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; display: grid; background: var(--bg2); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.6); z-index: 20; }
.nav .lang .menu a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font: 600 15px/1 var(--body); }
.nav .lang .menu a b { font: 700 11px/1 var(--label); letter-spacing: .12em; }
.nav .lang .menu a:hover, .nav .lang .menu a[aria-current] { background: rgba(255,255,255,.07); color: var(--fg); }
.nav .btn { padding: 9px 16px; font-size: 14px; box-shadow: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: var(--accent); color: var(--accent-ink); font: 700 17px/1 var(--label); letter-spacing: .02em; padding: 17px 26px; border-radius: 999px; transition: transform .2s, box-shadow .2s; box-shadow: 0 10px 36px -12px rgba(143,124,255,.7); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 44px -10px rgba(143,124,255,.85); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[data-soon] { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px var(--accent); }
.btn[data-soon] svg { color: var(--accent); }
.btn[data-soon]:hover { box-shadow: inset 0 0 0 2px var(--accent), 0 10px 36px -14px rgba(143,124,255,.6); }

/* hero */
.hero { padding: 40px 0 72px; position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 55% at 72% 30%, rgba(143,124,255,.16), transparent 70%); }
.hero .wrap { display: grid; gap: 34px; align-items: center; }
.hero h1 { font-size: clamp(64px, 15vw, 142px); text-transform: uppercase; margin: 14px 0 18px; }
.hero h1 span { color: var(--accent); }
.hero .lead { color: var(--soft); }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.hero .cta .muted { font-size: 15px; max-width: 19em; line-height: 1.4; }
.stats { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 14px 34px; }
.stats li { display: grid; gap: 4px; }
.stats b { font: 900 44px/1 var(--display); }
.stats span { font: 600 14px/1.2 var(--label); letter-spacing: .04em; color: var(--muted); max-width: 10em; }
.catbar { display: flex; gap: 6px; margin-top: 30px; max-width: 360px; }
.catbar i { flex: 1; height: 8px; border-radius: 4px; }

/* the signature: the logo's category arc over the hero watch */
.gauge { position: relative; width: min(100%, 440px); margin: 0 auto; aspect-ratio: 1; }
.gauge > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gauge .arc { fill: none; stroke-width: 12; stroke-linecap: round; }
.gauge .needle { transform-origin: 200px 200px; transform: rotate(50deg); animation: settle 2.4s cubic-bezier(.2,.9,.25,1) .3s both; }
@keyframes settle { 0% { transform: rotate(-100deg); } 60% { transform: rotate(72deg); } 100% { transform: rotate(50deg); } }
.gauge .watch { position: absolute; inset: 11%; }
.gauge .watch > div { position: absolute; inset: 0; }
.gauge .watch .off { visibility: hidden; }

/* sections */
section { padding: 64px 0; }
.rule { border-top: 1px solid var(--line); }
.split { display: grid; gap: 36px; align-items: center; }
.split .watch { width: min(100%, 300px); margin: 0 auto; }
.split .text > * + * { margin-top: 16px; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.facts li { padding-left: 24px; position: relative; color: var(--muted); }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.facts li b { color: var(--fg); font-weight: 600; }

/* the twelve tests */
.groups { display: grid; gap: 28px; margin-top: 38px; }
.group h3 { font: 700 13px/1 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.group h3::before { content: ""; width: 22px; height: 4px; border-radius: 2px; background: var(--g); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tile { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--g); }
.tile b { display: block; font: 700 20px/1.15 var(--label); }
.tile em { display: block; font: 600 13px/1.3 var(--label); font-style: normal; letter-spacing: .04em; color: var(--g); margin: 4px 0 6px; }
.tile p { color: var(--muted); font-size: 15px; line-height: 1.45; }
.g-run { --g: var(--accent); } .g-shuttle { --g: var(--c5); } .g-walk { --g: var(--c3); } .g-home { --g: var(--c2); }

/* step by step + live screens */
.row { display: grid; gap: 28px 18px; margin-top: 38px; grid-template-columns: 1fr 1fr; }
.row figure { margin: 0; display: grid; align-content: start; gap: 14px; justify-items: center; text-align: center; }
.row .watch { width: 100%; max-width: 240px; }
.row figcaption { max-width: 17em; }
.row figcaption b { display: block; font: 700 18px/1.2 var(--label); margin-bottom: 4px; }
.row figcaption span { color: var(--muted); font-size: 15px; line-height: 1.45; display: block; }
.row .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 800 14px/1 var(--label); margin-bottom: 8px; }
.row.live .watch { max-width: 260px; }
.row figure:last-child:nth-child(odd) { grid-column: 1 / -1; }
.row figure:last-child:nth-child(odd) .watch { width: 50%; }
.facts.cats li:nth-child(1)::before { background: var(--c4); } .facts.cats li:nth-child(2)::before { background: var(--c5); }
.facts.cats li:nth-child(3)::before { background: var(--accent); } .facts.cats li:nth-child(4)::before { background: var(--c3); }
.facts.cats li:nth-child(5)::before { background: var(--c2); }

/* result */
.result { display: grid; gap: 40px; margin-top: 38px; align-items: center; }
.result .main { width: min(100%, 360px); margin: 0 auto; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font: 600 14px/1.2 var(--label); color: var(--muted); margin-top: 22px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.pair figure { margin: 0; display: grid; gap: 12px; justify-items: center; text-align: center; }
.pair .watch { width: 100%; max-width: 220px; }
.pair figcaption { font: 600 14px/1.35 var(--label); letter-spacing: .02em; color: var(--muted); max-width: 15em; }

/* cards */
.cards { display: grid; gap: 16px; margin-top: 34px; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 14px; align-content: start; }
.card .watch { width: min(70%, 220px); margin: 6px auto 4px; }
.card .glance { width: 100%; max-width: 300px; margin: 6px auto 4px; }
.card p { color: var(--muted); font-size: 16px; }
.fit { margin: 6px 0 4px; display: grid; gap: 10px; background: #0b0d11; border-radius: 14px; padding: 14px; }
.fit div { display: flex; justify-content: space-between; font: 600 14px/1.2 var(--label); letter-spacing: .03em; color: var(--muted); gap: 8px; }
.fit div b { color: var(--fg); font-weight: 700; }

/* goal */
.goal { background: linear-gradient(135deg, rgba(143,124,255,.10), transparent 60%), var(--bg2); border: 1px solid var(--line); border-radius: 28px; padding: 28px 22px; }

/* notes */
.notes { display: grid; gap: 18px; margin-top: 30px; }
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.note.warn { border-left-color: var(--c1); }
.note b { display: block; font: 700 19px/1.3 var(--label); margin-bottom: 4px; }
.note p { color: var(--muted); }

/* family */
.family { display: grid; gap: 12px; margin-top: 30px; }
.family a { display: grid; gap: 4px; text-decoration: none; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; transition: border-color .2s, transform .2s; }
.family a:hover { border-color: rgba(255,255,255,.22); transform: translateY(-2px); }
.family b { font: 900 24px/1 var(--display); text-transform: uppercase; }
.family b span { color: var(--fc); }
.family p { color: var(--muted); font-size: 15px; line-height: 1.45; }
.family small { font: 600 13px/1 var(--label); letter-spacing: .04em; color: var(--fc); margin-top: 6px; }

/* buy */
.buy { text-align: center; padding: 80px 0 88px; background: radial-gradient(50% 60% at 50% 100%, rgba(143,124,255,.15), transparent 70%); }
.buy img.logo { width: 112px; height: 112px; margin: 0 auto 22px; }
.buy h2 { margin-bottom: 18px; }
.buy .lead { margin: 0 auto; }
.buy .price { font: 900 64px/1 var(--display); margin-top: 28px; }
.buy .price small { display: block; font: 600 15px/1.3 var(--label); letter-spacing: .04em; color: var(--muted); margin-top: 8px; }
.buy .btn { margin-top: 26px; }
.buy .devices { margin: 26px auto 0; max-width: 38em; font-size: 15px; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
footer a { color: var(--fg); text-underline-offset: 3px; }
footer .langs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer .langs a { color: var(--muted); text-decoration: none; }
footer .langs a:hover, footer .langs a[aria-current] { color: var(--fg); }

@media (min-width: 720px) {
  .groups { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .notes { grid-template-columns: 1fr 1fr; }
  .family { grid-template-columns: repeat(2, 1fr); }
  .goal { padding: 40px; }
}
@media (min-width: 960px) {
  section { padding: 96px 0; }
  .hero { padding: 56px 0 96px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.flip .text { order: 2; }
  .split .watch { width: min(100%, 360px); }
  .groups { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .row { grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
  .row figure:last-child:nth-child(odd) { grid-column: auto; }
  .row figure:last-child:nth-child(odd) .watch { width: 100%; }
  .result { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .notes { grid-template-columns: repeat(3, 1fr); }
  .family { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 400px) {
  .nav .btn { display: none; }
  .stats { gap: 14px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gauge .needle, .grow, .pulse { animation: none; }
  .btn, .family a { transition: none; }
}
