/* ============================================================
   BlueStake Solutions — BLUE Landing Page
   Brand: Hydra Teal #01696F · Cream #F7F6F2 · Ink #28251D
   ============================================================ */

:root {
  /* Brand */
  --teal:        #01696F;
  --teal-dark:   #0C4E54;
  --teal-bright: #20808D;
  --teal-pale:   #E8F2F3;
  --light-cyan:  #BCE2E7;

  /* Neutrals */
  --bg:        #FBFAF6;
  --surface:   #FFFFFF;
  --cream:     #F7F6F2;
  --border:    #E2DFD7;
  --border-strong: #D4D1CA;

  /* Text */
  --ink:       #1A1817;
  --text:      #28251D;
  --muted:     #6B6A65;
  --faint:     #ABAAA5;

  /* Semantic */
  --warning:   #C4471F;

  /* Type */
  --font-display: 'Cabinet Grotesk', 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-body:    'Satoshi', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(12, 78, 84, 0.05), 0 1px 3px rgba(12, 78, 84, 0.06);
  --shadow-md: 0 4px 12px rgba(12, 78, 84, 0.08), 0 2px 4px rgba(12, 78, 84, 0.04);
  --shadow-lg: 0 18px 40px rgba(12, 78, 84, 0.14), 0 6px 16px rgba(12, 78, 84, 0.08);
  --shadow-screenshot: 0 24px 64px rgba(12, 78, 84, 0.16), 0 8px 24px rgba(12, 78, 84, 0.08);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01' on, 'cv11' on;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--teal); color: white; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

.section {
  padding: clamp(64px, 9vw, 128px) 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(251, 250, 246, 0.95);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
}

.brand-link { display: flex; align-items: center; }
.brand-logo { height: 30px; width: auto; }

.primary-nav {
  display: none;
  align-items: center;
  gap: 32px;
}
.primary-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.15s ease;
}
.primary-nav a:hover { color: var(--teal); }
.primary-nav .nav-cta {
  background: var(--teal);
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}
.primary-nav .nav-cta:hover { background: var(--teal-dark); transform: translateY(-1px); color: white; }

@media (min-width: 900px) {
  .primary-nav { display: flex; }
  .nav-toggle { display: none; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 24px;
  gap: 4px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav .nav-cta {
  margin-top: 12px;
  background: var(--teal);
  color: white;
  text-align: center;
  border-radius: 999px;
  padding: 14px 20px;
  border: 0;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(56px, 8vw, 120px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(ellipse at 75% -10%, rgba(32, 128, 141, 0.10), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(1, 105, 111, 0.06), transparent 50%),
    var(--bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 72px;
  }
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.0;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-h1 .blue-flag {
  color: var(--teal);
  font-style: italic;
  font-weight: 800;
  position: relative;
  white-space: nowrap;
}
.hero-h1 .blue-flag::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-bright), var(--teal));
  border-radius: 2px;
  opacity: 0.45;
}

.hero-sub {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 32px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 0;
  padding: 8px 14px;
  border: 1px solid rgba(1, 105, 111, 0.22);
  background: rgba(1, 105, 111, 0.06);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text);
  letter-spacing: 0.01em;
}
.hero-status strong {
  font-weight: 600;
  color: #01696F;
}
.hero-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #01696F;
  box-shadow: 0 0 0 0 rgba(1, 105, 111, 0.55);
  animation: hero-status-pulse 2.4s ease-out infinite;
  flex-shrink: 0;
}
@keyframes hero-status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(1, 105, 111, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(1, 105, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(1, 105, 111, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-status .status-dot { animation: none; }
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-points li {
  font-size: 15px;
  color: var(--text);
  padding-left: 24px;
  position: relative;
}
.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 2px;
  transform: rotate(45deg);
}

.hero-video { position: relative; }
.hero-video .video-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--teal-dark);
  aspect-ratio: 1920 / 1032;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-video figcaption {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-align: center;
}

/* Tap-to-play fallback button */
.video-play {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: rgba(12, 78, 84, 0.55);
  border: 0;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 2;
  -webkit-appearance: none;
  appearance: none;
}
.video-play.is-visible { display: flex; }
.video-play svg {
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.35));
  transition: transform 180ms ease;
}
.video-play:hover svg { transform: scale(1.06); }
.video-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

/* Mute/unmute toggle — bottom-right corner of video frame */
.video-mute {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--teal-dark, #0C4E54);
  border: 1px solid rgba(12, 78, 84, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  z-index: 3;
  -webkit-appearance: none;
  appearance: none;
}
.video-mute:hover {
  background: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}
.video-mute:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.video-mute .icon-unmuted { display: none; }
.video-mute .icon-muted { display: block; }
.video-mute.is-unmuted .icon-muted { display: none; }
.video-mute.is-unmuted .icon-unmuted { display: block; }
@media (max-width: 640px) {
  .video-mute { right: 10px; bottom: 10px; width: 36px; height: 36px; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 1px 0 rgba(12, 78, 84, 0.3) inset, 0 4px 12px rgba(1, 105, 111, 0.2);
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(12, 78, 84, 0.3) inset, 0 8px 18px rgba(1, 105, 111, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.btn-block {
  display: flex;
  width: 100%;
}

/* ============================================================
   Story strip
   ============================================================ */
.story {
  background: var(--teal);
  color: white;
  padding: clamp(56px, 7vw, 96px) 0;
  position: relative;
  overflow: hidden;
}
.story::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.07), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05), transparent 40%);
  pointer-events: none;
}
.story .container { position: relative; }
.story-quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin: 0 auto 20px;
  text-align: center;
  text-wrap: balance;
}
.story-quote span {
  display: block;
  color: var(--light-cyan);
  font-weight: 700;
}
.story-attrib {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

/* ============================================================
   How it works  (alternating text + screenshot rows)
   ============================================================ */
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
@media (min-width: 900px) {
  .how-steps { gap: 96px; }
}

.how-steps .step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .how-steps .step {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
  }
  .how-steps .step.step-reverse .step-text { order: 2; }
  .how-steps .step.step-reverse .step-shot { order: 1; }
}

.step-text {
  max-width: 52ch;
}
.step-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--teal-bright);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--teal-bright);
}
.step-text h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.1;
}
.step-text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

.step-shot {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-screenshot);
  border: 1px solid var(--border);
  background: white;
}
.step-shot img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}
.step-shot img:hover {
  opacity: 0.92;
}
.step-shot figcaption {
  padding: 12px 18px;
  background: var(--cream);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.005em;
  line-height: 1.4;
}

/* ============================================================
   Features
   ============================================================ */
.features { background: var(--cream); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-wide {
    grid-column: span 2;
    display: grid !important;
    grid-template-columns: minmax(280px, 1fr) 1.4fr !important;
    gap: 0 !important;
  }
  .feature-wide.alt {
    grid-template-columns: 1.4fr minmax(280px, 1fr) !important;
  }
  .feature-wide.alt .feature-text { order: 2; }
  .feature-wide.alt .feature-shot { order: 1; }
}

.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-bright);
}

.feature-text {
  padding: 32px 32px 24px;
}
.feature-wide .feature-text {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-text h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.feature-text p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 50ch;
}

.feature-shot {
  padding: 0 24px 24px;
  background: var(--surface);
}
.feature-wide .feature-shot {
  padding: 0;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
}
.feature-wide.alt .feature-shot {
  border-left: 0;
  border-right: 1px solid var(--border);
}
.feature-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}
.feature-shot img:hover {
  opacity: 0.92;
}
.feature-wide .feature-shot img {
  border-radius: 0;
  border: 0;
  box-shadow: none;
  height: 100%;
  object-fit: cover;
  object-position: top;
  max-height: 460px;
}

/* ============================================================
   Beyond the bid
   ============================================================ */
.beyond-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 768px) {
  .beyond-grid { grid-template-columns: repeat(3, 1fr); }
}
.beyond-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.beyond-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-bright);
}
.beyond-shot {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream);
  aspect-ratio: 4 / 3;
}
.beyond-shot img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
}
.beyond-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.beyond-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing { background: var(--bg); }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-bright);
}
.price-card-featured {
  background: linear-gradient(180deg, var(--teal-pale), var(--surface));
  border-color: var(--teal-bright);
  box-shadow: var(--shadow-md);
}
.tier-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.price-card header { margin-bottom: 28px; }
.tier-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  margin-bottom: 4px;
  color: var(--ink);
}
.tier-price .dollar {
  font-size: 26px;
  font-weight: 700;
  position: relative;
  top: -16px;
}
.tier-price .amount {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.tier-price .period {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}
.tier-tag {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.tier-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.tier-list li {
  font-size: 15px;
  color: var(--text);
  padding-left: 28px;
  position: relative;
  line-height: 1.45;
}
.tier-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--teal-pale);
  border-radius: 50%;
}
.tier-list li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 4px;
  border-left: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  transform: rotate(-45deg);
}
.tier-cta {
  display: block;
  text-align: center;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px dashed var(--border-strong);
}
.price-card-featured .tier-cta {
  background: var(--teal);
  color: white;
  border-style: solid;
  border-color: var(--teal);
}

/* ============================================================
   About
   ============================================================ */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1000px) {
  .about-grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; }
}

.about-photo {
  position: relative;
  margin: 0;
  max-width: 460px;
  width: 100%;
  justify-self: center;
}
@media (min-width: 1000px) {
  .about-photo { justify-self: start; }
}
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  background: var(--teal-pale);
}
.about-photo figcaption {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.4;
}
.about-photo figcaption strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.about-photo figcaption span { color: var(--muted); }

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
  text-wrap: balance;
}
.about-text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 18px;
  max-width: 60ch;
}

.about-stats-row {
  list-style: none;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.about-stats-row li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-stats-row strong {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.025em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.about-stats-row span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.35;
}

/* ============================================================
   Demo form
   ============================================================ */
.demo {
  background: linear-gradient(180deg, var(--bg) 0%, var(--cream) 100%);
}
.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media (min-width: 1000px) {
  .demo-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
}
.demo-text h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: balance;
}
.demo-text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 50ch;
}
.demo-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.demo-points li {
  font-size: 15px;
  color: var(--text);
  padding-left: 28px;
  position: relative;
}
.demo-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal-pale);
}
.demo-points li::after {
  content: '';
  position: absolute;
  left: 4px; top: 9px;
  width: 8px; height: 4px;
  border-left: 1.5px solid var(--teal);
  border-bottom: 1.5px solid var(--teal);
  transform: rotate(-45deg);
}

.demo-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 600px) {
  .demo-form { padding: 44px; }
}

.demo-form .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 540px) {
  .demo-form .row { grid-template-columns: 1fr 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.005em;
}
.field .optional {
  font-weight: 400;
  color: var(--faint);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(-45deg, transparent 50%, var(--muted) 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(1, 105, 111, 0.12);
}
.field input:invalid:not(:placeholder-shown),
.field select:invalid:not([value=""]) {
  border-color: var(--border);
}

.form-foot {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}
.form-status {
  font-size: 14.5px;
  font-weight: 500;
  text-align: center;
  min-height: 22px;
}
.form-status.is-success { color: #28695A; }
.form-status.is-error { color: var(--warning); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 32px;
}
.footer-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 768px) {
  .footer-row {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
  }
}
.footer-logo {
  height: 32px;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
}
.footer-tag {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  max-width: 32ch;
  line-height: 1.4;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-nav a:hover { color: var(--light-cyan); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact p { font-size: 14.5px; }
.footer-contact a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}
.footer-contact a:hover { color: var(--light-cyan); }

.footer-fine {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}
.footer-fine .footer-credit {
  flex-basis: 100%;
  margin-top: 4px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.4);
}
.footer-fine .footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-fine .footer-credit a:hover {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Lightbox (click-to-zoom worksheet images)
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 24, 0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  cursor: default;
}
.lightbox-caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  background: rgba(0,0,0,0.55);
  padding: 6px 14px;
  border-radius: 999px;
  max-width: 90%;
  text-align: center;
  pointer-events: none;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}
@media (prefers-reduced-motion: reduce) {
  .lightbox { transition: none; }
}
