/* One Lesson — landing polish layer. Loaded after main.css, from index.html only.
   Same cream / black / gold, DM Serif Display + DM Sans. No new colours, no ending content. */

:root {
  --gold-text: #85651a;      /* small gold text on cream, 5.2:1 */
  --gold-display: #b08929;   /* large gold display text, ~3.1:1 */
  --muted: #5f5c54;          /* body grey, 6.3:1 on cream */
  --ease: cubic-bezier(.2,.7,.2,1);
  --bar-h: 36px;
}
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* DM Serif Display ships one weight (400). Browsers synthesise a fake bold on
   h1/h2/h3 — it clogs the letterforms. Use the real weight. */
h1, h2, h3, .modal h3 { font-weight: 400; text-wrap: balance; }
p, blockquote, summary { text-wrap: pretty; }

/* ─── Language bar ─── */
.lang-bar {
  min-height: var(--bar-h);
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  align-items: center; gap: 4px;
  font-size: 11px; color: rgba(255,255,255,.62);
}
.lang-bar button {
  color: rgba(255,255,255,.62); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; padding: 0 8px; min-height: var(--bar-h);
}
.lang-bar button.active { color: var(--gold); }
.lang-bar button:hover { color: #e3c978; }

/* ─── Nav ─── */
nav {
  padding: 18px max(40px, env(safe-area-inset-left)) 18px max(40px, env(safe-area-inset-right));
  border-bottom-color: rgba(0,0,0,.08);
}
.logo { font-size: 24px; letter-spacing: -.025em; line-height: 1; }
.price-pill {
  font-size: 12.5px; font-weight: 500; letter-spacing: .04em;
  padding: 8px 16px; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px rgba(200,168,75,.45);
}

/* ─── Hero ─── */
.hero {
  min-height: min(calc(100svh - var(--bar-h) - 62px), 760px);
  padding: clamp(56px, 9vh, 104px) 24px clamp(56px, 8vh, 88px);
  isolation: isolate;
}
.hero::before {
  background:
    radial-gradient(ellipse 55% 45% at 50% 52%, rgba(200,168,75,.10) 0%, transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255,255,255,.7) 0%, transparent 70%);
  z-index: -2;
}

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .22em;
  color: var(--gold-text); margin-bottom: clamp(22px, 3.4vh, 32px);
  gap: 14px; text-align: center; line-height: 1.5;
}
.eyebrow::before, .eyebrow::after {
  flex: none; width: 28px; background: var(--gold-text); opacity: .55;
}
h1 {
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 1.02; letter-spacing: -.028em;
  max-width: 13em; margin-bottom: clamp(22px, 3.4vh, 32px);
}
h1 em { color: var(--gold-display); padding-right: .04em; }
.subtitle {
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6;
  color: var(--muted); max-width: 30em; text-wrap: balance; margin-bottom: clamp(32px, 5vh, 48px);
}

/* ─── The $1 button: a quiet, heavy object ─── */
.cta-group { gap: 16px; }
.cta-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 0 40px;
  font-size: 16.5px; font-weight: 600; letter-spacing: .005em; line-height: 1.2;
  background: linear-gradient(180deg, #181816 0%, #0a0a0a 100%);
  color: var(--white); border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px rgba(200,168,75,.5),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 1px 2px rgba(10,10,10,.25),
    0 14px 30px -12px rgba(10,10,10,.45);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.cta-btn::after {
  content: ""; flex: none; width: 15px; height: 15px; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h11M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h11M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s var(--ease);
}
.cta-btn:hover {
  background: linear-gradient(180deg, #1f1f1c 0%, #0f0f0e 100%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(214,184,92,.85),
    inset 0 1px 0 rgba(255,255,255,.1),
    0 2px 4px rgba(10,10,10,.25),
    0 20px 36px -14px rgba(10,10,10,.5);
}
.cta-btn:hover::after { transform: translateX(3px); }
.cta-btn:active { transform: translateY(0) scale(.985); transition-duration: .08s;
  box-shadow: inset 0 0 0 1px rgba(200,168,75,.7), 0 1px 2px rgba(10,10,10,.3); }
.cta-btn:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 4px; }
.cta-btn.cta-sm { min-height: 52px; padding: 0 32px; font-size: 15.5px; }

.cta-note {
  display: block;
  font-size: 13px; color: var(--muted); letter-spacing: .005em;
  text-align: center; max-width: 34em; margin-left: auto; margin-right: auto;
}
.cta-note::before, .lock-ico {
  content: ""; display: inline-block; width: 13px; height: 13px;
  margin-right: 6px; vertical-align: -2px;
  background: var(--gold-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 1a3.5 3.5 0 0 0-3.5 3.5V6H4a1.5 1.5 0 0 0-1.5 1.5v6A1.5 1.5 0 0 0 4 15h8a1.5 1.5 0 0 0 1.5-1.5v-6A1.5 1.5 0 0 0 12 6h-.5V4.5A3.5 3.5 0 0 0 8 1Zm-2 3.5a2 2 0 1 1 4 0V6H6V4.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='black' d='M8 1a3.5 3.5 0 0 0-3.5 3.5V6H4a1.5 1.5 0 0 0-1.5 1.5v6A1.5 1.5 0 0 0 4 15h8a1.5 1.5 0 0 0 1.5-1.5v-6A1.5 1.5 0 0 0 12 6h-.5V4.5A3.5 3.5 0 0 0 8 1Zm-2 3.5a2 2 0 1 1 4 0V6H6V4.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
  font-size: 0;
}
.lock-ico { width: 12px; height: 12px; vertical-align: -1px; margin-right: 2px; }

/* Gentle entrance on the whole hero once. Do NOT animate each h1/subtitle:
   those exist in all 6 languages, and a per-element animation with fill-mode
   both would replay (or stick faded) when the language switcher reveals them. */
@media (prefers-reduced-motion: no-preference) {
  .hero { animation: rise .7s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* [hidden] must win over .pay-btn{display:flex}: the alt (€3) offer stays hidden until config unhides it */
[hidden] { display: none !important; }
/* social-proof pill: invisible until JS shows a real count (never a placeholder) */
.social-proof-pill:not(:has(#social-proof-pill:not([hidden]))) { display: none; }
.social-proof-pill { background: transparent; border-color: rgba(0,0,0,.1); color: var(--muted); }

/* ─── Ticker ─── */
.ticker-wrap {
  background: var(--off); padding: 15px 0;
  border-color: rgba(0,0,0,.08);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  border-top: 0; border-bottom: 0; position: relative;
}
.ticker { animation-duration: 40s; }
.ticker span { font-size: 11.5px; letter-spacing: .18em; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ticker { animation: none; } }

/* ─── Sections ─── */
.section { padding: clamp(72px, 10vw, 120px) max(40px, env(safe-area-inset-left)); }
.section-label {
  color: var(--gold-text); font-size: 11px; letter-spacing: .22em; margin-bottom: 18px;
}
/* no display set here: .section-label also carries data-lang, so the i18n rules own its display */
.section-label::before { content: ""; display: inline-block; width: 22px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--gold-text); opacity: .55; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.025em; margin-bottom: clamp(32px, 5vw, 56px); }

.cards { gap: 0; background: transparent; border: 1px solid rgba(0,0,0,.1); border-radius: 12px; overflow: hidden; }
.card { padding: 40px 32px 44px; background: var(--white); border-right: 1px solid rgba(0,0,0,.08); }
.card:last-child { border-right: 0; }
.card-num { font-size: 44px; opacity: .55; color: var(--gold-display); margin-bottom: 20px; }
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.card p { font-size: 15px; line-height: 1.7; color: var(--muted); }

.big-quote { padding: clamp(72px, 9vw, 112px) 28px; }
.big-quote blockquote { font-size: clamp(26px, 3.8vw, 44px); line-height: 1.28; text-wrap: balance; }
.big-quote cite { color: rgba(255,255,255,.58); letter-spacing: .16em; font-size: 12px; }

.promise-grid { gap: clamp(40px, 6vw, 72px); }
.promise-text p { color: var(--muted); }
.promise-visual { border-radius: 12px; border-color: rgba(0,0,0,.1);
  background: radial-gradient(ellipse 80% 70% at 50% 35%, #f7f3e7 0%, var(--off) 70%); }
.dollar-sign { color: var(--gold-display); font-size: clamp(96px, 11vw, 128px); }
.promise-visual p { color: var(--muted); }

.faq { max-width: 680px; }
details { padding: 0; border-bottom-color: rgba(0,0,0,.1); }
details:first-child { border-top: 1px solid rgba(0,0,0,.1); }
summary { padding: 22px 0; font-size: 16.5px; gap: 24px; }
summary::-webkit-details-marker { display: none; }
summary::after { color: var(--gold-text); font-size: 22px; flex: none; }
details p { margin: 0 0 22px; padding-right: 40px; color: var(--muted); }
summary:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }

.bottom-cta { padding: clamp(80px, 10vw, 120px) 28px; position: relative; }
.bottom-cta p:not(.section-label) { color: var(--muted); margin-bottom: 36px; }

footer { padding: 36px max(40px, env(safe-area-inset-left)) calc(36px + env(safe-area-inset-bottom)); color: rgba(255,255,255,.62); }
footer a, .footer-handle { color: rgba(255,255,255,.62); }

/* ─── Modal + exit popup ─── */
.modal-backdrop { background: rgba(10,10,10,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  overflow-y: auto; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.modal { margin: auto; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5), inset 0 0 0 1px rgba(200,168,75,.25);
  padding: 44px 36px 36px; }
.modal-close, .exit-close { width: 44px; height: 44px; top: 8px; right: 8px; display: grid; place-items: center;
  font-size: 26px; line-height: 1; border-radius: 50%; color: var(--muted); transition: background .2s, color .2s; }
.modal-close:hover, .exit-close:hover { background: rgba(0,0,0,.05); color: var(--black); }
.modal h3 { font-size: 30px; letter-spacing: -.02em; }
.modal p { margin-bottom: 28px; }
.pay-btn { min-height: 52px; border-radius: 8px; border-color: rgba(0,0,0,.14); }
.pay-btn.primary { background: linear-gradient(180deg, #181816, #0a0a0a); box-shadow: inset 0 0 0 1px rgba(200,168,75,.45); }
.pay-btn svg { flex: none; }
.pay-divider { color: var(--muted); }
.secure-note { gap: 8px; }
.exit-popup { padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); overflow-y: auto; background: rgba(10,10,10,.6); }
.exit-box { margin: auto; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5), inset 0 0 0 1px rgba(200,168,75,.25); padding: 52px 40px 44px; }
.exit-eyebrow { color: var(--gold-text); }
.exit-headline { font-weight: 400; }

/* ─── Mobile ─── */
@media (max-width: 700px) {
  :root { --bar-h: 40px; }
  .lang-bar { justify-content: center; gap: 2px; padding: 0 8px; }
  .lang-bar button { padding: 0 11px; }
  nav { padding: 14px 20px; }
  .logo { font-size: 22px; }
  .price-pill { padding: 7px 13px; font-size: 12px; }
  .hero { min-height: 0; padding: 56px 22px 64px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .18em; gap: 10px; margin-bottom: 22px; }
  .eyebrow::before, .eyebrow::after { display: none; }
  .eyebrow { max-width: 17em; }
  h1 { font-size: clamp(38px, 11.2vw, 52px); line-height: 1.04; letter-spacing: -.026em; }
  .subtitle { font-size: 17px; margin-bottom: 32px; }
  .cta-group { width: 100%; max-width: 400px; }
  .cta-btn { width: 100%; min-height: 60px; padding: 0 24px; }
  .cta-note { font-size: 12.5px; padding: 0 4px; line-height: 1.5; }
  .section { padding: 64px 22px; }
  .cards { grid-template-columns: 1fr; }
  .card { border-right: 0; border-bottom: 1px solid rgba(0,0,0,.08); padding: 32px 24px 34px; }
  .card:last-child { border-bottom: 0; }
  .card-num { font-size: 38px; margin-bottom: 14px; }
  h2 { margin-bottom: 32px; }
  .big-quote { padding: 68px 24px; }
  details p { padding-right: 0; }
  .bottom-cta { padding: 72px 22px calc(72px + env(safe-area-inset-bottom) * 0); }
  .bottom-cta .cta-btn { max-width: 400px; }
  .modal { padding: 44px 22px 28px; }
  .exit-box { padding: 48px 24px 32px; }
  .exit-box .cta-btn { width: 100%; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; padding: 40px 24px; }
}
@media (max-width: 360px) { h1 { font-size: 36px; } .cta-btn { font-size: 15.5px; padding: 0 18px; } }

/* summary also carries data-lang (display owned by i18n rules), so position the marker instead of using flex */
summary { position: relative; padding-right: 36px !important; }
summary::after { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); line-height: 1; }
.modal-close:focus-visible, .exit-close:focus-visible { outline: 2px solid var(--gold-text); outline-offset: -6px; }
.secure-note { display: block; line-height: 1.6; }
.secure-note .lock-ico { margin-right: 4px; }
