/* Layout: one narrow column built for cheap Android phones in daylight.
   Lisbon tram-sign yellow marks the brand and the single action; everything else is ink on white. */
:root {
  --paper: #ffffff;
  --ink: #16181b;
  --ink-2: #4b5059;
  --line: #e2e0d6;
  --soft: #fff4cc;
  --yellow: #ffc423;
  --on-yellow: #16181b;
  --link: #1d4f9e;
  --field: #ffffff;
  --draft: #fff0bf;
  --f-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --lh: 1.55;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111315;
    --ink: #f2f1ec;
    --ink-2: #b9bdc4;
    --line: #2b2f34;
    --soft: #2a2412;
    --link: #93b4f2;
    --field: #1a1d21;
    --draft: #3a3014;
    color-scheme: dark;
  }
}
html[dir="rtl"] {
  --f-display: "Noto Nastaliq Urdu", "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Noto Nastaliq Urdu", "Noto Naskh Arabic", system-ui, sans-serif;
  --lh: 2.15;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: var(--lh); }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.2; margin: 0; text-wrap: balance; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { line-height: 1.9; }
p { margin: 0; }

.wrap { max-width: 640px; margin: 0 auto; padding-inline: 16px; padding-block: 0 48px; }
main { display: grid; gap: 40px; }

.draft { margin: 0; padding: 10px 16px; background: var(--draft); color: var(--ink); font-size: 0.95rem; text-align: center; }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 16px 24px; }
.logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.logo-word { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.01em; line-height: 1; }
.logo-badge { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 1rem; line-height: 1; background: var(--yellow); color: var(--on-yellow); padding: 6px 8px; border-radius: 6px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18); }
.langs { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.langs a { padding: 4px 9px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 0.95rem; line-height: 1.6; border: 1px solid transparent; }
.langs a[aria-current="page"] { color: var(--ink); border-color: var(--line); font-weight: 600; }

/* Hero */
.hero { display: grid; gap: 16px; justify-items: start; }
.hero h1 { font-size: clamp(2rem, 8.5vw, 2.9rem); font-weight: 800; letter-spacing: -0.015em; }
html[dir="rtl"] .hero h1 { font-weight: 700; font-size: clamp(1.8rem, 7vw, 2.5rem); letter-spacing: 0; }
.sub { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 22px; border: 0; border-radius: 10px; background: var(--yellow); color: var(--on-yellow); font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.btn:hover { filter: brightness(0.97); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-block { width: 100%; }

/* Lesson sample */
.sample { margin: 0; padding: 18px 20px; background: var(--soft); border-radius: var(--radius); display: grid; gap: 6px; }
.sample figcaption { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); font-weight: 600; }
html[dir="rtl"] .sample figcaption { text-transform: none; letter-spacing: 0; }
.sample-pt { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 1.6rem; line-height: 1.25; }
.sample-gloss { color: var(--ink-2); }

/* Benefits */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.benefits li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.benefits h3 { font-size: 1.1rem; margin-bottom: 2px; }
.benefits p { color: var(--ink-2); }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Price */
.price { border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 4px; }
.price-label { font-weight: 600; color: var(--ink-2); }
.price-value { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 3rem; line-height: 1.05; }
.price-period { font-family: var(--f-body); font-weight: 600; font-size: 1.15rem; color: var(--ink-2); }

/* Form */
.join { display: grid; gap: 12px; scroll-margin-top: 16px; }
.join h2, .faq h2 { font-size: 1.7rem; font-weight: 800; }
html[dir="rtl"] .join h2, html[dir="rtl"] .faq h2 { font-weight: 700; }
.waitlist { display: grid; gap: 18px; margin-top: 8px; }
.field { display: grid; gap: 6px; font-weight: 600; }
.field em { font-weight: 400; font-style: normal; color: var(--ink-2); font-size: 0.9rem; }
input:not([type]), input[type="email"], input[type="tel"], input[type="text"], input[type="password"], select {
  width: 100%; min-height: 50px; padding: 10px 12px; font: inherit; font-weight: 400; color: var(--ink);
  background: var(--field); border: 1.5px solid var(--line); border-radius: 10px;
}
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="tel"] { text-align: left; }
.group { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.group legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.opt input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.opt:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.inline { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-inline { flex: 1 1 90px; justify-content: center; }
.reasons-error { color: #b42323; font-weight: 600; }
/* Spam trap: invisible without pushing the page sideways (a far-left offset widens right-to-left pages). */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* FAQ */
.faq { display: grid; gap: 4px; }
.faq h2 { margin-bottom: 8px; }
.faq details { border-top: 1px solid var(--line); padding-block: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 8px; color: var(--ink-2); }

/* Simple pages */
.message { display: grid; gap: 16px; justify-items: start; }
.message h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); font-weight: 800; }
html[dir="rtl"] .message h1 { font-weight: 700; }
.summary { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 8px; }
.controller { color: var(--ink-2); font-size: 0.95rem; }
.selectable { user-select: all; }
.notice { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 24px; }
.notice h2 { font-size: 1.4rem; }
.notice h3 { font-size: 1.05rem; margin-top: 8px; }
.notice ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

.foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.92rem; display: grid; gap: 8px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (min-width: 560px) { html { scroll-behavior: smooth; } }
