/*
 * Landing page, in two themes. Night: a dark stage with a starfield, glass
 * surfaces and "glow" buttons whose light pools at their foot. Day: the same
 * design on a light page, with the app's light-theme colours. The light is the
 * app's own blue (#0B6BCB, and #4C9AFF at night) and kraft board marks
 * corrugated work, so the page and the app read as one product. System fonts
 * only: nothing is downloaded.
 *
 * The theme is <html data-theme="dark|light">, set before the first paint (see
 * the <head> script) and switched by the sun/moon button. Every colour that
 * differs between the themes is a token below. Text pairs meet WCAG AA in both
 * (tests/landing_check.py).
 */
:root {
  --bg: #020204;             /* the stage */
  --surface: #0A0E15;        /* cards (with --surface-hi on top) */
  --surface-hi: #0E131C;
  --line: rgba(255, 255, 255, .09);
  --line-hi: rgba(255, 255, 255, .16);
  --ink: #FFFFFF;
  --ink-2: #A9B1BC;          /* body copy */
  --ink-3: #8B949F;          /* small print */
  --accent: #8EC5FF;         /* links and accents */
  --tag: #0F1D30;            /* ECMA tag */
  --tag-ink: #8EC5FF;
  --kraft: #C9A06A;          /* corrugated board, as in the app's 3D mockup */
  --kraft-ink: #E6C595;
  --kraft-tag: #1F1A12;      /* FEFCO tag */
  --brand: #0B6BCB;          /* app --accent */
  --glow: #4C9AFF;           /* app dark-theme --accent */
  /* The app's own theme, for the app mock in the hero. */
  --app-bg: #0F1215; --app-panel: #171B20; --app-line: #2B3138; --app-ink: #E6EDF3;
  --app-ink-2: #A5AFBA; --app-ink-3: #6E7781; --app-canvas: #1C2127; --app-accent: #4C9AFF;
  /* Dieline drawings on the cards. */
  --cut: #FF5A5F; --crease: #4ADE80; --bleed: #C9D1D9; --safe: #F0A030; --glue: #A371F7;
  --glue-fill: rgba(163, 113, 247, .14);
  --sheet-white: rgba(255, 255, 255, .06);
  --sheet-kraft: rgba(201, 160, 106, .17);
  --thumb-bg: #070A10; --thumb-grid: rgba(255, 255, 255, .025); --thumb-glow: rgba(76, 154, 255, .09);
  /* Surfaces. */
  --nav-bg: rgba(8, 10, 16, .55); --nav-line: rgba(255, 255, 255, .105); --nav-ink: rgba(255, 255, 255, .88);
  --seg-bg: rgba(255, 255, 255, .035); --seg-line: rgba(255, 255, 255, .09); --seg-on: rgba(255, 255, 255, .1);
  --hover: rgba(255, 255, 255, .06);
  --chip: rgba(255, 255, 255, .07);
  --glass: rgba(255, 255, 255, .035); --glass-line: rgba(255, 255, 255, .12); --glass-hover: rgba(255, 255, 255, .065);
  --pick: rgba(76, 154, 255, .14); --pick-line: rgba(110, 170, 255, .55);
  --badge-foot: 190, 215, 255; --badge-fill: rgba(255, 255, 255, .012); --badge-line: rgba(255, 255, 255, .115);
  --card-a: #111926; --card-b: #0A0E16;
  --card-shadow: 0 24px 46px rgba(0, 0, 0, .6), 0 3px 8px rgba(0, 0, 0, .5);
  --card-edge: rgba(255, 255, 255, .13);
  --lift: 0 18px 40px rgba(0, 0, 0, .45);
  --rest: 0 0 0 transparent;
  --browser-bg: rgba(20, 20, 26, .82);
  --browser-shadow: 0 -14px 44px rgba(0, 0, 0, .55);
  --bar-bg: linear-gradient(180deg, rgba(20, 24, 48, .48), rgba(15, 19, 38, .58));
  --omni-bg: rgba(9, 13, 26, .93); --omni-ink: rgba(255, 255, 255, .72); --omni-line: rgba(255, 255, 255, .045);
  --tools-ink: #FFFFFF;
  --band-bg: rgba(255, 255, 255, .012);
  --panel-bg: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  --panel-glow: rgba(25, 127, 255, .38);
  --hero-tint: 25, 127, 255;
  --hero-grid: transparent;
  --h1-glow: 0 0 34px rgba(130, 180, 255, .22);
  --stat-glow: 0 0 24px rgba(76, 154, 255, .35);
  --focus: rgba(142, 197, 255, .8);
  /* Forms (sign-up, login) and the Google button (Google's dark colours by night). */
  --input: rgba(255, 255, 255, .04); --ring: rgba(76, 154, 255, .28); --err: #FF8A8F;
  --g-bg: #131314; --g-line: #8E918F; --g-ink: #E3E3E3;
  --display: "Segoe UI", -apple-system, "SF Pro Display", system-ui, Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
  --gutter: 24px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --surface-hi: #FFFFFF;
  --line: rgba(15, 23, 42, .09);
  --line-hi: rgba(15, 23, 42, .17);
  --ink: #141A22;
  --ink-2: #4E5761;
  --ink-3: #5B646E;
  --accent: #0B6BCB;
  --tag: #E3EFFB;
  --tag-ink: #0A5AAB;
  --kraft-ink: #6E4B1C;
  --kraft-tag: #F1E6D4;
  --app-bg: #EEF0F3; --app-panel: #FFFFFF; --app-line: #D8DEE4; --app-ink: #1F2328;
  --app-ink-2: #57606A; --app-ink-3: #8C959F; --app-canvas: #F6F7F9; --app-accent: #0B6BCB;
  --cut: #E5262A; --crease: #007A33; --bleed: #000000; --safe: #F08C00; --glue: #8250DF;
  --glue-fill: rgba(130, 80, 223, .1);
  --sheet-white: #FFFFFF;
  --sheet-kraft: #EEDFC6;
  --thumb-bg: #F2F4F8; --thumb-grid: rgba(15, 23, 42, .045); --thumb-glow: rgba(11, 107, 203, .07);
  --nav-bg: rgba(255, 255, 255, .72); --nav-line: rgba(15, 23, 42, .09); --nav-ink: #2A323C;
  --seg-bg: rgba(15, 23, 42, .04); --seg-line: rgba(15, 23, 42, .08); --seg-on: #FFFFFF;
  --hover: rgba(15, 23, 42, .05);
  --chip: rgba(15, 23, 42, .06);
  --glass: rgba(255, 255, 255, .8); --glass-line: rgba(15, 23, 42, .13); --glass-hover: #FFFFFF;
  --pick: rgba(11, 107, 203, .09); --pick-line: rgba(11, 107, 203, .45);
  --badge-foot: 11, 107, 203; --badge-fill: rgba(255, 255, 255, .75); --badge-line: rgba(15, 23, 42, .1);
  --card-a: #FFFFFF; --card-b: #F7F9FC;
  --card-shadow: 0 18px 36px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .08);
  --card-edge: rgba(15, 23, 42, .1);
  --lift: 0 18px 40px rgba(15, 23, 42, .12);
  --rest: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 18px rgba(15, 23, 42, .05);
  --browser-bg: rgba(255, 255, 255, .85);
  --browser-shadow: 0 -10px 40px rgba(15, 23, 42, .16), 0 0 0 1px rgba(15, 23, 42, .08);
  --bar-bg: linear-gradient(180deg, #F5F7FA, #E9EDF2);
  --omni-bg: #FFFFFF; --omni-ink: #57606A; --omni-line: rgba(15, 23, 42, .1);
  --tools-ink: #57606A;
  --band-bg: rgba(255, 255, 255, .6);
  --panel-bg: linear-gradient(180deg, #FFFFFF, #F7F9FC);
  --panel-glow: rgba(25, 127, 255, .16);
  --hero-tint: 11, 107, 203;
  --hero-grid: rgba(15, 23, 42, .05);
  --h1-glow: 0 0 34px rgba(11, 107, 203, .12);
  --stat-glow: none;
  --focus: #0B6BCB;
  --input: #FFFFFF; --ring: rgba(11, 107, 203, .22); --err: #C4161C;
  --g-bg: #FFFFFF; --g-line: #747775; --g-ink: #1F1F1F;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased;
  /* All of these cover Uzbek Latin (ʻ ʼ) and Cyrillic. */
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff;
  padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Starfield (night only): two 1 px dots whose box-shadow lists are the stars (landing.js). */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.stars { position: absolute; left: 0; top: 0; width: 1px; height: 1px; border-radius: 50%; }
:root[data-theme="light"] .sky { display: none; }

/* ---- Glow button: a bank of blue light at the foot, clipped by the button's own corners.
   It stays dark in both themes. ---- */
.btn {
  position: relative; display: inline-grid; place-items: center; overflow: hidden;
  color: #fff; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; cursor: pointer;
  transition: transform .25s, box-shadow .25s, filter .25s, border-color .25s, background-color .25s;
}
.btn span { position: relative; z-index: 2; display: block; line-height: 1; text-shadow: 0 1px 2px rgba(0, 16, 40, .5); }
.btn-glow {
  border: 0;
  background: linear-gradient(to top,
    #b4dcff 1px, #a0d2ff 2px, #8cc8ff 3px, #6cb4ff 4px, #4a9cf6 5px,
    #2a82e6 6px, #1873d6 7px, #0e66c4 8px, #0b58aa 9px, #0a4a90 10px,
    #093e78 12px, #0b3866 13px, #0a3159 14px, #0b2847 16px,
    #0c2138 18px, #0d1b2d 20px, #0e1624 24px, #0b111c 30px,
    #0b101b 34px, #0b101b 100%);
  box-shadow:
    inset 0 3px 3px -2px rgba(180, 215, 255, .10),
    inset 1px 0 0 rgba(255, 255, 255, .09),
    inset -1px 0 0 rgba(255, 255, 255, .09),
    var(--hair, 0 1px 0 rgba(152, 196, 240, .38)),
    1px 0 0 rgba(152, 196, 240, .17), -1px 0 0 rgba(152, 196, 240, .17),
    0 0 8px rgba(60, 140, 235, .10),
    0 2px 5px -3px rgba(90, 170, 255, .45);
}
/* A thin streak of light along the top edge (nav button only). */
.btn-glow::before {
  content: ""; position: absolute; left: 22%; right: 38%; top: .8px; height: 1.9px; z-index: 1; filter: blur(.55px);
  background: linear-gradient(90deg, rgba(120, 190, 255, 0) 0%, rgba(120, 190, 255, .58) 34%,
    rgba(170, 215, 255, .74) 50%, rgba(120, 190, 255, .58) 66%, rgba(120, 190, 255, 0) 100%);
}
/* Edge light up the sides, masked so it fades out above the foot. */
.btn-glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(200, 226, 255, .70), rgba(200, 226, 255, 0) 13px),
              linear-gradient(270deg, rgba(200, 226, 255, .70), rgba(200, 226, 255, 0) 13px);
  -webkit-mask: linear-gradient(to top, #000 0, #000 6px, rgba(0, 0, 0, .40) 12px, rgba(0, 0, 0, .15) 18px,
    rgba(0, 0, 0, .09) 24px, rgba(0, 0, 0, .02) 30px, rgba(0, 0, 0, .02) 100%);
          mask: linear-gradient(to top, #000 0, #000 6px, rgba(0, 0, 0, .40) 12px, rgba(0, 0, 0, .15) 18px,
    rgba(0, 0, 0, .09) 24px, rgba(0, 0, 0, .02) 30px, rgba(0, 0, 0, .02) 100%);
}
.btn-glow:hover {
  transform: translateY(-1px); filter: brightness(1.12);
  box-shadow: inset 0 1px 0 rgba(200, 226, 255, .6), inset 1px 0 0 rgba(170, 205, 255, .35),
              inset -1px 0 0 rgba(170, 205, 255, .35), 0 6px 22px rgba(20, 120, 225, .55);
}
.btn-glass {
  color: var(--ink); background: var(--glass); border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), var(--rest);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-glass span { text-shadow: none; }
.btn-glass:hover { background: var(--glass-hover); border-color: var(--line-hi); transform: translateY(-1px); }
.cta { height: 54px; padding: 0 26px; border-radius: 14px; font-size: 16.5px; --hair: 0 0 0 transparent; }
.cta.btn-glow::before { display: none; }

/* ---- Nav pill (fixed, glass) ---- */
.top { position: fixed; left: 0; right: 0; top: 0; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.nav {
  position: relative; pointer-events: auto; margin: 0 auto; max-width: 1040px; height: 62px;
  display: flex; align-items: center; gap: 6px; padding: 0 11px 0 20px; border-radius: 31px;
  background: var(--nav-bg); border: 1px solid var(--nav-line);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), var(--rest);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 16px/1 var(--display); letter-spacing: -.005em; color: var(--ink); white-space: nowrap; }
/* The Pakkit wordmark: white at night (with a faint glow), black by day. */
.logo { display: block; width: auto; height: 26px; flex: none; filter: drop-shadow(0 0 7px rgba(76, 154, 255, .45)); }
.logo-day, :root[data-theme="light"] .logo-night { display: none; }
:root[data-theme="light"] .logo-day { display: block; filter: none; }
.navmenu { display: contents; }
.links { order: 1; display: flex; gap: 2px; margin-left: 18px; }
.links a { font-size: 14px; color: var(--nav-ink); padding: 8px 11px; border-radius: 10px; white-space: nowrap; transition: background .2s, color .2s; }
.links a:hover { background: var(--hover); color: var(--ink); }
.lang {
  order: 2; display: inline-flex; margin-left: auto; padding: 2px; gap: 2px; border-radius: 11px;
  background: var(--seg-bg); border: 1px solid var(--seg-line);
}
.lang button {
  border: 0; background: transparent; cursor: pointer; color: var(--ink-2);
  font-size: 12.5px; font-weight: 650; letter-spacing: .04em; min-width: 36px; height: 30px; padding: 0 7px; border-radius: 8px;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--seg-on); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--rest); }
.theme {
  order: 3; display: grid; place-items: center; width: 36px; height: 36px; margin-left: 2px; cursor: pointer;
  border-radius: 11px; color: var(--ink-2); background: var(--seg-bg); border: 1px solid var(--seg-line);
}
.theme:hover { color: var(--ink); }
.theme svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme .i-moon { display: none; }
:root[data-theme="light"] .theme .i-sun { display: none; }
:root[data-theme="light"] .theme .i-moon { display: block; }
.nav-login { order: 4; font-size: 14px; font-weight: 600; color: var(--nav-ink); padding: 8px 12px; border-radius: 10px; white-space: nowrap; margin-left: 4px; }
.nav-login:hover { background: var(--hover); color: var(--ink); }
.links a[aria-current="page"], .nav-login[aria-current="page"] { color: var(--ink); background: var(--hover); }
.nav-cta { order: 5; height: 40px; padding: 0 18px; border-radius: 14px; font-size: 14px; margin-left: 6px; }
.burger { display: none; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden; padding-top: 128px;
  background: linear-gradient(180deg, rgba(var(--hero-tint), 0) 38%, rgba(var(--hero-tint), .042) 54%,
    rgba(var(--hero-tint), .052) 68%, rgba(var(--hero-tint), .03) 100%);
}
/* Day: a faint cutting-mat grid in place of the stars. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(var(--hero-grid) 1px, transparent 1px) 0 0 / 28px 28px,
              linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
          mask: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gutter); }
/* Badge: fixed-height glass box, a lit tile pinned 4 px in, the label 45 px from the left edge. */
.badge {
  position: relative; display: inline-flex; align-items: center; height: 39px; max-width: 100%;
  padding: 1.5px 16px 0 45px; border-radius: 12px; border: 1px solid var(--badge-line);
  background: linear-gradient(to top, rgba(var(--badge-foot), .175) 0px, rgba(var(--badge-foot), .128) 2px,
    rgba(var(--badge-foot), .075) 4px, rgba(var(--badge-foot), .026) 6px, var(--badge-fill) 9px, var(--badge-fill) 100%);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), var(--rest);
}
.badge i, .tile {
  display: grid; place-items: center; border-radius: 8px;
  background: linear-gradient(to top, #6fb4f0 0px, #4a9fe8 2px, #1a72c8 4px, #0b5aa6 6px, #08437f 8px,
    #0a3763 10px, #082a4b 12px, #071d36 14px, #081428 16px, #0a1126 19px, #0a0d1d 23px, #070d17 29px);
  box-shadow: inset 1px 0 0 rgba(150, 200, 250, .40), inset -1px 0 0 rgba(150, 200, 250, .52),
    0 0 6px rgba(60, 140, 230, .20), 0 3px 8px -5px rgba(90, 170, 255, .6);
}
.badge i { position: absolute; left: 4px; top: 4px; width: 29px; height: 29px; }
.badge i svg { width: 15px; height: 15px; position: relative; top: -1px; fill: rgba(20, 100, 190, .72); stroke: rgba(200, 228, 255, .75); stroke-width: 1.6; stroke-linejoin: round; }
.badge b { font-size: 13.5px; font-weight: 400; color: var(--ink); opacity: .94; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h1 {
  margin-top: 26px; font: 900 clamp(30px, 1rem + 3.6vw, 62px)/1.02 var(--display);
  letter-spacing: -.004em; word-spacing: .12em; text-transform: uppercase; text-shadow: var(--h1-glow);
}
.h1 span { display: block; }
.sub { margin-top: 22px; max-width: 40em; font-size: clamp(15px, .55rem + .7vw, 17.5px); line-height: 1.6; color: var(--ink-2); text-wrap: balance; }
.sub b { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }

/* Showcase: one 1172 px design canvas, scaled by --k; --sh is its visible height (landing.js). */
.showcase {
  position: relative; z-index: 1; height: calc(var(--sh, 600px) * var(--k, 1)); margin-top: calc(-118px * var(--k, 1));
  overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(180deg, #000 86%, transparent 100%); mask: linear-gradient(180deg, #000 86%, transparent 100%);
}
.sc-canvas { position: absolute; left: 50%; top: 0; width: 1172px; height: 600px; transform: translateX(-50%) scale(var(--k, 1)); transform-origin: 50% 0; }
/* The ring: cards on a cylinder of radius 891 px seen from its centre (perspective 891 px),
   so each card faces the camera; the slanted tops are perspective, not rotation. */
.ring { position: absolute; inset: 0; z-index: 1; perspective: 891px; perspective-origin: 586px 532px; transform-style: preserve-3d; }
.rcard {
  position: absolute; left: 586px; top: 230px; width: 132px; height: 184px; margin: -92px 0 0 -66px;
  border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, var(--card-a), var(--card-b));
  box-shadow: var(--card-shadow); backface-visibility: hidden; will-change: transform;
}
.rcard .edge { position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--card-edge), inset 0 16px 30px rgba(255, 255, 255, .04); }
/* A packaging photo filling the card, its name on a shade at the top (white in both themes):
   the app mock in front hides the lower part of the middle cards. */
.rc-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.rc-name {
  position: absolute; left: 0; right: 0; top: 0; padding: 10px 10px 26px;
  font: 650 9.5px/1.2 var(--display); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  background: linear-gradient(to bottom, rgba(0, 0, 0, .58), rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, 0));
}

/* The browser mock: the app itself (in the same theme), in front of the ring. */
.browser {
  position: absolute; left: 165px; top: 268px; width: 842px; height: 344px; z-index: 2; display: block;
  border-radius: 24px 24px 0 0; overflow: hidden; box-shadow: var(--browser-shadow);
  transform: scale(var(--kb, 1)); transform-origin: 50% 0; pointer-events: auto; cursor: pointer;
}
.browser::before { content: ""; position: absolute; left: 0; right: 0; top: 42px; bottom: 0; background: var(--browser-bg); }
.bar {
  position: absolute; left: 0; top: 0; width: 100%; height: 42px; background: var(--bar-bg);
  -webkit-backdrop-filter: blur(6px) saturate(112%); backdrop-filter: blur(6px) saturate(112%);
}
.dots { position: absolute; left: 27px; top: 17px; display: flex; gap: 3px; }
.dots i { width: 7.6px; height: 7.6px; border-radius: 50%; background: #ee5c62; }
.dots i:nth-child(2) { background: #f6b719; }
.dots i:nth-child(3) { background: #12c02f; }
.omni {
  position: absolute; left: 246px; top: 8px; width: 350px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 9.5px; color: var(--omni-ink);
  background: var(--omni-bg); box-shadow: inset 0 0 0 1px var(--omni-line);
}
.omni svg, .tools svg { fill: none; stroke: var(--tools-ink); stroke-width: 2.2; stroke-linecap: round; }
.omni svg { opacity: .72; }
.tools { position: absolute; right: 27px; top: 15px; display: flex; gap: 6px; opacity: .85; }
.page {
  position: absolute; left: 7px; right: 6px; top: 42px; bottom: 0; overflow: hidden; border-radius: 10px 10px 0 0;
  background: var(--app-bg); color: var(--app-ink); font: 7px/1.3 system-ui, "Segoe UI", sans-serif;
}
.app-top {
  position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; background: var(--app-panel); border-bottom: 1px solid var(--app-line);
}
.app-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 8.5px; font-weight: 650; }
.app-brand .logo { height: 9px; filter: none; }
.app-pick { color: var(--app-ink-2); font-size: 6.5px; }
.app-pick em { display: inline-block; margin-left: 6px; padding: 4px 22px 4px 8px; font-style: normal; color: var(--app-ink);
  background: var(--app-panel); border: 1px solid var(--app-line); border-radius: 4px; }
.app-grid { position: absolute; left: 0; right: 0; top: 30px; bottom: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr) 160px; grid-template-rows: minmax(0, 1fr); gap: 8px; padding: 8px; }
.app-panel, .app-stage { display: flex; flex-direction: column; gap: 5px; min-width: 0; overflow: hidden;
  background: var(--app-panel); border: 1px solid var(--app-line); border-radius: 7px; padding: 7px 9px; }
.h6 { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; font-size: 5.8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--app-ink-2); }
.seg { display: inline-flex; gap: 1.5px; padding: 1.5px; border-radius: 4px; background: var(--app-bg); }
.seg i { font-style: normal; font-size: 5.8px; letter-spacing: 0; text-transform: none; padding: 2px 5px; border-radius: 3px; color: var(--app-ink-2); }
.seg i.on { background: var(--app-panel); color: var(--app-accent); font-weight: 650; }
.seg-wide { display: flex; }
.seg-wide i { flex: 1; text-align: center; padding: 3px 2px; }
.fields { display: grid; gap: 4px; }
.fields-2 { grid-template-columns: 1fr 1fr; }
.field { display: flex; align-items: baseline; gap: 3px; padding: 4px 5px; border-radius: 4px; background: var(--app-panel); border: 1px solid var(--app-line); white-space: nowrap; overflow: hidden; }
.field small { flex: 1; font-size: 5.5px; color: var(--app-ink-2); }
.field b { font-size: 7px; font-weight: 600; }
.field em { font-style: normal; font-size: 5.5px; color: var(--app-ink-3); }
.app-stage { padding: 0; gap: 0; }
.app-legend { display: flex; align-items: center; gap: 4px; padding: 6px 9px; font-size: 6px; color: var(--app-ink-2); border-bottom: 1px solid var(--app-line); }
.app-legend .ln { width: 12px; margin-left: 4px; }
.app-legend em { margin-left: auto; font-style: normal; color: var(--app-ink); }
.app-canvas { position: relative; flex: 1; min-height: 0; background: var(--app-canvas); }
/* Absolute, so the drawing fits the panel instead of stretching it. */
.sheet-art { position: absolute; left: 12px; right: 12px; top: 10px; bottom: 10px; }
.sheet-art svg { display: block; width: 100%; height: 100%; }
#hero-mock { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 5px; background: var(--app-canvas); }
.exps { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.exps i { display: flex; flex-direction: column; gap: 1px; font-style: normal; font-size: 5.5px; color: var(--app-ink-3);
  padding: 4px 6px; border-radius: 5px; border: 1px solid var(--app-line); }
.exps b { font-size: 7px; color: var(--app-ink); }

/* Dieline drawings. The app mock uses DL.LAYERS colours on a white sheet (as the app does);
   the cards use the --cut/--crease tokens on a board-coloured sheet. */
.dl path { vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.dl g { fill: none; }
.dl-cut path { stroke-width: 1.3px; }
.dl-crease path { stroke-width: 1px; }
.dl-glue path { stroke-width: .9px; stroke-dasharray: 2 2; fill: rgba(130, 80, 223, .1); }
.dl-bleed path { stroke-width: .9px; }
.dl-sheet { stroke: none; }
/* The bleed line runs outside the white sheet: black by day, light on the night canvas. */
.dl .dl-bleed { stroke: var(--bleed); }
.dl-card .dl-cut { stroke: var(--cut); }
.dl-card .dl-crease { stroke: var(--crease); }
.dl-card .dl-glue { stroke: var(--glue); }
.dl-card .dl-glue path { fill: var(--glue-fill); }
.dl-card.board-white .dl-sheet { fill: var(--sheet-white); }
.dl-card.board-kraft .dl-sheet { fill: var(--sheet-kraft); }
.ln { display: inline-block; width: 24px; height: 0; border-top: 2px solid; flex: none; }
.ln-cut { border-color: var(--cut); }
.ln-crease { border-color: var(--crease); }
.ln-glue { border-color: var(--glue); border-top-style: dashed; }
.ln-bleed { border-color: var(--bleed); border-top-width: 1.5px; }
.ln-safe { border-color: var(--safe); border-top-style: dotted; }
.app-legend .ln-cut { border-color: #E5262A; }

/* ---- Numbers band ---- */
.band { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--band-bg); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; margin: 0 auto; padding: 30px var(--gutter); }
.stats li { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 12px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats b { font: 800 clamp(28px, 1rem + 2vw, 42px)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-shadow: var(--stat-glow); }
.stats span { font-size: 14px; color: var(--ink-2); line-height: 1.35; }

/* ---- Sections ---- */
.section { position: relative; padding: 96px 0; }
.sec-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.sec-head h2 { font: 800 clamp(28px, 1rem + 2.2vw, 44px)/1.1 var(--display); letter-spacing: -.02em; }
.sec-head p { margin-top: 14px; font-size: 17px; color: var(--ink-2); }
.style-card a, .feat, .formats li, .steps li {
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), var(--rest);
}

/* ---- Box style cards ---- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -16px 0 30px; }
.filters button {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 15px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--glass); border: 1px solid var(--glass-line);
}
.filters button em { font-style: normal; font-size: 12px; font-weight: 650; color: var(--ink-3); background: var(--chip); border-radius: 6px; padding: 1px 7px; }
.filters button:hover { color: var(--ink); border-color: var(--line-hi); }
.filters button[aria-pressed="true"] { color: var(--ink); border-color: var(--pick-line); background: var(--pick); box-shadow: inset 0 -2px 0 var(--pick-line); }
.filters button[aria-pressed="true"] em { color: var(--ink); background: var(--chip); }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.style-card a { display: flex; flex-direction: column; height: 100%; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.style-card a:hover { border-color: var(--pick-line); transform: translateY(-3px); box-shadow: var(--lift); }
.thumb {
  position: relative; display: block; aspect-ratio: 4 / 3; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--thumb-glow), transparent 60%),
    linear-gradient(var(--thumb-grid) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, var(--thumb-grid) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--thumb-bg);
}
/* Absolute, so a tall dieline can't stretch its card. */
.thumb svg { position: absolute; left: 16px; top: 16px; width: calc(100% - 32px); height: calc(100% - 32px); display: block; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 15px 17px 17px; flex: 1; }
.card-title { font-size: 16px; font-weight: 650; line-height: 1.3; }
.card-meta { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card-text { font-size: 14px; color: var(--ink-2); }
.card-go { margin-top: auto; padding-top: 4px; font-size: 13.5px; font-weight: 650; color: var(--accent); }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--chip); color: var(--ink-2); }
.tag-ecma { background: var(--tag); color: var(--tag-ink); }
.tag-fefco { background: var(--kraft-tag); color: var(--kraft-ink); }
.style-free a { border-style: dashed; border-color: var(--line-hi); }
.thumb-free svg { overflow: visible; }
.thumb-free .grid-lines { stroke: var(--line); stroke-width: 1; fill: none; }
.thumb-free .free-cut { fill: var(--sheet-white); stroke: var(--cut); stroke-width: 2; stroke-linejoin: round; }
.thumb-free .free-crease { fill: none; stroke: var(--crease); stroke-width: 1.6; }
.thumb-free .free-pt { fill: var(--bg); stroke: var(--accent); stroke-width: 1.6; }
.thumb-free .free-pen { fill: var(--surface-hi); stroke: var(--ink-2); stroke-width: 1.6; stroke-linejoin: round; }

/* ---- Features ---- */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feat { padding: 24px; }
.feat-wide { grid-column: span 2; }
.tile { width: 44px; height: 44px; border-radius: 12px; }
.tile svg { fill: none; stroke: rgba(225, 240, 255, .95); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile-kraft {
  background: linear-gradient(to top, #f0d3a8 0px, #d9b47e 2px, #b98b52 4px, #8a6235 7px, #5a3f20 10px,
    #3a2913 14px, #251a0d 19px, #17110a 26px, #120d08 44px);
  box-shadow: inset 1px 0 0 rgba(240, 210, 160, .35), inset -1px 0 0 rgba(240, 210, 160, .45),
    0 0 6px rgba(201, 160, 106, .18), 0 3px 8px -5px rgba(230, 197, 149, .55);
}
.feat h3, .who h3, .steps h3 { margin: 16px 0 8px; font: 680 17.5px/1.25 var(--display); letter-spacing: -.005em; }
.feat p, .who p, .steps p { font-size: 15px; color: var(--ink-2); }
.layers { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 9px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-hi); font-size: 14px; color: var(--ink-2); }
.layers li { display: inline-flex; align-items: center; gap: 8px; }
.layers code { min-width: 54px; font: 650 12.5px/1 var(--mono); color: var(--ink); }

/* ---- Formats ---- */
.formats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.formats li { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; font-size: 14.5px; color: var(--ink-2); }
.formats b { color: var(--ink); font-weight: 650; }
.ext {
  align-self: flex-start; position: relative; overflow: hidden; padding: 11px 13px 12px; border-radius: 11px;
  font: 750 19px/1 var(--mono); letter-spacing: .02em; color: #fff;
  background: linear-gradient(to top, #6cb4ff 0px, #2a82e6 2px, #0b58aa 4px, #093e78 7px, #0b2847 11px, #0d1b2d 16px, #0b101b 26px);
  box-shadow: inset 1px 0 0 rgba(152, 196, 240, .3), inset -1px 0 0 rgba(152, 196, 240, .3), 0 1px 0 rgba(152, 196, 240, .35);
}
.ext-jpg {
  background: linear-gradient(to top, #f0d3a8 0px, #b98b52 2px, #8a6235 4px, #5a3f20 7px, #3a2913 11px, #251a0d 16px, #120d08 26px);
  box-shadow: inset 1px 0 0 rgba(240, 210, 160, .3), inset -1px 0 0 rgba(240, 210, 160, .3), 0 1px 0 rgba(240, 210, 160, .35);
}

/* ---- Steps, joined by a crease line ---- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 46px; border-top: 1.5px dashed rgba(90, 162, 255, .4); }
.steps li { position: relative; padding: 24px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font: 800 18px/1 var(--display); color: #fff;
  background: linear-gradient(to top, #6fb4f0 0px, #4a9fe8 2px, #1a72c8 4px, #0b5aa6 6px, #08437f 8px,
    #0a3763 10px, #082a4b 12px, #071d36 14px, #081428 16px, #0a1126 19px, #0a0d1d 23px, #070d17 44px);
  box-shadow: inset 1px 0 0 rgba(150, 200, 250, .40), inset -1px 0 0 rgba(150, 200, 250, .52), 0 0 6px rgba(60, 140, 230, .2);
}

/* ---- Who ---- */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.who li { padding: 4px; }

/* ---- Closing CTA ---- */
.section-cta { padding-top: 40px; }
.cta-panel {
  position: relative; overflow: hidden; text-align: center; padding: 72px 28px; border-radius: 28px;
  border: 1px solid var(--line-hi);
  background: radial-gradient(60% 110% at 50% 125%, var(--panel-glow), rgba(25, 127, 255, 0) 70%), var(--panel-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), var(--rest);
}
.cta-panel::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(142, 197, 255, .85), transparent); }
.cta-panel h2 { font: 800 clamp(26px, 1rem + 2vw, 42px)/1.12 var(--display); letter-spacing: -.02em; }
.cta-panel p { max-width: 42em; margin: 14px auto 30px; font-size: 17px; color: var(--ink-2); }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 24px 40px; align-items: start; padding-top: 40px; padding-bottom: 44px; }
.foot-brand p { margin-top: 10px; color: var(--ink-2); }
.foot-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 24px; }
.foot-nav a { color: var(--ink-2); font-size: 14px; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-note { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); }
.foot-lang { display: flex; flex-wrap: wrap; gap: 6px; }
.foot-lang button { cursor: pointer; padding: 6px 11px; border-radius: 9px; font-size: 13.5px; color: var(--ink-2); background: var(--glass); border: 1px solid var(--glass-line); }
.foot-lang button:hover { color: var(--ink); border-color: var(--line-hi); }
.foot-lang button[aria-pressed="true"] { color: var(--ink); border-color: var(--pick-line); background: var(--pick); }
.noscript { padding: 14px var(--gutter); background: #3A2A12; color: #F5C27A; text-align: center; }

/* ---- Pricing page ---- */
.page-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 132px var(--gutter) 0; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--hero-grid) 1px, transparent 1px) 0 0 / 28px 28px,
              linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask: radial-gradient(ellipse 70% 80% at 50% 30%, #000 20%, transparent 75%);
          mask: radial-gradient(ellipse 70% 80% at 50% 30%, #000 20%, transparent 75%);
}
.plans-section { padding-top: 56px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 32px 30px 30px; border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-hi), var(--surface)); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), var(--rest);
}
.plan-best {
  border-color: var(--pick-line);
  background: radial-gradient(80% 60% at 50% 115%, var(--panel-glow), rgba(25, 127, 255, 0) 70%),
              linear-gradient(180deg, var(--surface-hi), var(--surface));
}
.plan-flag {
  position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--tag-ink); background: var(--tag);
}
.plan-name { font: 800 24px/1.15 var(--display); letter-spacing: -.01em; }
.plan-d { margin-top: 6px; color: var(--ink-2); font-size: 15px; min-height: 2.9em; }
.price { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price b { font: 800 clamp(30px, 1rem + 2vw, 40px)/1.05 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price span { color: var(--ink-2); font-size: 16px; }
.price-sub { margin-top: 6px; min-height: 1.5em; font-size: 14px; color: var(--ink-3); }
.price-sub em { font-style: normal; font-weight: 650; color: var(--accent); }
.plan-cta { width: 100%; margin-top: 22px; }
.plan-inc { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line-hi); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.plan-list { display: grid; gap: 11px; margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.plan-list li { position: relative; padding-left: 28px; }
.plan-list li::before {
  content: ""; position: absolute; left: 3px; top: .38em; width: 11px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.plans-note { margin-top: 26px; text-align: center; font-size: 14px; color: var(--ink-3); }

/* ---- Sign-up and login ---- */
.auth { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 112px var(--gutter) 64px; }
.auth::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--hero-grid) 1px, transparent 1px) 0 0 / 28px 28px,
              linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask: radial-gradient(ellipse 60% 70% at 50% 45%, #000 20%, transparent 75%);
          mask: radial-gradient(ellipse 60% 70% at 50% 45%, #000 20%, transparent 75%);
}
.auth-card {
  position: relative; width: 100%; max-width: 470px; padding: 36px 32px 30px; border-radius: 24px;
  border: 1px solid var(--line-hi);
  background: radial-gradient(70% 45% at 50% 112%, var(--panel-glow), rgba(25, 127, 255, 0) 70%), var(--panel-bg), var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), var(--rest);
}
.auth-title { font: 800 clamp(26px, 1rem + 1.4vw, 32px)/1.15 var(--display); letter-spacing: -.015em; text-align: center; }
.auth-lead { margin-top: 8px; text-align: center; color: var(--ink-2); font-size: 15.5px; }
.plan-chip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 16px auto 0; padding: 8px 12px;
  border-radius: 12px; font-size: 14px; color: var(--ink); background: var(--pick); border: 1px solid var(--pick-line); text-align: center;
}
/* The open beta (html.beta, set from the server's dt_beta cookie): no prices or plans, so
   every link to the pricing page and the chosen-plan chip are hidden. */
.beta a[href="pricing.html"], .beta .plan-chip { display: none !important; }
.plan-chip a, .auth-switch a { color: var(--accent); font-weight: 650; }
.plan-chip a:hover, .auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
.notice {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 12px;
  font-size: 14.5px; line-height: 1.45; color: var(--ink); background: var(--pick); border: 1px solid var(--pick-line);
}
.notice svg { flex: none; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.auth-body { margin-top: 24px; }
/* Google's sign-in button colours (white by day, near-black by night) with the four-colour G. */
.google {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 50px; cursor: pointer;
  border-radius: 12px; font-size: 15.5px; font-weight: 600; color: var(--g-ink); background: var(--g-bg); border: 1px solid var(--g-line);
  transition: box-shadow .2s, transform .2s;
}
.google:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .18); transform: translateY(-1px); }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0 6px; font-size: 13.5px; color: var(--ink-3); }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line-hi); }
.frow { margin-top: 16px; }
.frow label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.frow input {
  display: block; width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--input); border: 1px solid var(--glass-line); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.frow input::placeholder { color: var(--ink-3); opacity: 1; }
.frow input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.frow input[aria-invalid="true"] { border-color: var(--err); }
.frow input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(229, 38, 42, .2); }
.pass { position: relative; display: block; }
.pass input { padding-right: 52px; }
.show-pass {
  position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 9px; background: transparent; color: var(--ink-3);
}
.show-pass:hover { color: var(--ink); background: var(--hover); }
.show-pass[aria-pressed="true"] { color: var(--accent); }
.show-pass svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hint { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
/* The rules for a new password under its field, each ticked green once met (site.js). */
.pw-rules { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 13px; color: var(--ink-3); }
.pw-rules li { position: relative; padding-left: 17px; transition: color .15s; }
.pw-rules li::before {
  content: ""; position: absolute; left: 1px; top: .32em; width: 10px; height: 10px; box-sizing: border-box;
  border: 1.5px solid currentColor; border-radius: 50%;
}
.pw-rules li.met { color: var(--crease); }
.pw-rules li.met::before { border: 0; background: currentColor; }
.pw-rules li.met::after {
  content: ""; position: absolute; left: 4.2px; top: calc(.32em + 2px); width: 2.5px; height: 4.5px;
  border: solid var(--bg); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.err { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--err); }
/* Sign-up: accepting the Terms and the Privacy Policy (a checkbox with links in its text). */
.frow-check { margin-top: 18px; }
.frow .check { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.frow .check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; padding: 0; border-radius: 4px; accent-color: var(--brand); cursor: pointer; }
.frow .check input[aria-invalid="true"] { outline: 2px solid var(--err); outline-offset: 1px; }
.check a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Terms of Service and Privacy Policy (terms.html, privacy.html, legal.js) ---- */
.legal-page { padding: 112px var(--gutter) 72px; }
.legal {
  max-width: 780px; margin: 0 auto; padding: 40px clamp(20px, 5vw, 52px) 44px; border-radius: 24px;
  border: 1px solid var(--line-hi); background: var(--panel-bg), var(--bg); box-shadow: var(--rest);
  font-size: 15.5px; line-height: 1.65; color: var(--ink-2);
}
.legal h1 { font: 800 clamp(26px, 1rem + 1.6vw, 36px)/1.15 var(--display); letter-spacing: -.015em; color: var(--ink); }
.legal-meta { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.legal h2 { margin: 34px 0 10px; font: 700 18.5px/1.3 var(--display); color: var(--ink); }
.legal p + p, .legal ul + p, .legal p + ul, .legal .legal-table + p { margin-top: 10px; }
.legal ul { padding-left: 22px; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--ink-3); }
.legal b { font-weight: 650; color: var(--ink); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal code { font: 13.5px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--ink); }
.legal sup { font-size: .7em; line-height: 0; }
.legal-table { margin: 12px 0; overflow-x: auto; }
.legal table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal th, .legal td { padding: 9px 12px 9px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 650; color: var(--ink); }
.legal-company { display: grid; gap: 8px; margin-top: 12px; }
.legal-company div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; }
.legal-company dt { color: var(--ink-3); }
.legal-company dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
/* An operator detail not filled in yet (DL.site.company in site.js). */
.legal .todo { padding: 1px 5px; border-radius: 5px; color: var(--ink); background: rgba(240, 160, 48, .22); text-decoration: none; }
@media (max-width: 560px) {
  .legal { font-size: 15px; border-radius: 18px; }
  .legal-company div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* The cookie table as a list: each row its name, then what it is for and how long. */
  .legal table, .legal tbody, .legal tr, .legal td { display: block; min-width: 0; }
  .legal tr:first-child { display: none; }
  .legal tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .legal td { padding: 0; border: 0; }
  .legal td:first-child { color: var(--ink); font-weight: 650; }
  .legal td:last-child { color: var(--ink-3); }
}
.auth-submit { width: 100%; margin-top: 24px; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 15px; color: var(--ink-2); }
/* Forgotten passwords: the login page's link under the password and in its error notice,
   and the reset page's "send again" and "another email" buttons, drawn as links. */
.forgot { margin-top: 8px; text-align: right; font-size: 14px; }
.forgot a, .notice a, .linkish { color: var(--accent); font-weight: 650; }
.forgot a:hover, .notice a:hover, .linkish:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.notice a { white-space: nowrap; }
.linkish { padding: 4px 2px; border: 0; background: none; font: inherit; font-size: 14.5px; cursor: pointer; }
.linkish:disabled { color: var(--ink-3); font-weight: 500; cursor: default; }
.reset-more { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 14px; }
/* Account page: the plan (a dot that is green while it is active), the account details, log out. */
.acc-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-hi); }
.acc-h { font: 700 12.5px/1 var(--display); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.acc-status { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 18px; font-weight: 650; }
.acc-status i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.acc-status.on i { background: #1FAE6A; box-shadow: 0 0 0 4px rgba(31, 174, 106, .2); }
.acc-note { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.acc-actions { display: grid; gap: 10px; margin-top: 18px; }
.acc-actions .btn { width: 100%; }
.acc-dl { display: grid; gap: 12px; margin-top: 14px; }
.acc-dl div { display: grid; gap: 3px; }
.acc-dl dt { font-size: 13px; color: var(--ink-3); }
.acc-dl dd { font-size: 15.5px; overflow-wrap: anywhere; }
.acc-logout { width: 100%; height: 48px; margin-top: 20px; border-radius: 12px; font: inherit; font-size: 15.5px; }
.acc-more { margin-top: 10px; text-align: center; }

/* ---- Entrance (landing.js). Uses the individual translate/scale/clip-path properties, which
   compose with the transforms the layout already owns instead of overwriting them. ---- */
html.intro .nav { opacity: 0; translate: 0 -9px; }
html.intro .brand, html.intro .links a, html.intro .nav-login, html.intro .lang, html.intro .theme, html.intro .nav-cta, html.intro .burger { opacity: 0; translate: 0 6px; }
html.intro .badge { opacity: 0; translate: 0 11px; scale: .985; }
html.intro .h1 span { opacity: 0; translate: 0 15px; clip-path: inset(100% 0 -30% 0); }
html.intro .sub, html.intro .note { opacity: 0; translate: 0 10px; }
html.intro .actions { opacity: 0; translate: 0 13px; scale: .985; }
html.intro .ring { opacity: 0; translate: 0 18px; scale: .99; }
html.intro .browser { opacity: 0; translate: 0 26px; }

/* ---- Below 1080 px: the links and the CTA move into a drop-down panel ---- */
@media (max-width: 1080px) {
  .burger {
    order: 6; display: grid; place-content: center; gap: 4px; width: 42px; height: 42px; margin-left: 2px;
    border: 0; border-radius: 14px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .burger span { display: block; width: 19px; height: 1.6px; border-radius: 2px; background: var(--ink); opacity: .92; transition: transform .28s cubic-bezier(.4, 0, .2, 1), opacity .18s; }
  .nav.open .burger span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
  .nav.open .burger span:nth-child(2) { opacity: 0; }
  .nav.open .burger span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
  .navmenu {
    display: block; position: absolute; left: 0; right: 0; top: 72px; padding: 12px; border-radius: 22px;
    border: 1px solid var(--nav-line);
    /* Opaque: a backdrop-filter nested in the pill's own one doesn't blur here. */
    background: linear-gradient(180deg, var(--surface-hi), var(--surface));
    box-shadow: 0 26px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
  }
  /* Animated only when the burger is used (site.js), so a resize never shows it fading out. */
  .nav.menu-anim .navmenu { transition: opacity .24s ease, transform .28s cubic-bezier(.4, 0, .2, 1), visibility .28s; }
  .nav.open .navmenu { opacity: 1; visibility: visible; transform: none; }
  .links { flex-direction: column; align-items: stretch; gap: 2px; margin: 0; }
  .links a { font-size: 15.5px; padding: 12px 14px; border-radius: 12px; }
  .nav-login { display: block; margin: 2px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 15.5px; font-weight: 400; }
  .nav-cta { display: grid; width: 100%; height: 48px; margin: 10px 0 0; font-size: 15.5px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .top { padding-top: 10px; }
  .nav { height: 56px; gap: 5px; padding: 0 4px 0 14px; max-width: 520px; }
  .brand { font-size: 15px; gap: 8px; }
  .lang button { min-width: 30px; padding: 0 4px; font-size: 12px; }
  .theme { width: 34px; height: 34px; }
  .burger { width: 40px; height: 44px; }
  .navmenu { top: 66px; }
  .hero { padding-top: 98px; }
  .badge { height: 36px; padding-left: 42px; }
  .badge i { width: 28px; height: 28px; top: 3px; }
  .badge b { font-size: 12.5px; }
  .h1 { margin-top: 20px; font-size: clamp(27px, 7.6vw, 36px); line-height: 1.06; letter-spacing: -.01em; }
  .sub { margin-top: 16px; font-size: 15.5px; }
  .actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-top: 24px; }
  .cta { height: 52px; }
  .showcase { margin-top: calc(-70px * var(--k, 1)); }
  /* The mock is small on a phone: keep the dieline and the 3D box, drop the input panel. */
  .app-grid { grid-template-columns: minmax(0, 1fr) 190px; }
  .app-grid > .app-panel:first-child { display: none; }
  .section { padding: 72px 0; }
  .sec-head { margin-bottom: 30px; }
  .sec-head p { font-size: 16px; }
  .stats { padding: 22px 10px; }
  .stats li { padding: 0 6px; }
  .stats span { font-size: 12.5px; }
  .features, .steps, .who, .formats { grid-template-columns: minmax(0, 1fr); }
  .feat-wide { grid-column: auto; }
  .formats li { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
  .ext { font-size: 15px; min-width: 60px; text-align: center; }
  .style-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .style-card a { flex-direction: row; }
  .thumb { flex: none; width: 124px; min-height: 104px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .thumb svg { left: 9px; top: 9px; width: calc(100% - 18px); height: calc(100% - 18px); }
  .card-body { padding: 12px 14px; gap: 5px; }
  .card-title { font-size: 15px; }
  .cta-panel { padding: 48px 20px; border-radius: 22px; }
  .page-hero { padding-top: 104px; }
  .plans-section { padding-top: 36px; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .plan { padding: 26px 20px 22px; }
  .plan-d { min-height: 0; }
  .auth { padding: 92px 12px 40px; place-items: start center; }
  .auth-card { padding: 28px 18px 24px; border-radius: 20px; }
  .cta-panel .cta { width: 100%; max-width: 360px; }
}
@media (hover: hover) and (max-width: 1080px) {
  .burger:hover span { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .style-card a, .navmenu, .burger span { transition: none; }
  .btn:hover, .style-card a:hover { transform: none; }
  html.intro .nav, html.intro .brand, html.intro .links a, html.intro .nav-login, html.intro .lang, html.intro .theme, html.intro .nav-cta, html.intro .burger,
  html.intro .badge, html.intro .h1 span, html.intro .sub, html.intro .note, html.intro .actions,
  html.intro .ring, html.intro .browser { opacity: 1; translate: none; scale: none; clip-path: none; }
}
