/* Sorimo – strona www (sorimo.app). Kolory i czcionki wspólne z aplikacją. */
:root {
  --bg: #edf2ef; --surface: #ffffff; --surface-2: #f6f9f7; --line: #cfdbd5;
  --ink: #15211d; --muted: #586a64; --accent: #23735f; --accent-ink: #ffffff; --accent-soft: #d3e9e1;
  --seal: #b8392e; --seal-soft: #f6dcd8; --amber-soft: #f6e6c8;
  --shadow: 0 1px 2px rgba(21, 33, 29, .06), 0 14px 40px -18px rgba(21, 33, 29, .28);
  --f-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-kr: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --r: 18px; --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1311; --surface: #141d1a; --surface-2: #18231f; --line: #26332e;
    --ink: #e4ede9; --muted: #92a59e; --accent: #6cc4a8; --accent-ink: #08201a; --accent-soft: #1b3a31;
    --seal: #ec7468; --seal-soft: #3b1f1c; --amber-soft: #3a2d14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
.kr { font-family: var(--f-kr); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 22px; }

/* przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; font: 600 1rem var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost[aria-disabled="true"] { color: var(--muted); cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-note { font-size: .9rem; color: var(--muted); }

/* nagłówek */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.35rem var(--f-display); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand b { color: var(--accent); font-weight: 800; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.top nav a:not(.btn):hover { color: var(--ink); }
.top .btn { min-height: 42px; padding: 0 16px; font-size: .95rem; }
@media (max-width: 860px) { .top nav a:not(.btn) { display: none; } }

/* sekcje */
section { padding: 72px 0; }
.section-head { max-width: 760px; }
.section-head > * + * { margin-top: 14px; }

/* hero */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-mark { position: absolute; right: -40px; top: -30px; font: 700 clamp(9rem, 22vw, 18rem)/1 var(--f-kr); color: var(--accent-soft); opacity: .7; pointer-events: none; user-select: none; z-index: 0; }
.hero .wrap > * { position: relative; z-index: 1; }
.hero h1 em { font-style: normal; color: var(--accent); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .9rem; color: var(--muted); }
.facts b { color: var(--ink); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero-mark { top: auto; bottom: 30%; } }

/* telefon ze zrzutem ekranu */
.phone { width: min(330px, 100%); margin-inline: auto; border-radius: 40px; padding: 10px; background: #0f1714; box-shadow: var(--shadow); }
.phone img { border-radius: 31px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; width: 100%; background: #edf2ef; }
.phone.sm { width: min(250px, 100%); border-radius: 32px; padding: 8px; }
.phone.sm img { border-radius: 25px; }

/* karty */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card > * + * { margin-top: 10px; }
.card p { color: var(--muted); }
.card .tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; }
.card .big-kr { font: 700 2.2rem/1 var(--f-kr); color: var(--accent); }
.mt { margin-top: 36px; }

/* dzień nauki */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.flow figure { margin: 0; }
.flow figcaption { margin-top: 16px; }
.flow figcaption b { display: block; font-family: var(--f-display); font-size: 1.1rem; }
.flow figcaption span { color: var(--muted); font-size: .95rem; }
.flow .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .85rem; margin-bottom: 8px; }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* metoda */
.method { background: var(--surface); border-block: 1px solid var(--line); }
.principle { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.principle > * + * { margin-top: 8px; }
.principle p { color: var(--muted); }
.principle .in-app { color: var(--ink); font-size: .95rem; }
.principle .in-app::before { content: "W Sorimo: "; font-weight: 600; color: var(--accent); }
.sources { font-size: .85rem; color: var(--muted); }

/* etapy */
.stages { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stages li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; gap: 14px; align-items: baseline; }
.stages .n { font: 800 1.5rem/1 var(--f-display); color: var(--accent); min-width: 26px; }
.stages b { display: block; }
.stages span { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .stages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stages { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.rev > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; }
.checks li + li { margin-top: 10px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 5px var(--accent); }

/* cennik */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; align-items: start; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr 1fr; } .plans .plan:first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan-badge { align-self: flex-start; font-size: .8rem; font-weight: 600; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 4px 12px; }
.plan-sub { color: var(--muted); font-size: .95rem; margin-top: -6px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border: 2px solid var(--accent); }
.plan .price { font: 800 2.3rem/1 var(--f-display); }
.plan .price small { font: 500 1rem var(--f-body); color: var(--muted); }
.plan .checks li { font-size: .97rem; }
.notice { margin-top: 22px; background: var(--amber-soft); border-radius: 14px; padding: 14px 18px; font-size: .95rem; }

/* FAQ */
.faq { margin-top: 32px; max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div > * + * { margin-top: 10px; }

/* CTA */
.cta { text-align: center; }
.cta .box { background: var(--accent); color: var(--accent-ink); border-radius: 28px; padding: 56px 24px; }
.cta .box > * + * { margin-top: 16px; }
.cta .box p { opacity: .9; max-width: 52ch; margin-inline: auto; }
.cta .btn { background: var(--accent-ink); color: var(--accent); margin-top: 26px; }

/* stopka */
footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; align-content: start; }
footer nav a { color: var(--muted); }
footer p + p { margin-top: 6px; }
@media (max-width: 720px) { footer .wrap { grid-template-columns: 1fr; } footer nav { justify-content: flex-start; } }

/* dokumenty */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.doc .meta { color: var(--muted); margin-top: 10px; font-size: .95rem; }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; margin-top: 26px; }
.doc .toc ol { margin: 6px 0 0; padding-left: 20px; }
.doc .toc li + li { margin-top: 2px; }
.doc h2 { font-size: 1.45rem; margin-top: 40px; scroll-margin-top: 90px; }
.doc h3 { margin-top: 24px; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-top: 18px; }
.doc .box > :first-child { margin-top: 0; }
.doc .warn { background: var(--seal-soft); border-color: transparent; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .95rem; background: var(--surface); border-radius: 12px; overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--surface-2); font-weight: 600; }
.doc .table-scroll { overflow-x: auto; }
.doc .table-scroll table { min-width: 560px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; min-height: 28px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 600; font-size: .85rem; }

/* tabela w dokumentach: na telefonie każdy wiersz jako karta */
@media (max-width: 620px) {
  .doc .stack-table table { min-width: 0; background: none; }
  .doc .stack-table thead { display: none; }
  .doc .stack-table tr { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; }
  .doc .stack-table tr + tr { margin-top: 10px; }
  .doc .stack-table td { display: block; border: 0; padding: 8px 0; }
  .doc .stack-table td + td { border-top: 1px solid var(--line); }
  .doc .stack-table td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
}
