/* Joiano — stylesheet. Visual truth: Brand Book v6 plus SPECIFIKACE.md.
   Self-hosted everything, no external URLs (CSP §5.6 style-src 'self',
   font-src 'self'). Dynamic light/mood is driven purely by [data-theme]
   selectors; no inline style attributes or JS-written style properties. */

/* ===== self-hosted fonts (§5.6, web/vendor/fonts) ===== */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('vendor/fonts/fraunces-v38-latin_latin-ext-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('vendor/fonts/fraunces-v38-latin_latin-ext-300italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('vendor/fonts/fraunces-v38-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('vendor/fonts/fraunces-v38-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('vendor/fonts/fraunces-v38-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('vendor/fonts/fraunces-v38-latin_latin-ext-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('vendor/fonts/fraunces-v38-latin_latin-ext-500italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('vendor/fonts/inter-v20-latin_latin-ext-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('vendor/fonts/inter-v20-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('vendor/fonts/inter-v20-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('vendor/fonts/inter-v20-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('vendor/fonts/space-mono-v17-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('vendor/fonts/space-mono-v17-latin_latin-ext-700.woff2') format('woff2');
}

/* ===== Identity + Light tokens ===== */
:root {
  --porcelain: #FBFAF7;
  --porcelain-base: #F5F4F1;
  --porcelain-deep: #ECEBE6;
  --ink: #13234F;
  --ink-soft: rgba(19,35,79,.76);
  --graphite: #5C6373;
  --crimson: #AA0827;
  --hair: #E4E1DA;
  --white: #fff;
  --black: #000;
  --print-ink: #111;
  --print-border: #bbb;
  --key-ink: #3a2f28;
  --key-label: #7b6b60;
  --key-code: #6a5a4d;
  --hair-ink: rgba(19,35,79,.12);
  --text: var(--ink);
  --text-dim: var(--ink-soft);
  --text-mute: var(--graphite);
  --accent: var(--ink);
  --accent-ink: var(--white);
  --accent-2: var(--ink);
  --hot: var(--crimson);
  --like: #1F7A54;
  --idk: #7A8190;
  --no: #5C6373;
  --surface: #FFFEFC;
  --surface-raised: var(--white);
  --surface-deep: var(--porcelain-deep);
  --surface-highlight: rgba(255,255,255,.82);
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;
  --space-96: 96px;
  --space-128: 128px;
  --radius: 12px;
  --card-radius: 8px;
  --shadow-soft: 0 12px 26px -22px rgba(19,35,79,.28);
  --shadow-card: 0 18px 44px -34px rgba(19,35,79,.32);
  --skin-grad: linear-gradient(135deg,#D7E8F9,#EAF4F8 48%,#F2F7FF);
  --light-grad: var(--skin-grad);
  --page-bg:
    radial-gradient(92% 62% at 50% -18%, rgba(255,255,255,.80), transparent 68%),
    radial-gradient(56% 46% at 8% 6%, rgba(255,255,255,.32), transparent 70%),
    var(--skin-grad),
    var(--porcelain);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  color-scheme: light;
}
[data-theme="gold"] {
  --porcelain: #EFE7D6;
  --porcelain-deep: #DAC99D;
  --ink: #33262C;
  --ink-soft: rgba(51,38,44,.68);
  --graphite: #76634B;
  --hair: rgba(88,67,38,.16);
  --accent: #8C6E32;
  --accent-2: #B8975A;
  --hot: #9A4C55;
  --like: #A78444;
  --surface: rgba(255,252,244,.70);
  --surface-raised: rgba(255,255,255,.86);
  --surface-deep: #E3D4AE;
  --surface-highlight: rgba(255,255,255,.82);
  --skin-grad: linear-gradient(135deg,#B8975A 0%,#CBB98F 42%,#EFE7D6 100%);
}
[data-theme="rose"] {
  --porcelain: #F4E5E9;
  --porcelain-deep: #E7C8D0;
  --ink: #3A2530;
  --ink-soft: rgba(58,37,48,.66);
  --graphite: #7D6671;
  --hair: rgba(92,45,64,.15);
  --accent: #A65772;
  --accent-2: #C97B90;
  --hot: #9A3F55;
  --like: #8C6E52;
  --surface: rgba(255,249,251,.72);
  --surface-raised: rgba(255,255,255,.86);
  --surface-deep: #EBCFD7;
  --surface-highlight: rgba(255,255,255,.82);
  --skin-grad: linear-gradient(135deg,#C97B90 0%,#DBAAB6 45%,#F4E5E9 100%);
}
[data-theme="silver"] {
  --porcelain: #E5E8EB;
  --porcelain-deep: #CDD3D8;
  --ink: #22303A;
  --ink-soft: rgba(34,48,58,.66);
  --graphite: #68747E;
  --hair: rgba(36,53,67,.15);
  --accent: #5F7487;
  --accent-2: #7B8793;
  --hot: #914C5E;
  --like: #7B735C;
  --surface: rgba(250,252,253,.70);
  --surface-raised: rgba(255,255,255,.88);
  --surface-deep: #D7DDE2;
  --surface-highlight: rgba(255,255,255,.82);
  --skin-grad: linear-gradient(135deg,#6E7A85 0%,#A2ABB3 46%,#E5E8EB 100%);
}
[data-theme="bordeaux"] {
  --porcelain: #2B0B18;
  --porcelain-deep: #1D0710;
  --ink: #F5EEE6;
  --ink-soft: rgba(245,238,230,.68);
  --graphite: #D1AEB6;
  --hair: rgba(255,255,255,.15);
  --accent: #C0857C;
  --accent-ink: #2B0B18;
  --accent-2: #E2B48D;
  --hot: #D29388;
  --like: #C8A16B;
  --idk: #A58B95;
  --no: #8B7480;
  --surface: rgba(255,245,235,.10);
  --surface-raised: rgba(255,246,238,.16);
  --surface-deep: #1B0610;
  --surface-highlight: rgba(255,255,255,.18);
  --skin-grad: linear-gradient(135deg,#4B0020 0%,#8A2E3C 48%,#C0857C 100%);
  --shadow-soft: 0 14px 34px -24px rgba(0,0,0,.70);
  --shadow-card: 0 24px 60px -32px rgba(0,0,0,.78);
  color-scheme: dark;
}
[data-theme="navy"] {
  --porcelain: #0E1A2C;
  --porcelain-deep: #09111E;
  --ink: #F2F6FC;
  --ink-soft: rgba(242,246,252,.68);
  --graphite: #AEC1D5;
  --hair: rgba(255,255,255,.15);
  --accent: #5F8CC4;
  --accent-ink: #081423;
  --accent-2: #C6A66B;
  --hot: #B36C7D;
  --like: #B79A5C;
  --idk: #8FA6BF;
  --no: #73849A;
  --surface: rgba(245,250,255,.10);
  --surface-raised: rgba(249,252,255,.16);
  --surface-deep: #07101D;
  --surface-highlight: rgba(255,255,255,.18);
  --skin-grad: linear-gradient(135deg,#0E1A2C 0%,#1E3A5F 48%,#7E9BC4 100%);
  --shadow-soft: 0 14px 34px -24px rgba(0,0,0,.72);
  --shadow-card: 0 24px 60px -32px rgba(0,0,0,.80);
  color-scheme: dark;
}
[data-theme="mono"] {
  --porcelain: #0C0C0D;
  --porcelain-deep: #050506;
  --ink: #F4F4F1;
  --ink-soft: rgba(244,244,241,.68);
  --graphite: #B7B7B1;
  --hair: rgba(255,255,255,.16);
  --accent: #D6D6D2;
  --accent-ink: #111;
  --accent-2: #FFFFFF;
  --hot: #B5868F;
  --like: #B1A77B;
  --idk: #969696;
  --no: #777;
  --surface: rgba(255,255,255,.10);
  --surface-raised: rgba(255,255,255,.16);
  --surface-deep: #090909;
  --surface-highlight: rgba(255,255,255,.18);
  --skin-grad: linear-gradient(135deg,#0C0C0D 0%,#111 52%,#FFFFFF 120%);
  --shadow-soft: 0 14px 34px -24px rgba(0,0,0,.74);
  --shadow-card: 0 24px 60px -32px rgba(0,0,0,.82);
  color-scheme: dark;
}
[data-theme="paper"] {
  --porcelain: #FAFAFA;
  --porcelain-deep: #ECECEC;
  --ink: #151515;
  --ink-soft: rgba(21,21,21,.64);
  --graphite: #636363;
  --hair: rgba(0,0,0,.13);
  --accent: #303030;
  --accent-2: #111111;
  --hot: #8F4556;
  --like: #706344;
  --surface: rgba(255,255,255,.76);
  --surface-raised: rgba(255,255,255,.92);
  --surface-deep: #EFEFEF;
  --surface-highlight: rgba(255,255,255,.86);
  --skin-grad: linear-gradient(135deg,#FAFAFA 0%,#FFFFFF 54%,#DCDCDC 100%);
}
[data-theme="azure"] {
  --porcelain: #F3F7FC;
  --porcelain-deep: #E6EEF7;
  --ink: #13234F;
  --ink-soft: rgba(19,35,79,.60);
  --graphite: #5C6373;
  --hair: rgba(19,35,79,.12);
  --accent: #2F6DB0;
  --accent-2: #5F8FC4;
  --hot: #9A3F55;
  --like: #6F7F52;
  --surface: color-mix(in srgb, var(--porcelain) 78%, #fff);
  --surface-raised: color-mix(in srgb, var(--porcelain) 58%, #fff);
  --surface-deep: var(--porcelain-deep);
  --surface-highlight: color-mix(in srgb, #fff 82%, var(--porcelain));
  --skin-grad: linear-gradient(135deg,#D7E8F9,#EAF4F8 48%,#F2F7FF);
}
[data-theme="sage"] {
  --porcelain: #EDF3EA;
  --porcelain-deep: #DDE8D8;
  --ink: #18322D;
  --ink-soft: rgba(24,50,45,.64);
  --graphite: #63736B;
  --hair: rgba(24,50,45,.13);
  --accent: #4F7F73;
  --accent-2: #8EA474;
  --hot: #9A4A5C;
  --like: #71804E;
  --surface: rgba(250,253,248,.74);
  --surface-raised: rgba(255,255,255,.88);
  --surface-deep: #DFEADA;
  --surface-highlight: rgba(255,255,255,.84);
  --skin-grad: linear-gradient(135deg,#D8E7D1 0%,#EDF3EA 46%,#B8C7A0 100%);
}
[data-theme="plum"] {
  --porcelain: #2A1A33;
  --porcelain-deep: #1D1025;
  --ink: #F6EEF8;
  --ink-soft: rgba(246,238,248,.68);
  --graphite: #D0B8D5;
  --hair: rgba(255,255,255,.15);
  --accent: #B18AD1;
  --accent-ink: #25142F;
  --accent-2: #D4A2B9;
  --hot: #C982A0;
  --like: #B5A66C;
  --idk: #A78DB2;
  --no: #7F6E88;
  --surface: rgba(255,248,255,.10);
  --surface-raised: rgba(255,248,255,.16);
  --surface-deep: #1C0F24;
  --surface-highlight: rgba(255,255,255,.18);
  --skin-grad: linear-gradient(135deg,#2A1A33 0%,#7B558F 48%,#D8B3DF 100%);
  --shadow-soft: 0 14px 34px -24px rgba(0,0,0,.70);
  --shadow-card: 0 24px 60px -32px rgba(0,0,0,.78);
  color-scheme: dark;
}
[data-theme="gold"],
[data-theme="rose"],
[data-theme="silver"],
[data-theme="bordeaux"],
[data-theme="navy"],
[data-theme="mono"],
[data-theme="paper"],
[data-theme="azure"],
[data-theme="sage"],
[data-theme="plum"] {
  --page-bg:
    radial-gradient(92% 62% at 50% -18%, rgba(255,255,255,.80), transparent 68%),
    radial-gradient(56% 46% at 8% 6%, rgba(255,255,255,.32), transparent 70%),
    var(--skin-grad),
    var(--porcelain);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; }
html, body { min-height: 100%; }
body {
  /* Paint the themed skin on the full document, not only the viewport, so long
     scrollable screens never show a horizontal seam where a fixed html
     background ends. */
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}
/* Hero mesh — sytý iridescentní gradient ukotvený na vršku dokumentu (dle brand book .mesh/.blob),
   vybledá do porcelánu pod hero. 6 blobů = brand book bl1..bl6. */
body::before{content:"";position:absolute;top:0;left:0;width:100%;height:clamp(560px,80vh,820px);z-index:-1;pointer-events:none;opacity:.42;
  filter:blur(58px) saturate(112%);
  background:
    radial-gradient(46% 46% at 16% 16%, rgba(201,184,242,.90), transparent 60%),
    radial-gradient(42% 44% at 22% 52%, rgba(169,207,247,.86), transparent 60%),
    radial-gradient(46% 46% at 38% 86%, rgba(180,239,214,.80), transparent 60%),
    radial-gradient(46% 48% at 84% 15%, rgba(255,203,166,.86), transparent 60%),
    radial-gradient(42% 44% at 80% 54%, rgba(255,182,198,.84), transparent 60%),
    radial-gradient(46% 46% at 66% 86%, rgba(255,223,160,.84), transparent 60%);
  -webkit-mask-image:linear-gradient(to bottom,#000 58%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 58%,transparent 100%);}
html { background: var(--porcelain); }
svg { display: block; }
/* Brand Book v6 keeps backdrop-filter declarations absent: flat porcelain only. */
.brand-mark {
  display: block;
  width: min(230px, 70vw);
  height: auto;
  margin: 10px auto 24px;
}
.brand-mark-hero {
  width: min(290px, 78vw);
  margin-top: 4px;
  margin-bottom: 28px;
}
.brand-mark-login {
  width: min(220px, 64vw);
  margin-bottom: 26px;
}
.o-mark {
  width: .82em;
  height: .82em;
  flex: 0 0 auto;
  object-fit: contain;
}

/* ===== fullscreen app shell (production; replaces the prototype .device) ===== */
.app-frame {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.notch { height: 12px; }
#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 428px;
  margin: 0 auto;
  padding: 12px 24px 28px;
  position: relative;
  z-index: 2;
}
.screen { animation: fade .45s ease both; flex: 1; display: flex; flex-direction: column; }
.screen.auth { justify-content: center; gap: 24px; }
.auth-card { width: 100%; max-width: 380px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; }
.auth-card-account { max-width: 392px; }
.auth-card .brand-mark { margin-top: 0; margin-bottom: 10px; }
.auth-card .eyebrow { margin-bottom: 0; }
.auth-card .stepdots { margin-bottom: 0; }
.auth-card h1.d, .auth-card h2.d { text-wrap: balance; }
.auth-card .lead { margin-top: 0; }
.auth-card .linkbtn { margin-top: 0; }
.login-form, .account-form { display: flex; flex-direction: column; gap: var(--space-16); }
.login-form .field, .account-form .field { margin-bottom: 0; }
@keyframes fade { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

.eyebrow { display: flex; align-items: center; gap: .7em; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); margin-bottom: 15px; }
.eyebrow.center { justify-content: center; }
.eyebrow .o-mark { width: 1.15em; height: 1.15em; color: var(--crimson); }
h1.d { font-family: var(--serif); font-weight: 400; font-size: 41px; line-height: 1.03; letter-spacing: 0; color: var(--text); }
h2.d { font-family: var(--serif); font-weight: 400; font-size: 31px; line-height: 1.06; letter-spacing: 0; color: var(--text); }
.lead { color: var(--text-dim); font-size: 15.5px; line-height: 1.6; margin-top: 14px; }
.small { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.mute { color: var(--text-mute); }

.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--sans); font-weight: 600; font-size: 15.5px; padding: 14px 22px; border-radius: var(--radius); border: 1px solid var(--ink); cursor: pointer; width: 100%; color: var(--accent-ink); background: var(--ink); box-shadow: var(--shadow-soft); transition: transform .12s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease; }
.btn:hover { background: color-mix(in srgb, var(--ink) 92%, var(--white)); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.outline { background: transparent; color: var(--ink); border: 1px solid var(--hair); box-shadow: none; }
.btn.outline:hover { border-color: var(--ink); background: rgba(19,35,79,.035); }
.btn.accent { background: var(--crimson); border-color: var(--crimson); color: var(--white); }
.btn.accent:hover { background: color-mix(in srgb, var(--crimson) 90%, var(--black)); }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; transform: none; box-shadow: none; }
.btnrow { display: flex; gap: 10px; margin-top: 16px; }
.btnrow .btn { width: auto; flex: 1; }
.linkbtn { background: none; border: 0; color: var(--text-dim); font-family: var(--sans); font-size: 13.5px; font-weight: 500; border-bottom: 1px solid var(--hair); cursor: pointer; padding: 6px 0; margin: 14px auto 0; display: inline-block; transition: .15s; }
.linkbtn:hover { color: var(--accent); border-color: var(--accent); }
.center { text-align: center; align-items: center; }
.spacer { flex: 1; }
/* Desktop: onboarding/app screens center their content in the viewport instead of
   pinning the content to the top and stranding the primary button at the very bottom
   (that stranded layout read as confusing). `safe center` centers when it fits and
   falls back to top-anchored when content is taller than the viewport (no clipping).
   The flex-grow spacer collapses to a calm gap so the button sits just below the
   content. Mobile keeps the bottom-pinned button (natural thumb-reach flow). */
@media (min-width: 700px) {
  .screen { justify-content: safe center; }
  .screen .spacer { flex: 0 0 auto; min-height: 2rem; }
}

.fieldlabel { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mute); margin: 0 0 8px 2px; display: block; }
.input { width: 100%; color: var(--text); font-family: var(--sans); font-size: 16px; padding: 15px 16px; outline: none; border-radius: 13px; background: var(--surface-raised); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); transition: .15s; }
.input::placeholder { color: var(--text-mute); }
.input:focus { border-color: var(--ink); box-shadow: inset 0 1px 0 var(--surface-highlight), 0 0 0 3px rgba(19,35,79,.16); }
.pm-username { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- shared focus ring (P2-1, a11y) ----------------------------------------
   Keyboard-reachable selection controls (.mcard/.moodchip/.tier/.tonerow/
   .genderopt/.saveopt/.tcard/.cdot) carry role=button+tabindex but only had the
   default UA outline, which is weak/inconsistent across custom controls.
   One designed :focus-visible rule gives them a high-contrast accent ring that
   shows ONLY for keyboard focus (not on mouse click), matching the .input:focus
   language. Native <button>/<input>/<a> reuse the same treatment for
   consistency. :focus-visible (not :focus) so pointer users don't see the ring. */
.mcard:focus-visible, .moodchip:focus-visible, .tier:focus-visible,
.tonerow:focus-visible, .genderopt:focus-visible, .saveopt:focus-visible,
.tcard:focus-visible, .cdot:focus-visible,
button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.input:focus-visible { outline: none; } /* .input has its own ring via :focus */
.field { margin-bottom: 16px; }
.note { border-radius: 14px; padding: 14px 16px; font-size: 13.5px; color: var(--text-dim); line-height: 1.55; background: var(--surface); border: 1px solid var(--hair); border-left: 3px solid var(--accent-2); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.note.warn { border-left-color: var(--hot); }
.note svg { width: 17px; height: 17px; stroke: var(--accent-2); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -3px; margin-right: 6px; }
.note.warn svg { stroke: var(--hot); }

.stepdots { display: flex; gap: 6px; margin-bottom: 16px; }
.stepdots i { width: 24px; height: 4px; border-radius: 2px; background: var(--hair); }
.stepdots i.on { background: var(--accent); }

/* carousel */
.carousel { overflow: hidden; border-radius: 24px; background: var(--surface-raised); border: 1px solid var(--hair); box-shadow: var(--shadow-card); margin-top: 4px; }
.ctrack { display: flex; transition: transform .45s cubic-bezier(.3,.7,.3,1); }
/* Discrete slide positions (CSP-safe: no inline style / setProperty). The JS
   toggles one .slide-N class instead of writing a transform through JS. */
.ctrack.slide-0 { transform: translateX(0); }
.ctrack.slide-1 { transform: translateX(-100%); }
.ctrack.slide-2 { transform: translateX(-200%); }
.ctrack.slide-3 { transform: translateX(-300%); }
.ctrack.slide-4 { transform: translateX(-400%); }
.ctrack.slide-5 { transform: translateX(-500%); }
.cslide { flex: 0 0 100%; padding: 34px 28px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 352px; }
.cicon { width: 80px; height: 80px; border-radius: 24px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent) 7%, transparent)); border: 1px solid var(--hair); box-shadow: var(--shadow-soft); }
.cicon svg { width: 36px; height: 36px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cslide h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--text); line-height: 1.1; }
.cslide p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; margin-top: 12px; }
.cslide .keyhint { margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .01em; border: 1px dashed var(--accent); border-radius: 10px; padding: 9px 14px; }
.cnav { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.cdots { display: flex; gap: 7px; flex: 1; justify-content: center; }
.cdot { width: 8px; height: 8px; border-radius: 50%; background: var(--hair); cursor: pointer; transition: .25s; }
.cdot.on { background: var(--accent); width: 22px; border-radius: 4px; }
.cnavbtn { border-radius: 13px; color: var(--text); width: 44px; height: 44px; font-size: 18px; cursor: pointer; background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); transition: .15s; }
.cnavbtn:hover:not(:disabled) { border-color: var(--accent); }
.cnavbtn:disabled { opacity: .3; cursor: not-allowed; }
.landing-samples { display: grid; gap: 9px; margin-top: 16px; }
.landing-sample { border-radius: 14px; padding: 13px 14px; background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.landing-sample-top { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.landing-sample-top svg { width: 16px; height: 16px; stroke: var(--accent-2); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.landing-sample h3 { font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.12; color: var(--text); margin-top: 8px; }
.landing-sample p { font-size: 12.5px; line-height: 1.45; color: var(--text-dim); margin-top: 5px; }
.landing-sample blockquote { margin: 10px 0 0; padding: 9px 10px; border-left: 3px solid var(--accent); border-radius: 10px; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); font-family: var(--serif); font-size: 14px; line-height: 1.28; }

/* pricing */
.tier { border-radius: var(--radius); padding: 17px 19px; margin-bottom: 11px; cursor: pointer; transition: .18s; display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.tier:hover { border-color: var(--accent); transform: translateY(-1px); }
.tier.sel { border-color: var(--accent); box-shadow: inset 0 1px 0 var(--surface-highlight), 0 0 0 1px var(--accent); }
.tier .term { font-family: var(--serif); font-size: 25px; font-weight: 500; color: var(--text); }
.tier .grow { flex: 1; }
.tier .price { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--accent-2); }
.tier .per { font-size: 11px; color: var(--text-mute); display: block; text-align: right; margin-top: 2px; }
.tier .best { font-size: 10px; font-weight: 600; letter-spacing: .02em; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 3px 7px; }
.tier .priceside { text-align: right; }

/* credential */
.plate { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums slashed-zero; font-feature-settings: "tnum" 1, "zero" 1; letter-spacing: .16em; font-size: 26px; text-align: center; color: var(--accent-2); border-radius: 14px; padding: 22px; margin: 4px 0 6px; background: var(--surface-raised); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.keycard { border-radius: 18px; padding: 22px; text-align: center; margin-top: 6px; color: var(--key-ink); background: var(--surface-raised); border: 1px solid var(--hair); box-shadow: var(--shadow-card); }
.keycard .lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; color: var(--key-label); text-transform: uppercase; }
.qr { margin: 14px auto 8px; display: block; width: min(100%, 260px); height: auto; border-radius: 9px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.3); image-rendering: pixelated; }
.seedstr { font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums slashed-zero; font-feature-settings: "tnum" 1, "zero" 1; font-size: 14px; line-height: 1.45; letter-spacing: .04em; color: var(--key-code); word-break: break-all; margin-top: 6px; }
.saveopts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; margin-top: 15px; }
.saveopt { border-radius: 14px; padding: 14px 6px; cursor: pointer; text-align: center; transition: .15s; display: flex; flex-direction: column; gap: 7px; align-items: center; background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.saveopt:hover { border-color: var(--accent); }
.saveopt.done { border-color: var(--accent); box-shadow: inset 0 1px 0 var(--surface-highlight), 0 0 0 1px var(--accent); }
.saveopt svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.saveopt.done svg { stroke: var(--accent); }
.saveopt .sl { font-size: 11.5px; font-weight: 600; color: var(--text); }

/* seal orbs */
.sealwrap { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 28px 0; }
.seal { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--accent) 42%, var(--white)), var(--accent) 62%, color-mix(in srgb, var(--accent) 78%, var(--black))); box-shadow: 0 14px 30px -18px rgba(0,0,0,.55), inset 0 2px 8px rgba(255,255,255,.35), inset 0 -6px 14px rgba(0,0,0,.18); }
.seal svg { width: 34px; height: 34px; stroke: var(--accent-ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.seal.two { background: radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--accent-2) 55%, var(--white)), var(--accent-2) 55%, color-mix(in srgb, var(--accent-2) 72%, var(--black))); }
.sealwrap .lk { width: 32px; height: 1.5px; background: var(--hair); position: relative; }
.sealwrap .lk::after { content: ""; position: absolute; inset: -3px 0 0 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }

/* invite link + centred send icon (CSP-safe replacements for prototype inline styles) */
.plate.invite-link { font-size: 14px; letter-spacing: .02em; color: var(--accent); word-break: break-all; }
.cicon.invite-cicon { margin: 0 auto 20px; }

/* light picker */
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.tcard { border-radius: var(--radius); padding: 17px; cursor: pointer; border: 1px solid var(--hair); transition: .16s; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.42); color: var(--ink); }
.tcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(255,255,255,.30), transparent 46%); pointer-events: none; }
.tcard:hover { transform: translateY(-2px); }
.tcard.sel { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(19,35,79,.16), var(--shadow-card); }
.tcard .tn { font-family: var(--serif); font-size: 21px; font-weight: 300; position: relative; z-index: 1; }
.tcard .td { font-size: 11.5px; opacity: .85; margin-top: 2px; position: relative; z-index: 1; }
.tcard .swatch { display: flex; gap: 5px; margin-top: 14px; position: relative; z-index: 1; }
.tcard .sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 1px 2px rgba(255,255,255,.5), 0 0 0 1px rgba(0,0,0,.08); }

/* Per-skin picker cards (CSP-safe: no inline style). Each card shows its OWN
   skin regardless of the active [data-theme], so the picker stays legible. */
.tcard-gold { background: linear-gradient(158deg, color-mix(in srgb,#B8975A 20%,#EFE7D6), #EFE7D6); color: #33262c; }
.tcard-rose { background: linear-gradient(158deg, color-mix(in srgb,#C97B90 20%,#F4E5E9), #F4E5E9); color: #33262c; }
.tcard-silver { background: linear-gradient(158deg, color-mix(in srgb,#6E7A85 20%,#E5E8EB), #E5E8EB); color: #33262c; }
.tcard-bordeaux { background: linear-gradient(158deg, color-mix(in srgb,#8A2E3C 20%,#4B0020), #4B0020); color: #f1ece5; }
.tcard-navy { background: linear-gradient(158deg, color-mix(in srgb,#1E3A5F 20%,#0E1A2C), #0E1A2C); color: #f1ece5; }
.tcard-mono { background: linear-gradient(158deg, color-mix(in srgb,#FFFFFF 20%,#0C0C0D), #0C0C0D); color: #f1ece5; }
.tcard-paper { background: linear-gradient(158deg, color-mix(in srgb,#111111 20%,#FAFAFA), #FAFAFA); color: #33262c; }
.tcard-azure { background: linear-gradient(158deg, color-mix(in srgb,#2F6DB0 20%,#F3F7FC), #F3F7FC); color: #13234F; }
.tcard-sage { background: linear-gradient(158deg, color-mix(in srgb,#4F7F73 20%,#EDF3EA), #EDF3EA); color: #18322D; }
.tcard-plum { background: linear-gradient(158deg, color-mix(in srgb,#B18AD1 20%,#2A1A33), #2A1A33); color: #f6eef8; }
.sw-gold-0{background:#B8975A}.sw-gold-1{background:#CBB98F}.sw-gold-2{background:#EFE7D6}
.sw-rose-0{background:#C97B90}.sw-rose-1{background:#DBAAB6}.sw-rose-2{background:#F4E5E9}
.sw-silver-0{background:#6E7A85}.sw-silver-1{background:#A2ABB3}.sw-silver-2{background:#E5E8EB}
.sw-bordeaux-0{background:#8A2E3C}.sw-bordeaux-1{background:#C0857C}.sw-bordeaux-2{background:#4B0020}
.sw-navy-0{background:#1E3A5F}.sw-navy-1{background:#7E9BC4}.sw-navy-2{background:#0E1A2C}
.sw-mono-0{background:#FFFFFF}.sw-mono-1{background:#111111}.sw-mono-2{background:#0C0C0D}
.sw-paper-0{background:#111111}.sw-paper-1{background:#FFFFFF}.sw-paper-2{background:#FAFAFA}
.sw-azure-0{background:#2F6DB0}.sw-azure-1{background:#8CB7DD}.sw-azure-2{background:#F3F7FC}
.sw-sage-0{background:#4F7F73}.sw-sage-1{background:#9CAF88}.sw-sage-2{background:#EDF3EA}
.sw-plum-0{background:#B18AD1}.sw-plum-1{background:#D4A2B9}.sw-plum-2{background:#2A1A33}

/* tone */
.spectrum { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.tonerow { border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: .15s; background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.tonerow:hover { border-color: var(--accent); }
.tonerow.sel { border-color: var(--accent); box-shadow: inset 0 1px 0 var(--surface-highlight), 0 0 0 1px var(--accent); }
.tonerow .th { display: flex; align-items: center; gap: 10px; }
.tonerow .tlabel { font-weight: 600; font-size: 15.5px; color: var(--text); }
.tonerow .tbadge { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-mute); margin-left: auto; }
.tonerow .sample { font-family: var(--serif); font-size: 14.5px; font-style: italic; color: var(--text-dim); line-height: 1.45; margin-top: 9px; }
.heatbar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; margin-top: 4px; }
.heatbar i { flex: 1; background: var(--hair); }
/* Lit heat segments per tone rank (CSP-safe classes; palette = content.HEAT_COLS). */
.heatbar i.heat-off { background: var(--hair); }
.heatbar i.heat-0 { background: var(--idk); }
.heatbar i.heat-1 { background: var(--like); }
.heatbar i.heat-2 { background: var(--accent-2); }
.heatbar i.heat-3 { background: var(--accent); }

/* ── Onboarding refinements (user request) ───────────────────────────────
   Carousel: drop the icon boxes, let calm editorial typography carry the slide;
   scale up on desktop. Tone picker: bigger type + colour-coded escalation
   (Něžně → Naplno = calm → crimson) so the drama reads at a glance. */
.cslide .cicon { display: none; }
.cslide h3 { font-weight: 400; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.012em; line-height: 1.08; }
.cslide p { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.65; margin-top: 16px; max-width: 36ch; }
.cslide { min-height: 300px; padding-top: 26px; }
.tonerow { border-left-width: 3px; padding: 16px 18px; }
.tonerow:has(.heat-0) { border-left-color: var(--idk); }
.tonerow:has(.heat-1) { border-left-color: var(--like); }
.tonerow:has(.heat-2) { border-left-color: var(--accent-2); }
.tonerow:has(.heat-3) { border-left-color: var(--accent); }
.tonerow .tlabel { font-size: 18px; }
.tonerow .sample { font-size: 16px; line-height: 1.5; }
.heatbar { height: 7px; }

/* survey */
.vbadge { font-size: 10.5px; font-weight: 600; color: var(--text-mute); text-align: center; letter-spacing: .03em; margin-bottom: 4px; }
.progress { font-size: 12px; font-weight: 600; color: var(--text-mute); text-align: center; margin: 2px 0 15px; }
.cardstack { position: relative; height: 380px; margin-bottom: 8px; }
.swcard { position: absolute; inset: 0; border-radius: var(--card-radius); padding: 28px; color: var(--text); display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--hair); box-shadow: var(--shadow-card); }
.swcard .cat { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.swcard .ttl { font-family: var(--serif); font-weight: 500; font-size: 33px; line-height: 1.06; margin-top: 16px; }
.swcard .desc { font-size: 14.5px; line-height: 1.5; color: var(--text-dim); margin-top: 12px; }
.swcard .meta { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 10.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text-dim); border: 1px solid var(--hair); }
.swback { position: absolute; inset: 0; border-radius: var(--card-radius); background: var(--surface); border: 1px solid var(--hair); transform: scale(.94) translateY(14px); opacity: .6; }
.swback2 { position: absolute; inset: 0; border-radius: var(--card-radius); background: var(--surface); border: 1px solid var(--hair); transform: scale(.88) translateY(28px); opacity: .3; }
.ratebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.rate { border-radius: 14px; padding: 13px 10px; cursor: pointer; transition: .14s; text-align: center; display: flex; flex-direction: column; gap: 5px; align-items: center; background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.rate:hover { transform: translateY(-2px); }
.rate svg { width: 21px; height: 21px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rate .rl { font-size: 13px; font-weight: 600; color: var(--text); }
.rate .rs { font-size: 10.5px; color: var(--text-mute); }
.rate.hot svg { stroke: var(--hot); } .rate.hot:hover { border-color: var(--hot); }
.rate.like svg { stroke: var(--like); } .rate.like:hover { border-color: var(--like); }
.rate.idk svg { stroke: var(--idk); } .rate.idk:hover { border-color: var(--idk); }
.rate.no svg { stroke: var(--no); } .rate.no:hover { border-color: var(--no); }
.rate.sel { border-color: var(--accent); box-shadow: inset 0 1px 0 var(--surface-highlight), 0 0 0 1px var(--accent); }
.gatebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.survey-upgrade-actions { display: grid; gap: 10px; margin-top: 18px; }
/* No-go confirmation layout (CSP-safe replacements for prototype inline styles) */
.cardstack.confirm-stack { height: 184px; }
.swcard.confirm-card { justify-content: center; }
.ttl.confirm-ttl { font-size: 28px; }
.gatebtns.confirm-gate { margin-top: 16px; }
.progress.confirm-progress { margin-top: 16px; }

/* survey v2 flow (handoff 2026-07): consent → primary pills → centered modal */
.consent-note { margin: 6px 0 18px; padding: 16px 20px; border-radius: 24px; background: color-mix(in srgb, var(--text) 6%, transparent); font-size: 13.5px; line-height: 1.55; color: var(--text-dim); }
.consentbtns { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.qprogress { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 14px; }
.qprogress .stepdots { margin-bottom: 0; }
.qprogress .count { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--text-mute); }
.qsub { color: var(--text-mute); margin-top: 2px; }
.qpills { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 4px; }
.qpill { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 72px; padding: 20px 24px; border-radius: 999px; font-family: var(--sans); font-size: 16.5px; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-soft); cursor: pointer; transition: transform .16s ease, border-color .18s ease, background .18s ease, color .18s ease; }
.qpill .chev { margin-left: auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .38; flex: none; transition: transform .16s ease; }
.qpill:hover { transform: translateY(-1px); border-color: var(--accent); }
.qpill:hover .chev { transform: translateX(2px); }
.qpill:active { transform: scale(.985); }
.qpill.sel { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.skipq { display: block; margin: 12px auto 0; padding: 10px; background: none; border: 0; font-family: var(--sans); font-size: 13px; color: var(--text-mute); cursor: pointer; }
.skipq:hover { color: var(--text-dim); }
/* refinement modal — the card must be OPAQUE: on glassy dark skins (navy,
   bordeaux…) the generic --surface-raised is ~16% white and the question pills
   behind the scrim would read through the options. --porcelain is a solid hex
   in every skin, so the sheet stays readable without backdrop-filter (Brand
   Book v6 keeps backdrop-filter absent). */
.modal.svmodal { border-radius: 28px; background: var(--porcelain); }
.svmodal .modal-title { text-align: center; font-size: 21px; margin-bottom: 18px; }
.svmodal .modal-actions:empty { display: none; }
.svmodal-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); text-align: center; margin-bottom: 10px; }
.svchip { display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; max-width: 100%; margin: 0 auto 16px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); border: 1px solid var(--hair); }
.svchip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); flex: none; }
.subopts { display: flex; flex-direction: column; gap: 12px; }
.subopt { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; min-height: 64px; padding: 18px 22px; border-radius: 999px; font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-soft); cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .14s ease; }
.subopt:active { transform: scale(.985); }
.subopt .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--hair); flex: none; position: relative; transition: border-color .16s ease, background .16s ease; }
.subopt.sel { border-color: var(--crimson); background: color-mix(in srgb, var(--crimson) 8%, transparent); }
.subopt.sel .dot { border-color: var(--crimson); background: var(--crimson); }
.subopt.sel .dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface-raised); }
/* finale */
.donemark { width: 56px; height: 56px; border-radius: 50%; border: 1.6px solid var(--crimson); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.donemark svg { width: 26px; height: 26px; fill: none; stroke: var(--crimson); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cluebox.explored-clue { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--text-dim); }
.cluebox.explored-clue svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--crimson); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.checkrow.stay-row { margin: 4px 0 12px; }

/* solo track (Průvodce) */
.solo-row { margin-top: 14px; }
.solo-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.solo-card { display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%; padding: 18px 20px; border-radius: 18px; background: var(--surface-raised); border: 1px solid var(--hair); box-shadow: var(--shadow-soft); cursor: pointer; color: var(--text); font-family: var(--sans); transition: transform .16s ease, border-color .18s ease; }
.solo-card:hover { transform: translateY(-1px); border-color: var(--accent); }
.solo-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.solo-title { font-family: var(--serif); font-weight: 500; font-size: 19px; }
.solo-read { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-mute); }
.solo-read svg { width: 13px; height: 13px; fill: none; stroke: var(--like); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.solo-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--text-mute); }
.solo-intro { font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
.solo-article { margin-top: 6px; }
.solo-h { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 22px 0 8px; color: var(--text); }
.solo-p { font-size: 14.5px; line-height: 1.65; color: var(--text-dim); margin: 0 0 10px; }

/* materials library (personalized educational content, §22 VIZE 2026-07-22) */
.materials-recommended { margin-top: 4px; }
.materials-section-title { font-family: var(--serif); font-weight: 500; font-size: 19px; color: var(--text); margin: 26px 0 10px; }
.materials-section-title:first-child { margin-top: 18px; }
.material-list-group { display: flex; flex-direction: column; gap: 12px; }
.material-card { display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%; padding: 18px 20px; border-radius: 18px; background: var(--surface-raised); border: 1px solid var(--hair); box-shadow: var(--shadow-soft); cursor: pointer; color: var(--text); font-family: var(--sans); transition: transform .16s ease, border-color .18s ease; }
.material-card:hover { transform: translateY(-1px); border-color: var(--accent); }
.material-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.material-title { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.22; }
.material-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.material-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; color: var(--text-mute); white-space: nowrap; }
.material-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.material-badge.done { color: var(--like); }
.material-topic-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.material-summary { font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }

/* materials reader */
.material-reader-head { margin-bottom: 4px; }
.material-body { margin-top: 18px; }
.material-body.mode-hidden { display: none; }
.material-h { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 22px 0 8px; color: var(--text); }
.material-body > .material-h:first-child { margin-top: 0; }
.material-p { font-size: 14.5px; line-height: 1.65; color: var(--text-dim); margin: 0 0 12px; }
.material-list { margin: 0 0 14px; padding-left: 20px; color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }
.material-list li { margin-bottom: 6px; }
.material-audio-wrap { margin-top: 18px; }
.material-audio-wrap.mode-hidden { display: none; }
audio.material-audio { width: 100%; border-radius: 999px; }

/* content_style presentation variants — the body_md is identical in every
   variant (§22: "obsah zůstává stejný, mění se jen podání"); only layout,
   spacing and typographic tone change per data-style on .material-reader. */
[data-style="warm"] .material-body { background: color-mix(in srgb, var(--accent-2) 6%, transparent); border-radius: 22px; padding: 20px 22px 4px; }
[data-style="warm"] .material-h { font-style: italic; font-weight: 400; }
[data-style="warm"] .material-p { line-height: 1.85; font-size: 15px; }
[data-style="visual"] .material-h { font-size: 23px; padding-bottom: 7px; border-bottom: 2px solid var(--accent-2); }
[data-style="visual"] .material-p { border-left: 3px solid var(--hair); padding-left: 14px; }
[data-style="visual"] .material-list { border-left: 3px solid var(--hair); padding-left: 30px; margin-left: 3px; }

/* materials feedback prompt (compact pills, mirrors the reveal echo-step
   visual language — §6.4) */
.material-feedback { margin-top: 26px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.material-feedback-heading { font-family: var(--serif); font-weight: 500; font-size: 17px; margin-bottom: 14px; color: var(--text); }
.material-feedback-q { margin-bottom: 14px; }
.material-feedback-q:last-of-type { margin-bottom: 6px; }
.material-feedback-q-label { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; display: block; }
.material-feedback-pills { display: flex; gap: 8px; }
.mf-pill { padding: 9px 18px; border-radius: 999px; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--text); background: var(--surface-raised); border: 1px solid var(--hair); cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease, transform .14s ease; }
.mf-pill:hover { border-color: var(--accent); transform: translateY(-1px); }
.mf-pill:active { transform: scale(.97); }
.mf-pill.sel { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.material-feedback-skip { margin-top: 2px; }
.material-feedback-skip .linkbtn { margin-top: 0; }

/* mystery deck */
.deck { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.mcard { aspect-ratio: 3/4; border-radius: 20px; cursor: pointer; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: transform .4s cubic-bezier(.2,.7,.3,1), opacity .4s, box-shadow .2s; background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 26%, transparent), color-mix(in srgb, var(--accent) 8%, transparent)); border: 1px solid var(--hair); box-shadow: var(--shadow-soft); }
.mcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(255,255,255,.4), transparent 46%); pointer-events: none; }
.mcard .q { font-family: var(--serif); font-size: 48px; font-weight: 500; color: var(--text); position: relative; z-index: 1; text-shadow: 0 2px 14px rgba(0,0,0,.2); }
.mcard:hover { transform: translateY(-3px); }
.mcard.picking { transform: translateY(-30px) scale(1.05); box-shadow: var(--shadow-card); }
.mcard.opened { background: var(--surface-raised); cursor: default; padding: 16px; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.mcard.opened::after { display: none; }
.mcard.opened .ot { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--text); line-height: 1.1; position: relative; z-index: 1; }
.mcard.opened .oc { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--accent-2); position: relative; z-index: 1; }
.mcard.opened .oc svg { width: 15px; height: 15px; stroke: var(--accent-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.final-copy { padding-bottom: 18px; }
.final-keepsake { border-radius: var(--radius); padding: 18px; background: var(--surface-raised); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.final-kicker { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; }
.final-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.final-list li { font-family: var(--serif); font-size: 18px; line-height: 1.18; color: var(--text); padding: 10px 0; border-top: 1px solid var(--hair); }
.final-list li:first-child { border-top: 0; padding-top: 0; }
.final-actions { display: grid; gap: 10px; margin-top: 16px; }
@media print {
  .screenhead, .final-copy, .final-actions, #toast { display: none !important; }
  .app { min-height: auto; padding: 0; }
  .screen { box-shadow: none; animation: none; }
  .final-keepsake { border: 1px solid var(--print-border); box-shadow: none; color: var(--print-ink); background: var(--white); }
  .final-kicker, .final-list li { color: var(--print-ink); }
}

/* reveal */
.moodrow { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 6px; margin-top: 8px; }
.moodchip { border-radius: 11px; padding: 9px 3px; cursor: pointer; text-align: center; transition: .14s; font-size: 10px; font-weight: 600; color: var(--text-dim); background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.moodchip svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 3px; }
.moodchip.on { border-color: var(--accent); color: var(--text); box-shadow: inset 0 1px 0 var(--surface-highlight), 0 0 0 1px var(--accent); }
.phones { display: flex; gap: 12px; margin-top: 12px; }
.phone { flex: 1; border-radius: 18px; padding: 15px; min-height: 238px; display: flex; flex-direction: column; text-align: center; transition: .2s; background: var(--surface-raised); border: 1px solid var(--hair); box-shadow: var(--shadow-soft); }
.phone.ready { border-color: var(--accent-2); }
.phone .who { font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--text-mute); text-transform: uppercase; }
.miniseal { width: 46px; height: 46px; border-radius: 50%; margin: 12px auto; background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--accent) 42%, var(--white)), var(--accent) 62%, color-mix(in srgb, var(--accent) 78%, var(--black))); box-shadow: 0 8px 18px -12px rgba(0,0,0,.5), inset 0 1px 6px rgba(255,255,255,.32); display: flex; align-items: center; justify-content: center; transition: transform .5s; }
.miniseal svg { width: 22px; height: 22px; stroke: var(--accent-ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.phone.two .miniseal { background: radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--accent-2) 55%, var(--white)), var(--accent-2) 55%, color-mix(in srgb, var(--accent-2) 72%, var(--black))); }
.phone.ready .miniseal { transform: rotate(200deg) scale(1.06); }
.revealtxt { font-size: 13px; line-height: 1.55; color: var(--text); text-align: left; animation: fade .5s both; }
.revealtxt .tt { font-family: var(--serif); font-size: 20px; font-weight: 500; display: block; margin-bottom: 8px; line-height: 1.12; }
.cluebox { border-radius: 10px; padding: 9px 11px; font-size: 11px; color: var(--text-dim); margin-top: 10px; line-height: 1.4; text-align: left; background: var(--surface); border: 1px solid var(--hair); border-left: 3px solid var(--accent); }
.social-proof-badge { display: inline-flex; align-items: center; gap: 6px; align-self: center; margin-top: 10px; border-radius: 999px; padding: 7px 10px; font-size: 10.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-2); }
.social-proof-badge svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tinybtn { border-radius: 11px; color: var(--text); font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 10px 14px; cursor: pointer; transition: .15s; background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.tinybtn:hover { border-color: var(--accent-2); }
.modeswitch { display: flex; gap: 8px; justify-content: center; margin: 8px 0 2px; }
.modeswitch button { font-size: 11.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; color: var(--text-dim); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; background: var(--surface); border: 1px solid var(--hair); }
.modeswitch button svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.modeswitch button.on { background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 85%, var(--white)), var(--accent-2)); color: var(--accent-ink); border-color: var(--accent-2); }
.satis { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; margin-top: 12px; }

/* satisfaction step 2 — "A příště?" echo pills (compact cousin of .subopt) */
.echostep { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .28s ease, opacity .22s ease; margin-top: 0; }
.echostep.open { grid-template-rows: 1fr; opacity: 1; margin-top: 18px; }
.echostep > * { min-height: 0; overflow: hidden; }
.echostep-q { margin: 0 0 10px; }
.echopills { display: flex; flex-direction: column; gap: 9px; }
.echopill { width: 100%; text-align: left; padding: 13px 18px; border-radius: 999px; font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-soft); cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .14s ease; }
.echopill:hover { border-color: var(--accent); transform: translateY(-1px); }
.echopill:active { transform: scale(.985); }
.echostep-skip { margin-top: 6px; }
.echostep-skip .linkbtn { margin-top: 0; }

/* Reveal layout helpers (CSP-safe replacements for prototype inline styles) */
.phone.phone-compact { min-height: auto; gap: 2px; }
.moodrow { margin-top: 10px; }
.miniseal.miniseal-lg { width: 60px; height: 60px; margin: 22px auto 6px; }
.reveal-phone { min-height: auto; margin-top: 4px; }
.reveal-seal { margin: 2px auto 16px; }
.revealtxt.reveal-center { text-align: center; }
.reveal-title { font-size: 25px; }
.cluebox b.clue-mood { color: var(--accent); }

/* ===== chat (ephemeral E2E conversation, features blueprint #1) ============= */
.chat-screen { display: flex; flex-direction: column; }
.chat-closing-banner { display: none; align-items: flex-start; gap: 10px; border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--accent-ink); background: var(--hot); box-shadow: var(--shadow-soft); }
.chat-closing-banner[hidden] { display: none; }
.chat-closing-banner:not([hidden]) { display: flex; }
.chat-closing-banner svg { width: 17px; height: 17px; flex: none; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-closing-text { display: flex; flex-direction: column; gap: 2px; }
.chat-closing-who { font-weight: 500; opacity: .88; }

.chat-list { flex: 1 1 auto; min-height: 220px; max-height: 56vh; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 10px; margin-bottom: 4px; }
.chat-list-loading { padding: 40px 10px; }
.chat-empty { text-align: center; color: var(--text-mute); padding: 24px 10px; }

.chat-row { display: flex; }
.chat-row.mine { justify-content: flex-end; }
.chat-row.theirs { justify-content: flex-start; }
.chat-bubble { max-width: 78%; border-radius: 18px; padding: 10px 14px 8px; box-shadow: var(--shadow-soft); transition: opacity .15s ease; }
.chat-row.mine .chat-bubble { background: var(--ink); border: 1px solid var(--ink); border-bottom-right-radius: 6px; }
.chat-row.theirs .chat-bubble { background: var(--surface-raised); border: 1px solid var(--hair); border-bottom-left-radius: 6px; }
.chat-text { display: block; color: var(--text); font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.chat-row.mine .chat-text { color: var(--accent-ink); }
.chat-meta { display: block; margin-top: 4px; font-size: 10px; color: var(--text-mute); text-align: right; }
.chat-row.mine .chat-meta { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }
.chat-bubble.pending { opacity: .62; }
.chat-bubble.failed { border-color: var(--hot); box-shadow: 0 0 0 1px var(--hot); }

.chat-bubble-media { padding: 8px; }
.chat-media-holder { display: flex; }
.chat-media-img, .chat-media-video { max-width: 100%; max-height: 260px; border-radius: 12px; display: block; }
.chat-media-audio { width: min(240px, 60vw); }
.chat-media-placeholder { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: inherit; font-family: var(--sans); font-size: 13px; cursor: pointer; text-align: left; }
.chat-media-placeholder svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-media-label { flex: 1; opacity: .92; }
.chat-media-show { font-weight: 600; text-decoration: underline; opacity: .9; }
.chat-media-loading, .chat-media-failed { padding: 6px 8px; }

.chat-compose { flex: none; display: flex; align-items: flex-end; gap: 8px; padding-top: 10px; border-top: 1px solid var(--hair); }
.chat-input { flex: 1; resize: none; min-height: 44px; max-height: 120px; border-radius: 18px; padding: 11px 15px; font-family: var(--sans); font-size: 15px; line-height: 1.4; color: var(--text); background: var(--surface-raised); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); outline: none; transition: .15s; }
.chat-input:focus { border-color: var(--ink); box-shadow: inset 0 1px 0 var(--surface-highlight), 0 0 0 3px rgba(19,35,79,.16); }
.chat-input::placeholder { color: var(--text-mute); }
.chat-iconbtn { flex: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); transition: .15s; }
.chat-iconbtn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-iconbtn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.chat-iconbtn:disabled { opacity: .4; cursor: not-allowed; }
.chat-iconbtn.send { background: var(--ink); color: var(--accent-ink); border-color: var(--ink); }
.chat-iconbtn.send:hover:not(:disabled) { color: var(--accent-ink); }
.chat-iconbtn.recording { background: var(--hot); color: #fff; border-color: var(--hot); animation: chatpulse 1.2s ease-in-out infinite; }
@keyframes chatpulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hot) 45%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--hot) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .chat-iconbtn.recording { animation: none; } }

.chat-close-row { margin-top: 12px; }
.chat-reconnect-note { margin-bottom: 10px; }

.emptybox { text-align: center; color: var(--text-mute); font-size: 14px; padding: 32px 10px; line-height: 1.7; }
.btn.nav-back { margin-top: 20px; }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--surface-raised); color: var(--ink); font-size: 13.5px; font-weight: 600; padding: 13px 20px; border-radius: 14px; opacity: 0; pointer-events: none; transition: .28s; z-index: 50; box-shadow: var(--shadow-card); max-width: 340px; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.noscript-note { position: fixed; inset: 0; display: grid; place-items: center; padding: 32px; text-align: center; color: var(--ink); background: var(--porcelain); font-family: var(--sans); line-height: 1.7; }

/* ===== public landing pages (Brand Book v6) ===== */
.public-shell { min-height: 100vh; min-height: 100dvh; background: transparent; }
.public-page { width: 100%; max-width: 1160px; margin: 0 auto; padding: 24px clamp(24px,6vw,92px) 56px; position: relative; z-index: 2; }
.public-nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 26px; }
.public-brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; }
.public-brand-wordmark { width: 132px; height: auto; display: block; }
.public-links { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.public-links a, .public-copy a, .public-footer a { color: var(--text-dim); text-decoration: none; border-bottom: 1px solid var(--hair); font-size: 14px; font-weight: 600; }
.public-links a:hover, .public-copy a:hover, .public-footer a:hover { color: var(--ink); border-color: var(--ink); }
.public-links a.public-nav-cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid var(--ink); border-radius: var(--radius); color: var(--white); background: var(--ink); box-shadow: var(--shadow-soft); }
.public-links a.public-nav-cta:hover { color: var(--white); background: color-mix(in srgb, var(--ink) 92%, var(--white)); transform: translateY(-1px); }
.public-hero { position: relative; min-height: clamp(560px,74vh,780px); display: grid; place-items: center; overflow: hidden; margin-inline: calc(clamp(24px,6vw,92px) * -1); padding: var(--space-40) clamp(24px,6vw,92px) var(--space-64); background: transparent; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.public-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background-image: radial-gradient(circle at 50% 40%, rgba(255,255,255,.22), transparent 58%); pointer-events: none; }
.public-hero-copy { position: relative; z-index: 2; text-align: center; max-width: 940px; }
.public-hero-key { height: clamp(84px,12vh,132px); width: auto; aspect-ratio: 1049 / 360; object-fit: contain; display: block; margin: 0 auto var(--space-24); filter: drop-shadow(0 10px 20px rgba(90,66,20,.22)); }
.public-hero-key-wrap { position: relative; display: inline-block; }
.public-hero-key-wrap::before { content: ""; position: absolute; left: 50%; top: 54%; width: 110%; height: 110%; transform: translate(-50%,-50%); background: radial-gradient(closest-side,rgba(250,214,150,.12),transparent 72%); z-index: -1; }
.public-hero-mark { width: min(560px,80%); height: auto; margin: 0 auto; display: block; }
.public-title { font-family: var(--serif); font-size: clamp(2.7rem,7.4vw,6rem); line-height: 1; font-weight: 300; letter-spacing: -.022em; color: var(--text); max-width: 1000px; margin: var(--space-24) auto 0; }
.public-title em { color: var(--crimson); font-style: italic; font-weight: 300; }
.public-lead { color: var(--text); font-size: clamp(1.05rem,1.55vw,1.3rem); font-weight: 300; line-height: 1.55; margin: var(--space-24) auto 0; max-width: 54ch; }
.public-hero-lines { display: grid; gap: 6px; margin: var(--space-24) auto 0; color: var(--text-dim); font-size: 16px; line-height: 1.5; }
.public-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.public-actions .btn { width: auto; min-width: 190px; text-decoration: none; }
.public-actions-left { justify-content: flex-start; }
/* Sekce = jeden levý editorial sloupec (dle brand booku): návěstí → nadpis → text/mřížka pod sebou.
   Ne 1fr/3fr split, který cpal velký Fraunces nadpis do úzkého sloupce a lámal ho do 6-8 řádků. */
.public-section { display: block; padding: var(--space-96) 0; border-top: 1px solid var(--hair); }
.public-section:first-of-type { border-top: 0; padding-top: var(--space-40); }
.public-section-head { margin: 0 0 var(--space-40) 0; }
.public-section-head .eyebrow { margin-bottom: 18px; }
.public-section-body { min-width: 0; }
.public-section-body > .public-lead:first-child { margin-top: 0; max-width: 62ch; }
.public-section-body > .public-lead + .public-light-grid { margin-top: var(--space-24); }
.public-section .eyebrow { position: relative; margin-bottom: 0; }
.public-section .eyebrow .o-mark { margin-right: 0; }
.public-grid, .public-price-grid, .public-faq, .public-light-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 0; }
.public-light-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.public-grid-spaced { margin-top: var(--space-24); }
.public-card { border-radius: var(--card-radius); padding: 22px; background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.public-card h2, .public-card h3 { font-family: var(--serif); font-size: 23px; line-height: 1.12; font-weight: 400; color: var(--text); }
.public-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.62; margin-top: 10px; }
.public-heading { font-family: var(--serif); font-size: clamp(2rem,4.4vw,3.4rem); line-height: 1.04; letter-spacing: -.015em; font-weight: 400; color: var(--text); max-width: 20ch; }
.public-heading em { color: var(--crimson); font-style: italic; font-weight: 400; }
.public-copy p { color: var(--text-dim); font-size: 16px; line-height: 1.7; margin-bottom: 14px; max-width: 62ch; }
.public-light { min-height: 148px; border-radius: var(--card-radius); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); position: relative; overflow: hidden; }
.public-light::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 15% 12%, rgba(255,255,255,.5), transparent 55%); }
.public-light-name { font-family: var(--serif); font-size: 18px; font-weight: 400; margin-top: 12px; }
.public-light-note { color: var(--text-mute); font-size: 13px; margin-top: 2px; }
.public-light-card { padding: 12px; }
.public-light-card .public-light { min-height: 116px; }
.public-place-grad { height: 140px; margin: -22px -22px 18px; position: relative; overflow: hidden; border-bottom: 1px solid var(--hair); }
.public-place-pin { position: absolute; left: 16px; bottom: 14px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.78); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px -4px rgba(19,35,79,.32); }
.public-place-pin .o-mark { width: 15px; height: 15px; color: var(--ink); }
.public-price-main { border-color: var(--ink); box-shadow: inset 0 1px 0 var(--surface-highlight), 0 0 0 1px var(--ink); }
.public-price-value { font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--ink); }
.public-price .btn { margin-top: 18px; width: 100%; min-width: 0; }
.public-microcopy { color: var(--text-mute); font-size: 13.5px; line-height: 1.65; margin-top: var(--space-24); max-width: 60ch; }
.public-final .public-section-body { align-self: center; justify-content: flex-start; margin-top: 0; }
.public-final .public-heading { max-width: 580px; }
.public-footer { display: flex; gap: 16px; flex-wrap: wrap; padding: 26px 0 6px; border-top: 1px solid var(--hair); }
.public-hero-trust { min-height: 430px; }
.public-code-card { border-radius: var(--card-radius); padding: 22px; color: var(--text); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-card); display: grid; gap: 14px; }
.public-code-card p { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); font-size: 15px; line-height: 1.55; }
.public-code-card span { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: var(--accent-ink); background: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.public-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 0; }
.public-list { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.public-list li { position: relative; padding-left: 18px; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }
.public-list li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* ===== legal static pages (§25.1) ===== */
.legal-page { width: 100%; max-width: 620px; margin: 0 auto; padding: 24px 24px 60px; position: relative; z-index: 2; }
.legal-page h1.d { font-size: 33px; margin-top: 4px; }
.legal-h { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--text); margin: 26px 0 6px; }
.legal-page .small { color: var(--text-dim); }
.legal-back { margin-top: 34px; }
.legal-page a { color: var(--accent); text-decoration: underline; }

/* ===== age gate (§25.1) ===== */
.gate-orb { width: 84px; height: 84px; border-radius: 26px; margin: 6px auto 22px; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 24%, transparent), color-mix(in srgb, var(--accent) 8%, transparent)); border: 1px solid var(--hair); box-shadow: var(--shadow-soft); }
.gate-orb svg { width: 40px; height: 40px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.legal-links { display: flex; gap: 10px; margin-top: 14px; }
.legal-links a { flex: 1; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none; padding: 12px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.legal-links a:hover { border-color: var(--accent); }

/* ===== screen header + settings gear (§10.3 s8/s9) ===== */
.screenhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.screenhead .eyebrow { margin: 0; }
.screenhead .linkbtn { margin: 0; }
.gearbtn, .navbtn { flex: 0 0 auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; cursor: pointer; color: var(--text); background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); transition: .15s; }
.gearbtn:hover, .navbtn:hover { border-color: var(--accent); color: var(--accent); }
.gearbtn svg, .navbtn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ===== hamburger nav drawer (features blueprint §6) ===== */
.nav-overlay { position: fixed; inset: 0; z-index: 70; display: flex; justify-content: flex-end; background: rgba(8,6,10,0); transition: background .22s ease; }
.nav-overlay.open { background: rgba(8,6,10,.5); }
.nav-panel { width: min(84vw, 320px); height: 100%; background: var(--surface-raised); border-left: 1px solid var(--hair); box-shadow: -18px 0 44px -30px rgba(19,35,79,.5); display: flex; flex-direction: column; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateX(100%); transition: transform .24s cubic-bezier(.22,1,.36,1); overflow-y: auto; }
.nav-overlay.open .nav-panel { transform: translateX(0); }
.nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.nav-title { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--text); }
.nav-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.nav-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 14px; min-height: 52px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--text); font-family: var(--sans); font-size: 16px; font-weight: 500; cursor: pointer; text-decoration: none; transition: .14s; }
.nav-item:hover { background: var(--surface); border-color: var(--hair); }
.nav-item.active { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.nav-item.danger { color: var(--crimson); }
.nav-item svg { width: 21px; height: 21px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item-label { flex: 1; }
@media (prefers-reduced-motion: reduce) { .nav-overlay, .nav-panel { transition: none !important; } }

/* ===== settings groups (§25.3/§25.4/§7) ===== */
.setgroup { border-radius: var(--radius); padding: 18px; margin-top: 14px; background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.setgroup.danger { border-color: color-mix(in srgb, var(--hot) 55%, var(--hair)); }
.setgroup-title { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--text); margin-bottom: 6px; }
.setgroup .small { margin-bottom: 14px; }
.setgroup .btn { margin-top: 2px; }
.settings-push-loading { padding: 10px 0 0; text-align: left; }
.push-day-select { margin-top: 8px; margin-bottom: 10px; }
.push-actions { display: grid; gap: 10px; margin-top: 8px; }
.btn.danger { color: var(--white); background: linear-gradient(180deg, color-mix(in srgb, var(--hot) 82%, var(--white)), var(--hot)); border-color: color-mix(in srgb, var(--hot) 70%, var(--white) 10%); }
.btn.outline.danger { color: var(--hot); background: var(--surface); border-color: color-mix(in srgb, var(--hot) 55%, var(--hair)); }
.btn.outline.danger:hover { border-color: var(--hot); }

/* content-style picker (settings.js, §22 educational library) */
.styleopts { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.styleopt { border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: .15s; background: var(--surface-raised); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.styleopt:hover { border-color: var(--accent); }
.styleopt.sel { border-color: var(--accent); box-shadow: inset 0 1px 0 var(--surface-highlight), 0 0 0 1px var(--accent); }
.styleopt .so-label { font-weight: 600; font-size: 15px; color: var(--text); }
.styleopt .so-desc { font-size: 12.5px; color: var(--text-mute); margin-top: 3px; }

/* ===== modal dialog (accessible, focus-trapped) ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(8,6,10,.55); }
.modal { width: 100%; max-width: 380px; border-radius: 22px; padding: 24px; color: var(--text); background: var(--surface-raised); border: 1px solid var(--hair); box-shadow: var(--shadow-card); }
.modal-title { font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 0 0 12px; color: var(--text); }
.modal-body { font-size: 14px; line-height: 1.6; color: var(--text-dim); }
.modal-body .small { margin: 0 0 10px; }
.modal-body .note { margin-bottom: 12px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; width: auto; }

/* ===== checkbox row (§25.8 mandatory acknowledgement) ===== */
/* Full width + left-aligned so both checkboxes line up on the same left edge
   regardless of label length (the parent screen is text-align:center, which
   otherwise shrink-wraps and centres each row to a different offset). */
.checkrow { display: flex; width: 100%; gap: 12px; align-items: flex-start; text-align: left; margin: 16px 0 4px; cursor: pointer; user-select: none; }
.checkrow input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; background: var(--surface-raised); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); display: flex; align-items: center; justify-content: center; transition: .15s; margin-top: 1px; }
.checkbox svg { width: 15px; height: 15px; stroke: var(--accent-ink); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: .15s; }
.checkrow input:checked + .checkbox { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, var(--white)), var(--accent)); border-color: var(--accent); }
.checkrow input:checked + .checkbox svg { opacity: 1; }
.checkrow input:focus-visible + .checkbox { box-shadow: inset 0 1px 0 var(--surface-highlight), 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.checkrow .cktext { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }

/* ===== gender choice ===== */
.genderrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.genderopt { border-radius: 16px; padding: 22px 14px; cursor: pointer; text-align: center; transition: .16s; display: flex; flex-direction: column; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 var(--surface-highlight); }
.genderopt:hover { border-color: var(--accent); transform: translateY(-1px); }
.genderopt.sel { border-color: var(--accent); box-shadow: inset 0 1px 0 var(--surface-highlight), 0 0 0 1px var(--accent); }
.genderopt .gl { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--text); }
.genderopt .gs { font-size: 12px; color: var(--text-mute); }

/* ===== QR canvas ===== */
canvas.qr { max-width: 100%; }

/* ===== ORDER-17 porcelain/editorial chrome ===== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7em;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--graphite);
  text-shadow: none;
}
.eyebrow.center {
  justify-content: center;
}
h1.d {
  font-weight: 300;
  letter-spacing: 0;
}
h2.d,
.public-heading {
  font-weight: 400;
  letter-spacing: -.015em;
}
.public-title {
  font-weight: 300;
  letter-spacing: -.022em;
}
.lead,
.small,
.public-lead,
.public-copy p {
  font-weight: 300;
}
.btn,
.input,
.note,
.carousel,
.landing-sample,
.tier,
.plate,
.keycard,
.saveopt,
.tonerow,
.swcard,
.rate,
.mcard,
.final-keepsake,
.moodchip,
.phone,
.tinybtn,
.public-card,
.public-code-card,
.legal-links a,
.gearbtn,
.setgroup,
.modal,
.checkbox,
.genderopt,
.cnavbtn,
.tcard {
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-soft);
}
.btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-soft);
}
.btn.outline,
.tinybtn,
.cnavbtn,
.gearbtn {
  background: var(--surface);
  color: var(--ink);
}
.btn.outline:hover,
.tinybtn:hover,
.cnavbtn:hover:not(:disabled),
.gearbtn:hover,
.linkbtn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.input:focus,
.checkrow input:focus-visible + .checkbox {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.note,
.setgroup,
.final-keepsake,
.public-card {
  background: var(--surface);
}
.carousel,
.swcard,
.phone,
.public-code-card,
.modal,
.keycard {
  background: var(--surface-raised);
}
.cicon,
.gate-orb,
.seal,
.seal.two,
.miniseal,
.phone.two .miniseal {
  background: var(--light-grad);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-soft);
}
.cicon svg,
.gate-orb svg,
.seal svg,
.miniseal svg {
  stroke: var(--accent);
}
.mcard {
  background: var(--light-grad);
}
.mcard .q,
.mcard.opened .ot,
.swcard .ttl,
.landing-sample h3 {
  font-weight: 400;
  text-shadow: none;
}
.tier .term,
.tier .price,
.tcard .tn,
.genderopt .gl,
.setgroup-title,
.modal-title,
.legal-h {
  font-weight: 400;
}
.fieldlabel,
.landing-sample-top,
.swcard .cat,
.final-kicker,
.phone .who {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: .16em;
}
#toast {
  background: color-mix(in srgb, var(--porcelain) 92%, var(--white));
  color: var(--ink);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-card);
}
.modal-overlay {
  background: rgba(19,35,79,.22);
}

/* ===== inline load / error states ===== */
.loadbox { text-align: center; color: var(--text-mute); font-size: 14px; padding: 40px 10px; line-height: 1.7; }
.spin { width: 30px; height: 30px; margin: 0 auto 14px; border-radius: 50%; border: 3px solid var(--hair); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== pairing wait ===== */
.waitdots { display: inline-flex; gap: 5px; margin-left: 4px; }
.waitdots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: waitpulse 1.2s ease-in-out infinite; }
.waitdots i:nth-child(2) { animation-delay: .2s; }
.waitdots i:nth-child(3) { animation-delay: .4s; }
@keyframes waitpulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ===== strength meter ===== */
.strength { display: flex; gap: 5px; margin-top: 8px; }
.strength i { flex: 1; height: 4px; border-radius: 2px; background: var(--hair); transition: .2s; }
.strength i.on1 { background: var(--hot); }
.strength i.on2 { background: var(--like); }
.strength i.on3 { background: var(--accent-2); }
.strength i.on4 { background: var(--accent); }
.strengthlabel { font-size: 11.5px; color: var(--text-mute); margin-top: 5px; }

@media (max-width: 400px) {
  h1.d { font-size: 35px; }
  .saveopts { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .public-page { padding: 18px 18px 48px; }
  .public-nav { align-items: flex-start; flex-direction: column; margin-bottom: 12px; padding-bottom: 16px; }
  .public-links { justify-content: flex-start; gap: 10px 14px; }
  .public-hero { min-height: auto; margin-inline: -18px; padding: 24px 18px 32px; }
  .public-hero-key { height: 62px; margin-bottom: 12px; }
  .public-hero-mark { width: min(240px,68%); }
  .public-title { font-size: 35px; margin-top: 18px; }
  .public-lead { font-size: 14.8px; line-height: 1.5; margin-top: 14px; }
  .public-hero-lines { font-size: 13.5px; line-height: 1.45; gap: 4px; margin-top: 14px; }
  .public-actions { flex-direction: column; }
  .public-actions .btn { width: 100%; min-width: 0; }
  .public-hero .public-actions { flex-direction: row; margin-top: 18px; }
  .public-hero .public-actions .btn { width: auto; flex: 1 1 0; min-width: 0; padding-inline: 12px; font-size: 14px; }
  .public-section { grid-template-columns: 1fr; gap: var(--space-24); padding: var(--space-64) 0; }
  .public-section-head, .public-section-body { grid-column: 1; }
  .public-grid, .public-price-grid, .public-faq, .public-compare, .public-light-grid { grid-template-columns: 1fr; }
  .public-heading { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
