/* Landing page sections. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-block: 72px 56px; }
.hero-title { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.18; }
.hero-lead { font-size: 19px; margin-top: 24px; }
.hero-sub { color: var(--text-muted); font-size: 18px; margin-top: 10px; max-width: 34rem; }
.hero-note { font-weight: 700; margin-top: 18px; font-size: 15px; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-demo { overflow: hidden; box-shadow: var(--shadow); }
.hero-demo-top { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.hero-demo-top .en { font-weight: 600; }
.dots { display: inline-flex; gap: 5px; margin-inline-end: 8px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-hover); }
.hero-demo-body { display: grid; grid-template-columns: 0.75fr 1.25fr; min-height: 300px; }
.hero-demo-art { overflow: hidden; border-inline-end: 1px solid var(--border); }
.hero-demo-art img, .hero-demo-art .cover-gen { width: 100%; height: 100%; object-fit: cover; }
.demo-line { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px 24px; }
.demo-line .acc-pill { margin-top: 18px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-block: 40px; } .hero-demo-body { grid-template-columns: 1fr; } .hero-demo-art { display: none; } }

.section { padding-block: 72px 24px; }
.section-h { font-size: clamp(28px, 4vw, 42px); max-width: 40rem; }
.section-p { color: var(--text-muted); font-size: 18px; margin-top: 12px; max-width: 40rem; }
.section-punch { margin-top: 32px; font-weight: 700; font-size: 19px; }
.section-foot { margin-top: 20px; }
.center { text-align: center; margin-inline: auto; }

.how-grid { margin-top: 36px; }
.how-card h3 { font-size: 20px; margin-top: 18px; }
.how-card p { margin-top: 6px; }
.how-visual { min-height: 200px; display: grid; place-items: center; padding: 24px; }
.mock-sentence { font-family: var(--font-en); font-size: 22px; font-weight: 600; color: var(--untyped); text-align: center; }
.mock-sentence > span:first-child { color: var(--typed); }
.mock-listen { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mock-gloss { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 28px; }
.mock-gloss .translation { margin-top: 6px; font-size: 15px; }
.how-visual .demo-line { padding: 0; }

.story-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
@media (max-width: 960px) { .story-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .story-row { grid-template-columns: 1fr; } }

.situation { max-width: 44rem; margin: 0 auto; padding: 32px; }
.situation h2 { font-size: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.situation .muted { margin: 8px 0 16px; }

.bento { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin-top: 36px; }
.bento-wide { grid-column: span 1; }
.bento > :nth-child(1) { grid-column: 2; grid-row: 1; }
.bento > :nth-child(2) { grid-column: 1; grid-row: 1; }
.bento > :nth-child(4) { grid-column: 2; }
.bento-card { overflow: hidden; display: flex; flex-direction: column; }
.bento-visual { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 28px; border-bottom: 1px solid var(--border); }
.bento-text { padding: 22px 24px 26px; }
.bento-text h3 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin-bottom: 6px; }
.bento-text h3 .icon { color: var(--accent); }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .bento > * { grid-column: auto !important; grid-row: auto !important; } }
.mark-wrong { color: var(--wrong); background: var(--error-soft); padding: 0 6px; border-radius: 6px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 520px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 11px; inset-inline: 12%; height: 1px; background: var(--border); }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; }
.timeline small { color: var(--text-faint); font-size: 11px; }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--accent); background: var(--bg-elev); margin-bottom: 6px; }
.tl-bad .tl-dot { background: var(--wrong); border-color: var(--wrong); }
.tl-ok .tl-dot { background: var(--accent); color: var(--accent-ink); }
.tl-dot .icon { width: 12px; height: 12px; }
.wave.big { height: 28px; gap: 4px; }
.wave.big i { width: 3px; }
.word-cloud { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.word-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); font-family: var(--font-en); font-weight: 600; font-size: 14px; }
.word-chip small { font-family: var(--font-ar); color: var(--text-muted); font-weight: 400; }
.speeds { flex-direction: row; flex-wrap: wrap; }
.speeds .chip.on { background: var(--accent-soft); color: var(--accent); }

.idea { text-align: center; }
.idea .section-h { margin-inline: auto; margin-bottom: 18px; }
.idea p { font-size: 19px; color: var(--text-muted); margin-top: 6px; }
.idea .strong { color: var(--text); font-weight: 700; }
.idea .accent { margin-top: 18px; font-weight: 700; }

.includes { max-width: 52rem; margin: 32px auto 0; padding: 28px 32px; }
.includes h3 { margin-bottom: 14px; }
.includes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.includes li { display: flex; gap: 10px; color: var(--text-muted); }
.includes li .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 4px; }
@media (max-width: 700px) { .includes ul { grid-template-columns: 1fr; } }
.big-quote { font-size: clamp(30px, 4.4vw, 44px); }

.faq { margin-top: 28px; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); transition: transform var(--normal) var(--ease); }
.faq-plus .icon { width: 14px; height: 14px; }
.faq details[open] .faq-plus { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; }

/* Access-code box (hero) */
.code-form { margin-top: 28px; padding: 20px; max-width: 30rem; display: grid; gap: 10px;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background: linear-gradient(140deg, color-mix(in srgb, #3b82f6 10%, var(--bg-elev)), color-mix(in srgb, #8b5cf6 12%, var(--bg-elev))); }
.code-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.code-label .icon { color: var(--accent); width: 18px; height: 18px; }
.code-row { display: flex; gap: 10px; }
.code-input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 22px; letter-spacing: 0.3em; text-align: center; padding-block: 12px; }
.code-error { min-height: 1.2em; margin: 0; color: var(--error); font-size: 14px; }
.code-error:empty { display: none; }
.code-note { margin: 0; font-size: 13px; }
.code-form.shake { animation: shake 0.4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 480px) { .code-row { flex-direction: column; } }
