/* QuoteMap website. Palette comes from the app icon. */
:root {
  --field: #00503a;
  --field-deep: #003a2a;
  --marker: #f77401;
  --night: #0b1b2b;
  --contour: #6f8aa3;
  --chalk: #f1f5f2;
  --paper: #ffffff;
  --ink: #13221b;
  --ink-soft: #3d4f46;
  --line: #c8d4ce;
  --measure: 4px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--field); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { background: var(--field); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 750; font-stretch: 112%; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 20px; font-size: 0.975rem; }
.site-nav a { color: #fff; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 2px; }

/* Hero */
.hero { background: var(--field); color: #fff; padding-block: 40px 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 880px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; } .hero { padding-block: 64px 96px; } }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  line-height: 1.02;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.025em;
  max-width: 13ch;
}
.hero p { margin: 0 0 16px; max-width: 46ch; font-size: 1.15rem; color: #e3eee8; }
.availability { width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 16px; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 999px; font-weight: 600; font-size: 0.975rem; }
.availability::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 3px #fff; }

/* The measured lot */
.lot { position: relative; margin: 0; }
.lot svg { width: 100%; height: auto; border-radius: 22px; }
.lot .edge { stroke-dasharray: 1200; stroke-dashoffset: 0; }
.lot .area { opacity: 1; }
.lot .handle { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .lot .edge { animation: trace 1.8s cubic-bezier(.55, .1, .3, 1) .3s both; }
  .lot .area { animation: settle .6s ease-out 2s both; }
  .lot .handle { animation: drop .35s ease-out both; }
  .lot .readout { animation: settle .5s ease-out 2.3s both; }
}
@keyframes trace { from { stroke-dashoffset: 1200; } }
@keyframes settle { from { opacity: 0; } }
@keyframes drop { from { transform: scale(0); } }
.quote-slip {
  position: absolute; right: -6px; bottom: -28px;
  background: var(--paper); color: var(--ink);
  border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 18px 40px rgba(0, 30, 20, 0.35);
  min-width: 210px;
}
.quote-slip .what { display: block; font-size: 0.9rem; color: var(--ink-soft); }
.quote-slip .price { display: block; font-size: 1.6rem; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .quote-slip { right: 8px; bottom: -36px; min-width: 0; padding: 10px 14px; } .quote-slip .price { font-size: 1.3rem; } }

/* Sections */
.section { padding-block: 72px; }
.section + .section { padding-top: 0; }
.section h2 { margin: 0 0 12px; font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.12; font-weight: 780; font-stretch: 112%; letter-spacing: -0.02em; max-width: 24ch; }
.section .lede { margin: 0 0 36px; color: var(--ink-soft); max-width: 60ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { counter-increment: step; border-top: var(--measure) solid var(--field); padding-top: 18px; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; top: -17px; left: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--marker); color: #fff; border: 4px solid var(--chalk);
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; line-height: 1;
}
.steps h3 { margin: 6px 0 6px; font-size: 1.2rem; font-weight: 720; font-stretch: 108%; }
.steps p { margin: 0; color: var(--ink-soft); }

.trades { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.trades li { padding: 10px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }

.plans { display: grid; gap: 20px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1.25fr; } }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.plan.pro { background: var(--night); color: #fff; border-color: var(--night); }
.plan h3 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 760; font-stretch: 110%; }
.plan .cost { margin: 0 0 16px; color: var(--ink-soft); }
.plan.pro .cost { color: #c9d6e2; }
.plan ul { margin: 0; padding-left: 1.15em; }
.plan li { margin-bottom: 6px; }
.plan.pro li::marker { color: var(--marker); }
.fine { font-size: 0.925rem; color: var(--ink-soft); max-width: 70ch; margin-top: 20px; }

.local { background: var(--paper); border-block: 1px solid var(--line); }
.local .wrap { display: grid; gap: 12px; padding-block: 56px; }
.local h2 { margin: 0; font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.15; font-weight: 760; font-stretch: 112%; letter-spacing: -0.02em; }
.section.after-hero { padding-top: 104px; }
.local p { margin: 0; max-width: 62ch; color: var(--ink-soft); }

/* Document pages: privacy, terms, support */
.doc-head { background: var(--field); color: #fff; padding-block: 40px 44px; }
.doc-head h1 { margin: 0; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.05; font-weight: 800; font-stretch: 115%; letter-spacing: -0.02em; }
.doc-head p { margin: 10px 0 0; color: #d7e6de; }
.doc { width: min(70ch, 100% - 32px); margin-inline: auto; padding-block: 44px 72px; }
.doc h2 { margin: 40px 0 8px; font-size: 1.35rem; line-height: 1.2; font-weight: 740; font-stretch: 108%; }
.doc h3 { margin: 24px 0 4px; font-size: 1.1rem; font-weight: 700; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.summary { background: var(--paper); border-left: var(--measure) solid var(--marker); padding: 18px 22px; border-radius: 0 12px 12px 0; }
.summary p { margin: 0; }
.contact-card { display: grid; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-top: 20px; }
.contact-card a { font-size: 1.3rem; font-weight: 700; font-stretch: 108%; }
details { border-bottom: 1px solid var(--line); padding-block: 14px; }
details summary { cursor: pointer; font-weight: 650; }
details p { margin: 10px 0 2px; }

/* Footer */
.site-footer { background: var(--field-deep); color: #cfe0d7; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: #fff; }

/* Sticky header */
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

/* Feature rows: text beside a demo, alternating sides */
.features { display: grid; gap: 88px; }
.feature { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) {
  .feature { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .feature.flip .feature-text { order: 2; }
}
.feature h3 { margin: 0 0 12px; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.08; font-weight: 790; font-stretch: 114%; letter-spacing: -0.022em; max-width: 18ch; }
.feature .lede { margin: 0 0 20px; color: var(--ink-soft); font-size: 1.1rem; max-width: 46ch; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 48ch; }
.points li { position: relative; padding-left: 30px; }
.points li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 14px; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.points b { font-weight: 680; }

/* Details grid */
.details { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.detail { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.detail h3 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 720; font-stretch: 106%; }
.detail p { margin: 0; color: var(--ink-soft); font-size: 0.975rem; }

/* FAQ on the home page */
.faq { max-width: 760px; }

/* Closing band */
.closing { background: var(--field); color: #fff; }
.closing .wrap { display: grid; gap: 18px; justify-items: start; padding-block: 64px; }
.closing h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.05; font-weight: 800; font-stretch: 118%; letter-spacing: -0.025em; max-width: 20ch; }
.closing p { margin: 0; color: #e3eee8; max-width: 52ch; }
.closing .availability { margin-top: 4px; }

@media (max-width: 440px) {
  .site-nav { gap: 14px; }
  .site-nav a[href="#features"] { display: none; }
}
