/* ============================================================================
   aucti marketing site — shared chrome and design tokens.
   Values are taken from the design handoff ("Design tokens"); the marketing
   palette is the product token subset plus the marketing-only forest surface.
   Radius is 0 for essentially everything: cards, buttons, inputs, badges.
   ============================================================================ */

:root {
  --forest:        #043F2E;   /* hero, footer, dark bands, pricing output */
  --brand:         #0B5D3B;   /* buttons, active states, links, eyebrows */
  --brand-hover:   #094B30;
  --emerald:       #10B981;   /* CTA fill, large accent text */
  --emerald-hover: #34D399;
  --emerald-dark:  #6EE7B7;   /* small emerald text on forest */
  --mint:          #ECF5F0;
  --ink:           #1A2B22;
  --muted:         #5A6B62;   /* the single secondary token — 5.37:1 on white */
  --surface:       #F1F5F2;
  --band-template: #EEF4F1;
  --slash:         #B4C0B8;
  --border:        rgba(11,93,59,.16);
  --border-strong: rgba(11,93,59,.24);
  --hairline:      rgba(11,93,59,.12);
  --terminal:      #0B1A14;
  --warn-ink:      #8A2E1C;
  --warn-surface:  #FBF3F1;
  --on-dark:       rgba(245,241,230,.82);
  --on-dark-soft:  rgba(245,241,230,.78);
  --on-dark-faint: rgba(245,241,230,.72);

  --sans:    'Montserrat', system-ui, -apple-system, sans-serif;
  --display: 'Playfair Display', Georgia, serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --max:      1200px;
  --max-narrow: 1080px;
  --header-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #FFFFFF; font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
input, textarea, select, button { font-family: var(--sans); }
input::placeholder, textarea::placeholder { color: var(--muted); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(16,185,129,.45);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #FFFFFF; color: var(--brand); font-size: 14px; font-weight: 700;
  padding: 12px 18px; border: 1px solid var(--brand);
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---- Type -------------------------------------------------------------- */

h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; }
h1 { font-size: 48px; line-height: 1.05; letter-spacing: -.014em; }
h2 { font-size: 40px; line-height: 1.10; letter-spacing: -.012em; }
h3 { font-size: 19px; line-height: 1.20; letter-spacing: -.010em; }
p  { margin: 0; }
em, .accent-italic { font-style: italic; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin: 0;
}
.eyebrow--dark { color: var(--emerald-dark); }
.lead { font-size: 17px; font-weight: 500; line-height: 1.60; color: var(--muted); }
.body { font-size: 15px; line-height: 1.62; color: var(--muted); }
.meta { font-size: 13px; color: var(--muted); }
.mono { font-family: var(--mono); }
.figure { font-family: var(--mono); font-weight: 700; letter-spacing: -.02em; line-height: 1; }

/* ---- Layout ------------------------------------------------------------ */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.wrap--narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 32px; }
.section { padding: 84px 0; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--forest); color: #FFFFFF; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #FFFFFF; }
.page-header { background: var(--surface); padding: 72px 0 64px; }
.page-header--dark { background: var(--forest); color: #FFFFFF; }
.page-header h1 { margin-top: 14px; }
.page-header p { margin-top: 18px; max-width: 62ch; }
.rule-top { border-top: 2px solid rgba(11,93,59,.22); padding-top: 22px; }

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-block; border: none; cursor: pointer; border-radius: 0;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  padding: 16px 26px; text-align: center;
}
.btn--primary { background: var(--emerald); color: #06140E; box-shadow: 0 12px 30px rgba(16,185,129,.24); }
.btn--primary:hover { background: var(--emerald-hover); color: #06140E; }
.btn--brand { background: var(--brand); color: #FFFFFF; }
.btn--brand:hover { background: var(--brand-hover); color: #FFFFFF; }
.btn--ghost { background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,.34); }
.btn--ghost:hover { color: #FFFFFF; border-color: rgba(255,255,255,.6); }
.btn--outline { background: transparent; color: var(--brand); border: 1px solid var(--border-strong); }
.btn--sm { font-size: 13px; padding: 11px 20px; }

.card { background: #FFFFFF; border: 1px solid var(--border); padding: 28px; }

/* ---- Header ------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px; min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-header__logo { display: flex; align-items: center; gap: 10px; }
.site-header__logo img { height: 24px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: center; }
.site-nav a {
  position: relative; padding: 9px 13px; font-size: 13.5px; font-weight: 600;
  color: var(--ink); white-space: nowrap;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; background: var(--brand);
}
.site-header__actions { display: flex; align-items: center; gap: 16px; }
.site-header__signin { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.site-header__cta { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.site-header__note { font-size: 11px; font-weight: 500; color: var(--muted); text-align: center; white-space: nowrap; }


.site-header__burger {
  display: none; align-items: center; gap: 9px; cursor: pointer;
  background: none; border: 1px solid var(--border-strong); color: var(--ink);
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  padding: 9px 13px; border-radius: 0;
}
.site-header__burger-bars,
.site-header__burger-bars::before,
.site-header__burger-bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; content: "";
}
.site-header__burger-bars { position: relative; }
.site-header__burger-bars::before { position: absolute; top: -5px; }
.site-header__burger-bars::after  { position: absolute; top: 5px; }
.site-nav__signin { display: none; }

/* ---- Footer ------------------------------------------------------------ */

.site-footer { background: var(--forest); color: var(--on-dark-soft); }
.site-footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 56px 32px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.site-footer img { height: 22px; width: auto; display: block; }
.site-footer h2 {
  font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em;
  text-transform: uppercase; color: var(--emerald-dark); margin: 0 0 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--on-dark-soft); font-size: 13.5px; }
.site-footer a:hover { color: #FFFFFF; }
.site-footer__blurb { font-size: 13.5px; line-height: 1.6; color: var(--on-dark-faint); margin-top: 16px; max-width: 34ch; }
.site-footer__bottom {
  max-width: var(--max); margin: 0 auto; padding: 20px 32px 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--on-dark-faint);
}

/* ---- Mockups (schematic device illustrations) -------------------------- */

.mock { background: #FFFFFF; border: 1px solid rgba(11,93,59,.2); }
.mock--dash { box-shadow: 0 40px 80px rgba(0,0,0,.38); }
.mock--phone { border-radius: 26px; box-shadow: 0 34px 70px rgba(0,0,0,.42); }
.mock--phone-light { border-radius: 26px; box-shadow: 0 26px 60px rgba(11,93,59,.16); }
.mock__bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
}
.mock__dot { width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; }
.mock__label { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); }

/* ---- Responsive --------------------------------------------------------
   The handoff is desktop-first and ships no mobile design; this is the
   mobile pass. Three sizes: >1100 desktop as designed, 1100-901 a narrowed
   desktop, <=900 tablet/phone (single column, scrolling nav), <=560 phone
   type scale. Page layouts are inline styles, so the grid overrides here
   need !important to land. */

@media (max-width: 1180px) {
  [data-narrow-hide] { display: none !important; }
}

/* ---- Tablet and phone -------------------------------------------------- */

@media (max-width: 900px) {
  :root { --header-h: 62px; }

  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .lead { font-size: 16px; }
  .wrap, .wrap--narrow { padding: 0 20px; }
  .section { padding: 56px 0; }
  .page-header { padding: 44px 0 40px; }

  /* Header: logo, burger, and CTA on one row; the nav drops as a panel. */
  /* Wrap stays on so the open nav can drop to its own row; the three items
     on row one are all flex:none so they never wrap on their own. */
  .site-header__inner { padding: 10px 20px; flex-wrap: wrap; gap: 10px; }
  .site-header__logo, .site-header__burger, .site-header__actions { flex: 0 0 auto; }
  .site-header__logo { order: 1; margin-right: auto; }
  .site-header[data-nav-js] .site-header__burger { display: inline-flex; order: 2; }
  .site-header__actions { order: 3; gap: 12px; }
  .site-header__signin { display: none; }
  .site-nav {
    display: flex; order: 4; width: 100%; flex-direction: column; align-items: stretch;
    gap: 0; margin: 0 -20px; padding: 6px 20px 14px;
    border-top: 1px solid var(--hairline);
  }
  /* Without JS the nav stays visible and stacked; the burger only appears
     once nav.js marks the header, so the menu can never be unopenable. */
  .site-header[data-nav-js]:not([data-nav-open]) .site-nav { display: none; }
  .site-nav a { padding: 14px 4px; font-size: 15px; border-bottom: 1px solid var(--hairline); }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a[aria-current="page"] { color: var(--brand); }
  .site-nav a[aria-current="page"]::after { left: 4px; right: auto; width: 22px; bottom: 6px; }
  .site-nav__signin { display: block; }

  /* Every two/three/four-column grid collapses to one column. */
  .two-col, .three-col, .hero-grid, .acts-layout { grid-template-columns: minmax(0,1fr) !important; }
  .two-col, .three-col { gap: 28px !important; }
  .hero-grid { gap: 40px !important; padding-top: 56px !important; padding-bottom: 56px !important; }
  .grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }

  /* Hero: copy first, mockups beneath at a size that fits the column. */
  .hero-visual { justify-content: flex-start !important; gap: 20px !important; }
  .hero-visual .mock--phone { margin-bottom: 0 !important; }
  .hero-grid h1 { font-size: 40px !important; }
  .hero-grid p { max-width: none !important; }

  /* The act rail is a desktop affordance; the acts stack and stay in order. */
  .acts-layout > aside { display: none; }
  .acts-layout { gap: 0 !important; }
  .act-shell { padding: 40px 0 !important; }
  .act-shell--fill { padding: 28px !important; }

  /* Feature cards and lead magnets lose their generous padding. */
  .card { padding: 22px; }
  .card--feature { padding: 26px !important; }

  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 44px 20px 32px; }
  .site-footer__bottom { padding: 18px 20px 28px; }
}

@media (max-width: 560px) {
  h1, .hero-grid h1 { font-size: 32px !important; }
  h2 { font-size: 26px; }
  .section { padding: 44px 0; }
  .btn { display: block; width: 100%; }
  .btn--sm { display: inline-block; width: auto; }
  .grid-2 { grid-template-columns: minmax(0,1fr) !important; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .figure--xl { font-size: 34px !important; }
  /* Mockups are illustrations: let them shrink rather than force a scrollbar. */
  .hero-visual { flex-direction: column; align-items: stretch; }
  .hero-visual .mock--phone { align-self: center; }
}

/* 400% zoom: three stacked stickies would eat the viewport. */
@media (max-height: 620px) {
  [data-unstick] { position: static !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Range inputs (pricing calculator, receipt cliff) ------------------ */

input[type=range] {
  -webkit-appearance: none; appearance: none;
  height: 4px; background: rgba(11,93,59,.18); outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); border: 4px solid #FFFFFF;
  box-shadow: 0 2px 10px rgba(11,93,59,.35); cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); border: 4px solid #FFFFFF; cursor: pointer;
}
input[type=range].on-dark::-webkit-slider-thumb { border-color: var(--surface); }

/* Chrome links stay unstyled even on pages that underline body links. */
.site-header a, .site-footer a, .skip-link { text-decoration: none; }
