/* Za Rączkę — strona zaraczke.com
 * Kolory i nazwy tokenów jak w aplikacji (src/theme.ts); do tego paleta doby
 * (zmierzch, noc, świt) dla strony głównej.
 * Czcionki z własnego serwera: żadnych zapytań do Google, żadnych ciasteczek. */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/bricolage-latin-600.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/bricolage-latin-ext-600.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/bricolage-latin-700.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/bricolage-latin-ext-700.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  /* aplikacja */
  --paper: #F5F2F2; --surface: #FFFFFF; --sunk: #EDE7E9; --line: #DCD3D6; --line2: #C7BDC1;
  --ink: #221E26; --ink2: #4C4351; --muted: #6B6273; --faint: #8B8291;
  --wine: #A8324F; --wine-ink: #FFFFFF; --wine-bg: #F5E3E8; --wine-deep: #8A2641;
  --pine: #2C6459; --pine-bg: #DEEBE7;
  --clay: #8F4E12; --clay-bg: #F6E8D7;
  --rose: #A13D55; --rose-bg: #F8E6E3;
  /* doba */
  --sun: #F2CFD8;
  --golden: #F2DCC2;
  --night: #17131D; --night-ink: #F5EDF1; --night-ink2: #CFC3CC; --night-line: rgba(245,237,241,.16);
  --wine-night: #EE93AA; --pine-night: #93D3C2;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 68px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --phone-shadow: drop-shadow(0 2px 3px rgba(34,30,38,.16)) drop-shadow(0 26px 34px rgba(34,30,38,.22));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); scrollbar-color: var(--line2) var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--wine);
}
::selection { background: var(--wine); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 60; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.phone { width: 100%; height: auto; filter: var(--phone-shadow); }
.mark-bg { fill: var(--wine-bg); }
.mark-fg { fill: var(--wine); }

/* ── nagłówek ─────────────────────────────── */
.top {
  --h-ink: var(--ink); --h-ink2: var(--ink2); --h-line: rgba(34,30,38,.1);
  position: sticky; top: 0; z-index: 40; background: var(--paper); color: var(--h-ink);
  transition: box-shadow .3s ease;
}
.top.scrolled { box-shadow: 0 1px 0 var(--h-line); }
.top[data-theme="night"] { --h-ink: var(--night-ink); --h-ink2: var(--night-ink2); --h-line: var(--night-line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--h-ink, var(--ink)); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; transition: color .3s ease; }
.brand svg { width: 34px; height: 34px; flex: none; }
.top[data-theme="night"] .mark-bg { fill: #3A2433; }
.top[data-theme="night"] .mark-fg { fill: var(--wine-night); }
.brand:hover { text-decoration: none; }

.clock { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px 4px 8px; border: 1px solid var(--h-line); border-radius: 999px; font-size: 13.5px; font-weight: 600; line-height: 1.2; color: var(--h-ink2); font-variant-numeric: tabular-nums; letter-spacing: .01em; transition: color .3s ease, border-color .3s ease; }
.clock svg { width: 15px; height: 15px; transition: opacity .4s ease, transform .6s var(--ease-out); }
.clock-sun { color: #C0772E; }
.clock-moon { color: var(--wine-night); position: absolute; opacity: 0; transform: rotate(-40deg) scale(.6); }
.clock { position: relative; }
.clock.is-night .clock-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
.clock.is-night .clock-moon { opacity: 1; transform: none; }
.clock-moon { left: 8px; }

.nav { margin-left: auto; display: flex; align-items: center; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; font-size: 15px; }
.menu a { color: var(--h-ink2); text-decoration: none; transition: color .2s ease; }
.menu a:hover { color: var(--h-ink); }
.menu .cta { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: 999px; background: var(--wine); color: #fff; font-weight: 700; transition: background-color .2s ease, transform .2s var(--ease-out); }
.menu .cta:hover { background: var(--wine-deep); color: #fff; }
.menu .cta:active { transform: scale(.97); }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; color: var(--h-ink); border-radius: 12px; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; display: block; margin: auto; }
.menu-btn path { transition: transform .35s var(--ease-out); transform-origin: 12px 12px; }
.top.open .menu-btn .l1 { transform: translateY(4px) rotate(45deg); }
.top.open .menu-btn .l2 { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 820px) {
  :root { --header: 62px; }
  .menu-btn { display: block; }
  .menu { position: absolute; left: 0; right: 0; top: var(--header); flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter) 18px; background: inherit; background-color: var(--menu-bg, var(--paper)); box-shadow: 0 18px 30px -18px rgba(34,30,38,.35); border-top: 1px solid var(--h-line);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .22s ease, transform .3s var(--ease-out), visibility 0s linear .3s; }
  .top.open .menu { visibility: visible; opacity: 1; transform: none; transition: opacity .22s ease, transform .3s var(--ease-out); }
  .menu li { border-bottom: 1px solid var(--h-line); }
  .menu li.menu-cta { border: 0; padding-top: 14px; }
  .menu a { display: flex; align-items: center; min-height: 52px; font-size: 17px; color: var(--h-ink); }
  .menu .cta { display: flex; justify-content: center; min-height: 52px; }
}
@media (max-width: 380px) { .brand span { font-size: 18px; } .clock { padding-inline: 7px; } }

/* ── wspólne: przyciski, zapis ───────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 24px; border: 0; border-radius: 999px; background: var(--wine); color: var(--wine-ink); font: inherit; font-size: 16.5px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(138,38,65,.28), 0 12px 26px -12px rgba(168,50,79,.7);
  transition: background-color .2s ease, transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.btn:hover { background: var(--wine-deep); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(138,38,65,.28), 0 18px 32px -14px rgba(168,50,79,.75); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 12px 20px; border: 1.5px solid var(--line2); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.btn-ghost:hover { border-color: var(--ink2); background: rgba(255,255,255,.55); }
.btn-ghost svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.btn-ghost .i-ok { display: none; color: var(--pine); }
.btn-ghost.copied { border-color: var(--pine); }
.btn-ghost.copied .i-copy { display: none; }
.btn-ghost.copied .i-ok { display: block; animation: pop .45s var(--ease-out); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mail[hidden], .waitlist[hidden] { display: none; }
.waitlist { display: grid; gap: 12px; }
.waitlist .row { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist input[type=email] {
  flex: 1 1 220px; min-width: 0; min-height: 54px; padding: 13px 20px; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line2); border-radius: 999px; transition: border-color .2s ease, box-shadow .2s ease;
}
.waitlist input[type=email]::placeholder { color: var(--muted); }
.waitlist input[type=email]:focus { border-color: var(--wine); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--wine) 20%, transparent); }
.waitlist input[aria-invalid="true"] { border-color: var(--wine); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--wine); cursor: pointer; }
.form-msg { font-size: 15px; min-height: 1.5em; }
.form-msg.ok { color: var(--pine); font-weight: 600; }
.form-msg.err { color: var(--wine); font-weight: 600; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ── hero: 9:41, rano ─────────────────────── */
.hero { background: var(--paper); padding-block: clamp(20px, 4vw, 48px) clamp(40px, 5vw, 72px); overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(46px, 6.6vw, 88px); line-height: .98; letter-spacing: -0.035em; margin: 0 0 26px; }
.hero h1 em { font-style: normal; color: var(--wine); }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .ln > * { display: inline-block; animation: rise 1s var(--ease-out) both; }
.hero h1 .ln:nth-child(2) > * { animation-delay: .08s; }
.hero h1 .ln:nth-child(3) > * { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(105%); } }
.hero .lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--ink2); max-width: 31em; animation: fade-up .9s var(--ease-out) .3s both; }
.hero .notify { margin-top: 34px; max-width: 540px; animation: fade-up .9s var(--ease-out) .42s both; }
.hero .soon { margin-top: 18px; font-size: 14.5px; color: var(--muted); animation: fade-up .9s var(--ease-out) .5s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

.hero-art { position: relative; aspect-ratio: 7 / 9; max-height: 700px; margin-inline: auto; width: 100%; --px: 0; --py: 0; }
.hero-art .sun { position: absolute; left: 50%; top: 36%; width: 112%; aspect-ratio: 1; border-radius: 50%; background: var(--sun);
  transform: translate(-50%, -50%); translate: calc(var(--px) * -10px) calc(var(--py) * -8px); animation: sunrise 1.8s var(--ease-out) both; }
@keyframes sunrise { from { transform: translate(-50%, -26%) scale(.8); opacity: 0; } }
.fan { position: absolute; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 16px; }
.fan-2 { width: 45%; left: 27.5%; top: 0; z-index: 3; translate: calc(var(--px) * 14px) calc(var(--py) * 10px); animation: deal-c 1.2s var(--ease-out) .25s both; }
.fan-1 { width: 37%; left: 1%; top: 20%; z-index: 2; transform: rotate(-8deg); translate: calc(var(--px) * 6px) calc(var(--py) * 5px); animation: deal-l 1.3s var(--ease-out) .45s both; }
.fan-3 { width: 37%; right: 1%; top: 20%; z-index: 2; transform: rotate(8deg); translate: calc(var(--px) * 6px) calc(var(--py) * 5px); animation: deal-r 1.3s var(--ease-out) .45s both; }
@keyframes deal-c { from { transform: translateY(12%); opacity: 0; } }
@keyframes deal-l { from { transform: translate(52%, 6%) rotate(0deg) scale(.92); opacity: 0; } }
@keyframes deal-r { from { transform: translate(-52%, 6%) rotate(0deg) scale(.92); opacity: 0; } }
.fan-1 .pill { transform: rotate(8deg); }
.fan-3 .pill { transform: rotate(-8deg); }
.pill { display: inline-flex; align-items: center; white-space: nowrap; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--tone); background: var(--surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tone) 22%, transparent), 0 6px 14px -8px rgba(34,30,38,.35); animation: fade-up .7s var(--ease-out) 1.25s both; }
.pill.plan { --tone: var(--wine); }
.pill.ciaza { --tone: var(--rose); animation-delay: 1.15s; }
.pill.rok { --tone: var(--pine); animation-delay: 1.35s; }
.road { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; animation: draw 1.6s var(--ease-out) 1s both; }
.road-line { fill: none; stroke: var(--wine); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: .1 10; vector-effect: non-scaling-stroke; }
.road .stop { stroke: var(--paper); stroke-width: 3; vector-effect: non-scaling-stroke; }
.road .stop.plan { fill: var(--wine); } .road .stop.ciaza { fill: var(--rose); } .road .stop.rok { fill: var(--pine); }
@keyframes draw { from { clip-path: inset(-20% 120% -20% -20%); } to { clip-path: inset(-20% -20% -20% -20%); } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin-top: 8px; }
  .hero h1 { margin-bottom: 20px; }
}
@media (max-width: 520px) {
  .pill { font-size: 11.5px; padding: 5px 10px; }
  .fan { gap: 12px; }
  .hero .notify .btn, .hero .notify .btn-ghost { width: 100%; justify-content: center; }
}

/* nitka: kropkowana droga z hero schodzi do pierwszego rozdziału */
main { position: relative; }
.thread { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; overflow: visible; display: none; }
.thread.on { display: block; }
.thread-line { fill: none; stroke: var(--wine); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: .1 10; }
.thread-reveal { fill: none; stroke: #fff; stroke-width: 14; }
.thread-stop { fill: var(--wine); stroke: #F6EAEC; stroke-width: 3; opacity: 0; transition: opacity .4s ease; }
.thread.done .thread-stop { opacity: 1; }

/* ── doba: rozdziały ──────────────────────── */
.journey-head { background: linear-gradient(var(--paper), #F6EBED); padding-block: clamp(40px, 7vw, 104px) clamp(8px, 2vw, 24px); }
.journey-head h2 { font-size: clamp(38px, 5.2vw, 68px); max-width: 12em; }
.journey-head p { margin-top: 20px; color: var(--ink2); font-size: clamp(18px, 1.8vw, 20px); max-width: 34em; }

.chapter { position: relative; padding-block: clamp(32px, 5vw, 64px); background: linear-gradient(var(--from), var(--to)); }
.chapter.plan { --tone: var(--wine); --from: #F6EBED; --to: #F5E1E6; }
.chapter.ciaza { --tone: var(--rose); --from: #F5E1E6; --to: #F7E3DE; }
.chapter.wyprawka { --tone: var(--clay); --from: #F7E3DE; --to: var(--golden); }
.chapter-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.chapter.ciaza .copy, .chapter.rok .copy { order: 2; }
.copy { max-width: 32em; }
.count { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 22px; }
.count .num { font-family: var(--display); font-weight: 700; font-size: clamp(84px, 9.5vw, 132px); line-height: .78; letter-spacing: -0.045em; color: var(--tone); font-variant-numeric: tabular-nums; }
.count .unit { display: grid; justify-items: start; gap: 2px; margin: 0 0 2px; font-size: 15.5px; font-weight: 500; line-height: 1.3; color: color-mix(in srgb, var(--tone) 70%, var(--ink)); }
.count .unit b { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--tone); }
.chapter h3 { font-size: clamp(32px, 3.8vw, 50px); margin-bottom: 18px; }
.chapter .copy > p { color: var(--ink2); font-size: 18px; }
.specs { margin: 30px 0 0; border-top: 1px solid color-mix(in srgb, var(--tone) 24%, transparent); }
.specs div { display: grid; grid-template-columns: 11em 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid color-mix(in srgb, var(--tone) 24%, transparent); }
.specs dt { font-weight: 700; font-size: 15px; color: var(--tone); }
.specs dd { margin: 0; color: var(--ink); font-size: 16px; }
@media (max-width: 520px) { .specs div { grid-template-columns: 1fr; gap: 2px; } }

.stage { position: relative; aspect-ratio: 1 / 1.02; --sp: .5; }
.chapter:not(.night) .stage::before { content: ""; position: absolute; left: 50%; top: var(--sun-top); width: 88%; aspect-ratio: 1; border-radius: 50%; background: var(--sun-c); transform: translate(-50%, calc((var(--sp) - .5) * 18%)); }
.chapter.plan { --sun-c: #F1CDD6; --sun-top: -4%; }
.chapter.ciaza { --sun-c: #F3CFC8; --sun-top: 7%; }
.chapter.wyprawka { --sun-c: transparent; --sun-top: 18%; }
.stage .phone { position: absolute; z-index: 1; }
.stage .front { width: 45%; left: 51%; top: 4%; z-index: 2; }
.stage .back { width: 38%; left: 22%; top: 15%; }
.chapter.ciaza .stage .front, .chapter.rok .stage .front { left: 4%; }
.chapter.ciaza .stage .back, .chapter.rok .stage .back { left: 40%; }

@media (max-width: 900px) {
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter.ciaza .copy, .chapter.rok .copy { order: 0; }
  .stage { max-width: 560px; width: 100%; margin-inline: auto; }
}

/* ── zmierzch ─────────────────────────────── */
.dusk { position: relative; height: clamp(380px, 78vh, 760px); overflow: hidden; --p: .5;
  background: linear-gradient(var(--golden), #EFC6A6, #DE9985, #A95D6C, #5A3150, #2A1F33, var(--night)); }
.dusk-sky { position: absolute; inset: 0 0 30% 0; overflow: hidden; }
.dusk-sun { position: absolute; left: 60%; bottom: 0; width: clamp(140px, 19vw, 270px); aspect-ratio: 1; border-radius: 50%;
  background: color-mix(in srgb, #E9836F calc(var(--p) * 100%), #FAD6AE);
  transform: translate(-50%, calc(var(--p) * 190% - 85%)); }
.horizon { position: absolute; left: 0; right: 0; bottom: 30%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,228,210,.55) 20%, rgba(255,228,210,.55) 80%, transparent); }
.dusk::after { content: ""; position: absolute; inset: 70% 0 0 0; background: linear-gradient(rgba(23,19,29,.16), transparent); }

/* ── noc: 03:12 ───────────────────────────── */
.chapter.night { --tone: var(--pine-night); background: var(--night); color: var(--night-ink); overflow: clip; }
.chapter.night ::selection, .dawn-head ::selection { background: var(--wine-night); color: var(--night); }
.chapter.night :focus-visible, .dawn-head :focus-visible { outline-color: var(--wine-night); }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.moon { --moon: clamp(44px, 5vw, 72px); position: absolute; right: clamp(24px, 9vw, 160px); top: clamp(40px, 7vw, 96px); width: var(--moon); aspect-ratio: 1; border-radius: 50%; box-shadow: inset calc(var(--moon) * -.24) calc(var(--moon) * .1) 0 0 #F3E6D8; rotate: -18deg; }
@media (max-width: 900px) { .moon { --moon: 38px; top: 20px; right: 20px; } .chapter.night { padding-top: 76px; } }
.chapter.night .wrap { position: relative; z-index: 1; }
.chapter.night h3 { color: var(--night-ink); }
.chapter.night .copy > p { color: var(--night-ink2); }
.chapter.night .specs dd { color: var(--night-ink); }
.chapter.night .count .unit { color: var(--night-ink2); }
.chapter.night .count .num { color: var(--night-ink); }
.clock-big .colon { display: inline-block; margin-inline: .02em; color: var(--wine-night); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.chapter.night .stage .back { filter: brightness(.5) saturate(.7) drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.chapter.night .stage .front { filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.lamp { position: absolute; left: 50%; top: 4%; width: 78%; height: 100%; border-radius: 50%; z-index: 0; translate: -38% 0;
  background: radial-gradient(closest-side, rgba(255,232,214,.46), rgba(238,147,170,.18) 48%, rgba(238,147,170,.05) 72%, transparent); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .7; transform: scale(.96); } }

.entry { position: absolute; z-index: 4; margin: 0; display: inline-flex; align-items: center; gap: 11px; padding: 9px 16px 9px 9px; border-radius: 18px; background: var(--surface); color: var(--ink); white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 18px 34px -14px rgba(0,0,0,.5); }
.entry svg { width: 36px; height: 36px; padding: 7px; border-radius: 12px; background: var(--wine-bg); color: var(--wine); flex: none; }
.entry b { display: block; font-size: 15px; line-height: 1.25; }
.entry small { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.night-entry { left: 50%; bottom: 8%; transform: translateX(-50%); }
.js .night-entry { opacity: 0; transform: translate(-50%, 14px) scale(.94); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.js .night-entry.in { opacity: 1; transform: translate(-50%, 0); transition-delay: .5s; }

/* ── świt: razem ──────────────────────────── */
.dawn-head { background: var(--night); color: var(--night-ink); padding-block: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 48px); position: relative; overflow: clip; }
.dawn-head .wrap { position: relative; z-index: 1; }
.dawn-head h2 { color: var(--night-ink); font-size: clamp(38px, 5.2vw, 68px); max-width: 12em; }
.dawn-head .lead { margin-top: 20px; color: var(--night-ink2); font-size: clamp(18px, 1.9vw, 21px); max-width: 32em; }

.handoff::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(160,90,100,.35) 20%, rgba(160,90,100,.35) 80%, transparent); }
.handoff { position: relative; overflow: clip; padding-block: clamp(24px, 4vw, 48px) clamp(64px, 9vw, 120px); --p: 1;
  background: linear-gradient(var(--night) 0%, #261D31 18%, #4E3552 40%, #9A6479 62%, #E0A99A 82%, #F6E4D9 100%); }
.handoff-stage { position: relative; height: clamp(600px, 74vw, 900px); }
.handoff-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; }
.handoff-path path { fill: none; stroke: rgba(245,237,241,.75); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: .1 9; vector-effect: non-scaling-stroke; }
.handoff figure { position: absolute; margin: 0; width: clamp(140px, 23%, 260px); display: grid; gap: 14px; justify-items: center; z-index: 2; }
.handoff .ola { left: 5%; top: 0; }
.handoff .piotr { right: 5%; bottom: 0; }
.handoff figcaption { padding: 6px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; letter-spacing: .01em; }
.handoff .ola figcaption { color: var(--night-ink); background: rgba(23,19,29,.72); }
.handoff .piotr figcaption { color: var(--ink); background: rgba(255,255,255,.78); }
.handoff .ola .phone { filter: brightness(.82) drop-shadow(0 26px 40px rgba(0,0,0,.5)); }
.traveler { left: 58%; top: 64%; transform: translate(-50%, -50%); }
.traveler .t-ok { display: none; }
.traveler.arrived .t-go { display: none; }
.traveler.arrived .t-ok { display: block; animation: fade-in .4s ease; }
.traveler.arrived svg { background: var(--pine-bg); color: var(--pine); }
@keyframes fade-in { from { opacity: 0; } }
.sunrise { position: absolute; left: 28%; bottom: 0; width: clamp(240px, 38vw, 540px); aspect-ratio: 1; border-radius: 50%; background: #F7CFAE; opacity: .9;
  transform: translate(-50%, calc(62% - var(--p) * 22%)); }

.notes { list-style: none; margin: 0; padding: 0; }
.notes li { position: absolute; z-index: 3; padding-left: 26px; }
.notes li::before { content: ""; position: absolute; left: 0; top: .42em; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid currentColor; }
.notes h3 { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 6px; color: inherit; }
.notes p { font-size: 15.5px; line-height: 1.5; }
.note-code { left: 60%; top: 3%; width: 32%; max-width: 21em; color: var(--night-ink); }
.note-code::before { color: var(--wine-night); }
.note-code p { color: var(--night-ink2); }
.note-same { left: 5%; bottom: 2%; width: 34%; max-width: 21em; color: var(--ink); }
.note-same::before { color: var(--pine); }
@media (max-width: 760px) {
  .handoff-stage { height: clamp(560px, 175vw, 720px); }
  .note-code { left: 46%; top: 0; width: 54%; }
  .note-same { left: 0; bottom: 0; width: 58%; }
  .notes h3 { font-size: 16.5px; }
  .notes p { font-size: 14px; }
  .handoff figure { width: 40%; }
  .handoff .ola { left: 0; }
  .handoff .piotr { right: 0; }
  .handoff figcaption { font-size: 13px; }
  .entry { padding: 7px 12px 7px 7px; gap: 8px; border-radius: 15px; }
  .entry svg { width: 30px; height: 30px; padding: 6px; border-radius: 10px; }
  .entry b { font-size: 13.5px; }
  .entry small { font-size: 12px; }
}

/* ── prywatność: poranek ──────────────────── */
.privacy { background: linear-gradient(#F6E4D9, var(--pine-bg) 30%); padding-block: clamp(48px, 6vw, 88px) clamp(72px, 9vw, 120px); }
.privacy h2 { font-size: clamp(34px, 4.6vw, 58px); max-width: 13em; }
.facts { list-style: none; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 3.5vw, 48px); }
.facts li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--ink2); font-size: 16.5px; }
.facts svg { width: 28px; height: 28px; color: var(--pine); }
.facts b { color: var(--ink); }
.js .facts .ring { stroke-dasharray: 57; stroke-dashoffset: 57; transition: stroke-dashoffset 1s var(--ease-out); }
.js .facts .tick { stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .5s var(--ease-out) .55s; }
.js .facts.in .ring, .js .facts.in .tick { stroke-dashoffset: 0; }
.js .facts li:nth-child(2) .ring { transition-delay: .15s; } .js .facts li:nth-child(2) .tick { transition-delay: .7s; }
.js .facts li:nth-child(3) .ring { transition-delay: .3s; } .js .facts li:nth-child(3) .tick { transition-delay: .85s; }
.privacy-note { margin-top: clamp(28px, 4vw, 44px); padding-top: 22px; border-top: 1px solid rgba(44,100,89,.22); color: var(--ink2); font-size: 16px; max-width: 50em; }
.privacy-note a { color: var(--pine); font-weight: 600; white-space: nowrap; }
@media (max-width: 880px) { .facts { grid-template-columns: 1fr; } }

/* ── zapis: 8:05 ──────────────────────────── */
.signup { position: relative; background: linear-gradient(var(--pine-bg), var(--paper) 42%); padding-block: clamp(72px, 9vw, 136px); overflow: clip; }
.signup .wrap { position: relative; }
.signup-sun { position: absolute; right: 0; top: 50%; width: min(44vw, 540px); aspect-ratio: 1; border-radius: 50%; background: var(--sun); transform: translateY(-50%); }
.signup .card { position: relative; background: var(--surface); border-radius: 32px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center;
  box-shadow: 0 1px 2px rgba(34,30,38,.05), 0 36px 70px -36px rgba(34,30,38,.3); }
.signup h2 { font-size: clamp(36px, 4.8vw, 60px); }
.card-copy p { margin-top: 16px; color: var(--ink2); font-size: 18px; max-width: 26em; }
.mail-note { flex-basis: 100%; margin-bottom: 6px; font-size: 16px; color: var(--ink2); }
@media (max-width: 880px) { .signup .card { grid-template-columns: 1fr; } .signup-sun { top: 24px; right: -60px; width: 300px; transform: none; } }
@media (max-width: 520px) { .signup .notify .btn, .signup .notify .btn-ghost { width: 100%; } }

/* ── stopka ───────────────────────────────── */
footer.site { background: var(--paper); border-top: 1px solid var(--line); padding-block: 44px 56px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; }
footer.site .firm { max-width: 46em; display: grid; gap: 6px; }
footer.site .firm a:not(.brand) { color: var(--ink2); }
footer.site .fine { margin-top: 10px; font-size: 12.5px; line-height: 1.55; color: var(--muted); max-width: 60em; }
footer.site .brand { font-size: 17px; margin-bottom: 8px; }
footer.site .brand svg { width: 28px; height: 28px; }
footer.site .links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; justify-items: start; }
footer.site .links a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink2); }
@media (max-width: 700px) { footer.site .wrap { grid-template-columns: 1fr; } }

/* ── strony z treścią (polityka, usuwanie konta, 404) ─────────── */
.doc { padding-block: clamp(28px, 6vw, 64px) clamp(56px, 9vw, 96px); }
.doc .wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.doc .toc { position: sticky; top: calc(var(--header) + 20px); font-size: 14px; max-height: calc(100vh - var(--header) - 40px); overflow: auto; }
.doc .toc b { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.doc .toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.doc .toc a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 8px; color: var(--ink2); text-decoration: none; line-height: 1.35; transition: background-color .2s ease, color .2s ease; }
.doc .toc a:hover { color: var(--wine); background: var(--wine-bg); }
.doc .toc a[aria-current="true"] { color: var(--wine); background: var(--wine-bg); font-weight: 600; }
.doc.single .wrap { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
@media (max-width: 860px) { .doc .wrap { grid-template-columns: 1fr; } .doc .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: var(--surface); } }

.prose { max-width: 42em; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.prose .meta { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 30px; }
.prose h2 { font-size: clamp(24px, 3vw, 31px); margin: 52px 0 14px; scroll-margin-top: calc(var(--header) + 16px); }
.prose h3 { font-size: 20px; margin: 30px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; color: var(--ink2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.prose .table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; color: var(--ink); background: var(--sunk); font-size: 14px; }
.prose tr:last-child td { border-bottom: 0; }
.prose .steps { counter-reset: s; list-style: none; padding: 0; }
.prose .steps li { counter-increment: s; position: relative; padding: 2px 0 2px 46px; margin-bottom: 14px; }
.prose .steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 31px; height: 31px; border-radius: 50%; background: var(--wine-bg); color: var(--wine); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.prose .path { font-weight: 600; color: var(--ink); }
.prose .box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 0 0 18px; }
.prose .box p { margin: 0; }
.lost { text-align: left; }
.lost .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.lost .actions .btn-ghost { text-decoration: none; }

/* ── ograniczony ruch ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 .ln > *, .fan-1, .fan-2, .fan-3, .hero-art .sun, .road { animation-name: fade-in; animation-duration: .6s; }
  .hero .lead, .hero .notify, .hero .soon, .pill { animation-name: fade-in; }
  .fan-1, .fan-2, .fan-3, .hero-art .sun { translate: none; }
  .clock-big .colon, .lamp { animation: none; }
  .js .night-entry { transform: translate(-50%, 0); transition: opacity .6s ease; }
  .btn:hover { transform: none; }
  .menu-btn path, .menu { transition-duration: .01s; }
}
