/* Learn Once - wygląd strony. Wartości przeniesione z makiety Brain.dc.html (motyw signal). */

/* ---------- czcionki (własny serwer, OFL: static/fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-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: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/instrument-sans-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;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-italic-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: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-italic-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;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-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: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/instrument-serif-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;
}

/* ---------- motyw signal (jedyny) ---------- */
:root {
  --bg: #050A14; --fg: #EAF2FF; --muted: #A8B4C8; --line: rgba(234,242,255,.22); --accent: #4DA3FF;
  --on-accent: #04101F; --card: rgba(234,242,255,.055); --glow: rgba(77,163,255,.16); --pulse: rgba(77,163,255,.55);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  color-scheme: dark;
}
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); }
[hidden] { display: none !important; }

.ln-root { font-family: var(--sans); color: var(--fg); background: var(--bg); overflow-x: hidden; }
.ln-root a { color: var(--fg); }
.ln-root a:hover { color: var(--accent); }
/* :where - zerowa specyficzność, żeby klasy przycisków (jak style w atrybutach makiety) wygrywały z font: inherit */
:where(.ln-root) button { font: inherit; cursor: pointer; }
.ln-root button:focus-visible, .ln-root a:focus-visible, .ln-root input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ln-root em { font-style: italic; }
main:focus, .card:focus, .join-ok:focus { outline: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--accent); color: var(--on-accent) !important; padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- animacje (z makiety) ---------- */
@keyframes ln-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ln-in { animation: ln-in 420ms ease-out both; }
@keyframes ln-note-a { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ln-note-b { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ln-pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--pulse); } 50% { box-shadow: 0 0 0 16px rgba(0,0,0,0); } }
.ln-pulse { animation: ln-pulse 1.6s ease-out infinite; }
@keyframes ln-bar-a { from { width: 0; } to { width: 100%; } }
@keyframes ln-bar-b { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ln-in, .ln-pulse { animation: none; } }

/* ---------- wspólne ---------- */
.eyebrow { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.tag { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.label-muted { color: var(--muted); }
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.015em; }
.h2 em, .hero-title em, .band-quote em, .join-title em, .brand em { color: var(--accent); }
.balance { text-wrap: balance; }
.sec-lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 600; box-sizing: border-box; white-space: nowrap; }
.btn-solid { border: 0; background: var(--accent); color: var(--on-accent); }
.ln-root a.btn-solid, .ln-root a.btn-solid:hover { color: var(--on-accent); }
.btn-ghost { border: 1px solid var(--fg); background: transparent; color: var(--fg); }
.btn-show { align-self: flex-start; height: 54px; padding: 0 26px; font-size: 17px; }
.btn-md { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-sm { align-self: flex-start; height: 46px; padding: 0 20px; font-size: 15px; }
.btn-link { text-decoration: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- nagłówek ---------- */
.site-header { max-width: 1320px; margin: 0 auto; padding: 24px 24px 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: baseline; text-decoration: none; font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: -0.01em; min-height: 44px; }
.ln-root a.brand:hover { color: var(--fg); }
/* Proporcje jak w logo poziomym (marka/zrodla/buduj.py): znak 150 przy napisie 104, odstęp 14. */
.brand-mark { height: 1.442em; width: 1.553em; margin-right: 0.135em; position: relative; top: 0.056em; flex: none; }
.brand-mark .mark-dot { fill: var(--accent); }
.brand-sm { font-size: 26px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 16px; font-weight: 500; }
.site-nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.ln-root .btn-cta, .ln-root .btn-cta:hover { background: var(--accent); color: var(--on-accent); padding: 13px 22px; border-radius: 999px; font-weight: 600; min-height: 0; box-sizing: border-box; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: -8px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; }
.lang-switch a { justify-content: center; min-width: 44px; color: var(--muted) !important; }
.lang-switch a:hover { color: var(--fg) !important; }
.lang-switch a[aria-current="page"] { color: var(--fg) !important; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- pierwszy ekran ---------- */
.hero { background: radial-gradient(760px 600px at 68% 44%, var(--glow), rgba(0,0,0,0) 72%); }
.hero-inner { max-width: 1320px; margin: 0 auto; padding: 12px 24px 64px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; min-height: 740px; }
.hero-col-a { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding-top: clamp(8px, 3.4vw, 48px); }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 6.4vw, 104px); line-height: 0.94; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 500px; text-wrap: pretty; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 252px; box-sizing: border-box; }
.card-mode { display: flex; flex-direction: column; gap: 14px; }
.card-idle { gap: 12px; }
.card-q { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.14; }
.card-hidden { display: flex; flex-direction: column; gap: 10px; }
.card-prompt { margin: 0; font-size: 15px; color: var(--muted); }
.card-shown { display: flex; flex-direction: column; gap: 14px; }
.card-a { margin: 0; font-size: 17px; line-height: 1.55; border-top: 1px dashed var(--line); padding-top: 14px; }
.card-wait { margin: 0; font-size: 16px; color: var(--muted); }
.hero-col-b { flex: 999 1 580px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.brainwrap { display: flex; flex-direction: column; gap: 14px; }
#lo-brain { width: 100%; aspect-ratio: 1.3 / 1; display: block; touch-action: pan-y; }
.note { margin: 0; min-height: 2.5em; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.25; text-wrap: balance; }
#lo-curve { width: 100%; height: 132px; display: block; }
.hero-foot { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; }
@media (max-width: 880px) {
  .ln-hero { flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; min-height: 0 !important; gap: 22px !important; }
  .ln-col { display: contents !important; }
  .ln-text { order: 1; } .ln-brainwrap { order: 2; } .ln-card { order: 3; } .ln-curve { order: 4; } .ln-foot { order: 5; }
}

/* ---------- pas o neuronach ---------- */
.band { border-top: 1px solid var(--line); }
.band-inner { max-width: 1100px; margin: 0 auto; padding: 96px 24px; display: flex; flex-direction: column; gap: 18px; text-align: center; align-items: center; }
.band-quote { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4.8vw, 68px); line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
.band-src { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- sekcje ---------- */
.sec { border-top: 1px solid var(--line); }
.sec-inner { max-width: 1320px; margin: 0 auto; padding: 88px 24px; }
.close-inner { display: flex; flex-direction: column; gap: 32px; }
.sec-head { display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 8px; margin: -4px; }
.tab { position: relative; overflow: hidden; flex: 1 0 168px; min-height: 76px; text-align: left; padding: 12px 16px 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 4px; color: var(--fg); border: 1px solid var(--line); background: transparent; }
.tab.is-on { border: 1px solid var(--accent); background: var(--card); }
.tab-no { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); }
.tab-title { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.tab-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); }
.syn-frame { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
#lo-synapse { width: 100%; height: clamp(300px, 36vw, 500px); display: block; }
.stage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px 56px; align-items: start; }
.stage-col { display: flex; flex-direction: column; gap: 10px; }
.stage-bio { margin: 0; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.16; min-height: 3.5em; }
.stage-app { margin: 0; font-size: 19px; line-height: 1.55; min-height: 4.6em; }
.close-src { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

.depth-inner { display: flex; flex-direction: column; gap: 44px; }
.depth-head { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.depth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 22px; }
.depth-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.depth-q { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.16; }
.depth-a { margin: auto 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }

.app-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px; align-items: center; }
.app-text { display: flex; flex-direction: column; gap: 20px; }
.app-lead { max-width: 520px; }
.app-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 18px; line-height: 1.5; }
.app-points li { display: flex; gap: 12px; }
.app-points li > span:first-child { color: var(--accent); }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: min(320px, 100%); border: 1px solid var(--line); border-radius: 44px; padding: 12px; background: var(--card); }
.phone-screen { border-radius: 34px; background: var(--bg); border: 1px solid var(--line); padding: 30px 20px 22px; display: flex; flex-direction: column; gap: 16px; min-height: 540px; box-sizing: border-box; }
.phone-count { margin: 0; font-family: var(--serif); font-size: 52px; line-height: 1; }
.phone-time { margin: 0; font-size: 15px; color: var(--muted); }
.phone-rows { display: flex; flex-direction: column; gap: 10px; }
.phone-row { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.phone-row span:first-child { font-weight: 600; font-size: 16px; }
.phone-row span:last-child { font-size: 14px; color: var(--muted); }
.phone-btn { margin-top: auto; height: 56px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px; }

/* ---------- zapis na listę ---------- */
.join { border-top: 1px solid var(--line); background: radial-gradient(800px 420px at 50% 115%, var(--glow), rgba(0,0,0,0) 70%); }
.join-inner { max-width: 1000px; margin: 0 auto; padding: 112px 24px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.join-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 10vw, 150px); line-height: 0.94; letter-spacing: -0.02em; }
.join-lead { margin: 0; font-size: 20px; line-height: 1.55; max-width: 560px; color: var(--muted); }
.join-form { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 580px; }
.join-field { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.join-label { font-size: 15px; font-weight: 500; color: var(--fg); padding-left: 22px; }
.join-label span { color: var(--muted); font-weight: 400; }
.join-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
.join-input { min-width: 0; width: 100%; height: 60px; box-sizing: border-box; padding: 0 22px; border: 1px solid var(--fg); border-radius: 999px; background: transparent; color: var(--fg); font: inherit; font-size: 18px; }
.join-input::placeholder { color: var(--muted); opacity: 1; }
.join-input[aria-invalid="true"] { border-color: #FF8A8A; }
.join-email { flex: 1 1 260px; width: auto; }
.join-submit { height: 60px; padding: 0 30px; font-size: 18px; }
.join-submit[disabled] { opacity: .7; cursor: progress; }
.join-error { margin: 0; font-size: 15px; font-weight: 500; color: #FF9C9C; text-align: left; padding-left: 22px; }
.join-note { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 580px; }
.join-note a { white-space: nowrap; }
.join-ok { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.join-ok-title { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; color: var(--fg); }
.join-ok-body { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.join-closed { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; color: var(--fg); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- stopka ---------- */
.site-footer { max-width: 1320px; margin: 0 auto; padding: 32px 24px 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .brand { color: var(--fg); }
.site-footer a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.site-footer a:not(.brand):hover { color: var(--accent); }

/* ---------- polityka prywatności, 404 ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 48px 24px 96px; font-size: 18px; line-height: 1.6; }
.doc-title { margin: 0 0 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -0.015em; }
.doc-lead { margin: 0 0 12px; font-size: 20px; color: var(--muted); }
.doc h2 { margin: 36px 0 8px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc a { text-underline-offset: 3px; }
.doc-meta { margin-top: 36px !important; font-size: 15px; color: var(--muted); }
