/* ==========================================================================
   Beyop — Marketing site styles
   --------------------------------------------------------------------------
   Plain CSS, no build step. Edit the variables in :root below to re-theme.
   Sections are ordered to match index.html top-to-bottom.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens  (colors, fonts, spacing) — edit these to re-skin the site
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --cream:        #FAF8F3;  /* page background (warm off-white)        */
  --teal:         #0F766E;  /* primary: buttons, links, accents        */
  --teal-dark:    #0B3B38;  /* dark sections + footer                  */
  --mint:         #5EEAD4;  /* light accents, ray gradients            */
  --amber:        #F59E0B;  /* main CTA + doodle accents               */
  --amber-dark:   #B45309;  /* CTA border/shadow for contrast          */

  /* Text */
  --slate:        #1E293B;  /* body text                               */
  --muted:        #64748B;  /* secondary / muted text                  */

  /* Surfaces */
  --white:        #FFFFFF;
  --tint:         #F1F7F6;  /* very light teal tint card background     */
  --border:       #D8E6E3;  /* hairline borders                        */

  /* Type */
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shape & depth */
  --radius:     16px;
  --radius-lg:  24px;
  --radius-pill: 999px;
  --shadow-sm:  0 1px 2px rgba(11, 59, 56, .06);
  --shadow:     0 8px 24px rgba(11, 59, 56, .08);
  --shadow-lg:  0 24px 60px rgba(11, 59, 56, .14);

  /* Layout */
  --maxw: 1120px;
  --gap:  clamp(1rem, 3vw, 2rem);
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; /* sticky nav offset */ }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* safety net against accidental horizontal scroll */
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  color: var(--slate);
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}

h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1rem; }

/* Shared layout container */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

/* Vertical rhythm for sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }

/* Centered section intro (eyebrow + heading + subhead) */
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }

/* Small uppercase eyebrow label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .6rem;
}

/* Accessibility helper */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

/* Primary amber CTA — high contrast, dark border + grounded shadow */
.btn-primary {
  background: var(--amber);
  color: #4a2c00;
  border-color: var(--amber-dark);
  box-shadow: 0 4px 0 var(--amber-dark);
}
.btn-primary:hover { background: #fbb12e; box-shadow: 0 6px 0 var(--amber-dark); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--amber-dark); }

/* Secondary teal */
.btn-teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal-dark);
  box-shadow: 0 4px 0 var(--teal-dark);
}
.btn-teal:hover { background: #117c73; box-shadow: 0 6px 0 var(--teal-dark); }

/* Ghost / text link button */
.btn-ghost {
  background: transparent;
  color: var(--teal);
  font-weight: 600;
  padding: .5rem .25rem;
}
.btn-ghost:hover { color: var(--teal-dark); transform: none; }

/* --------------------------------------------------------------------------
   4. Navigation (sticky)
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, .85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

/* Beyop logo mark (SVG). The text styles remain as a fallback if the <a> ever
   holds text again; with an <img> inside they're harmless. */
.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--teal);
  letter-spacing: -.02em;
}
.wordmark:hover { text-decoration: none; }
/* Sized to sit comfortably within the 72px nav. Width is set explicitly (not
   auto) and height derived from it — iOS Safari mis-sizes SVG <img>s that have
   height set + width:auto, blowing them up to the SVG's intrinsic width.
   Logo ratio is 771.8 / 340 ≈ 2.27, so width 104 ≈ 46px tall, width 91 ≈ 40px. */
.wordmark img { display: block; width: 104px; height: auto; }
.footer .wordmark img { width: 91px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 500;
  color: var(--slate);
  font-size: .98rem;
}
.nav-links a:hover { color: var(--teal); text-decoration: none; }

/* Hamburger — shown on mobile only */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .4rem;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem);
}

/* Sunburst rays — Beyop teal/mint/amber, radiating behind the headline.
   Built with a repeating-conic-gradient masked to fade out at the edges. */
.hero-rays {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 140vw);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(94, 234, 212, .22) 0deg 7deg,   /* mint  */
    transparent          7deg 14deg,
    rgba(15, 118, 110, .12) 14deg 21deg,  /* teal  */
    transparent          21deg 28deg,
    rgba(245, 158, 11, .14) 28deg 35deg,  /* amber */
    transparent          35deg 42deg
  );
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 0%, #000 18%, transparent 62%);
          mask: radial-gradient(circle at 50% 50%, #000 0%, #000 18%, transparent 62%);
  opacity: .9;
}

.hero .container { position: relative; z-index: 1; }

/* Pill tag above the headline */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--teal);
  font-weight: 600;
  font-size: .9rem;
  padding: .45rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  max-width: 16ch;
  margin-inline: auto;
  overflow-wrap: break-word;
}
/* Teal highlight on a key phrase in the headline.
   No nowrap — it must be free to wrap on narrow screens. */
.hero h1 .accent { color: var(--teal); }

.hero-sub {
  max-width: 60ch;
  margin: 1.4rem auto 2rem;
  font-size: 1.28rem;
  color: #475569; /* slightly darker than --muted; keeps the soft slate tone */
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Hero screenshot framed in a browser mockup */
.hero-shot {
  position: relative;
  max-width: 980px;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
}

/* --------------------------------------------------------------------------
   6. Browser mockup frame (reused for every screenshot)
   -------------------------------------------------------------------------- */
.browser {
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
/* Top bar with three dots — NO real URL is ever shown */
.browser-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  background: var(--tint);
  border-bottom: 1px solid var(--border);
}
.browser-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.browser-bar .dot.r { background: #f87171; }
.browser-bar .dot.y { background: #fbbf24; }
.browser-bar .dot.g { background: #34d399; }
/* Neutral faux address pill — purely decorative, no URL text */
.browser-bar .fake-url {
  flex: 1;
  height: 22px;
  margin-left: .6rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  max-width: 280px;
}
.browser-shot { display: block; width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   7. Doodle accents — hand-drawn squiggle / arrow / sparkle (used sparingly)
   -------------------------------------------------------------------------- */
.doodle { position: absolute; z-index: 2; color: var(--amber); pointer-events: none; }
.doodle--arrow  { top: -28px; right: 4%; width: 84px; transform: rotate(8deg); }
.doodle--spark  { bottom: -22px; left: 2%; width: 54px; color: var(--teal); }

@media (max-width: 640px) { .doodle { display: none; } }

/* --------------------------------------------------------------------------
   8. Cards (problem, mission, features)
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: 1rem; margin: 0; }

/* Round icon badge inside cards */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--teal);
  margin-bottom: 1rem;
}
.icon-badge svg { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   9. How it works — alternating screenshot rows
   -------------------------------------------------------------------------- */
.steps { display: flex; flex-direction: column; gap: clamp(3rem, 7vw, 5rem); }
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
/* Reverse every other row for visual rhythm */
.step.reverse .step-media { order: 2; }
.step.reverse .step-text  { order: 1; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 1rem;
}
.step-text h3 { font-size: 1.6rem; }
.step-text p { color: var(--muted); font-size: 1.1rem; max-width: 46ch; }

/* Dark teal banner under the steps */
.banner {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  background: var(--teal-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}
.banner strong { font-family: var(--font-head); }
.banner .mint { color: var(--mint); }
.banner p { font-size: clamp(1.2rem, 3vw, 1.6rem); margin: 0; line-height: 1.4; }

/* --------------------------------------------------------------------------
   10. Dark sections (mission + final CTA can opt in)
   -------------------------------------------------------------------------- */
.section-dark {
  background: var(--teal-dark);
  color: #E6F4F1;
}
.section-dark h2 { color: #fff; }
.section-dark .section-head p { color: var(--mint); }

/* Cards on dark background */
.card-dark {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(94, 234, 212, .25);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card-dark h3 { color: #fff; }
.card-dark p { color: #C7E3DE; margin: 0; font-size: 1rem; }
.card-dark .icon-badge { background: rgba(94, 234, 212, .14); color: var(--mint); }

/* --------------------------------------------------------------------------
   11. Proof / social proof
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  max-width: 760px;
  margin: 0 auto 2.5rem;
}
.stat {
  text-align: center;
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1rem;
}
.stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: var(--teal);
  line-height: 1;
}
.stat .label { color: var(--muted); margin-top: .4rem; }

.testimonial {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
  text-align: center;
}
.testimonial .quote {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--slate);
  font-style: italic;
}
.testimonial .attrib { color: var(--muted); margin: 0; }
.testimonial .attrib strong { color: var(--slate); }

/* --------------------------------------------------------------------------
   12. Pricing
   -------------------------------------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.4rem);
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price-card .tier { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.price-card .range { color: var(--muted); font-size: .95rem; min-height: 2.6em; }
.price-card .amount {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--teal);
  line-height: 1.1;
  margin: .4rem 0 .1rem;
}
.price-card .per { color: var(--muted); font-size: .9rem; }
.price-card .incl {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  color: var(--slate);
}
.price-card .incl svg { color: var(--teal); flex: none; }

/* Featured "Medium" tier — teal fill */
.price-card.featured {
  background: var(--teal);
  border-color: var(--teal-dark);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.price-card.featured .range,
.price-card.featured .per { color: #C7E3DE; }
.price-card.featured .amount { color: #fff; }
.price-card.featured .incl { color: #fff; border-top-color: rgba(255,255,255,.25); }
.price-card.featured .incl svg { color: var(--mint); }
.price-tag {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--amber);
  color: #4a2c00;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--amber-dark);
  white-space: nowrap;
}

.price-note {
  text-align: center;
  color: var(--muted);
  margin: 2rem auto 0;
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   13. FAQ accordion  (uses native <details>/<summary> — no JS needed)
   -------------------------------------------------------------------------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .85rem;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  flex: none;
  transition: transform .2s ease;
  color: var(--teal);
}
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .answer { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.faq-item .answer p { margin: 0; }

/* --------------------------------------------------------------------------
   14. Final CTA
   -------------------------------------------------------------------------- */
.final-cta { text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: var(--mint); max-width: 50ch; margin: 0 auto 2rem; font-size: 1.15rem; }

/* --------------------------------------------------------------------------
   15. Footer (dark teal)
   -------------------------------------------------------------------------- */
.footer {
  background: var(--teal-dark);
  color: #C7E3DE;
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  align-items: flex-start;
}
.footer .wordmark { color: #fff; }
.footer .tagline { color: #9ECFC8; max-width: 34ch; margin: .6rem 0 0; font-size: .98rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: #C7E3DE; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  font-size: .9rem;
  color: #9ECFC8;
}

/* --------------------------------------------------------------------------
   16. Privacy page specifics
   -------------------------------------------------------------------------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .3rem; }
.legal .updated { color: var(--muted); margin-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--slate); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal .callout {
  background: #FFF7E6;
  border: 1px solid #F5D98B;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: #7a5200;
  font-size: .95rem;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   16b. Request-a-demo form
   -------------------------------------------------------------------------- */
/* Centered intro above the form card */
.form-intro { text-align: center; max-width: 620px; margin: 0 auto clamp(1.6rem, 4vw, 2.4rem); }
.form-intro h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .5rem; }
.form-intro p { color: var(--muted); font-size: 1.12rem; margin: 0; }

/* The white card that holds the form (or the success message) */
.form-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

/* A single field block: label + control + error message */
.field { margin-bottom: 1.25rem; }
.field > label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  color: var(--slate);
  margin-bottom: .4rem;
}
.field .req { color: var(--amber-dark); }
.field .optional { color: var(--muted); font-weight: 400; font-family: var(--font-body); font-size: .85rem; }

/* Inputs, selects, textareas share one look */
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

/* Custom chevron for selects (since native arrow is hidden via appearance:none) */
.field .select-wrap { position: relative; }
.field .select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 11px; height: 11px;
  transform: translateY(-65%) rotate(45deg);
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  pointer-events: none;
}
.field select { padding-right: 2.6rem; cursor: pointer; }

/* Focus state — teal ring */
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .15);
}

/* Invalid state + inline error text */
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
.field-error {
  display: none;
  color: #B91C1C;
  font-size: .88rem;
  margin-top: .4rem;
}
.field.invalid .field-error { display: block; }

/* Form-level error (e.g. network failure) */
.form-message {
  display: none;
  margin-bottom: 1.2rem;
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  font-size: .95rem;
}
.form-message.show { display: block; }
.form-message.error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

/* Full-width submit button */
.form-card .btn-submit { width: 100%; justify-content: center; margin-top: .4rem; }

/* Privacy reassurance line under the button */
.form-foot { text-align: center; color: var(--muted); font-size: .9rem; margin: 1rem 0 0; }

/* Honeypot — hidden from real users, catches bots */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Success state (shown after submit) */
.form-success { text-align: center; display: none; }
.form-success.show { display: block; }
.form-success .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--teal);
  margin-bottom: 1.2rem;
}
.form-success h2 { font-size: 1.7rem; }
.form-success p { color: var(--muted); max-width: 42ch; margin: 0 auto 1.5rem; }

/* --------------------------------------------------------------------------
   16c. About page — single centered column of prose + team cards
   -------------------------------------------------------------------------- */
.about-main { position: relative; overflow: hidden; }
/* Reuse the homepage hero sunburst, softened and nudged up behind the header */
.about-rays { opacity: .4; top: -24%; }
.about { position: relative; z-index: 1; max-width: 980px; }

/* Centered hero/header */
.about-hero { position: relative; text-align: center; margin-bottom: clamp(3rem, 7vw, 4.5rem); }
.about-hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  max-width: 18ch;
  margin-inline: auto;
}
.about-lede {
  color: var(--muted);
  font-size: 1.28rem;   /* match the homepage .hero-sub */
  font-style: normal;
  max-width: 620px;
  margin: 1.2rem auto 0;
}

/* HOW IT STARTED — full-width heading above a full-width story */
.about-story {
  position: relative;
  text-align: left;
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
}
/* Icon + heading sit together on one row, full width above the text */
.about-story-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.about-story-head .icon-badge { width: 52px; height: 52px; margin-bottom: 0; flex: none; }
.about-story-head .icon-badge svg { width: 28px; height: 28px; }
.about-story-head h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0; }
.about-story p { color: var(--slate); margin: 0 0 1rem; }
.about-story p:last-child { margin-bottom: 0; }
.about-story .lead { font-size: 1.2rem; }

/* Teal pull-quote for the key line */
.pullquote {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.25;
  color: var(--teal-dark);
  border-left: 4px solid var(--teal);
  padding-left: 1.1rem;
  margin: 1.5rem 0;
}

/* WHAT WE BELIEVE / BUILT THE RIGHT WAY — two accent cards */
.about-cards { margin-bottom: clamp(3rem, 7vw, 4.5rem); align-items: stretch; }
.about-card { text-align: left; padding: 1.9rem 2rem; }
.about-card h2 { font-size: 1.4rem; margin: .1rem 0 .55rem; }
.about-card p { color: var(--slate); font-size: 1.02rem; margin: 0; max-width: none; }

/* Prose blocks — centered, generous spacing (team heading uses this) */
.about-block { text-align: center; margin-bottom: clamp(2.6rem, 6vw, 3.6rem); }
.about-block h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: .9rem; }
.about-block p {
  color: var(--slate);
  max-width: 740px;
  margin-inline: auto;
}
.about-block p + p { margin-top: 1rem; }

/* Team cards (reuse .card + .grid-2; .grid-2 already stacks on mobile) */
.team-grid { margin-top: 2rem; }
.team-card { text-align: center; padding: 1.8rem 2.2rem; }
.team-photo {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;            /* clips the image to the circle */
  /* Safari/iOS bug: overflow:hidden + border-radius doesn't clip a child that
     has a transform (the zoom scale below). A mask forces correct clipping. */
  -webkit-mask-image: -webkit-radial-gradient(circle, #fff 100%, #000 100%);
          mask-image: radial-gradient(circle, #fff 100%, #000 100%);
  margin: 0 auto 1.1rem;
  background: var(--tint);
  border: 3px solid var(--tint);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Tighter crops for specific headshots */
.team-photo--zoom img    { transform: scale(1.1); transform-origin: center; }  /* Cooper */
.team-photo--zoom-30 img { transform: scale(1.4); transform-origin: center; }  /* Ore */
.team-card h3 { margin-bottom: .15rem; }
.team-role {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--teal);
  font-size: .95rem;
  margin-bottom: .9rem;
}
.team-bio { color: var(--slate); font-size: 1rem; text-align: left; margin: 0; }
.team-email { margin: .9rem 0 0; font-size: .95rem; }
.team-email a { color: var(--teal); font-weight: 600; text-decoration: none; }
.team-email a:hover { text-decoration: underline; }

/* Closing CTA */
.about-cta { text-align: center; margin-top: clamp(3rem, 7vw, 4.5rem); }
.about-cta h2 { margin-bottom: 1.3rem; }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* Mobile nav: links collapse into a dropdown panel toggled by hamburger */
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: .5rem 1.1rem 1.1rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .8rem .2rem; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .btn { margin-top: .6rem; justify-content: center; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  /* Stack the how-it-works rows. Cancel the desktop reverse so EVERY step
     reads text-then-screenshot in order (1, 1-shot, 2, 2-shot, 3, 3-shot). */
  .step { grid-template-columns: 1fr; }
  .step.reverse .step-text  { order: 1; }
  .step.reverse .step-media { order: 2; }
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid-4, .price-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
