/* neogarage.in — Direction D4 "Teal & Ochre"
   Fonts: Anton (display) + Archivo (body), self-hosted Latin subsets (SIL OFL, see assets/fonts/) */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/anton-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../assets/fonts/archivo-latin-var.woff2') format('woff2-variations'), url('../assets/fonts/archivo-latin-var.woff2') format('woff2');
}

:root {
  --ink: #14201F;
  --teal: #1B4F57;
  --teal-deep: #0E2C31;
  --ochre: #C8961E;
  --ochre-light: #E3B74A;
  --ochre-text: #7A5A0E;
  --plate: #E6C765;
  --brick: #B5402E;
  --sand: #F6F3EC;
  --paper: #FFFFFF;
  --muted: #4A5553;
  --muted-on-teal: #D5E0DF;
  --footer-muted: #AEB8B6;
  --line: #E4DFD3;

  --display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1240px;
  --gutter: 32px;
  --radius: 8px;
  --border: 3px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: inline-block; vertical-align: middle; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
section { scroll-margin-top: 84px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ochre); color: var(--ink); font-weight: 900; border: var(--border) solid var(--ink); border-radius: 4px; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--ochre-light); outline-offset: 3px; }

/* ---------- Type ---------- */
.display, .display-md, .display-sm, .num, .plate, .brand-chip, .brand-word, .footer-word, .how-card h3, .sticker h3, .tag, .phone-btn, .total-amt {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
}
.display { font-size: clamp(56px, 6.7vw, 96px); line-height: 0.9; letter-spacing: 0.005em; }
.display > span { display: block; }
.display .hl { color: var(--ochre-light); }
.display-md { font-size: clamp(44px, 6vw, 92px); line-height: 0.92; text-wrap: balance; }
.display-sm { font-size: clamp(32px, 4.6vw, 68px); line-height: 0.98; max-width: 1000px; text-wrap: balance; }

.lead { font-size: 19px; line-height: 1.5; font-weight: 500; max-width: 520px; }
.lead-muted { font-size: 19px; line-height: 1.5; color: var(--muted); }
.kicker { display: block; font-size: 13px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.kicker-teal { color: var(--teal); }
.kicker-ochre { color: var(--ochre-light); }
.eyebrow {
  display: inline-flex; align-self: flex-start; align-items: center; min-height: 34px; padding: 6px 14px; line-height: 1.3;
  background: var(--ochre); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border: 2px solid var(--ink); border-radius: 4px; cursor: pointer;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.08em;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
.btn-accent { background: var(--ochre); color: var(--ink); }
.btn-sand { background: var(--sand); color: var(--ink); }
.btn-teal { background: var(--teal); color: var(--sand); border-color: var(--ink); }
.btn-small { height: 44px; padding: 0 20px; font-family: var(--body); font-weight: 900; font-size: 14px; }
.btn-big { height: 58px; padding: 0 28px; font-size: 22px; box-shadow: 4px 4px 0 var(--teal-deep); }
.btn-big:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--teal-deep); }
.btn-big:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--teal-deep); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--teal); color: var(--sand); border-bottom: 2px solid var(--teal-deep); }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--sand); }
.brand-chip { display: inline-flex; align-items: center; height: 34px; padding: 0 10px; background: var(--ochre); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px; font-size: 22px; letter-spacing: 0.06em; }
.brand-word { font-size: 26px; letter-spacing: 0.06em; }
.site-nav { display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.site-nav a { text-decoration: none; color: var(--sand); }
.site-nav a:not(.btn):hover { color: var(--ochre-light); }
.site-nav .btn { margin-left: 4px; }

.nav-toggle { display: none; width: 48px; height: 48px; padding: 0; background: transparent; border: 2px solid var(--sand); border-radius: 4px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle-bar { width: 22px; height: 3px; background: var(--sand); border-radius: 2px; transition: transform 160ms ease, opacity 160ms ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--teal); border-bottom: 4px solid var(--ink); padding: 8px 0 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px var(--gutter); font-size: 16px; }
  .site-nav .btn { margin: 8px var(--gutter) 0; }
}

/* ---------- Hero ---------- */
.hero { background: var(--teal); color: var(--sand); border-bottom: 6px solid var(--ink); overflow: hidden; }
.hero-grid {
  padding-top: 80px; padding-bottom: 72px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-copy .lead { color: var(--muted-on-teal); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-teal); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; width: 8px; height: 8px; background: var(--ochre-light); border-radius: 50%; }

/* Devices illustration */
.devices { position: relative; width: 100%; max-width: 600px; margin: 0 auto; padding-bottom: 90px; }
.desktop { margin-right: 130px; background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 10px; box-shadow: 8px 8px 0 var(--teal-deep); overflow: hidden; }
.desktop-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--ink); color: var(--muted-on-teal); }
.desktop-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.desktop-bar .url { margin-left: 8px; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 4px; background: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.desktop-tools { display: flex; align-items: center; gap: 10px; padding: 14px 70px 14px 14px; border-bottom: 3px solid var(--ink); flex-wrap: wrap; }
.search { flex: 1 1 180px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border: 3px solid var(--ink); border-radius: 6px; background: var(--plate); }
.search .plate { font-size: 20px; letter-spacing: 0.08em; }
.mini-btn { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; background: var(--ochre); border: 3px solid var(--ink); border-radius: 6px; font-weight: 900; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 70px 12px 14px; border-bottom: 2px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row.is-current { background: #FBF6EA; }
.row .plate { font-size: 17px; letter-spacing: 0.06em; white-space: nowrap; }
.who { font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 3px; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.chip-ochre { background: var(--ochre); color: var(--ink); }
.chip-teal { background: var(--teal); color: var(--sand); }
.chip-grey { background: var(--line); color: var(--ink); }

.phone {
  position: absolute; right: 0; bottom: 0; width: 200px;
  background: var(--paper); color: var(--ink); border: 4px solid var(--ink); border-radius: 26px; box-shadow: 8px 8px 0 var(--ochre);
  padding: 18px 14px 16px; display: flex; flex-direction: column; gap: 10px;
}
.phone-head { display: flex; justify-content: space-between; align-items: center; }
.phone .label, .total .label { font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.phone-head .chip { height: 22px; padding: 0 8px; font-size: 10px; }
.plate-lg { font-size: 24px; letter-spacing: 0.08em; line-height: 1; }
.phone .who { font-size: 12px; }
.lines { display: flex; flex-direction: column; font-size: 13px; font-weight: 500; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 2px solid var(--line); }
.line-name { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.line-name svg { color: var(--teal); }
.line .amt { font-weight: 900; color: var(--ink); }
.line.is-pending { color: var(--muted); }
.line.is-pending .line-name, .line.is-pending .amt { color: var(--muted); }
.ring { width: 14px; height: 14px; border: 2px solid var(--muted); border-radius: 50%; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 3px solid var(--ink); padding-top: 8px; }
.total-amt { font-size: 24px; }
.phone-btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; border: 3px solid var(--ink); border-radius: 6px; background: var(--teal); color: var(--sand); font-size: 16px; letter-spacing: 0.08em; }

@media (max-width: 520px) {
  .devices { padding-bottom: 70px; }
  .desktop { margin-right: 70px; }
  .mini-btn { display: none; }
  .desktop-tools { padding-right: 14px; }
  .search { height: 40px; }
  .search .plate { font-size: 16px; }
  .row { padding-right: 14px; grid-template-columns: auto auto; justify-content: space-between; }
  .row .who { display: none; }
  .phone { width: 180px; padding: 14px 12px 12px; }
  .phone-head .label { white-space: nowrap; }
  .phone-head .chip { font-size: 9px; padding: 0 6px; }
  .plate-lg { font-size: 20px; }
}

/* ---------- How it works ---------- */
.how { background: var(--sand); color: var(--ink); }
.stripes { height: 14px; background-image: repeating-linear-gradient(45deg, var(--ochre) 0 20px, var(--teal) 20px 40px); }
.how-inner { padding-top: 88px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-head.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px; align-items: end; }
.how .display-md { color: var(--teal); }
.how-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 24px; }
.how-card { display: flex; flex-direction: column; gap: 18px; padding: 36px; border: var(--border) solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.how-card .num { font-size: 64px; line-height: 0.9; color: var(--ochre-text); }
.how-card h3 { font-size: 40px; line-height: 1; }
.how-card p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.how-card-teal { background: var(--teal); color: var(--sand); border-color: var(--teal); }
.how-card-teal .num { color: var(--ochre-light); }
.how-card-teal p { color: var(--muted-on-teal); font-weight: 500; }
.paper-strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 24px 28px; border: var(--border) solid var(--ink); border-radius: var(--radius); background: var(--paper); }
.paper-strip p { flex: 1 1 360px; font-size: 17px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; font-size: 18px; letter-spacing: 0.08em; border-radius: 4px; }
.tag-brick { background: var(--brick); color: #FFFFFF; }

/* ---------- Features ---------- */
.features { background: var(--paper); }
.features .container { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.stickers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.sticker {
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  background: var(--paper); color: var(--ink);
  border: var(--border) solid var(--ink); border-radius: 10px; box-shadow: 6px 6px 0 var(--teal);
  transform: rotate(var(--rot, 0deg)); transition: transform 160ms ease;
}
.sticker:hover { transform: rotate(0deg) scale(1.02); }
.sticker h3 { font-size: 30px; line-height: 1; }
.sticker p { font-size: 16px; line-height: 1.5; font-weight: 500; }
.sticker-ochre { background: var(--ochre); }
.sticker-teal { background: var(--teal); color: var(--sand); box-shadow: 6px 6px 0 var(--ochre); }
.sticker-teal svg { color: var(--ochre-light); }
.sticker-teal p { color: var(--muted-on-teal); }
.sticker-brick { background: var(--brick); color: #FFFFFF; }

/* ---------- Statement ---------- */
.statement { background: var(--teal); color: var(--sand); border-top: 6px solid var(--ink); }
.statement .container { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* ---------- Demo / form ---------- */
.demo { background: var(--sand); }
.demo-grid { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px; align-items: center; }
.demo-copy { display: flex; flex-direction: column; gap: 22px; }
.demo-form { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--paper); border: 4px solid var(--ink); border-radius: 10px; box-shadow: 10px 10px 0 var(--teal); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.field input {
  height: 50px; padding: 0 16px; background: var(--paper); border: var(--border) solid var(--ink); border-radius: 6px;
  color: var(--ink); font-family: var(--body); font-size: 16px; font-weight: 500; width: 100%;
}
.field input::placeholder { color: #8A9290; }
.field input:focus { outline: 3px solid var(--ochre); outline-offset: 2px; }
.field.has-error input { border-color: var(--brick); }
.field .error { font-size: 13px; font-weight: 700; color: var(--brick); }
.demo-form .btn { margin-top: 8px; }
.demo-form .btn[disabled] { opacity: 0.7; cursor: progress; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 13px; color: var(--muted); }
.form-status { font-size: 15px; font-weight: 700; min-height: 1em; }
.form-status.is-ok { color: var(--teal); }
.form-status.is-err { color: var(--brick); }
.demo-form.is-sent .field, .demo-form.is-sent .btn, .demo-form.is-sent .form-note { display: none; }
.demo-form.is-sent .form-status { font-family: var(--display); font-size: 28px; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--sand); border-top: 6px solid var(--ink); }
.footer-grid { padding-top: 56px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-word { font-size: 30px; letter-spacing: 0.06em; color: var(--ochre-light); }
.footer-brand p { font-size: 15px; line-height: 1.6; color: var(--footer-muted); max-width: 320px; }
.footer-brand a { font-size: 14px; color: var(--footer-muted); text-decoration: none; }
.footer-brand a strong { color: var(--sand); }
.footer-brand a:hover strong { color: var(--ochre-light); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; color: var(--footer-muted); }
.footer-label { font-size: 12px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre-light); }
address { font-style: normal; }
.footer-links a { color: var(--sand); text-decoration: none; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-links a:hover { color: var(--ochre-light); }
.footer-base { padding-bottom: 32px; font-size: 13px; color: var(--footer-muted); }

/* ---------- Thanks page ---------- */
.thanks { min-height: calc(100vh - 76px); display: flex; align-items: center; }
.thanks .container { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
