@font-face { font-family: "Manrope"; src: url("fonts/manrope_variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains_mono_variable.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }

/* The app's own palette: ground, outlined surfaces, white text, grey labels; green only for gains. */
:root {
  --ground: #0C0D0F; --surface: #121417; --hair: #1F2226; --outline: #2B2F33;
  --text: #F2F3F4; --muted: #8D9297; --faint: #5A6066; --gain: #7FC8A9; --gain-bg: rgba(127, 200, 169, .12);
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, .61, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ground); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

.kicker { font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
h1, h2 { font-weight: 600; letter-spacing: -.035em; line-height: 1.06; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
.sub { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(12, 13, 15, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--hair); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; margin-right: auto; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav nav { display: flex; gap: 28px; font-size: 14.5px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
@media (max-width: 820px) { .nav nav { display: none; } }

/* buttons, as in the app */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 500; font-size: 15.5px; transition: opacity .2s, border-color .2s; }
.btn.primary { background: var(--text); color: var(--ground); }
.btn.primary:hover { opacity: .9; }
.btn.outline { border: 1px solid var(--outline); color: var(--text); }
.btn.outline:hover { border-color: var(--muted); }
.btn.small { height: 40px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.center .ctas { justify-content: center; }

/* hero */
.hero { padding: 168px 0 0; }
.hero h1 { margin: 22px auto 22px; max-width: 880px; }
.hero .sub { max-width: 600px; }
.hero .ctas { margin-top: 36px; }
.facts { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 30px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.scene { position: relative; height: 640px; margin-top: 72px; }
.scene .phone { position: absolute; left: 50%; top: 0; margin-left: -150px; width: 300px; }
.scene .watch { position: absolute; left: 50%; top: 250px; margin-left: -470px; width: 290px; height: 290px; }
.scene .phone.b { margin-left: 210px; top: 90px; width: 260px; }
.scene::after { content: ""; position: absolute; inset: auto 0 0; height: 260px; background: linear-gradient(rgba(12, 13, 15, 0), var(--ground)); pointer-events: none; }
@media (max-width: 900px) {
  .scene { height: 560px; }
  .scene .phone.b { display: none; }
  .scene .phone { margin-left: -60px; width: 260px; }
  .scene .watch { margin-left: -200px; top: 230px; width: 230px; height: 230px; }
}
@media (max-width: 480px) { .scene .phone { margin-left: -40px; width: 230px; } .scene .watch { margin-left: -175px; width: 200px; height: 200px; top: 220px; } }

/* devices */
.phone { border-radius: 40px; padding: 9px; background: #16181b; box-shadow: 0 0 0 1px var(--outline), 0 40px 90px -30px rgba(0, 0, 0, .9); }
.phone img { width: 100%; height: auto; aspect-ratio: 1080 / 2424; object-fit: cover; object-position: top; border-radius: 32px; }
.watch { border-radius: 50%; background: #000; padding: 12px; box-shadow: 0 0 0 1px var(--outline), 0 0 0 9px #16181b, 0 0 0 10px var(--outline), 0 40px 90px -20px rgba(0, 0, 0, .95); container-type: inline-size; }
.watch .face { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.watch img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* live face, drawn like the real watch app */
.live svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.live .lines { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; }
.live .t1 { margin-top: 17%; font: 600 6.4cqw/1 var(--sans); color: #B49BC4; }
.live .t2 { margin: 2% 0 6%; font: 500 19cqw/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: #fff; }
.live .mv { width: 78%; display: flex; justify-content: space-between; font: 500 5.6cqw/1.45 var(--sans); padding: 1.4% 3%; border-radius: 4px; color: #8b9096; }
.live .mv.on { background: #1d2024; color: #fff; }
.live .stats { position: absolute; bottom: 13%; left: 14%; right: 14%; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font: 500 4.8cqw/1.3 var(--sans); color: #8b9096; }
.live .stats b { display: block; color: #fff; font: 500 6.6cqw/1.2 var(--mono); }

/* chapters, like the app's intro: label, title, one line */
section { padding: 56px 0; }
@media (max-width: 760px) { section { padding: 44px 0; } }
.chapter .head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.chapter h2 { margin: 18px 0 14px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; max-width: 920px; margin: 0 auto; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; gap: 48px; } }

/* paste */
.card { border: 1px solid var(--outline); border-radius: 16px; padding: 24px 26px; }
.paste { font: 500 15.5px/1.85 var(--mono); color: var(--text); min-height: 360px; white-space: pre-wrap; }
.paste .caret { display: inline-block; width: 2px; height: 20px; background: var(--text); vertical-align: -4px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.card .cap { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.swap { position: relative; justify-self: center; width: 300px; }
.swap .phone { position: relative; }
.swap .phone img { transition: opacity .7s var(--ease); }
.swap .phone img + img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); opacity: 0; }
.swap.read .phone img + img { opacity: 1; }
.badge { display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: .06em; padding: 6px 8px; border-radius: 6px; color: var(--muted); border: 1px solid var(--outline); }
.badge.gain { color: var(--gain); background: var(--gain-bg); border-color: transparent; }

/* watch modes */
.seg-wrap { text-align: center; }
.seg { display: inline-grid; grid-auto-flow: column; border: 1px solid var(--outline); border-radius: 999px; overflow: hidden; margin: 0 auto 56px; }
.seg button { font: 500 14.5px var(--sans); color: var(--muted); background: none; border: 0; padding: 12px 22px; cursor: pointer; border-left: 1px solid var(--outline); transition: background .25s, color .25s; }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--text); color: var(--ground); }
@media (max-width: 560px) { .seg button { padding: 11px 12px; font-size: 13px; } }
.dial { width: min(400px, 80vw); height: min(400px, 80vw); margin: 0 auto; padding: 16px; }
.dial img { opacity: 0; transition: opacity .5s var(--ease); }
.dial img.on { opacity: 1; }
.caption { margin-top: 32px; color: var(--muted); min-height: 28px; }

/* records */
.pair { display: flex; justify-content: center; align-items: flex-start; gap: 36px; }
.pair .phone { width: 290px; }
.pair .phone:nth-child(2) { margin-top: 70px; }
@media (max-width: 700px) { .pair { gap: 14px; } .pair .phone { width: 46%; border-radius: 26px; padding: 6px; } .pair .phone img { border-radius: 21px; } .pair .phone:nth-child(2) { margin-top: 40px; } }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; max-width: 920px; margin: 48px auto 0; }
.notes div { background: var(--ground); padding: 24px 26px; }
.notes h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.notes p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .notes { grid-template-columns: 1fr; } }

/* film */
.film { position: relative; max-width: 1000px; margin: 0 auto; aspect-ratio: 16 / 9; border: 1px solid var(--outline); border-radius: 20px; overflow: hidden; background: #000; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film .cover { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; background: rgba(12, 13, 15, .25); transition: opacity .4s; }
.film.playing .cover { opacity: 0; pointer-events: none; }
.film .play { width: 72px; height: 72px; border-radius: 50%; background: var(--text); display: grid; place-items: center; }
.film .play svg { width: 22px; margin-left: 3px; fill: var(--ground); }

/* plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 920px; margin: 0 auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--outline); border-radius: 16px; padding: 30px; }
.plan.pro { border-color: #4a4f55; }
.plan .top { display: flex; justify-content: space-between; align-items: center; }
.plan h3 { font-size: 20px; font-weight: 600; }
.price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font: 500 44px/1 var(--mono); letter-spacing: -.04em; }
.price span { color: var(--muted); font-size: 15px; }
.plan .small { color: var(--muted); font-size: 14.5px; }
.plan ul { list-style: none; margin-top: 22px; border-top: 1px solid var(--hair); }
.plan li { padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15.5px; color: #cfd2d5; }
.plan li:last-child { border-bottom: 0; }

/* trust */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; max-width: 920px; margin: 0 auto; }
.trio h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.trio p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; gap: 32px; } }

/* faq */
.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--hair); }
details { border-bottom: 1px solid var(--hair); }
summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 18px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--muted); transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding: 0 0 22px; }
details a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

footer { border-top: 1px solid var(--hair); padding: 36px 0 52px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* motion */
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
:root { interpolate-size: allow-keywords; }
.rv { opacity: 0; transform: translateY(36px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease), letter-spacing 1.2s var(--ease); }
.rv.in { opacity: 1; transform: none; filter: none; }
.rv.from-l { transform: translateX(-80px); }
.rv.from-r { transform: translateX(80px) rotate(3deg); }
.rv.zoom { transform: scale(.8) rotate(-24deg); transition-duration: 1s, 1.4s, 1s; }
.rv.rise { transform: perspective(1200px) translateY(140px) rotateX(22deg); transform-origin: 50% 100%; transition-duration: 1s, 1.4s, 1s; }
.rv.from-l.in, .rv.from-r.in, .rv.zoom.in, .rv.rise.in { transform: none; }
.rv.stagger { opacity: 1; transform: none; filter: none; }
.stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 100ms); }
.stagger.in > * { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
.kicker.rv { letter-spacing: .5em; }
.kicker.rv.in { letter-spacing: .2em; }

/* headlines rise word by word from a mask */
.split { opacity: 1; transform: none; filter: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1s var(--ease) calc(var(--i) * 60ms + 80ms); }
.split.in .w > span { transform: none; }

/* hero: devices focus in one by one, then drift at their own depth */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(640px circle at var(--mx, 50%) var(--my, 20%), rgba(255, 255, 255, .05), transparent 62%); transition: background .2s; }
.scene.rv { opacity: 1; transform: none; filter: none; }
.scene > .phone, .scene > .watch { opacity: 0; scale: .94; filter: blur(12px); transition: opacity 1.1s var(--ease), scale 1.3s var(--ease), filter 1.1s var(--ease); }
.scene > .phone { transition-delay: .3s; translate: 0 calc(var(--p, 0) * -40px); }
.scene > .phone.b { transition-delay: .5s; translate: 0 calc(var(--p, 0) * -100px); }
.scene > .watch { transition-delay: .7s; translate: 0 calc(var(--p, 0) * -150px); }
.scene.in > .phone, .scene.in > .watch { opacity: 1; scale: 1; filter: none; }

/* screens wipe on as their phone arrives */
.phone > img:first-child { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease) .35s; }
.in .phone > img:first-child, .phone.in > img:first-child { clip-path: inset(0); }
.scene .phone.b > img:first-child { transition-delay: .65s; }

/* 01: a light passes over the phone when the read lands */
.swap .phone::after { content: ""; position: absolute; inset: 9px; border-radius: 32px; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .16) 50%, transparent) no-repeat 0 -60% / 100% 35%; }
.swap.read .phone::after { animation: scan 1.2s var(--ease); }
@keyframes scan { 0% { opacity: 1; background-position: 0 -60%; } 100% { opacity: 1; background-position: 0 160%; } }
#pct { transition: color .3s, background .3s; }
#pct.gain { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.12); } }

/* 02: sliding pill, timer, soft change of screens */
.seg { position: relative; isolation: isolate; }
.seg .pill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; z-index: -1; background: var(--text); border-radius: 999px; transition: left .5s var(--ease), width .5s var(--ease); }
.seg.has-pill button.on { background: none; }
.seg.has-pill button.on, .seg.has-pill button.on + button { border-left-color: transparent; }
.dial img { scale: 1.05; filter: blur(6px); transition: opacity .6s var(--ease), scale .9s var(--ease), filter .6s var(--ease); }
.dial img.on { scale: 1; filter: none; }
.caption { transition: opacity .25s; }
.caption.out { opacity: 0; }
.tick { width: 120px; height: 2px; margin: 10px auto 0; border-radius: 2px; background: var(--hair); overflow: hidden; transition: opacity .4s; }
.tick i { display: block; height: 100%; background: var(--muted); transform-origin: left; transform: scaleX(0); }
.tick.run i { animation: fill 4.2s linear forwards; }
.tick.off { opacity: 0; }
@keyframes fill { to { transform: scaleX(1); } }

/* 03: phones drift apart as you scroll */
.pair .phone { translate: 0 calc(var(--q, 0) * 34px); }
.pair .phone:nth-child(2) { translate: 0 calc(var(--q, 0) * -34px); }
.notes div { transition: background .3s; }
.notes div:hover { background: var(--surface); }

/* film grows into place; the play button breathes */
#player { scale: var(--fs, 1); }
.film .play { position: relative; transition: scale .3s var(--ease); }
.film .cover:hover .play { scale: 1.08; }
.film .play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--text); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .5; } to { transform: scale(1.9); opacity: 0; } }

/* plans */
.plan { position: relative; transition: translate .4s var(--ease), border-color .4s; }
.plan:hover { translate: 0 -4px; border-color: var(--muted); }
.plan.pro::before { content: ""; position: absolute; inset: -1px; border-radius: 16px; padding: 1px; pointer-events: none; background: conic-gradient(from var(--a), transparent 0 72%, rgba(255, 255, 255, .6) 86%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 7s linear infinite; }
@keyframes spin { to { --a: 360deg; } }

/* nav: scroll progress and the section you're in */
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--muted); transform-origin: left; transform: scaleX(var(--sp, 0)); opacity: .6; }
.nav nav a { transition: color .3s; }
.nav nav a.on { color: var(--text); }
.btn { transition: opacity .2s, border-color .2s, translate .3s var(--ease); }
.btn:hover { translate: 0 -1px; }

/* faq opens smoothly where supported */
details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
details[open]::details-content { height: auto; }

.shot *, .shot *::before, .shot *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .stagger > *, .split .w > span, .scene > *, .phone > img:first-child, .dial img { opacity: 1 !important; transform: none !important; transition: none !important; filter: none !important; scale: 1 !important; translate: none !important; clip-path: none !important; }
  .dial img:not(.on) { opacity: 0 !important; }
  .paste .caret, .plan.pro::before, .film .play::after, .swap .phone::after { animation: none; }
  .tick { display: none; }
}
