/* raqmoun.com: a product site for teachers, schools and parents. Coral first: a
   coral hero on a light page, the brand night for the dark sections, real app screens as the visuals. The
   characters live inside the product, not on the page. */
@font-face { font-family: 'Readex Pro'; src: url('/fonts/ReadexPro-VF.ttf') format('truetype'); font-weight: 160 700; font-display: swap; }
@font-face { font-family: 'Marhey'; src: url('/fonts/Marhey-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --night: #23233f; --night-2: #2c2c4c; --night-3: #36365a; --night-line: #44446a;
  --on-night: #fff8ef; --on-night-2: #c2bfd8;
  --head-bg: rgba(255, 248, 239, 0.94); --street-bg: #17172c; --device: #15152a; --device-line: #44446a;
  --accent-dark: var(--coral); --on-accent-dark: var(--ink); --accent-dark-hover: #ff9374;
  --on-coral-2: #3b1a10; --ink-hover: #34345a;
  --page: #fff8ef; --card: #ffffff; --line: #ece2d8; --ink: #23233f; --muted: #5a5670;
  --coral: #ff7a59; --coral-soft: #ff9b7e; --on-coral-soft: #2a0e05; --primary: #b8442f; --primary-hover: #9f3826;
  --mint: #3cc6a6; --mint-ink: #1b7a63; --butter: #ffd45c;
  --good: #e1f6ef; --hint: #fff3cc; --solution: #e6e9fb; --sand: #ffede3;
  --focus: #3b5bdb; --measure: 60ch;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font-family: 'Readex Pro', system-ui, sans-serif; font-size: 18px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.15; }
h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 6px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: var(--measure); }
.small { font-size: 15px; }
.muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; font-size: 0.9em; margin-inline: 2px; }
.frac > span:last-child { border-top: 2px solid currentColor; padding-top: 2px; margin-top: 2px; min-width: 1em; text-align: center; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 28px; }
@media (max-width: 600px) { .wrap { padding-inline: 18px; } }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 40; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Dark surfaces */
.dark { background: var(--night); color: var(--on-night); }
.dark .lead, .dark .muted { color: var(--on-night-2); }
.dark a:not(.btn) { color: var(--accent-dark); }
.coral { background: var(--coral); color: var(--ink); }
.coral .lead, .coral .muted { color: var(--on-coral-2); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--head-bg); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); color: var(--ink); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 21px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 26px; margin-inline-start: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav .btn { min-height: 40px; padding: 6px 18px; font-size: 15px; }
@media (max-width: 880px) {
  .site-head .wrap { flex-wrap: wrap; gap: 2px 18px; padding-block: 10px; }
  .site-nav { width: 100%; margin: 0; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .site-nav .btn { display: none; }
}
.eyes .lid { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) { .eyes .lid { animation: blink 0.32s ease-in-out 1.2s 1; } }
@keyframes blink { 50% { transform: scaleY(0.1); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 24px; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.dark .btn-primary { background: var(--accent-dark); color: var(--on-accent-dark); }
.dark .btn-primary:hover { background: var(--accent-dark-hover); }
.coral .btn-primary, .site-head .btn-primary { background: var(--ink); color: var(--page); }
.coral .btn-primary:hover, .site-head .btn-primary:hover { background: var(--ink-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--sand); }
.dark .btn-ghost { border-color: var(--night-line); color: var(--on-night); }
.dark .btn-ghost:hover { background: var(--night-2); }
.coral .btn-ghost { border-color: rgba(35, 35, 63, 0.4); color: var(--ink); }
.coral .btn-ghost:hover { background: rgba(255, 248, 239, 0.25); }
.btn-soon { border: 1.5px dashed var(--line); color: var(--muted); background: transparent; cursor: default; font-weight: 400; }
.dark .btn-soon { border-color: var(--night-line); color: var(--on-night-2); }
.coral .btn-soon { border-color: rgba(35, 35, 63, 0.4); color: var(--on-coral-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 30px; }

/* Sections */
.section { padding-block: 120px; }
.section.tight { padding-block: 80px; }
@media (max-width: 760px) { .section { padding-block: 72px; } .section.tight { padding-block: 56px; } }
.section-head { max-width: 760px; margin-bottom: 52px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split.wide-art { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
@media (max-width: 960px) { .split, .split.wide-art { grid-template-columns: 1fr; gap: 40px; } }

/* Hero */
.hero { padding-block: 88px 0; overflow: hidden; position: relative; }
.hero .split { align-items: end; }
.hero h1 { max-width: 16ch; margin-bottom: 22px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 15px; color: var(--on-coral-2); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--page) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2323233f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; flex: none; }
.hero-art { position: relative; height: 620px; }
.hero-art::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 248, 239, 0.22); left: 50%; top: 70px; transform: translateX(-50%); }
.hero-art .device { position: absolute; bottom: -60px; }
.hero-art .device.front { width: 300px; left: 50%; transform: translateX(-62%); z-index: 2; }
.hero-art .device.back { width: 260px; left: 50%; transform: translateX(8%); bottom: -20px; opacity: 0.95; }
@media (max-width: 960px) { .hero { padding-top: 56px; } .hero-art { height: 520px; } .hero-art::before { width: 400px; height: 400px; } .hero-art .device.front { width: 250px; } .hero-art .device.back { width: 215px; } }
@media (max-width: 480px) { .hero-art { height: 440px; } .hero-art .device.front { width: 210px; } .hero-art .device.back { width: 180px; } .hero-art::before { width: 320px; height: 320px; } }

/* Devices and browser windows around real screens */
.device { border-radius: 44px; padding: 10px; background: var(--device); box-shadow: 0 0 0 1px var(--device-line), 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.device img { border-radius: 34px; width: 100%; }
.browser { border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -32px rgba(35, 35, 63, 0.35); }
.dark .browser { box-shadow: 0 0 0 1px var(--night-line), 0 40px 80px -32px rgba(0, 0, 0, 0.6); }
.browser .bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f3ece4; border-bottom: 1px solid var(--line); direction: ltr; }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9cfc4; }
.browser .bar span { margin-inline-start: 14px; flex: 1; text-align: center; font-size: 13px; color: var(--muted); background: #fbf7f2; border-radius: 7px; padding: 3px 10px; max-width: 320px; margin-inline: auto; }
.browser img { width: 100%; }
.crop { overflow: hidden; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.facts div { padding: 34px 26px; border-inline-start: 1px solid var(--line); }
.facts div:first-child { border-inline-start: 0; }
.facts b { display: block; font-size: clamp(40px, 4.4vw, 58px); line-height: 1; font-weight: 700; margin-bottom: 10px; }
.facts span { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts div:nth-child(3) { border-inline-start: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Feature lists */
.points { list-style: none; padding: 0; margin: 26px 0 0; max-width: var(--measure); }
.points li { padding: 16px 0; border-top: 1px solid var(--line); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points b { font-weight: 700; display: block; margin-bottom: 2px; }
.points span { color: var(--muted); font-size: 16px; }
.dark .points li { border-color: var(--night-line); }
.dark .points span { color: var(--on-night-2); }
.feature + .feature { margin-top: 120px; }
@media (max-width: 760px) { .feature + .feature { margin-top: 72px; } }

/* The حارة banner: the illustrated village with the live street */
.harra { position: relative; border-radius: 22px; overflow: hidden; background: var(--night-3); margin-bottom: 72px; }
.harra .hero-scene { position: relative; }
.hero-backdrop { display: block; width: 100%; height: auto; }
.hero-moon { position: absolute; left: 12%; top: 9%; width: 4%; aspect-ratio: 1; border-radius: 50%; background: var(--on-night); }
.hero-road { aspect-ratio: 1440 / 60; background: #1b1a2e; }
.hero-street { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; overflow: visible; }
.hero .lamp .head, .harra .lamp .head { fill: #6b6785; transition: fill 0.6s ease-out; }
.harra .lamp .glow { opacity: 0; transition: opacity 0.6s ease-out; }
.harra .lamp.lit .head { fill: var(--butter); }
.harra .lamp.lit .glow { opacity: 0.32; }
@media (prefers-reduced-motion: reduce) { .harra .lamp .head, .harra .lamp .glow { transition: none; } }
.hero-raqmoun { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) { .hero-raqmoun.hop { animation: hop 0.7s cubic-bezier(.3, .7, .4, 1) 1; } }
@keyframes hop { 0% { transform: none; } 18% { transform: scale(1.08, 0.9); } 45% { transform: translateY(-18%) scale(0.96, 1.05); } 75% { transform: scale(1.04, 0.96); } 100% { transform: none; } }
.harra figcaption { position: absolute; inset-inline-start: 28px; top: 24px; max-width: 30ch; font-size: clamp(18px, 2vw, 24px); font-weight: 700; color: var(--on-night); }
@media (max-width: 760px) { .harra { border-radius: 16px; margin-inline: -18px; border-radius: 0; } .harra figcaption { position: static; padding: 20px 18px 0; } }

/* Phones row */
.phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; max-width: 640px; margin-inline: auto; }
.phones figure { margin: 0; }
.phones figcaption { margin-top: 16px; text-align: center; font-size: 15px; color: var(--on-night-2); }

/* Try it: place a fraction on the street (dark card) */
.try { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 22px; padding: 28px; color: var(--on-night); }
.try .speaker { display: flex; align-items: flex-end; gap: 12px; }
.try .speaker img { width: 56px; height: 56px; flex: none; }
.try .who { font-size: 13px; color: var(--on-night-2); margin-bottom: 4px; }
.try .bubble { background: var(--night-3); border-radius: 16px; padding: 10px 14px; font-size: 17px; line-height: 1.6; }
.try .prompt { font-size: 21px; font-weight: 700; margin: 18px 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.try .prompt .frac { font-family: 'Marhey', 'Readex Pro'; font-size: 28px; color: var(--accent-dark); }
.street { position: relative; background: var(--street-bg); border-radius: 16px; padding: 16px 26px 12px; direction: ltr; }
.street .track { position: relative; height: 112px; margin-inline: 15px; }
.street .track::before { content: ''; position: absolute; left: -10px; right: -10px; top: 74px; height: 3px; background: var(--on-night); border-radius: 2px; }
.street .tick { position: absolute; top: 67px; width: 3px; height: 17px; margin-left: -1.5px; background: var(--on-night); border-radius: 2px; }
.street .tick.short { top: 71px; height: 9px; }
.street .end { position: absolute; top: 86px; transform: translateX(-50%); color: var(--on-night); font-family: 'Marhey', 'Readex Pro'; font-size: 22px; line-height: 1.2; }
.street .lamp { position: absolute; top: 24px; width: 4px; height: 51px; margin-left: -2px; background: #8f8ab0; border-radius: 2px; }
.street .lamp::before { content: ''; position: absolute; top: -8px; left: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--butter); }
.street .lamp::after { content: ''; position: absolute; top: -26px; left: -26px; width: 56px; height: 56px; border-radius: 50%; background: var(--butter); opacity: 0.2; }
.street input[type=range] { position: absolute; left: 26px; right: 26px; width: calc(100% - 52px); top: 46px; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.street input[type=range]::-webkit-slider-runnable-track { height: 44px; background: transparent; }
.street input[type=range]::-moz-range-track { height: 44px; background: transparent; }
.street input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 44px; border: 0; background: url('/img/ghost-lamp.svg') center / contain no-repeat; }
.street input[type=range]::-moz-range-thumb { width: 30px; height: 44px; border: 0; background: url('/img/ghost-lamp.svg') center / contain no-repeat; }
.street input[type=range]:focus-visible { outline: 3px solid var(--butter); outline-offset: 4px; border-radius: 8px; }
.street input[type=range]:disabled { cursor: default; }
.street input[type=range]:disabled::-webkit-slider-thumb { opacity: 0; }
.street input[type=range]:disabled::-moz-range-thumb { opacity: 0; }
.banner { border-radius: 12px; padding: 12px 16px; margin-top: 14px; font-size: 16px; color: var(--ink); }
.banner b { font-weight: 700; }
.banner.good { background: var(--good); } .banner.hint { background: var(--hint); } .banner.solution { background: var(--solution); }
.try .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* What we leave out */
.without { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.without div { padding: 18px 0; border-top: 1px solid var(--night-line); }
.without h3 { font-size: 17px; margin: 0; }
.without p { margin: 2px 0 0; color: var(--on-night-2); font-size: 15px; }
@media (max-width: 700px) { .without { grid-template-columns: 1fr; } }

/* The Friday report, in a phone */
.wa { background: #efe7de; padding: 64px 16px 24px; min-height: 100%; }
.wa .from { font-size: 12px; color: #6b5f52; margin-bottom: 8px; }
.wa .msg { background: #dcf8c6; border-radius: 12px 3px 12px 12px; padding: 10px 12px 4px; font-size: 14px; line-height: 1.65; white-space: pre-line; color: #1d1d1d; }
.wa .msg time { display: block; text-align: left; font-size: 11px; color: #6b7a6b; }
.device.report { width: 300px; margin-inline: auto; }
.device.report .screen { border-radius: 34px; overflow: hidden; height: 560px; background: #efe7de; }

/* Curriculum map */
.tabs { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tabs button { white-space: nowrap; }
.tabs button { font: inherit; font-size: 16px; font-weight: 700; padding: 12px 18px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--coral); }
.strands { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 40px; }
.strand { padding: 4px 0 24px; }
.strand h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.skill { padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; }
.skill .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); margin-top: 2px; }
.skill .ep { color: var(--mint-ink); }

/* Plans, steps, weeks, FAQ (teachers and schools pages) */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.plan { padding: 32px 28px; border-inline-start: 1px solid var(--line); }
.plan:first-child { border-inline-start: 0; }
.plan p { color: var(--muted); margin: 6px 0 0; font-size: 16px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } .plan { border-inline-start: 0; border-top: 1px solid var(--line); } .plan:first-child { border-top: 0; } }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 0 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps p { margin: 0; color: var(--muted); }
.week { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; border-block: 1px solid var(--line); }
.day { padding: 26px 22px; border-inline-start: 1px solid var(--line); }
.day:first-child { border-inline-start: 0; }
.day h3 { font-size: 17px; }
.day p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .week { grid-template-columns: 1fr; } .day { border-inline-start: 0; border-top: 1px solid var(--line); } .day:first-child { border-top: 0; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: var(--measure); }

/* Closing band */
.cta-band { padding-block: 96px; text-align: center; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lead { margin-inline: auto; }
.cta-band .actions { justify-content: center; }

/* Footer */
.site-foot { padding-block: 72px 32px; font-size: 15px; color: var(--on-night-2); background: var(--night); }
.site-foot a { color: var(--on-night-2); text-decoration: none; }
.site-foot a:hover { color: var(--on-night); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.foot-brand .brand { color: var(--on-night); font-size: 20px; margin-bottom: 14px; }
.foot-brand .brand svg { width: 32px; height: 32px; }
.foot-brand p { margin: 0 0 12px; max-width: 34ch; line-height: 1.7; }
.foot-mail a { color: var(--on-night); }
.foot-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-col h2 { font-size: 14px; font-weight: 600; color: var(--on-night); margin: 6px 0 6px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 14px; }
.made { display: inline-flex; align-items: center; gap: 10px; color: var(--on-night); font-weight: 600; }
.heart { width: 26px; height: 22px; fill: var(--coral); flex: none; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-base { flex-direction: column-reverse; } }

/* Contact form */
.form { display: flex; flex-direction: column; gap: 18px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend, .field label { font-weight: 600; font-size: 16px; margin-bottom: 8px; display: block; }
.opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field [aria-invalid=true] { border-color: var(--primary); }
.field input[dir=ltr] { text-align: left; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .pair { grid-template-columns: 1fr; } }
.hint-text { margin: -6px 0 0; font-size: 14px; color: var(--muted); }
.hint-text.bad { color: var(--primary); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 15px; cursor: pointer; background: var(--card); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--page); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-error { background: var(--sand); border-inline-start: 4px solid var(--primary); border-radius: 8px; padding: 10px 14px; margin: 0; font-size: 16px; }
.form-done { padding: 32px; border-radius: 22px; background: var(--good); }
.form-done:focus { outline: none; }
.direct h2 { font-size: 22px; }
.direct .points { margin-top: 10px; }
.about-art img { border-radius: 18px; }
.about-art figcaption { margin-top: 10px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 14px; }

/* Long-form pages and the class link */
.doc { max-width: 720px; padding-block: 64px 96px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 12px; }
.doc h2 { font-size: 22px; margin: 40px 0 8px; }
.doc .note { background: var(--hint); border-radius: 10px; padding: 12px 16px; font-size: 16px; }
.doc ul { padding-inline-start: 22px; }
.join { max-width: 600px; padding-block: 64px 96px; }
.join .code { font-size: clamp(40px, 10vw, 64px); font-weight: 700; letter-spacing: 0.16em; direction: ltr; unicode-bidi: isolate; text-align: center; border-block: 1px solid var(--line); padding: 18px 0; margin: 22px 0; }
