/* Wayfr Roadside English. Mobile first. Highway guide-sign palette. */
:root {
  --bg: #f4f2eb; --card: #ffffff; --ink: #14181b; --muted: #4a545c; --line: #d8d3c4;
  --green: #0b5d3b; --green-2: #0e7148; --on-green: #ffffff;
  --yellow: #f6c500; --on-yellow: #111111; --red: #b3261e; --ok: #0b6b3a; --okbg: #e6f3eb; --warnbg: #fff6d6;
  --radius: 12px; --font: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Gurmukhi", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1315; --card: #172024; --ink: #eef1ee; --muted: #a9b4b8; --line: #2b363b;
    --green: #0f6a44; --green-2: #12804f; --okbg: #12261b; --warnbg: #2a2510; --ok: #5fd08d; --red: #ff8a80;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1315; --card: #172024; --ink: #eef1ee; --muted: #a9b4b8; --line: #2b363b;
  --green: #0f6a44; --green-2: #12804f; --okbg: #12261b; --warnbg: #2a2510; --ok: #5fd08d; --red: #ff8a80;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--font); overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
a { color: var(--green-2); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: #7fdcae; } }
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 1.9rem; margin: 0.4em 0 0.4em; }
h2 { font-size: 1.3rem; margin: 0 0 0.5em; }
main { max-width: 680px; margin: 0 auto; padding: 8px 16px 32px; }

/* Header: a guide sign */
.top { background: var(--green); color: var(--on-green); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; border-bottom: 4px solid var(--yellow); }
.brand { color: var(--on-green); text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.brand small { display: block; font-weight: 400; font-size: 0.75rem; opacity: 0.9; letter-spacing: 0.04em; text-transform: uppercase; }
.shield { width: 34px; height: 34px; flex: none; }
.langs { display: flex; gap: 4px; }
.langs a { color: var(--on-green); text-decoration: none; font-weight: 700; padding: 6px 9px; border: 2px solid rgba(255,255,255,0.5); border-radius: 8px; font-size: 0.9rem; min-width: 40px; text-align: center; }
.langs a[aria-current] { background: var(--on-green); color: var(--green); border-color: var(--on-green); }

/* Blocks */
.hero { padding: 12px 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--muted); margin: 8px 0 0; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin: 16px 0; }
.card.warn { background: var(--warnbg); border-color: #e7c64a; border-left: 6px solid var(--yellow); }
.card.ok { background: var(--okbg); border-left: 6px solid var(--ok); }
.card.real { border-left: 6px solid var(--green); }
.price .big { font-size: 2.6rem; font-weight: 800; margin: 0; line-height: 1; }
.small { font-size: 0.88rem; color: var(--muted); }
.src { display: block; font-size: 0.8rem; color: var(--muted); }
.facts li, .steps li { margin: 0 0 8px; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 28px; position: relative; margin: 6px 0; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.topics { padding-left: 20px; }
.topics li { margin: 6px 0; }
.cta-end { margin: 24px 0; }
.err { color: var(--red); font-weight: 700; }
.disclaimer { font-weight: 700; }

/* Buttons: big, thumb friendly */
.btn { display: block; width: 100%; min-height: 56px; padding: 14px 16px; border-radius: 10px; border: 0; font: 800 1.1rem/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer; margin: 10px 0; }
.btn-go { background: var(--green); color: var(--on-green) !important; box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 5px rgba(255,255,255,0.85); }
.btn-go:hover { background: var(--green-2); }
.btn-buy { background: var(--yellow); color: var(--on-yellow); }
.btn-buy[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-small { display: inline-block; width: auto; min-height: 44px; padding: 8px 12px; font-size: 0.95rem; background: var(--card); color: var(--ink); border: 2px solid var(--line); margin: 4px 6px 4px 0; }
.btn-mic { background: var(--red); color: #fff; min-height: 72px; font-size: 1.25rem; border-radius: 40px; }
.btn-mic.on { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(179,38,30,0.5); } 50% { box-shadow: 0 0 0 12px rgba(179,38,30,0); } }
@media (prefers-reduced-motion: reduce) { .btn-mic.on { animation: none; outline: 4px solid var(--yellow); } }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Signs */
.signrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.signrow img { width: 64px; height: 64px; object-fit: contain; }
.signgrid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.signgrid li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.signgrid a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 700; text-align: center; }
.signgrid img { width: 96px; height: 96px; object-fit: contain; }
.small-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.small-grid img { width: 56px; height: 56px; }
.signhead { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.signhead img { width: 120px; height: 120px; object-fit: contain; background: #fff; border-radius: 8px; padding: 6px; }
.signhead .answer-box { flex: 1 1 200px; }

/* Answer pages */
.crumbs { font-size: 0.85rem; margin-top: 8px; color: var(--muted); }
.answer-box { background: var(--card); border-left: 6px solid var(--green); padding: 12px 14px; border-radius: 8px; font-size: 1.08rem; margin: 8px 0 12px; }
.qa { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.qa h2 { font-size: 1.2rem; }
.answers li { margin: 4px 0; }
.meaning { color: var(--muted); }
.lessonlist { list-style: none; padding: 0; }
.lesson { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: var(--ink); margin: 10px 0; min-height: 56px; }

/* Practice stop */
.practice .step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.js .practice .step { display: none; }
.js .practice .step.active { display: block; }
.counter { font-weight: 700; color: var(--muted); margin: 0 0 8px; font-size: 0.9rem; }
.officer { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.badge { width: 34px; height: 34px; display: grid; place-items: center; background: #1f3b73; color: #f6c500; border-radius: 50%; }
.qtext { font-size: 1.35rem; font-weight: 700; margin: 10px 0; }
.js .qtext.hide { filter: blur(7px); user-select: none; }
.signimg { display: block; width: 160px; height: 160px; object-fit: contain; margin: 8px auto; background: #fff; border-radius: 8px; padding: 6px; }
.hint { margin: 8px 0; }
.hint summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
textarea, input[type=text], input:not([type]) { width: 100%; font: 400 1.1rem var(--font); padding: 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.feedback .fb { border-radius: 10px; padding: 12px; margin: 10px 0; }
.fb.yes { background: var(--okbg); border-left: 6px solid var(--ok); }
.fb.no { background: var(--warnbg); border-left: 6px solid var(--yellow); }
.fb h3 { margin: 0 0 6px; font-size: 1.1rem; }
.fb p { margin: 6px 0; }
.score { font-size: 1.6rem; font-weight: 800; }
.code { font: 800 1.6rem/1.2 ui-monospace, Menlo, monospace; letter-spacing: 0.05em; background: var(--card); padding: 12px; border-radius: 8px; text-align: center; border: 2px dashed var(--green); }

/* Footer */
.foot { max-width: 680px; margin: 0 auto; padding: 20px 16px 40px; border-top: 1px solid var(--line); }
.footnav { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 8px 0; }
.footnav a { min-height: 44px; display: inline-flex; align-items: center; }

@media (min-width: 720px) {
  h1 { font-size: 2.4rem; }
  .btn { display: inline-block; width: auto; min-width: 280px; }
  .btn-small { min-width: 0; }
  .answer .btn, .practice .btn-go { display: block; width: 100%; }
}

/* contact form + legal pages */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.contact-form select,.contact-form input,.contact-form textarea{display:block;width:100%;margin:.25rem 0 .9rem;font:inherit;padding:.6rem;border:1px solid #c9d3cc;border-radius:8px;box-sizing:border-box}
.legal h2{margin-top:1.4rem;font-size:1.15rem}
.legal li{margin:.35rem 0}
.legalnav{margin-top:.5rem}
