
/* Preview v3. Original style.css was not modified. */
:root { color-scheme: light; }
/* Header: a compact, readable theme action. */
.site-header { min-height: 76px; gap: 18px; }
.brand { gap: 12px; font-size: 16px; }
.brand-mark { width: 40px; height: 40px; }
nav { gap: clamp(14px,2.1vw,33px); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header-actions .header-cta { justify-self: auto; white-space: nowrap; padding: 13px 18px; font-size: 13px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); font: 700 13px/1 Arial, sans-serif; cursor: pointer; white-space: nowrap; transition: border-color .18s; }
.theme-toggle:hover { border-color: var(--blue); }
.theme-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.theme-icon-sun { display: none; }
/* First viewport: original hero copy across the width; original infographic 2/3; founder 1/3. */
.hero { max-width: 1440px; min-height: 0; display: block; padding: 15px 38px 18px; overflow: visible; }
.grid-lines { inset: 0 0 0 0; opacity: .3; mask-image: linear-gradient(to bottom,#000,transparent 65%); }
.hero-copy { width: 100%; }
.hero-copy .eyebrow { margin: 0 0 9px; font-size: 11px; }
.hero h1 { max-width: none; font-size: clamp(36px,3.35vw,48px); line-height: 1.02; letter-spacing: -.048em; }
.hero-lead { max-width: 980px; font-size: 15px; line-height: 1.44; margin: 13px 0 0; }
.hero-actions { margin-top: 14px; gap: 25px; }
.hero-actions .button-primary { min-height: 43px; padding: 0 19px; font-size: 13px; }
.hero-actions .text-link { font-size: 13px; }
.hero-lower { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 18px; margin-top: 16px; align-items: stretch; position: relative; z-index: 1; }
.hero-lower .result-card { min-width: 0; border-radius: 12px; box-shadow: 0 12px 34px rgba(36,58,96,.09); }
.hero-lower .result-card-head { height: 36px; padding: 0 18px; font-size: 11px; }
.hero-lower .metrics { gap: 9px; padding: 0 18px 8px; }
.hero-lower .metrics article { min-height: 58px; padding: 11px 12px; gap: 4px; border-radius: 7px; }
.hero-lower .metrics strong { font-size: clamp(24px,2.35vw,35px); }
.hero-lower .metrics span { font-size: 12px; }
.hero-lower .chart { height: 101px; margin: 1px 20px 17px 52px; background-size: 100% 32px; }
.hero-lower .chart svg { inset: 8px 7px 17px 5px; width: calc(100% - 12px); height: calc(100% - 24px); }
.hero-lower .chart-labels,.hero-lower .weeks { font-size: 9px; }
.hero-lower .result-note { min-height: 32px; padding: 0 18px; font-size: 11px; }
.hero-lower .result-note i { width: 7px; height: 7px; }
.hero-founder { min-width: 0; overflow: hidden; display: grid; grid-template-columns: 43% minmax(0,1fr); border-radius: 12px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 34px rgba(36,58,96,.06); }
.hero-founder-photo { overflow: hidden; background: #0b1b30; }
.hero-founder-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 58% 30%; }
.hero-founder-info { min-width: 0; padding: 17px 13px 14px; display: flex; flex-direction: column; align-items: start; justify-content: center; }
.founder-kicker { color: var(--blue); font: 700 10px/1.4 'Courier New',monospace; letter-spacing: .09em; }
.hero-founder h2 { font-size: clamp(21px,2.2vw,31px); letter-spacing: -.045em; line-height: 1.05; margin: 12px 0 8px; }
.hero-founder p { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0 0 11px; }
.hero-founder .text-link { font-size: 12px; margin-top: 3px; }
/* Wider founder block at the end, still concise. */
.founder-section { display: grid; grid-template-columns: minmax(220px,.55fr) minmax(0,1.45fr); gap: clamp(30px,6vw,100px); padding-top: 70px; padding-bottom: 70px; border-top: 1px solid var(--line); }
.founder-full-photo { height: 330px; overflow: hidden; border-radius: 12px; background: #0e2035; }
.founder-full-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 53% 30%; }
.founder-full-copy { align-self: center; }
.founder-full-copy .eyebrow { margin-bottom: 16px; }
.founder-full-copy h2 { font-size: clamp(38px,4vw,58px); }
.founder-full-copy .founder-role { font-size: 14px; color: var(--blue); font-weight: 700; margin: 15px 0 24px; }
.founder-full-copy p:not(.eyebrow):not(.founder-role) { color: var(--muted); font-size: 16px; line-height: 1.62; max-width: 730px; margin: 0 0 14px; }
.founder-full-copy .text-link { display: inline-block; font-size: 14px; margin-top: 8px; }
/* Explicit dark theme only; light is always default. */
:root[data-theme='dark'] { color-scheme: dark; --ink: #eef3ff; --muted: #a9b8cb; --line: #2a3b54; --surface: #112034; --canvas: #0a1524; --blue: #8eb0ff; --green: #49cb7a; }
:root[data-theme='dark'] .site-header { background: rgba(11,22,38,.94); }
:root[data-theme='dark'] nav a { color: #d2def2; }
:root[data-theme='dark'] .grid-lines { background-image: linear-gradient(#23344c 1px,transparent 1px),linear-gradient(90deg,#23344c 1px,transparent 1px); }
:root[data-theme='dark'] .hero-lower .result-card { background: rgba(17,32,52,.97); border-color: var(--line); box-shadow: 0 12px 34px rgba(0,0,0,.18); }
:root[data-theme='dark'] .metrics article { background: linear-gradient(145deg,#182940,#122235); }
:root[data-theme='dark'] .metrics span, :root[data-theme='dark'] .live, :root[data-theme='dark'] .result-note, :root[data-theme='dark'] .clean-list, :root[data-theme='dark'] .measurement-row strong { color: var(--ink); }
:root[data-theme='dark'] .chart { background-image: linear-gradient(#293d58 1px, transparent 1px); }
:root[data-theme='dark'] .chart circle { fill: var(--surface); }
:root[data-theme='dark'] .chart-labels,:root[data-theme='dark'] .weeks { color: #9cacc5; }
:root[data-theme='dark'] .stage-strip { background: #0f1e31; }
:root[data-theme='dark'] .outcome-grid article { background: rgba(17,32,52,.7); }
:root[data-theme='dark'] .architecture { background: #0e1e31; }
:root[data-theme='dark'] .flow article { border-color: #405875; }
:root[data-theme='dark'] .journey { background: #060f1d; }
:root[data-theme='dark'] .measurement-card { background: #112137; }
:root[data-theme='dark'] .contact { background: #10213b; border-top-color: var(--line); }
:root[data-theme='dark'] .contact-panel { background: #112034; border-color: var(--line); }
:root[data-theme='dark'] footer { background: #0f1d30; }
:root[data-theme='dark'] .theme-toggle { background: #1a2e49; color: #edf4ff; }
:root[data-theme='dark'] .theme-icon-moon { display: none; }
:root[data-theme='dark'] .theme-icon-sun { display: block; }
:root[data-theme='dark'] .site-header.is-scrolled { box-shadow: 0 10px 32px rgba(0,0,0,.28); }
@media (max-width: 1200px) {
  .site-header { grid-template-columns: 1fr auto; gap: 13px; }
  .site-header nav { display:none; }
  .hero-founder { grid-template-columns: 38% minmax(0,1fr); }
}
@media (max-width: 880px) {
  .hero { padding: 30px 24px 40px; }
  .hero-lower { grid-template-columns: 1fr; }
  .hero-founder { min-height: 220px; grid-template-columns: 210px 1fr; }
  .hero-founder-info { padding: 24px; }
  .hero-founder h2 { font-size: 32px; }
  .hero-founder p { font-size: 15px; }
  .founder-section { grid-template-columns: 1fr; gap: 26px; }
  .founder-full-photo { max-width: 440px; }
}
@media (max-width: 600px) {
  .site-header { min-height: 70px; padding: 8px 16px; grid-template-columns: minmax(0,1fr) auto; }
  .site-header .brand { font-size: 11px; gap: 7px; }
  .site-header .brand-mark { width: 32px; height: 32px; }
  .header-actions { gap: 6px; }
  .header-actions .header-cta { display: none; }
  .theme-toggle { min-height: 38px; padding: 0 9px; gap: 6px; font-size: 12px; }
  .hero { padding: 27px 18px 34px; }
  .hero h1 { font-size: clamp(35px,9.4vw,46px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { gap: 16px; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .hero-lower { margin-top: 26px; gap: 20px; }
  .hero-lower .metrics { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; padding: 0 10px 9px; }
  .hero-lower .metrics article { min-height: 66px; padding: 8px; }
  .hero-lower .metrics strong { font-size: clamp(20px,6.5vw,30px); }
  .hero-lower .metrics span { font-size: 10px; }
  .hero-lower .chart { height: 140px; }
  .hero-lower .result-note { padding: 8px 12px; line-height: 1.35; }
  .hero-founder { min-height: 235px; grid-template-columns: 41% 59%; }
  .hero-founder-info { padding: 15px; }
  .hero-founder h2 { font-size: 25px; }
  .hero-founder p { font-size: 12.5px; }
  .founder-section { padding-top: 65px; padding-bottom: 65px; }
  .founder-full-photo { height: 320px; }
}
@media (max-width: 350px) {
  .brand span:last-child { font-size: 10px; }
  .hero-founder { grid-template-columns: 40% 60%; }
  .hero-founder-info { padding: 10px; }
  .hero-founder h2 { font-size: 22px; }
  .hero-founder p { font-size: 12px; }
  .hero h1 { font-size: 31px; }
  .hero-lower .metrics strong { font-size: 19px; }
  .hero-lower .metrics span { font-size: 9px; }
  .hero-lower .metrics article { min-height: 61px; padding: 5px; }
  .hero-lower .result-card-head { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .theme-toggle { transition: none; } }
/* Narrow-screen guard: original architecture flow must not force horizontal scrolling. */
@media (max-width: 720px) {
  .architecture { grid-template-columns: minmax(0,1fr); }
  .architecture-copy, .flow { min-width: 0; }
  .flow article { grid-template-columns: 36px minmax(0,1fr); }
  .flow article div { min-width: 0; }
  .flow article strong { overflow-wrap: anywhere; }
}

/* Preview V4 refined: all available width now belongs to the ORIGINAL headline.
   Original headline wording, original infographic, and founder card are unchanged. */
.hero-copy { width: 100%; max-width: none; }
.hero h1 { width: 100%; max-width: none; font-size: clamp(40px, 4vw, 56px); line-height: 1.04; letter-spacing: -.047em; text-wrap: balance; }

/* Action-oriented and contrast-safe theme switch: dark button in light theme,
   light button in dark theme. The label always names the target theme. */
:root[data-theme='light'] .theme-toggle,
:root:not([data-theme]) .theme-toggle {
  background: #132033;
  color: #ffffff;
  border-color: #132033;
  box-shadow: 0 4px 12px rgba(10, 24, 45, .12);
}
:root[data-theme='light'] .theme-toggle:hover,
:root:not([data-theme]) .theme-toggle:hover {
  background: #233952;
  border-color: #233952;
}
:root[data-theme='dark'] .theme-toggle {
  background: #f7faff;
  color: #122034;
  border-color: #f7faff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
:root[data-theme='dark'] .theme-toggle:hover {
  background: #e8eff9;
  border-color: #e8eff9;
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(34px, 9.1vw, 46px); text-wrap: pretty; }
}


/* Accent color cycler: compact dot to the left of theme toggle. */
:root {
  --accent-soft: rgba(21, 91, 255, .16);
  --accent-soft-2: rgba(21, 91, 255, .10);
  --accent-glow: rgba(21, 91, 255, .26);
  --accent-gradient-top: rgba(21, 91, 255, .18);
  --accent-gradient-bottom: rgba(21, 91, 255, 0);
}
.header-actions { gap: 10px; }
.accent-toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.accent-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
  box-shadow: 0 8px 20px var(--accent-soft);
}
.accent-toggle:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.accent-toggle-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--next-accent, var(--blue));
  box-shadow: 0 0 0 4px var(--accent-soft-2), 0 0 18px var(--next-accent, var(--blue));
  transition: background-color .08s linear, box-shadow .08s linear;
}
.button-primary,
.header-cta,
.text-link,
nav a:hover,
.metrics strong,
.outcome-grid article > span,
.system-list article > span,
.journey-grid span,
.contact-kicker,
.founder-kicker,
.founder-full-copy .founder-role,
.eyebrow,
.clean-list span,
.measurement-row .blue,
.stage-number,
.hero-founder .text-link,
.founder-full-copy .text-link,
.contact-panel .button-primary {
  color: var(--blue);
}
.button-primary,
.contact-button {
  background: var(--blue);
  box-shadow: 0 14px 34px var(--accent-glow);
}
.button-primary:hover,
.contact-button:hover {
  box-shadow: 0 18px 38px var(--accent-glow);
}
.header-cta {
  border-color: var(--blue);
  color: var(--blue);
}
.theme-toggle:hover,
.accent-toggle:hover,
.header-cta:hover {
  border-color: var(--blue);
}
.hero-founder,
.hero-lower .result-card,
.founder-full-photo,
.contact-panel {
  box-shadow: 0 12px 34px var(--accent-soft-2);
}
.hero-lower .metrics article {
  background: linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--surface) 78%, var(--blue) 8%));
}
.chart-line {
  stroke: var(--blue);
}
.chart circle {
  stroke: var(--blue);
}
.chart-area {
  fill: var(--chart-area-fill, url(#area));
}
.stage-strip article:first-child,
.outcome-grid,
.system-list,
.founder-section,
.contact {
  border-color: var(--line);
}
.hero-lower .live i,
.hero-lower .result-note i,
.measurement-head i {
  background: color-mix(in srgb, var(--blue) 72%, #3de18a 28%);
}
.result-card .chart stop[offset="0"] { stop-color: var(--blue); stop-opacity: .18; }
.result-card .chart stop[offset="1"] { stop-color: var(--blue); stop-opacity: 0; }
:root[data-theme='dark'] .accent-toggle {
  background: #13233a;
  border-color: #28405f;
}
:root[data-theme='dark'] .accent-toggle:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .26);
}
:root[data-theme='dark'] .hero-lower .metrics article {
  background: linear-gradient(145deg, color-mix(in srgb, #182940 84%, var(--blue) 8%), color-mix(in srgb, #122235 90%, var(--blue) 10%));
}
:root[data-theme='dark'] .button-primary,
:root[data-theme='dark'] .contact-button { color: white; }
@media (max-width: 600px) {
  .accent-toggle {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }
  .accent-toggle-dot {
    width: 14px;
    height: 14px;
  }
}


/* Multicolor bugfix: readable white button labels in every accent hue.
   55% accent + 45% navy ensures white text contrast >= 4.5:1 on all five colors. */
:root .button-primary,
:root .contact-button {
  color: #ffffff;
  background-color: color-mix(in srgb, var(--blue) 55%, #0c2542 45%);
  box-shadow: 0 14px 34px var(--accent-glow);
}
:root .button-primary:hover,
:root .contact-button:hover {
  color: #ffffff;
  box-shadow: 0 18px 38px var(--accent-glow);
}
:root[data-theme='light'] .header-cta {
  color: color-mix(in srgb, var(--blue) 55%, #0c2542 45%);
}
:root[data-theme='dark'] .header-cta {
  color: #e9f4ff;
}
