/* The new public homepage (preview at /preview). Separate from styles.css so the
   dashboard/admin pages keep their own look while this is being designed. */
:root {
  --bg: #07080d;
  --bg-2: #0d0f17;
  --panel: rgba(22, 25, 36, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef0f6;
  --muted: #9aa1b2;
  --gold: #ffd257;
  --gold-2: #ff9f1c;
  --pink: #ff6bd5;
  --cyan: #5ce1ff;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.home {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
/* Space between sections: tightened 2026-10-19 (owner: big empty gaps) */
section { padding: 60px 20px; max-width: 1150px; margin: 0 auto; }
section > h2 { font-size: clamp(28px, 4vw, 42px); text-align: center; font-weight: 700; }
.sub { text-align: center; color: var(--muted); margin: 10px 0 40px; }
.muted { color: var(--muted); }

/* Gold shimmer text */
.shine {
  background: linear-gradient(100deg, var(--gold) 0%, #fff6c8 30%, var(--gold-2) 55%, var(--pink) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px "Outfit", sans-serif; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  color: var(--text); background: transparent;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.gold {
  color: #1a1200; background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 8px 30px rgba(255, 190, 40, .35);
}
.btn.gold:hover:not(:disabled) { box-shadow: 0 10px 40px rgba(255, 190, 40, .55); }
.btn.ghost { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); }
.btn.ghost:hover:not(:disabled) { border-color: var(--gold); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.full { width: 100%; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; backdrop-filter: blur(14px); background: rgba(7, 8, 13, .6);
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--text); font-size: 20px; font-weight: 500; white-space: nowrap; }
.brand b { color: var(--gold); font-weight: 800; }
.brand .spark { color: var(--gold); text-shadow: 0 0 12px var(--gold); }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { color: var(--muted); font-weight: 500; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero { position: relative; max-width: none; min-height: 0; padding: 0; display: flex; align-items: center; } /* as tall as its content: no empty band before the stats on tall screens (2026-10-19) */
.hero-map { position: absolute; inset: 0; z-index: 0; background: var(--bg); }
.hero-fade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(7, 8, 13, .92) 0%, rgba(7, 8, 13, .55) 45%, rgba(7, 8, 13, .15) 75%),
    linear-gradient(to bottom, rgba(7, 8, 13, .3), transparent 30%, transparent 70%, var(--bg));
}
.hero-inner { position: relative; z-index: 2; max-width: 1150px; margin: 0 auto; padding: 120px 24px 60px; width: 100%; pointer-events: none; }
.hero-inner > * { pointer-events: auto; max-width: 620px; }
.hero h1 { font-size: clamp(44px, 8vw, 86px); font-weight: 800; letter-spacing: -1.5px; margin: 22px 0; }
.lead { font-size: clamp(17px, 2vw, 20px); color: #c9cedb; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgba(255, 210, 87, .1); border: 1px solid rgba(255, 210, 87, .35); color: var(--gold);
}
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 15px; }

/* Glowing coverage dots */
.glow-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 6px 2px rgba(255, 210, 87, .9), 0 0 18px 6px rgba(255, 159, 28, .45);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.5); opacity: .7; } }
.leaflet-container { background: var(--bg) !important; font-family: "Outfit", sans-serif; }
/* Light OSM tiles turned into a dark, slightly blue night map */
.leaflet-tile-pane { filter: invert(1) hue-rotate(200deg) brightness(0.62) contrast(1.15) saturate(0.35); }
.leaflet-control-attribution { background: rgba(7, 8, 13, .7) !important; color: #666 !important; }
.leaflet-control-attribution a { color: #888 !important; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 0; padding-bottom: 0; margin-top: -40px;
  position: relative; z-index: 3;
}
.stats div {
  text-align: center; padding: 26px 10px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(10px);
}
.stats b { display: block; font-size: 38px; font-weight: 800; color: var(--gold); }
.stats span { color: var(--muted); }

.stats div { position: relative; }
.stats .sample i {
  position: absolute; top: 8px; right: 10px; font-style: normal; font-size: 11px; letter-spacing: .5px;
  text-transform: uppercase; color: var(--pink); opacity: .8;
}

/* Hero: is my area covered? */
.hero-check {
  display: flex; gap: 8px; margin-top: 24px; padding: 6px; border-radius: 999px; max-width: 560px;
  background: rgba(16, 18, 28, .85); border: 1px solid rgba(255, 210, 87, .4); backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4), 0 0 30px rgba(255, 190, 40, .08);
}
.hero-check:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 210, 87, .15); }
.hero-check input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font: 500 16px "Outfit", sans-serif; padding: 0 16px; }
.hero-check input::placeholder { color: #7d8496; }
.hc-result { margin-top: 14px; min-height: 0; }
.hc-result .hc-box {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; border-radius: 16px;
  background: rgba(16, 18, 28, .9); border: 1px solid var(--line); animation: hc-in .35s ease;
}
.hc-result .hc-box.yes { border-color: rgba(62, 207, 142, .5); }
.hc-result .hc-box.no { border-color: rgba(255, 210, 87, .4); }
.hc-result .hc-msg b { color: var(--text); }
.hc-result .yes .hc-msg { color: #8ff0c4; }
.hc-result .no .hc-msg { color: #f3e3b0; }
.hc-result .hc-msg small { display: block; color: var(--muted); }
@keyframes hc-in { from { opacity: 0; transform: translateY(6px); } }

/* Hero: LIVE ticker */
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 70, 90, .08); border: 1px solid rgba(255, 70, 90, .35); color: #ffd9de; font-size: 15px;
}
.live-pill b { color: #ff5d6c; letter-spacing: 1px; }
.live-pill #live-count { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b52; box-shadow: 0 0 0 0 rgba(255, 59, 82, .7); animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(255, 59, 82, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 82, 0); } }

/* Is my area covered? */
.cov-search { max-width: 640px; margin: 0 auto; }
.cov-search input {
  width: 100%; padding: 18px 24px; border-radius: 999px; font: 500 18px "Outfit", sans-serif; color: var(--text);
  background: var(--panel); border: 1px solid rgba(255, 210, 87, .35); outline: none; transition: border-color .2s, box-shadow .2s;
}
.cov-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 210, 87, .15); }
.cov-countries { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 6px; }
.cov-countries button {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  color: var(--muted); font: 500 15px "Outfit", sans-serif; cursor: pointer;
}
.cov-countries button:hover, .cov-countries button.on { border-color: var(--gold); color: var(--gold); }
.cov-countries button b { color: var(--text); margin-left: 4px; }
.cov-result { max-width: 900px; margin: 18px auto 0; text-align: center; }
.cov-result .yes { color: var(--green, #3ecf8e); font-weight: 600; font-size: 18px; }
.cov-result .no { color: var(--muted); font-size: 18px; }
.cov-result .no a { font-weight: 600; }
.cov-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.cov-list span { padding: 5px 12px; border-radius: 999px; font-size: 14px; background: rgba(255, 210, 87, .08); border: 1px solid rgba(255, 210, 87, .2); color: #f3e3b0; }

/* Hero: real alerts popping up at their area's dot */
.hero-toast {
  position: absolute; left: 0; top: 0; width: max-content; /* the marker it sits in is 0×0 */
  padding: 8px 14px; border-radius: 12px; white-space: nowrap; font-size: 14px; font-weight: 600;
  background: rgba(16, 18, 28, .92); border: 1px solid rgba(255, 210, 87, .45); color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 24px rgba(255, 190, 40, .25);
  transform: translate(-50%, calc(-100% - 14px)); animation: toast-pop 4.2s ease forwards;
}
.hero-toast small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.hero-toast.with-icon { display: grid; grid-template-columns: 34px auto; column-gap: 8px; align-items: center; padding-left: 8px; }
.hero-toast.with-icon img { grid-row: span 2; width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(255, 210, 87, .5)); }
@keyframes toast-pop {
  0% { opacity: 0; transform: translate(-50%, calc(-100% - 4px)) scale(.9); }
  10%, 85% { opacity: 1; transform: translate(-50%, calc(-100% - 14px)) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-100% - 24px)) scale(1); }
}

/* Features */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; margin-top: 56px; }
.feature.flip .shot { order: 2; }
.feature h3 { font-size: 30px; margin-bottom: 14px; }
.feature p { color: #c2c7d4; font-size: 18px; }
.tag { font-size: 13px; vertical-align: middle; padding: 3px 10px; border-radius: 999px; background: rgba(255, 107, 213, .15); color: var(--pink); font-weight: 600; }
.shot {
  aspect-ratio: 16 / 10; border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(135deg, #141826, #0c0e16); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 210, 87, .06);
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Live map: slow zoom towards the 100% Charmander popup and back */
.shot.pan img { transform-origin: 66% 49%; animation: pan 16s ease-in-out infinite alternate; }
@keyframes pan { from { transform: scale(1); } to { transform: scale(1.35); } }

/* Shiny map: sparkles twinkling over glowing Pokémon + a label */
.sparkle {
  position: absolute; width: 22px; height: 22px; pointer-events: none;
  background: radial-gradient(circle, #fff 0 10%, rgba(255, 230, 140, .9) 11% 22%, transparent 60%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle 2.8s ease-in-out infinite; opacity: 0;
}
.sparkle:nth-of-type(1) { left: 45%; top: 17%; animation-delay: 0s; }
.sparkle:nth-of-type(2) { left: 62%; top: 14%; animation-delay: .5s; }
.sparkle:nth-of-type(3) { left: 59%; top: 35%; animation-delay: 1.1s; }
.sparkle:nth-of-type(4) { left: 70%; top: 66%; animation-delay: 1.6s; }
.sparkle:nth-of-type(5) { left: 31%; top: 53%; animation-delay: 2.1s; }
.sparkle:nth-of-type(6) { left: 10%; top: 22%; animation-delay: .8s; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.3) rotate(45deg); }
}
/* Pulsing rings on glowing Pokémon in the screenshot (positions measured on map-shiny.jpg) */
.ring {
  position: absolute; width: 7%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(255, 215, 90, .9); box-shadow: 0 0 14px rgba(255, 200, 60, .8);
  transform: translate(-50%, -50%); animation: ring 2.4s ease-out infinite;
}
.ring:nth-of-type(7) { left: 45.5%; top: 21%; }
.ring:nth-of-type(8) { left: 62.8%; top: 19%; animation-delay: .6s; }
.ring:nth-of-type(9) { left: 31.8%; top: 56%; animation-delay: 1.2s; }
.ring:nth-of-type(10) { left: 9%; top: 26%; animation-delay: 1.8s; }
@keyframes ring {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
}
/* Magnifying lens: the same screenshot zoomed 4x on one glowing Pokémon (~71%, 68%) */
.lens {
  position: absolute; right: 4%; top: 6%; width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: url(/img/map-shiny.jpg) no-repeat; background-size: 400% auto; background-position: 78% 75%;
  border: 3px solid var(--gold); box-shadow: 0 0 0 6px rgba(255, 210, 87, .15), 0 0 40px rgba(255, 190, 40, .55), 0 20px 50px rgba(0, 0, 0, .6);
  animation: float 5s ease-in-out infinite;
}
.lens-label {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); white-space: nowrap;
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(16, 18, 28, .95); border: 1px solid rgba(255, 210, 87, .6); color: var(--gold);
}
.lens-label b { color: var(--text); }
.shiny-label {
  position: absolute; left: 4%; bottom: 6%; padding: 10px 18px; border-radius: 999px; font-weight: 600;
  background: rgba(16, 18, 28, .88); border: 1px solid rgba(255, 210, 87, .5); color: var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 24px rgba(255, 190, 40, .3);
  animation: float 4s ease-in-out infinite;
}
.shiny-label b { color: var(--text); }
@keyframes float { 50% { transform: translateY(-8px); } }

/* Alerts: the Discord messages on a dark card, with the desktop notification popping in on top */
.shot.alerts { aspect-ratio: 1 / 1; max-height: 640px; margin: 0 auto; width: 100%; background: radial-gradient(ellipse at 70% 20%, rgba(255, 107, 213, .12), transparent 60%), #0b0c12; }
.shot.alerts .alert-img { object-fit: contain; padding: 6% 10% 6% 6%; }
.shot.alerts .alert-toast {
  position: absolute; right: 4%; top: 7%; width: 46%; height: auto; border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
  animation: toast-in 5s ease-in-out infinite;
}
@keyframes toast-in {
  0%, 8% { transform: translateX(120%); opacity: 0; }
  16%, 84% { transform: translateX(0); opacity: 1; }
  92%, 100% { transform: translateX(120%); opacity: 0; }
}
.shot[data-shot]:empty::after {
  content: "📸 " attr(data-shot); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 30px; text-align: center; color: #5d6478; font-size: 15px;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, .015) 14px 28px);
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); transition: transform .2s, border-color .2s;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(255, 210, 87, .35); }
.plan.featured {
  border-color: rgba(255, 210, 87, .6);
  background: linear-gradient(180deg, rgba(255, 210, 87, .09), var(--panel) 45%);
  box-shadow: 0 0 60px rgba(255, 190, 40, .15);
}
.ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #1a1200;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}
.plan h3 { font-size: 22px; }
.price { font-size: 46px; font-weight: 800; margin: 14px 0 6px; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 10px 0 28px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: #c9cedb; }
.plan li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold); }
.plan-guide { display: block; text-align: center; margin-top: 10px; font-size: 14px; color: var(--muted); }
.plan-guide:hover { color: var(--gold); }
a.pill:hover { border-color: var(--gold); }
.addon-note { text-align: center; color: var(--muted); margin-top: 30px; }

/* Draw your area */
.draw-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; }
.draw-map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.draw-map { height: 520px; }
.draw-map.drawing { cursor: crosshair; }
.draw-tools { position: absolute; top: 14px; left: 56px; z-index: 500; display: flex; flex-wrap: wrap; gap: 8px; }
.draw-tools .btn.ghost { background: rgba(7, 8, 13, .8); backdrop-filter: blur(6px); }
.upload { position: relative; }
.draw-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 500;
  padding: 8px 16px; border-radius: 999px; font-size: 14px; white-space: nowrap;
  background: rgba(7, 8, 13, .85); border: 1px solid var(--line); color: var(--muted);
}
.quote {
  padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.switch button {
  border: 0; padding: 9px; border-radius: 999px; font: 600 14px "Outfit", sans-serif; color: var(--muted); background: transparent; cursor: pointer;
}
.switch button.on { background: rgba(255, 210, 87, .15); color: var(--gold); }
.km { color: var(--muted); }
.km b { color: var(--text); font-size: 22px; }
.total b { font-size: 52px; font-weight: 800; color: var(--gold); text-shadow: 0 0 30px rgba(255, 190, 40, .35); }
.total small { color: var(--muted); }
.lines { width: 100%; border-collapse: collapse; font-size: 14px; color: #c2c7d4; }
.lines td { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.lines td:last-child { text-align: right; }
.q-note { font-size: 14px; color: var(--muted); margin: 0; }
.bands summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.bands p, .bands table { font-size: 13px; color: var(--muted); }
.bands table { width: 100%; }
.bands td:last-child { text-align: right; }

/* How it works */
.steps3 { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps3 li { padding: 30px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-align: center; }
.steps3 span {
  display: inline-flex; width: 48px; height: 48px; border-radius: 50%; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: #1a1200; background: linear-gradient(135deg, var(--gold), var(--gold-2)); margin-bottom: 14px;
}
.steps3 h3 { margin-bottom: 6px; }
.steps3 p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { max-width: 780px; }
.faq h2 { margin-bottom: 30px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: #c2c7d4; margin: 12px 0 0; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: 1150px; margin: 0 auto;
  padding: 40px 20px 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}

/* Big and ultra-wide screens: use the space instead of floating in the middle */
@media (min-width: 1800px) {
  body.home { font-size: 18px; }
  section, .hero-inner, .foot { max-width: 1560px; }
  .hero-inner > * { max-width: 760px; }
  .hero h1 { font-size: 108px; }
  .lead { font-size: 23px; }
  .btn { padding: 17px 32px; font-size: 18px; }
  section > h2 { font-size: 52px; }
  .stats b { font-size: 48px; }
  .feature h3 { font-size: 36px; }
  .feature p { font-size: 20px; }
  .price { font-size: 56px; }
  .draw-grid { grid-template-columns: 1fr 400px; }
  .draw-map { height: 640px; }
}
@media (min-width: 2600px) {
  body.home { font-size: 21px; }
  .hero-check { max-width: 760px; }
  .hero-check input { font-size: 21px; }
  section, .hero-inner, .foot { max-width: 2100px; }
  .nav { padding: 20px 48px; }
  .brand { font-size: 26px; }
  .nav nav a:not(.btn) { font-size: 19px; }
  .hero-inner > * { max-width: 960px; }
  .hero h1 { font-size: 140px; }
  .lead { font-size: 28px; }
  .pill, .trust { font-size: 19px; }
  .btn { padding: 20px 40px; font-size: 21px; }
  section { padding-top: 90px; padding-bottom: 90px; }
  section > h2 { font-size: 66px; }
  .sub { font-size: 22px; }
  .stats b { font-size: 62px; }
  .feature { gap: 90px; }
  .feature h3 { font-size: 46px; }
  .feature p { font-size: 24px; }
  .plan { padding: 44px 40px; }
  .plan h3 { font-size: 30px; }
  .price { font-size: 70px; }
  .plan li { font-size: 21px; }
  .draw-grid { grid-template-columns: 1fr 500px; }
  .draw-map { height: 820px; }
  .total b { font-size: 68px; }
  .faq { max-width: 1200px; }
  .faq summary { font-size: 24px; }
  .glow-dot { width: 14px; height: 14px; }
}

/* People who ask their device for less motion get a still page */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .sparkle { display: none; }
}

/* Phones */
@media (max-width: 860px) {
  /* Map becomes its own strip under the hero text, so pop-ups never sit on top of the words */
  .hero { flex-direction: column; min-height: 0; }
  .hero-inner { order: 1; padding: 96px 16px 8px; }
  .hero-map { position: relative; order: 2; inset: auto; width: 100%; height: 340px; }
  .hero-fade { display: none; }
  .hero h1 { margin: 16px 0; }
  .stats b { font-size: 28px; }
  .stats div { padding: 20px 8px; }
  .nav nav a:not(.btn) { display: none; }
  section { padding: 48px 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 0; padding-top: 20px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 22px; margin-top: 50px; }
  .feature.flip .shot { order: 0; }
  .plans, .steps3, .draw-grid { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
  .draw-map { height: 420px; }
  .draw-tools { left: 12px; top: 64px; }
  .draw-hint { white-space: normal; width: calc(100% - 24px); text-align: center; border-radius: 12px; }
}

/* Language flags (i18n.js) in the homepage header, as on the dashboard */
.home .langs { display: inline-flex; gap: 4px; }
.home .langs .lang { padding: 4px 6px; font-size: 16px; border: 1px solid transparent; border-radius: 8px; background: none; opacity: .55; cursor: pointer; }
.home .langs .lang.active { opacity: 1; border-color: rgba(255, 210, 87, .45); }

/* Japanese / Chinese: the headline's characters are as wide as they are tall, so it's set smaller, and lines only
   break at its own line breaks and punctuation (not mid-word, as the browser does by default for CJK). */
html:lang(ja) .hero h1, html:lang(zh) .hero h1 { font-size: clamp(34px, 5.4vw, 96px); letter-spacing: 0; word-break: keep-all; line-break: strict; }
.nav nav .btn { white-space: nowrap; }

/* "Find a place" above the drawing map: the hero search's look, smaller. */
/* Its own strip above the map, so the Draw/Finish/Clear buttons (on the map) never cover it. */
.home .draw-search {
  display: flex; gap: 6px; padding: 8px; background: rgba(16, 18, 28, .95); border-bottom: 1px solid var(--line);
}
.home .draw-search:focus-within { box-shadow: inset 0 0 0 1px var(--gold); }
.draw-map-inner { position: relative; }
.home .draw-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font: 500 15px "Outfit", sans-serif; padding: 0 14px; }
.home .draw-search input::placeholder { color: #7d8496; }
/* Drawing: on the first corner, a click closes the shape: pointing hand + a green "✓ Finish" label. */
.draw-map.drawing.can-close, .draw-map.drawing.can-close .leaflet-interactive { cursor: pointer; }
.leaflet-tooltip.close-tip {
  background: #16331f; color: #bbf7d0; border: 1px solid #4ade80; border-radius: 8px;
  font: 700 13px "Outfit", sans-serif; padding: 3px 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
.leaflet-tooltip-top.close-tip::before { border-top-color: #4ade80; }

/* Add-on sales paused (src/addonSales.js: the server marks <body data-addon-paused>): the add-on's sales bits
   hide, and its "paused" notes show instead. */
.addon-paused-note { display: none; }
[data-addon-paused] .addon-paused-note { display: block; }
[data-addon-paused] .addon-sale { display: none !important; }
