/* Loqua — strona sprzedażowa. Kierunek: „zdanie jest układem” (taste-skill, seed 36022468).
   Paleta „kamień i błękit”: papier, atrament, jeden niebieski akcent na akcji i cenie. Bez linii, cieni i gradientów. */
:root {
  --bg: #dfdedb;
  --surface: #d3d2ce;
  --surface2: #c7c5c0;
  --ink: #26251e;
  --muted: #5f5d55;
  --paper-on-ink: #ecebe7;
  --muted-on-ink: #b9b7ae;
  --accent: #2456d6;
  --accent-ink: #ffffff;
  --accent-press: #1b45b0;
  --on-ink-surface: #37362e;
  --on-ink-surface-2: #45443a;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.3rem + 4.6vw, 6.5rem);
  --step-display: clamp(3.6rem, 1rem + 10.5vw, 10rem);
  --margin: clamp(16px, 4vw, 64px);
  --radius: 14px;
  /* PT Serif tylko dla znaków, których Boska nie ma (cyrylica: ukraiński). */
  --font: "Boska", "PT Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #1d1c18; --surface: #26251f; --surface2: #302f28; --ink: #ecebe7; --muted: #b3b1a8; --paper-on-ink: #1d1c18; --muted-on-ink: #5f5d55; --on-ink-surface: #d3d2ce; --on-ink-surface-2: #c7c5c0; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; letter-spacing: .005em; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Przyciski: jeden kształt na całej stronie */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font: 500 var(--step-body)/1 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: transform .18s var(--ease), background-color .18s var(--ease); }
.btn:hover { background: var(--accent-press); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--ghost { background: var(--surface); color: var(--ink); }
.btn--ghost:hover { background: var(--surface2); }

/* Nawigacja: przyjmuje atrament rozdziału pod sobą */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 14px var(--margin); color: var(--ink); transition: color .3s var(--ease); }
.nav.on-dark { color: var(--paper-on-ink); }
.wordmark { font-size: var(--step-lead); font-weight: 500; text-decoration: none; letter-spacing: -.02em; margin-right: auto; }
.nav nav { display: flex; gap: 22px; }
.nav nav a { text-decoration: none; font-size: var(--step-body); }
.nav nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .nav { gap: 12px; } .nav nav { display: none; } .nav .btn { min-height: 44px; padding: 0 14px; font-size: var(--step-small); } }

/* Hero: dwa pola, nagłówek przecięty krawędzią; w zdaniu okno ze zdjęciem sytuacji, a nazwa języka się zmienia.
   Dolne pole niesie opis i pasek sześciu języków (żywe demo lektora). */
.hero { --disp: var(--step-display); --seam: 50svh; position: relative; min-height: 100svh; background: var(--ink); padding: calc(var(--seam) + .7 * var(--disp) + 40px) var(--margin) 72px; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: var(--seam); background: var(--bg); }
/* Jedna kopia nagłówka: słowa w trybie „difference” biorą odwrotny kolor pola pod sobą (jasne na ciemnym, ciemne na jasnym).
   Bez transform na przodkach, bo kontekst warstw odciąłby tło od mieszania. */
.hero-type { position: absolute; left: 0; right: 0; top: var(--seam); text-align: center; padding: 0 var(--margin); }
.hero-h { margin: -1.2em auto 0; max-width: 1400px; font-weight: 500; font-size: var(--disp); line-height: .92; letter-spacing: -.03em; }
.hero-h .ink { color: #fff; mix-blend-mode: difference; }
#hero-lang { display: inline-block; transition: opacity .35s var(--ease), transform .35s var(--ease); }
#hero-lang.out { opacity: 0; transform: translateY(.12em); }
.slot { display: inline-block; width: 2.3em; height: .78em; vertical-align: baseline; border-radius: .14em; overflow: hidden; position: relative; transform: translateY(.04em); }
.slot img { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease); }
.hero-low { position: relative; max-width: 1100px; margin: 0 auto; text-align: center; color: var(--paper-on-ink); }
.hero-sub { margin: 0 auto 28px; max-width: 40ch; font-size: var(--step-lead); line-height: 1.35; }
.langbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lang { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; min-width: 132px; padding: 10px 18px; border: 0; border-radius: var(--radius); background: var(--on-ink-surface); color: var(--paper-on-ink); font-family: var(--font); cursor: pointer; transition: background-color .18s var(--ease), transform .18s var(--ease); }
.lang:hover { transform: translateY(-2px); background: var(--on-ink-surface-2); }
.lang:active { transform: translateY(1px) scale(.98); }
.lang[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.lang-e { font-size: var(--step-lead); line-height: 1.1; }
.lang-p { font-size: var(--step-small); opacity: .8; }
.hero-hint { margin: 18px auto 0; font-size: var(--step-body); color: var(--muted-on-ink); min-height: 1.5em; }
.hero-hint[lang] { color: var(--paper-on-ink); }
@media (max-width: 760px) {
  .hero { --disp: 12.5vw; --seam: 36svh; padding-bottom: 48px; }
  .slot { width: 1.8em; }
  .hero-sub { font-size: var(--step-body); }
  .lang { min-width: 0; flex: 1 1 calc(50% - 10px); min-height: 56px; }
}

/* Wspólne */
section { position: relative; padding: clamp(96px, 14vw, 180px) var(--margin); }
.h2 { margin: 0 0 32px; font-weight: 500; font-size: var(--step-head); line-height: .98; letter-spacing: -.03em; max-width: 14ch; }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; margin: 0 0 24px; }
.small { font-size: var(--step-small); color: var(--muted); max-width: 60ch; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; max-width: 1400px; margin: 0 auto; }
.col-left { grid-column: 1 / span 6; }
.col-right { grid-column: 7 / span 6; }
@media (max-width: 900px) { .col-left, .col-right { grid-column: 1 / -1; } }

/* Demo */
.demo { background: var(--bg); }
.pickers { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.pickers label { display: grid; gap: 6px; font-size: var(--step-small); color: var(--muted); }
select { font: 500 var(--step-body)/1.2 var(--font); color: var(--ink); background: var(--surface); border: 0; border-radius: var(--radius); padding: 12px 40px 12px 16px; min-height: 48px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2326251e' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.situations { display: flex; flex-wrap: wrap; gap: 10px; }
.sit { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 6px; border-radius: var(--radius); background: var(--surface); color: var(--ink); border: 0; font: 400 var(--step-body)/1.2 var(--font); cursor: pointer; transition: background-color .18s var(--ease), transform .18s var(--ease); }
.sit img { width: 44px; height: 36px; border-radius: 9px; object-fit: cover; }
.sit:hover { transform: translateY(-2px); background: var(--surface2); }
.sit[aria-pressed="true"] { background: var(--ink); color: var(--paper-on-ink); }
.demo-photo { margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.demo-photo img { width: 100%; height: 100%; object-fit: cover; }
.dialogue { display: grid; gap: 10px; margin-bottom: 20px; }
.line { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: var(--radius); background: var(--surface); max-width: 92%; }
.line--b { justify-self: end; background: var(--surface2); }
.line .who { display: block; font-size: var(--step-small); color: var(--muted); }
.line .t { display: block; font-size: var(--step-lead); line-height: 1.25; }
.line .tr { display: block; color: var(--muted); font-size: var(--step-body); }
.play { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper-on-ink); font-size: var(--step-body); cursor: pointer; transition: transform .18s var(--ease); }
.play:hover { transform: scale(1.06); }
.play[data-playing="true"] { background: var(--accent); color: var(--accent-ink); }

/* Lekcja jako pasek postępu */
.how { background: var(--surface); }
.bar { display: flex; gap: 6px; height: 22vh; min-height: 140px; margin-top: 64px; }
.seg { border-radius: var(--radius); padding: 20px; flex-basis: 0; min-width: 12%; }
.seg-n { font-size: var(--step-lead); line-height: 1.1; }
.seg--1 { background: var(--ink); color: var(--paper-on-ink); }
.seg--2 { background: var(--muted); color: var(--paper-on-ink); }
.seg--3 { background: var(--bg); color: var(--ink); }
.seg--4 { background: var(--accent); color: var(--accent-ink); }
.bar-notes { display: flex; gap: 6px; margin-top: 16px; }
.bar-notes p { flex-basis: 0; min-width: 12%; margin: 0; font-size: var(--step-body); line-height: 1.4; padding-right: 12px; }
.how .small { margin-top: 48px; }
.seg-c { display: none; }
@media (max-width: 760px) {
  .bar { flex-direction: column; height: 70svh; }
  .seg { min-height: 72px; min-width: 0; padding: 16px; }
  .seg-n { display: block; }
  .seg-c { display: block; font-size: var(--step-body); line-height: 1.35; margin-top: 6px; }
  .bar-notes { display: none; }
}

/* Akapit z obrazkami w miejscu słów */
.features { background: var(--bg); }
.statement { margin: 0; max-width: 30em; font-size: clamp(1.5rem, 1rem + 1.9vw, 2.75rem); line-height: 1.25; font-weight: 500; }
.pw { display: inline-block; height: 1em; width: 1.9em; border-radius: .18em; overflow: hidden; vertical-align: -.12em; background: var(--surface); position: relative; }
.pw img { width: 100%; height: 100%; object-fit: cover; }
.pw-bar { position: absolute; inset: 38% 12%; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.pw-bar i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.pw--chip { width: auto; padding: 0 .3em; font-size: .62em; height: 1.6em; line-height: 1.6em; vertical-align: .2em; background: var(--ink); color: var(--paper-on-ink); }
.pw--chat { width: auto; padding: 0 .4em; font-size: .62em; height: 1.6em; line-height: 1.6em; vertical-align: .2em; background: var(--surface2); white-space: nowrap; }
.feat-foot { margin: 72px 0 0 calc(50% - var(--margin) / 2); display: grid; gap: 8px; justify-items: start; }
@media (max-width: 900px) { .feat-foot { margin-left: 0; } }

/* Języki: zdanie po lewej, tabela sześciu języków z lektorem po prawej */
.langs { background: var(--bg); }
.ltable { display: grid; gap: 8px; align-content: start; }
.lrow { display: grid; grid-template-columns: 9.5em 1fr 48px; gap: 16px; align-items: center; padding: 12px 12px 12px 18px; border-radius: var(--radius); background: var(--surface); }
.lname { font-size: var(--step-body); color: var(--muted); }
.lsay { font-size: var(--step-lead); line-height: 1.2; }
@media (max-width: 760px) { .lrow { grid-template-columns: 1fr 48px; } .lname { grid-column: 1 / -1; } }

/* Prawdziwe ekrany aplikacji w ramkach telefonu */
.screens { background: var(--surface); }
.screens-text { align-self: center; }
.screens-text .btn { margin-top: 8px; }
.phones { position: relative; min-height: clamp(520px, 52vw, 760px); }
.phone { position: absolute; width: 44%; margin: 0; aspect-ratio: 780 / 1688; border-radius: 34px; overflow: hidden; background: var(--ink); border: 7px solid var(--ink); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone--1 { left: 0; top: 7%; z-index: 1; }
.phone--2 { left: 28%; top: 0; z-index: 2; }
.phone--3 { left: 56%; top: 11%; z-index: 1; }
@media (max-width: 900px) {
  .phones { min-height: 0; display: flex; gap: 8px; margin-top: 32px; }
  .phone { position: static; width: auto; flex: 1; border-width: 4px; border-radius: 20px; }
}

/* Album: wszystkie sytuacje jako mozaika zdjęć, pogrupowane działami */
.album { background: var(--bg); }
.album-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: 56px; }
.album-head .h2 { grid-column: 1 / span 7; margin: 0; max-width: none; }
.album-head .lead { grid-column: 8 / span 5; margin: 0; }
.mgroup { margin-top: 28px; }
.mgroup h3 { margin: 0 0 10px; font-weight: 500; font-size: var(--step-body); color: var(--muted); }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.mtile { margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface); }
.mtile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.mtile:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .album-head .h2, .album-head .lead { grid-column: 1 / -1; } .mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Dla kogo: trzy zdjęcia obok siebie z opisem profilu */
.who { background: var(--surface); }
.h2--indent { max-width: none; text-indent: 3vw; }
.who-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 72px; }
.who-strip figure { margin: 0; }
.who-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.who-strip figcaption { margin-top: 14px; font-size: var(--step-body); line-height: 1.45; max-width: 34ch; }
.who .small { margin-top: 24px; }
@media (max-width: 900px) { .h2--indent { text-indent: 0; } .who-strip { grid-template-columns: 1fr; gap: 40px; } }

/* Cena jako zdanie */
.pricing { background: var(--ink); color: var(--paper-on-ink); min-height: 80svh; }
.price-h { margin: 0; font-weight: 500; font-size: min(var(--step-display), 8.4vw); line-height: .98; letter-spacing: -.03em; }
.price { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 0 .15em; border-radius: .12em; line-height: 1.02; }
.price-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 64px; align-items: end; }
.price-foot .lead { grid-column: 1 / span 6; margin: 0; color: var(--paper-on-ink); }
.price-cta { grid-column: 9 / span 4; justify-self: end; text-align: right; }
.price-alt { margin: 12px 0 0; color: var(--muted-on-ink); font-size: var(--step-body); }
@media (max-width: 900px) { .price-foot .lead, .price-cta { grid-column: 1 / -1; justify-self: start; text-align: left; } .price-h { font-size: 9vw; } .price-cta .btn { width: 100%; } }

/* Pytania: duże pytania, odpowiedzi obok, wszystko otwarte */
.faq { background: var(--bg); }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-bottom: 80px; align-items: baseline; }
.q { grid-column: 1 / span 6; margin: 0; font-weight: 500; font-size: var(--step-lead); line-height: 1.15; }
.q--muted { color: var(--muted); }
.a { grid-column: 8 / span 5; margin: 0; font-size: var(--step-body); line-height: 1.55; max-width: 40ch; }
@media (max-width: 900px) { .qa { display: block; margin-bottom: 56px; } .a { margin-top: 12px; } }

/* Zdanie z luką */
.cta { background: var(--surface); }
.cta-h { margin: 0; font-weight: 500; font-size: var(--step-head); line-height: 1.05; letter-spacing: -.02em; }
.cta-h select { font: inherit; letter-spacing: inherit; height: 1.1em; padding: 0 1.1em 0 .25em; min-height: 0; vertical-align: baseline; background-color: var(--bg); border-radius: .14em; background-size: .35em; background-position: right .3em center; color: var(--ink); }
.cta-btn { font: inherit; letter-spacing: inherit; height: 1.1em; padding: 0 .3em; border: 0; border-radius: .14em; background: var(--accent); color: var(--accent-ink); cursor: pointer; transition: background-color .18s var(--ease), transform .18s var(--ease); }
.cta-btn:hover { background: var(--accent-press); transform: translateY(-.04em); }
.cta .small { margin-top: 20px; font-size: var(--step-body); }


/* Stopka: zaproszenie nad przyciętym słowem */
.footer { position: relative; overflow: hidden; background: var(--ink); color: var(--paper-on-ink); min-height: 100svh; padding: clamp(96px, 12vw, 160px) var(--margin) 0; display: flex; flex-direction: column; }
.footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.footer-top > div { grid-column: 1 / span 7; }
.footer-h { margin: 0 0 28px; font-size: var(--step-head); line-height: 1; letter-spacing: -.02em; }
.footer-links { grid-column: 10 / span 3; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; font-size: var(--step-body); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 48px; font-size: var(--step-small); color: var(--muted-on-ink); }
.footer-mark { margin: 0; font-size: clamp(120px, 28vw, 520px); line-height: .8; letter-spacing: -.05em; font-weight: 700; white-space: nowrap; transform: translateY(22%); }
@media (max-width: 900px) { .footer-top > div, .footer-links { grid-column: 1 / -1; } .footer .btn { width: 100%; } .footer-mark { font-size: 34vw; } }

/* Wejścia: tylko przesunięcie i przezroczystość; bez ruchu, gdy system tak chce. Treść widoczna bez skryptu. */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .btn, .sit, .play, .cta-btn, .slot img { transition: none; }
}
