/* AreaMap website. One accent (the app's blue), one type family (DM Sans, as in the app), 8 pt spacing,
   left-aligned copy on a single edge, light and dark from the system setting. */
:root {
  --bg: #FFFFFF;
  --bg-2: #F4F5F8;
  --card: #FFFFFF;
  --text: #0F1115;
  --text-2: #4F5561;
  --text-3: #5F6571;
  --line: rgba(15, 17, 21, 0.09);
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-soft: rgba(47, 107, 255, 0.1);
  --field: #2E9E57;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(15, 17, 21, 0.04), 0 12px 32px -12px rgba(15, 17, 21, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 32px); } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--card); padding: 8px 14px; border-radius: 10px; }

/* Nav: brand left, links and the one action right. */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; font-size: 15px; margin-left: auto; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav-links { display: none; } .nav .btn-sm { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 17px; transition: background 0.15s, transform 0.15s; }
.btn:hover { text-decoration: none; background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; gap: 7px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-note { color: var(--text-3); font-size: 14px; margin: 14px 0 0; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); padding: 14px 22px; border-radius: 999px; font-weight: 500; font-size: 15px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); transition: opacity 0.25s, transform 0.25s; z-index: 20; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h1, h2, h3 { font-weight: 700; margin: 0; }
h2 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 16px; max-width: 18ch; }
.lede { color: var(--text-2); font-size: clamp(18px, 1.8vw, 20px); max-width: 44ch; margin: 0; }

/* Hero: copy on the left edge, two phones on the right. */
.hero { padding: 72px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.045em; margin: 0 0 22px; }
@media (max-width: 600px) { .hero h1 br { display: none; } }
.hero .lede { margin-bottom: 32px; max-width: 34ch; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--text-2); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--field); flex: none; }
.hero-visual { position: relative; height: 700px; }
.phone { position: absolute; width: 290px; border-radius: 46px; padding: 9px; background: #0A0A0B; box-shadow: 0 40px 80px -24px rgba(15, 17, 21, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.07) inset; }
.phone img { border-radius: 37px; width: 100%; }
.hero .phone.back { top: 0; right: 0; }
.hero .phone.front { top: 70px; left: 4%; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { height: 520px; max-width: 520px; }
  .phone { width: 230px; border-radius: 38px; padding: 7px; }
  .phone img { border-radius: 31px; }
}
@media (max-width: 480px) {
  .hero-visual { height: 460px; }
  .phone { width: 200px; }
  .hero .phone.front { left: 0; }
}

/* Sections */
section { padding: 96px 0; }
section.tint { background: var(--bg-2); }
.section-head { margin-bottom: 48px; }
@media (max-width: 600px) { section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* How it works: three numbered steps, one row. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.steps h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 6px; }
.steps p { color: var(--text-2); margin: 0; font-size: 16px; }

/* Feature rows: copy and one phone, alternating sides. */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { position: relative; width: 300px; }
.feature ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.feature li { display: flex; gap: 12px; color: var(--text-2); }
.feature li b { color: var(--text); font-weight: 600; }
.feature li svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .feature-media { order: 0; }
  .feature-media .phone { width: 250px; }
  .feature + .feature { margin-top: 88px; }
}

/* Who it's for */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .uses { grid-template-columns: 1fr; } }
.use { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.use img { width: 64px; height: 64px; flex: none; object-fit: contain; }
.use h3 { font-size: 17px; margin-bottom: 2px; }
.use p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.45; }

/* Detail grid */
.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .details { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .details { grid-template-columns: 1fr; } }
.detail { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.detail svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.detail h3 { font-size: 17px; margin-bottom: 4px; }
.detail p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }

/* Pricing */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.price-card .amount { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.price-card .amount small { font-size: 18px; color: var(--text-2); font-weight: 500; letter-spacing: 0; }
.price-card p { color: var(--text-2); margin: 12px 0 0; }
.price-card .fine { font-size: 14px; color: var(--text-3); }
.price-card .btn { margin-top: 24px; width: 100%; }

/* FAQ */
.faq details, .faq .section-head { max-width: 760px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 12px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--text-2); }

/* Closing call to action */
.cta-band { text-align: left; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: 48px; box-shadow: var(--shadow); }
.cta-band h2 { margin-bottom: 8px; }
.cta-band .lede { font-size: 18px; }
@media (max-width: 600px) { .cta-band .wrap { padding: 32px 24px; } }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--text-2); }

/* Legal and support pages */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 8px; }
.doc .meta { color: var(--text-3); font-size: 15px; margin-bottom: 36px; }
.doc h2 { font-size: 24px; letter-spacing: -0.01em; margin: 44px 0 10px; max-width: none; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin-bottom: 8px; }
.summary p { margin: 0; }
.summary ul { margin: 10px 0 0; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; min-width: 520px; }
table.data th, table.data td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--text); font-weight: 600; }
table.data td { color: var(--text-2); }
.contact { background: var(--accent-soft); border-radius: 20px; padding: 24px; margin-top: 36px; }
.contact p { margin: 0; color: var(--text); }

/* Hero rating line */
.rating { color: var(--text-2); font-size: 15px; margin: 16px 0 0; }
.rating .stars { color: #E8A317; letter-spacing: 1px; }
.rating b { color: var(--text); font-weight: 600; }

/* Calculator cards (home page and /calculators) */
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tool-grid { grid-template-columns: 1fr; } }
.doc .tool-grid { grid-template-columns: repeat(2, 1fr); margin: 32px 0 8px; }
@media (max-width: 560px) { .doc .tool-grid { grid-template-columns: 1fr; } }
.tool-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; color: var(--text); transition: border-color 0.15s, box-shadow 0.15s; }
.tool-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow); }
.tool-card h3 { font-size: 17px; margin-bottom: 4px; }
.tool-card h3::after { content: " →"; color: var(--accent); }
.tool-card p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }

/* Calculator and guide pages */
.crumbs { font-size: 14px; color: var(--text-3); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--text-2); }
.tool-intro { font-size: 19px; color: var(--text-2); margin: 12px 0 28px; }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin: 0 0 24px; }
.doc .calc-title { font-size: 20px; margin: 0 0 18px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px 12px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.field.wide { grid-column: span 2; }
@media (max-width: 400px) { .field.wide { grid-column: 1 / -1; } }
.field .input { display: flex; align-items: center; border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); border-radius: 12px; background: var(--bg); }
.field .input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input, .field select { font: inherit; font-size: 17px; font-weight: 500; color: var(--text); border: 0; background: transparent; min-height: 48px; padding: 0 12px; width: 100%; min-width: 0; outline: none; }
.field select { border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); border-radius: 12px; background: var(--bg); }
.field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder { color: var(--text-3); font-weight: 400; }
.field em { font-style: normal; font-weight: 500; color: var(--text-3); padding-right: 12px; white-space: nowrap; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.result { display: grid; gap: 2px; }
.result span { font-size: 14px; color: var(--text-2); }
.result output { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.result.big { grid-column: 1 / -1; background: var(--accent-soft); border-radius: 16px; padding: 16px 18px; }
.result.big output { font-size: 40px; color: var(--accent); }
@media (max-width: 480px) { .calc { padding: 20px 16px; } }
.app-cta { display: flex; gap: 20px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 32px 0 8px; }
.app-cta img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.doc .app-cta h2 { font-size: 20px; margin: 0 0 6px; }
.app-cta p { margin: 0; }
.app-cta-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px !important; }
.app-cta-links .btn { color: #fff; }
@media (max-width: 520px) { .app-cta { flex-direction: column; } }
.related { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
.related li { margin: 0 !important; }
.related a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: var(--text); }
.related a:hover { border-color: var(--accent); text-decoration: none; }
.toc { display: grid; gap: 6px; background: var(--bg-2); border-radius: 20px; padding: 20px 24px; margin: 8px 0 8px; font-size: 16px; }
.doc ol { padding-left: 22px; }
.doc ol li { margin: 6px 0; color: var(--text-2); }
.guide-figure { display: flex; justify-content: center; margin: 28px 0; }
.guide-figure .phone { position: relative; width: 260px; }

/* Map area calculator (/map-area-calculator, map.js): satellite map with search and locate on top, the live result
   in a panel under it. The page widens past the 760 px reading column so the map has room. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.doc.wide .wrap { max-width: 1040px; }
.doc.wide .wrap > :not(.map-tool):not(.crumbs):not(h1):not(.tool-intro):not(.table-scroll) { max-width: 760px; }
.doc.wide .tool-intro { max-width: 760px; }
.map-tool { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--card); margin: 0 0 32px; }
.map-frame { position: relative; height: min(64vh, 620px); min-height: 380px; background: #1d2a1f; }
.map-canvas { position: absolute; inset: 0; cursor: crosshair; }
.map-search { position: absolute; top: 12px; left: 12px; right: 68px; max-width: 420px; display: flex; background: var(--card); border-radius: 14px; box-shadow: 0 4px 18px rgba(15, 17, 21, 0.25); z-index: 2; }
.map-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; border: 0; background: transparent; padding: 0 14px; min-height: 48px; color: var(--text); outline: none; border-radius: 14px; }
.map-search:focus-within { box-shadow: 0 0 0 3px var(--accent-soft), 0 4px 18px rgba(15, 17, 21, 0.25); }
.map-search button, .map-locate { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; border-radius: 14px; }
.map-search button svg, .map-locate svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.map-search button:hover, .map-locate:hover { color: var(--accent); }
.map-locate { position: absolute; top: 12px; right: 12px; background: var(--card); box-shadow: 0 4px 18px rgba(15, 17, 21, 0.25); z-index: 2; }
.busy { opacity: 0.6; pointer-events: none; }
.map-off-note { display: none; position: absolute; inset: auto 16px 16px 16px; margin: 0; background: var(--card); color: var(--text); border-radius: 14px; padding: 14px 16px; font-size: 15px; z-index: 2; }
.map-off .map-off-note:not(:empty) { display: block; }
.map-pin { position: relative; width: 0; height: 0; }
.map-pin > * { position: absolute; left: 0; top: 0; }
.map-dot { width: 18px; height: 18px; border-radius: 50%; background: #FFD60A; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); transform: translate(-50%, -50%); cursor: grab; }
/* A 44 px grab area around each corner, and no browser scrolling or zooming while one is held. */
.map-dot { touch-action: none; }
.map-dot::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; }
.map-dot.dragging { cursor: grabbing; transform: translate(-50%, -50%) scale(1.25); }
@media (pointer: coarse) { .map-dot { width: 24px; height: 24px; } }
.map-len { transform: translate(-50%, -50%); background: rgba(15, 17, 21, 0.78); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
.map-panel { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line); }
.map-readout { display: grid; gap: 2px; }
.map-area { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.15; }
.has-shape .map-area { color: var(--accent); }
.map-sub, .map-perim { color: var(--text-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.map-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 12px; padding: 3px; }
.seg button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--text-2); min-height: 36px; padding: 0 12px; border-radius: 9px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(15, 17, 21, 0.12); }
.btn-quiet { font: inherit; font-size: 15px; font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--text); min-height: 42px; padding: 0 16px; border-radius: 12px; cursor: pointer; }
.btn-quiet:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-quiet:disabled { color: var(--text-3); cursor: default; opacity: 0.6; }
.map-hint { grid-column: 1 / -1; margin: 0; color: var(--text-3); font-size: 14px; }
.map-save { grid-column: 1 / -1; font-weight: 600; font-size: 15px; }
.map-save[hidden] { display: none; }
@media (max-width: 640px) {
  /* Phones: the result sits above the map so it stays in view while you tap. */
  .map-tool { display: flex; flex-direction: column; }
  .map-panel { order: -1; border-top: 0; border-bottom: 1px solid var(--line); grid-template-columns: 1fr; padding: 14px 16px; gap: 6px; }
  .map-frame { height: 54vh; min-height: 320px; }
  .map-actions { justify-content: flex-start; flex-wrap: nowrap; gap: 6px; }
  .map-actions .seg button { padding: 0 10px; }
  .btn-quiet { padding: 0 12px; }
  .map-save { display: none; } /* the app box under the map says it; showing it here would push the map down mid-tap */
  .map-area { font-size: 28px; }
}
@media (pointer: coarse) { .seg button { min-height: 44px; } .btn-quiet { min-height: 44px; } }

/* Comparison table */
table.compare { min-width: 900px; font-size: 14px; }
table.compare th { white-space: nowrap; }
table.compare td:first-child { white-space: nowrap; }
.yes { color: var(--field); font-weight: 600; }
.no { color: var(--text-3); }
