/* Erpino – strona produktu. Czcionka Bricolage Grotesque (OFL) z własnego serwera – bez Google Fonts (RODO). */
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #13201C;        /* ciemna zieleń magazynowa */
  --ink-2: #1D2E29;
  --mint: #3DDC97;       /* akcent Erpino */
  --paper: #EEF2EF;      /* tło strony – chłodna szarozieleń */
  --white: #FFFFFF;
  --line: #CBD6D0;
  --muted: #4F625B;
  --tag: #FFE45C;        /* żółta etykieta półkowa – tylko w cenniku */
  --prog: #F5B800;       /* kolor programu wybranego w przełączniku */
  --prog-ink: #14181D;
  --font: "Bricolage", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}
body[data-program="nexo"]   { --prog: #F5B800; --prog-ink: #14181D; }
body[data-program="optima"] { --prog: #FF7A3D; --prog-ink: #0F2236; }
body[data-program="xl"]     { --prog: #3FB6E6; --prog-ink: #1C1530; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.55;
  font-variation-settings: "opsz" 14; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-variation-settings: "opsz" 96; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 17px/1 var(--font);
  text-decoration: none; cursor: pointer; border: 2px solid transparent; }
.btn-main { background: var(--mint); color: var(--ink); }
.btn-main:hover { background: #5BE6A9; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); min-height: 42px; }
.btn-ghost:hover { border-color: #fff; }

/* --- nagłówek --- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 14px max(20px, calc((100vw - 1160px) / 2)); background: var(--ink); color: #fff; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -.3px; }
.logo img { border-radius: 8px; }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { text-decoration: none; color: #C9D6D0; font-size: 16px; }
.top nav a:hover { color: #fff; }

/* --- hero: ciemne tło, telefon pokazuje skanowanie do dokumentu --- */
.hero { background: var(--ink); color: #fff; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center;
  padding: 72px max(20px, calc((100vw - 1160px) / 2)) 88px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 760; letter-spacing: -2px; max-width: 11ch; }
.lead { margin-top: 24px; font-size: 21px; color: #C9D6D0; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn-line { color: #fff; }
.works-with { margin-top: 48px; }
.works-with > p:first-child { font-size: 15px; color: #9FB3AB; margin-bottom: 10px; }
.programs { display: flex; flex-wrap: wrap; gap: 8px; }
.programs button { font: 500 15px/1 var(--font); color: #E3ECE8; background: var(--ink-2); border: 1.5px solid #34463F; border-radius: 10px; padding: 11px 14px; cursor: pointer; }
.programs button[aria-checked="true"] { background: var(--prog); border-color: var(--prog); color: var(--prog-ink); font-weight: 650; }
.program-note { margin-top: 12px; font-size: 15px; color: #9FB3AB; min-height: 1.5em; }

.phone-wrap { display: flex; justify-content: center; }
.phone { width: 300px; aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 12px; background: #050807; box-shadow: 0 0 0 2px #2B3B35, 0 40px 80px -30px rgba(0, 0, 0, .7); }
.screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: #F3F4F1; color: #14181D; display: flex; flex-direction: column; font-size: 14px; }
.app-bar { display: flex; gap: 12px; align-items: center; padding: 34px 16px 14px; background: var(--prog-ink); color: #fff; transition: background .4s; }
.app-bar .back { font-size: 22px; line-height: 1; }
.app-bar b { display: block; font-size: 16px; }
.app-bar small { color: #A9B0B8; font-size: 12px; }
.scan { position: relative; margin: 14px; height: 92px; border-radius: 14px; background: #1E2329; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.scan span { position: relative; z-index: 2; margin-bottom: 8px; font-size: 12px; color: #C8CDD2; }
.bars { position: absolute; inset: 18px 60px 30px; background: repeating-linear-gradient(90deg, #E8EAEC 0 2px, transparent 2px 4px, #E8EAEC 4px 7px, transparent 7px 9px, #E8EAEC 9px 10px, transparent 10px 13px); opacity: .85; }
.beam { position: absolute; z-index: 1; left: 40px; right: 40px; height: 2px; top: 14px; background: var(--prog); box-shadow: 0 0 12px 3px var(--prog); animation: beam 1.8s ease-in-out infinite alternate; }
@keyframes beam { to { top: 60px; } }
.lines { list-style: none; margin: 0; padding: 0 14px; display: grid; gap: 8px; }
.lines li { display: flex; font-size: 13px; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #fff; border: 1px solid #DADDE1; border-radius: 10px; opacity: 0; }
.lines li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.l1 { animation: l1 10s infinite; } .l2 { animation: l2 10s infinite; } .l3 { animation: l3 10s infinite; }
@keyframes l1 { 0%, 12% { opacity: 0; transform: translateY(-8px); } 15%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes l2 { 0%, 30% { opacity: 0; transform: translateY(-8px); } 33%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes l3 { 0%, 48% { opacity: 0; transform: translateY(-8px); } 51%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.total { margin: auto 14px 10px; display: flex; white-space: nowrap; gap: 8px; justify-content: space-between; align-items: baseline; padding: 12px; border-top: 1px solid #DADDE1; }
.sum { position: relative; font-size: 22px; font-variant-numeric: tabular-nums; min-width: 5.8em; text-align: right; height: 1.3em; }
.sum span { position: absolute; right: 0; opacity: 0; }
.s0 { animation: s0 10s infinite; } .s1 { animation: s1 10s infinite; } .s2 { animation: s2 10s infinite; } .s3 { animation: s3 10s infinite; }
@keyframes s0 { 0%, 14% { opacity: 1; } 15%, 100% { opacity: 0; } }
@keyframes s1 { 0%, 14% { opacity: 0; } 15%, 32% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes s2 { 0%, 32% { opacity: 0; } 33%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes s3 { 0%, 50% { opacity: 0; } 51%, 96% { opacity: 1; } 97%, 100% { opacity: 0; } }
.saved { margin: 0 14px 22px; padding: 12px; border-radius: 12px; background: #DDF2E6; color: #1F7A4D; font-size: 13px; text-align: center; animation: saved 10s infinite; opacity: 0; }
.saved b { display: block; font-size: 16px; color: #14181D; }
@keyframes saved { 0%, 66% { opacity: 0; transform: scale(.96); } 70%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .beam, .lines li, .sum span, .saved { animation: none; }
  .lines li, .saved, .s3 { opacity: 1; }
  .beam { top: 40px; }
}

/* --- sekcje --- */
section:not(.hero) { padding: 96px max(20px, calc((100vw - 1160px) / 2)); }
section h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 720; letter-spacing: -1.2px; max-width: 18ch; }

.feature-list { margin: 48px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.feature-list div { padding: 22px 0; border-top: 1.5px solid var(--line); }
.feature-list dt { font-size: 22px; font-weight: 650; letter-spacing: -.3px; }
.feature-list dd { margin: 6px 0 0; color: var(--muted); max-width: 34em; }

.how { background: var(--white); }
.steps { list-style: none; counter-reset: s; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--mint); font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.steps h3 { font-size: 24px; font-weight: 650; letter-spacing: -.4px; }
.steps p { margin-top: 8px; color: var(--muted); }
.safe { margin-top: 56px; padding: 20px 24px; border-left: 4px solid var(--mint); background: var(--paper); max-width: 52em; }

/* --- cennik jako etykiety półkowe --- */
.pricing-head { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: end; justify-content: space-between; }
.pricing-head p { color: var(--muted); max-width: 30em; }
.tags { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.tag { position: relative; display: flex; flex-direction: column; background: var(--tag); color: #1A1A12; border-radius: 6px; padding: 24px 20px 16px;
  box-shadow: 0 1px 0 #D6BE3F, 0 18px 30px -22px rgba(19, 32, 28, .55); }
.tag::before { content: ""; position: absolute; top: 10px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.tag h3 { margin-top: 14px; font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.tag .price { margin-top: 6px; font-size: 22px; font-weight: 600; }
.tag .price b { font-size: 64px; font-weight: 800; letter-spacing: -2.5px; font-variant-numeric: tabular-nums; }
.tag .price small { display: block; font-size: 14px; font-weight: 500; }
.tag ul { margin: 16px 0 20px; padding: 0; list-style: none; font-size: 16px; display: grid; gap: 6px; }
.tag li { padding-left: 18px; position: relative; }
.tag li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 2px; background: #1A1A12; }
.ean { margin-top: auto; width: 100%; height: 56px; }
.ean text { font: 11px var(--mono); fill: #1A1A12; }
.tag-best { background: var(--ink); color: #fff; box-shadow: 0 0 0 3px var(--mint); }
.tag-best li::before { background: var(--mint); }
.tag-best .ean rect, .tag-best .ean text { fill: #fff; }
.best { position: absolute; top: -14px; right: 14px; background: var(--mint); color: var(--ink); font-size: 14px; font-weight: 650; padding: 4px 10px; border-radius: 999px; }
.extras { margin-top: 40px; width: 100%; max-width: 760px; border-collapse: collapse; }
.extras caption { text-align: left; font-size: 22px; font-weight: 650; padding-bottom: 8px; }
.extras th, .extras td { padding: 14px 0; border-top: 1.5px solid var(--line); text-align: left; font-weight: 400; }
.extras td { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 16px; font-variant-numeric: tabular-nums; }

/* --- pytania --- */
.faq { background: var(--white); }
.faq h2 { margin-bottom: 32px; }
.faq details { border-top: 1.5px solid var(--line); max-width: 860px; }
.faq details:last-of-type { border-bottom: 1.5px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-size: 21px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 30px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 44em; }

/* --- kontakt --- */
.contact { background: var(--ink); color: #fff; }
.contact > p { margin-top: 16px; color: #C9D6D0; max-width: 40em; }
.contact-form { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; max-width: 760px; }
.contact-form label { display: grid; gap: 6px; font-size: 15px; color: #C9D6D0; }
.contact-form .wide { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { font: 17px var(--font); color: #fff; background: var(--ink-2); border: 1.5px solid #34463F; border-radius: 10px; padding: 12px 14px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--mint); outline: none; }
.contact-form .btn { justify-self: start; }
.direct { margin-top: 24px; color: #C9D6D0; }
.direct a { color: var(--mint); }

.foot { padding: 40px max(20px, calc((100vw - 1160px) / 2)) 56px; font-size: 15px; color: var(--muted); }
.foot .legal { margin-top: 10px; font-size: 13px; max-width: 70em; }

/* --- logowanie: wybór programu --- */
.login { border: none; border-radius: 20px; padding: 32px; width: min(520px, calc(100vw - 32px)); background: var(--white); color: var(--ink); }
.login::backdrop { background: rgba(19, 32, 28, .6); }
.login h2 { font-size: 32px; }
.login > p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.login-close { position: absolute; top: 12px; right: 12px; }
.login-close button { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--paper); font-size: 24px; cursor: pointer; color: var(--ink); }
.login-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.login-list a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line); text-decoration: none; font-size: 19px; font-weight: 650; border-left: 8px solid var(--c); }
.login-list a:hover { background: var(--paper); }
.login-list span { font-size: 15px; font-weight: 400; color: var(--muted); }
.login-list [data-prog="subiekt"] { --c: #F5B800; } .login-list [data-prog="optima"] { --c: #FF7A3D; } .login-list [data-prog="xl"] { --c: #3FB6E6; }

/* --- telefon / wąskie ekrany --- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .top { gap: 12px; }
  .top nav { display: none; }
  .top .btn-ghost { margin-left: auto; }
  .hero h1 { letter-spacing: -1px; }
  .lead { font-size: 19px; }
  section:not(.hero) { padding-top: 64px; padding-bottom: 64px; }
  .feature-list { grid-template-columns: 1fr; }
  .tags { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .phone { width: 260px; }
}
.screen > * { flex-shrink: 0; }
@media (max-width: 720px) {
  .screen { font-size: 12.5px; }
  .lines li { font-size: 12px; padding: 8px 10px; }
  .scan { height: 74px; }
  .app-bar { padding-top: 28px; }
  .sum { font-size: 19px; }
}
