/* /app — the WBuch app promo page (app_promo_page_widget.dart).
   The app's own look: Source Serif 4 + JetBrains Mono on "paper", tokens
   from wbuch-app's AppColorTokens. One responsive layout: 1100 / 760 px. */

:root {
  --paper: #FBF7E8; --paper-deep: #F2ECD6; --paper-soft: #FEFCF2;
  --ink: #1C1A14; --ink2: #3A352A; --ink3: #6A6353; --ink-dim: #A69D85;
  --rule: #CDC4A9; --rule-soft: #D9D1B6;
  --red: #A52828; --red-deep: #8A1F1F; --red-soft: #C44A3A; --gold: #E7B43C;
  --green: #2F7A4D; --green-soft: #CFE1CF;
  --hl: #FBE48F; --hl-soft: #FDEFB3;
  --serif: 'Source Serif 4', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: 96px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); }
body { -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
.g-der { color: #2563EB; } .g-die { color: #DC2626; } .g-das { color: #16A34A; }
i.g-der, i.g-die, i.g-das { font-style: italic; }

.promo { overflow-x: clip; }

/* ---- shared section pieces ---------------------------------------------- */
.p-section { padding: 110px var(--gutter); }
.p-head { display: flex; flex-direction: column; gap: 18px; }
.p-kick { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.p-head h2 { font-size: 56px; line-height: 1.04; letter-spacing: -0.02em; }
.p-sub { font-size: 19px; line-height: 1.55; color: var(--ink2); max-width: 620px; }

/* ---- nav ---------------------------------------------------------------- */
.p-nav {
  height: 88px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 36px;
  border-bottom: 1px solid var(--rule-soft);
}
.p-logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.p-logo:hover { color: var(--ink); }
.p-logo img { width: 40px; height: 40px; border-radius: 10px; }
.p-logo span { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.p-links { display: flex; gap: 28px; flex-grow: 1; font-size: 16px; }
.p-links a { color: var(--ink2); }
.p-links a:hover { color: var(--red); }
.p-navdict { display: none; }
.p-open {
  height: 44px; padding: 0 20px; display: inline-flex; align-items: center; white-space: nowrap;
  border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600;
}
.p-open:hover { background: #000; color: var(--paper); }

.p-lang { position: relative; font-family: var(--mono); font-size: 13px; }
.p-lang summary {
  list-style: none; cursor: pointer; height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-soft); color: var(--ink);
}
.p-lang summary::-webkit-details-marker { display: none; }
.p-lang summary svg { width: 18px; height: 18px; fill: none; stroke: var(--ink3); stroke-width: 1.6; }
.p-lang ul {
  position: absolute; right: 0; top: 50px; z-index: 20; margin: 0; padding: 6px; list-style: none; min-width: 170px;
  background: var(--paper-soft); border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 14px 30px rgba(28,26,20,.14);
}
.p-lang li a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); font-family: var(--serif); font-size: 15px; }
.p-lang li a:hover { background: var(--paper-deep); }
.p-lang li a[aria-current] { background: var(--ink); color: var(--paper); }

/* ---- hero --------------------------------------------------------------- */
.p-hero {
  padding: 72px var(--gutter) 40px; display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 48px;
  min-height: 720px;
}
.p-hero-text { display: flex; flex-direction: column; gap: 28px; padding-top: 24px; }
.p-eyebrow {
  display: flex; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red);
}
.p-eyebrow i, .p-flag i { display: inline-block; width: 18px; height: 4px; margin-right: 3px; background: var(--ink); }
.p-eyebrow i:nth-child(2), .p-flag i:nth-child(2) { background: var(--red); }
.p-eyebrow i:nth-child(3), .p-flag i:nth-child(3) { background: var(--gold); margin-right: 14px; }
.p-hero h1 { font-size: 80px; line-height: 1; letter-spacing: -0.025em; }
.p-lead { font-size: 20px; line-height: 1.55; color: var(--ink2); max-width: 580px; }
.p-meta { font-family: var(--mono); font-size: 13px; color: var(--ink3); letter-spacing: .02em; }

.p-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.p-web {
  height: 56px; padding: 0 26px; display: inline-flex; align-items: center; gap: 10px; border-radius: 12px;
  background: var(--red); color: var(--paper-soft); font-size: 17px; font-weight: 600;
}
.p-web:hover { background: var(--red-deep); color: var(--paper-soft); }
.p-web svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.p-badges { display: flex; align-items: center; gap: 14px; }
.p-badges .badge-apple img, .p-badges .badge-play img { display: block; height: 56px; width: auto; }
/* promo.js tags <html> with the platform: its store goes first. */
.is-ios .p-ctas .p-badges, .is-android .p-ctas .p-badges { order: -1; }
.is-android .p-badges .badge-play { order: -1; }

.p-stage { position: relative; height: 648px; }
.p-disc, .p-ring { position: absolute; border-radius: 50%; }
.p-disc { left: 70px; top: 10px; width: 520px; height: 520px; background: var(--paper-deep); }
.p-ring { left: 60px; top: 58px; width: 440px; height: 440px; border: 1px dashed var(--rule); }
.p-stage-phone { position: absolute; left: 200px; top: 0; transform: rotate(3deg); }
.p-stage-card { position: absolute; left: 0; top: 250px; transform: rotate(-5deg); }
.p-stage-notif { position: absolute; right: 0; top: 400px; }

/* ---- ticker ------------------------------------------------------------- */
.p-ticker {
  height: 64px; display: flex; align-items: center; gap: 64px; padding: 0 48px; overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-soft); font-size: 22px;
}
.p-ticker span { flex-shrink: 0; }

/* ---- the day ------------------------------------------------------------ */
.p-day { display: flex; flex-direction: column; gap: 48px; }
.p-day-head { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: end; }
.p-day-ctrl { display: flex; flex-direction: column; gap: 14px; }
.p-total { display: flex; align-items: baseline; justify-content: flex-end; gap: 12px; }
.p-total span { font-size: 96px; line-height: .9; letter-spacing: -0.03em; display: none; }
.p-total small { font-family: var(--mono); font-size: 13px; color: var(--ink3); }
.p-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.p-seg button {
  height: 44px; border: 0; background: transparent; color: var(--ink3); cursor: pointer;
  font-family: var(--mono); font-size: 13px;
}
.p-seg button + button { border-left: 1px solid var(--rule); }
.p-seg button[aria-pressed="true"] { background: var(--green-soft); color: var(--green); }
.p-seg button[aria-pressed="true"]::before { content: '✓ '; }
.p-plan { display: none; flex-direction: column; gap: 32px; }
.p-day[data-intensity="0"] .p-plan-0, .p-day[data-intensity="1"] .p-plan-1, .p-day[data-intensity="2"] .p-plan-2 { display: flex; }
.p-day[data-intensity="0"] .p-total .p-plan-0, .p-day[data-intensity="1"] .p-total .p-plan-1, .p-day[data-intensity="2"] .p-total .p-plan-2 { display: inline; }
.p-ruler { position: relative; height: 64px; }
.p-ruler::before { content: ''; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--rule); }
.p-hour { position: absolute; top: 44px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--ink3); }
.p-dot { position: absolute; top: 22px; width: 16px; height: 16px; border-radius: 50%; transform: translateX(-50%); background: var(--ink); }
.p-dot.best { background: var(--red); box-shadow: 0 0 0 5px #F2DAD2; }
.p-dot.opt { background: var(--paper); border: 2px dashed var(--ink3); }
.p-blocks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.p-blk {
  min-height: 150px; padding: 18px; border-radius: 14px; background: var(--paper-soft); border: 1px solid var(--rule-soft);
  display: flex; flex-direction: column; gap: 8px;
}
.p-blk.best { border: 1.5px solid var(--red); }
.p-blk.opt { background: transparent; border: 1px dashed var(--rule); }
.p-blk-top { display: flex; justify-content: space-between; align-items: center; }
.p-blk-time { padding: 6px 10px; border-radius: 8px; background: var(--paper-deep); border: 1px solid var(--rule-soft); font-size: 18px; }
.p-blk-top svg { width: 22px; height: 22px; fill: none; stroke: var(--red); stroke-width: 1.8; }
.p-blk-top svg .am-fill { fill: var(--red); stroke: none; }
.p-blk-best { font-family: var(--mono); font-size: 11px; color: var(--red); letter-spacing: .08em; }
.p-blk-name { font-size: 22px; font-weight: 600; line-height: 1.15; }
.p-blk-meta { font-family: var(--mono); font-size: 12px; color: var(--ink3); }

/* ---- exercises ---------------------------------------------------------- */
.p-ex { background: var(--paper-deep); display: flex; flex-direction: column; gap: 56px; }
.p-ex .p-head { max-width: 760px; }
.p-ex-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.p-ex-item { display: flex; flex-direction: column; gap: 16px; }
.p-ex-item h3 { font-size: 24px; font-weight: 600; }
.p-ex-item p { font-size: 16px; line-height: 1.5; color: var(--ink2); }
.p-ex-demo {
  height: 380px; padding: 16px; border-radius: 14px; background: var(--paper-soft); border: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.p-ex-demo img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }
.p-demo-gloss { margin-top: 18px; font-size: 22px; color: var(--red); text-align: center; line-height: 1.2; }
.p-ex-demo img + .p-demo-gloss { margin-top: 0; }
.p-demo-gloss--big { margin-top: 0; font-size: 30px; }
.p-demo-hint { font-size: 14px; color: var(--ink3); text-align: center; }
.p-demo-btn {
  margin-top: auto; width: 100%; padding: 13px; text-align: center; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.p-demo-tag { margin-top: 30px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 3px 7px; border: 1px solid var(--rule); color: var(--ink3); }
.p-demo-input { width: 100%; border: 1px solid var(--ink); border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.p-demo-input small { font-family: var(--mono); font-size: 10px; color: var(--ink3); }
.p-demo-input span { font-size: 24px; }
.p-demo-input i { display: inline-block; width: 2px; height: 22px; background: var(--red); vertical-align: -3px; }
.p-demo-keys, .p-demo-tags, .p-demo-slots, .p-demo-tiles { display: flex; gap: 6px; font-family: var(--mono); }
.p-demo-keys b { width: 34px; height: 34px; border: 1px solid var(--rule); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 400; }
.p-demo-keys b:first-child { background: var(--hl); }
.p-demo-tags b { font-size: 10px; font-weight: 400; padding: 3px 7px; border: 1px solid var(--rule); color: var(--ink2); }
.p-demo-cloze { font-size: 19px; line-height: 1.7; }
.p-demo-cloze mark { padding: 2px 10px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.p-demo-slots { margin-top: 12px; }
.p-demo-slots b, .p-demo-slots i { width: 34px; height: 42px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 400; }
.p-demo-slots b { background: var(--green-soft); color: var(--green); border: 1px solid #9EC3A8; }
.p-demo-slots i { background: var(--paper-deep); border: 1px solid var(--rule-soft); }
.p-demo-tiles { margin-top: 12px; }
.p-demo-tiles b { width: 40px; height: 40px; border-radius: 6px; background: var(--hl); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 500; }

/* ---- reading ------------------------------------------------------------ */
.p-read { display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 1fr); gap: 80px; align-items: center; }
.p-read-text {
  position: relative; padding: 40px 44px 48px; border-radius: 14px; background: var(--paper-soft); border: 1px solid var(--rule);
  box-shadow: 0 1px 0 var(--rule-soft), 0 12px 0 -6px var(--paper-deep), 0 12px 0 -5px var(--rule-soft);
}
.p-read-tags { display: flex; gap: 8px; margin-bottom: 18px; font-family: var(--mono); }
.p-read-tags b { font-size: 11px; font-weight: 400; padding: 3px 8px; border: 1px solid var(--rule); }
.p-read-text h3 { font-size: 34px; font-style: italic; letter-spacing: -0.01em; margin-bottom: 20px; }
.p-read-text p { font-size: 21px; line-height: 1.75; }
.p-read-text mark { background: var(--hl-soft); padding: 0 3px; border-bottom: 2px solid var(--gold); color: inherit; }
.p-read-text mark.on { background: var(--hl); border-bottom-color: var(--red); }
.p-pop-anchor { position: relative; }
.p-pop {
  position: absolute; left: -40px; top: calc(100% + 10px); z-index: 2; width: 250px; padding: 14px 16px; border-radius: 12px;
  line-height: 1.3;
  background: var(--ink); color: var(--paper); box-shadow: 0 18px 36px rgba(28,26,20,.28);
  display: flex; flex-direction: column; gap: 6px;
}
.p-pop--static { display: none; }
.p-pop-w { font-size: 20px; }
.p-pop-g { font-size: 15px; color: var(--hl); }
.p-pop-f { font-family: var(--mono); font-size: 10px; color: var(--ink-dim); }
.p-legend { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink2); }
.p-legend i { width: 28px; height: 14px; background: var(--hl-soft); border-bottom: 2px solid var(--gold); }

/* ---- dictionary --------------------------------------------------------- */
.p-dict { padding-top: 0; display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: 80px; align-items: center; }
.p-big { font-size: 150px; line-height: .85; letter-spacing: -0.04em; }
.p-big span { color: var(--red); }
.p-dict h2 { font-size: 44px; line-height: 1.08; }
.p-arrow { font-size: 18px; font-weight: 600; }
.p-entry { padding: 36px 40px; border-radius: 14px; background: var(--paper-soft); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 18px; }
.p-entry-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink3); }
.p-entry-cefr { padding: 2px 7px; border: 1px solid var(--red); color: var(--red); }
.p-entry-hw { font-size: 72px; line-height: 1; color: #16A34A; letter-spacing: -0.02em; }
.p-entry-hw i { font-size: 30px; margin-right: 10px; }
.p-entry-ipa { display: flex; align-items: center; gap: 10px; }
.p-entry-ipa span { font-family: var(--mono); font-size: 16px; color: var(--ink2); }
.p-entry-ipa svg { width: 24px; height: 24px; fill: none; stroke: var(--red); stroke-width: 1.8; }
.p-entry-ipa svg .am-fill { fill: var(--red); stroke: none; }
.p-entry-ipa b { font-weight: 400; font-size: 18px; color: var(--red); margin-left: 8px; }
.p-decl { width: 100%; border-collapse: collapse; font-size: 17px; border-top: 1px solid var(--rule); }
.p-decl th, .p-decl td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); font-weight: 400; }
.p-decl th { font-family: var(--mono); font-size: 11px; color: var(--ink3); width: 120px; }
.p-decl thead th { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.p-decl tr:last-child th, .p-decl tr:last-child td { border-bottom: 0; }
.p-entry-add { align-self: flex-start; height: 46px; padding: 0 18px; display: flex; align-items: center; border-radius: 10px; border: 1px solid var(--red); color: var(--red); font-size: 16px; font-weight: 600; }

/* ---- more --------------------------------------------------------------- */
.p-more { border-top: 1px solid var(--rule); padding-top: 100px; display: flex; flex-direction: column; gap: 48px; }
.p-more h2 { font-size: 48px; max-width: 820px; }
.p-more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.p-more-grid article { padding: 28px 28px 0; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--rule-soft); }
.p-more-grid article:first-child { padding-left: 0; }
.p-more-grid article:last-child { border-right: 0; padding-right: 0; }
.p-more-grid h3 { font-size: 23px; font-weight: 600; }
.p-more-grid p { font-size: 16px; line-height: 1.5; color: var(--ink2); }
.p-more-icon { height: 32px; display: flex; align-items: flex-end; }
.p-more-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--red); stroke-width: 1.6; }
.p-streak { display: flex; gap: 4px; align-items: flex-end; height: 32px; }
.p-streak i { width: 10px; border-radius: 2px; background: var(--red); height: 20px; }
.p-streak i:nth-child(3n) { height: 28px; } .p-streak i:nth-child(3n+1) { height: 14px; }
.p-streak i.off { background: var(--rule-soft); }
.p-streak i.ice { background: #2A5DB6; }

/* ---- final CTA ---------------------------------------------------------- */
.p-final {
  margin: 0 48px; padding: 88px 72px; border-radius: 24px; background: var(--ink); color: var(--paper);
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; align-items: center;
}
.p-final-text { display: flex; flex-direction: column; gap: 24px; }
.p-flag i { width: 24px; height: 5px; background: var(--paper); }
.p-flag i:nth-child(2) { background: var(--red-soft); }
.p-final h2 { font-size: 64px; line-height: 1.02; letter-spacing: -0.025em; }
.p-final p { font-size: 19px; color: #E7E1CD; }
.p-ctas--dark .p-web { background: var(--paper); color: var(--ink); }
.p-ctas--dark .p-web:hover { background: #fff; color: var(--ink); }
.p-qr { margin: 0; padding: 22px; border-radius: 16px; background: var(--paper); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.p-qr img { width: 200px; height: 200px; display: block; }
.p-qr figcaption { font-family: var(--mono); font-size: 11px; color: var(--ink2); text-align: center; letter-spacing: .04em; }

/* ---- FAQ ---------------------------------------------------------------- */
.p-faq { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 80px; }
.p-faq-list { border-top: 1px solid var(--ink); }
.p-faq details { border-bottom: 1px solid var(--rule); }
.p-faq summary {
  list-style: none; cursor: pointer; min-height: 72px; padding: 16px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 24px; font-size: 23px;
}
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::after { content: '+'; font-family: var(--mono); font-size: 22px; color: var(--red); width: 24px; text-align: center; flex-shrink: 0; }
.p-faq details[open] summary::after { content: '−'; }
.p-faq details p { margin: 0 0 24px; max-width: 720px; font-size: 18px; line-height: 1.6; color: var(--ink2); }

/* ---- footer ------------------------------------------------------------- */
.p-foot { padding: 56px var(--gutter) 64px; background: var(--paper-deep); border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 36px; }
.p-foot-top { display: flex; justify-content: space-between; gap: 48px; align-items: flex-start; }
.p-foot-brand { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.p-foot-brand > span { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 600; }
.p-foot-brand img { width: 36px; height: 36px; border-radius: 9px; }
.p-foot-brand p { font-size: 16px; line-height: 1.5; color: var(--ink2); }
.p-foot nav { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 16px; }
.p-foot nav a { color: var(--ink); }
.p-foot-langs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--rule); }
.p-foot-langs > span { font-family: var(--mono); font-size: 11px; color: var(--ink3); letter-spacing: .12em; text-transform: uppercase; margin-right: 8px; }
.p-foot-langs a { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink2); font-size: 14px; }
.p-foot-langs a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.p-foot-langs small { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink3); }

/* ---- install bar (phones; promo.js shows it) ---------------------------- */
.p-bar[hidden] { display: none; }
.p-bar {
  position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 9000;
  height: 72px; padding: 0 6px 0 12px; border-radius: 16px; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 30px rgba(28,26,20,.35);
}
.p-bar img { width: 40px; height: 40px; border-radius: 10px; }
.p-bar-text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.p-bar-text b { font-size: 15px; }
.p-bar-text small { font-family: var(--mono); font-size: 10px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-bar-btn { height: 44px; padding: 0 16px; border-radius: 10px; background: var(--red); color: var(--paper-soft); display: flex; align-items: center; font-size: 15px; font-weight: 600; }
.p-bar-btn:hover { color: var(--paper-soft); }
.p-bar-close { width: 44px; height: 44px; border: 0; background: none; color: var(--ink-dim); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.p-bar-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
/* The consent banner sits above the bar. */
.consent-banner { z-index: 9500; }

/* ======================= responsive ======================================= */
@media (max-width: 1280px) {
  :root { --gutter: 56px; }
  .p-hero h1 { font-size: 68px; }
  .p-stage { transform: scale(.9); transform-origin: top left; }
  .p-read { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .p-dict { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; }
  .p-big { font-size: 120px; }
}

@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .p-links { display: none; }
  .p-nav { justify-content: space-between; }
  .p-nav .p-navdict {
    margin-left: auto; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-soft); color: var(--ink); font-size: 15px;
  }
  .p-nav .p-navdict svg { width: 18px; height: 18px; fill: none; stroke: var(--ink3); stroke-width: 1.6; }
  .p-hero { grid-template-columns: 1fr; min-height: 0; }
  .p-stage { transform: none; height: 560px; max-width: 600px; width: 100%; justify-self: center; }
  .p-day-head { grid-template-columns: 1fr; gap: 28px; }
  .p-total { justify-content: flex-start; }
  .p-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-read, .p-dict { grid-template-columns: 1fr; }
  .p-read .p-head { order: -1; }
  .p-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-more-grid article { padding: 28px 24px 28px 0 !important; border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .p-final { grid-template-columns: 1fr; margin: 0 24px; padding: 64px 40px; }
  .p-qr { justify-self: start; }
  .p-faq { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .p-nav { height: 64px; gap: 10px; }
  .p-logo img { width: 32px; height: 32px; border-radius: 8px; }
  .p-logo span { font-size: 21px; }
  .p-open { height: 44px; padding: 0 14px; font-size: 14px; }
  .p-nav .p-navdict { width: 44px; padding: 0; justify-content: center; }
  .p-nav .p-navdict span { display: none; }
  .p-section { padding: 56px var(--gutter); }
  .p-head h2, .p-more h2 { font-size: 34px; line-height: 1.06; letter-spacing: -0.015em; }
  .p-sub { font-size: 16px; }
  .p-kick { font-size: 11px; }

  .p-hero { padding: 36px var(--gutter) 0; gap: 0; }
  .p-hero-text { gap: 18px; padding-top: 0; }
  .p-hero h1 { font-size: 44px; line-height: 1.02; letter-spacing: -0.02em; }
  .p-lead { font-size: 17px; }
  .p-meta { font-size: 12px; line-height: 1.5; }
  .p-ctas { flex-direction: column; align-items: stretch; }
  .p-web { justify-content: center; height: 60px; }
  .p-badges { justify-content: center; flex-wrap: wrap; }
  .p-badges .badge-apple img, .p-badges .badge-play img { height: 48px; }
  .is-ios .p-ctas .p-badges, .is-android .p-ctas .p-badges { order: -1; }

  .p-stage { height: 470px; margin-top: 24px; overflow: hidden; }
  .p-disc { left: 35px; top: 20px; width: 320px; height: 320px; }
  .p-ring { display: none; }
  .p-stage-phone { left: 90px; transform: scale(.8) rotate(3deg); transform-origin: top left; }
  .p-stage-card { left: 0; top: 240px; transform: scale(.68) rotate(-5deg); transform-origin: top left; }
  .p-stage .p-stage-notif { display: none; }

  .p-ticker { height: 52px; gap: 28px; padding: 0 16px; font-size: 18px; }
  .p-total span { font-size: 64px; }
  .p-seg button { font-size: 11px; }
  .p-ruler { display: none; }
  .p-blocks { grid-template-columns: 1fr; gap: 8px; }
  .p-blk { min-height: 0; padding: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; }
  .p-blk-top { display: contents; }
  .p-blk-time { grid-column: 1; grid-row: 1 / span 3; font-size: 16px; }
  .p-blk-top svg { grid-column: 3; grid-row: 1 / span 3; }
  .p-blk-best, .p-blk-name, .p-blk-meta { grid-column: 2; }
  .p-blk-name { font-size: 18px; }

  .p-ex-grid { gap: 12px; }
  .p-ex-demo { height: 200px; padding: 10px; gap: 8px; }
  .p-ex-demo img { height: 70px; }
  .p-demo-gloss { margin-top: 6px; font-size: 15px; }
  .p-demo-gloss--big { font-size: 18px; }
  .p-demo-hint, .p-demo-keys, .p-demo-tag { display: none; }
  .p-demo-input { padding: 6px 8px; }
  .p-demo-input span { font-size: 16px; }
  .p-demo-input small { display: none; }
  .p-demo-cloze { font-size: 13px; line-height: 1.5; }
  .p-demo-slots b, .p-demo-slots i { width: 20px; height: 26px; font-size: 12px; }
  .p-demo-tiles b { width: 24px; height: 24px; font-size: 12px; }
  .p-demo-btn { padding: 8px; font-size: 9px; }
  .p-ex-item h3 { font-size: 18px; }
  .p-ex-item p { font-size: 13px; line-height: 1.4; }

  .p-read { gap: 24px; }
  .p-read-text { padding: 20px; }
  .p-read-text h3 { font-size: 22px; margin-bottom: 12px; }
  .p-read-text p { font-size: 17px; line-height: 1.7; }
  .p-pop-anchor .p-pop { display: none; }
  .p-pop--static { display: flex; position: static; width: auto; margin-top: 14px; }

  .p-dict { padding-top: 0; gap: 24px; }
  .p-big { font-size: 76px; }
  .p-dict h2 { font-size: 28px; }
  .p-entry { padding: 20px; }
  .p-entry-hw { font-size: 52px; }
  .p-decl { font-size: 15px; }
  .p-decl th { width: 56px; }

  .p-more { padding-top: 48px; gap: 16px; }
  .p-more-grid { grid-template-columns: 1fr; border-top: 0; }
  .p-more-grid article { padding: 18px 0 !important; border-top: 1px solid var(--rule-soft); border-bottom: 0; }
  .p-more-grid h3 { font-size: 20px; }
  .p-more-grid p { font-size: 15px; }

  .p-final { margin: 0 8px; padding: 44px 20px; border-radius: 20px; gap: 24px; }
  .p-final h2 { font-size: 36px; }
  .p-final p { font-size: 16px; }
  .p-qr { display: none; }

  .p-faq summary { font-size: 18px; min-height: 60px; }
  .p-faq details p { font-size: 15px; }

  .p-foot { padding: 36px var(--gutter) 120px; gap: 18px; }
  .p-foot-top { flex-direction: column; gap: 18px; }
  .p-foot nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
  .p-foot nav a { min-height: 44px; display: flex; align-items: center; }
  .p-foot-langs a { min-height: 44px; }
  .p-foot-langs small { margin-left: 0; width: 100%; }
}

@media (max-width: 400px) {
  /* Logo, dictionary, language and "Open" don't fit side by side: the app
     icon alone carries the brand here (the hero names it right below). */
  .p-logo span { display: none; }
}

@media (min-width: 761px) {
  .p-bar { display: none !important; }
}
