/* Main & Harbor: see DESIGN.md for the reasoning behind every token */
:root {
  --green: #0A6B45;
  --green-dark: #07563A;
  --asphalt: #24292E;
  --asphalt-soft: #4A5158;
  --sidewalk: #EFEFEC;
  --white: #FFFFFF;
  --curb: #F5C51B;
  --line: #C9CCCF;
  --sign: "Overpass", "Arial Narrow", Arial, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1120px;
  --z-header: 20;
  --z-skip: 30;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(10, 107, 69, .18);
  scrollbar-color: #9AA0A6 var(--sidewalk);
}
body {
  margin: 0;
  background: var(--sidewalk);
  color: var(--asphalt);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}
::selection { background: var(--green); color: var(--white); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--sign); color: var(--asphalt); margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.015em; }
h2 { font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--green); text-underline-offset: 4px; }
a, button, summary { touch-action: manipulation; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Focus: dark ring on light surfaces (13:1), curb yellow on green and asphalt */
:focus-visible { outline: 3px solid var(--asphalt); outline-offset: 3px; border-radius: 4px; }
.close :focus-visible, .foot :focus-visible { outline-color: var(--curb); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--asphalt); color: var(--white); padding: 10px 14px; font-family: var(--sign); font-weight: 700; z-index: var(--z-skip); }
.skip:focus { top: 12px; }

/* Buttons: rounded like a sign blade */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  background: var(--green); color: var(--white);
  font-family: var(--sign); font-weight: 700; font-size: 1.08rem;
  text-decoration: none; border-radius: 8px; border: 2px solid var(--green);
  transition: background-color .15s ease, border-color .15s ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.96); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 1rem; }
.btn-quiet { background: transparent; color: var(--green); border-color: transparent; text-decoration: underline; padding: 0 8px; }
.btn-light { background: var(--white); color: var(--green); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
  .btn-quiet:hover { background: transparent; border-color: transparent; color: var(--green-dark); }
  .btn-light:hover { background: var(--sidewalk); border-color: var(--sidewalk); }
  .btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
  .top nav a:hover { color: var(--green); text-decoration: underline; }
}

/* Header: pinned while scrolling, solid so text under it never shows through */
.top {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--sidewalk);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--asphalt); text-decoration: none; font-family: var(--sign); font-weight: 800; font-size: 1.25rem; }
.brand-mark { width: 34px; height: 34px; }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { font-family: var(--sign); font-weight: 600; color: var(--asphalt); text-decoration: none; padding: 10px 0; }

/* Hero: the street sign is the one bold thing on the page */
.hero { padding: 56px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { max-width: 13ch; }
.lede { margin-top: 24px; max-width: 33em; font-size: 1.2rem; color: var(--asphalt-soft); }
.price-line { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--sign); font-weight: 600; font-size: 1.1rem; }
.tag { background: var(--curb); color: var(--asphalt); font-weight: 800; padding: 4px 12px; border-radius: 5px; }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.area { margin-top: 26px; font-family: var(--sign); font-weight: 600; font-size: .95rem; color: var(--asphalt-soft); }

.hero-map { margin: 0; justify-self: center; width: 100%; max-width: 460px; }
.hero-map svg { width: 100%; height: auto; overflow: visible; }
.label-text { font-family: var(--sign); font-weight: 700; font-size: 15px; fill: var(--white); }
.card-title { font-family: var(--sign); font-weight: 800; font-size: 17px; fill: var(--white); }
.card-small { font-family: var(--sign); font-weight: 600; font-size: 12px; fill: var(--asphalt-soft); }
.card-btn { font-family: var(--sign); font-weight: 700; font-size: 13.5px; fill: var(--white); }
/* The one moment: the pin drops onto the corner, then the shop's website opens out of it */
.pin, .pin-shadow, .card { transform-box: view-box; }
.pin { transform-origin: 206px 268px; animation: pin-drop 700ms var(--ease-out) .2s both; }
.pin-shadow { transform-origin: 206px 268px; animation: pin-shadow 650ms var(--ease-out) .2s both; }
.card { transform-origin: 214px 186px; animation: card-open 520ms var(--ease-out) .8s both; }
@keyframes pin-drop { from { transform: translateY(-70px); opacity: 0; } 40% { opacity: 1; } to { transform: translateY(0); opacity: 1; } }
@keyframes pin-shadow { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: .22; } }
@keyframes card-open { from { transform: scale(.85) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* What you get: copy and an example phone on the left, the price board on the right */
.get { background: var(--white); padding: 88px 0; }
.get-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.get-intro > p { margin-top: 18px; max-width: 30em; color: var(--asphalt-soft); }

.example { margin: 36px 0 0; }
.example figcaption { margin-top: 12px; font-size: .95rem; color: var(--asphalt-soft); }
/* Phone frame: outer radius 34 = inner 24 + 10 padding (concentric) */
.device { width: 250px; padding: 10px; border-radius: 34px; background: var(--asphalt); box-shadow: 0 18px 40px -18px rgba(36, 41, 46, .55); }
.screen { border-radius: 24px; overflow: hidden; background: var(--white); font-family: var(--sign); color: #2B2B2B; }
.ex-bar { background: #8C1D2C; padding: 22px 14px 10px; }
.ex-logo { display: inline-block; border: 2px solid #fff; color: #fff; font-weight: 800; font-size: .78rem; padding: 3px 8px; border-radius: 4px; }
.ex-hero { background: #8C1D2C; color: #fff; padding: 6px 14px 16px; }
.ex-h { font-weight: 800; font-size: 1.05rem; line-height: 1.15; text-wrap: balance; }
.ex-call { display: block; margin-top: 10px; background: #fff; color: #8C1D2C; text-align: center; font-weight: 800; font-size: .85rem; padding: 8px; border-radius: 6px; }
.ex-block { padding: 10px 14px; border-bottom: 1px solid #ECECEC; }
.ex-label { font-weight: 800; font-size: .72rem; color: #8C1D2C; margin-bottom: 4px; }
.ex-row { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 600; line-height: 1.6; font-variant-numeric: tabular-nums; }
.ex-stars { width: 86px; height: auto; margin: 2px 0 7px; }
.ex-line { display: block; height: 7px; border-radius: 4px; background: #E4E4E4; margin-top: 5px; }
.ex-line.short { width: 60%; }
.ex-map {
  height: 92px; position: relative;
  background-color: #E8ECE6;
  background-image:
    linear-gradient(90deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%),
    linear-gradient(0deg, transparent 38%, #fff 38%, #fff 46%, transparent 46%),
    linear-gradient(115deg, transparent 70%, #fff 70%, #fff 74%, transparent 74%);
}
.ex-pin { position: absolute; left: 50%; top: 18px; width: 30px; height: 30px; transform: translateX(-50%); }

.board { border: 2px solid var(--asphalt); border-radius: 12px; padding: 24px 28px 22px; background: var(--white); }
.board-title { font-size: 1.15rem; margin-bottom: 8px; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.board-list li > span:first-child { flex: 0 1 auto; min-width: 0; }
.dots { flex: 1 1 24px; min-width: 24px; border-bottom: 2px dotted #A3A8AD; transform: translateY(-5px); }
.val { flex: none; font-family: var(--sign); font-weight: 700; color: var(--green); }
.board-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 16px; border-top: 3px solid var(--asphalt); font-family: var(--sign); font-weight: 800; font-size: 1.4rem; }
.total-price { font-size: 2.6rem; color: var(--green); line-height: 1; font-variant-numeric: tabular-nums; }
.board-note { margin-top: 10px; font-size: 1rem; color: var(--asphalt-soft); }

/* Plans: Starter and Plus on white, Complete on asphalt so the top plan reads first */
.plans { padding: 88px 0; }
.plan-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border: 2px solid var(--asphalt); border-radius: 12px; padding: 26px 24px 24px;
}
.plan h3 { font-size: 1.5rem; }
.plan-price { font-family: var(--sign); font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.plan-for { color: var(--asphalt-soft); }
.plan-list { list-style: none; margin: 4px 0 0; padding: 0; flex: 1; }
.plan-list li { position: relative; padding: 7px 0 7px 26px; border-top: 1px solid #E3E4E2; }
.plan-list li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg);
}
.plan-save { font-family: var(--sign); font-weight: 600; font-size: .95rem; color: var(--asphalt-soft); }
.plan .btn { margin-top: 4px; }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.plan-complete { background: var(--asphalt); border-color: var(--asphalt); color: var(--white); }
.plan-complete h3 { color: var(--white); }
.plan-complete .plan-price { color: var(--curb); }
.plan-complete .plan-for, .plan-complete .plan-save { color: #D6D9DC; }
.plan-complete .plan-list li { border-top-color: rgba(255, 255, 255, .16); }
.plan-complete .plan-list li::before { border-color: var(--curb); }
.plan-complete :focus-visible { outline-color: var(--curb); }
.plan-complete { position: relative; }
.plan-tag { position: absolute; top: -15px; left: 22px; margin: 0; font-family: var(--sign); font-size: .9rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: var(--green); color: var(--white); border-color: var(--green); }
}

.addons { margin-top: 56px; max-width: 760px; }
.addons h3 { font-size: 1.4rem; margin-bottom: 8px; }
.addons-note { margin-top: 14px; color: var(--asphalt-soft); font-size: 1rem; }

/* How it works: numbered because it is a real sequence. Step numbers sit in tabs like freeway exit tabs. */
.how { background: var(--white); padding: 88px 0; }
.section-lede { margin-top: 14px; max-width: 34em; color: var(--asphalt-soft); }
.steps { list-style: none; counter-reset: step; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; }
.steps li { counter-increment: step; position: relative; border-top: 3px solid var(--green); padding-top: 22px; }
.steps li::before {
  content: "Step " counter(step);
  position: absolute; top: -31px; left: 0;
  background: var(--green); color: var(--white);
  font-family: var(--sign); font-weight: 700; font-size: .85rem;
  padding: 4px 10px 3px; border-radius: 5px 5px 0 0;
}
.steps p { margin-top: 10px; color: var(--asphalt-soft); }

/* Who */
.who { padding: 76px 0; }
.who-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: baseline; }
.who p { max-width: 34em; font-size: 1.2rem; }

/* Questions: the plus is drawn, and turns into an x when open */
.faq { background: var(--white); padding: 88px 0; }
.faq h2 { margin-bottom: 26px; }
details { border-bottom: 1px solid var(--line); max-width: 820px; }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 16px 2px; font-family: var(--sign); font-weight: 700; font-size: 1.18rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background:
    linear-gradient(var(--green), var(--green)) center / 16px 2.5px no-repeat,
    linear-gradient(var(--green), var(--green)) center / 2.5px 16px no-repeat;
  transition: transform 200ms var(--ease-out);
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 2px 22px; max-width: 40em; color: var(--asphalt-soft); }

/* Closing call to action */
.close { background: var(--green); color: var(--white); padding: 80px 0; }
.close h2 { color: var(--white); }
.close-copy p { margin-top: 14px; max-width: 30em; font-size: 1.2rem; }
.close-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.close-copy .close-or { font-size: 1.05rem; color: #DCEBE3; margin-top: 22px; }
.close-or a { color: var(--white); font-weight: 600; }
.phone-num { font-family: var(--sign); font-weight: 700; color: var(--white); white-space: nowrap; }

/* Free-preview form: white card on the green section */
.preview-form { background: var(--white); color: var(--asphalt); border-radius: 14px; padding: 26px 24px 20px; display: grid; gap: 14px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .5); }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.preview-form label { font-family: var(--sign); font-weight: 700; font-size: 1rem; }
.opt { font-weight: 600; color: var(--asphalt-soft); }
.preview-form input, .preview-form textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--asphalt);
  background: var(--white); border: 2px solid #A9AEB3; border-radius: 8px; padding: 11px 12px;
  transition: border-color .15s ease;
}
.preview-form textarea { resize: vertical; min-height: 84px; }
.preview-form input::placeholder, .preview-form textarea::placeholder { color: #6B7178; }
.preview-form input:focus-visible, .preview-form textarea:focus-visible { border-color: var(--asphalt); outline: 3px solid var(--asphalt); outline-offset: 1px; }
.close .preview-form :focus-visible { outline-color: var(--asphalt); }
.preview-form [aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-family: var(--sign); font-weight: 600; font-size: .95rem; }
.field-error:empty { display: none; }
.btn-submit { width: 100%; background: var(--green); color: var(--white); border-color: var(--green); margin-top: 4px; }
.btn-submit:disabled { opacity: .7; cursor: progress; }
.form-status { font-family: var(--sign); font-weight: 700; color: var(--green); }
.form-status:empty { display: none; }
.form-note { font-size: .92rem; color: var(--asphalt-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .btn-submit:hover { background: var(--green-dark); border-color: var(--green-dark); }
}

/* Footer */
.foot { background: var(--asphalt); color: #D6D9DC; padding: 32px 0 40px; font-size: 1rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot-brand { font-family: var(--sign); font-weight: 800; color: var(--white); }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.foot-links a { color: #E6E8EA; text-underline-offset: 4px; display: inline-block; padding: 6px 0; }

/* Tablet */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 52px 28px; }
  .get-grid, .who-grid, .close-grid { grid-template-columns: 1fr; gap: 28px; }
  .plan-grid { grid-template-columns: 1fr; max-width: 520px; }
  .example { display: flex; flex-direction: column; align-items: flex-start; }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 1.06rem; }
  .top nav { display: none; }
  .top-row { justify-content: space-between; }
  .hero { padding: 24px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 4px; }
  .hero-map { order: -1; max-width: 232px; justify-self: start; margin-bottom: 14px; }
  .brand { font-size: 1.08rem; white-space: nowrap; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .btn-small { white-space: nowrap; padding: 0 14px; font-size: .95rem; }
  .top-row { gap: 12px; min-height: 64px; }
  .lede { margin-top: 18px; }
  .lede { font-size: 1.1rem; }
  .get, .plans, .how, .faq { padding: 64px 0; }
  .board { padding: 18px 16px 16px; }
  .board-list li { font-size: 1rem; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .actions .btn:not(.btn-quiet) { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .preview-form { padding: 22px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pin, .pin-shadow, .card { animation: none; }
  summary::after, .btn { transition: none; }
  .btn:active { transform: none; }
}
