/* Self-hosted fonts, SIL Open Font License notices in /fonts/. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); }

/* =========================================================================
   Enso Dynamics — site styles for the home and offer pages
   Ported from the approved Claude Design mockups (October 2026). Section
   layout lives inline in the page markup, as in the mockups; this file holds
   the shared tokens, header, footer, form and component classes. The header
   and footer rules match styles.css so every page shares one chrome.
   ========================================================================= */

:root {
  --bg:            #FAFAF8;
  --ink:           #14171C;
  --ink-body:      #3A3D43;
  --ink-muted:     #555B64;
  --navy:          #132D4A;
  --navy-deep:     #0B1F36;
  --cobalt:        #2E6FB5;
  --on-dark:       #F4F4F1;
  --on-dark-muted: #A8ADB7;
  --on-dark-faint: #6F757F;
  --line:          rgba(20, 23, 28, 0.10);
  --line-strong:   rgba(20, 23, 28, 0.20);
  --line-faint:    rgba(20, 23, 28, 0.06);
  --maxw:          1180px;
  --radius:        4px;
  --radius-lg:     8px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0; letter-spacing: -0.018em; }
p { margin: 0; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--cobalt); }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }

::selection { background: rgba(46, 111, 181, 0.16); }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 3px;
}

.container,
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.75rem);
}

/* ---------- Header / nav (matches styles.css) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.90);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line-faint);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; height: clamp(40px, 5vw, 46px); width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2rem);
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a.nav-cta {
  color: var(--navy);
  padding: 0.58rem 1.1rem;
  border: 1px solid rgba(20, 23, 28, 0.2);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a.nav-cta:hover { border-color: var(--navy); color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--ink);
}

/* ---------- Components (from the mockups) ---------- */

.marker{display:inline-flex;align-items:center;gap:14px;font-size:12.5px;font-weight:600;text-transform:uppercase;letter-spacing:0.18em;color:#555B64;margin-bottom:22px}
.marker-line{display:inline-block;width:32px;height:2px;border-radius:2px;background:linear-gradient(125deg,#3F8AD0 0%,#1E3A63 52%,#14181E 100%)}
.dark{background:#11141A;color:#A8ADB7}
.dark h1,.dark h2,.dark h3,.dark h4{color:#F4F4F1}
.dark .marker{color:#A8ADB7}
.dark .marker-line{background:linear-gradient(90deg,#7FB1E8 0%,#2E6FB5 100%)}
.accent{color:#132D4A;position:relative;display:inline-block}
.accent::after{content:"";position:absolute;left:0;right:0;bottom:0.05em;height:3px;background:#2E6FB5;opacity:0.55;border-radius:2px}
.dark .accent{color:#BCD7F0}
.dark .accent::after{background:#7FB1E8;opacity:0.7}

/* Dark bands: cobalt glow, a faint ring and the ensō watermark, as on the original site. */
.dark-deco {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(46, 111, 181, 0.20), transparent 34rem),
    linear-gradient(135deg, #10141B 0%, #11141A 52%, #182130 100%);
}
.dark-deco::before {
  content: "";
  position: absolute;
  left: max(-7rem, calc((100vw - var(--maxw)) / 2 - 9rem));
  top: clamp(2rem, 8vw, 6rem);
  width: clamp(180px, 22vw, 310px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 64%);
  opacity: 0.55;
  pointer-events: none;
}
.dark-deco > .wrap { position: relative; z-index: 1; }
.section-watermark {
  position: absolute;
  right: -6%;
  bottom: -16%;
  width: clamp(280px, 42vw, 560px);
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}
.h2{font-size:clamp(32px,3.9vw,48px);font-weight:600;line-height:1.14;letter-spacing:-0.022em;max-width:24ch}
.lead{font-size:clamp(17px,1.45vw,19px);line-height:1.65;max-width:60ch}
.serif{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-weight:400}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:0.16em;text-transform:uppercase;color:#2E6FB5}
.label-sm{font-size:11.5px;font-weight:600;letter-spacing:0.1em;text-transform:uppercase;color:#555B64}

.btn{display:inline-flex;align-items:center;gap:9px;padding:15px 27px;border-radius:4px;border:1px solid transparent;font-size:15px;font-weight:500;text-decoration:none;min-height:48px;box-sizing:border-box;cursor:pointer;font-family:inherit}
.btn-primary{background:#132D4A;color:#FAFAF8;border-color:#132D4A}
.btn-primary:hover{background:#0B1F36;color:#FAFAF8}
.btn-secondary{background:transparent;color:#14171C;border-color:rgba(20,23,28,0.2)}
.btn-secondary:hover{color:#132D4A;border-color:#132D4A}
.btn-on-dark{background:#F4F4F1;color:#11141A;border-color:#F4F4F1}
.btn-on-dark:hover{background:#FFFFFF;color:#11141A}
.btn:disabled{opacity:0.6;cursor:not-allowed}
.textlink{font-size:15px;font-weight:600;color:#132D4A;text-decoration:none}
.textlink:hover{color:#2E6FB5}
.offer-name{color:#2E6FB5;text-decoration:none;transition:color 0.2s}
.offer-name:hover{color:#132D4A;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}

.card{background:#FFFFFF;border:1px solid rgba(20,23,28,0.10);border-radius:8px;box-shadow:0 18px 55px -42px rgba(13,32,56,0.38)}
.offer-tile{display:flex;flex-direction:column;gap:6px;padding:20px 22px;border-radius:6px;background:#FFFFFF;border:1px solid rgba(20,23,28,0.08);text-decoration:none;color:#3A3D43;box-sizing:border-box}
.offer-tile:hover{border-color:#2E6FB5;color:#3A3D43}
.fits li{position:relative;padding:12px 0 12px 26px;border-top:1px solid rgba(20,23,28,0.08);font-size:15.5px;line-height:1.55;color:#3A3D43}
.fits li::before{content:"";position:absolute;left:2px;top:23px;width:12px;height:2px;background:#2E6FB5;border-radius:2px}
.step{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;padding:14px 0;border-top:1px solid rgba(22,20,15,0.12)}
.step-name{padding-top:3px;color:#B63E28;font-size:12px;font-weight:600;letter-spacing:0.16em;text-transform:uppercase}
.step-body{color:#4B463D;font-size:15.5px;line-height:1.6}
.seg{flex-basis:0;flex-shrink:1;height:100%;border-radius:2px}
.chip{display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;border-radius:4px;font-size:13px;font-weight:500;line-height:1.3;box-sizing:border-box}
.chip-muted{background:#FFFFFF;border:1px solid rgba(20,23,28,0.14);color:#555B64}
.chip-navy{background:#132D4A;color:#F4F4F1}
.arrow{color:#9AA7B6;font-size:16px;flex:none}
.stair{flex:none}

/* Hero artwork: soft edges so it blends into the hero ground on wide screens. */
.hero-art {
  opacity: 0.94;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}

/* ---------- Contact form ---------- */

.field{display:flex;flex-direction:column;gap:8px;min-width:0}
.field-label{font-size:13.5px;font-weight:600;color:#F4F4F1}
.input{width:100%;box-sizing:border-box;min-height:48px;padding:12px 14px;background:#11141A;border:1px solid rgba(255,255,255,0.18);border-radius:4px;color:#F4F4F1;font-family:inherit;font-size:15px}
.input:focus{outline:none;border-color:#7FB1E8}
.radio{display:flex;align-items:center;gap:10px;min-height:46px;padding:10px 14px;border:1px solid rgba(255,255,255,0.18);border-radius:4px;color:#F4F4F1;font-size:14.5px;line-height:1.35;box-sizing:border-box;cursor:pointer}

/* Honeypot: visually and physically removed, still reachable by naive bots. */
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.contact-form.is-hidden { display: none; }
.form-status { min-height: 1.4em; font-size: 0.92rem; color: var(--on-dark-muted); }
.form-status:empty { display: none; }
.form-status.error { color: #F2A6A6; }
.form-success {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}
.form-success:focus { outline: none; }
.form-success-title { color: var(--on-dark); font-size: 1.25rem; margin-bottom: 0.5rem; }
.form-success p { color: var(--on-dark-muted); }

/* ---------- Footer (matches styles.css) ---------- */

.site-footer {
  background: linear-gradient(180deg, #11141A 0%, #0D1016 100%);
  color: var(--on-dark-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: clamp(3rem, 5vw, 4.5rem) clamp(1.75rem, 3vw, 2.5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-brand { display: flex; align-items: flex-start; gap: 1rem; }
.footer-mark { width: 40px; height: 40px; opacity: 0.85; }
.footer-wordmark {
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--on-dark);
  margin-bottom: 0.35rem;
}
.footer-tagline { color: var(--on-dark-muted); font-size: 0.95rem; line-height: 1.55; max-width: 32ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.footer-col-heading {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--on-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.95rem; color: var(--on-dark-muted); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(1.5rem, 3vw, 2rem);
}
.footer-copy { color: var(--on-dark-faint); font-size: 0.85rem; }
.footer-meta { color: var(--on-dark-faint); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -24px rgba(15, 39, 71, 0.4);
  }
  .primary-nav.is-open { display: block; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(1.25rem, 5vw, 2.5rem) 1rem;
  }
  .nav-links a { display: block; padding: 0.85rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a.nav-cta { border: 1px solid transparent; padding: 0.85rem 0; }
}

@media (max-width: 860px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero-art-box { display: none; }
}

@media (max-width: 820px) {
  .stat-col { border-left: 0 !important; }
  .stair { display: none; }
}

@media (max-width: 560px) {
  .footer-nav { grid-template-columns: 1fr; }
  .dark-deco::before { display: none; }
}

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