/* HADU site. One family (Urbanist, assets/fonts). Neutral ground, almost no colour: the product screens carry it.
   Wine #7a1f3d only as a small accent (logo star, focus ring, chosen plan dot) in the light theme; green #1f5a4a only
   as one dot and the template input cells. No pink. The hero and the dark blocks stay dark in both themes; the rest
   switches between a light and a dark neutral. Text pairs are WCAG AA (ratios in the notes).
   Content is final in the HTML; anything that moves sits inside prefers-reduced-motion: no-preference, and a hidden
   start state only exists under html.js-motion (set by assets/site.js). */
:root {
  --bg: #ffffff;
  --paper: #f5f5f7;
  --card: #ffffff;
  --ink: #111113;             /* 18.9:1 on white, 17.6:1 on paper */
  --muted: #5e5e66;           /* 6.6:1 on white, 6.1:1 on paper */
  --line: #e3e3e8;
  --line-strong: #c8c8cf;
  --studio-1: #fbfbfc;
  --studio-2: #ececf0;
  --studio-3: #dcdce1;
  --glass-l: rgba(255, 255, 255, .7);
  --glass-l-line: rgba(255, 255, 255, .85);
  --solid: #111113;           /* black pill */
  --on-solid: #ffffff;
  --solid-hover: #2b2b30;
  --seg: #ececf0;
  --seg-on: #ffffff;
  --chip: #f0f0f3;
  --cell-in: #e6f2ec;
  --cell-in-ink: #1f5a4a;     /* 7.0:1 on #e6f2ec */
  --acc: #7a1f3d;             /* 9.6:1 on white */
  --focus-page: #7a1f3d;      /* 9.6:1 on white; the dark theme switches it to #f5f5f7 */
  --focus: var(--focus-page);
  --sl: max(var(--gut), env(safe-area-inset-left, 0px));   /* side gutters, clear of a notch (viewport-fit=cover) */
  --sr: max(var(--gut), env(safe-area-inset-right, 0px));
  --nav-past: rgba(255, 255, 255, .76);
  --nav-past-line: rgba(0, 0, 0, .07);
  --green: #1f5a4a;

  --night: #0b0b0d;
  --night-card: #141417;
  --on-night: #f5f5f7;        /* 18:1 on night */
  --on-night-muted: #a9a9b1;  /* 8.3:1 on night, 7.6:1 on #141417 */

  --r-xl: 32px;
  --r-l: 24px;
  --r-m: 16px;
  --wrap: 1200px;
  --gut: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --paper: #131316;
    --card: #1b1b1f;
    --ink: #f5f5f7;           /* 18:1 on bg, 15.6:1 on card */
    --muted: #a9a9b1;         /* 8.3:1 on bg, 7.2:1 on card */
    --line: #2b2b31;
    --line-strong: #45454d;
    --studio-1: #2c2c32;
    --studio-2: #1c1c20;
    --studio-3: #121215;
    --glass-l: rgba(34, 34, 40, .66);
    --glass-l-line: rgba(255, 255, 255, .12);
    --solid: #f5f5f7;
    --on-solid: #111113;
    --solid-hover: #d9d9de;
    --seg: #1f1f24;
    --seg-on: #3a3a42;
    --chip: #26262b;
    --cell-in: #173229;
    --cell-in-ink: #bfe3d4;   /* 9.9:1 on #173229 */
    --acc: #d2d2d8;           /* neutral in the dark: no wine on near-black */
    --focus-page: #f5f5f7;
    --nav-past: rgba(16, 16, 19, .74);
    --nav-past-line: rgba(255, 255, 255, .08);
    --night-card: #17171b;
  }
}
@media (min-width: 900px) { :root { --gut: 40px; } }
/* The hero, the top bar before it scrolls past the hero, the dark blocks and the toast stay dark in both themes: a light ring there
   (#f5f5f7: 17.6:1 on #0b0b0d, 14.7:1 on #26262b). Floating panels that use the page colours keep the page ring. */
.hero, .nav, .dark, .close, .toast { --focus: #f5f5f7; }
.is-past .nav, .nav--solid, .is-past .toast, .menu__panel { --focus: var(--focus-page); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }
body { margin: 0; font-family: Urbanist, system-ui, sans-serif; font-size: 17px; line-height: 1.5; background: var(--bg); color: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a, summary, label, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pill:active, .nav__lang:active, .menu__panel a:active, .choice:active span, .seg label:active span { opacity: .78; }
.cfg__price, .plans { font-variant-numeric: tabular-nums; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--sr) 0 var(--sl); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 80; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 999px; }
.nw { white-space: nowrap; }
.mt-s { margin-top: 12px; }
.muted { color: var(--muted); }

.logo { display: block; width: 88px; height: 22px; --ink-c: var(--ink); --acc-c: var(--acc); }
.logo__ink { fill: var(--ink-c); }
.logo__acc { fill: var(--acc-c); }
.soc { width: 18px; height: 18px; flex: none; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btns--center { justify-content: center; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.pill small { font-weight: 500; font-size: 15px; opacity: .75; }
.pill--white { background: #fff; color: #111113; }
@media (hover: hover) { .pill--white:hover { background: #e6e6eb; } }
.pill--glass { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .34); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@media (hover: hover) { .pill--glass:hover { background: rgba(255, 255, 255, .2); } }
.pill--black { background: var(--solid); color: var(--on-solid); }
@media (hover: hover) { .pill--black:hover { background: var(--solid-hover); } }
.pill--line { background: var(--card); color: var(--ink); border: 1.5px solid var(--line-strong); }
@media (hover: hover) { .pill--line:hover { border-color: var(--ink); } }
.pill--wide { width: 100%; min-height: 54px; }
.pill--nav { position: relative; min-height: 36px; padding: 0 16px; font-size: 15px; background: #fff; color: #111113; }
/* touch targets: the box looks the same, the tappable area is 44px tall (invisible ::after) */
.pill--nav::after, .nav__lang::after, .menu summary::after, .seg span::after { content: ""; position: absolute; inset: -5px 0; }
.menu summary::after { inset: -3px 0; }
.seg span::after { inset: -2px 0; }

/* ---------- Top bar: translucent, fixed. Dark glass over the hero, page glass after it ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; background: rgba(16, 16, 19, .58); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: background-color .3s, border-color .3s, color .3s; }
.nav__in { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--sr) 0 var(--sl); height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: block; padding: 8px 0; margin-right: auto; }
.nav .logo { --ink-c: #fff; --acc-c: #c9c9cf; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 15px; }
@media (hover: hover) { .nav__links a:hover { text-decoration: underline; text-underline-offset: 6px; } }
.nav__end { display: flex; align-items: center; gap: 12px; }
.nav__lang { position: relative; display: inline-flex; align-items: center; min-height: 36px; min-width: 44px; justify-content: center; padding: 0 12px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid rgba(255, 255, 255, .3); }
@media (hover: hover) { .nav__lang:hover { background: rgba(255, 255, 255, .12); } }
.nav__lang-code { display: none; gap: 4px; }
.lc { opacity: .6; }
.lc--on { opacity: 1; }
.is-past .nav, .nav--solid { color: var(--ink); background: var(--nav-past); border-bottom-color: var(--nav-past-line); }
.is-past .nav .logo, .nav--solid .logo { --ink-c: var(--ink); --acc-c: var(--acc); }
.is-past .pill--nav { background: var(--solid); color: var(--on-solid); }
.is-past .nav__lang, .nav--solid .nav__lang { border-color: var(--line-strong); }
@media (hover: hover) { .is-past .nav__lang:hover, .nav--solid .nav__lang:hover { background: var(--chip); } }

/* phone menu (opens without script; site.js closes it after a tap) */
.menu { display: none; position: relative; }
.menu summary { position: relative; list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .3); }
.is-past .menu summary { border-color: var(--line-strong); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
.menu summary span::before, .menu summary span::after { content: ""; position: absolute; left: 0; }
.menu summary span::before { top: -5px; }
.menu summary span::after { top: 5px; }
.menu[open] summary span { background: transparent; }
.menu[open] summary span::before { top: 0; transform: rotate(45deg); }
.menu[open] summary span::after { top: 0; transform: rotate(-45deg); }
.menu__panel { position: absolute; right: 0; top: 50px; width: min(260px, calc(100vw - 32px)); display: grid; padding: 8px; border-radius: 20px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .35); }
.menu__panel a { padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 17px; }
@media (hover: hover) { .menu__panel a:hover { background: var(--chip); } }

/* ---------- Live notification card (sample). Fixed on wide screens, in the first screen on phones ---------- */
.toast { position: absolute; z-index: 45; top: calc(76px + env(safe-area-inset-top, 0px)); right: max(24px, env(safe-area-inset-right, 0px)); width: 340px; display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 20px; color: #fff; background: rgba(30, 30, 34, .74); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: saturate(170%) blur(24px); backdrop-filter: saturate(170%) blur(24px); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); transition: background-color .3s, color .3s; }
.toast__icon { flex: none; width: 40px; height: 40px; border-radius: 11px; background: #fff; display: grid; place-items: center; }
.toast__icon .logo { width: 30px; height: 8px; --ink-c: #111113; --acc-c: #7a1f3d; }
.toast__body { display: grid; gap: 1px; min-width: 0; flex: 1; }
.toast__top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.toast__time { font-size: 13px; opacity: .72; }
.toast__text { font-size: 14px; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-past .toast { color: var(--ink); background: var(--nav-past); border-color: var(--nav-past-line); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .28); }

/* ---------- Device frames ---------- */
.phone { --w: 260px; width: var(--w); flex: none; position: relative; }
.phone__screen { aspect-ratio: 9 / 19.5; border-radius: calc(var(--w) * .15); overflow: hidden; background: #f4f3ef; border: calc(var(--w) * .035) solid #0e0e10; box-shadow: 0 0 0 1px rgba(127, 127, 140, .25), 0 40px 70px -28px rgba(0, 0, 0, .5), 0 10px 20px -12px rgba(0, 0, 0, .3); }
.phone__status { height: calc(var(--w) * .13); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--w) * .08); font-size: calc(var(--w) * .052); font-weight: 600; color: #111; }
.phone__isle { width: 30%; height: 52%; border-radius: 999px; background: #0e0e10; }
.phone__bat { width: 9%; height: 26%; border-radius: 3px; border: 1.5px solid #111; }
.phone__screen img { width: 100%; }
.phone figcaption { margin-top: 18px; text-align: center; font-weight: 600; font-size: 15px; }
.phone figcaption b { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; border-radius: 50%; background: var(--solid); color: var(--on-solid); font-size: 13px; }
.win { border-radius: 14px; overflow: hidden; background: #1d1d21; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .8), 0 20px 40px -20px rgba(0, 0, 0, .6); }
.win__bar { height: 30px; display: flex; gap: 7px; align-items: center; padding-left: 14px; background: #232327; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.win__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }

/* ---------- Frosted glass cards ---------- */
.glass { position: absolute; z-index: 3; min-width: 170px; padding: 16px 18px; border-radius: 22px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: saturate(160%) blur(22px); backdrop-filter: saturate(160%) blur(22px); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .5); }
.glass__k { font-size: 13px; font-weight: 600; opacity: .8; }
.glass__v { font-size: 44px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.glass__v small { font-size: 17px; font-weight: 600; letter-spacing: 0; opacity: .82; }
.glass__v--word { font-size: 26px; padding-top: 4px; }
.glass--light { color: var(--ink); background: var(--glass-l); border-color: var(--glass-l-line); box-shadow: 0 24px 48px -22px rgba(0, 0, 0, .3); }
.glass--light .glass__k { opacity: 1; color: var(--muted); }
.meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .22); margin-top: 12px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 100%; border-radius: inherit; background: #fff; }

/* ---------- Hero: a dark studio set, the same in both themes ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(ellipse 62% 70% at 70% 40%, #2c2c31 0%, #151518 52%, #08080a 100%); min-height: 760px; height: 100svh; max-height: 1080px; }
.hero__stage { position: absolute; inset: 0; --pw: clamp(200px, 13.5vw, 260px); --pr: max(32px, 6vw, env(safe-area-inset-right, 0px)); --top: 168px; }
.hero__glow { position: absolute; left: 50%; top: -10%; width: 60%; height: 85%; background: radial-gradient(closest-side, rgba(255, 255, 255, .12), transparent); }
/* Two real screens side by side, nothing on top of their text: the Windows program with its one stat card, then the phone */
.hero__pc { position: absolute; z-index: 1; right: calc(var(--pr) + var(--pw) + 44px); top: calc(var(--top) + 56px); width: clamp(380px, 26vw, 600px); display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.win--hero { width: 100%; transform: perspective(2000px) rotateY(-9deg); transform-origin: right center; }
.phone--hero { --w: var(--pw); position: absolute; right: var(--pr); top: var(--top); z-index: 2; }
.phone--hero .phone__screen { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 50px 90px -20px rgba(0, 0, 0, .9), 0 0 120px -10px rgba(255, 255, 255, .12); }
.hero__pc .glass--undo { position: relative; min-width: 190px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(8, 8, 10, .85), transparent); pointer-events: none; }
.hero__text { position: absolute; z-index: 4; left: max(var(--sl), (100% - var(--wrap)) / 2); bottom: clamp(56px, 10vh, 112px); width: min(660px, 100% - 2 * var(--gut)); }
.hero h1 { font-size: clamp(46px, 6.2vw, 90px); line-height: 1; font-weight: 700; letter-spacing: -.035em; }
.hero__lead { margin-top: 20px; font-size: 19px; max-width: 540px; color: rgba(255, 255, 255, .86); }
.hero .btns { margin-top: 28px; }
.hero__note { margin-top: 18px; font-size: 15px; color: rgba(255, 255, 255, .74); }

/* ---------- Sections ---------- */
.sec { padding: 128px 0; background: var(--bg); }
.sec--paper { background: var(--paper); }
.sec--tight { padding-top: 0; }
.head { text-align: center; max-width: 840px; margin: 0 auto 56px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.eyebrow--dark { color: var(--on-night-muted); }
h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -.03em; }
.sub { margin: 20px auto 0; max-width: 640px; font-size: 19px; color: var(--muted); }
.sub--dark { color: var(--on-night-muted); }
.caption, .fine { margin-top: 18px; text-align: center; font-size: 15px; color: var(--muted); }

/* big rounded studio block */
.shoot { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: 72px 40px 48px; display: flex; justify-content: center; align-items: flex-end; gap: 48px; background: radial-gradient(ellipse 60% 70% at 50% 30%, var(--studio-1) 0%, var(--studio-2) 55%, var(--studio-3) 100%); }
.shoot .phone { --w: 236px; }
.shoot .phone--b { --w: 272px; margin-bottom: 26px; }
.glass--fee { left: 32px; top: 32px; }

.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px; }
.feat__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--chip); margin-bottom: 18px; }
.feat__ic svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.feat p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* ---------- Plan picker ---------- */
.cfg { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cfg__media { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 560px; display: grid; place-items: center; background: radial-gradient(ellipse 70% 60% at 50% 35%, var(--studio-1) 0%, var(--studio-2) 60%, var(--studio-3) 100%); }
.phone--cfg { --w: 270px; transform: rotate(4deg); }
.glass--trial { left: 28px; bottom: 28px; }
.cfg__panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px; }
.cfg__name { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.cfg__price { margin-top: 2px; font-size: 18px; font-weight: 600; }
.cfg__price b { font-size: 44px; letter-spacing: -.02em; }
.cfg__vat { color: var(--muted); font-size: 15px; }
.opt { border: 0; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); min-width: 0; }
.opt legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.opt__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; clear: both; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input, .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border-radius: var(--r-m); border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.choice b { font-size: 17px; }
.choice small { font-size: 14px; color: var(--muted); }
@media (hover: hover) { .choice:hover span { border-color: var(--line-strong); } }
.choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input:checked + span b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; vertical-align: middle; border-radius: 50%; background: var(--acc); }
.choice input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg { display: inline-flex; clear: both; padding: 4px; border-radius: 999px; background: var(--seg); }
.seg label { cursor: pointer; }
.seg span { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); }
.seg span small { font-size: 13px; font-weight: 500; }
.seg input:checked + span { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.cfg__info { display: flex; align-items: center; gap: 10px; margin: 24px 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-m); font-size: 15px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
@media (prefers-color-scheme: dark) { .dot { background: #bfe3d4; } }

/* all plans: a quiet spec table (VAT-inclusive row first and big) */
.table-title { margin: 64px 0 16px; font-size: 22px; font-weight: 700; text-align: center; }
.plans { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 8px 24px; overflow-x: auto; }
.plans__row { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 12px; align-items: baseline; min-width: 620px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.plans__row:first-child { border-top: 0; }
.plans__row--h { color: var(--ink); font-weight: 700; font-size: 15px; }
.plans__row [role="rowheader"] { color: var(--ink); font-weight: 600; }
.plans__row--big { color: var(--ink); }
.plans__row--big b { font-size: 26px; letter-spacing: -.02em; }
.price-line { margin: 20px auto 0; max-width: 820px; text-align: center; font-size: 15px; color: var(--muted); }
.price-line b { color: var(--ink); }

/* ---------- Dark product block (PC Optimizer) and the follow block ---------- */
.dark, .close { border-radius: var(--r-xl); overflow: hidden; color: var(--on-night); background: radial-gradient(ellipse 60% 80% at 80% 40%, #26262b 0%, #121215 60%, var(--night) 100%); }
@media (prefers-color-scheme: dark) { .dark, .close { border: 1px solid var(--line); } }
.dark { display: grid; grid-template-columns: .9fr 1.3fr; gap: 48px; align-items: center; padding: 72px 0 72px 64px; }
.dark h2, .close h2 { color: #fff; font-size: clamp(34px, 3.7vw, 54px); }
.dark .sub { margin-left: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
.tags li { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.dark__text { position: relative; z-index: 2; }
/* the product screen is decoration: its 3D-transformed layer must never catch a tap meant for the follow button (Safari hit-testing) */
.dark__media { position: relative; z-index: 1; pointer-events: none; }
.win--flat { width: 118%; transform: perspective(2200px) rotateY(-10deg); transform-origin: left center; }
.glass--last { left: -28px; bottom: -28px; }
.close { padding: 88px 32px; text-align: center; }
.close .btns { margin-top: 32px; }
.close .pill { white-space: normal; text-align: center; padding: 10px 22px; }

/* ---------- Template cards ---------- */
.tpl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--card); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.card__img img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card__for { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.card__body > p:not(.card__for):not(.fmt) { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.fmt { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.chip { font-size: 13px; font-weight: 600; background: var(--chip); padding: 4px 10px; border-radius: 999px; }

/* capacity */
.room { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 8px 24px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 14px 8px 14px 0; border-top: 1px solid var(--line); vertical-align: baseline; }
thead th { border-top: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 600; }
td { color: var(--muted); }
.num { text-align: right; padding-right: 0; }
td.num b { color: var(--ink); font-size: 24px; letter-spacing: -.02em; }
.shot { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .35); background: #fff; }

/* setup */
.how { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 26px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 50%; background: var(--solid); color: var(--on-solid); font-weight: 700; }
.steps h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.steps p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.sheet { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 4px; padding: 14px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .3); transform: rotate(-2deg); font-size: 16px; font-variant-numeric: tabular-nums; }
.sheet span { padding: 10px 12px; border-radius: 8px; background: var(--chip); }
.sheet .h { background: transparent; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sheet .in { background: var(--cell-in); color: var(--cell-in-ink); font-weight: 700; }

/* questions */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq__head .muted { margin-top: 16px; font-size: 17px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; font-size: 24px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* ---------- Footer ---------- */
.foot { padding: 72px 0 calc(48px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 1px solid var(--line); font-size: 15px; }
.foot__in { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr) 1.5fr; gap: 24px; }
.foot h3 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot li + li { margin-top: 8px; }
.foot a { position: relative; text-decoration: none; }
.foot li a::after { content: ""; position: absolute; inset: -4px 0; }
@media (pointer: coarse) { .foot li + li { margin-top: 0; } .foot li a { display: inline-flex; align-items: center; min-height: 44px; } .foot li a::after { display: none; } }
@media (hover: hover) { .foot a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.soc-link { display: inline-flex; align-items: center; gap: 8px; }
.foot__legal { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); max-width: 860px; color: var(--muted); }
.foot__legal h3 { margin-bottom: 10px; }
.foot__legal p + p { margin-top: 10px; }
.foot__legal a { text-decoration: underline; }
.foot__base { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }

/* ---------- 404 ---------- */
.lost { padding: 140px var(--sr) calc(96px + env(safe-area-inset-bottom, 0px)) var(--sl); display: grid; gap: 48px; max-width: calc(760px + 2 * var(--gut)); }
.lost section { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 40px; }
.lost h1, .lost__en { text-wrap: balance; }
.lost__en { margin: 0; font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.lost h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.lost .lead { margin: 14px 0 28px; color: var(--muted); font-size: 18px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) {
  .feats { grid-template-columns: 1fr 1fr; }
  .tpl { grid-template-columns: 1fr 1fr; }
  .dark { grid-template-columns: minmax(0, 1fr); padding: 56px 32px 0; gap: 40px; }
  .win--flat { width: 112%; }
  .glass--last { left: 0; bottom: 24px; }
  .how { grid-template-columns: 1fr; }
  .sheet { max-width: 420px; }
}
@media (min-width: 1200px) and (max-width: 1599px) { .hero__pc { top: calc(var(--top) + 24px); width: 25vw; } }
/* hero between phone and wide desktop: smaller screens, the stat card sits under the window, right of the headline */
@media (min-width: 900px) and (max-width: 1199px) {
  .hero__stage { --pw: 170px; --pr: max(32px, 5vw); }
  .hero__pc { top: var(--top); width: 280px; gap: 16px; right: calc(var(--pr) + var(--pw) + 30px); }
  .hero__pc .glass--undo { min-width: 0; padding: 12px 16px; }
  .hero__pc .glass__v { font-size: 34px; }
}
@media (max-width: 899px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__end { gap: 8px; }
  .menu { display: block; }
  .nav__lang { padding: 0 10px; }
  .nav__lang-full { display: none; }
  .nav__lang-code { display: inline-flex; }
  .toast { position: absolute; top: calc(72px + env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: auto; }
  .hero { height: auto; min-height: 100svh; max-height: none; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__stage { position: relative; inset: auto; flex: none; margin-top: 140px; --pw: min(38vw, 220px); --pr: var(--sr); --top: 0px; height: calc(var(--pw) * 2.167 + 8px); }
  .hero__pc { left: var(--sl); right: auto; top: 28px; width: calc(100% - var(--sl) - var(--sr) - var(--pw) - 16px); gap: 14px; align-items: stretch; }
  .win--hero { transform: none; border-radius: 10px; }
  .win--hero .win__bar { height: 18px; gap: 5px; padding-left: 9px; }
  .win--hero .win__bar span { width: 6px; height: 6px; }
  .hero__pc .glass--undo { min-width: 0; }
  .glass { padding: 12px 14px; border-radius: 18px; }
  .glass__v { font-size: 34px; }
  .hero::after { height: 45%; }
  .hero__text { position: relative; left: auto; bottom: auto; width: auto; margin: 28px var(--sr) 0 var(--sl); padding-bottom: 48px; }
  .hero h1 { font-size: 44px; }
  .hero__lead { font-size: 17px; margin-top: 16px; }
  .hero .btns { margin-top: 24px; }
  .hero .pill { flex: 1 1 auto; }
  .sec { padding: 80px 0; }
  .sec--tight { padding-top: 0; }
  .head { margin-bottom: 36px; text-align: left; }
  .sub { font-size: 17px; margin-left: 0; }
  .shoot { gap: 12px; padding: 112px 12px 32px; }
  .shoot .phone { --w: min(98px, calc((100vw - 96px) / 3.2)); }
  .shoot .phone--b { --w: min(118px, calc((100vw - 96px) / 2.67)); margin-bottom: 14px; }
  .phone figcaption { font-size: 13px; margin-top: 12px; }
  .phone figcaption b { display: grid; margin: 0 auto 4px; width: 22px; height: 22px; }
  .glass--fee { left: 12px; right: 12px; top: 12px; padding: 10px 14px; display: flex; align-items: baseline; justify-content: space-between; }
  .glass--fee .glass__v { font-size: 28px; }
  .feats { grid-template-columns: 1fr; gap: 12px; }
  .feat { padding: 22px; }
  .cfg { grid-template-columns: 1fr; gap: 16px; }
  .cfg__media { min-height: 400px; }
  .phone--cfg { --w: 180px; }
  .cfg__panel { padding: 24px 20px; }
  .cfg__price b { font-size: 38px; }
  .choice span { padding: 12px; }
  .choice small { font-size: 13px; }
  .seg { display: flex; }
  .seg label { flex: 1; display: flex; }
  .seg span { flex: 1; justify-content: center; padding: 0 10px; }
  .table-title { margin-top: 48px; text-align: left; }
  .plans { padding: 4px 16px; overflow-x: visible; }
  .plans__row { min-width: 0; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 16px 0; }
  .plans__row--h { display: none; }
  .plans__row [role="rowheader"] { grid-column: 1 / -1; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .plans__row [role="cell"]::before { content: attr(data-plan); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
  .plans__row--big b { font-size: 20px; }
  .price-line { text-align: left; }
  .dark { padding: 44px 22px 0; }
  .dark .pill { white-space: normal; text-align: center; padding: 10px 22px; }
  .dark__text, .dark__media { min-width: 0; }
  .dark h2, .close h2 { font-size: 36px; }
  .win--flat { width: 150%; }
  .glass--last { bottom: 20px; }
  .close { padding: 56px 22px; text-align: left; }
  .close .btns { flex-direction: column; align-items: stretch; }
  .tpl { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--sr)) 0 calc(-1 * var(--sl)); padding: 4px var(--sr) 12px var(--sl); scroll-padding-left: var(--sl); scroll-padding-right: var(--sr); }
  .tpl .card { flex: 0 0 82%; scroll-snap-align: start; }
  .tpl:focus-visible, .table-wrap:focus-visible { outline-offset: -3px; }
  .card__img { aspect-ratio: 16 / 10; }
  .fine, .caption { text-align: left; }
  .room { grid-template-columns: minmax(0, 1fr); }
  .table-wrap { padding: 4px 16px; overflow-x: auto; }
  table { font-size: 15px; }
  td.num b { font-size: 20px; }
  .steps { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq summary { padding: 18px; font-size: 17px; }
  .faq details p { padding: 0 18px 18px; }
  .foot__in { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .lost { padding-top: 110px; }
  .lost section { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .pill--nav { display: none; }
  .seg span small { display: none; }
}

/* ---------- Motion: only when the visitor allows it ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .toast { animation: toast-in .7s cubic-bezier(.2, .8, .2, 1) .9s both; }
  .hero .glass { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
  .glass--undo { animation-delay: .35s; }
  .js-motion .reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
  .js-motion .reveal:not(.is-in) { opacity: 0; transform: translateY(28px); }
  @keyframes toast-in { from { opacity: 0; transform: translateX(40px) scale(.96); } to { opacity: 1; transform: none; } }
  @media (max-width: 899px) { .toast { animation-name: toast-in-m; } }
  @keyframes toast-in-m { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media print {
  .nav, .toast, .hero__stage { display: none; }
  .hero { height: auto; min-height: 0; color: #000; background: none; }
  .hero__text { position: static; }
}

/* ---------- Shop (Etsy) ---------- */
[hidden] { display: none !important; }
.shop__group + .shop__group { margin-top: 72px; }
.shop__group h3 { font-size: 28px; font-weight: 700; letter-spacing: -.015em; }
.shop__sub { margin-top: 8px; max-width: 640px; color: var(--muted); font-size: 17px; }
.shop__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; padding: 0; list-style: none; }
.card h4 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.shop__grid .card__img { aspect-ratio: 4 / 3; }
.shop__grid .card__img img { object-position: center; }
.shop__go { margin-top: auto; align-self: flex-start; }
.shop__grid .card__body > p:not(.card__for) { margin-bottom: 16px; }
.shop__go { position: relative; min-height: 44px; padding: 0 18px; font-size: 16px; }
.ext { flex: none; }
.shop__vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shop__all { margin-top: 64px; text-align: center; }
#shop:not([hidden]) + #inside { padding-top: 0; }
@media (max-width: 1100px) { .shop__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .shop__grid { grid-template-columns: 1fr 1fr; } .shop__group h3 { font-size: 24px; } }
@media (max-width: 520px) { .shop__grid { grid-template-columns: 1fr; } }
#shop-gifts .card__img img { object-fit: contain; }

/* Legal page (privacy and seller info): narrow, plain text */
.legal { max-width: 720px; margin: 0 auto; padding-top: 48px; }
.legal h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.legal h2 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; margin-top: 32px; }
.legal p { margin-top: 8px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.legal a { text-decoration: underline; }
.foot__base a { text-decoration: underline; }
