/* FutuStory – wspólny styl strony głównej i stron informacyjnych (quiz i kalkulator mają style wbudowane) */
:root {
  --navy: #14243A; --teal: #087F8C; --teal-d: #066A75; --mist: #EAF3F6; --line: #D5E2E7;
  --ink: #1E2B38; --muted: #5B6B78; --bg: #F7FAFB; --card: #FFFFFF; --warn: #FFF6E5; --warn-line: #F0D9A8;
  --ok: #E6F4EA; --ok-line: #B8DEC4; --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #DCE8EE; --teal: #3FB8C4; --teal-d: #5CCAD5; --mist: #16303A; --line: #27414B;
    --ink: #E7EEF2; --muted: #9FB1BC; --bg: #0E1A22; --card: #13232D; --warn: #2C2615; --warn-line: #5A4A22;
    --ok: #15301F; --ok-line: #2D5A3C;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--teal); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.top { padding: 20px 0 0; }
.brand { font-weight: 700; letter-spacing: .08em; color: var(--teal); font-size: 13px; text-transform: uppercase; text-decoration: none; }
.brand small { letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 6px; }
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; margin: 28px 0 14px; color: var(--navy); letter-spacing: -.01em; }
h2 { font-size: clamp(21px, 3.6vw, 26px); line-height: 1.25; margin: 0 0 12px; color: var(--navy); }
h3 { font-size: 17px; margin: 0 0 6px; color: var(--navy); }
p { margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 18px; }
section { padding: 28px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; margin: 14px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; background: var(--teal);
       color: #fff; font: inherit; font-weight: 600; padding: 13px 20px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--teal-d); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--teal); border: 1px solid var(--line); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.grid2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
ul.check { list-style: none; padding: 0; margin: 8px 0 0; }
ul.check li { position: relative; padding-left: 28px; margin-bottom: 8px; }
ul.check li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
ul.cross { padding-left: 20px; margin: 8px 0 0; color: var(--muted); }
ol.flow { list-style: none; padding: 0; margin: 0; counter-reset: f; }
ol.flow li { counter-increment: f; position: relative; padding: 0 0 18px 48px; }
ol.flow li::before { content: counter(f); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--mist);
                     color: var(--teal); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price b { font-size: 40px; color: var(--navy); line-height: 1; }
.price s { color: var(--muted); font-size: 18px; }
.offer { border: 2px solid var(--teal); }
.dark { background: var(--navy); color: #fff; border: 0; }
.dark h2, .dark p, .dark h3 { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dark { background: #0B5560; } }
label { display: block; font-weight: 600; margin: 14px 0 6px; color: var(--navy); }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], select, textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; }
textarea { min-height: 96px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.msg { margin-top: 12px; font-size: 15px; }
.msg.err { color: #B3261E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msg.err { color: #F2B8B5; } }
.note { background: var(--warn); border: 1px solid var(--warn-line); border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.okbox { background: var(--ok); border: 1px solid var(--ok-line); border-radius: 12px; padding: 18px; }
.small { font-size: 14px; color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details p { margin: 10px 0 0; color: var(--muted); }
footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 20px 0 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-right: 14px; }
.legal h2 { font-size: 19px; margin-top: 26px; }
.legal li { margin-bottom: 6px; }
.hidden { display: none !important; }
