/* Beyond50 shared styles */
:root {
  --accent: #E8580C;
  --ink: #0E2118;
  --forest: #123526;
  --ground: #F2F4EF;
  --line: #DCE2DA;
  --muted: #3F5046;
  --muted-2: #4A5A50;
  --on-dark: #EAF0EA;
  --on-dark-muted: #A9BDB0;
  --link: #B8430A;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--link); }
a:hover { color: #8A3208; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* radius pills on dark map cards */
.pill { font: inherit; font-weight: 700; font-size: 15px; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; border: 1.5px solid #3A6A54; background: transparent; color: var(--on-dark); }
.pill[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--ink); }

/* ---------- tool page ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-size: 22px; font-weight: 850; font-stretch: 125%; letter-spacing: -0.02em; }
.topbar nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.topbar nav a { color: var(--ink); text-decoration: none; }
.tool-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 12px 0 20px; }
.tool-head h1 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 850; font-stretch: 125%; letter-spacing: -0.025em; line-height: 1.05; }
.status { font-size: 14px; color: var(--muted-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.status.ok { color: #1E6B4A; border-color: #9CCDB4; }
.status.bad { color: #9A3412; border-color: #F0B496; }
.tool-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.panel.form { flex: 1 1 320px; max-width: 420px; }
.panel.map { flex: 999 1 520px; min-width: 0; background: var(--forest); color: var(--on-dark); border: 0; }
.field-label { display: block; font-size: 14px; font-weight: 700; color: var(--muted-2); margin-bottom: 8px; }
.input { width: 100%; min-height: 52px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 12px; font: inherit; font-size: 18px; font-weight: 600; color: var(--ink); background: var(--ground); }
.hint { margin: 8px 0 0; font-size: 13.5px; color: var(--muted-2); line-height: 1.45; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-weight: 700; font-size: 15px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #B9C4BB; background: transparent; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.custom { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 15px; }
.custom input { width: 96px; min-height: 44px; padding: 0 10px; border: 1.5px solid #B9C4BB; border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.go { margin-top: 22px; width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--accent); color: var(--ink); font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.go:disabled { opacity: .55; cursor: default; }
.error { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #FDEDE5; color: #8A2C0A; font-size: 15px; line-height: 1.45; }
.summary { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.35; }
.map-svg { display: block; width: 100%; height: auto; }
.legend { margin: 10px 0 0; font-size: 13.5px; color: var(--on-dark-muted); line-height: 1.5; }
.empty-map { padding: 80px 16px; text-align: center; color: var(--on-dark-muted); font-size: 17px; line-height: 1.5; }
.results { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.results .panel { flex: 1 1 440px; min-width: 0; }
.results h2 { margin: 0; font-size: 26px; font-weight: 850; font-stretch: 115%; }
.sub { margin: 6px 0 14px; font-size: 15px; line-height: 1.5; color: var(--muted-2); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.btn { font: inherit; font-size: 15px; font-weight: 800; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); }
.copied { font-size: 14px; font-weight: 700; color: #1E6B4A; }
select.select { font: inherit; font-size: 15px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid #B9C4BB; background: #fff; color: var(--ink); }
textarea.list { width: 100%; min-height: 180px; margin-top: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--ground); color: var(--ink); font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
table.towns { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.towns th, table.towns td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.towns th { color: var(--muted-2); font-weight: 700; }
td.none { color: #9A3412; font-weight: 700; }
.howto { margin-top: 20px; }
.howto .cols { display: flex; flex-wrap: wrap; gap: 28px; }
.howto .cols > div { flex: 1 1 360px; }
.howto h3 { margin: 8px 0 6px; font-size: 19px; font-weight: 800; }
.howto ol { margin: 8px 0 0; padding-left: 22px; line-height: 1.6; font-size: 16px; color: var(--muted); }
.howto li { margin-bottom: 6px; }
.foot { padding: 28px 0 40px; font-size: 13.5px; color: var(--muted-2); }

/* moving arrow that points at the radius pills until someone taps one */
.pick { display: flex; align-items: center; gap: 10px; }
.nudge { flex: none; animation: nudge 1.1s ease-in-out infinite; transition: opacity .3s; }
.pick.used .nudge { opacity: 0; animation: none; }
@keyframes nudge { 0%, 100% { transform: translateX(-6px); } 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .nudge { animation: none; } }
.pick [role="group"] { flex-wrap: nowrap !important; }
@media (max-width: 480px) { .pick { gap: 6px; } .pick .pill { padding: 0 13px; } .nudge { width: 28px; } }

/* ---------- login and password pages ---------- */
.auth { min-height: 100vh; display: flex; flex-direction: column; }
.auth main { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 40px 0 64px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; }
.auth-card h1 { margin: 0 0 6px; font-size: 34px; font-weight: 850; font-stretch: 125%; letter-spacing: -0.025em; line-height: 1.05; }
.auth-card .lede { margin: 0 0 22px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.auth-card .field-label { margin-top: 16px; }
.auth-card .input { font-size: 17px; }
.auth-card .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; font-size: 15px; }
.linkish { font: inherit; font-size: 15px; font-weight: 600; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #E7F3EC; color: #1E5A3F; font-size: 15px; line-height: 1.45; }
.auth-card [hidden] { display: none !important; }

/* tool page while the login check runs */
html.checking .tool-main { visibility: hidden; }
.gate { max-width: 560px; margin: 40px auto; text-align: center; }
.gate h2 { margin: 0 0 8px; font-size: 28px; font-weight: 850; font-stretch: 115%; }
.gate p { color: var(--muted); font-size: 17px; line-height: 1.5; }
.gate .go { display: inline-flex; align-items: center; justify-content: center; width: auto; padding: 0 28px; text-decoration: none; }
.who { font-size: 14px; color: var(--muted-2); }

/* ---------- subscribe and welcome pages ---------- */
.plans { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.plan { flex: 1 1 220px; border: 2px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; }
.plan.best { border-color: var(--accent); }
.plan h2 { margin: 0; font-size: 18px; font-weight: 800; }
.plan .price { margin: 10px 0 2px; font-size: 40px; font-weight: 850; font-stretch: 115%; letter-spacing: -0.02em; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .note { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); line-height: 1.45; flex: 1; }
.plan form { margin: 0; }
.plan .go { margin-top: 0; }
.auth-card.wide { max-width: 640px; }
.fine { margin: 18px 0 0; font-size: 14px; color: var(--muted-2); line-height: 1.5; }
.auth > .wrap { width: 100%; }
