/* ============================================================
   IThero 2026 — Global Design System
   ============================================================ */

/* --- Design tokens (CSS custom properties) --- */
:root {
  /* Brand colours */
  --red:        #c53221;
  --red-light:  color-mix(in oklch, #c53221 70%, white);
  --red-glow:   color-mix(in oklch, #c53221 40%, transparent);
  --gold:       #f7a400;
  --dark:       #0d0d1a;
  --dark-2:     #12122a;
  --dark-3:     #1a1a3e;
  --surface:    rgba(255 255 255 / 0.04);
  --surface-2:  rgba(255 255 255 / 0.08);
  --border:     rgba(255 255 255 / 0.10);
  --text:       #f0f0f0;
  --text-muted: #9999bb;
  --white:      #ffffff;

  /* Typography */
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Fluid type scale */
  --text-xs:   clamp(0.75rem,  1.5vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 1.8vw, 1rem);
  --text-base: clamp(1rem,     2vw,   1.125rem);
  --text-lg:   clamp(1.125rem, 2.2vw, 1.375rem);
  --text-xl:   clamp(1.375rem, 2.8vw, 1.75rem);
  --text-2xl:  clamp(1.75rem,  3.5vw, 2.5rem);
  --text-3xl:  clamp(2.25rem,  5vw,   3.5rem);
  --text-hero: clamp(2.75rem,  7vw,   5rem);

  /* Spacing */
  --gap-xs:  0.5rem;
  --gap-sm:  1rem;
  --gap-md:  2rem;
  --gap-lg:  4rem;
  --gap-xl:  6rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  /* Shadows */
  --shadow-glow: 0 0 40px var(--red-glow);
  --shadow-card: 0 4px 24px rgba(0 0 0 / 0.4);

  /* Transitions */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:   0.4s;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  /* Noise texture overlay */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  height: 68px;
  background: rgba(13 13 26 / 0.80);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease-out);
}

.site-header .logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  flex-wrap: wrap;
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease-out);
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--duration) var(--ease-out);
}

.site-nav a:hover {
  color: var(--white);
}

.site-nav a:hover::after {
  width: 100%;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--dark-2);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: var(--text-lg); }

  /* Light mode mobile nav panel gets a solid background */
  body.light .site-nav {
    background: #e8e8f0;
  }
}

/* ============================================================
   CTA BUTTON
   ============================================================ */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65em 1.5em;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: transform var(--duration) var(--ease-bounce),
              box-shadow var(--duration) var(--ease-out),
              background var(--duration) var(--ease-out);
  will-change: transform;
  white-space: nowrap;
  text-decoration: none;
}

.cta-button:hover {
  background: color-mix(in oklch, var(--red) 85%, black);
  box-shadow: 0 0 24px var(--red-glow), 0 4px 16px rgba(0 0 0 / 0.4);
  transform: translateY(-2px) scale(1.03);
}

.cta-button:active {
  transform: translateY(0) scale(0.98);
}

.cta-button.secondary {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}

.cta-button.secondary:hover {
  border-color: var(--red);
  color: var(--white);
  box-shadow: none;
  background: var(--surface);
}

/* ============================================================
   SECTION SPACING
   ============================================================ */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 620px;
}

/* ============================================================
   SCROLL-DRIVEN ANIMATIONS (CSS-native, no JS)
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    translate: 0 40px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    scale: 0.92;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

/* Apply to any element with .reveal */
.reveal {
  animation: fadeUp linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
}

.reveal-scale {
  animation: scaleIn linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 35%;
}

.reveal-fade {
  animation: fadeIn linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

/* Stagger siblings */
.stagger > * {
  animation: fadeUp linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;
}

.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 80ms; }
.stagger > *:nth-child(3) { animation-delay: 160ms; }
.stagger > *:nth-child(4) { animation-delay: 240ms; }
.stagger > *:nth-child(5) { animation-delay: 320ms; }
.stagger > *:nth-child(6) { animation-delay: 400ms; }
.stagger > *:nth-child(7) { animation-delay: 480ms; }
.stagger > *:nth-child(8) { animation-delay: 560ms; }
.stagger > *:nth-child(9) { animation-delay: 640ms; }

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.glass-card:hover {
  background: var(--surface-2);
  border-color: rgba(197 50 33 / 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 20px rgba(197 50 33 / 0.1);
}

/* ============================================================
   BENTO GRID
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-cell {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* span helpers */
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}

.site-footer p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ============================================================
   STATUS PILL
   ============================================================ */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3em 0.85em;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  background: rgba(255 255 255 / 0.07);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.status-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.status-pill.is-open {
  color: #4ade80;
  border-color: rgba(74 222 128 / 0.25);
  background: rgba(74 222 128 / 0.08);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
textarea,
select {
  padding: 0.7em 1em;
  background: var(--input-bg, #1a1a2e);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  transition: border-color var(--duration) var(--ease-out);
  outline: none;
}

/* Dropdown options need a solid background — rgba leaks through on native panels */
select option {
  background: #1a1a2e;
  color: #f0f0f0;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--red);
}

/* Light mode: swap inputs to a plain white/near-white surface */
body.light input[type="text"],
body.light input[type="email"],
body.light textarea,
body.light select {
  --input-bg: #ffffff;
  background: #ffffff;
  color: #1a1a2e;
}

body.light select option {
  background: #ffffff;
  color: #1a1a2e;
}

textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   HERO CANVAS
   ============================================================ */
#heroCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
  gap: 1.25rem;
}

.hero-tagline {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 0.8s var(--ease-out) both;
}

.hero-tagline::before,
.hero-tagline::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--red);
  opacity: 0.6;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  max-width: 900px;
  animation: fadeUp 0.9s var(--ease-out) 0.15s both;
}

.hero-title .accent {
  color: var(--red);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  animation: fadeUp 0.9s var(--ease-out) 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.9s var(--ease-out) 0.45s both;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeIn 1s var(--ease-out) 1s both;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollLine 2s var(--ease-out) infinite;
}

@keyframes scrollLine {
  0%   { scaleY: 0; transform-origin: top; opacity: 1; }
  50%  { scaleY: 1; transform-origin: top; opacity: 1; }
  51%  { transform-origin: bottom; }
  100% { scaleY: 0; transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   PROJECTS GRID
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.project-card:hover {
  background: var(--surface-2);
  border-color: rgba(197 50 33 / 0.4);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.project-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  object-position: left;
  border-radius: 8px;
}

.project-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
}

.project-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pricing-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), 0 0 30px var(--red-glow);
  border-color: rgba(197 50 33 / 0.5);
}

.pricing-card.featured {
  border-color: var(--red);
  background: rgba(197 50 33 / 0.06);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Best Value';
  position: absolute;
  top: -12px;
  left: 50%;
  translate: -50% 0;
  background: var(--red);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25em 1em;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pricing-card h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
}

.price {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--white);
}

.price span {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card .tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
}

.pricing-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-card li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}

.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.pricing-card .ideal {
  font-size: var(--text-xs);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
}

/* ============================================================
   SERVICES TABLE
   ============================================================ */
.services-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: var(--text-sm);
}

.services-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--red);
  color: var(--red);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.services-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

.services-table tr:last-child td {
  border-bottom: none;
}

.services-table tr:hover td {
  background: var(--surface);
}

.best-for {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255 255 255 / 0.35);
  margin-top: 0.3rem;
}

.service-action {
  display: inline-flex;
  padding: 0.4em 1em;
  background: var(--red);
  color: white;
  border-radius: var(--radius-xl);
  font-size: var(--text-xs);
  font-weight: 700;
  transition: background var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
  white-space: nowrap;
}

.service-action:hover {
  background: color-mix(in oklch, var(--red) 80%, black);
  box-shadow: 0 0 16px var(--red-glow);
}

/* Accordion section */
.service-category {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  overflow: hidden;
  background: var(--surface);
}

.service-category-heading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  gap: 1rem;
}

.service-category-heading h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
}

.service-category-body {
  display: none;
  padding: 0 1.75rem 1.75rem;
  overflow-x: auto;
}

.service-category.is-open .service-category-body { display: block; }

.service-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--red);
}

.service-subheading {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--white);
  margin: 2rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--red);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info p {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.contact-info a {
  color: var(--red);
  transition: opacity 0.2s;
}

.contact-info a:hover { opacity: 0.8; }

.contact-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form-wrap button[type="submit"] {
  align-self: flex-start;
}

/* ============================================================
   BEFORE/AFTER SLIDER
   ============================================================ */
.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  cursor: ew-resize;
  user-select: none;
  aspect-ratio: 16 / 9;
  max-width: 820px;
  margin: 0 auto;
  background: var(--dark-2);
}

.ba-before,
.ba-after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-after {
  clip-path: inset(0 50% 0 0);
  background: var(--dark-3);
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: var(--red);
  translate: -50% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ba-handle::before,
.ba-handle::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 20px var(--red-glow);
}

.ba-label {
  position: absolute;
  top: 1rem;
  padding: 0.3em 0.9em;
  background: rgba(0 0 0 / 0.65);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ba-label-before { left: 1rem; }
.ba-label-after  { right: 1rem; }

/* ============================================================
   ROI CALCULATOR
   ============================================================ */
.roi-calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 760px) {
  .roi-calc { grid-template-columns: 1fr; }
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.roi-output {
  padding: 2rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.roi-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}

.roi-result-row:last-child { border-bottom: none; }

.roi-result-label {
  color: var(--text-muted);
  font-weight: 600;
}

.roi-result-value {
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-lg);
}

.roi-result-value.highlight {
  color: var(--red);
  font-size: var(--text-xl);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-body {
  max-width: 780px;
}

.about-body h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--red);
}

.about-body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

/* ============================================================
   AVAILABILITY CARD
   ============================================================ */
.avail-card {
  max-width: 520px;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.avail-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
}

.avail-sub { font-size: var(--text-sm); color: var(--text-muted); }
.avail-window { font-size: var(--text-xs); color: var(--text-muted); }
.avail-note { font-size: var(--text-xs); color: var(--text-muted); font-style: italic; }

/* ============================================================
   PLANNER
   ============================================================ */
.planner-wrap {
  padding: 2rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.planner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.feature-grid label {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.palette-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1rem 0;
}

legend {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--red);
  padding: 0 0.5rem;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.scope-card {
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.scope-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.scope-value {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--white);
}

.planner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.planner-output {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.8;
}

.conditional-questions { margin: 1rem 0; }

/* ============================================================
   VIEW TRANSITIONS
   ============================================================ */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: 350ms var(--ease-out) both fadeOut;
}

::view-transition-new(root) {
  animation: 350ms var(--ease-out) both fadeIn;
}

@keyframes fadeOut {
  to { opacity: 0; translate: 0 -12px; }
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.text-red    { color: var(--red); }
.text-muted  { color: var(--text-muted); }
.text-white  { color: var(--white); }
.fw-800      { font-weight: 800; }
.mt-sm       { margin-top: var(--gap-sm); }
.mt-md       { margin-top: var(--gap-md); }

/* Theme light override (dark-first site) */
body.light {
  --dark:       #f4f4f8;
  --dark-2:     #e8e8f0;
  --dark-3:     #dcdcec;
  --surface:    rgba(0 0 0 / 0.04);
  --surface-2:  rgba(0 0 0 / 0.07);
  --border:     rgba(0 0 0 / 0.12);
  --text:       #1a1a2e;
  --text-muted: #444466;
  --white:      #0d0d1a;
}

/* Light mode header — switch to a light frosted glass background */
body.light .site-header {
  background: rgba(244 244 248 / 0.92);
  border-bottom-color: rgba(0 0 0 / 0.10);
}

/* Light mode nav links — readable on light header */
body.light .site-nav a {
  color: #333355;
}
body.light .site-nav a:hover {
  color: #0d0d1a;
}

/* Light mode nav-toggle icon */
body.light .nav-toggle {
  color: #1a1a2e;
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--duration) var(--ease-out),
              background var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out);
  white-space: nowrap;
}
.theme-toggle:hover {
  color: var(--white);
  border-color: var(--red);
}

/* Light mode: strip the box — render it like a plain nav link */
body.light .theme-toggle {
  background: transparent;
  border-color: transparent;
  color: #333355;
}
body.light .theme-toggle:hover {
  color: #0d0d1a;
  border-color: var(--red);
}

.theme-icon-moon { display: none; }
body.light .theme-icon-sun  { display: none; }
body.light .theme-icon-moon { display: block; }

/* Contact form prefill note */
.smart-note {
  font-size: var(--text-sm);
  color: var(--gold);
  background: rgba(247 164 0 / 0.08);
  border: 1px solid rgba(247 164 0 / 0.25);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  margin-bottom: .5rem;
}

/* Bento service icon */
.bento-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--red);
}
