/* Reywvo website. No external requests: fonts are local, no trackers. */
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/spacegrotesk-latin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrainsmono-latin.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0F1115; --pan: #1B1F27; --line: #2A303B; --line2: #3A4250;
  --text: #FFFFFF; --text2: #C5CAD3; --mut: #8B93A1;
  --rw: #2EE6A6; --rw-hi: #5BEDBA; --rw-ink: #0B1A16;
  --head: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--head); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; }
a { color: var(--rw); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.nav.solid { position: static; border-bottom: 1px solid var(--line); }
.nav .wrap { max-width: 1160px; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { color: var(--text2); text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: 6px; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); background: rgba(255,255,255,.07); }

/* Hero */
.hero { position: relative; min-height: min(80vh, 740px); display: grid; place-items: center; overflow: hidden; background: #05070a url('/assets/hero.webp') center / cover no-repeat; isolation: isolate; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.hero.no-video video { display: none; } /* if the phone refuses to play it, show the still picture instead */
.hero::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 46% 42% at 50% 50%, rgba(4,6,10,.62), rgba(4,6,10,0) 100%), linear-gradient(180deg, rgba(4,6,10,.45) 0%, rgba(4,6,10,.12) 40%, rgba(4,6,10,.25) 70%, var(--bg) 100%); }
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 100px 20px 90px; max-width: 820px; text-shadow: 0 2px 14px rgba(0,0,0,.75); }
.hero h1 { margin: 0 0 40px; font-size: clamp(50px, 8.6vw, 92px); line-height: .95; letter-spacing: .015em; text-transform: uppercase; color: var(--rw); }
.tag { font-weight: 700; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 14px; color: #fff; text-wrap: balance; }
.tag em { font-style: normal; color: var(--rw); }
.sub { font-size: clamp(16px, 2.2vw, 20px); color: #d3dbe3; margin: 0 auto 30px; max-width: 620px; text-wrap: balance; }
.btn { display: inline-flex; align-items: center; gap: 12px; background: var(--rw); color: var(--rw-ink); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 19px; padding: 16px 30px; border-radius: 8px; border: 1px solid var(--rw); cursor: pointer; text-shadow: none; }
.btn:hover, .btn:focus-visible { background: var(--rw-hi); border-color: var(--rw-hi); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line2); font-size: 16px; padding: 12px 20px; }
.btn.ghost:hover, .btn.ghost:focus-visible { background: rgba(255,255,255,.08); border-color: var(--text2); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.avail { margin-top: 16px; font-size: 14px; color: #b6c2cd; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.avail span { display: inline-flex; align-items: center; gap: 6px; }
.avail svg { width: 15px; height: 15px; fill: currentColor; }
.avail a { color: #d3dbe3; }

/* On phones / tablets (touch): no .exe, show the "email me" box instead. No script needed. */
.phone-note { display: none; }
.phone-note p { margin: 0 0 14px; font-size: 18px; }
.phone-note .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.phone-note .url { margin: 14px 0 0; font-size: 15px; color: #b6c2cd; }
.phone-note .url b { color: #fff; }
.jsonly { display: none; }
.js .jsonly { display: inline-flex; }
@media (pointer: coarse) and (max-width: 820px) { .dl-block .btn.dl { display: none; } .phone-note { display: block; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 8px; background: var(--pan); margin: -44px auto 0; position: relative; z-index: 2; max-width: 1040px; }
.stats div { padding: 22px 20px; text-align: center; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-size: 34px; letter-spacing: -.02em; line-height: 1.1; }
.stats span { display: block; color: var(--rw); font-size: 14px; font-weight: 600; margin-top: 4px; }
.stats small { display: block; color: var(--mut); font-size: 12px; margin-top: 2px; }

section.blk { margin-top: 96px; }
.kick { font-family: var(--mono); font-size: 13px; color: var(--rw); letter-spacing: .04em; margin: 0 0 8px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 12px; }
p.lead { color: var(--mut); font-size: 17px; max-width: 640px; margin: 0 0 32px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; padding: 0; margin: 0; }
.steps li { list-style: none; background: var(--pan); border: 1px solid var(--line); border-radius: 8px; padding: 22px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--mono); color: var(--rw); font-size: 13px; margin-bottom: 10px; }
.steps strong { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span { color: var(--mut); }
kbd { font-family: var(--mono); font-size: 13px; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 7px; }

.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat div { background: var(--pan); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.feat h3 { font-size: 17px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.feat p { color: var(--mut); margin: 0; font-size: 15px; }
.tick { width: 18px; height: 18px; fill: none; stroke: var(--rw); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

figure.shot { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #05070a; }
figure.shot img { display: block; width: 100%; height: auto; }
figure.shot figcaption { padding: 12px 16px; font-size: 14px; color: var(--mut); background: var(--pan); border-top: 1px solid var(--line); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; margin-top: 14px; }

.phonebox { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; background: var(--pan); border: 1px solid var(--line); border-radius: 10px; padding: 36px 40px; }
.phonebox ul { padding: 0; margin: 16px 0 0; list-style: none; }
.phonebox li { display: flex; gap: 10px; margin: 8px 0; color: var(--mut); }
.phonebox li .tick { margin-top: 4px; }
.phonebox img { width: 100%; height: auto; border-radius: 22px; border: 6px solid #0a0d12; box-shadow: 0 0 0 1px var(--line2); display: block; }

.bench { background: var(--pan); border: 1px solid var(--line); border-radius: 10px; padding: 8px 28px 22px; }
.brow { display: grid; grid-template-columns: 220px 1fr; gap: 6px 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.brow:last-of-type { border-bottom: 0; }
.brow > strong { font-size: 15px; }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 64px 1fr 84px; gap: 10px; align-items: center; font-size: 13px; }
.bar i { display: block; height: 10px; border-radius: 5px; background: var(--line2); }
.bar.me i { background: var(--rw); }
.bar em { font-style: normal; color: var(--mut); }
.bar b { text-align: right; font-family: var(--mono); font-weight: 600; }
.bar.me b { color: var(--rw); }
.fine { font-size: 12px; color: var(--mut); margin: 14px 0 0; }

.faq details { background: var(--pan); border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; font-size: 16px; }
.faq details p { color: var(--mut); margin: 0 0 16px; }
.faq details p strong { color: var(--text2); }

.end { text-align: center; background: var(--pan); border: 1px solid var(--line2); border-radius: 10px; padding: 48px 24px; }
.end h2 { margin-bottom: 8px; }
.end p.l { color: var(--mut); margin: 0 0 24px; }
.end .phone-note p { color: var(--text2); }

footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--mut); font-size: 14px; text-align: center; }
footer a { color: var(--mut); }
footer a:hover { color: var(--text); }
footer p { margin: 4px 0; }

/* Legal pages (terms / privacy) */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 20px 0; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin: 0 0 16px; }
.legal h2 { font-size: 24px; margin: 40px 0 10px; }
.legal h3 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text2); }
.legal li { margin: 6px 0; }
.legal code { font-family: var(--mono); font-size: .88em; background: var(--pan); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.legal .tablewrap { overflow-x: auto; margin: 14px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; color: var(--text2); }
.legal th { background: var(--pan); color: var(--text); }
.legal a { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feat { grid-template-columns: 1fr 1fr; }
  .shots, .phonebox { grid-template-columns: 1fr; }
  .phonebox img { max-width: 260px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero-inner { padding: 96px 18px 72px; }
  .hero h1 { margin-bottom: 30px; }
  .btn { font-size: 17px; padding: 15px 22px; }
  section.blk { margin-top: 64px; }
  .stats b { font-size: 26px; }
  .stats div { padding: 16px 10px; }
  .steps, .feat { grid-template-columns: 1fr; }
  .brow { grid-template-columns: 1fr; }
  .bench { padding: 4px 16px 18px; }
  .phonebox { padding: 26px 20px; }
  .nav-links a.hide-s { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero video { display: none; } html { scroll-behavior: auto; } }

/* Back to top button: appears after the first screen. Hidden (and not focusable) until then; needs the small script. */
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 100vh; pointer-events: none; }
.totop { position: fixed; right: 20px; bottom: 24px; z-index: 20; width: 46px; height: 46px; padding: 0; display: none; place-items: center; background: var(--pan); color: var(--rw); border: 1px solid var(--line2); border-radius: 50%; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.js .totop { display: grid; }
.totop.show { opacity: 1; visibility: visible; }
.totop:hover, .totop:focus-visible { border-color: var(--rw); background: #232a35; }
.totop svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .totop { right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .totop { transition: none; } }

/* Click-to-enlarge pictures (home page) and the "Try it" row */
.zoom { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; color: inherit; }
.zoom:focus-visible { outline: 2px solid var(--rw); outline-offset: -2px; }
.phonebox .zoom { max-width: 260px; margin: 0 auto; }
html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(5,7,10,.95); display: grid; place-items: center; animation: lbin .15s ease; }
@keyframes lbin { from { opacity: 0; } }
.lb-fig { margin: 0; max-width: calc(100vw - 112px); max-height: 100vh; padding: 16px 0; text-align: center; }
.lb-fig img { display: block; max-width: 100%; max-height: calc(100vh - 80px); margin: 0 auto; border-radius: 8px; object-fit: contain; }
.lb-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--text2); }
.lb-count { color: var(--mut); font-family: var(--mono); font-size: 12px; }
.lb-x, .lb-nav { position: absolute; background: rgba(27,31,39,.9); color: var(--text); border: 1px solid var(--line2); border-radius: 50%; width: 46px; height: 46px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.lb-x { top: 14px; right: 14px; font-size: 28px; line-height: 1; }
.lb-nav { top: 50%; margin-top: -23px; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-x:hover, .lb-nav:hover, .lb-x:focus-visible, .lb-nav:focus-visible { border-color: var(--rw); color: var(--rw); }
@media (max-width: 640px) { .lb-fig { max-width: 100vw; padding: 0 8px; } .lb-nav { top: auto; bottom: 18px; margin: 0; } .lb-prev { left: 16px; } .lb-next { right: 16px; } .lb-fig img { max-height: calc(100vh - 150px); } }
@media (prefers-reduced-motion: reduce) { .lb { animation: none; } }

/* ---- Polish (home page). Everything below needs the small fx.js; animation uses only transform and opacity. ---- */
.stats b { font-variant-numeric: tabular-nums; }
.chip { display: flex; width: fit-content; align-items: center; gap: 6px; margin-top: 12px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--rw); background: #12302A; border: 1px solid #1F6B53; border-radius: 999px; padding: 3px 11px 3px 8px; }
.chip .tick { width: 14px; height: 14px; }
.nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 48px; pointer-events: none; }
html.fx .nav:not(.solid) { position: fixed; }
html.fx .nav:not(.solid)::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(15,17,21,.72); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .3s ease; }
html.scrolled .nav:not(.solid)::before { opacity: 1; }
html.fx [id] { scroll-margin-top: 84px; }
html.fx .rv { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
html.fx .rv.in { opacity: 1; transform: none; }
html.fx .bar i { transform: scaleX(0); transform-origin: left center; transition: transform .9s cubic-bezier(.2,.7,.2,1) .25s; }
html.fx .bench.in .bar i { transform: none; }
html.fx .chip { opacity: 0; transform: scale(.85); }
html.fx .steps li.in .chip { opacity: 1; transform: none; transition: opacity .4s ease calc(var(--d, 0ms) + .6s), transform .5s cubic-bezier(.3,1.6,.6,1) calc(var(--d, 0ms) + .6s); }
@media (prefers-reduced-motion: no-preference) {
  .btn.dl { position: relative; overflow: hidden; transition: transform .18s cubic-bezier(.3,1.7,.6,1), background .15s ease; }
  .btn.dl::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 55%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent); transform: translateX(-140%) skewX(-20deg); pointer-events: none; }
  .btn.dl:hover::after { transform: translateX(260%) skewX(-20deg); transition: transform .75s ease; }
  .btn.dl:active { transform: scale(.95); }
}
.tw { display: block; }
.phonebox .tw { max-width: 260px; margin: 0 auto; }
.phonebox .zoom { max-width: none; margin: 0; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* The mouse is tracked on the still wrapper (.tw); only the picture inside tilts, so it can never flicker at the edges. */
  html.fx .zoom { overflow: hidden; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease-out; }
  html.fx .zoom.tilt { will-change: transform; }
  .zoom { position: relative; }
  .phonebox .zoom { border-radius: 22px; }
  /* Mouse glow: pinned to the window at the mouse position; shown only over the main body text, never over pictures or the video. */
  .mouse-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, rgba(46,230,166,.13), transparent 62%); opacity: 0; transition: opacity .3s ease; pointer-events: none; z-index: 3; will-change: transform; }
  .mouse-glow.on { opacity: 1; }
}

.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
