/* ============================================================
   FenceMates: the yard the morning before the dig.
   Turf green fields, flag-white paper, one marking-paint orange for the
   action and the drawn line, ink type. Cards stand on wire stakes over a
   ground rule. Barlow Condensed for display, Barlow for body.
   Every token name from the fork is kept so nothing else breaks.
   ============================================================ */
:root {
  --accent: #ff5a1f;         /* marking-paint orange: the primary action, the drawn line */
  --accent-dark: #ff7a45;    /* hover: a lighter coat, ink stays 5.8:1 on it */
  --accent-text: #c93b08;    /* the only orange allowed as small text on white (5.1:1) */
  --dark: #12261a;           /* ink: type, stakes, pressed controls */
  --light: #ffffff;
  --bg-soft: #f1f4ee;        /* flag-white paper, green cast, for alternate sections */
  --turf: #1e5b34;           /* the field: hero, deposit band, footer */
  --turf-deep: #174528;      /* the field, shaded (footer bottom, pressed on turf) */
  --mint: #cfe6d3;           /* secondary text on turf (6.1:1) */

  --primary: var(--dark);
  --primary-dark: var(--dark);
  --primary-darker: #000000;
  --primary-light: var(--accent);
  --primary-lightest: var(--bg-soft);
  --accent-hover: var(--accent-dark);
  --accent-light: #ffe8dd;   /* pale paint tint for selected rows */
  --dark-light: #1d3626;
  --dark-medium: #172e1f;
  --text: #17201a;
  --text-light: #4a554d;
  --text-muted: #66716a;     /* 5.1:1 on white */
  --white: #ffffff;
  --off-white: var(--bg-soft);
  --gray-light: #eef1ea;
  --gray: #dfe4dc;
  --gray-dark: #b9c2b6;
  --green: var(--turf);
  --red: #b3261e;
  --shadow-sm: 0 1px 2px rgba(18,38,26,0.08), 0 2px 6px rgba(18,38,26,0.06);
  --shadow: 0 2px 4px rgba(18,38,26,0.06), 0 10px 24px rgba(18,38,26,0.10);
  --shadow-lg: 0 6px 10px rgba(18,38,26,0.08), 0 20px 48px rgba(18,38,26,0.16);
  --hairline: #dce2d8;
  --radius: 4px;
  --radius-lg: 8px;
  --transition: 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 68px;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Segoe UI', Roboto, sans-serif;
  --z-base: 1;
  --z-sticky: 100;
  --z-nav: 1000;
  --z-mobile-bar: 1100;
  --z-overlay: 1200;
  --z-toast: 1300;
}
@media (max-width: 768px) { :root { --nav-h: 60px; } }

/* ---- base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--body); font-size: 1.0625rem; color: var(--text); background: var(--white); line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--accent); }
::selection { background: var(--accent); color: var(--dark); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; color: var(--dark); font-weight: 700; }
h1 { font-size: clamp(2.5rem, 2rem + 3.2vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 1.5rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
p a, .page-content li a, .legal-content li a, .pricing-notes a, td a { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; text-decoration-color: var(--accent); }
p a:hover, .page-content li a:hover, td a:hover { color: var(--accent-text); }
button { cursor: pointer; font-family: inherit; font-size: inherit; color: inherit; background: none; border: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
strong { font-weight: 600; }
small { font-size: 0.875em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 800px; }
@media (min-width: 769px) { .container { padding: 0 32px; } }

/* numbers line up in every price */
td, .starts-price, .fq-card-price, .fq-range, .fq-feet, .fq-chip small, .fr-item strong, output { font-variant-numeric: tabular-nums; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--radius); font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.01em; line-height: 1.1; text-align: center; border: 2px solid transparent; transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform 0.12s var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--dark); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-primary:active { background: var(--dark); border-color: var(--dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-outline-dark { background: var(--white); color: var(--dark); border-color: var(--dark); }
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }
.btn-lg { min-height: 56px; padding: 14px 32px; font-size: 1.35rem; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-content--center .hero-buttons { justify-content: center; }
.hero .btn-outline-dark { background: transparent; color: var(--white); border-color: var(--white); }
.hero .btn-outline-dark:hover, .pricing-teaser .btn-outline-dark:hover { background: var(--white); color: var(--dark); }
.pricing-teaser .btn-outline-dark { background: transparent; color: var(--white); border-color: var(--white); }
.hero :focus-visible, .pricing-teaser :focus-visible, .footer :focus-visible { outline-color: var(--white); }

/* ---- navigation ---- */
.navbar { position: sticky; top: 0; z-index: var(--z-nav); background: var(--white); border-bottom: 1px solid var(--hairline); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 1.75rem; letter-spacing: -0.01em; color: var(--dark); line-height: 1; }
.logo svg { width: 22px; height: 28px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 500; color: var(--text-light); border-radius: var(--radius); }
.nav-links a:hover { color: var(--dark); background: var(--gray-light); }
.nav-links .nav-cta { margin-left: 8px; background: var(--accent); color: var(--dark); font-family: var(--display); font-weight: 700; font-size: 1.15rem; padding: 0 18px; }
.nav-links .nav-cta:hover { background: var(--accent-dark); color: var(--dark); }
.mobile-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: var(--radius); }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); transition: transform var(--transition), opacity var(--transition); }
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .mobile-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--white); border-bottom: 1px solid var(--hairline); box-shadow: var(--shadow); }
  .nav-links.active { display: flex; }
  .nav-links li { border-top: 1px solid var(--hairline); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a { width: 100%; min-height: 52px; padding: 12px 4px; font-size: 1.1rem; }
  .nav-links .nav-cta { margin: 12px 0 0; padding: 12px 18px; justify-content: center; }
}

/* ---- hero fields ---- */
.hero { background: var(--turf); color: var(--white); padding: 56px 0 60px; position: relative; }
.hero h1 { color: var(--white); }
.hero-sub { font-size: 1.2rem; line-height: 1.5; color: var(--mint); max-width: 62ch; margin-top: 16px; }
.hero-content--center { text-align: center; }
.hero-content--center .hero-sub { margin-left: auto; margin-right: auto; }
.hero .breadcrumb { font-size: 0.95rem; color: var(--mint); margin-bottom: 18px; }
.hero .breadcrumb a { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: rgba(255,255,255,0.4); }
.hero .breadcrumb a:hover { color: var(--white); }
.breadcrumb { color: var(--text-muted); font-size: 0.95rem; }
.hero-note { margin-top: 14px; font-size: 1rem; color: var(--mint); max-width: 60ch; }
.hero-note strong { color: var(--white); }

/* the home hero: form left, the marked-out lot right */
.hero--home { padding: 64px 0 72px; overflow: hidden; }
.hero--home .hero-content { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero--home .hero-content { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } .hero--home { padding: 80px 0 88px; } }
.hero-zip-form { display: flex; gap: 10px; margin-top: 28px; max-width: 520px; }
.hero-zip-form input { flex: 1 1 120px; min-width: 0; min-height: 56px; padding: 0 16px; font-size: 1.3rem; font-family: var(--display); font-weight: 600; letter-spacing: 0.04em; border: 2px solid var(--white); border-radius: var(--radius); background: var(--white); color: var(--dark); }
.hero-zip-form input::placeholder { color: var(--text-muted); font-weight: 500; letter-spacing: 0.01em; }
.hero-zip-form input:focus-visible { outline-color: var(--white); outline-offset: 2px; }
.hero-zip-form .btn { min-height: 56px; font-size: 1.3rem; white-space: nowrap; }
@media (max-width: 480px) { .hero-zip-form { flex-direction: column; } .hero-zip-form input { flex: 0 0 auto; } .hero-zip-form .btn { width: 100%; } }
.qe-trust-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.qe-trust-pill { position: relative; padding-left: 20px; font-size: 0.98rem; font-weight: 500; color: var(--white); line-height: 1.3; }
.qe-trust-pill::before { content: ''; position: absolute; left: 0; top: 0.2em; width: 12px; height: 8px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 82% 50%, 100% 100%, 0 100%); }
.qe-trust-pill::after { content: ''; position: absolute; left: 0; top: 0.2em; width: 1.5px; height: 1.05em; background: var(--white); }

/* the lot plan: a fence line marked out in paint, with the real national range */
.lot { width: 100%; height: auto; }
.lot-caption { margin-top: 10px; font-size: 0.92rem; color: var(--mint); text-align: center; }
.lot-line { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.lot-flag { fill: var(--white); }
.lot-stake { stroke: var(--white); stroke-width: 2; }
.lot-dim { font-family: var(--display); font-weight: 600; font-size: 15px; fill: var(--white); letter-spacing: 0.02em; }
.lot-dim-line { stroke: var(--mint); stroke-width: 1.2; }
.lot-range { font-family: var(--display); font-weight: 800; font-size: 34px; fill: var(--white); letter-spacing: -0.01em; }
.lot-range-label { font-family: var(--body); font-size: 13px; fill: var(--mint); }
.lot-house { fill: rgba(255,255,255,0.16); stroke: rgba(255,255,255,0.5); stroke-width: 1.5; }
.lot-pin { transform-box: fill-box; transform-origin: center; }
.lot-ground { fill: rgba(0,0,0,0.14); }
@media (prefers-reduced-motion: no-preference) {
  .lot-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: lot-paint 1.8s var(--ease-out) 0.25s forwards; }
  .lot-pin { opacity: 0; animation: lot-plant 0.4s var(--ease-out) forwards; }
  .lot-pin:nth-of-type(1) { animation-delay: 0.3s; }
  .lot-pin:nth-of-type(2) { animation-delay: 0.8s; }
  .lot-pin:nth-of-type(3) { animation-delay: 1.4s; }
  .lot-pin:nth-of-type(4) { animation-delay: 1.9s; }
}
@keyframes lot-paint { to { stroke-dashoffset: 0; } }
@keyframes lot-plant { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- sections ---- */
.section-title { text-align: center; margin-bottom: 36px; }
.starts-section, .steps-section, .why-section, .page-content, .qe-section, .location-page, .legal-content, .locations-section, .reviews-section { padding: 64px 0; }
@media (min-width: 900px) { .starts-section, .steps-section, .why-section, .page-content, .qe-section, .location-page, .legal-content, .locations-section, .reviews-section { padding: 88px 0; } }
.starts-section { background: var(--bg-soft); }
.why-section { background: var(--bg-soft); }
.qe-section { background: var(--bg-soft); }

/* price cards stand on stakes over a ground rule */
.starts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding-bottom: 22px; border-bottom: 2px solid var(--dark); }
@media (min-width: 700px) { .starts-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .starts-grid { grid-template-columns: repeat(6, 1fr); } }
.starts-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 20px; background: var(--white); border: 1.5px solid var(--hairline); border-radius: var(--radius); transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); }
.starts-card::after { content: ''; position: absolute; left: 50%; bottom: -24px; width: 2px; height: 24px; background: var(--dark); transform: translateX(-50%); }
.starts-card:hover { border-color: var(--dark); transform: translateY(-3px); box-shadow: var(--shadow); }
.starts-section :focus-visible, .why-section :focus-visible, .qe-section :focus-visible, .zip-form :focus-visible { outline-color: var(--dark); }
.starts-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.05; color: var(--dark); }
.starts-price { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.1; color: var(--accent-text); }
@media (max-width: 400px) { .starts-price { font-size: 1.2rem; } }
.starts-note { margin-top: 28px; text-align: center; font-size: 1rem; }

/* four steps, numbered because the order is the point */
.steps-grid { display: grid; gap: 28px; }
@media (min-width: 600px) { .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; } }
@media (min-width: 900px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } .steps-grid--full { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.step-card { border-top: 2px solid var(--dark); padding-top: 16px; }
.step-number { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--accent-text); margin-bottom: 10px; }
.step-card h3 { margin-bottom: 8px; }
.step-card p { color: var(--text-light); font-size: 1rem; }

/* the reasons: a ruled list, not a card grid */
.why-grid { display: grid; gap: 0; border-top: 1px solid var(--hairline); }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
.why-card { padding: 24px 0 26px; border-bottom: 1px solid var(--hairline); }
.why-card h3 { margin-bottom: 8px; }
.why-card p { color: var(--text-light); font-size: 1rem; max-width: 52ch; }

/* the deposit band */
.pricing-teaser { background: var(--turf); color: var(--white); padding: 64px 0; }
.pricing-teaser h2 { color: var(--white); }
.pricing-teaser p { color: var(--mint); font-size: 1.15rem; margin-top: 14px; max-width: 58ch; margin-left: auto; margin-right: auto; }

/* ---- content pages ---- */
.page-content h2, .location-content h2, .legal-content h2 { margin: 44px 0 16px; font-size: clamp(1.6rem, 1.4rem + 1vw, 2.1rem); }
.page-content h2:first-child, .location-content h2:first-child { margin-top: 0; }
.page-content p, .location-content p, .legal-content p, .pitch-list li, .legal-list li { margin-bottom: 16px; max-width: 70ch; }
.page-content > .container > p:first-child, .legal-content > .container > p:first-child { margin-top: 0; }
.pitch-list, .legal-list, .location-content ul { padding-left: 22px; margin-bottom: 16px; }
.location-content ul li { margin-bottom: 8px; }
.legal-section { margin-bottom: 8px; }
.qe-lead { font-size: 1.05rem; color: var(--text-light); margin-bottom: 18px; max-width: 66ch; }
.price-na { color: var(--text-muted); font-style: italic; }
.pricing-notes { margin: 28px 0 8px; padding-left: 22px; }
.pricing-notes li { margin-bottom: 10px; color: var(--text-light); font-size: 1rem; }

/* ZIP box on a priced page */
.zip-form { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; padding: 18px 20px; margin-bottom: 26px; background: var(--bg-soft); border-radius: var(--radius-lg); border: 1px solid var(--hairline); }
.zip-form label { grid-column: 1 / -1; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.zip-form .qe-input { margin: 0; min-height: 48px; font-size: 1.15rem; letter-spacing: 0.04em; }
.zip-form .btn { min-height: 48px; }
.zip-form__note { grid-column: 1 / -1; font-size: 0.95rem; color: var(--text-muted); }
@media (max-width: 480px) { .zip-form { grid-template-columns: 1fr; } .zip-form .btn { width: 100%; } }

/* price tables */
.price-table, .location-content table { width: 100%; border-collapse: collapse; margin: 6px 0 28px; font-size: 1rem; }
.price-table th, .price-table td, .location-content th, .location-content td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.price-table thead th, .location-content thead th { font-family: var(--display); font-weight: 700; font-size: 1.1rem; border-bottom: 2px solid var(--dark); padding-top: 4px; }
.price-table tbody th { font-weight: 600; }
.price-table td[rowspan] { font-weight: 600; color: var(--dark); border-right: 1px solid var(--hairline); }
.price-table td:last-child, .location-content td:last-child { text-align: right; white-space: nowrap; }
.price-table td:last-child strong { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.price-table small { color: var(--text-muted); }
.lic-table td:last-child { text-align: left; white-space: normal; }
.lic-table th[scope="row"] { white-space: nowrap; }
@media (max-width: 480px) {
  /* rowspan tables wrap badly on a phone: each group becomes a heading row and stacked rows */
  .price-table, .price-table tbody, .price-table tr { display: block; }
  .price-table thead { display: none; }
  .price-table tr { display: flex; flex-wrap: wrap; }
  .price-table td, .price-table th { flex: 1 1 auto; border-bottom: 1px solid var(--hairline); }
  .price-table td[rowspan], .lic-table th[scope="row"] { flex: 0 0 100%; border-right: 0; border-bottom: 0; padding: 18px 10px 4px; font-family: var(--display); font-size: 1.15rem; }
  .price-table td:first-child:not([rowspan]) { flex: 1 1 55%; }
  .price-table td:last-child { flex: 0 0 auto; text-align: right; }
  .lic-table td:last-child { flex: 0 0 100%; padding-top: 4px; text-align: left; }
}

/* FAQ */
.faq-list { margin: 8px 0 24px; border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary { position: relative; list-style: none; cursor: pointer; padding: 16px 44px 16px 0; font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; color: var(--dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ''; position: absolute; right: 12px; top: 50%; width: 14px; height: 2px; background: var(--dark); transform: translateY(-50%); transition: transform var(--transition); }
.faq-item summary::after { transform: translateY(-50%) rotate(90deg); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(0); }
.faq-item p { padding: 0 0 18px; color: var(--text-light); }

/* locations */
.locations-state-list, .loc-city-list, .loc-nearby { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 20px; margin: 8px 0 24px; }
.locations-state-list li, .loc-city-list li, .loc-nearby li { margin: 0; border-bottom: 1px solid var(--hairline); }
.locations-state-list a, .loc-city-list a, .loc-nearby a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 0; text-decoration: none; font-weight: 500; }
.locations-state-list a:hover, .loc-city-list a:hover, .loc-nearby a:hover { color: var(--accent-text); }
.locations-count { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.loc-unlinked { display: block; padding: 10px 0; color: var(--text-muted); }

/* ---- forms and the quote card ---- */
.qe-card { background: var(--white); border: 1.5px solid var(--hairline); border-radius: var(--radius-lg); padding: 28px 22px 26px; box-shadow: var(--shadow-sm); }
@media (min-width: 600px) { .qe-card { padding: 36px 36px 32px; } }
.qe-h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.3rem); outline: none; }
.qe-h2 + .qe-lead { margin-top: 4px; }
.qe-label { display: block; margin: 18px 0 6px; font-weight: 600; font-size: 1rem; color: var(--dark); }
.qe-optional { font-weight: 400; color: var(--text-muted); }
.qe-input { display: block; width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--gray-dark); border-radius: var(--radius); background: var(--white); color: var(--dark); font-size: 1.1rem; transition: border-color var(--transition); }
.qe-input:hover { border-color: var(--text-muted); }
.qe-input:focus { border-color: var(--dark); outline: 3px solid var(--dark); outline-offset: 2px; }
.qe-input::placeholder { color: var(--text-muted); }
.qe-input--xl { min-height: 60px; font-size: 1.3rem; }
textarea.qe-input { min-height: 88px; resize: vertical; line-height: 1.45; }
input[type="file"] { display: block; width: 100%; max-width: 100%; margin: 4px 0 10px; font-size: 0.95rem; }
input[type="file"]::file-selector-button { font-family: var(--display); font-weight: 700; font-size: 1.05rem; min-height: 44px; padding: 8px 12px; margin: 0 10px 6px 0; border: 2px solid var(--dark); border-radius: var(--radius); background: var(--white); color: var(--dark); cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--dark); color: var(--white); }
.qe-card .btn-full { margin-top: 26px; }
.qe-disclaimer { margin-top: 14px; font-size: 0.92rem; color: var(--text-muted); }
.qe-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: -8px 0 6px -4px; font-size: 0.98rem; font-weight: 500; color: var(--text-light); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: var(--gray-dark); }
.qe-back:hover { color: var(--dark); text-decoration-color: var(--accent); }
.fq-skip { margin-top: 10px; text-align: center; }
.fq-skip .qe-back { margin: 0; }
.fq-error { margin: 18px 0 0; padding: 12px 14px; border: 1.5px solid var(--red); border-radius: var(--radius); background: #fdf2f1; color: var(--red); font-weight: 500; }
.fq-check { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0 4px; min-height: 44px; padding: 8px 0; font-size: 1.02rem; cursor: pointer; }
.fq-check input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--accent); }
.fr-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--hairline); cursor: pointer; }
.fr-item input { flex: none; width: 22px; height: 22px; accent-color: var(--accent); }
.fr-item span { flex: 1; }
.fr-item strong { font-family: var(--display); font-size: 1.2rem; white-space: nowrap; }
.fr-items { margin: 20px 0 6px; border-top: 1px solid var(--hairline); }
.fr-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.fr-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); border: 1.5px solid var(--hairline); }
.qe-confirm { border-color: var(--dark); border-width: 2px; }
.qe-confirm .qe-h2 + .qe-h2, .qe-confirm h3.qe-h2 { font-size: 1.5rem; margin-top: 28px; }

/* progress: stakes planted along the line */
.qe-progress { margin-bottom: 22px; }
.qe-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.qe-progress-step { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--dark); }
.qe-progress-count { font-size: 0.95rem; color: var(--text-muted); }
.qe-progress-track { height: 4px; background: var(--gray); border-radius: 2px; overflow: hidden; }
.qe-progress-fill { height: 100%; background: var(--accent); }
.qe-progress-labels { display: none; list-style: none; grid-template-columns: repeat(6, 1fr); margin-top: 8px; }
@media (min-width: 600px) { .qe-progress-labels { display: grid; } }
.qe-progress-labels li { position: relative; padding: 16px 4px 0; font-size: 0.88rem; color: var(--text-muted); text-align: left; }
.qe-progress-labels li::before { content: ''; position: absolute; left: 3px; top: 0; width: 1.5px; height: 12px; background: var(--gray-dark); }
.qe-progress-labels li::after { content: ''; position: absolute; left: 4px; top: 0; width: 10px; height: 7px; background: var(--gray-dark); clip-path: polygon(0 0, 100% 0, 80% 50%, 100% 100%, 0 100%); opacity: 0; }
.qe-progress-labels li.is-done::before, .qe-progress-labels li.is-active::before { background: var(--dark); }
.qe-progress-labels li.is-done::after { opacity: 1; background: var(--accent); }
.qe-progress-labels li.is-active::after { opacity: 1; background: var(--dark); }
.qe-progress-labels li.is-active { color: var(--dark); font-weight: 600; }
.qe-progress-labels li.is-done { color: var(--text-light); }
.qe-progress-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font-size: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: var(--gray-dark); }
.qe-progress-link:hover { color: var(--dark); text-decoration-color: var(--accent); }

/* the map and its tools */
.fq-map { width: 100%; height: min(60vh, 480px); margin: 12px 0; border: 2px solid var(--dark); border-radius: var(--radius); background: var(--dark-light); }
.fq-map-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.fq-feet { margin-left: auto; font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--dark); }

/* material cards: white flags, the chosen one inverts solid */
.fq-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 6px; }
@media (min-width: 600px) { .fq-cards { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.fq-card { display: flex; flex-direction: column; gap: 4px; min-height: 96px; padding: 14px 14px 12px; text-align: left; background: var(--white); border: 1.5px solid var(--gray-dark); border-radius: var(--radius); transition: border-color var(--transition), background-color var(--transition), color var(--transition); }
.fq-card:hover { border-color: var(--dark); }
.fq-card.is-selected { background: var(--dark); border-color: var(--dark); color: var(--white); }
.fq-card-title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.05; }
.fq-card-sub { font-size: 0.85rem; color: var(--text-muted); line-height: 1.25; }
.fq-card.is-selected .fq-card-sub { color: var(--mint); }
.fq-card-price { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 1rem; }
.fq-card-price--na { font-weight: 400; color: var(--text-muted); font-style: italic; }
.fq-card.is-selected .fq-card-price--na { color: var(--mint); }
.fq-heights { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.fq-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px; background: var(--white); border: 1.5px solid var(--gray-dark); border-radius: 999px; font-weight: 600; font-size: 1.02rem; color: var(--dark); transition: border-color var(--transition), background-color var(--transition), color var(--transition); }
.fq-chip small { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); }
.fq-chip:hover { border-color: var(--dark); }
.fq-chip.is-selected { background: var(--dark); border-color: var(--dark); color: var(--white); }
.fq-chip.is-selected small { color: var(--mint); }
.fq-counter { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); font-weight: 500; }
.fq-counter > div { display: flex; align-items: center; }
.fq-counter button { width: 46px; height: 46px; font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--dark); background: var(--white); border: 1.5px solid var(--dark); border-radius: var(--radius); transition: background-color var(--transition), color var(--transition); }
.fq-counter button:hover { background: var(--dark); color: var(--white); }
.fq-counter output { display: inline-block; min-width: 48px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.fq-range { margin: 6px 0 8px; font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 2rem + 2.5vw, 3.6rem); line-height: 1; color: var(--dark); letter-spacing: -0.01em; }
.fq-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.fq-actions .btn-full { margin-top: 0; }

/* ---- reviews (real ones only; nothing renders without them) ---- */
.reviews-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .reviews-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.review-quote { padding: 22px 22px 20px; background: var(--white); border: 1.5px solid var(--hairline); border-radius: var(--radius-lg); }
.review-quote p { font-size: 1.05rem; margin-bottom: 12px; }
.review-quote footer { font-weight: 600; color: var(--text-light); }

/* ---- footer ---- */
.footer { background: var(--turf); color: var(--mint); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-bottom: 44px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; } }
.footer-col:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-col:first-child { grid-column: auto; } }
.footer-logo .logo { color: var(--white); }
.footer-logo .logo svg .mark-stake { stroke: var(--white); }
.footer-tagline { margin-top: 12px; max-width: 34ch; }
.footer-deposit { margin-top: 10px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--white); }
.footer-heading { display: block; margin-bottom: 12px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--white); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; font-size: 0.98rem; }
.footer-col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 0.18em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 20px 0 24px; border-top: 1px solid rgba(255,255,255,0.18); font-size: 0.92rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--white); text-decoration: underline; }
.footer-entity { width: 100%; font-size: 0.85rem; color: var(--mint); }

/* ---- sticky mobile bar (the quote tool has its own buttons, so not there) ---- */
.mobile-call-bar { display: none; }
@media (max-width: 768px) {
  .mobile-call-bar { position: fixed; z-index: var(--z-mobile-bar); left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--hairline); box-shadow: 0 -6px 20px rgba(18,38,26,0.10); }
  .mobile-call-bar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; border-radius: var(--radius); font-family: var(--display); font-weight: 700; font-size: 1.25rem; }
  .mobile-call-bar__quote { background: var(--accent); color: var(--dark); }
  .mobile-call-bar__call { background: var(--white); color: var(--dark); border: 2px solid var(--dark); }
  body { padding-bottom: 72px; }
  body:has(#fqApp) .mobile-call-bar { display: none; }
  body:has(#fqApp) { padding-bottom: 0; }
}

/* ---- toast ---- */
.toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: min(92vw, 440px); padding: 12px 18px; background: var(--dark); color: var(--white); border-radius: var(--radius); font-weight: 500; opacity: 0; pointer-events: none; transition: opacity var(--transition), transform var(--transition); }
.toast--show { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: var(--red); }
@media (max-width: 768px) { .toast { bottom: 84px; } }

/* ---- reveal (armed by app.js only when motion is allowed) ---- */
.js-reveal [data-reveal], .js-reveal [data-reveal-stagger] > * { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.js-reveal .is-revealed[data-reveal], .js-reveal .is-revealed[data-reveal-stagger] > * { opacity: 1; transform: none; }
.js-reveal .is-revealed[data-reveal-stagger] > :nth-child(2) { transition-delay: 0.08s; }
.js-reveal .is-revealed[data-reveal-stagger] > :nth-child(3) { transition-delay: 0.16s; }
.js-reveal .is-revealed[data-reveal-stagger] > :nth-child(4) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
