:root {
  --bg: #f5f3ee;
  --surface: #fffdf9;
  --surface-soft: #f8f5f0;
  --text: #252421;
  --muted: #77736b;
  --text-subtle: #938d84;
  --text-faint: #aaa39a;
  --border: #e4dfd6;
  --border-hover: #b8b1a6;
  --accent: #986546;
  --accent-dark: #7e5035;
  --accent-light: #eee2d7;
  --success: #5d8063;
  --success-soft: #edf4ee;
  --error: #a75d54;
  --error-soft: #f8ecea;
  --font-body: "DM Sans", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --weight-display: 500;
  --weight-brand: 600;
  --weight-ui: 600;
  --weight-label: 700;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(45, 38, 30, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

button:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 4px;
}

button:disabled {
  cursor: default;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.community-counter {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.community-counter strong {
  margin: 0 3px;
  color: var(--text);
  font-weight: 700;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--text);
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--text);
  color: white;
  font-size: 17px;
  font-weight: 700;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--weight-brand);
  letter-spacing: normal;
}

.header-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-left: auto;
  white-space: nowrap;
}

.header-level {
  color: var(--text);
  font-weight: 600;
}

.header-divider {
  color: var(--border);
}

.main {
  width: min(980px, calc(100% - 48px));
  flex: 1;
  margin: 0 auto;
  padding: 60px 0 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen {
  width: 100%;
  animation: fade-up 0.45s ease both;
}

.hidden {
  display: none !important;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: var(--weight-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.traps-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 18px;
}

.traps-kicker-row .eyebrow {
  margin-bottom: 0;
}

.trap-pool-count {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
}


h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(48px, 8vw, 76px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(38px, 6vw, 54px);
  line-height: 1.06;
}

h1 em,
h2 em {
  color: var(--accent);
  font-style: italic;
}

.lead {
  max-width: 520px;
  margin: 28px auto 36px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.welcome-screen,
.level-result-screen,
.quiz-result-screen {
  text-align: center;
}

.welcome-meta {
  display: flex;
  justify-content: center;
  gap: 42px;
  margin-bottom: 36px;
}

.welcome-meta div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.welcome-meta strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}

.welcome-meta span,
.small-note,
.progress-caption {
  color: var(--muted);
  font-size: 11px;
}

.small-note {
  margin-top: 16px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 15px 23px;
  border-radius: 999px;
  background: var(--text);
  color: white;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(37, 36, 33, 0.12);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #11110f;
  box-shadow: 0 12px 28px rgba(37, 36, 33, 0.16);
}

.primary-button span {
  font-size: 18px;
}

.test-header,
.session-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 18px;
}

.test-header h2,
.session-header h2 {
  font-size: clamp(32px, 5vw, 44px);
}

.question-counter,
.session-counter {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.test-progress {
  width: 100%;
  height: 4px;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--border);
}

.test-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.35s ease;
}

.question-card {
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.question-type {
  display: block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.question-text {
  margin-bottom: 30px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.4;
}

.answers {
  display: grid;
  gap: 10px;
}

.answer {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.answer:hover:not(:disabled) {
  border-color: var(--border-hover);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.answer.correct {
  border-color: var(--success);
  background: var(--success-soft);
}

.answer.incorrect {
  border-color: var(--error);
  background: var(--error-soft);
}

.level-number {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 8px auto 20px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: 26px;
}

.level-result-screen h2 {
  font-size: clamp(48px, 8vw, 70px);
}

.level-tagline {
  max-width: 500px;
  margin: 20px auto 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.level-scale-card {
  width: min(720px, 100%);
  margin: 0 auto 28px;
  padding: 22px 24px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--surface), var(--surface-soft));
  box-shadow: 0 12px 34px rgba(45, 38, 30, 0.06);
  text-align: left;
}

.level-scale-heading {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.level-scale-heading strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.level-scale {
  display: grid;
  grid-template-columns: repeat(var(--level-count, 5), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.level-scale-item {
  position: relative;
  display: grid;
  grid-template-rows: 18px 40px auto;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.level-scale-item:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 37px;
  right: 50%;
  width: 100%;
  height: 3px;
  background: var(--border);
}

.level-scale-item.is-reached:not(:first-child)::before {
  background: var(--accent-light);
}

.level-scale-status {
  color: transparent;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.level-scale-item.is-current .level-scale-status {
  color: var(--accent-dark);
}

.level-scale-marker {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  align-self: center;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  transition: transform 0.25s ease;
}

.level-scale-item.is-reached .level-scale-marker {
  border-color: var(--accent-light);
  background: var(--accent-light);
  color: var(--accent-dark);
}

.level-scale-item.is-current .level-scale-marker {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(152, 101, 70, 0.13);
  transform: scale(1.12);
  animation: level-marker-arrive 0.55s ease-out both;
}

@keyframes level-marker-arrive {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.8);
  }

  65% {
    transform: translateY(0) scale(1.2);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1.12);
  }
}

.level-scale-name {
  max-width: 100%;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.level-scale-item.is-current .level-scale-name {
  color: var(--text);
  font-weight: 700;
}

.result-message {
  max-width: 420px;
  margin: 0 auto 34px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}


.next-level-card {
  max-width: 420px;
  margin: -14px auto 30px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
}

.next-level-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
}

.next-level-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.result-message span {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-weight: 700;
}

.session-intro {
  max-width: 680px;
  margin: -2px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.word-tile {
  min-width: 0;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(45, 38, 30, 0.05);
}

.word-tile-number {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
}

.word-tile h3 {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  font-size: 23px !important;
  line-height: 1.08;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.word-tile-part {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.word-tile-section {
  margin-top: 25px;
}

.word-tile-section .section-label {
  margin-bottom: 7px;
}

.word-tile-section p {
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
}

.word-tile .example {
  margin-top: auto;
  padding-top: 20px;
}

.word-tile .example p {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.55;
}

.section-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.word-session-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 19px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.secondary-button:hover {
  border-color: var(--accent);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

.secondary-button span {
  font-size: 17px;
}

.word-session-button {
  display: inline-flex;
  width: auto;
  margin: 0;
}

.quiz-result-screen .quiz-score {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 110px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.05em;
}

.quiz-result-screen h2 {
  font-size: clamp(38px, 6vw, 54px);
}

.quiz-result-screen > p {
  max-width: 450px;
  margin: 18px auto 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.progress-summary {
  max-width: 430px;
  margin: 0 auto 24px;
  padding: 6px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  font-weight: 600;
}

.text-button {
  display: block;
  margin: 18px auto 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
}

.text-button:hover {
  text-decoration: underline;
}

.progress-screen {
  text-align: center;
}

.big-progress-number {
  margin-top: 16px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 130px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.06em;
}

.progress-card {
  max-width: 500px;
  margin: 38px auto 42px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  text-align: left;
}

.progress-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

.progress-card-header span:last-child {
  color: var(--muted);
}

.large-progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.large-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.5s ease;
}

.progress-card p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.known-words-section {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: left;
}

.known-words-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.known-words-header h3 {
  font-size: 30px;
}

.known-count {
  min-width: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.known-words-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.known-word-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.known-word-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}

.known-word-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 20px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
}

.footer > a:first-child { grid-column: 1; justify-self: start; }
.footer > span { grid-column: 2; justify-self: center; text-align: center; }
.footer-actions { grid-column: 3; display: flex; align-items: center; justify-self: end; gap: 14px; }

.footer button,
.footer a {
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.footer button:hover,
.footer a:hover {
  color: var(--accent);
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
  padding: 8px 12px 8px 9px !important;
  border: 1px solid transparent;
  border-radius: 14px;
  white-space: nowrap;
  text-align: left;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.footer-actions .privacy-shortcut {
  position: static;
  flex: 0 0 auto;
  color: var(--text-subtle);
  font-size: 9px;
  font-weight: 500;
  opacity: .82;
}

.footer-contact:hover {
  border-color: var(--border);
  background: rgba(255, 253, 249, .68);
  transform: translateY(-1px);
}

.footer-contact-mark {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(152, 101, 70, .24);
  border-radius: 50%;
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
}

.footer-contact > span:nth-child(2) {
  display: grid;
  gap: 2px;
  line-height: 1.15;
}

.footer-contact small {
  color: var(--text-subtle);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .03em;
}

.footer-contact-arrow {
  color: var(--accent-dark);
  font-size: 14px;
  transition: transform .2s ease;
}

.footer-contact:hover .footer-contact-arrow { transform: translateX(3px); }
.contact-dialog { position:fixed; z-index:110; inset:0; display:grid; place-items:center; padding:24px; }
.contact-backdrop { position:absolute; inset:0; width:100%; height:100%; background:rgba(35,29,24,.54); backdrop-filter:blur(9px); }
.contact-sheet { position:relative; width:min(560px,100%); max-height:calc(100svh - 48px); padding:34px 38px 32px; overflow-y:auto; border:1px solid rgba(152,101,70,.22); border-radius:26px; background:linear-gradient(145deg,#fffdf9,#f7f0e7); box-shadow:0 34px 100px rgba(30,22,16,.28),inset 0 1px 0 rgba(255,255,255,.9); }
.contact-sheet::before { content:""; position:absolute; top:0; left:50%; width:68px; height:3px; border-radius:0 0 4px 4px; background:var(--accent); transform:translateX(-50%); }
.contact-close { position:absolute; top:14px; right:15px; width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--border); border-radius:50%; background:rgba(255,255,255,.66); color:var(--muted); font-size:21px; line-height:1; }
.contact-sheet h2 { max-width:450px; font-size:clamp(36px,6vw,48px); line-height:1.03; }
.contact-lead { max-width:460px; margin:14px 0 22px; color:var(--muted); font-size:12px; line-height:1.65; }
.contact-sheet form { display:grid; gap:14px; }
.contact-sheet label { display:grid; gap:6px; color:var(--text); font-size:10px; font-weight:var(--weight-label); }
.contact-sheet label > span { color:var(--text-subtle); font-weight:500; }
.contact-sheet select,.contact-sheet textarea,.contact-sheet input { width:100%; border:1px solid var(--border); border-radius:13px; background:rgba(255,255,255,.74); color:var(--text); font:500 12px/1.5 var(--font-body); outline:none; }
.contact-sheet select,.contact-sheet input { min-height:44px; padding:0 13px; }
.contact-sheet textarea { min-height:118px; padding:12px 13px; resize:vertical; }
.contact-sheet select:focus,.contact-sheet textarea:focus,.contact-sheet input:focus { border-color:rgba(152,101,70,.55); box-shadow:0 0 0 3px rgba(152,101,70,.1); }
.contact-honeypot { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.contact-privacy-note { color:var(--text-subtle); font-size:9px; line-height:1.5; }
.contact-privacy-note a { color:var(--accent-dark); }
.contact-status { min-height:1.4em; color:var(--error); font-size:10px; }
.contact-submit { width:100%; margin-top:0; justify-content:center; }
.contact-success { display:grid; justify-items:center; padding:35px 0 12px; text-align:center; }
.contact-success > span { width:48px; height:48px; display:grid; place-items:center; margin-bottom:18px; border-radius:50%; background:var(--success-soft); color:var(--success); font-size:20px; }
.contact-success h2 { font-size:42px; }
.contact-success p { max-width:390px; margin:14px 0 24px; color:var(--muted); font-size:12px; line-height:1.65; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .word-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .word-tile {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .header,
  .footer,
  .main {
    width: min(100% - 32px, 980px);
  }

  .header {
    padding: 20px 0;
  }

  .header-progress {
    font-size: 11px;
  }

  .main {
    padding: 45px 0 65px;
  }

  .lead {
    font-size: 15px;
  }

  .level-scale-card {
    padding: 18px 12px 16px;
  }

  .level-scale-heading {
    padding: 0 4px;
  }

  .level-scale-item {
    grid-template-rows: 17px 36px auto;
  }

  .level-scale-item:not(:first-child)::before {
    top: 33px;
  }

  .level-scale-marker {
    width: 27px;
    height: 27px;
    font-size: 12px;
  }

  .level-scale-status {
    font-size: 8px;
  }

  .level-scale-name {
    font-size: 9px;
  }

  .welcome-meta {
    gap: 22px;
  }

  .welcome-meta strong {
    font-size: 20px;
  }

  .test-header,
  .session-header {
    align-items: flex-start;
  }

  .question-card {
    padding: 26px 20px;
  }

  .word-grid {
    grid-template-columns: 1fr;
  }

  .word-tile {
    min-height: auto;
  }

  .word-tile h3 {
    min-height: 54px;
    justify-content: flex-start;
    text-align: left;
    font-size: 23px !important;
  }

  .word-tile .example {
    margin-top: 25px;
  }

  .word-session-actions {
    flex-direction: column;
  }

  .secondary-button,
  .word-session-button {
    width: 100%;
  }

  .known-words-list {
    grid-template-columns: 1fr;
  }

  .footer { grid-template-columns: minmax(0,1fr) auto; gap: 12px 18px; }
  .footer > a:first-child { grid-column:1; grid-row:1; }
  .footer > span { grid-column:1 / -1; grid-row:2; justify-self:start; text-align:left; }
  .footer-actions { grid-column:2; grid-row:1; }
  .contact-dialog { align-items:end; padding:10px; }
  .contact-sheet { width:100%; max-height:calc(100svh - 20px); padding:28px 20px 22px; border-radius:22px 22px 18px 18px; }
  .contact-sheet h2 { padding-right:25px; font-size:36px; }
  .contact-lead { font-size:11px; }
  .contact-sheet select,.contact-sheet input { min-height:46px; }
  .contact-submit { min-height:50px; }
}

@media (max-width: 520px) {
  .footer {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0 20px;
  }

  .footer > a:first-child,
  .footer > span,
  .footer-actions { grid-column:1; grid-row:auto; justify-self:stretch; }

  .footer > span { order:3; padding-top:2px; font-size:9px; text-align:left; }
  .footer-actions { display:grid; grid-template-columns:1fr auto; gap:8px 12px; }

  .footer-contact {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    margin-top: 2px;
    padding: 10px 11px !important;
    border-color: var(--border);
    background: rgba(255, 253, 249, .55);
  }

  .footer-contact-arrow { margin-left: auto; }
  .footer-actions .privacy-shortcut { justify-self:start; padding:2px 0 0 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .level-scale-item.is-current .level-scale-marker {
    animation: none;
  }
}

.auth-body { overflow-x: hidden; }
.auth-page { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 48px 24px 68px; overflow: hidden; background: radial-gradient(circle at 50% 42%, rgba(255,253,249,.98) 0 16%, rgba(245,243,238,.35) 53%), linear-gradient(135deg,#f0eae2 0%,#f8f6f1 50%,#ece5dc 100%); }
.auth-page::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.3; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"); }
.auth-card { position:relative; z-index:1; width:min(100%,560px); padding:42px 54px 34px; border:1px solid rgba(152,101,70,.18); border-radius:30px; background:rgba(255,253,249,.95); box-shadow:0 32px 90px rgba(60,45,32,.13),0 2px 8px rgba(60,45,32,.04),inset 0 1px 0 #fff; text-align:center; backdrop-filter:blur(12px); animation:auth-card-in .65s cubic-bezier(.2,.8,.2,1) both; }
.auth-card::before { content:""; position:absolute; top:0; left:50%; width:72px; height:3px; border-radius:0 0 4px 4px; background:var(--accent); transform:translateX(-50%); }
.auth-mark { width:54px; height:54px; display:grid; place-items:center; margin:0 auto 17px; border:1px solid rgba(152,101,70,.22); border-radius:50%; background:var(--accent-light); color:var(--accent-dark); box-shadow:0 8px 24px rgba(126,80,53,.12); }
.auth-mark span { font-family:var(--font-display); font-size:26px; font-style:italic; transform:translateY(-1px); }
.auth-eyebrow { margin-bottom:12px; letter-spacing:.18em; }
.auth-card h1 { max-width:460px; margin:0 auto; font-size:clamp(42px,6vw,60px); line-height:1.04; }
.auth-card h1 em { white-space:nowrap; }
.auth-lead { max-width:430px; margin:18px auto 0; color:var(--muted); font-size:15px; line-height:1.65; }
.google-login-button { width:100%; min-height:58px; margin-top:26px; padding:10px 16px; display:grid; grid-template-columns:34px 1fr 34px; align-items:center; gap:10px; border:1px solid #d9d4cb; border-radius:16px; background:#fff; color:var(--text); font-size:14px; font-weight:700; box-shadow:0 7px 20px rgba(45,38,30,.06); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease; }
.google-login-button:hover:not(:disabled) { transform:translateY(-2px); border-color:rgba(152,101,70,.55); background:#fffefa; box-shadow:0 13px 28px rgba(45,38,30,.11); }
.google-login-button:active:not(:disabled) { transform:translateY(0); }
.google-login-button:disabled { opacity:.65; }
.google-icon { width:34px; height:34px; display:grid; place-items:center; border:1px solid #ece8e1; border-radius:10px; background:#fff; }
.google-icon svg { width:18px; height:18px; }
.button-arrow { color:var(--accent); font-size:20px; transition:transform .2s ease; }
.google-login-button:hover .button-arrow { transform:translateX(3px); }
.auth-reassurance { margin-top:10px; color:var(--text-subtle); font-size:10px; }
.auth-choice { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px; margin:12px 0 7px; color:var(--text-faint); font-size:9px; }
.auth-choice::before,.auth-choice::after { content:""; height:1px; background:rgba(109,84,63,.11); }
.guest-login-button { display:inline-flex; align-items:center; align-self:center; justify-content:center; gap:10px; min-height:36px; padding:5px 12px; border:0; background:transparent; color:var(--accent-dark); font-size:12px; font-weight:700; }
.guest-login-button span { font-size:17px; transition:transform .2s ease; }
.guest-login-button:hover:not(:disabled) span { transform:translateX(3px); }
.guest-login-button:disabled { opacity:.55; }
.auth-status { min-height:1.4em; margin-top:7px; color:var(--accent-dark); font-size:12px; }
.auth-divider { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; margin:4px 0 20px; }
.auth-divider span { height:1px; background:var(--border); }
.auth-divider b { color:var(--text-subtle); font-size:9px; font-weight:var(--weight-label); letter-spacing:.11em; text-transform:uppercase; }
.auth-benefits { display:grid; grid-template-columns:repeat(3,1fr); margin:0; padding:0; list-style:none; }
.auth-benefits li { display:grid; gap:5px; padding:0 9px; border-right:1px solid var(--border); }
.auth-benefits li:last-child { border:0; }
.auth-benefits strong { color:var(--accent-dark); font-family:var(--font-display); font-size:19px; font-weight:500; }
.auth-benefits span { color:var(--muted); font-size:9px; line-height:1.45; }
.auth-footnote { position:absolute; z-index:1; bottom:23px; color:var(--text-subtle); font-family:var(--font-display); font-size:13px; font-style:italic; }
.auth-ornament { position:absolute; color:rgba(152,101,70,.06); font-family:var(--font-display); font-style:italic; line-height:1; pointer-events:none; user-select:none; }
.auth-ornament-left { top:12%; left:8%; font-size:clamp(100px,13vw,210px); transform:rotate(-12deg); }
.auth-ornament-right { right:10%; bottom:9%; font-size:clamp(130px,17vw,270px); transform:rotate(9deg); }
.auth-card-compact { padding-bottom:46px; }
.auth-card-compact h1 { font-size:clamp(34px,5vw,48px); }
.auth-mark-loading { animation:auth-pulse 1.5s ease-in-out infinite; }
@keyframes auth-card-in { from { opacity:0; transform:translateY(18px) scale(.985); } to { opacity:1; transform:none; } }
@keyframes auth-pulse { 50% { transform:scale(1.06); box-shadow:0 8px 30px rgba(126,80,53,.23); } }
.account-menu { margin-left: 0; display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-email { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.account-signout { padding: 8px 12px; }
.account-identity { min-width:0; max-width:190px; display:grid; line-height:1.15; }
.account-identity strong,.account-identity small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-identity strong { font-size:12px; font-weight:700; }
.account-identity small { margin-top:3px; color:var(--muted); font-size:9px; }
.account-login { padding:8px 12px; border:1px solid rgba(152,101,70,.22); border-radius:999px; background:var(--accent-light); color:var(--accent-dark); font-size:11px; font-weight:700; text-decoration:none; white-space:nowrap; }
.account-login:disabled { opacity:.6; }
.account-billing { padding: 8px 12px; border-radius: 999px; background: var(--accent-light); color: var(--accent-dark); font-size: 11px; font-weight: 700; text-decoration: none; }
.billing-page { width: min(1040px, calc(100% - 40px)); min-height: calc(100vh - 90px); margin: 0 auto; padding: 72px 0 90px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); align-items: center; gap: clamp(48px, 8vw, 110px); }
.billing-hero h1 { margin-top: 10px; font-size: clamp(48px, 7vw, 78px); line-height: 1.05; }
.billing-hero > p { max-width: 520px; margin-top: 24px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.pricing-card { padding: 34px; border: 1px solid var(--border); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.pricing-top { padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.pricing-top h2 { margin-top: 17px; font-size: 34px; }
.billing-status { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.billing-status.is-pro { background: #e6f1e8; color: var(--success); }
.pricing-value { display: grid; gap: 3px; margin-top: 9px; }
.pricing-value strong { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.pricing-value span { color: var(--muted); font-size: 11px; }
.pricing-features { display: grid; gap: 14px; margin: 24px 0; padding: 0; list-style: none; }
.pricing-features li { position: relative; padding-left: 27px; font-size: 13px; line-height: 1.5; }
.pricing-features li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-light); color: var(--accent-dark); font-size: 10px; font-weight: 700; }
.billing-message { min-height: 2.8em; margin: 14px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.plan-summary { max-width: 520px; margin-top: 28px; padding: 24px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 16px 44px rgba(45,38,30,.07); }
.plan-summary-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.plan-summary-icon { color: var(--accent); font-size: 22px; }
.plan-summary > strong { display: block; font-family: var(--font-display); font-size: 25px; font-weight: 500; }
.plan-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 18px 0; border-block: 1px solid var(--border); }
.plan-details div { padding: 14px 8px 14px 0; }
.plan-details div + div { padding-left: 18px; border-left: 1px solid var(--border); }
.plan-details dt { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.plan-details dd { margin-top: 5px; font-size: 12px; font-weight: 700; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-actions button { margin: 0 !important; }
.billing-action { width: 100%; margin-top: 9px; }
.billing-smallprint { margin-top: 18px; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }
.billing-page-wide { grid-template-columns: minmax(270px,.75fr) minmax(520px,1.25fr); gap: clamp(38px,6vw,84px); }
.billing-page-wide .billing-hero { align-self: center; }
.billing-page-wide .billing-message { max-width: 430px; }
.billing-page-wide .billing-hero > button { margin: 8px 8px 0 0; }
.pricing-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.pricing-options .pricing-card { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; }
.pricing-options .pricing-card-featured { border-color: rgba(152,101,70,.45); box-shadow: 0 22px 58px rgba(45,38,30,.11); }
.pricing-options .pricing-card.is-current-plan { border-color: var(--success); box-shadow: 0 0 0 3px rgba(93,128,99,.1), var(--shadow); }
.current-plan-label { position: absolute; top: -11px; left: 18px; padding: 5px 10px; border-radius: 999px; background: var(--success); color: white; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.plan-switch-note { margin: -5px 0 10px; padding: 11px 12px; border-radius: 12px; background: var(--accent-light); color: var(--accent-dark); font-size: 10px; line-height: 1.5; }
.pricing-options .pricing-features { flex: 1; }
.pricing-label { position: absolute; top: 0; right: 22px; padding: 6px 10px; border-radius: 0 0 9px 9px; background: var(--accent); color: #fff; font-size: 8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.pricing-label-blik { background: #e6007e; }
.billing-blik-button { border-color: rgba(230,0,126,.25); }
.billing-blik-button:hover { border-color: #e6007e; background: #fff5fa; }
.blik-wordmark { color: #e6007e; font-size: 12px !important; font-weight: 800; letter-spacing: -.04em; }
.pricing-options .billing-smallprint { grid-column: 1/-1; margin-top: 0; }
@media (max-width: 980px) { .billing-page-wide { grid-template-columns: 1fr; } .billing-page-wide .billing-hero { text-align: center; } .billing-page-wide .billing-message { margin-inline: auto; } }
@media (max-width: 820px) { .billing-page { grid-template-columns: 1fr; padding-top: 48px; } .billing-hero { text-align: center; } .billing-hero > p { margin-inline: auto; } .pricing-card { width: min(100%, 480px); margin: 0 auto; } }
@media (max-width: 640px) { .account-billing { display: none; } .billing-page { width: min(100% - 28px, 520px); padding: 36px 0 60px; gap: 34px; } .billing-hero h1 { font-size: 43px; } .pricing-options { grid-template-columns: 1fr; } .pricing-card { padding: 26px 20px; } }
@media (max-width: 1050px) { .header { gap: 14px; } .account-email { display:none; } .account-identity { max-width:145px; } .community-counter { max-width: 230px; overflow: hidden; text-overflow: ellipsis; } }
@media (max-width: 700px) { .community-counter { display: none !important; } .header-progress { margin-left: auto; } .account-menu { gap:6px; } .account-identity { max-width:105px; } .account-identity strong { font-size:10px; } .account-identity small { display:none; } .account-signout { padding-inline:7px; font-size:10px; } .account-login { padding:7px 9px; font-size:10px; } }
@media (max-width:640px) { .account-email{display:none}.auth-page{padding:24px 16px 58px}.auth-card{padding:32px 20px 26px;border-radius:24px}.auth-card h1{font-size:40px}.auth-mark{width:50px;height:50px;margin-bottom:15px}.auth-lead{font-size:14px}.google-login-button{margin-top:22px}.auth-benefits li{padding:0 4px}.auth-benefits strong{font-size:17px}.auth-ornament{display:none} }
@media (prefers-reduced-motion:reduce) { .auth-card,.auth-mark-loading{animation:none}.google-login-button,.button-arrow{transition:none} }

/* Landing page przed logowaniem */
.login-landing.auth-page { display:block; min-height:100svh; padding:0 clamp(22px,5vw,72px) 18px; background:linear-gradient(145deg,#f7f3ec 0%,#fbfaf7 48%,#eee5da 100%); }
.login-landing::before { opacity:.22; }
.landing-glow { position:absolute; border-radius:50%; filter:blur(2px); pointer-events:none; }
.landing-glow-one { top:-22vw; right:-12vw; width:52vw; height:52vw; background:radial-gradient(circle,rgba(196,142,105,.2),rgba(196,142,105,0) 68%); }
.landing-glow-two { bottom:-28vw; left:-17vw; width:58vw; height:58vw; background:radial-gradient(circle,rgba(95,128,105,.14),rgba(95,128,105,0) 70%); }
.landing-header { position:relative; z-index:2; width:min(1180px,100%); min-height:76px; display:flex; align-items:center; justify-content:space-between; margin:0 auto; border-bottom:1px solid rgba(109,84,63,.12); }
.landing-brand { display:flex; align-items:center; gap:12px; color:var(--text); font-family:var(--font-display); font-size:18px; font-weight:var(--weight-brand); text-decoration:none; }
.landing-brand-mark { width:36px; height:36px; display:grid; place-items:center; border:1px solid rgba(152,101,70,.3); border-radius:50%; background:rgba(255,255,255,.66); color:var(--accent-dark); font-style:italic; box-shadow:0 8px 20px rgba(60,45,32,.07); }
.landing-header-note { color:var(--muted); font-family:var(--font-body); font-size:12px; font-weight:500; letter-spacing:.035em; text-transform:none; }
.landing-layout { position:relative; z-index:1; width:min(1180px,100%); min-height:calc(100svh - 150px); display:grid; grid-template-columns:minmax(0,1.18fr) minmax(360px,.82fr); align-items:center; gap:clamp(54px,8vw,120px); margin:0 auto; padding:56px 0 66px; }
.landing-hero { max-width:690px; animation:landing-copy-in .7s cubic-bezier(.2,.8,.2,1) both; }
.landing-kicker { display:inline-flex; align-items:center; gap:9px; margin-bottom:24px; color:var(--accent-dark); font-size:10px; font-weight:var(--weight-label); letter-spacing:.13em; text-transform:uppercase; }
.landing-kicker i { width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 6px rgba(152,101,70,.1); }
.landing-hero h1 { max-width:690px; font-size:clamp(58px,7.2vw,92px); line-height:.96; letter-spacing:-.035em; }
.landing-hero h1 em { color:var(--accent-dark); }
.landing-hero > p { max-width:620px; margin-top:30px; color:var(--muted); font-size:clamp(16px,1.5vw,19px); line-height:1.75; }
.landing-actions { display:flex; align-items:center; gap:18px; margin-top:34px; }
.landing-learn-more { min-height:52px; display:inline-flex; align-items:center; gap:20px; padding:0 22px; border-radius:999px; background:var(--text); color:#fff; font-size:12px; font-weight:700; box-shadow:0 14px 30px rgba(45,38,30,.16); transition:transform .2s ease,box-shadow .2s ease,background .2s ease; }
.landing-learn-more span { color:#d8b79f; font-size:18px; transition:transform .2s ease; }
.landing-learn-more:hover { transform:translateY(-2px); background:#3b332c; box-shadow:0 18px 38px rgba(45,38,30,.22); }
.landing-learn-more:hover span { transform:translateX(4px); }
.landing-action-note { color:var(--text-subtle); font-size:11px; }
.landing-proof { display:flex; flex-wrap:wrap; gap:9px; margin-top:42px; }
.landing-proof span { display:flex; align-items:center; gap:7px; padding:9px 13px; border:1px solid rgba(109,84,63,.13); border-radius:999px; background:rgba(255,255,255,.46); color:var(--muted); font-size:10px; backdrop-filter:blur(7px); }
.landing-proof strong { color:var(--accent-dark); font-family:var(--font-display); font-size:16px; font-weight:600; }
.landing-login-card.auth-card { width:100%; padding:42px 38px 34px; border-color:rgba(152,101,70,.16); border-radius:28px; text-align:left; transform:rotate(.35deg); }
.landing-login-card::after { display:none; }
.landing-login-card .auth-eyebrow { display:block; }
.landing-login-card h2 { position:relative; max-width:390px; font-size:clamp(38px,4vw,52px); line-height:1.02; }
.landing-login-card .auth-lead { max-width:390px; margin:17px 0 0; }
.landing-login-card .google-login-button { position:relative; z-index:1; margin-top:30px; }
.landing-mini-flow { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:22px; padding-top:20px; border-top:1px solid var(--border); }
.landing-mini-flow span { display:grid; gap:4px; color:var(--muted); font-size:9px; line-height:1.35; }
.landing-mini-flow b { color:var(--accent); font-size:8px; letter-spacing:.1em; }
.login-landing .auth-footnote { left:50%; transform:translateX(-50%); white-space:nowrap; }

.landing-tour-open { overflow:hidden; }
.landing-tour { position:fixed; z-index:1000; inset:0; display:grid; place-items:center; padding:24px; }
.landing-tour-backdrop { position:absolute; inset:0; background:rgba(35,29,24,.62); backdrop-filter:blur(12px); }
.landing-tour-shell { position:relative; width:min(1120px,100%); padding:18px; border:1px solid rgba(255,255,255,.35); border-radius:34px; background:rgba(247,243,237,.96); box-shadow:0 40px 120px rgba(20,15,12,.34); animation:landing-tour-in .42s cubic-bezier(.2,.8,.2,1) both; }
.landing-tour-topbar { height:44px; display:flex; align-items:center; justify-content:space-between; padding:0 7px 0 12px; }
.landing-tour-count { color:var(--text-subtle); font-size:9px; font-weight:var(--weight-label); letter-spacing:.14em; }
.landing-tour-close { width:34px; height:34px; display:grid; place-items:center; border:1px solid rgba(109,84,63,.15); border-radius:50%; background:#fff; color:var(--muted); font-size:21px; line-height:1; transition:transform .2s ease,color .2s ease,border-color .2s ease; }
.landing-tour-close:hover { color:var(--accent-dark); border-color:var(--accent); transform:rotate(6deg); }
.landing-tour-window { overflow:hidden; border:1px solid rgba(109,84,63,.12); border-radius:24px; background:#fffdf9; touch-action:pan-y; }
.landing-tour-window:focus-visible { outline:3px solid rgba(152,101,70,.2); outline-offset:4px; }
.landing-tour-track { display:flex; transition:transform .55s cubic-bezier(.22,1,.36,1); }
.landing-tour-slide { min-width:100%; min-height:min(620px,calc(100svh - 190px)); display:grid; grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr); align-items:center; gap:clamp(36px,7vw,90px); padding:clamp(38px,6vw,72px); }
.landing-tour-slide h2 { max-width:700px; margin-top:14px; font-size:clamp(44px,6vw,72px); line-height:1.02; letter-spacing:-.025em; }
.landing-tour-slide p { max-width:620px; margin-top:24px; color:var(--muted); font-size:16px; line-height:1.7; }
.landing-tour-next { display:inline-flex; align-items:center; gap:12px; margin-top:34px; padding:0; background:transparent; color:var(--accent-dark); font-size:13px; font-weight:var(--weight-label); }
.landing-tour-next span { font-size:20px; transition:transform .2s ease; }
.landing-tour-next:hover span { transform:translateX(4px); }
.landing-word-orbit { position:relative; width:min(360px,32vw); aspect-ratio:1; justify-self:center; display:grid; place-items:center; border:1px solid rgba(152,101,70,.14); border-radius:50%; background:radial-gradient(circle,rgba(225,202,183,.38),rgba(255,255,255,.1) 67%); }
.landing-word-orbit::before,.landing-word-orbit::after { content:""; position:absolute; inset:14%; border:1px dashed rgba(152,101,70,.18); border-radius:50%; }
.landing-word-orbit::after { inset:31%; border-style:solid; }
.landing-word-orbit strong { position:relative; z-index:1; font-family:var(--font-display); font-size:clamp(25px,3vw,38px); font-style:italic; font-weight:500; }
.landing-word-orbit span { position:absolute; padding:7px 11px; border:1px solid rgba(109,84,63,.12); border-radius:999px; background:#fff; color:var(--accent-dark); font-size:9px; box-shadow:0 8px 20px rgba(45,38,30,.07); }
.landing-word-orbit span:nth-child(1){top:12%;left:8%}.landing-word-orbit span:nth-child(2){top:25%;right:-3%}.landing-word-orbit span:nth-child(3){bottom:13%;left:18%}
.landing-session-card { position:relative; width:min(380px,100%); justify-self:center; padding:34px; border:1px solid rgba(152,101,70,.18); border-radius:26px; background:linear-gradient(145deg,#fff,#f4ede5); box-shadow:0 24px 60px rgba(45,38,30,.12); transform:rotate(2deg); }
.landing-session-card span { color:var(--accent-dark); font-size:9px; font-weight:var(--weight-label); letter-spacing:.12em; text-transform:uppercase; }
.landing-session-card strong { display:block; margin-top:54px; font-family:var(--font-display); font-size:46px; font-style:italic; font-weight:500; }
.landing-session-card p { margin-top:10px; font-size:13px; }
.landing-session-card i { position:absolute; right:25px; bottom:22px; color:#a59c92; font-size:10px; }
.landing-modes { display:grid; gap:10px; }
.landing-modes article { position:relative; display:grid; grid-template-columns:36px 1fr; gap:3px 10px; padding:18px 20px; border:1px solid rgba(109,84,63,.12); border-radius:18px; background:#fff; box-shadow:0 10px 28px rgba(45,38,30,.05); }
.landing-modes b { grid-row:1/3; color:var(--accent); font-size:9px; letter-spacing:.1em; }
.landing-modes strong { font-family:var(--font-display); font-size:20px; font-weight:600; }
.landing-modes span { color:var(--muted); font-size:10px; }
.landing-tour-final { grid-template-columns:1fr; justify-items:center; text-align:center; background:radial-gradient(circle at 50% 45%,rgba(221,195,175,.28),transparent 55%); }
.landing-tour-final h2 { max-width:850px; }
.landing-tour-final p { max-width:620px; }
.landing-tour-final .primary-button { margin-top:34px; }
.landing-tour-navigation { display:flex; justify-content:center; gap:7px; margin-top:15px; }
.landing-tour-dot { width:22px; height:4px; padding:0; border-radius:99px; background:#d8d0c7; transition:width .25s ease,background .25s ease; }
.landing-tour-dot.active { width:48px; background:var(--accent); }
.landing-tour-hint { margin:8px 0 1px; color:var(--text-subtle); font-size:8px; font-weight:var(--weight-label); letter-spacing:.12em; text-align:center; text-transform:uppercase; }
@keyframes landing-copy-in { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:none} }
@keyframes landing-tour-in { from{opacity:0;transform:translateY(18px) scale(.985)} to{opacity:1;transform:none} }

@media (max-width:900px) {
  .landing-layout { grid-template-columns:1fr; gap:42px; padding-top:48px; }
  .landing-hero { max-width:760px; text-align:center; margin:0 auto; }
  .landing-hero > p { margin-inline:auto; }
  .landing-actions,.landing-proof { justify-content:center; }
  .landing-login-card.auth-card { width:min(560px,100%); margin:0 auto; transform:none; }
  .landing-tour-slide { grid-template-columns:1fr; gap:32px; align-content:center; }
  .landing-word-orbit { width:min(280px,55vw); }
  .landing-session-card,.landing-modes { width:min(520px,100%); justify-self:center; }
}
@media (max-width:640px) {
  .login-landing.auth-page { padding-inline:16px; }
  .landing-header { min-height:72px; }
  .landing-brand { gap:9px; font-size:16px; }
  .landing-brand-mark { width:32px; height:32px; }
  .landing-header-note,.landing-action-note { display:none; }
  .landing-layout { min-height:auto; gap:34px; padding:38px 0 76px; }
  .landing-kicker { margin-bottom:20px; }
  .landing-hero h1 { font-size:clamp(48px,15vw,66px); }
  .landing-hero > p { margin-top:23px; font-size:15px; }
  .landing-actions { margin-top:27px; }
  .landing-learn-more { width:100%; justify-content:center; }
  .landing-proof { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-top:26px; }
  .landing-proof span { display:grid; justify-items:center; gap:2px; padding:10px 5px; border-radius:15px; line-height:1.3; }
  .landing-login-card.auth-card { padding:34px 22px 28px; }
  .landing-login-card h2 { font-size:40px; }
  .landing-login-card .google-login-button { min-height:60px; }
  .landing-mini-flow { gap:3px; }
  .landing-tour { place-items:start center; padding:8px; overflow-y:auto; overscroll-behavior:contain; }
  .landing-tour-shell { padding:9px; border-radius:24px; }
  .landing-tour-window { border-radius:18px; }
  .landing-tour-slide { min-height:calc(100svh - 125px); align-content:center; gap:25px; padding:31px 22px; }
  .landing-tour-slide h2 { font-size:clamp(38px,11.5vw,52px); }
  .landing-tour-slide p { margin-top:18px; font-size:14px; }
  .landing-word-orbit { width:210px; }
  .landing-session-card { padding:26px; }
  .landing-session-card strong { margin-top:34px; font-size:38px; }
  .landing-modes article { padding:14px 16px; }
  .landing-tour-final .primary-button { width:100%; justify-content:center; }
  .landing-tour-hint { display:none; }
}
@media (max-width:400px) {
  .landing-layout { padding-top:30px; }
  .landing-hero h1 { font-size:46px; }
  .landing-hero > p { font-size:14px; line-height:1.65; }
  .landing-proof span { font-size:8px; }
  .landing-login-card.auth-card { padding-inline:18px; }
  .landing-login-card h2 { font-size:36px; }
  .landing-mini-flow span { font-size:8px; }
  .landing-tour-slide { padding-inline:18px; }
  .landing-tour-slide h2 { font-size:37px; }
  .landing-word-orbit { width:180px; }
}

/* Prywatność: dyskretna warstwa prawna i zgoda na opcjonalną analitykę. */
.privacy-shortcut { color:var(--text-subtle); font-size:9px; text-decoration:none; opacity:.82; }
body > .privacy-shortcut { position:fixed; z-index:30; right:16px; bottom:12px; }
.privacy-shortcut:hover { color:var(--accent-dark); opacity:1; }
.privacy-consent { position:fixed; z-index:100; left:50%; bottom:18px; width:min(720px,calc(100% - 28px)); display:flex; align-items:center; justify-content:space-between; gap:24px; padding:19px 21px; overflow:hidden; border:1px solid rgba(115,73,43,.3); border-radius:17px 20px 16px 21px; background:linear-gradient(104deg,rgba(248,239,222,.98),rgba(255,252,245,.98) 44%,rgba(245,232,211,.98)); box-shadow:0 22px 60px rgba(45,38,30,.2),inset 0 0 24px rgba(126,80,53,.08); backdrop-filter:blur(14px); transform:translateX(-50%); }
.privacy-consent::before { content:""; position:absolute; inset:-1px; z-index:0; border-radius:inherit; background:radial-gradient(ellipse 90px 22px at 8% 0,rgba(91,49,24,.23),transparent 72%),radial-gradient(ellipse 28px 72px at 100% 72%,rgba(91,49,24,.18),transparent 74%),radial-gradient(ellipse 74px 18px at 72% 100%,rgba(91,49,24,.16),transparent 76%),radial-gradient(circle 4px at 2% 66%,rgba(69,38,20,.26),transparent 100%); opacity:.72; pointer-events:none; }
.privacy-consent > * { position:relative; z-index:1; }
.privacy-consent strong { font-family:var(--font-display); font-size:16px; font-weight:var(--weight-brand); }
.privacy-consent p { max-width:430px; margin-top:3px; color:var(--muted); font-size:10px; line-height:1.5; }
.privacy-consent a { display:inline-block; margin-top:4px; color:var(--accent-dark); font-size:9px; }
.privacy-consent-actions { display:flex; flex-shrink:0; gap:8px; }
.privacy-consent-actions button { min-height:38px; padding:0 14px; border-radius:999px; font-size:10px; font-weight:var(--weight-label); }
.privacy-necessary { border:1px solid rgba(126,80,53,.24); background:rgba(255,253,249,.46); color:var(--muted); }
.privacy-accept { background:var(--text); color:#fff; }
.privacy-body { min-height:100vh; background:linear-gradient(145deg,#f7f3ec,#fbfaf7 52%,#eee5da); }
.privacy-header { width:min(960px,calc(100% - 40px)); min-height:78px; display:flex; align-items:center; justify-content:space-between; margin:0 auto; border-bottom:1px solid var(--border); }
.privacy-back { display:flex; flex-direction:row-reverse; gap:8px; color:var(--muted); font-size:11px; text-decoration:none; }
.privacy-page { width:min(820px,calc(100% - 40px)); margin:0 auto; padding:72px 0 100px; }
.privacy-intro { max-width:650px; }
.privacy-intro h1 { font-size:clamp(48px,8vw,76px); }
.privacy-intro > p { max-width:580px; margin-top:22px; color:var(--muted); font-size:16px; line-height:1.7; }
.privacy-intro .privacy-updated { margin-top:12px; font-size:10px; }
.privacy-content { display:grid; gap:0; margin-top:60px; border-top:1px solid var(--border); }
.privacy-content section { display:grid; grid-template-columns:minmax(180px,.34fr) minmax(0,1fr); gap:34px; padding:28px 0; border-bottom:1px solid var(--border); }
.privacy-content h2 { font-family:var(--font-display); font-size:22px; font-weight:var(--weight-display); letter-spacing:-.02em; }
.privacy-content p,.privacy-content li { color:var(--muted); font-size:12px; line-height:1.75; }
.privacy-content ul { display:grid; gap:9px; padding-left:18px; }
.privacy-content strong { color:var(--text); }
.privacy-content a { color:var(--accent-dark); }
.privacy-settings-button { width:max-content; margin-top:16px; }
@media (max-width:640px) {
  .privacy-shortcut { right:10px; bottom:8px; }
  .privacy-consent { align-items:stretch; flex-direction:column; gap:12px; bottom:max(10px,env(safe-area-inset-bottom)); max-height:calc(100svh - 20px); padding:16px; overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
  .privacy-consent strong { font-size:15px; line-height:1.25; }
  .privacy-consent p { margin-top:5px; font-size:10px; line-height:1.45; }
  .privacy-consent-actions { display:grid; grid-template-columns:1fr 1fr; }
  .privacy-consent-actions button { min-width:0; min-height:42px; padding:7px 10px; line-height:1.25; white-space:normal; }
  .privacy-header { width:calc(100% - 30px); min-height:68px; }
  .privacy-page { width:calc(100% - 34px); padding:48px 0 78px; }
  .privacy-intro h1 { font-size:46px; }
  .privacy-intro > p { font-size:14px; }
  .privacy-content { margin-top:42px; }
  .privacy-content section { grid-template-columns:1fr; gap:12px; padding:24px 0; }
  .privacy-content h2 { font-size:20px; }
}
@media (max-width:430px), (max-height:560px) {
  .privacy-consent { width:calc(100% - 18px); gap:10px; padding:14px; }
  .privacy-consent-actions { grid-template-columns:1fr; gap:6px; }
  .privacy-consent-actions button { min-height:40px; }
}
@media (max-height:700px) and (max-width:640px) {
  .landing-tour-slide { min-height:610px; align-content:start; padding-top:25px; }
  .landing-tour-slide h2 { font-size:36px; }
  .landing-word-orbit { width:160px; }
  .landing-session-card strong { margin-top:22px; }
  .landing-tour-next { margin-top:22px; }
}
@media (prefers-reduced-motion:reduce) { .landing-hero,.landing-tour-shell{animation:none}.landing-tour-track,.landing-learn-more,.landing-tour-next span{transition:none} }

/* Karuzela jest częścią landingu, nie osobnym modalem. */
.landing-layout { grid-template-columns:minmax(520px,1.22fr) minmax(340px,.78fr); gap:clamp(36px,5vw,72px); }
.landing-hero .landing-login-card { width:min(430px,100%); margin-top:30px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; text-align:left; backdrop-filter:none; transform:none; animation:none; }
.landing-hero .landing-login-card::before,.landing-hero .landing-login-card::after { display:none; }
.landing-hero .landing-login-card .auth-eyebrow,.landing-hero .landing-login-card h2,.landing-hero .landing-login-card .auth-lead,.landing-hero .landing-login-card .landing-mini-flow { display:none; }
.landing-hero .landing-login-card .google-login-button { margin-top:0; }
.landing-hero .landing-login-card .auth-reassurance { text-align:center; }
.landing-layout > .landing-tour-shell { width:100%; min-width:0; align-self:center; padding:11px; border:1px solid rgba(152,101,70,.18); border-radius:29px; background:rgba(255,253,249,.78); box-shadow:0 28px 80px rgba(60,45,32,.14); backdrop-filter:blur(12px); animation:auth-card-in .65s cubic-bezier(.2,.8,.2,1) both; }
.landing-layout > .landing-login-card { width:100%; align-self:center; padding:38px 34px 31px; }
.landing-layout > .landing-login-card h2 { font-size:clamp(38px,3.8vw,50px); }
.landing-layout > .landing-tour-shell .landing-tour-topbar { height:40px; }
.landing-layout > .landing-tour-shell .landing-tour-close { display:none; }
.landing-layout > .landing-tour-shell .landing-tour-window { border-radius:21px; }
.landing-layout > .landing-tour-shell .landing-tour-slide { min-height:520px; grid-template-columns:1fr; align-content:center; gap:24px; padding:clamp(28px,4vw,46px); }
.landing-layout > .landing-tour-shell .landing-tour-slide h2 { margin-top:10px; font-size:clamp(36px,4.2vw,53px); }
.landing-layout > .landing-tour-shell .landing-tour-slide p { margin-top:16px; font-size:13px; line-height:1.6; }
.landing-layout > .landing-tour-shell .landing-tour-next { margin-top:22px; }
.landing-layout > .landing-tour-shell .landing-word-orbit { width:190px; position:absolute; right:28px; bottom:25px; opacity:.88; }
.landing-layout > .landing-tour-shell .landing-tour-intro { position:relative; padding-right:clamp(105px,14vw,175px); }
.landing-layout > .landing-tour-shell .landing-session-card { width:min(330px,86%); padding:25px; justify-self:end; transform:rotate(1deg); }
.landing-layout > .landing-tour-shell .landing-session-card strong { margin-top:28px; font-size:36px; }
.landing-layout > .landing-tour-shell .landing-modes { width:100%; gap:7px; }
.landing-layout > .landing-tour-shell .landing-modes article { padding:13px 16px; }
.landing-layout > .landing-tour-shell .landing-tour-final { justify-items:start; text-align:left; }
.landing-layout > .landing-tour-shell .landing-tour-final .primary-button { margin-top:24px; }

@media (max-width:900px) {
  .landing-layout { grid-template-columns:1fr; gap:44px; }
  .landing-layout > .landing-login-card { order:-1; width:min(560px,100%); margin-inline:auto; }
  .landing-layout > .landing-tour-shell { width:min(680px,100%); margin:0 auto; }
}
@media (max-width:640px) {
  .landing-layout > .landing-tour-shell { padding:8px; border-radius:23px; }
  .landing-layout > .landing-tour-shell .landing-tour-slide { min-height:480px; padding:27px 20px; }
  .landing-layout > .landing-tour-shell .landing-tour-slide h2 { font-size:clamp(34px,10vw,44px); }
  .landing-layout > .landing-tour-shell .landing-tour-intro { padding-right:20px; padding-bottom:150px; }
  .landing-layout > .landing-tour-shell .landing-word-orbit { width:135px; right:20px; bottom:16px; }
  .landing-layout > .landing-tour-shell .landing-session-card { width:100%; justify-self:stretch; }
  .landing-layout > .landing-tour-shell .landing-tour-final .primary-button { width:100%; justify-content:center; }
}

/* Jedna spójna powierzchnia zamiast kilku osadzonych kart. */
.landing-layout { gap:0; height:clamp(560px,calc(100svh - 102px),680px); min-height:0; padding:0; border:1px solid rgba(152,101,70,.18); border-radius:32px; overflow:hidden; background:rgba(255,253,249,.8); box-shadow:0 30px 90px rgba(60,45,32,.13); backdrop-filter:blur(14px); }
.landing-layout > .landing-tour-shell { height:100%; align-self:stretch; padding:14px; border:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; animation:landing-copy-in .65s cubic-bezier(.2,.8,.2,1) both; }
.landing-layout > .landing-tour-shell .landing-tour-window { height:calc(100% - 78px); border:0; border-radius:0; background:transparent; }
.landing-layout > .landing-tour-shell .landing-tour-track { height:100%; }
.landing-layout > .landing-tour-shell .landing-tour-slide { min-height:100%; }
.landing-layout > .landing-login-card { height:100%; align-self:stretch; display:flex; flex-direction:column; justify-content:center; padding:clamp(34px,4vw,54px); border:0; border-left:1px solid rgba(152,101,70,.16); border-radius:0; background:rgba(255,255,255,.4); box-shadow:none; backdrop-filter:none; transform:none; }
.landing-layout > .landing-login-card::before { display:none; }
.landing-layout > .landing-login-card::after { right:25px; top:5px; font-size:78px; }
.landing-layout > .landing-login-card .google-login-button { box-shadow:0 10px 26px rgba(45,38,30,.07); }
.landing-tour-pause { width:32px; height:32px; display:grid; place-items:center; border:1px solid rgba(109,84,63,.14); border-radius:50%; background:rgba(255,255,255,.72); color:var(--accent-dark); font-size:11px; line-height:1; transition:background .2s ease,transform .2s ease; }
.landing-tour-pause:hover { background:#fff; transform:scale(1.05); }
.landing-tour-navigation { margin-top:12px; }
.landing-layout > .landing-tour-shell .landing-tour-slide { position:relative; overflow:hidden; }
.landing-layout > .landing-tour-shell .landing-tour-slide > div:first-child,.landing-layout > .landing-tour-shell .landing-slide-copy { position:relative; z-index:1; max-width:92%; }
.landing-tour-checklist { display:grid; gap:10px; margin-top:22px; padding:0; list-style:none; }
.landing-tour-checklist li { position:relative; padding-left:24px; color:var(--muted); font-size:12px; line-height:1.5; }
.landing-tour-checklist li::before { content:"✓"; position:absolute; left:0; top:0; color:var(--accent); font-weight:var(--weight-label); }
.landing-layout > .landing-tour-shell .landing-audience-copy h2 { font-size:clamp(31px,3.2vw,42px); }
.landing-layout > .landing-tour-shell .landing-audience-copy .landing-tour-next { margin-top:17px; }
.landing-layout > .landing-tour-shell .landing-path-slide { display:block; padding-top:25px; overflow-y:auto; }
.landing-layout > .landing-tour-shell .landing-path-slide h2 { margin:7px 0 15px; font-size:clamp(29px,3vw,39px); }
.landing-path-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; }
.landing-path-grid article { padding:10px 0; border-top:1px solid rgba(152,101,70,.14); }
.landing-path-grid strong { font-family:var(--font-display); font-size:16px; font-weight:600; }
.landing-path-grid p { margin-top:4px !important; font-size:10px !important; line-height:1.45 !important; }
.landing-layout > .landing-tour-shell .landing-path-slide .primary-button { margin-top:15px; padding-block:11px; }
.landing-layout > .landing-login-card { background:linear-gradient(155deg,rgba(255,255,255,.5),rgba(249,244,238,.36)); }
.landing-layout > .landing-login-card h2 { max-width:430px; }
.landing-layout > .landing-login-card .auth-lead { max-width:410px; }

@media (max-width:900px) {
  .landing-layout { width:min(680px,100%); min-height:0; overflow:visible; border-radius:28px; }
  .landing-layout > .landing-login-card { height:auto; min-height:470px; border-left:0; border-bottom:1px solid rgba(152,101,70,.16); border-radius:28px 28px 0 0; }
  .landing-layout > .landing-tour-shell { min-height:540px; border-radius:0 0 28px 28px; }
  .landing-layout > .landing-tour-shell .landing-tour-window { height:460px; }
}
@media (max-width:640px) {
  .landing-layout { border-radius:22px; }
  .landing-layout > .landing-login-card { min-height:430px; padding:34px 22px; border-radius:22px 22px 0 0; }
  .landing-layout > .landing-tour-shell { min-height:515px; padding:10px; border-radius:0 0 22px 22px; }
  .landing-layout > .landing-tour-shell .landing-tour-window { height:435px; }
  .landing-tour-checklist { gap:8px; margin-top:17px; }
  .landing-tour-checklist li { font-size:11px; }
  .landing-layout > .landing-tour-shell .landing-audience-copy h2 { font-size:31px; }
  .landing-path-grid { grid-template-columns:1fr; }
  .landing-path-grid article { padding:7px 0; }
  .landing-path-grid p { display:none; }
  .landing-layout > .landing-tour-shell .landing-path-slide h2 { font-size:30px; }
}

/* Otwarta książka: spokojny papier, delikatny grzbiet i tylko sugerowany ruch kartki. */
.landing-layout { position:relative; isolation:isolate; background-color:#fbf7f0; background-image:radial-gradient(circle at 17% 20%,rgba(255,255,255,.76),transparent 34%),repeating-linear-gradient(0deg,rgba(102,77,57,.009) 0,rgba(102,77,57,.009) 1px,transparent 1px,transparent 5px); box-shadow:0 26px 70px rgba(60,45,32,.12),0 2px 0 #e1d5c8,0 5px 0 #eee6dc,0 8px 0 #f7f2ec,inset 0 1px 0 rgba(255,255,255,.9); }
.landing-layout::before { content:""; position:absolute; z-index:5; top:0; bottom:0; left:61%; width:10px; background:linear-gradient(90deg,transparent,rgba(74,52,35,.04) 38%,rgba(255,255,255,.48) 54%,transparent 78%); transform:translateX(-50%); pointer-events:none; }
.landing-layout > .landing-tour-shell { background:linear-gradient(90deg,rgba(255,255,255,.26),transparent 7%),radial-gradient(ellipse at 100% 50%,rgba(91,64,43,.028),transparent 27%); box-shadow:inset -20px 0 28px -32px rgba(66,47,32,.18); }
.landing-layout > .landing-login-card { background-image:linear-gradient(270deg,rgba(255,255,255,.22),transparent 8%),radial-gradient(ellipse at 0 50%,rgba(91,64,43,.025),transparent 29%),linear-gradient(155deg,rgba(255,255,255,.48),rgba(249,244,238,.34)); box-shadow:inset 20px 0 28px -32px rgba(66,47,32,.15); }
.landing-layout > .landing-tour-shell { position:relative; z-index:2; }
.landing-layout > .landing-login-card { position:relative; z-index:1; }
.landing-layout > .landing-tour-shell .landing-tour-window { position:relative; overflow:hidden; }
.landing-layout > .landing-tour-shell .landing-tour-track { transition:none; }
.landing-layout h2,
.landing-layout .landing-path-grid strong { font-family:var(--font-display); color:var(--text); }
.landing-layout p,
.landing-layout button,
.landing-layout .eyebrow,
.landing-layout .landing-tour-count,
.landing-layout .landing-tour-hint,
.landing-layout .landing-tour-checklist,
.landing-layout .landing-mini-flow { font-family:var(--font-body); }
.landing-layout .eyebrow { color:var(--accent-dark); font-size:10px; font-weight:var(--weight-label); letter-spacing:.14em; }
.landing-layout .landing-tour-count,
.landing-layout .landing-tour-hint { color:var(--text-subtle); }
.landing-corner-peel { position:absolute; z-index:9; top:0; left:0; width:88px; height:88px; clip-path:polygon(0 0,0 0,0 0); border-radius:31px 0 0 0; background:linear-gradient(135deg,#e8dccf 0 47%,#fffdf8 49% 66%,rgba(255,255,255,0) 68%); filter:drop-shadow(8px 9px 7px rgba(61,43,29,.17)); transform-origin:0 0; pointer-events:none; animation:book-corner-peel .56s cubic-bezier(.4,0,.2,1) forwards; }
.landing-corner-peel::after { content:""; position:absolute; top:0; left:0; width:100%; height:100%; background:linear-gradient(135deg,rgba(119,86,61,.13),transparent 56%); }
@keyframes book-corner-peel { 0%{clip-path:polygon(0 0,0 0,0 0);transform:rotate(0);opacity:0} 18%{opacity:1} 52%{clip-path:polygon(0 0,76% 0,0 76%);transform:rotate(2deg);opacity:1} 72%{clip-path:polygon(0 0,62% 0,0 62%);transform:rotate(-1deg);opacity:.82} 100%{clip-path:polygon(0 0,0 0,0 0);transform:rotate(0);opacity:0} }

@media (max-width:900px) {
  .landing-layout { height:auto; box-shadow:0 28px 70px rgba(60,45,32,.13),0 3px 0 #e7ddd1,0 6px 0 #f2ebe3; }
  .landing-layout::before { display:none; }
  .landing-layout > .landing-login-card { box-shadow:inset 0 -26px 32px -34px rgba(66,47,32,.25); }
  .landing-layout > .landing-tour-shell { box-shadow:inset 0 26px 32px -34px rgba(66,47,32,.28); }
}
@media (max-width:640px) {
  .landing-corner-peel { width:64px; height:64px; border-radius:22px 0 0 0; animation-duration:.46s; }
}
@media (prefers-reduced-motion:reduce) { .landing-corner-peel{display:none!important} }

/* Mobile: jedna strona książki — zmienna opowieść nad stałym logowaniem. */
@media (max-width:640px) {
  .login-landing.auth-page { padding-bottom:14px; }
  .landing-layout {
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:auto auto;
    gap:0;
    width:min(100%,520px);
    overflow:hidden;
    border-radius:22px;
  }
  .landing-layout > .landing-tour-shell {
    order:0;
    width:100%;
    height:clamp(390px,58svh,470px);
    min-height:0;
    padding:8px 10px 0;
    border-radius:0;
    background:linear-gradient(90deg,rgba(255,255,255,.24),transparent 8%);
    box-shadow:none;
  }
  .landing-layout > .landing-tour-shell .landing-tour-topbar { height:34px; }
  .landing-layout > .landing-tour-shell .landing-tour-window { height:calc(100% - 67px); }
  .landing-layout > .landing-tour-shell .landing-tour-slide {
    min-height:100%;
    align-content:center;
    padding:22px 19px;
  }
  .landing-layout > .landing-tour-shell .landing-tour-slide > div:first-child,
  .landing-layout > .landing-tour-shell .landing-slide-copy { max-width:100%; }
  .landing-layout > .landing-tour-shell .landing-tour-slide h2 {
    margin-top:8px;
    font-size:clamp(30px,9vw,38px);
    line-height:1.04;
  }
  .landing-layout > .landing-tour-shell .landing-tour-slide p {
    margin-top:12px;
    font-size:12px;
    line-height:1.5;
  }
  .landing-layout > .landing-tour-shell .landing-tour-intro { padding:22px 19px; }
  .landing-layout > .landing-tour-shell .landing-tour-next { margin-top:16px; }
  .landing-layout > .landing-tour-shell .landing-audience-copy h2 { font-size:29px; }
  .landing-tour-checklist { gap:6px; margin-top:12px; }
  .landing-tour-checklist li { padding-left:20px; font-size:10px; line-height:1.4; }
  .landing-layout > .landing-tour-shell .landing-path-slide { padding:15px 19px 10px; }
  .landing-layout > .landing-tour-shell .landing-path-slide h2 { margin-bottom:9px; font-size:28px; }
  .landing-path-grid article { padding:5px 0; }
  .landing-path-grid strong { font-size:14px; }
  .landing-tour-navigation { margin-top:7px; }
  .landing-tour-hint { display:none; }

  .landing-layout > .landing-login-card {
    order:1;
    width:100%;
    height:auto;
    min-height:0;
    margin:0;
    padding:17px 20px 19px;
    border:0;
    border-top:1px solid rgba(152,101,70,.13);
    border-radius:0;
    background:linear-gradient(180deg,rgba(250,246,240,.25),rgba(255,255,255,.46));
    box-shadow:inset 0 14px 24px -28px rgba(66,47,32,.2);
  }
  .landing-layout > .landing-login-card .auth-eyebrow,
  .landing-layout > .landing-login-card h2,
  .landing-layout > .landing-login-card .auth-lead,
  .landing-layout > .landing-login-card .landing-mini-flow { display:none; }
  .landing-layout > .landing-login-card .google-login-button {
    min-height:56px;
    margin-top:0;
  }
  .landing-layout > .landing-login-card .auth-choice { margin:7px 0 2px; }
  .landing-layout > .landing-login-card .guest-login-button { min-height:30px; font-size:11px; }
  .landing-layout > .landing-login-card .auth-reassurance { margin-top:9px; }
  .landing-layout > .landing-login-card .auth-status:empty { display:none; }
}

/* Wspólna typografia wszystkich czterech stron prezentacji. */
.landing-layout > .landing-tour-shell .landing-tour-slide h2,
.landing-layout > .landing-tour-shell .landing-audience-copy h2,
.landing-layout > .landing-tour-shell .landing-path-slide h2 {
  max-width:680px;
  margin:9px 0 15px;
  color:var(--text);
  font-family:var(--font-display);
  font-size:clamp(34px,3.7vw,47px);
  font-weight:500;
  line-height:1.06;
  letter-spacing:-.035em;
}
.landing-layout > .landing-tour-shell .landing-tour-slide p,
.landing-tour-checklist li,
.landing-path-grid strong,
.landing-path-grid p,
.landing-tour-next {
  font-family:var(--font-body);
}
.landing-layout > .landing-tour-shell .landing-tour-slide p {
  color:var(--muted);
  font-size:13px;
  line-height:1.58;
}
.landing-path-grid strong {
  font-size:13px;
  font-weight:700;
  letter-spacing:-.01em;
}
.landing-layout > .landing-tour-shell .landing-tour-next {
  margin-top:18px;
  font-size:12px;
  font-weight:700;
}

@media (max-width:640px) {
  .landing-layout > .landing-tour-shell .landing-tour-slide h2,
  .landing-layout > .landing-tour-shell .landing-audience-copy h2,
  .landing-layout > .landing-tour-shell .landing-path-slide h2 {
    margin:8px 0 12px;
    font-size:clamp(29px,8.3vw,34px);
    line-height:1.06;
  }
  .landing-layout > .landing-tour-shell .landing-tour-slide p {
    margin-top:10px;
    font-size:11px;
    line-height:1.5;
  }
  .landing-layout > .landing-tour-shell .landing-tour-next { margin-top:14px; }
  .landing-path-grid strong { font-size:13px; }
}

/* Mobile: strony 3–4 mają ten sam rytm i powierzchnię co strony 1–2. */
@media (max-width:640px) {
  .landing-layout > .landing-tour-shell .landing-audience-copy {
    display:flex;
    height:100%;
    flex-direction:column;
    justify-content:center;
  }
  .landing-layout > .landing-tour-shell .landing-audience-copy h2 { max-width:100%; }
  .landing-layout > .landing-tour-shell .landing-audience-copy .landing-tour-checklist {
    gap:7px;
    margin:13px 0 0;
  }
  .landing-layout > .landing-tour-shell .landing-audience-copy .landing-tour-checklist li {
    padding-left:21px;
    font-size:11px;
    line-height:1.38;
  }
  .landing-layout > .landing-tour-shell .landing-audience-copy .landing-tour-next { margin-top:16px; }

  .landing-layout > .landing-tour-shell .landing-path-slide {
    display:flex;
    height:100%;
    flex-direction:column;
    justify-content:center;
    overflow:hidden;
    padding:20px 19px;
  }
  .landing-layout > .landing-tour-shell .landing-path-slide h2 {
    max-width:100%;
    margin-bottom:10px;
  }
  .landing-layout > .landing-tour-shell .landing-path-slide .landing-path-grid {
    width:100%;
    grid-template-columns:1fr;
    gap:0;
  }
  .landing-layout > .landing-tour-shell .landing-path-slide .landing-path-grid article {
    position:relative;
    min-height:0;
    padding:6px 0 6px 20px;
    border-top:0;
  }
  .landing-layout > .landing-tour-shell .landing-path-slide .landing-path-grid article::before {
    content:"•";
    position:absolute;
    left:2px;
    top:5px;
    color:var(--accent);
    font-family:var(--font-body);
    font-size:15px;
    line-height:1;
  }
  .landing-layout > .landing-tour-shell .landing-path-slide .landing-path-grid strong {
    display:block;
    color:var(--text);
    font-family:var(--font-body);
    font-size:11px;
    font-weight:400;
    line-height:1.4;
    letter-spacing:0;
  }
}

@media (max-width:400px) {
  .landing-layout > .landing-tour-shell .landing-audience-copy .landing-tour-checklist li { font-size:10px; }
  .landing-layout > .landing-tour-shell .landing-path-slide .landing-path-grid article { padding-block:5px; }
}
