/* Świat marki czyjto: „Las o zmierzchu”. Strona główna czyjto.app (templates/home.html, base_brand.html).
   Brief i umowa kierunku: .impeccable/surfaces/templates-home-html.md. Font: Bricolage Grotesque (SIL OFL, static/fonts/OFL.txt). */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.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;
}

:root {
  color-scheme: dark;
  --forest-950: #082520;
  --forest-900: #0b2c25;
  --ground: #0f3d33;
  --forest-700: #15503f;
  --forest-600: #1f6b55;
  --ink: #fff8ef;
  --muted: #c9ddd3;
  --line: rgb(255 248 239 / 0.14);
  --accent: #ff9a52;
  --on-accent: #1f160f;
  --accent-ink: #3a2412;
  --signal: #9df5d0;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --gutter: clamp(1rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scrollbar-color: var(--forest-600) var(--forest-900); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; overflow-x: clip; background: var(--ground); color: var(--ink);
  font: 400 1.125rem/1.5 var(--display); font-optical-sizing: auto; }
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; text-underline-offset: 0.22em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2rem, 76rem); margin-inline: auto; }
em { font-style: normal; color: var(--accent); }

/* Nagłówek i logo: „czyjt” z pinezką lokalizacji jako „o” */
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem var(--gutter); }
.logo { display: inline-flex; align-items: baseline; gap: 0.02em; font: 800 1.75rem/1 var(--display); letter-spacing: -0.04em; text-decoration: none; color: var(--ink); }
.logo-pin { display: inline-block; width: 0.66em; height: 0.88em; transform: translateY(0.2em); }
.logo-pin svg { display: block; width: 100%; height: 100%; fill: var(--signal); }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem 1.6rem; font-weight: 600; font-size: 1.05rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.6rem; padding: 0.9rem 1.7rem; border-radius: 999px;
  border: 3px solid transparent; font: 800 1.15rem/1.1 var(--display); text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, background-color 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0.6rem 1.4rem rgb(0 0 0 / 0.25); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-main { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: currentColor; background: transparent; color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Pierwszy ekran */
.hero { padding-bottom: 2rem; }
.hero h1 { margin: 0.4rem 0 1.6rem; font: 800 clamp(2.6rem, 6.6vw, 6rem)/0.93 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.hero-row { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: stretch; }
.side-info { display: flex; flex-direction: column; justify-content: center; gap: 2rem; }
.side-info .lead { margin: 0; font-size: 1.25rem; color: var(--muted); max-width: 34ch; }
.side-info .ctas { flex-direction: column; }
.side-info .btn { width: 100%; }
.sample { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* Porównanie: plakat na słupie i strona zwierzaka w telefonie, suwak odsłania „po” */
.compare { --h: clamp(380px, 61vh, 560px); position: relative; height: var(--h); margin: 0; border-radius: 28px; overflow: hidden; background: #2e3a35; --cut: 50%; }
/* Plakat stoi na środku lewej połowy, telefon na środku prawej: przy suwaku w połowie oba są widoczne w całości */
.compare .side { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: center; }
.compare .side > * { grid-row: 1; }
.compare .before > * { grid-column: 1; justify-self: center; }
.compare .after > * { grid-column: 2; justify-self: center; }
/* Prawdziwy słup ze zszywkami po starych ogłoszeniach (CC0, static/img/home/CREDITS.md), lekko przygaszony pod plakatem */
.compare .before { background: linear-gradient(rgb(20 18 14 / 0.28), rgb(20 18 14 / 0.28)), url("../img/home/slup.webp") center / cover; }
.poster { position: relative; width: 270px; height: 360px; padding: 18px; background: #f1efe9; color: #111; transform: rotate(-4deg); box-shadow: 0 0.6rem 1.2rem rgb(0 0 0 / 0.35); }
.poster b { display: block; font: 900 34px/1 system-ui, sans-serif; letter-spacing: -0.02em; }
.poster img { display: block; width: 100%; height: 150px; margin-top: 10px; object-fit: cover; filter: contrast(1.25); }
.poster small { display: block; margin-top: 8px; font: 700 14px system-ui, sans-serif; color: #333; }
.poster .tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; display: flex; border-top: 2px dashed #666; }
.poster .tabs span { flex: 1; border-right: 2px dashed #666; }
.poster .tabs span:nth-child(odd) { visibility: hidden; }
.compare .after { background: radial-gradient(70% 90% at 60% 55%, var(--forest-600), var(--ground)); clip-path: inset(0 0 0 var(--cut)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 4px; margin-left: -2px; background: var(--accent); pointer-events: none; }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f160f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: 0 0.4rem 0.9rem rgb(0 0 0 / 0.3); }
.compare input { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(input:focus-visible) { outline: 3px solid var(--signal); outline-offset: 3px; }
.compare .cap { position: absolute; bottom: 18px; z-index: 2; padding: 0.5rem 0.9rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; }
.compare .cap.b { left: 18px; background: #f1efe9; color: #222; }
.compare .cap.a { right: 18px; background: var(--ink); color: var(--ground); }
.compare .after .phone { width: auto; height: calc(var(--h) - 8rem); }  /* zostaje miejsce na podpis „Po” pod telefonem */

/* Telefon z przykładową stroną zwierzaka (świat strony zwierzaka z DESIGN.md, motyw rudy) */
.phone { position: relative; width: 230px; aspect-ratio: 300 / 620; border-radius: 40px; padding: 10px; background: #0d0f12;
  box-shadow: 0 1.6rem 3rem rgb(0 0 0 / 0.32), inset 0 0 0 2px rgb(255 255 255 / 0.08); }
.phone .screen { position: relative; height: 100%; overflow: hidden; border-radius: 31px; background: #fff; color: #1a1d1a; font-family: system-ui, sans-serif; }
.phone .notch { position: absolute; top: 7px; left: 50%; z-index: 3; width: 74px; height: 20px; margin-left: -37px; border-radius: 20px; background: #0d0f12; }
.phone .photo { display: block; width: 100%; height: 46%; object-fit: cover; object-position: 60% 35%; }
.phone .pills { position: absolute; top: 34px; left: 10px; display: flex; gap: 5px; }
.phone .pills span { padding: 4px 9px; border-radius: 99px; background: rgb(255 255 255 / 0.95); font: 800 10px system-ui; }
.phone .pills .state { background: #9a4d0c; color: #fff; }
.phone .sheet { position: absolute; top: 42%; right: 0; bottom: 0; left: 0; padding: 14px 13px 0; border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -6px 16px rgb(0 0 0 / 0.16); }
.phone .name { font: 900 30px/1 system-ui; letter-spacing: -0.03em; }
.phone .chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 9px 0 10px; }
.phone .chips span { padding: 4px 9px; border-radius: 99px; background: #fbe3c7; color: #6b3406; font: 800 10px system-ui; }
.phone .act { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 42px; margin-top: 7px; border: 3px solid #9a4d0c; border-radius: 99px; font: 800 12.5px system-ui; text-align: center; }
.phone .act small { font: 700 11px system-ui; }
.phone .call { background: #9a4d0c; color: #fff; }
.phone .alt { color: #9a4d0c; }

/* Rozdziały: linia przez całą szerokość z pinezką na środku, pod nią wyśrodkowane hasło */
.chapter { padding-top: clamp(5rem, 10vw, 8rem); }
.chapter-head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); text-align: center; }
.divider { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.divider svg { flex: none; width: 28px; height: 38px; fill: var(--signal); }
.chapter-head h2 { max-width: 16ch; margin: 0 auto; font: 800 clamp(2.6rem, 6.2vw, 5.8rem)/0.95 var(--display); letter-spacing: -0.04em; text-wrap: balance; }

/* Drogi: co chcesz zrobić */
.paths { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.paths li { border-bottom: 1px solid var(--line); }
.paths a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 2rem; padding: 1.8rem 0.4rem; text-decoration: none;
  transition: background-color 0.25s, padding 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.paths .q { color: var(--muted); font-weight: 500; }  /* pytanie i odpowiedź w jednym zdaniu, bez małego napisu nad nagłówkiem */
.paths .do { font: 800 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--display); letter-spacing: -0.03em; }
.paths .arrow { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 2px solid var(--line); transition: background-color 0.25s, border-color 0.25s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.paths .arrow svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.paths a:hover { background: rgb(255 248 239 / 0.04); padding-inline: 1.2rem; }
.paths a:hover .arrow { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateX(4px); }

/* Jak to działa: cztery kroki */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { position: relative; padding-top: 4.2rem; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font: 800 3.4rem/1 var(--display); color: var(--accent); letter-spacing: -0.04em; }
.steps li::after { content: ""; position: absolute; top: 1.6rem; left: 3rem; right: -1.4rem; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps b { display: block; margin-bottom: 0.4rem; font-size: 1.3rem; line-height: 1.2; }
.steps span { color: var(--muted); }

/* Zakończenie: morelowe, wyróżnia zakup */
.chapter.end { margin-top: clamp(5rem, 10vw, 8rem); padding-block: clamp(5rem, 10vw, 8rem); background: var(--accent); color: var(--on-accent); text-align: center; }
.chapter.end .divider::before, .chapter.end .divider::after { background: rgb(31 22 15 / 0.22); }
.chapter.end .divider svg { fill: var(--forest-900); }
.chapter.end em { color: var(--forest-900); }
.chapter.end .lead { max-width: 44ch; margin: 0 auto 2rem; font-size: 1.3rem; color: var(--accent-ink); }
.chapter.end .ctas { justify-content: center; }
.chapter.end .btn-main { background: var(--forest-900); color: var(--ink); }
.chapter.end .btn-ghost { color: var(--on-accent); }
.chapter.end :focus-visible { outline-color: var(--forest-900); }

/* Stopka */
.foot { padding-block: 3rem; color: var(--muted); font-size: 0.98rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.4rem 2rem; align-items: center; }
.foot .logo { font-size: 1.3rem; margin-right: 0.8rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.foot nav a { color: var(--ink); }

@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; }
  .compare { height: 460px; }
  /* Na wąskim ekranie plakat jest pomniejszony w całości, a telefon ma własne, czytelne rozmiary tekstu
     (bez zmniejszania transformacją, żeby przyciski na stronie zwierzaka dało się przeczytać) */
  .compare .before .poster { transform: rotate(-4deg) scale(0.5); }
  .compare .after .phone { width: 170px; height: auto; padding: 7px; border-radius: 30px; justify-self: end; margin-right: 12px; }
  .compare .handle::after { width: 44px; height: 44px; margin: -22px; background-size: 20px; }
  .compare .after .phone .screen { border-radius: 24px; }
  .compare .after .phone .notch { top: 5px; width: 54px; height: 15px; margin-left: -27px; }
  .compare .after .phone .pills { top: 24px; left: 7px; }
  .compare .after .phone .pills span { padding: 3px 7px; font-size: 9px; }
  .compare .after .phone .sheet { padding: 10px 9px 0; border-radius: 16px 16px 0 0; }
  .compare .after .phone .name { font-size: 22px; }
  .compare .after .phone .chips { margin: 6px 0 6px; gap: 4px; }
  .compare .after .phone .chips span { padding: 3px 7px; font-size: 9.5px; }
  .compare .after .phone .act { min-height: 34px; margin-top: 5px; font-size: 11px; border-width: 2px; }
  .compare .after .phone .act small { font-size: 10px; }
  .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; }
  .top nav .wide-only { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .compare .cap { font-size: 0.8rem; } .compare .cap.b { top: 14px; bottom: auto; }
}
