/* RestoreBid.com marketing site.
   Every color, font and radius comes from the brand tokens in ../tokens.css (docs/brand/).
   Warm light page, white cards with 1.5px warm borders, slate only for the hero and footer,
   Bid Gold with Obsidian text for primary actions, Roofline Sage for secondary ones. */

:root {
  --wrap: 1120px;
  --border: 1.5px solid var(--color-warm-border);
  --shadow-card: 0 1px 2px rgba(28, 30, 32, 0.06);
  --shadow-lift: 0 18px 44px rgba(28, 30, 32, 0.16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--color-warm-canvas); color: var(--color-graphite); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-sage-deep); }
a:hover { color: var(--color-obsidian); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--color-obsidian); text-wrap: balance; }
h1 { font-size: 44px; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 700; color: var(--color-obsidian); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--color-obsidian); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.soft { background: var(--color-sage-tint); border-top: var(--border); border-bottom: var(--border); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-bid-gold-text); margin-bottom: 12px; }
.lede { font-size: 19px; color: var(--color-graphite); max-width: 62ch; margin-top: 16px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.small { font-size: 15px; color: var(--color-stone-muted); }
.section h2.center { margin-bottom: 36px; }

/* Header: white bar, light logo */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--color-white); border-bottom: var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: auto; height: 40px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .nav button.linkish { display: inline-flex; align-items: center; min-height: var(--touch-target-min); color: var(--color-obsidian); text-decoration: none; font-size: 16px; font-weight: 600; padding: 0 12px; border-radius: var(--radius-md); }
.nav a:hover, .nav button.linkish:hover { background: var(--color-warm-canvas); color: var(--color-obsidian); }
button.linkish { font: inherit; background: none; border: 0; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; border-radius: var(--radius-md); padding: 12px 24px; min-height: var(--touch-target-min); border: 1.5px solid transparent; cursor: pointer; }
.btn.primary, .btn.close { background: var(--color-bid-gold); border-color: var(--color-bid-gold); color: var(--color-obsidian); }
.btn.primary:hover, .btn.close:hover { background: var(--color-bid-gold-hover); border-color: var(--color-bid-gold-hover); color: var(--color-obsidian); }
.btn.secondary { background: var(--color-roofline-sage); border-color: var(--color-roofline-sage); color: var(--color-white); }
.btn.secondary:hover { background: var(--color-sage-deep); border-color: var(--color-sage-deep); color: var(--color-white); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.center-actions { justify-content: center; }

/* The "coming soon" notice that stands in for the free-trial button */
button.soon { font: inherit; text-align: left; cursor: pointer; }
.soon { display: inline-flex; flex-direction: column; gap: 4px; min-height: var(--touch-target-min); background: var(--color-bid-gold-tint); border: 2px dashed var(--color-bid-gold); border-radius: var(--radius-lg); padding: 16px 22px; max-width: 460px; }
.soon:hover { border-style: solid; }
.soon .tag, .soon-dialog .tag { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-obsidian); background: var(--color-bid-gold); border-radius: var(--radius-sm); padding: 3px 8px; margin-bottom: 4px; }
.soon .what { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--color-obsidian); }
.soon .terms { font-size: 15px; color: var(--color-graphite); }

/* Hero: the one dark section at the top of the home page */
.hero { background: var(--color-favicon-slate); color: var(--color-warm-border); padding: 64px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--color-warm-canvas); }
.hero .eyebrow { color: var(--color-bid-gold-bright); }
.hero .lede { color: var(--color-warm-border); }
.hero .actions .btn { width: auto; align-self: flex-start; }

/* Hero report screenshot in a simple window frame */
.shot { margin: 0; max-width: 440px; justify-self: end; width: 100%; }
.shot > a { display: block; text-decoration: none; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-white); box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5); transition: transform 0.2s ease; }
.shot > a:hover { transform: translateY(-3px); }
.shot img { width: 100%; }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--color-warm-canvas); border-bottom: var(--border); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--color-warm-border); }
.shot-bar em { font-style: normal; font-size: 13px; color: var(--color-stone-muted); margin-left: 8px; }
.shot figcaption { margin-top: 14px; font-size: 15px; color: var(--color-warm-border); }
.shot figcaption a { color: var(--color-bid-gold-bright); }
.shot figcaption a:hover { color: var(--color-warm-canvas); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--color-white); border: var(--border); border-radius: var(--radius-lg); padding: 26px; text-align: center; box-shadow: var(--shadow-card); }
.step .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-roofline-sage); color: var(--color-white); font-family: var(--font-mono); font-weight: 600; margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 17px; }

/* Pricing */
#pricing h2.center { margin-bottom: 8px; }
#pricing .lede.center { margin-bottom: 32px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 760px; margin: 0 auto; }
.plan { background: var(--color-white); border: var(--border); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-card); }
.plan h3 { font-size: 24px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.plan .price .amt { font-size: 44px; font-weight: 600; letter-spacing: -0.06em; line-height: 1.05; color: var(--color-obsidian); }
.plan .price .per { color: var(--color-stone-muted); }
.plan .alt { font-size: 15px; color: var(--color-stone-muted); margin-bottom: 12px; }
.plan .alt .num { font-size: 14px; }
.plan ul { margin-top: 10px; }
.checks li { position: relative; padding-left: 32px; margin: 0 0 12px; font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background-color: var(--color-roofline-sage); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: center; background-size: 20px; background-repeat: no-repeat; }

/* Sample report gallery */
.report-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.report-pages figure { margin: 0; }
.report-pages a { display: block; text-decoration: none; }
.paper { display: block; background: var(--color-white); border: var(--border); border-radius: var(--radius-md); overflow: hidden; }
.report-pages .paper { box-shadow: var(--shadow-card); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.report-pages a:hover .paper { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.report-pages figcaption { font-size: 15px; color: var(--color-graphite); margin-top: 12px; }
.report-pages figcaption b { display: block; }

/* Footer: dark slate with the dark-background logo */
.site-footer { background: var(--color-favicon-slate); padding: 36px 0 44px; font-size: 15px; color: var(--color-warm-border); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer a { display: inline-flex; align-items: center; min-height: var(--touch-target-min); color: var(--color-warm-canvas); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--color-bid-gold-bright); text-decoration: underline; }
.foot-brand { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-brand img { height: 28px; width: auto; }

/* Coming-soon dialog */
dialog.soon-dialog { border: var(--border); border-radius: var(--radius-lg); padding: 0; max-width: 440px; width: calc(100% - 32px); background: var(--color-white); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); color: var(--color-graphite); }
dialog.soon-dialog::backdrop { background: rgba(28, 30, 32, 0.6); }
.soon-dialog .body { padding: 28px 28px 24px; }
.soon-dialog .tag { margin-bottom: 12px; }
.soon-dialog h2 { font-size: 26px; margin-bottom: 10px; }
.soon-dialog p { margin-bottom: 10px; }
.soon-dialog .close { margin-top: 10px; width: 100%; }

/* Tablet: keep steps (3) and plans (2) side by side, hero text beside a smaller screenshot */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1.3fr 0.7fr; gap: 28px; }
  .hero h1 { font-size: clamp(32px, 4.6vw, 40px); }
  .hero .lede { font-size: 17px; }
  .shot { max-width: none; }
  .shot-bar em { display: none; }
  .steps { gap: 14px; }
  .step { padding: 18px 14px; }
  .plans { gap: 16px; }
  .plan { padding: 22px 18px; }
  .plan .price .amt { font-size: 36px; }
  .report-pages { grid-template-columns: 1fr; max-width: 460px; }
}

/* Phone */
@media (max-width: 760px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 56px; }
  .lede { font-size: 17px; }
  .site-header .wrap { gap: 12px; }
  .nav .hide-sm { display: none; }
  .soon { display: flex; max-width: none; }
}
@media (max-width: 600px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .shot { max-width: 420px; justify-self: start; }
}
@media (max-width: 560px) {
  .steps, .plans { grid-template-columns: 1fr; }
}

/* Keep in-page links (How it works, Pricing) clear of the sticky header */
#how, #pricing { scroll-margin-top: 72px; }

/* Yearly / monthly switch above the plans (from the brand kit's pricing pattern) */
.billing-row { display: flex; justify-content: center; margin: 0 0 28px; }
.billing-row[hidden] { display: none; }
.billing-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: var(--touch-target-min); padding: 6px 16px; background: var(--color-white); border: var(--border); border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; color: var(--color-stone-muted); cursor: pointer; }
.billing-toggle:hover { border-color: var(--color-roofline-sage); }
.billing-toggle .track { position: relative; flex: none; width: 44px; height: 24px; border-radius: 999px; background: var(--color-stone-muted); transition: background 0.2s; }
.billing-toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--color-white); transition: left 0.2s; }
.billing-toggle[aria-checked="true"] .track { background: var(--color-roofline-sage); }
.billing-toggle[aria-checked="true"] .track::after { left: 23px; }
.billing-toggle[aria-checked="true"] [data-opt="yearly"], .billing-toggle[aria-checked="false"] [data-opt="monthly"] { color: var(--color-obsidian); }
.billing-toggle .save { font-size: 12px; font-weight: 700; color: var(--color-sage-deep); background: var(--color-sage-tint); border: 1px solid var(--color-roofline-sage); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
@media (max-width: 340px) { .billing-toggle { gap: 8px; padding: 6px 12px; font-size: 14px; } .billing-toggle .save { display: none; } }

/* Savings callouts: a gold badge on each card while Yearly is on, and a gold note in both views */
.plan { position: relative; }
.save-badge { position: absolute; top: -16px; right: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px 7px 12px; background: var(--color-bid-gold); color: var(--color-obsidian); border-radius: 999px; font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: 0.01em; box-shadow: 0 6px 16px rgba(28, 30, 32, 0.18); transform: rotate(-2deg); }
.save-badge::before { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 11l4-4 3 3 5-6M10 4h4v4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.save-badge:empty { display: none; }
.save-note { display: block; margin: 2px 0 8px; padding: 10px 14px; background: var(--color-bid-gold-tint); border: 1.5px solid var(--color-bid-gold); border-radius: var(--radius-md); font-size: 16px; font-weight: 600; color: var(--color-obsidian); }
.save-note b { font-size: 18px; }

/* Info "i" next to the neighborhood scan lines: hover, keyboard focus or tap shows the note */
.tip { position: relative; display: inline-block; vertical-align: middle; }
.tip-btn { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 2px; padding: 0; border: 1.5px solid var(--color-stone-muted); border-radius: 50%; background: var(--color-white); color: var(--color-stone-muted); font: 700 13px/1 var(--font-sans); cursor: pointer; }
.tip-btn::before { content: "i"; }
.tip-btn::after { content: ""; position: absolute; inset: -13px; } /* 48px tap area */
.tip-btn:hover, .tip-btn[aria-expanded="true"] { border-color: var(--color-roofline-sage); color: var(--color-sage-deep); }
.tip-text { position: absolute; z-index: 5; right: -12px; bottom: calc(100% + 10px); width: 260px; max-width: 78vw; padding: 12px 14px; background: var(--color-favicon-slate); color: var(--color-warm-canvas); border-radius: var(--radius-md); font-size: 14px; font-weight: 400; line-height: 1.45; text-align: left; box-shadow: var(--shadow-lift); visibility: hidden; opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.tip:hover .tip-btn:not([data-dismissed]) + .tip-text, .tip-btn:focus-visible:not([data-dismissed]) + .tip-text, .tip-btn[aria-expanded="true"] + .tip-text { visibility: visible; opacity: 1; }
.save-switch { display: inline-flex; align-items: center; min-height: 32px; margin: 0; padding: 0; background: none; border: 0; font: inherit; font-weight: 700; color: var(--color-sage-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.save-switch:hover { color: var(--color-obsidian); }
