/* ============================================================
   Pitstop Digital — stylesheet
   Colours, fonts and spacing all live in the :root block below.
   Change a value there and it changes everywhere on the site.
   ============================================================ */

:root {
  /* Brand ---------------------------------------------------- */
  --accent: #ea580c;          /* signal orange — fills, icons, accents  */
  --accent-strong: #c2410c;   /* darker orange — buttons + links on white
                                 (this one passes accessibility contrast) */
  --accent-bright: #fb923c;   /* light orange — text on dark backgrounds  */
  --accent-wash: #fff1e9;     /* very pale orange — tint blocks           */

  /* Neutrals ------------------------------------------------- */
  --ink: #16130f;             /* near-black, slightly warm */
  --ink-2: #241f1a;           /* raised surface on dark     */
  --ink-3: #3b332b;           /* borders on dark            */
  --paper: #ffffff;
  --paper-2: #faf7f4;         /* warm off-white section     */
  --line: #e8e0d8;
  --text: #16130f;
  --text-muted: #6b6158;
  --text-on-dark: #f6f1ec;
  --text-on-dark-muted: #b9afa5;

  /* Type ----------------------------------------------------- */
  --font-heading: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Shape and space ------------------------------------------ */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --maxw: 1140px;
  --gutter: 20px;
  --shadow: 0 1px 2px rgba(22, 19, 15, .05), 0 18px 40px -22px rgba(22, 19, 15, .35);
  --shadow-lift: 0 2px 4px rgba(22, 19, 15, .06), 0 28px 60px -28px rgba(22, 19, 15, .45);
}

/* ============================================================
   Base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 7vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); }

p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
img, svg, video { max-width: 100%; display: block; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: 760px; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.center .lead, .center .narrow { margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--ink); color: var(--text-on-dark);
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* Thin hazard-stripe rule — used sparingly as a brand mark ---- */
.stripe {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 10px,
    var(--ink) 10px 20px
  );
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; gap: 12px; min-height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-right: auto;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { white-space: nowrap; }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: block; padding: 9px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .95rem; font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.nav .nav-cta { display: none; }
.nav .nav-toggle { display: grid; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.icon-btn:hover { background: var(--paper-2); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px;
  min-height: 48px;                    /* comfortable thumb target */
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 650;
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: #a8360a; }

.btn-dark { background: var(--ink); color: var(--text-on-dark); }
.btn-dark:hover { background: var(--ink-2); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--text-on-dark); }

.btn-on-dark { background: var(--paper); color: var(--ink); }
.btn-on-dark:hover { background: var(--paper-2); }

.btn-ghost-on-dark { background: transparent; color: var(--text-on-dark); border-color: var(--ink-3); }
.btn-ghost-on-dark:hover { background: var(--ink-2); border-color: var(--text-on-dark-muted); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
/* class selectors beat the browser's [hidden] rule, so restate it here */
.btn[hidden] { display: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ============================================================
   Sections
   ============================================================ */

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-warm { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-dark .lead, .section-dark .muted { color: var(--text-on-dark-muted); }
.section-dark a { color: var(--accent-bright); }

.section-head { margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; max-width: 720px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 3px;
  background: var(--accent); border-radius: 2px;
}
.section-dark .eyebrow { color: var(--accent-bright); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 104px);
  position: relative;
  overflow: hidden;
}
.hero::after {           /* soft orange glow, bottom right */
  content: "";
  position: absolute; right: -10%; bottom: -30%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(234, 88, 12, .22), transparent 68%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero .lead { color: var(--text-on-dark-muted); font-size: clamp(1.1rem, 2.6vw, 1.3rem); margin-bottom: 30px; }

.hero-flag {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(234, 88, 12, .14);
  border: 1px solid rgba(234, 88, 12, .4);
  color: var(--accent-bright);
  border-radius: var(--radius-pill);
  padding: 7px 15px 7px 11px;
  font-size: .85rem; font-weight: 600;
  margin-bottom: 22px;
}
.hero-flag .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); flex: none;
}

.hero-points {
  list-style: none; padding: 0; margin: 30px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  color: var(--text-on-dark-muted); font-size: .95rem;
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--accent-bright); flex: none; }

/* ============================================================
   Cards
   ============================================================ */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 30px);
}
.card > :last-child { margin-bottom: 0; }
.card-warm { background: var(--paper-2); }
.card-dark { background: var(--ink-2); border-color: var(--ink-3); color: var(--text-on-dark); }
.card-dark h3 { color: #fff; }
.card-dark p { color: var(--text-on-dark-muted); }

.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-wash);
  color: var(--accent-strong);
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }
.card-dark .card-icon { background: rgba(234, 88, 12, .16); color: var(--accent-bright); }

/* Service card ------------------------------------------------ */
.service-card { display: flex; flex-direction: column; }
.service-card .price-from {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 700;
  color: var(--ink);
  margin: 4px 0 14px;
}
.service-card ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.service-card li { display: flex; gap: 10px; font-size: .97rem; }
.service-card li::before { content: "✓"; color: var(--accent-strong); font-weight: 800; flex: none; }
.service-card .btn { margin-top: auto; }

/* Problem card ------------------------------------------------ */
.problem-card { border-left: 4px solid var(--accent); }

/* Steps ------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 26px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.step::before {
  counter-increment: step;
  content: counter(step);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--text-muted); }
.section-dark .step p { color: var(--text-on-dark-muted); }

/* Work / portfolio -------------------------------------------- */
.work-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.work-thumb {
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-body { padding: 20px 22px 24px; }
.tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: var(--text-on-dark);
  border-radius: var(--radius-pill);
  padding: 4px 11px; margin-bottom: 10px;
}
.tag-concept { background: var(--accent-wash); color: var(--accent-strong); }

/* Pricing ----------------------------------------------------- */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card .amount {
  font-family: var(--font-heading);
  font-size: 2.4rem; font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 8px 0 2px;
}
.price-card .amount small { font-size: .9rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.price-card .from-label { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; }
.price-card li { display: flex; gap: 10px; font-size: .96rem; }
.price-card li::before { content: "✓"; color: var(--accent-strong); font-weight: 800; flex: none; }
.price-card .btn { margin-top: auto; }
.price-card-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lift);
}
.badge {
  position: absolute; top: -13px; left: 24px;
  background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 5px 13px;
}

/* Empty slot for real testimonials/logos later ----------------- */
.slot {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  color: var(--text-muted);
  background: var(--paper);
}
.slot strong { display: block; color: var(--ink); font-family: var(--font-heading); margin-bottom: 4px; }
.slot p { margin: 0; font-size: .93rem; }

/* FAQ --------------------------------------------------------- */
.faq {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.faq + .faq { margin-top: 12px; }
.faq summary {
  cursor: pointer; font-weight: 650; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 400;
  line-height: 1; color: var(--accent-strong);
}
.faq[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--text-muted); }

/* Final CTA --------------------------------------------------- */
.cta-panel {
  background: var(--ink); color: var(--text-on-dark);
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 60px);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-panel h2 { color: #fff; }
.cta-panel .lead { color: var(--text-on-dark-muted); margin-inline: auto; }

/* ============================================================
   Voice demo
   ============================================================ */

.demo-panel {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 34px);
  max-width: 560px;
  margin-inline: auto;
}

.demo-status {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 18px;
  font-size: .95rem; font-weight: 600;
  color: var(--text-on-dark);
}
.demo-status .light {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: var(--text-on-dark-muted);
}
.demo-panel[data-state="connecting"] .light { background: #facc15; animation: pulse 1.1s ease-in-out infinite; }
.demo-panel[data-state="listening"]  .light { background: #4ade80; animation: pulse 1.6s ease-in-out infinite; }
.demo-panel[data-state="speaking"]   .light { background: var(--accent); animation: pulse .7s ease-in-out infinite; }
.demo-panel[data-state="ended"]      .light { background: var(--text-on-dark-muted); }
.demo-panel[data-state="error"]      .light { background: #f87171; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.demo-transcript {
  min-height: 3.2em;
  margin-bottom: 18px;
  font-size: .95rem;
  color: var(--text-on-dark-muted);
  font-style: italic;
}
.demo-transcript:empty::before {
  content: "What you say and what Alex says will appear here.";
  opacity: .55; font-style: italic;
}

.demo-note {
  font-size: .88rem;
  color: var(--text-on-dark-muted);
  margin: 16px 0 0;
}
.demo-note a { color: var(--accent-bright); }

.demo-fallback {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--ink-3);
  font-size: .95rem; color: var(--text-on-dark-muted);
}
.demo-fallback strong { color: #fff; }

/* ============================================================
   Forms
   ============================================================ */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: .95rem; }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 1rem;
  color: var(--text); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; width: 100%;
  min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent-strong); }
.field-error { color: #b91c1c; font-size: .86rem; min-height: 1.15em; font-weight: 500; }
.field [aria-invalid="true"] { border-color: #b91c1c; }
.form-status {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .95rem; font-weight: 500;
  background: var(--accent-wash);
  border: 1px solid var(--accent);
}
.form-status[hidden] { display: none; }
.form-note { font-size: .88rem; color: var(--text-muted); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--ink); color: var(--text-on-dark-muted);
  padding: clamp(40px, 6vw, 64px) 0 28px;
  font-size: .95rem;
}
.footer-grid { display: grid; gap: 30px; }
.site-footer h2 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-on-dark); margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: var(--text-on-dark); }
.footer-about { max-width: 34ch; margin-top: 12px; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  justify-content: space-between;
  font-size: .87rem;
}

/* ============================================================
   Larger screens  (mobile-first: everything above is the phone)
   ============================================================ */

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step { grid-template-columns: 1fr; }
  .hero-split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px; align-items: center;
  }
}

@media (min-width: 860px) {
  .nav .nav-toggle { display: none; }
  .nav .nav-cta { display: inline-flex; }
}

@media (max-width: 859px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px var(--gutter) 18px;
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { padding: 13px; font-size: 1.02rem; }
  .nav-links .nav-links-cta { margin-top: 8px; }
}

@media (min-width: 860px) {
  .nav-links[hidden] { display: flex; }
  .nav-links .nav-links-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
