/* AS AI, as-ai.pl: style strony głównej (przeniesione 1:1 z artefaktu, dodatki na końcu). */
/* Layout: a dark, graded stage. Each service opens on a clapper title, then a scene that plays itself; sections are reachable from the header nav. Teal shadows, warm highlights. */
:root {
  --ink: #081315;
  --ink-2: #0C1B1E;
  --ink-3: #12262A;
  --ink-a: rgba(8, 19, 21, .82);
  --line: #1D3337;
  --line-2: #2A484C;
  --bone: #EEE6D8;
  --dim: #9DB0AE;
  --faint: #66807F;
  --amber: #FF9A4D;
  --amber-hi: #FFB884;
  --amber-ink: #241003;
  --teal: #52DACB;
  --warn: #FFC86B;
  --bad: #FF7A6B;

  --code-bg: #071113;
  --code-ink: #D6CFC2;
  --code-com: #587170;
  --code-sel: #52DACB;
  --code-val: #FFB884;
  --code-at: #E7C3FF;

  --chrome: #ECEAE5;
  --chrome-line: #D9D6CF;
  --chrome-ink: #4B4F55;
  --tl-red: #FF5F57;
  --tl-yel: #FEBC2E;
  --tl-grn: #28C840;

  --z-bg: #120D0B;
  --z-surface: #1C1512;
  --z-card: #251D18;
  --z-card2: #31271F;
  --z-ink: #F6ECE2;
  --z-dim: #A69486;
  --z-line: rgba(246, 236, 226, .08);
  --z-acc: #E7A363;
  --z-acc-ink: #1A110A;

  --pn-bg: #F7F6F3;
  --pn-card: #FFFFFF;
  --pn-col: #EFEDE8;
  --pn-ink: #17120F;
  --pn-ink-2: #463D37;
  --pn-dim: #7A716A;
  --pn-line: #E7E3DD;
  --pn-new: #3B6FE0;
  --pn-prep: #E08E1F;
  --pn-ready: #23996A;

  --halny: #2F6B4F;
  --chat-bg: #FBFAF7;
  --chat-ink: #1A1D1C;
  --chat-dim: #6D7471;
  --chat-line: #E4E2DC;
  --chat-bot: #EFEDE7;
  --chat-in: #FFFFFF;
  --chat-src: #9A4A12;

  --cup-coffee: #6B3F26;
  --cup-crema: #B9763F;
  --cup-milk: #EAD9C2;
  --cup-matcha: #8DB262;
  --cup-glass: #CFE2E6;
  --cup-ice: #F4FBFC;
  --cup-cup: #FFFFFF;
  --cup-line: #3A2A20;
  --crois: #D9953F;
  --crois-hi: #F1C27A;

  --font-display: "Archivo", "Archivo Variable", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Archivo Variable", "Helvetica Neue", Arial, sans-serif;
  --font-time: "JetBrains Mono", "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.4vw, 1.375rem);
  --fs-xl: clamp(1.5rem, 2.4vw, 2.125rem);
  --fs-2xl: clamp(2.125rem, 4.4vw, 4rem);
  --fs-hero: clamp(3.4rem, 11vw, 11.5rem);
  --fs-slate: clamp(3.4rem, 13.5vw, 14rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-snap: cubic-bezier(.7, 0, .84, 0);
  --gutter: clamp(16px, 4.2vw, 64px);
  --top-h: 68px;
  color-scheme: dark;
}

@property --acc { syntax: "<color>"; inherits: true; initial-value: #2F6B4F; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, canvas { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber); color: var(--amber-ink); }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--bone); color: var(--ink); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 16px; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; background: var(--ink); }
.no-gl #gl { background: radial-gradient(60% 50% at 70% 60%, rgba(82, 218, 203, .08), transparent 70%), var(--ink); }
main { position: relative; z-index: 1; padding-inline: var(--gutter); }

/* ---------- buttons & controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm); font-stretch: 106%; line-height: 1;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, transform .55s var(--ease-out), opacity .3s;
}
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: var(--amber-hi); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--bone); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: var(--fs-md); }
.btn[disabled] { opacity: .6; cursor: progress; }

.ctl { display: grid; gap: 10px; justify-items: start; }
.ctl-label { font-size: var(--fs-xs); color: var(--dim); font-weight: 500; }
.seg {
  position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 13px; max-width: 100%;
}
.seg button {
  position: relative; z-index: 1; appearance: none; border: 0; background: transparent; color: var(--dim);
  font-family: var(--font-body); font-weight: 550; font-size: .875rem; line-height: 1.15;
  padding: 11px 14px; border-radius: 9px; cursor: pointer; transition: color .3s;
}
.seg button:hover { color: var(--bone); }
.seg button[aria-checked="true"], .seg button[aria-selected="true"] { color: var(--ink); }
.seg-pill { position: absolute; z-index: 0; left: 0; top: 0; border-radius: 9px; background: var(--bone); transition: transform .5s var(--ease-out), width .5s var(--ease-out), height .5s var(--ease-out); pointer-events: none; }
.no-pill .seg button[aria-checked="true"], .no-pill .seg button[aria-selected="true"] { background: var(--bone); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--dim);
  font-family: var(--font-body); font-weight: 500; font-size: .84rem; line-height: 1; cursor: pointer;
  transition: color .25s, border-color .25s, background-color .25s;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .25s, border-color .25s; }
.chip:hover { color: var(--bone); }
.chip[aria-pressed="true"] { color: var(--bone); border-color: var(--teal); background: rgba(82, 218, 203, .1); }
.chip[aria-pressed="true"] i { background: var(--teal); border-color: var(--teal); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--amber) var(--fill, 50%), var(--line-2) var(--fill, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--bone); box-shadow: 0 0 0 5px rgba(255, 154, 77, .22); transition: box-shadow .2s; }
input[type="range"]:active::-webkit-slider-thumb { box-shadow: 0 0 0 9px rgba(255, 154, 77, .3); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--amber); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--bone); box-shadow: 0 0 0 5px rgba(255, 154, 77, .22); }

/* ---------- top bar & navigation ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  background: linear-gradient(to bottom, var(--ink-a) 35%, rgba(8, 19, 21, 0));
  transition: box-shadow .4s, background-color .4s;
}
.topbar.is-solid { background: var(--ink-a); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); font-family: var(--font-display); font-weight: 850; font-stretch: 125%; font-size: 1.125rem; letter-spacing: .01em; white-space: nowrap; }
.brand-mark { position: relative; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(238, 230, 216, .35); }
.brand-mark::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--bone); animation: spin 2.4s linear infinite; }
.brand-mark i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
@keyframes spin { to { transform: rotate(360deg); } }
.nav { position: relative; justify-self: center; display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; padding: 10px 11px; border-radius: 8px; color: var(--dim); text-decoration: none; font-size: .875rem; font-weight: 550; white-space: nowrap; transition: color .25s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--bone); }
.nav-ind { position: absolute; left: 0; bottom: 2px; height: 2px; border-radius: 1px; background: var(--amber); opacity: 0; transition: transform .55s var(--ease-out), width .55s var(--ease-out), opacity .3s; pointer-events: none; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ink-a); }
.lang button { border: 0; background: transparent; color: var(--dim); font-weight: 650; font-size: .75rem; letter-spacing: .04em; padding: 8px 10px; border-radius: 999px; cursor: pointer; line-height: 1; transition: background-color .3s, color .3s; }
.lang button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.menu-btn { display: none; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ink-a); color: var(--bone); font-weight: 600; font-size: .875rem; cursor: pointer; }
.menu-ico { position: relative; width: 16px; height: 10px; }
.menu-ico i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 1px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.menu-ico i:first-child { top: 0; }
.menu-ico i:last-child { top: 8px; }
.menu-btn[aria-expanded="true"] .menu-ico i:first-child { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico i:last-child { top: 4px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 45; padding: calc(var(--top-h) + env(safe-area-inset-top, 0px) + 12px) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--ink); overflow-y: auto; clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease-io); }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; }
.menu-list a { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--bone); opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .6s var(--ease-out); }
.menu.is-open .menu-list a { opacity: 1; transform: none; }
.menu.is-open .menu-list li:nth-child(2) a { transition-delay: .04s; }
.menu.is-open .menu-list li:nth-child(3) a { transition-delay: .08s; }
.menu.is-open .menu-list li:nth-child(4) a { transition-delay: .12s; }
.menu.is-open .menu-list li:nth-child(5) a { transition-delay: .16s; }
.menu.is-open .menu-list li:nth-child(6) a { transition-delay: .2s; }
.menu.is-open .menu-list li:nth-child(7) a { transition-delay: .24s; }
.mn-n { grid-row: 1 / 3; font-family: var(--font-time); font-size: .8rem; color: var(--amber); padding-top: .55em; }
.mn-t { font-family: var(--font-display); font-weight: 760; font-stretch: 112%; font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.05; letter-spacing: -.01em; }
.mn-d { color: var(--dim); font-size: .92rem; }
.menu-list a[aria-current="true"] .mn-t { color: var(--amber); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(96svh, 950px);
  display: flex; flex-direction: column; gap: clamp(34px, 6.5vh, 72px);
  padding-block: calc(var(--top-h) + 5vh) 26px;
}
.hero-main { margin-block: auto; }
.hero-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 28px clamp(48px, 6vw, 96px); align-items: end; }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-hero); line-height: .86; letter-spacing: -.02em; margin: 0; min-width: 0; }
.ht-a { display: block; font-size: .3em; font-weight: 700; font-stretch: 110%; letter-spacing: -.01em; margin: 0 0 .22em .04em; color: var(--bone); }
.ht-a .ch { --w: 110; --g: 700; }
.ht-b { display: block; white-space: nowrap; }
.ht-word { display: inline-block; white-space: nowrap; font-size: var(--word-scale, 1em); }
.ch { display: inline-block; font-variation-settings: "wdth" var(--w, 118), "wght" var(--g, 820); transform: translate3d(0, calc(var(--y, 0) * 1em), 0); opacity: var(--o, 1); will-change: transform; }
.hero-side { display: grid; gap: 22px; padding-bottom: .6em; }
.hero-lede { font-size: var(--fs-lg); line-height: 1.45; color: var(--bone); max-width: 38ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.chapters li { min-width: 0; }
.chapters a { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; padding: 16px 16px 6px 0; text-decoration: none; color: var(--bone); }
.chapters a::before { content: ""; position: absolute; top: -1px; left: 0; right: 16px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.chapters a:hover::before, .chapters a:focus-visible::before { transform: scaleX(1); }
.ch-n { grid-row: 1 / 3; font-family: var(--font-time); font-size: .8rem; color: var(--amber); padding-top: 2px; }
.ch-t { font-weight: 650; font-size: .95rem; line-height: 1.25; }
.ch-d { font-size: .82rem; color: var(--dim); line-height: 1.35; }

/* ---------- section openers ---------- */
.slate {
  position: relative; min-height: min(82svh, 820px);
  display: grid; align-content: center;
  padding-block: calc(var(--top-h) + 3.5vh) 6.5vh;
}
.clapper { position: relative; width: min(280px, 64vw); height: 52px; margin-bottom: 18px; }
.clap-base, .clap-stick { position: absolute; left: 0; right: 0; height: 22px; border: 1.5px solid var(--bone); border-radius: 3px; background: repeating-linear-gradient(118deg, var(--bone) 0 15px, var(--ink) 15px 30px); }
.clap-base { bottom: 0; background: repeating-linear-gradient(62deg, var(--bone) 0 15px, var(--ink) 15px 30px); }
.clap-stick { bottom: 25px; transform-origin: 1px 100%; transform: rotate(-24deg); transition: transform .26s var(--ease-snap); }
.slate.is-clapped .clap-stick { transform: rotate(0deg); }
.slate.is-clapped .clapper { animation: clapShake .4s .24s var(--ease-out); }
@keyframes clapShake { 0% { transform: translateY(0); } 30% { transform: translateY(2px); } 100% { transform: translateY(0); } }
.slate-num { font-family: var(--font-time); font-size: .9rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.slate-num b { color: var(--amber); font-weight: 500; }
.slate-body { padding-top: 4.5vh; min-width: 0; }
.slate-title {
  font-family: var(--font-display); font-size: var(--fs-slate); line-height: .84; letter-spacing: -.025em;
  text-transform: uppercase; margin: 0 0 .28em -.03em;
  font-variation-settings: "wdth" var(--sw, 125), "wght" 860;
  overflow-wrap: normal; word-break: keep-all;
}
.slate-copy { font-size: var(--fs-lg); line-height: 1.45; max-width: 40ch; color: var(--bone); opacity: .85; }

/* ---------- demo sections ---------- */
.demo { position: relative; padding-block: clamp(28px, 4.5vh, 60px) clamp(64px, 9.5vh, 110px); }
.demo::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(var(--gutter) * -1); background: linear-gradient(to bottom, rgba(8, 19, 21, 0), rgba(8, 19, 21, .7) 8%, rgba(8, 19, 21, .7) 92%, rgba(8, 19, 21, 0)); pointer-events: none; }
.demo-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(22px, 3.4vh, 36px); }
.demo-head h3 { font-family: var(--font-display); font-size: clamp(2rem, 3.9vw, 3.6rem); font-weight: 760; font-stretch: 110%; line-height: 1; letter-spacing: -.02em; }
.demo-head p { color: var(--dim); max-width: 52ch; }

/* ---------- scene steps ---------- */
.film-steps { margin-bottom: 18px; }
.fs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.fs-list li { min-width: 0; display: grid; gap: 9px; color: var(--faint); transition: color .4s; }
.fs-bar { display: block; height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.fs-bar i { display: block; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.fs-list li.is-done { color: var(--dim); }
.fs-list li.is-done .fs-bar i { background: var(--dim); }
.fs-list li.is-now { color: var(--bone); }
.fs-t { display: flex; gap: 8px; font-size: .84rem; font-weight: 600; line-height: 1.25; }
.fs-t b { font-family: var(--font-time); font-weight: 500; font-size: .74rem; color: var(--faint); padding-top: .1em; }
.fs-list li.is-now .fs-t b { color: var(--amber); }
.fs-cap { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-top: 14px; min-height: 1.6em; color: var(--dim); font-size: var(--fs-sm); }
.fs-cap-t { display: none; color: var(--bone); font-weight: 650; }

.film-cursor { position: absolute; left: 0; top: 0; z-index: 8; width: 0; height: 0; pointer-events: none; will-change: transform; }
.fc-arrow { position: absolute; left: -3px; top: -2px; width: 26px; height: 26px; fill: var(--bone); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .45)); transition: transform .18s var(--ease-out), opacity .25s; }
.fc-touch { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 154, 77, .3); border: 2px solid rgba(255, 154, 77, .9); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s var(--ease-out); }
.fc-ring { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--amber); opacity: 0; }
.film-cursor.is-touch .fc-arrow { opacity: 0; }
.film-cursor.is-touch .fc-touch { opacity: 1; transform: none; }
.film-cursor.is-click .fc-ring { animation: fcRing .55s var(--ease-out); }
.film-cursor.is-click .fc-arrow { animation: fcPress .3s var(--ease-out); }
.film-cursor.is-click .fc-touch { animation: fcTap .3s var(--ease-out); }
.film-cursor.is-down .fc-arrow { transform: scale(.88); }
@keyframes fcRing { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes fcPress { 40% { transform: scale(.82); } }
@keyframes fcTap { 40% { transform: scale(.72); background: rgba(255, 154, 77, .55); } }
.is-paused .film-cursor, .is-paused .fs-bar i { transition: none; }

/* ===== 01 websites ===== */
.wf-stage { position: relative; min-width: 0; overflow: hidden; padding-bottom: 6px; }
.web-size { position: absolute; right: 0; top: 0; font-family: var(--font-time); font-size: .78rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.ruler { position: relative; height: 26px; margin-bottom: 10px; margin-right: 110px; }
.ruler-ticks { position: absolute; left: 0; right: -110px; bottom: 0; height: 7px; background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 10px); border-bottom: 1px solid var(--line-2); }
.ruler-mark { position: absolute; bottom: 9px; transform: translateX(-50%); font-family: var(--font-time); font-size: .66rem; color: var(--faint); transition: color .3s; }
.ruler-mark::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 10px; background: var(--faint); }
.ruler-mark.is-past { color: var(--teal); }
.ruler-now { position: absolute; bottom: 0; width: 2px; height: 26px; margin-left: -1px; background: var(--amber); box-shadow: 0 0 8px rgba(255, 154, 77, .8); }
.browser { position: relative; max-width: 100%; perspective: 1800px; }
.browser-inner { position: relative; height: var(--bh, 580px); transform-style: preserve-3d; transition: transform 1s var(--ease-out); }
.browser.is-flipped .browser-inner { transform: rotateY(180deg); }
.b-face { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 50px 90px -40px rgba(0, 0, 0, .85); background: var(--chrome); }
.b-back { transform: rotateY(180deg); background: var(--code-bg); }
.b-bar { flex: none; height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 10px 0 14px; background: var(--chrome); border-bottom: 1px solid var(--chrome-line); color: var(--chrome-ink); }
.b-back .b-bar { background: #0E1D20; border-color: var(--line); color: var(--dim); }
.b-bar > i { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--tl-red); }
.b-bar > i:nth-child(2) { background: var(--tl-yel); }
.b-bar > i:nth-child(3) { background: var(--tl-grn); }
.b-url { flex: 1; min-width: 0; margin: 0 6px 0 10px; height: 26px; border-radius: 7px; background: rgba(0, 0, 0, .06); display: flex; align-items: center; justify-content: center; gap: 5px; font-family: var(--font-time); font-size: .72rem; overflow: hidden; white-space: nowrap; }
.b-back .b-url { background: rgba(255, 255, 255, .05); }
.b-url svg { width: 11px; height: 11px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; }
.b-codebtn { flex: none; width: 30px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: inherit; border: 1px solid transparent; transition: background-color .3s; }
.b-codebtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.b-codebtn.is-on { background: rgba(82, 218, 203, .14); color: var(--teal); }
.b-view { position: relative; flex: 1; overflow: hidden; background: #FAFAF6; }
.site-scaler { position: relative; overflow: hidden; }
.b-wipe { position: absolute; left: 0; right: 0; top: 40px; bottom: 0; pointer-events: none; transform: translateX(-120%); background: linear-gradient(90deg, rgba(255, 154, 77, 0), var(--amber) 40%, var(--bone) 52%, var(--amber) 64%, rgba(255, 154, 77, 0)); }
.b-handle { position: absolute; top: 50%; right: -15px; z-index: 3; width: 22px; height: 76px; margin-top: -38px; border-radius: 9px; background: var(--ink-3); border: 1px solid var(--line-2); display: grid; place-items: center; transition: border-color .3s, background-color .3s, opacity .3s; }
.b-handle.is-drag { border-color: var(--amber); background: #1A3034; }
.b-handle i { width: 6px; height: 28px; border-left: 2px solid var(--amber); border-right: 2px solid var(--amber); }
.browser.is-flipped .b-handle { opacity: 0; }
.wf-meter { position: absolute; top: 36px; left: 0; display: grid; align-content: start; gap: 10px; padding: 28px 0 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s; }
.wf-meter.is-on { visibility: visible; }
.wm-l { font-size: .85rem; color: var(--dim); }
.wm-big { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-weight: 820; font-stretch: 118%; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.wm-n { font-size: clamp(5rem, 11vw, 10rem); color: var(--bone); }
.wm-u { font-size: 2rem; color: var(--amber); }
.wm-bp { font-size: 1.05rem; font-weight: 600; color: var(--bone); max-width: 26ch; }
.wm-code { flex: none; margin-top: 10px; padding: 16px 18px; border-radius: 14px; background: var(--code-bg); border: 1px solid var(--line); font-size: .78rem; white-space: pre; overflow: hidden; max-width: 460px; }
.wf-sel { position: absolute; z-index: 5; left: 0; top: 0; width: 0; height: 0; border: 1.5px solid var(--amber); border-radius: 4px; pointer-events: none; opacity: 0; transition: opacity .25s; }
.wf-sel::before, .wf-sel::after { content: ""; position: absolute; width: 7px; height: 7px; background: var(--bone); border: 1.5px solid var(--amber); }
.wf-sel::before { left: -4px; top: -4px; }
.wf-sel::after { right: -4px; bottom: -4px; }
.wf-sel.is-on { opacity: 1; }
.wf-pop { position: absolute; z-index: 6; left: 0; top: 0; min-width: 210px; padding: 12px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .7); pointer-events: none; opacity: 0; transform: translateY(8px) scale(.96); transform-origin: top left; transition: opacity .25s, transform .4s var(--ease-out); }
.wf-pop.is-on { opacity: 1; transform: none; }
.wp-h { font-size: .72rem; color: var(--dim); font-weight: 600; margin-bottom: 8px; }
.wp-opts { display: flex; flex-wrap: wrap; gap: 4px; }
.wp-opt { padding: 8px 11px; border-radius: 8px; font-size: .8rem; font-weight: 600; color: var(--dim); background: var(--ink-3); transition: background-color .2s, color .2s; }
.wp-opt.is-cur { color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-2); }
.wp-opt.is-picked { background: var(--bone); color: var(--ink); }
.wp-opts.is-sw { gap: 8px; }
.wp-sw { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(238, 230, 216, .2) inset; transition: box-shadow .2s, transform .3s var(--ease-out); }
.wp-sw.is-cur { box-shadow: 0 0 0 2px var(--ink-2), 0 0 0 3.5px var(--dim); }
.wp-sw.is-picked { box-shadow: 0 0 0 2px var(--ink-2), 0 0 0 4px var(--bone); transform: scale(1.12); }

.code { flex: 1; margin: 0; padding: 18px 20px 24px; overflow: auto; font-family: var(--font-time); font-size: .78rem; line-height: 1.7; color: var(--code-ink); white-space: pre; tab-size: 2; }
.code .tc { color: var(--code-com); }
.code .ts { color: var(--code-sel); }
.code .tv { color: var(--code-val); }
.code .ta { color: var(--code-at); }
.code .blk { display: inline-block; padding: 0 6px; margin: 0 -6px; border-radius: 5px; transition: background-color .4s, box-shadow .4s; }
.code .blk.is-on { background: rgba(255, 154, 77, .12); box-shadow: inset 2px 0 0 var(--amber); }

/* mini site (Halny, fictional) */
.site {
  --acc: #2F6B4F;
  --s-bg: #F6F4EF; --s-fg: #15171A; --s-dim: #5E646B; --s-line: #E2DFD7; --s-card: #FFFFFF; --s-on-acc: #FFFFFF;
  --s-r: 18px; --s-btn-r: 12px;
  --s-top-m: 0px; --s-top-r: 0px; --s-top-b: 0 solid transparent; --s-top-sh: none;
  --s-shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 22px 44px -26px rgba(20, 22, 26, .35);
  --s-border: 1px solid var(--s-line);
  --s-h-font: var(--font-body); --s-h-var: "wdth" 100, "wght" 620; --s-h-ls: -.04em; --s-h-tt: none; --s-h-style: normal; --s-h-size: 88px; --s-h-lh: .98;
  --s-k-ls: .2em;
  --s-scene-f: none;
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  container-type: inline-size; container-name: site;
  background: var(--s-bg); color: var(--s-fg); font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  transition: --acc .9s var(--ease-out), background-color .6s, color .6s;
}
.site[data-style="editorial"] { --s-bg: #F1ECE2; --s-fg: #1B1714; --s-dim: #6C6259; --s-line: #D7CEC1; --s-card: transparent; --s-r: 0px; --s-btn-r: 0px; --s-top-m: 26px 56px 0; --s-top-b: 1px solid #1B1714; --s-shadow: none; --s-h-font: var(--font-serif); --s-h-var: normal; --s-h-ls: -.01em; --s-h-style: italic; --s-h-size: 104px; --s-h-lh: .94; --s-scene-f: saturate(.62) sepia(.14) contrast(1.04); }
.site[data-style="bold"] { --s-bg: var(--acc); --s-fg: #111111; --s-dim: #1E1E1E; --s-line: #111111; --s-card: #FFFFFF; --s-r: 0px; --s-btn-r: 0px; --s-top-m: 22px 56px 0; --s-top-b: 4px solid #111111; --s-top-sh: 12px 12px 0 #111111; --s-shadow: 8px 8px 0 #111111; --s-border: 3px solid #111111; --s-h-var: "wdth" 125, "wght" 900; --s-h-ls: -.035em; --s-h-tt: uppercase; --s-h-size: 80px; --s-h-lh: .92; }
.site[data-style="bold"][data-dark="true"] { --s-fg: #FFFFFF; --s-dim: #F2F2F2; --s-line: #FFFFFF; }
.site[data-style="bold"][data-dark="true"] .s-card { color: #111111; --s-dim: #333333; }
.site[data-style="soft"] { --s-bg: color-mix(in oklab, var(--acc) 12%, #FFFFFF); --s-fg: #1C2321; --s-dim: #57605C; --s-line: color-mix(in oklab, var(--acc) 16%, #FFFFFF); --s-card: #FFFFFF; --s-r: 30px; --s-btn-r: 999px; --s-top-m: 16px 16px 0; --s-top-r: 34px; --s-shadow: 0 30px 60px -30px color-mix(in oklab, var(--acc) 60%, transparent); --s-border: 0 solid transparent; --s-h-var: "wdth" 110, "wght" 600; --s-h-ls: -.045em; }

/* hero with the illustrated landscape */
.s-top { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 610px; margin: var(--s-top-m); border-radius: var(--s-top-r); border: var(--s-top-b); box-shadow: var(--s-top-sh); overflow: hidden; color: #FFFFFF; transition: border-radius .6s, margin .6s, box-shadow .6s; }
.s-scene { position: absolute; inset: 0; z-index: -1; filter: var(--s-scene-f); transition: filter .6s; }
.s-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 8, 13, .62), rgba(5, 8, 13, 0) 58%), linear-gradient(to bottom, rgba(5, 8, 13, .38), rgba(5, 8, 13, 0) 22%); }
.sc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.s-nav { display: flex; align-items: center; gap: 32px; padding: 26px 56px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.s-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; font-size: 20px; letter-spacing: .32em; text-transform: uppercase; }
.s-logo svg { width: 26px; height: 26px; fill: #FFFFFF; }
.s-logo i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); margin-left: -4px; }
.s-links { display: flex; gap: 30px; margin-left: auto; font-size: 15px; color: rgba(255, 255, 255, .86); }
.s-cta { padding: 11px 20px; border-radius: var(--s-btn-r); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .4); font-weight: 650; font-size: 14px; white-space: nowrap; transition: border-radius .6s; }
.s-burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--s-btn-r); border: 1px solid rgba(255, 255, 255, .45); place-items: center; align-content: center; gap: 5px; }
.s-burger i { display: block; width: 18px; height: 2px; background: #FFFFFF; border-radius: 2px; }
.s-hero { margin-top: auto; display: grid; gap: 30px; padding: 0 56px 52px; }
.s-hero-text { max-width: 760px; }
.s-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 650; letter-spacing: var(--s-k-ls); text-transform: uppercase; color: rgba(255, 255, 255, .86); margin-bottom: 18px; }
.s-kicker::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.s-h1 { font-family: var(--s-h-font); font-variation-settings: var(--s-h-var); font-style: var(--s-h-style); font-size: var(--s-h-size); line-height: var(--s-h-lh); letter-spacing: var(--s-h-ls); text-transform: var(--s-h-tt); text-wrap: balance; margin-bottom: 20px; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.s-p { font-size: 19px; color: rgba(255, 255, 255, .86); max-width: 40ch; }
.s-book { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 6px; max-width: 900px; padding: 8px; border-radius: calc(var(--s-btn-r) + 8px); background: rgba(16, 20, 28, .32); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); transition: border-radius .6s; }
.site[data-style="bold"] .s-book { background: #FFFFFF; color: #111111; border: 3px solid #111111; backdrop-filter: none; box-shadow: 6px 6px 0 #111111; }
.s-bf { display: grid; gap: 2px; padding: 8px 16px; border-right: 1px solid rgba(255, 255, 255, .2); }
.site[data-style="bold"] .s-bf { border-color: #111111; }
.s-bl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.s-bv { font-size: 17px; font-weight: 650; }
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 24px; border-radius: var(--s-btn-r); background: var(--acc); color: var(--s-on-acc); font-weight: 680; font-size: 15px; white-space: nowrap; transition: border-radius .6s, background-color .6s; }
.site[data-style="bold"] .s-btn { background: #111111; color: #FFFFFF; }
.site:not([data-style="bold"])[data-dark="false"] .s-book-btn, .site:not([data-style="bold"])[data-dark="false"] .s-arrow { color: #111111; }

/* features and cabins */
.s-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 40px 56px 8px; }
.s-feat { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; }
.s-feat i { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--acc) 14%, transparent); color: var(--acc); }
.site[data-style="bold"] .s-feat i { background: #111111; color: #FFFFFF; border-radius: 0; }
.site[data-style="bold"][data-dark="true"] .s-feat i { background: #FFFFFF; color: #111111; }
.s-feat svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s-sec { padding: 44px 56px 56px; }
.s-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.s-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); margin-bottom: 8px; transition: color .6s; }
.site[data-style="bold"] .s-eyebrow { color: var(--s-fg); }
.s-h2 { font-family: var(--s-h-font); font-variation-settings: var(--s-h-var); font-style: var(--s-h-style); font-size: 46px; line-height: 1; letter-spacing: var(--s-h-ls); text-transform: var(--s-h-tt); }
.s-all { font-size: 15px; font-weight: 650; white-space: nowrap; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.s-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.s-card { border-radius: var(--s-r); background: var(--s-card); border: var(--s-border); box-shadow: var(--s-shadow); overflow: hidden; transition: border-radius .6s, box-shadow .6s, background-color .6s; }
.site[data-style="editorial"] .s-card { border: 0; border-top: 1px solid var(--s-line); padding-top: 16px; }
.s-cimg { position: relative; aspect-ratio: 4 / 3; overflow: hidden; filter: var(--s-scene-f); }
.site[data-style="editorial"] .s-cimg { aspect-ratio: 5 / 4; }
.site[data-style="soft"] .s-cimg { margin: 10px 10px 0; border-radius: 22px; }
.s-badge { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #15171A; font-size: 12.5px; font-weight: 700; }
.site[data-style="bold"] .s-badge, .site[data-style="editorial"] .s-badge { border-radius: 0; }
.s-card-b { display: grid; gap: 6px; padding: 18px 20px 20px; }
.site[data-style="editorial"] .s-card-b { padding: 16px 0 0; }
.s-card-t { font-family: var(--s-h-font); font-variation-settings: var(--s-h-var); font-style: var(--s-h-style); font-size: 26px; line-height: 1.05; letter-spacing: -.02em; text-transform: var(--s-h-tt); }
.site[data-style="editorial"] .s-card-t { font-size: 32px; }
.s-card-d { font-size: 15px; color: var(--s-dim); }
.s-card-f { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--s-line); }
.s-card-p { font-size: 15px; color: var(--s-dim); }
.s-card-p b { font-size: 21px; color: var(--s-fg); font-weight: 760; }
.site[data-style="bold"][data-dark="true"] .s-card-p b { color: #111111; }
.s-arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #FFFFFF; font-weight: 700; transition: border-radius .6s; }
.site[data-style="bold"] .s-arrow, .site[data-style="editorial"] .s-arrow { border-radius: 0; }
.site[data-style="bold"] .s-arrow { background: #111111; }
.s-strip { margin: 0 56px 40px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-radius: var(--s-r); background: #15171A; color: #FFFFFF; font-weight: 600; font-size: 19px; transition: border-radius .6s; }
.s-strip .s-btn { background: #FFFFFF; color: #15171A; }
.s-foot { padding: 0 56px 34px; font-size: 13px; color: var(--s-dim); }

/* breakpoints of the mini site, driven by the window width in the scene */
.site[data-bp="md"] .s-top { min-height: 580px; }
.site[data-bp="md"] .s-h1 { font-size: calc(var(--s-h-size) * .8); }
.site[data-bp="md"] .s-book { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site[data-bp="md"] .s-book-btn { grid-column: 1 / -1; }
.site[data-bp="md"] .s-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site[data-bp="md"] .s-card:last-child { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.site[data-bp="md"] .s-card:last-child .s-cimg { aspect-ratio: auto; min-height: 100%; }
.site[data-bp="sm"] .s-links, .site[data-bp="sm"] .s-cta { display: none; }
.site[data-bp="sm"] .s-burger { display: grid; }
.site[data-bp="sm"] .s-nav { padding: 20px 22px; }
.site[data-bp="sm"] .s-logo { font-size: 17px; letter-spacing: .26em; }
.site[data-bp="sm"] .s-top { min-height: 540px; margin: 0; border-radius: 0; border: 0; box-shadow: none; }
.site[data-bp="sm"] .s-hero { padding: 0 22px 26px; gap: 22px; }
.site[data-bp="sm"] .s-h1 { font-size: calc(var(--s-h-size) * .48); margin-bottom: 14px; }
.site[data-bp="sm"] .s-p { font-size: 16px; }
.site[data-bp="sm"] .s-book { grid-template-columns: 1fr 1fr; }
.site[data-bp="sm"] .s-bf:nth-child(3) { display: none; }
.site[data-bp="sm"] .s-bf:nth-child(2) { border-right: 0; }
.site[data-bp="sm"] .s-book-btn { grid-column: 1 / -1; }
.site[data-bp="sm"] .s-feats { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 28px 22px 0; }
.site[data-bp="sm"] .s-sec { padding: 32px 22px 36px; }
.site[data-bp="sm"] .s-h2 { font-size: 34px; }
.site[data-bp="sm"] .s-all { display: none; }
.site[data-bp="sm"] .s-cards { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.site[data-bp="sm"] .s-strip { margin: 0 22px 28px; font-size: 17px; }
.site[data-bp="sm"] .s-foot { padding: 0 22px 28px; }
.site.is-intro .s-hero-text > *, .site.is-intro .s-book, .site.is-intro .s-card, .site.is-intro .s-feat { animation: siteIn 1s var(--ease-out) both; }
.site.is-intro .s-hero-text > *:nth-child(2) { animation-delay: .07s; }
.site.is-intro .s-hero-text > *:nth-child(3) { animation-delay: .14s; }
.site.is-intro .s-book { animation-delay: .24s; }
.site.is-intro .s-feat:nth-child(2) { animation-delay: .06s; }
.site.is-intro .s-feat:nth-child(3) { animation-delay: .12s; }
.site.is-intro .s-card:nth-child(2) { animation-delay: .08s; }
.site.is-intro .s-card:nth-child(3) { animation-delay: .16s; }
.site.is-intro .s-scene { animation: sceneIn 1.6s var(--ease-out) both; }
@keyframes siteIn { from { opacity: 0; transform: translateY(30px); } }
@keyframes sceneIn { from { transform: scale(1.12); } }

/* the landscape: moods, drifting layers, mist, stars and chimney smoke */
.mood-dusk { --sc-sky1: color-mix(in oklab, var(--acc) 34%, #0A1230); --sc-sky2: color-mix(in oklab, var(--acc) 16%, #7A6C98); --sc-sky3: color-mix(in oklab, var(--acc) 6%, #F8A877); --sc-sun: #FFE1B4; --sc-r1a: color-mix(in oklab, var(--acc) 16%, #A6A7BE); --sc-r1b: color-mix(in oklab, var(--acc) 22%, #7D819E); --sc-r2a: color-mix(in oklab, var(--acc) 30%, #626987); --sc-r2b: color-mix(in oklab, var(--acc) 36%, #474D68); --sc-r3a: color-mix(in oklab, var(--acc) 46%, #363C55); --sc-r3b: color-mix(in oklab, var(--acc) 52%, #232839); --sc-forest: color-mix(in oklab, var(--acc) 38%, #0B0F17); --sc-mist: #F8E3D6; --sc-rim: #FFE6CC; --sc-win: #FFC56E; --sc-star: .7; }
.mood-day { --sc-sky1: color-mix(in oklab, var(--acc) 14%, #5D9DD3); --sc-sky2: color-mix(in oklab, var(--acc) 8%, #B4D7EE); --sc-sky3: #F5F1E6; --sc-sun: #FFF7DD; --sc-r1a: color-mix(in oklab, var(--acc) 10%, #C5D3E2); --sc-r1b: color-mix(in oklab, var(--acc) 14%, #A9BCCF); --sc-r2a: color-mix(in oklab, var(--acc) 26%, #8CA3B5); --sc-r2b: color-mix(in oklab, var(--acc) 30%, #6F889B); --sc-r3a: color-mix(in oklab, var(--acc) 55%, #557466); --sc-r3b: color-mix(in oklab, var(--acc) 60%, #3D584B); --sc-forest: color-mix(in oklab, var(--acc) 55%, #18261F); --sc-mist: #FFFFFF; --sc-rim: #FFFFFF; --sc-win: #FFE3AA; --sc-star: 0; }
.mood-gold { --sc-sky1: color-mix(in oklab, var(--acc) 16%, #D9805A); --sc-sky2: color-mix(in oklab, var(--acc) 8%, #F2B486); --sc-sky3: #FCE6C8; --sc-sun: #FFF3DA; --sc-r1a: color-mix(in oklab, var(--acc) 12%, #D3A497); --sc-r1b: color-mix(in oklab, var(--acc) 16%, #B98A85); --sc-r2a: color-mix(in oklab, var(--acc) 22%, #946B74); --sc-r2b: color-mix(in oklab, var(--acc) 26%, #775464); --sc-r3a: color-mix(in oklab, var(--acc) 36%, #554050); --sc-r3b: color-mix(in oklab, var(--acc) 40%, #3C2D3B); --sc-forest: color-mix(in oklab, var(--acc) 30%, #1E1419); --sc-mist: #FFEBD8; --sc-rim: #FFF0DE; --sc-win: #FFD08A; --sc-star: 0; }
.mood-night { --sc-sky1: color-mix(in oklab, var(--acc) 22%, #04060F); --sc-sky2: color-mix(in oklab, var(--acc) 24%, #121934); --sc-sky3: color-mix(in oklab, var(--acc) 20%, #2B3459); --sc-sun: #EEF1FF; --sc-r1a: color-mix(in oklab, var(--acc) 18%, #3A4268); --sc-r1b: color-mix(in oklab, var(--acc) 20%, #2B3252); --sc-r2a: color-mix(in oklab, var(--acc) 22%, #252C49); --sc-r2b: color-mix(in oklab, var(--acc) 24%, #1A2038); --sc-r3a: color-mix(in oklab, var(--acc) 26%, #151A2E); --sc-r3b: color-mix(in oklab, var(--acc) 28%, #0E1222); --sc-forest: #05070D; --sc-mist: #A7B2E0; --sc-rim: #DDE3FF; --sc-win: #FFC56E; --sc-star: 1; }
.sc-stars circle { fill: #FFFFFF; opacity: calc(var(--sc-star) * var(--o, .6)); }
.sc-stars .tw { animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes twinkle { 50% { opacity: calc(var(--sc-star) * .15); } }
.sc-l { animation: drift var(--dur, 36s) ease-in-out infinite alternate; }
.sc-l1 { --dx: 14px; --dur: 44s; }
.sc-l2 { --dx: 26px; --dur: 38s; }
.sc-l3 { --dx: 42px; --dur: 32s; }
.sc-l4 { --dx: 64px; --dur: 28s; }
@keyframes drift { from { transform: translateX(calc(var(--dx) * -1)); } to { transform: translateX(var(--dx)); } }
.sc-mist { animation: mist var(--dur, 30s) ease-in-out infinite alternate; }
.sc-m1 { --dur: 34s; }
.sc-m2 { --dur: 26s; animation-direction: alternate-reverse; }
@keyframes mist { from { transform: translateX(-140px); } to { transform: translateX(140px); } }
.sc-sunb { animation: sunb 9s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes sunb { 50% { transform: scale(1.06); opacity: .85; } }
.sc-smoke circle { fill: #FFFFFF; opacity: 0; animation: smoke 5.4s ease-out infinite; animation-delay: var(--dl, 0s); transform-box: fill-box; transform-origin: center; }
@keyframes smoke { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 20% { opacity: .2; } 100% { opacity: 0; transform: translate(40px, -130px) scale(3); } }
.is-paused .sc *, .is-paused .sc { animation-play-state: paused !important; }

/* ===== 02 apps ===== */
.app-grid { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 4.4vw, 72px); align-items: center; }
.phone-col { position: relative; display: grid; place-items: center; }
.phone-col::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(231, 163, 99, .22), rgba(231, 163, 99, 0) 65%); pointer-events: none; }
.phone { position: relative; width: 304px; height: 640px; padding: 10px; border-radius: 52px; background: linear-gradient(145deg, #3A3633, #121010 45%, #2A2725); box-shadow: inset 0 0 0 1.5px #5A5551, inset 0 0 0 4px #0A0909, 0 70px 110px -50px rgba(0, 0, 0, .95), 0 0 0 1px #050404; }
.phone::before { content: ""; position: absolute; left: -3px; top: 130px; width: 3px; height: 62px; border-radius: 2px 0 0 2px; background: #3A3633; box-shadow: 0 80px 0 #3A3633; }
.ph-screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--z-bg); color: var(--z-ink); font-family: var(--font-body); font-size: 15px; line-height: 1.35; isolation: isolate; }
.ph-status { position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: 50px; background: linear-gradient(to bottom, var(--z-bg) 62%, rgba(18, 13, 11, 0)); padding: 6px 24px 0 30px; display: flex; justify-content: space-between; align-items: center; font-weight: 650; font-size: 14px; font-variant-numeric: tabular-nums; pointer-events: none; color: var(--z-ink); }
.ph-ind { display: flex; align-items: center; gap: 6px; }
.ph-ind svg { width: 17px; height: 11px; fill: var(--z-ink); }
.batt { position: relative; display: block; width: 24px; height: 12px; border: 1.5px solid rgba(246, 236, 226, .5); border-radius: 4px; padding: 1.5px; }
.batt i { display: block; width: 72%; height: 100%; border-radius: 2px; background: var(--z-ink); }
.ph-island { position: absolute; z-index: 7; top: 10px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000000; }
.ph-notif { position: absolute; z-index: 8; top: 8px; left: 8px; right: 8px; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 22px; background: rgba(44, 36, 31, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08); transform: translateY(-140%); transition: transform .6s var(--ease-out); }
.ph-notif.is-on { transform: translateY(0); }
.ph-notif-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--z-acc); color: var(--z-acc-ink); font-weight: 850; }
.ph-notif-body { min-width: 0; flex: 1; }
.ph-notif-body b { font-size: 13.5px; }
.ph-notif-body p { font-size: 13px; color: var(--z-ink); line-height: 1.3; opacity: .9; }
.ph-notif-time { align-self: start; font-size: 11.5px; color: var(--z-dim); }
.ph-views { position: absolute; inset: 0; }
.ph-view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 50px 0 160px; scrollbar-width: none; transition: transform .7s var(--ease-out), opacity .45s; }
.ph-view::-webkit-scrollbar { display: none; }
.ph-track { transform: translateX(104%); padding: 58px 20px 40px; background: radial-gradient(120% 60% at 50% 30%, #2A1D15, var(--z-bg) 70%); }
.ph-screen.is-tracking .ph-menu { transform: translateX(-28%); opacity: 0; }
.ph-screen.is-tracking .ph-track { transform: translateX(0); }
.ph-screen.is-tracking .ph-tabs { transform: translateY(140%); }

.ph-head { display: flex; align-items: center; gap: 10px; padding: 8px 18px 14px; }
.ph-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #F0B57A, #B8723D); color: var(--z-acc-ink); font-weight: 800; font-size: 14px; }
.ph-hi { flex: 1; min-width: 0; display: grid; }
.ph-hello { font-size: 12px; color: var(--z-dim); }
.ph-name { font-size: 16px; font-weight: 750; }
.ph-bell { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--z-card); }
.ph-bell svg { width: 17px; height: 17px; fill: none; stroke: var(--z-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-promo { position: relative; margin: 0 14px 16px; height: 136px; padding: 16px; border-radius: 24px; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, #F2B577 0%, #C6773F 38%, #5A3020 80%); color: #FFF7EE; }
.ph-promo-chip { display: inline-block; padding: 4px 9px; border-radius: 999px; background: rgba(26, 17, 10, .35); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.ph-promo-t { margin-top: 10px; font-size: 19px; font-weight: 800; font-stretch: 108%; line-height: 1.1; max-width: 9.5em; }
.ph-promo-d { margin-top: 4px; font-size: 12px; opacity: .85; }
.ph-promo-img { position: absolute; right: -6px; bottom: -14px; width: 120px; height: 120px; transform: rotate(10deg); filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .4)); }
.ph-promo-img svg { width: 100%; height: 100%; }
.ph-cats { display: flex; gap: 6px; padding: 0 14px 14px; overflow: hidden; }
.ph-cat { flex: none; padding: 8px 13px; border-radius: 999px; background: var(--z-card); color: var(--z-dim); font-size: 12.5px; font-weight: 650; }
.ph-cat.is-on { background: var(--z-ink); color: var(--z-bg); }
.ph-list { list-style: none; margin: 0; padding: 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-tile { display: grid; gap: 7px; padding: 8px 8px 10px; border-radius: 22px; background: var(--z-card); box-shadow: inset 0 0 0 1px var(--z-line); transition: transform .3s var(--ease-out); }
.ph-tile.is-tap { transform: scale(.95); }
.pt-img { position: relative; height: 90px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 60%, color-mix(in oklab, var(--g, #B07A4E) 70%, transparent), color-mix(in oklab, var(--g, #B07A4E) 18%, var(--z-card2)) 80%); overflow: hidden; }
.pt-img svg { width: 70px; height: 70px; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .35)); }
.pt-tx { display: grid; gap: 1px; padding: 0 4px; }
.pt-t { font-weight: 720; font-size: 13.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-d { font-size: 11px; color: var(--z-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-row { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 0 4px; }
.pt-price { font-weight: 760; font-size: 14px; font-variant-numeric: tabular-nums; }
.pt-add { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--z-acc); color: var(--z-acc-ink); font-size: 17px; font-weight: 800; line-height: 1; }
.ph-tabs { position: absolute; z-index: 4; left: 14px; right: 14px; bottom: 16px; height: 58px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; border-radius: 22px; background: rgba(36, 28, 23, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .6s var(--ease-out); }
.ph-tabs span { display: grid; place-items: center; gap: 3px; color: var(--z-dim); }
.ph-tabs svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph-tabs .is-on { color: var(--z-acc); }
.ph-tabs .is-on::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--z-acc); }
.ph-cartbar { position: absolute; z-index: 5; left: 14px; right: 14px; bottom: 84px; height: 54px; padding: 0 8px 0 8px; display: flex; align-items: center; gap: 10px; border-radius: 18px; background: var(--z-acc); color: var(--z-acc-ink); font-weight: 720; font-size: 14px; box-shadow: 0 14px 30px -12px rgba(231, 163, 99, .6); transform: translateY(180%); opacity: 0; transition: transform .55s var(--ease-out), opacity .3s; }
.ph-cartbar.is-on { transform: translateY(0); opacity: 1; }
.ph-cartbar.is-bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 30% { transform: translateY(0) scale(1.05); } }
.ph-cart-n { min-width: 38px; height: 38px; padding: 0 8px; border-radius: 12px; background: var(--z-acc-ink); color: var(--z-acc); display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.ph-cart-sum { margin-left: auto; padding-right: 10px; font-variant-numeric: tabular-nums; }
.ph-scrim { position: absolute; z-index: 9; inset: 0; background: rgba(5, 3, 2, .55); opacity: 0; transition: opacity .45s; }
.ph-screen.is-sheet .ph-scrim { opacity: 1; }
.ph-sheet { position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; max-height: 90%; display: flex; flex-direction: column; border-radius: 30px 30px 0 0; background: var(--z-surface); transform: translateY(105%); transition: transform .65s var(--ease-out); box-shadow: 0 -20px 50px -10px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06); }
.ph-screen.is-sheet .ph-sheet { transform: none; }
.ph-grip { position: absolute; z-index: 2; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(246, 236, 226, .3); }
.ph-sheet-body { padding: 0 18px 26px; overflow-y: auto; scrollbar-width: none; }
.sh-hero { position: relative; height: 170px; margin: 0 -18px 14px; display: grid; place-items: center; border-radius: 30px 30px 0 0; background: radial-gradient(60% 75% at 50% 62%, color-mix(in oklab, var(--g, #B07A4E) 75%, transparent), var(--z-surface) 78%); overflow: hidden; }
.sh-hero .sh-img { width: 124px; height: 124px; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .45)); animation: float 4s ease-in-out infinite; }
.sh-hero .sh-img svg { width: 100%; height: 100%; }
@keyframes float { 50% { transform: translateY(-6px) rotate(-2deg); } }
.steam { position: absolute; left: 50%; top: 18px; width: 60px; height: 60px; margin-left: -30px; pointer-events: none; }
.steam path { fill: none; stroke: rgba(255, 245, 235, .5); stroke-width: 2.4; stroke-linecap: round; opacity: 0; animation: steam 3s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: .9s; }
.steam path:nth-child(3) { animation-delay: 1.8s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(14px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-16px); } }
.sh-t { font-size: 22px; font-weight: 800; font-stretch: 108%; line-height: 1.1; }
.sh-d { font-size: 13px; color: var(--z-dim); margin-top: 3px; }
.sh-group { margin-top: 14px; }
.sh-label { font-size: 12px; font-weight: 700; color: var(--z-dim); margin-bottom: 8px; letter-spacing: .02em; }
.sh-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-opt { padding: 9px 12px; border-radius: 13px; background: var(--z-card); color: var(--z-ink); font-weight: 650; font-size: 12.5px; box-shadow: inset 0 0 0 1px var(--z-line); transition: background-color .2s, color .2s, box-shadow .2s; }
.sh-opt small { font-weight: 500; color: var(--z-dim); margin-left: 3px; }
.sh-opt[data-on="true"] { background: var(--z-acc); color: var(--z-acc-ink); box-shadow: none; }
.sh-opt[data-on="true"] small { color: rgba(26, 17, 10, .65); }
.sh-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sh-size { display: grid; justify-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 15px; background: var(--z-card); box-shadow: inset 0 0 0 1px var(--z-line); font-size: 12px; font-weight: 700; transition: background-color .2s, box-shadow .2s; }
.sh-size svg { height: 22px; width: auto; fill: none; stroke: var(--z-dim); stroke-width: 1.8; stroke-linejoin: round; }
.sh-size small { color: var(--z-dim); font-weight: 500; font-size: 11px; }
.sh-size[data-on="true"] { background: color-mix(in oklab, var(--z-acc) 20%, var(--z-card)); box-shadow: inset 0 0 0 1.5px var(--z-acc); }
.sh-size[data-on="true"] svg { stroke: var(--z-acc); }
.sh-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 16px; background: var(--z-card); }
.stepper > span { width: 34px; height: 34px; border-radius: 12px; background: var(--z-card2); font-weight: 700; font-size: 18px; display: grid; place-items: center; }
.stepper b { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.sh-add, .sh-order { flex: 1; min-width: 0; white-space: nowrap; height: 52px; border-radius: 17px; background: var(--z-acc); color: var(--z-acc-ink); font-weight: 780; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden; box-shadow: 0 12px 26px -12px rgba(231, 163, 99, .7); }
.sh-order.is-busy::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(255, 255, 255, .28); transform-origin: left; animation: fill .7s var(--ease-io) forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sh-h { font-size: 21px; font-weight: 800; font-stretch: 108%; margin: 26px 0 14px; }
.co-list { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 10px; }
.co-list li { display: flex; gap: 11px; align-items: center; font-size: 14px; padding: 8px; border-radius: 16px; background: var(--z-card); }
.co-thumb { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, color-mix(in oklab, var(--g, #B07A4E) 70%, transparent), var(--z-card2) 85%); }
.co-thumb svg { width: 36px; height: 36px; }
.co-list span { flex: 1; min-width: 0; font-weight: 650; }
.co-list small { display: block; color: var(--z-dim); font-size: 11.5px; font-weight: 500; }
.co-list b { font-variant-numeric: tabular-nums; padding-right: 4px; }
.co-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 16px; padding: 14px 2px 0; margin-top: 12px; border-top: 1px solid var(--z-line); }
.fly { position: absolute; z-index: 20; left: 0; top: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--z-card2); pointer-events: none; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .6); }
.fly svg { width: 34px; height: 34px; }
.tr-no { font-size: 13px; color: var(--z-dim); text-align: center; }
.tr-title { font-size: 24px; font-weight: 820; font-stretch: 110%; line-height: 1.1; margin: 4px 0 6px; letter-spacing: -.01em; text-align: center; }
.tr-ring { position: relative; width: 176px; height: 176px; margin: 10px auto 16px; }
.tr-ring svg.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.tr-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.tr-ring .bg { stroke: rgba(246, 236, 226, .08); }
.tr-ring .fg { stroke: url(#ringGrad); stroke-dasharray: 471; stroke-dashoffset: 471; transition: stroke-dashoffset 1.2s var(--ease-out); filter: drop-shadow(0 0 6px rgba(231, 163, 99, .6)); }
.tr-ring .ico { position: absolute; inset: 0; display: grid; place-items: center; }
.tr-ring .ico svg { width: 84px; height: 84px; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .5)); }
.tr-ring .steam { top: 6px; }
.tr-eta { display: table; margin: 0 auto 18px; padding: 6px 12px; border-radius: 999px; background: var(--z-card); font-size: 12.5px; color: var(--z-ink); }
.tr-steps { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 14px; border-radius: 20px; background: var(--z-surface); }
.tr-steps li { position: relative; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--z-dim); transition: color .4s; }
.tr-steps li + li::before { content: ""; position: absolute; left: 11px; top: -14px; width: 2px; height: 14px; background: var(--z-line); }
.tr-steps li i { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(246, 236, 226, .18); display: grid; place-items: center; transition: background-color .4s, border-color .4s; }
.tr-steps li.is-done { color: var(--z-ink); font-weight: 650; }
.tr-steps li.is-done i { background: var(--z-acc); border-color: var(--z-acc); }
.tr-steps li.is-done i::after { content: ""; width: 8px; height: 5px; border-left: 2px solid var(--z-acc-ink); border-bottom: 2px solid var(--z-acc-ink); transform: rotate(-45deg) translate(1px, -1px); }
.tr-steps li.is-now { color: var(--z-ink); }
.tr-steps li.is-now i { border-color: var(--z-acc); box-shadow: 0 0 0 4px rgba(231, 163, 99, .2); animation: nowPulse 1.4s infinite; }
@keyframes nowPulse { 50% { box-shadow: 0 0 0 8px rgba(231, 163, 99, .04); } }
.ph-homebar { position: absolute; z-index: 12; bottom: 7px; left: 50%; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: var(--z-ink); opacity: .8; pointer-events: none; }

/* staff panel */
.panel { min-width: 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); border-radius: 22px; overflow: hidden; background: var(--pn-bg); color: var(--pn-ink); font-family: var(--font-body); box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 60px 110px -60px rgba(0, 0, 0, .9); }
.pn-side { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 18px; padding: 16px 0; background: #17120F; }
.pn-logo { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--z-acc); color: var(--z-acc-ink); font-weight: 850; font-size: 15px; }
.pn-nav { display: grid; align-content: start; gap: 8px; }
.pn-nav span { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #8C7D72; }
.pn-nav span.is-on { background: rgba(231, 163, 99, .16); color: var(--z-acc); }
.pn-nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pn-me { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #3B2F28; color: #F6ECE2; font-size: 12px; font-weight: 700; }
.pn-main { min-width: 0; padding: 18px 18px 18px 20px; }
.pn-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pn-title { display: flex; align-items: baseline; gap: 10px; }
.pn-title b { font-size: 21px; font-weight: 800; font-stretch: 106%; letter-spacing: -.01em; }
.pn-date { font-size: 13px; color: var(--pn-dim); }
.pn-right { display: flex; align-items: center; gap: 8px; }
.pn-live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(35, 153, 106, .12); color: var(--pn-ready); font-size: 12px; font-weight: 700; }
.pn-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .2; } }
.pn-demo { font-size: 12px; color: var(--pn-dim); padding: 4px 10px; border-radius: 999px; border: 1px dashed #BDB7AF; }
.pn-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 10px; margin-bottom: 12px; }
.pn-stat { display: grid; gap: 3px; align-content: start; padding: 11px 13px; border-radius: 14px; background: var(--pn-card); box-shadow: 0 1px 0 rgba(0, 0, 0, .04), inset 0 0 0 1px var(--pn-line); min-width: 0; }
.pn-stat span { font-size: 12px; color: var(--pn-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-stat b { font-size: 22px; font-weight: 800; font-stretch: 106%; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }
.pn-stat b.is-tick { animation: tick .6s var(--ease-out); }
@keyframes tick { 30% { color: var(--pn-ready); transform: translateY(-2px); } }
.pn-chart svg { width: 100%; height: 34px; display: block; }
.pn-chart rect { fill: #E8D9CB; }
.pn-chart rect.is-now { fill: var(--z-acc); }
.pn-board { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pn-col { min-width: 0; min-height: 320px; padding: 10px; border-radius: 16px; background: var(--pn-col); }
.pn-col-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-size: 13px; font-weight: 750; }
.pn-col-h::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pn-new); box-shadow: 0 0 0 3px rgba(59, 111, 224, .15); }
.pn-col[data-col="prep"] .pn-col-h::before { background: var(--pn-prep); box-shadow: 0 0 0 3px rgba(224, 142, 31, .15); }
.pn-col[data-col="ready"] .pn-col-h::before { background: var(--pn-ready); box-shadow: 0 0 0 3px rgba(35, 153, 106, .15); }
.pn-col-h b { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--pn-card); text-align: center; font-weight: 700; font-size: 12px; color: var(--pn-ink-2); font-variant-numeric: tabular-nums; }
.pn-list { display: grid; gap: 8px; align-content: start; min-height: 80px; }
.pn-card { padding: 11px 12px; border-radius: 14px; background: var(--pn-card); box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 16px -10px rgba(0, 0, 0, .18); font-size: 13px; line-height: 1.35; }
.pn-card.is-mine { box-shadow: 0 0 0 2px var(--z-acc), 0 10px 24px -12px rgba(231, 163, 99, .7); }
.pn-card.is-in { animation: cardIn 1s var(--ease-out); }
@keyframes cardIn { 0% { transform: translateY(-14px) scale(.94); box-shadow: 0 0 0 3px var(--pn-new); } 60% { box-shadow: 0 0 0 3px rgba(59, 111, 224, .3); } }
.pn-card header { display: flex; align-items: center; gap: 8px; }
.pn-card header b { font-variant-numeric: tabular-nums; }
.pn-ava { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--h, 30) 55% 88%); color: hsl(var(--h, 30) 45% 32%); font-size: 10.5px; font-weight: 800; }
.pn-card header time { margin-left: auto; padding: 2px 7px; border-radius: 999px; background: var(--pn-col); color: var(--pn-dim); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pn-tag { font-size: 10.5px; font-weight: 800; color: var(--z-acc-ink); background: var(--z-acc); padding: 1px 7px; border-radius: 6px; }
.pn-card ul { list-style: none; margin: 8px 0 10px; padding: 0; color: var(--pn-ink-2); }
.pn-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 750; font-variant-numeric: tabular-nums; }
.pn-act { border-radius: 10px; padding: 7px 12px; background: #17120F; color: #FFFFFF; font-weight: 700; font-size: 12px; white-space: nowrap; }
.pn-col[data-col="ready"] .pn-act { background: var(--pn-ready); }
.pn-empty { font-size: 12px; color: var(--pn-dim); padding: 14px 6px; text-align: center; border: 1.5px dashed #CFC9C1; border-radius: 12px; }

/* ===== 03 automation ===== */
.flow-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: 14px; }
.flow-canvas { position: relative; height: 470px; border-radius: 20px; background-color: var(--ink-2); background-image: radial-gradient(var(--line-2) 1px, transparent 1.3px); background-size: 22px 22px; border: 1px solid var(--line); overflow: hidden; }
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-svg .edge { fill: none; stroke: rgba(82, 218, 203, .32); stroke-width: 2; }
.flow-svg .edge-hot { fill: none; stroke: var(--amber); stroke-width: 2.2; opacity: 0; transition: opacity .4s; }
.flow-svg .edge-hot.is-on { opacity: .9; }
.flow-svg .port { fill: var(--ink-2); stroke: var(--line-2); stroke-width: 2; }
.flow-svg .pkt { fill: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 154, 77, .9)); }
.flow-nodes { position: absolute; inset: 0; }
.flow-node { position: absolute; left: 0; top: 0; width: var(--nw, 196px); padding: 11px 12px 12px; border-radius: 15px; background: var(--ink-3); border: 1px solid var(--line-2); box-shadow: 0 18px 34px -20px rgba(0, 0, 0, .9); transition: border-color .3s, box-shadow .3s; }
.flow-node.is-run { border-color: var(--amber); box-shadow: 0 0 0 5px rgba(255, 154, 77, .15), 0 18px 34px -20px rgba(0, 0, 0, .9); }
.fn-top { display: flex; align-items: center; gap: 10px; }
.fn-ico { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--line-2); color: var(--teal); }
.fn-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fn-ico.is-ai { color: var(--amber); }
.fn-tx { min-width: 0; flex: 1; }
.fn-t { font-weight: 650; font-size: .86rem; line-height: 1.2; }
.fn-s { font-size: .74rem; color: var(--dim); line-height: 1.25; margin-top: 1px; }
.fn-st { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); align-self: start; }
.flow-node.is-run .fn-st { border-color: var(--amber); border-right-color: transparent; animation: spin .7s linear infinite; }
.flow-node.is-done .fn-st { border-color: var(--teal); background: var(--teal); }
.fn-out { margin-top: 9px; min-height: 26px; padding: 5px 8px; border-radius: 8px; background: var(--ink); font-family: var(--font-time); font-size: .7rem; line-height: 1.45; color: var(--faint); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: color .3s; }
.flow-node.is-done .fn-out { color: var(--teal); }
.flow-side { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 10px; min-width: 0; }
.flow-count { display: flex; align-items: baseline; gap: 10px; padding: 16px 18px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); }
.flow-count b { font-family: var(--font-display); font-weight: 820; font-stretch: 115%; font-size: 3rem; line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; }
.flow-count span { color: var(--dim); }
.flow-note { font-size: .82rem; color: var(--faint); padding: 0 4px; }
.flow-log { list-style: none; margin: 0; padding: 12px 14px; min-height: 0; max-height: 330px; overflow: hidden; border-radius: 16px; background: var(--code-bg); border: 1px solid var(--line); font-family: var(--font-time); font-size: .72rem; line-height: 1.65; color: var(--dim); display: flex; flex-direction: column; justify-content: flex-end; }
.flow-log li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; animation: logIn .4s var(--ease-out); }
.flow-log time { color: var(--faint); }
.flow-log li.is-hi { color: var(--bone); }
.flow-log li.is-ok span { color: var(--teal); }
@keyframes logIn { from { opacity: 0; transform: translateX(-6px); } }

/* ===== 04 AI ===== */
.ai-mode { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .84rem; color: var(--dim); }
.ai-mode i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.ai-mode.is-live i { background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: blink 1.6s infinite; }
.ai-mode.is-live { color: var(--bone); }
.ai-grid { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6.5vw, 120px); align-items: start; }
.kb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.kb-head b { font-size: .95rem; }
.kb-head span { font-size: .8rem; color: var(--faint); }
.kb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kb-card { position: relative; padding: 12px 14px 13px; border-radius: 13px; background: var(--ink-2); border: 1px solid var(--line); transition: border-color .4s, background-color .4s; overflow: hidden; }
.kb-n { font-family: var(--font-time); font-size: .7rem; color: var(--faint); }
.kb-t { font-weight: 650; font-size: .88rem; margin: 2px 0 4px; }
.kb-b { font-size: .8rem; line-height: 1.45; color: var(--dim); }
.kb-card.is-used { border-color: var(--amber); background: #1D2421; }
.kb-card.is-used .kb-n { color: var(--amber); }
.kb-list.is-scan .kb-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(82, 218, 203, 0) 30%, rgba(82, 218, 203, .18) 50%, rgba(82, 218, 203, 0) 70%); background-size: 260% 100%; animation: scan 1.05s var(--ease-io) infinite; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes scan { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.chat { position: relative; z-index: 1; display: flex; flex-direction: column; height: 580px; border-radius: 24px; overflow: hidden; background: var(--chat-bg); color: var(--chat-ink); box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 60px 110px -60px rgba(0, 0, 0, .9); font-family: var(--font-body); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--chat-line); }
.chat-head b { display: block; font-size: .95rem; }
.chat-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--halny); }
.chat-av svg { width: 22px; height: 22px; fill: #FFFFFF; }
.chat-status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--chat-dim); }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--pn-ready); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: .92rem; line-height: 1.45; animation: msgIn .5s var(--ease-out); white-space: pre-wrap; overflow-wrap: anywhere; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.msg-bot { align-self: flex-start; background: var(--chat-bot); border-bottom-left-radius: 6px; }
.msg-user { align-self: flex-end; background: var(--halny); color: #FFFFFF; border-bottom-right-radius: 6px; }
.msg-src { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; white-space: normal; }
.msg-src span { font-family: var(--font-time); font-size: .68rem; padding: 2px 7px; border-radius: 6px; background: rgba(255, 154, 77, .2); color: var(--chat-src); }
.msg-src .none { background: rgba(0, 0, 0, .06); color: var(--chat-dim); }
.msg-think { display: inline-flex; align-items: center; gap: 9px; color: var(--chat-dim); }
.msg-think i { display: inline-flex; gap: 4px; }
.msg-think i::before, .msg-think i::after, .msg-think i span { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dots 1.1s infinite; }
.msg-think i span { animation-delay: .15s; }
.msg-think i::after { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.msg-note { align-self: center; font-size: .75rem; color: var(--chat-dim); text-align: center; max-width: 90%; }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat-suggest button { border: 1px solid var(--chat-line); background: var(--chat-in); color: var(--chat-ink); border-radius: 999px; padding: 8px 12px; font-family: var(--font-body); font-weight: 500; font-size: .8rem; cursor: pointer; transition: border-color .2s; }
.chat-suggest button:hover { border-color: var(--halny); }
.chat-suggest button[disabled] { opacity: .45; cursor: default; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--chat-line); }
.chat-form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--chat-line); background: var(--chat-in); color: var(--chat-ink); font-size: .95rem; color-scheme: light; }
.chat-form input:focus { outline: 2px solid var(--halny); outline-offset: 0; border-color: transparent; }
.chat-send { flex: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--halny); color: #FFFFFF; display: grid; place-items: center; cursor: pointer; }
.chat-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chat-send[disabled] { opacity: .45; cursor: default; }
.chat-send.is-press { transform: scale(.88); transition: transform .12s; }
.chat-form input.is-auto { border-color: var(--halny); }
.chat-stop { flex: none; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--chat-line); background: var(--chat-in); color: var(--chat-ink); font-weight: 600; cursor: pointer; }
.ai-beams { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ai-beams .beam { fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(255, 154, 77, .8)); }
.ai-beams .beam-dot { fill: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 154, 77, 1)); }
.ai-beams .beam-end { fill: var(--amber); }

/* ===== savings ===== */
.savings { position: relative; padding-block: clamp(72px, 11vh, 128px) clamp(64px, 9.5vh, 110px); border-top: 1px solid var(--line); }
.sv-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(28px, 4vh, 44px); }
.sv-head h2 { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800; font-stretch: 114%; line-height: 1; letter-spacing: -.02em; }
.sv-head p { color: var(--dim); max-width: 52ch; }
.sv-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; }
.sv-left { display: grid; gap: 22px; align-content: start; padding: clamp(18px, 2.6vw, 30px); border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); }
.sv-mode { justify-self: start; }
.sv-inputs { display: grid; gap: 14px; }
.sv-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: .92rem; color: var(--dim); }
.sv-field output { flex: none; font-family: var(--font-time); color: var(--bone); font-variant-numeric: tabular-nums; }
.sv-out { display: grid; gap: 22px; align-content: start; padding: clamp(18px, 2.6vw, 30px); border-radius: 22px; background: linear-gradient(160deg, #13282B, var(--ink-2) 60%); border: 1px solid var(--line-2); }
.sv-big { display: grid; gap: 4px; }
.sv-big b, .sv-row b { font-family: var(--font-display); font-weight: 820; font-stretch: 118%; line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-big b { font-size: clamp(2.8rem, 6.4vw, 5.6rem); color: var(--amber); }
.sv-big span, .sv-row span { color: var(--dim); }
.sv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.sv-row div { display: grid; gap: 4px; align-content: start; }
.sv-row b { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--bone); }
.sv-bars { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.sv-bar { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: .86rem; }
.sv-bar-l { color: var(--dim); }
.sv-track { display: block; height: 12px; border-radius: 6px; background: var(--ink); overflow: hidden; }
.sv-track i { display: block; height: 100%; border-radius: 6px; background: var(--faint); transform-origin: left; transition: transform .7s var(--ease-out); }
.sv-bar.is-after .sv-track i { background: var(--teal); }
.sv-bar-v { font-family: var(--font-time); font-size: .78rem; color: var(--bone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-note { font-size: .82rem; color: var(--faint); }

.week-wrap { margin-top: clamp(48px, 7.5vh, 86px); }
.week-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 24px; }
.week-head h3 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 760; font-stretch: 110%; line-height: 1.05; letter-spacing: -.01em; }
.week-head p { color: var(--dim); max-width: 52ch; }
.week { position: relative; display: grid; gap: 7px; padding: clamp(14px, 2vw, 24px); border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); }
.wk-axis, .wk-row { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; align-items: center; }
.wk-ticks { position: relative; height: 16px; }
.wk-ticks i { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--font-time); font-style: normal; font-size: .66rem; color: var(--faint); white-space: nowrap; }
.wk-ticks i:first-child { transform: none; }
.wk-ticks i:last-child { transform: translateX(-100%); }
.wk-day { font-family: var(--font-time); font-size: .74rem; color: var(--dim); }
.wk-lanes { display: grid; gap: 3px; }
.wk-lane { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; }
.wk-lane i { height: 9px; border-radius: 2px; background: var(--ink-3); transition: background-color .35s, box-shadow .35s, transform .35s var(--ease-out); }
.wk-h i.on { background: rgba(255, 154, 77, .2); }
.wk-ai i.on { background: rgba(82, 218, 203, .14); }
.wk-h i.on.lit { background: var(--amber); }
.wk-ai i.lit { background: var(--teal); }
.wk-lane i.head { transform: scaleY(1.7); box-shadow: 0 0 12px 2px rgba(238, 230, 216, .55); background: var(--bone); transition: none; }
.wk-day { transition: color .3s; }
.wk-row.is-cur .wk-day { color: var(--amber); }
.wk-clock { font-family: var(--font-time); font-size: .7rem; color: var(--amber); white-space: nowrap; }
.lg b { min-width: 3.6em; display: inline-block; }
.wk-now { position: absolute; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--bone); box-shadow: 0 0 0 3px rgba(238, 230, 216, .15); pointer-events: none; }
.wk-now::before { content: ""; position: absolute; left: 50%; top: -5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--bone); animation: nowDot 1.8s infinite; }
@keyframes nowDot { 50% { box-shadow: 0 0 0 6px rgba(238, 230, 216, 0); transform: scale(1.15); } 0% { box-shadow: 0 0 0 0 rgba(238, 230, 216, .5); } }
.week-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 14px; }
.week-legend { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .88rem; color: var(--dim); }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg i { width: 14px; height: 9px; border-radius: 2px; background: var(--amber); }
.lg-ai i { background: var(--teal); }
.lg b { color: var(--bone); font-family: var(--font-time); font-weight: 500; font-size: .82rem; }
.week-now { font-size: .9rem; color: var(--bone); }

.benefits { list-style: none; margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.bn { display: grid; gap: 10px; align-content: start; padding: clamp(18px, 2.4vw, 28px); background: var(--ink); }
.bn-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-3); border: 1px solid var(--line-2); color: var(--teal); }
.bn-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.bn-clock .hand-m { transform-origin: 12px 12px; animation: spin 8s linear infinite; }
.bn h4 { font-size: 1.05rem; font-weight: 700; font-stretch: 106%; line-height: 1.25; }
.bn p { color: var(--dim); font-size: .92rem; }

/* ===== 05 custom ===== */
.cs-grid { display: grid; grid-template-columns: minmax(230px, 270px) minmax(0, 1fr) minmax(250px, 300px); gap: 16px; align-items: stretch; }
.cs-controls { display: grid; gap: 26px; align-content: start; }
.seg-wrap { display: flex; }
.cs-stage { position: relative; min-height: 600px; border-radius: 20px; background: radial-gradient(70% 70% at 50% 50%, #12282C, var(--ink-2) 75%); border: 1px solid var(--line); overflow: hidden; touch-action: pan-y; }
#cs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cs-nodes { position: absolute; inset: 0; }
.cs-node { position: absolute; left: 0; top: 0; padding: 8px 12px; border-radius: 12px; background: var(--ink); border: 1px solid var(--line-2); color: var(--bone); font-size: .8rem; font-weight: 600; line-height: 1.1; white-space: nowrap; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; transition: border-color .3s, opacity .45s, scale .55s var(--ease-out); will-change: transform; }
.cs-node:hover { border-color: var(--teal); }
.cs-node.is-core { padding: 13px 18px; border-radius: 15px; background: var(--amber); color: var(--amber-ink); border-color: transparent; font-size: .92rem; font-stretch: 112%; font-weight: 750; box-shadow: 0 0 0 8px rgba(255, 154, 77, .12), 0 0 40px rgba(255, 154, 77, .35); }
.cs-node.is-int { padding: 6px 9px; font-size: .72rem; color: var(--dim); border-style: dashed; }
.cs-node.is-born { scale: 0; opacity: 0; }
.cs-node.is-dying { scale: 0; opacity: 0; pointer-events: none; }
.cs-node.is-drag { cursor: grabbing; border-color: var(--bone); z-index: 3; }
.cs-spec { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); }
.cs-spec h4 { font-size: 1.1rem; font-weight: 700; font-stretch: 106%; }
.cs-sum { color: var(--dim); font-size: .88rem; }
.cs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; flex: 1; overflow: auto; max-height: 380px; }
.cs-list li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--line-2); font-size: .86rem; animation: logIn .5s var(--ease-out) both; }
.cs-list li b { font-weight: 650; color: var(--bone); }
.cs-list li span { color: var(--dim); font-size: .8rem; line-height: 1.4; }
.cs-list li.is-int { border-left-style: dashed; }

/* ===== end card ===== */
.endcard { position: relative; min-height: min(73svh, 730px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: calc(var(--top-h) + 3vh) 5vh; }
.end-line { font-family: var(--font-display); font-size: clamp(2rem, 3.8vw, 3.5rem); font-weight: 780; font-stretch: 112%; line-height: 1.04; letter-spacing: -.02em; max-width: min(19ch, 48%); text-wrap: balance; }

/* ===== contact ===== */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 36px 64px; align-items: start; padding-block: calc(var(--top-h) + 40px) clamp(64px, 9.5vh, 108px); border-top: 1px solid var(--line); }
.ct-info { display: grid; gap: 22px; align-content: start; }
.ct-info h2 { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800; font-stretch: 116%; line-height: 1; letter-spacing: -.02em; }
.ct-lede { color: var(--dim); max-width: 40ch; font-size: var(--fs-lg); line-height: 1.45; }
.ct-methods { margin: 8px 0 0; display: grid; border-top: 1px solid var(--line-2); }
.ct-methods[hidden] { display: none; }
.ct-row { position: relative; display: grid; gap: 4px; padding: 18px 0 18px 60px; border-bottom: 1px solid var(--line-2); }
.ct-row::before { content: ""; position: absolute; left: 0; top: 18px; width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--ink-3) var(--ico) center / 21px no-repeat; }
#ct-phone-row { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352DACB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
#ct-email-row { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352DACB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6.5h17v11h-17z'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E"); }
.ct-row dt { font-size: .82rem; color: var(--dim); }
.ct-row dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ct-val { font-family: var(--font-display); font-weight: 760; font-stretch: 112%; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.1; color: var(--bone); text-decoration: none; overflow-wrap: anywhere; user-select: all; }
a.ct-val[href]:hover { color: var(--amber); }
.ct-val.is-empty { display: inline-block; padding: 6px 12px; border: 1.5px dashed var(--line-2); border-radius: 10px; color: var(--faint); font-size: 1rem; font-weight: 500; font-stretch: 100%; font-family: var(--font-body); user-select: none; }
.ct-copy { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--dim); font-size: .8rem; font-weight: 600; cursor: pointer; transition: color .25s, border-color .25s; }
.ct-copy:hover { color: var(--bone); border-color: var(--bone); }

.cform-wrap { position: relative; min-width: 0; }
.cform { display: grid; gap: 18px; padding: clamp(18px, 3vw, 34px); border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); transition: opacity .4s; }
.cform.is-done { opacity: 0; visibility: hidden; }
.cf-title { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 740; font-stretch: 108%; line-height: 1.1; letter-spacing: -.01em; }
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field legend { font-size: .88rem; color: var(--bone); font-weight: 550; padding: 0; }
.field legend { margin-bottom: 10px; }
.field small { color: var(--faint); font-weight: 400; font-size: .8rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--ink); color: var(--bone); font-size: 1rem; line-height: 1.4;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 154, 77, .2); }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field-err { min-height: 0; color: var(--bad); font-size: .84rem; }
.field-err:empty { display: none; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--bone); font-size: .9rem; line-height: 1.2; transition: background-color .25s, color .25s, border-color .25s; }
.pick label:hover span { border-color: var(--dim); }
.pick input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.pick input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--dim); line-height: 1.45; cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--amber); cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#cf-send.is-busy span::after { content: ""; display: inline-block; width: 1em; margin-left: .2em; animation: ell 1.2s steps(4) infinite; text-align: left; }
@keyframes ell { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.cf-done { position: absolute; inset: 0; display: grid; align-content: center; justify-items: start; gap: 14px; padding: clamp(18px, 3vw, 34px); border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line-2); animation: doneIn .6s var(--ease-out); outline: none; }
.cf-done[hidden] { display: none; }
@keyframes doneIn { from { opacity: 0; transform: translateY(14px); } }
.cf-done-ico svg { width: 56px; height: 56px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cf-done-ico circle { stroke: var(--line-2); }
.cf-done-ico path { display: none; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .15s var(--ease-out) forwards; }
.cf-done[data-kind="ok"] .tick { display: block; stroke: var(--teal); }
.cf-done[data-kind="ok"] circle { stroke: var(--teal); }
.cf-done[data-kind="fail"] .cross { display: block; stroke: var(--bad); }
.cf-done[data-kind="preview"] .note { display: block; stroke: var(--amber); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cf-done-t { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 760; font-stretch: 108%; line-height: 1.1; }
.cf-done-d { color: var(--dim); max-width: 52ch; }
.cf-copytext { width: 100%; max-height: 220px; overflow: auto; margin: 0; padding: 14px 16px; border-radius: 13px; background: var(--code-bg); border: 1px solid var(--line); font-family: var(--font-time); font-size: .78rem; line-height: 1.65; color: var(--code-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.cf-done-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--dim); font-size: .88rem; }
.foot-brand { font-family: var(--font-display); font-weight: 850; font-stretch: 125%; color: var(--bone); }
.foot-c { font-family: var(--font-time); font-size: .82rem; color: var(--bone); }
.foot a { margin-left: auto; text-decoration: none; color: var(--bone); }
.foot a:hover { color: var(--amber); }

.cursor { position: fixed; left: 0; top: 0; z-index: 88; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 999px; border: 1.5px solid rgba(238, 230, 216, .6); pointer-events: none; transform: translate3d(-200px, -200px, 0); transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), border-color .3s, opacity .3s; will-change: transform; }
.cursor.is-link { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: var(--amber); }
.cursor.is-hidden { opacity: 0; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 94; transform: translate(-50%, 16px); opacity: 0; padding: 11px 16px; border-radius: 11px; background: var(--bone); color: var(--ink); font-weight: 600; font-size: .9rem; pointer-events: none; transition: opacity .3s, transform .45s var(--ease-out); max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .nav, .top-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .topbar { grid-template-columns: auto 1fr; }
  .top-actions { grid-column: 2; }
}
@media (max-width: 1180px) {
  .cs-grid { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); }
  .cs-spec { grid-column: 1 / -1; }
  .cs-list { max-height: none; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .pn-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pn-chart { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .hero-main { grid-template-columns: minmax(0, 1fr); }
  .chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .flow-shell { grid-template-columns: minmax(0, 1fr); }
  .flow-side { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .flow-side .flow-log { grid-column: 2; grid-row: 1 / 3; max-height: 200px; }
  .ai-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ai-beams { display: none; }
  .kb-list { grid-auto-flow: column; grid-auto-columns: minmax(220px, 42%); grid-template-columns: none; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .kb-card { scroll-snap-align: start; }
  .sv-calc, .contact { grid-template-columns: minmax(0, 1fr); }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fs-t { font-size: .78rem; }
}
@media (max-width: 760px) {
  :root { --top-h: 60px; }
  .demo-head, .sv-head, .week-head { grid-template-columns: minmax(0, 1fr); }
  .chapters { grid-template-columns: minmax(0, 1fr); }
  .chapters a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .chapters a::before { right: 0; }
  .fs-list { gap: 5px; }
  .fs-t { display: none; }
  .fs-cap { margin-top: 12px; display: grid; gap: 2px; }
  .fs-cap-t { display: block; }
  .ruler { margin-right: 0; }
  .ruler-ticks { right: 0; }
  .web-size { display: none; }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .pn-side { display: none; }
  .pn-main { padding: 14px; }
  .pn-date { display: none; }
  .pn-board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(230px, 80%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .pn-col { scroll-snap-align: start; }
  .pn-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pn-stat { padding: 8px 9px; }
  .pn-stat b { font-size: 17px; }
  .flow-canvas { height: auto; min-height: 700px; }
  .flow-side { grid-template-columns: minmax(0, 1fr); }
  .flow-side .flow-log { grid-column: auto; grid-row: auto; }
  .cs-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-stage { min-height: 440px; }
  .chat { height: 540px; }
  .cf-grid { grid-template-columns: minmax(0, 1fr); }
  .sv-row { grid-template-columns: minmax(0, 1fr); }
  .sv-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .sv-bar .sv-track { grid-column: 1 / -1; grid-row: 2; }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .wk-axis, .wk-row { grid-template-columns: 44px minmax(0, 1fr); gap: 6px; }
  .wk-clock { font-size: .6rem; }
  .wk-lane { gap: 1px; }
  .wk-lane i { height: 8px; border-radius: 1px; }
  .wk-ticks i { font-size: .6rem; }
  .foot a { margin-left: 0; }
  .endcard { justify-content: flex-end; min-height: 72svh; padding-block: 34svh 4vh; }
  .end-line { max-width: none; }
}
@media (max-width: 420px) {
  .lang button { padding: 8px 8px; }
  .menu-btn { padding: 0 12px; }
  .phone { width: 290px; height: 610px; }
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* ---------- as-ai.pl: dodatki do hostingu (stopka prawna, Realizacje w menu) ---------- */
.menu.is-open .menu-list li:nth-child(8) a { transition-delay: .28s; }
.foot-legal { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: .8rem; line-height: 1.5; }
.foot-legal > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.foot .foot-legal a { margin-left: 0; color: var(--dim); }
.foot .foot-legal a:hover, .foot-btn:hover { color: var(--amber); }
.foot-btn { appearance: none; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--dim); cursor: pointer; }
