/* Same tokens as the app (src/style.css): OKLCH colors, alpha borders, lighter-is-higher dark surfaces. */
:root {
  color-scheme: light;
  --bg:      light-dark(oklch(0.972 0.006 245), oklch(0.150 0.012 250));
  --surface: light-dark(oklch(1 0 0),           oklch(0.215 0.015 250));
  --raised:  light-dark(oklch(1 0 0),           oklch(0.262 0.017 250));
  --text:    light-dark(oklch(0.24 0.03 255),   oklch(0.95 0.008 245));
  --muted:   light-dark(oklch(0.48 0.025 255),  oklch(0.74 0.02 250));
  --line:        light-dark(oklch(0.3 0.06 255 / .12), oklch(1 0 0 / .09));
  --line-strong: light-dark(oklch(0.3 0.06 255 / .22), oklch(1 0 0 / .17));
  --highlight:   light-dark(oklch(1 0 0 / 0),          oklch(1 0 0 / .06));
  --shade:       light-dark(oklch(0.3 0.06 255 / .1),  oklch(0 0 0 / .4));
  --accent:    light-dark(oklch(0.50 0.16 250), oklch(0.76 0.12 240));
  --on-accent: light-dark(oklch(0.99 0 0),      oklch(0.17 0.03 250));
  --elev: 0 1px 2px var(--shade), 0 8px 24px -12px var(--shade), inset 0 1px 0 var(--highlight);
  --ease: cubic-bezier(.2, .7, .2, 1); /* ease-out, no overshoot */
  --iw: 2;
  --gutter: clamp(16px, 5vw, 48px);
  font: 450 16.5px/1.55 "Inter Variable", Inter, "Segoe UI Variable Text", "Segoe UI", "Noto Sans", system-ui, sans-serif;
  color: var(--text);
  scroll-behavior: smooth;
}
:root[data-theme="dark"] { color-scheme: dark; }
html[lang="el"] [lang="en"], html[lang="en"] [lang="el"] { display: none; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg) linear-gradient(170deg in oklch, color-mix(in oklch, var(--accent) 9%, var(--bg)), var(--bg) 60dvh) no-repeat; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid color-mix(in oklch, var(--accent) 70%, transparent); outline-offset: 2px; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: var(--iw); stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; cursor: pointer;
  padding: 8px 14px; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); --iw: 2.3;
  background: var(--raised); border: 1px solid var(--line-strong); box-shadow: 0 1px 1px var(--shade), inset 0 1px 0 var(--highlight);
  transition: scale .15s var(--ease), filter .15s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { scale: .97; }
.btn.primary { color: var(--on-accent); border-color: oklch(0 0 0 / .12); background: linear-gradient(to bottom in oklch, color-mix(in oklch, var(--accent) 86%, white), var(--accent)); box-shadow: 0 1px 2px var(--shade), inset 0 1px 0 oklch(1 0 0 / .22); }
.btn.big { padding: 12px 20px; border-radius: 13px; font-size: 16.5px; }
.btn.icon { padding: 8px 10px; font-size: 13px; }
.btn.soon { color: var(--muted); cursor: default; box-shadow: none; background: none; border-style: dashed; }
.btn.soon:hover, .btn.soon:active { filter: none; scale: 1; }
/* Blurred icon swap, as in the app. */
.swap { display: inline-grid; place-items: center; }
.swap > * { grid-area: 1 / 1; transition: opacity .25s var(--ease), filter .25s var(--ease), scale .25s var(--ease); }
.swap > :last-child, .swap.on > :first-child { opacity: 0; filter: blur(4px); scale: .4; transition-duration: .2s; } /* exits 20% shorter */
.swap.on > :last-child { opacity: 1; filter: none; scale: 1; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; padding: 10px var(--gutter); background: color-mix(in oklch, var(--bg) 80%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; }
/* Scroll edge: the divider under the nav only appears once content is scrolling beneath it. */
@supports (animation-timeline: scroll()) {
  .nav { animation: nav-edge linear both; animation-timeline: scroll(); animation-range: 0 40px; }
}
@keyframes nav-edge { to { border-bottom-color: var(--line); } }
@supports not (animation-timeline: scroll()) { .nav { border-bottom-color: var(--line); } }
.brand { display: flex; align-items: center; gap: 8px; margin-right: auto; font-size: 16px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
.nav nav { display: flex; gap: 4px; margin-right: 8px; }
.nav nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--text); background: color-mix(in oklch, var(--text) 6%, transparent); }

main { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding-block: clamp(48px, 9dvh, 96px); scroll-margin-top: 56px; }
h1 { font-size: clamp(34px, 5.6vw, 62px); line-height: 1.06; font-weight: 720; letter-spacing: -.035em; text-wrap: balance; max-width: 17ch; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; margin-bottom: 16px; }
h3 { font-size: 17px; font-weight: 650; margin: 22px 0 4px; }
p { color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.fine { font-size: 14px; margin-top: 16px; }

.hero { padding-top: clamp(40px, 9dvh, 96px); padding-bottom: 0; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); margin-top: 20px; max-width: 58ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Screenshots: concentric radius (frame 20, padding 8, image 12) and an alpha edge. */
.shot { --r: 20px; --p: 8px; padding: var(--p); border-radius: var(--r); background: color-mix(in oklch, var(--surface) 70%, transparent); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px var(--shade), var(--elev); }
.shot img { width: 100%; border-radius: calc(var(--r) - var(--p)); outline: 1px solid oklch(0 0 0 / .08); outline-offset: -1px; }
/* Masked edge: the hero screenshot fades into the page instead of ending on a hard line. */
.hero-shot { margin-top: clamp(36px, 7dvh, 64px); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; padding-bottom: 0; mask-image: linear-gradient(to bottom, #000 62%, #0000); }
.hero-shot img { border-radius: calc(var(--r) - var(--p)) calc(var(--r) - var(--p)) 0 0; aspect-ratio: 1280 / 640; object-fit: cover; object-position: top; }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.steps li { counter-increment: step; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--elev); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; font-size: 14px; font-weight: 650; color: var(--accent); background: color-mix(in oklch, var(--accent) 12%, transparent); border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent); }
.steps b { font-size: 17px; font-weight: 650; }
.steps p { font-size: 15px; margin-top: 4px; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature.flip > div { order: 2; }
.classes { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.classes li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px; font-size: 14.5px; font-weight: 600; color: color-mix(in oklch, var(--c) 60%, var(--text)); background: color-mix(in oklch, var(--c) 12%, transparent); border: 1px solid color-mix(in oklch, var(--c) 28%, transparent); }
.classes li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 24px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--elev); }
.card h3 { margin: 0; font-size: 19px; }
.card p { font-size: 15px; flex: 1; }
.card > .btn { align-self: flex-start; margin-top: 14px; }
.dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

footer { max-width: 1180px; margin: 0 auto; padding: 28px var(--gutter) 48px; border-top: 1px solid var(--line); }
footer p { font-size: 13.5px; max-width: none; margin-top: 4px; }
footer b { color: var(--text); }

picture { display: block; }
.menu-btn, .menu-app, .phone-tip { display: none; }
/* Wide screens: the menu is a plain row of links. The popover attribute only matters on phones. */
@media (min-width: 821px) {
  .nav nav { display: flex; position: static; inset: auto; margin: 0 8px 0 0; padding: 0; border: 0; background: none; overflow: visible; color: inherit; }
}
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip > div { order: 0; }
  .menu-btn { display: inline-flex; }
  /* Phone menu: a sheet under the nav bar; tap outside or Esc closes it (native popover). */
  .nav nav {
    position: fixed; inset: calc(64px + env(safe-area-inset-top)) var(--gutter) auto auto; width: min(280px, 100vw - 2 * var(--gutter)); margin: 0;
    flex-direction: column; gap: 2px; padding: 8px; border-radius: 18px; color: var(--text);
    background: color-mix(in oklch, var(--raised) 92%, transparent); backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--line-strong); box-shadow: 0 24px 64px -16px oklch(0 0 0 / .35);
    transform-origin: top right; transition: opacity .16s var(--ease), scale .16s var(--ease), display .16s allow-discrete, overlay .16s allow-discrete;
  }
  .nav nav:popover-open { display: flex; transition-duration: .2s; @starting-style { opacity: 0; scale: .95; } }
  .nav nav:not(:popover-open) { opacity: 0; scale: .95; }
  .nav nav a { padding: 12px 14px; font-size: 16.5px; color: var(--text); border-radius: 12px; }
  .nav nav .menu-app { display: flex; margin-top: 6px; color: var(--on-accent); }
  .phone-tip { display: block; font-size: 14px; padding: 10px 12px; border-radius: 12px; background: color-mix(in oklch, var(--accent) 9%, transparent); color: var(--text); }
}
@media (max-width: 600px) {
  /* Phone screenshots instead of tiny desktop ones, standing in a narrow frame. */
  .shot { --r: 30px; width: min(100%, 300px); margin-inline: auto; }
  .hero-shot { width: min(100%, 320px); }
  .hero-shot img { aspect-ratio: 780 / 1300; }
  .cta .btn { flex: 1 1 100%; }
  .nav .nav-app { display: none; }
  .steps li { padding: 18px; }
}
/* Safe areas: nothing hides under a notch or the home indicator. */
.nav { padding-top: max(10px, env(safe-area-inset-top)); padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
footer { padding-bottom: max(48px, calc(24px + env(safe-area-inset-bottom))); }
/* Touch screens: every control at least 44px tall. */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn.icon { min-width: 44px; }
}
/* Entrances: the hero settles line by line, 30ms apart; the screenshot is unmasked from the top down. */
.hero > * { animation: rise .4s var(--ease) both; animation-delay: calc((sibling-index() - 1) * 30ms); }
.hero-shot { animation: rise .4s var(--ease) both, unmask .7s var(--ease) .15s both; }
@keyframes rise { from { opacity: 0; translate: 0 8px; } }
@keyframes unmask { from { clip-path: inset(0 0 100% 0); } }
/* Cards rise into place as they scroll into view. */
@supports (animation-timeline: view()) {
  .steps li, .options .card { animation: rise linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
}
/* Theme switch: the new colours are revealed through a growing circle (theme.js revealTheme). */
.theme-vt::view-transition-old(root), .theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, ::before, ::after { transition-duration: .01ms !important; animation: none !important; }
  .nav { border-bottom-color: var(--line); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s !important; }
}
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(30px, 4vw, 44px); max-width: none; margin-bottom: 12px; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose ul { margin: 8px 0 0 20px; color: var(--muted); display: grid; gap: 6px; }

/* Accessibility: frosted surfaces go solid, high contrast gets solid fills and defined edges. */
@media (prefers-reduced-transparency: reduce) {
  .nav { backdrop-filter: none !important; }
  .nav { background: var(--bg); }
}
@media (prefers-contrast: more) {
  :root { --line: light-dark(oklch(0.3 0.06 255 / .45), oklch(1 0 0 / .4)); --line-strong: light-dark(oklch(0.3 0.06 255 / .7), oklch(1 0 0 / .6)); }
}
/* Taps act at once: no double-tap-zoom wait on touch screens. */
button, a, .btn { touch-action: manipulation; }
