/* AppCraft Solutions — one stylesheet for every page.
   "Forest garage", the VehicleVault design language: forest and mint, a
   dark instrument panel in both themes, warm grotesque type. */

@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/BricolageGrotesque-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Plate"; src: url("fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #F3F6F2;
  --surface: #FFFFFF;
  --surface-2: #E3EFE8;
  --ink: #10201A;
  --muted: #4B5E55;
  --line: #DCE5DF;
  --link: #0F5132;
  --panel: #0F2A22;
  --panel-border: #0F2A22;
  --on-panel: #E6F4EC;
  --on-panel-muted: #9CC4B2;
  --mint: #A7F3D0;
  --amber: #FBBF24;
  --alarm: #FF8A80;
  --warn: #8A4B00;
  --love: #B42318;
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1411;
    --surface: #12201B;
    --surface-2: #15291F;
    --ink: #E6F4EC;
    --muted: #9CB8AB;
    --line: #22382F;
    --link: #A7F3D0;
    --panel: #123026;
    --panel-border: #2A5444;
    --warn: #FBBF24;
    --love: #FF8A80;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Bricolage", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--panel); border: 1px solid var(--panel-border); display: grid; place-items: center; }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }

.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.love { color: var(--love); }

/* Building blocks */
section { padding: 56px 0 0; }
.eyebrow { font: 500 12px/1 "Plex Mono", ui-monospace, monospace; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--on-panel);
  border-radius: 28px;
  padding: 32px;
}
.panel .eyebrow { color: var(--on-panel-muted); }
.panel a:not(.button) { color: var(--mint); }
.panel .lead { color: var(--on-panel-muted); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); color: var(--mint);
  border: 1px solid var(--panel-border);
  border-radius: 999px; padding: 8px 14px;
  font-size: 14px; font-weight: 600;
}
.panel .chip { background: rgba(167, 243, 208, 0.12); border-color: transparent; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--mint); color: #0F2A22; text-decoration: none;
  font-weight: 600; font-size: 16px;
}
.button.secondary { background: transparent; color: var(--on-panel); border: 1.5px solid var(--on-panel-muted); }
.button[aria-disabled="true"] { opacity: 0.85; cursor: default; }

.plate {
  display: inline-flex; align-items: stretch;
  border: 2px solid #10201A; border-radius: 6px; overflow: hidden;
  background: #fff; color: #10201A; vertical-align: middle;
}
.plate span:first-child { background: #1D4ED8; color: #fff; font: 700 9px "Plate", sans-serif; padding: 3px 4px; display: flex; align-items: flex-end; }
.plate span:last-child { font: 700 17px/1.2 "Plate", sans-serif; letter-spacing: 0.06em; padding: 1px 8px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .icon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { stroke: var(--link); }

.hero { display: grid; gap: 40px; grid-template-columns: 1.1fr 0.9fr; align-items: center; padding-top: 56px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.phones { display: flex; gap: 16px; justify-content: center; }
.phone {
  width: 220px; border-radius: 28px; overflow: hidden;
  border: 8px solid #141A18; background: #141A18;
  box-shadow: 0 24px 48px rgba(15, 42, 34, 0.25);
}
.phone:nth-child(2) { margin-top: 48px; }

.shots { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 220px; scroll-snap-align: start; }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.stat { border-top: 1px solid rgba(156, 196, 178, 0.3); padding-top: 12px; }
.stat b { display: block; font: 500 28px/1.1 "Plex Mono", ui-monospace, monospace; color: var(--mint); }
.stat span { font-size: 14px; color: var(--on-panel-muted); }

/* Docs */
.doc { padding-top: 40px; }
.doc h2 { margin-top: 48px; padding-top: 8px; scroll-margin-top: 16px; }
.doc h3 { margin-top: 28px; }
.doc ol, .doc ul { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }
.note { background: var(--surface-2); border-radius: 16px; padding: 16px 18px; margin: 0 0 1em; }
.note.warn { border-left: 0; outline: 1.5px solid var(--warn); outline-offset: -1.5px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 12px 0; min-height: 44px; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
kbd, .ui { font: 500 0.88em "Plex Mono", ui-monospace, monospace; background: var(--surface-2); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .phone { width: 160px; border-width: 6px; border-radius: 22px; }
  .phone:nth-child(2) { margin-top: 32px; }
  .toc ol { columns: 1; }
  .panel { padding: 24px; }
  .stat-row { grid-template-columns: 1fr; }
}

/* Feature rows: one screenshot per feature, text beside it */
.feature {
  display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center;
  padding: 48px 0; border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: 0; }
.feature:nth-child(even) { grid-template-columns: 1fr 300px; }
.feature:nth-child(even) .phone { order: 2; }
.feature .phone { width: 100%; margin: 0 auto; }
.feature h3 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 18px; }
.feature ul { color: var(--muted); padding-left: 20px; margin: 0; }
.feature li { margin-bottom: 6px; }
.phone.hero-phone { width: 300px; margin: 0 auto; }

/* Stepper: a swipeable track with numbered steps and Back / Next */
.stepper { margin-top: 24px; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: flex; gap: 8px; overflow-x: auto; }
.steps button {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  min-height: 48px; padding: 6px 16px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font: 600 15px "Bricolage", system-ui, sans-serif; cursor: pointer;
}
.steps button .n {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink);
  font: 500 14px "Plex Mono", ui-monospace, monospace;
}
.steps button[aria-selected="true"] { background: var(--panel); border-color: var(--panel-border); color: var(--on-panel); }
.steps button[aria-selected="true"] .n { background: var(--mint); color: #0F2A22; }
.steps button.done .n { background: var(--mint); color: #0F2A22; }

.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 28px; }
.track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start;
  display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center;
  background: var(--panel); border: 1px solid var(--panel-border); color: var(--on-panel);
  border-radius: 28px; padding: 36px 48px;
}
.slide .phone { width: 100%; }
.slide .eyebrow { color: var(--on-panel-muted); }
.slide h3 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
.slide p, .slide li { color: var(--on-panel-muted); font-size: 18px; }
.slide ol { padding-left: 22px; margin: 0; }
.slide li { margin-bottom: 8px; }
.slide strong { color: var(--on-panel); }

.stepper-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.stepper-nav .count { font: 500 14px "Plex Mono", ui-monospace, monospace; color: var(--muted); }
.stepper-nav button {
  min-height: 52px; padding: 0 24px; border-radius: 999px; cursor: pointer;
  font: 600 16px "Bricolage", system-ui, sans-serif;
  background: var(--panel); color: var(--mint); border: 1px solid var(--panel-border);
}
.stepper-nav button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.stepper-nav button:disabled { opacity: 0.4; cursor: default; }

@media (prefers-reduced-motion: no-preference) { .track { scroll-behavior: smooth; } }

@media (max-width: 820px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .feature:nth-child(even) .phone { order: 0; }
  .feature .phone, .phone.hero-phone { width: 240px; }
  .slide { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .slide .phone { width: 220px; margin: 0 auto; }
  .steps button { padding-right: 6px; }
  .steps button .label { display: none; }
  .steps button[aria-selected="true"] .label { display: inline; padding-right: 10px; }
}
