/* Zolvine — base styles, plus the hover/focus states and breakpoints that the
   .dc.html design expressed with style-hover / style-focus attributes and
   sc-if conditions. State rules use !important, exactly as the design runtime
   does, so they win over the inline styles they modify. */

:root {
  --bg-dark: #142331;
  --bg-card-dark: #1B2D3E;
  --border-dark: #2F4457;
  --text-cream: #F1ECDD;
  --text-muted: #A9B1BA;
  --bg-light: #F1ECDD;
  --text-dark: #142331;
  --text-muted-dark: #4E5E6E;
  --border-light: rgba(20,35,49,.16);
  --accent: #4256C8;
  --accent-light: #8EA2FF;
  --error: #E2645A;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  font-family: Archivo, sans-serif;
}

/* Clip sideways overflow without turning the wrapper into a scroll container
   (overflow-x:hidden would), which keeps the sticky header sticky. */
.page { overflow-x: clip; }

a { color: var(--accent); text-underline-offset: 3px; }
::selection { background: var(--accent); color: var(--text-cream); }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }

/* ---------- Header / nav ---------- */
.site-nav { display: flex; }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; grid-column: 3; }

@media (max-width: 1080px) {
  .site-nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

.nav-link { color: var(--text-muted); }
.nav-link > span { padding: 4px 0; border-bottom: 1.5px solid transparent; }
.nav-link:hover { color: var(--text-cream) !important; }
.nav-link.is-active { color: var(--text-cream); }
.nav-link.is-active > span { border-bottom-color: var(--text-cream); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 50;
  display: none; flex-direction: column;
  overflow-y: auto;
  background: var(--bg-dark);
  padding: 24px var(--side, clamp(22px,6.2vw,96px)) 40px;
}
.mobile-menu.is-open { display: flex; }
.menu-dot { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light); }
.menu-link.is-active .menu-dot { display: block; }

/* ---------- Card and step grids ----------
   The four-item rows (hero strip, "What Zolvine builds", process steps, product formats) go
   4 → 2 → 1 columns and the three "Who Zolvine helps" cards go 3 → 1, so no
   item is left alone on a row at tablet widths. Breakpoints sit where the
   design's own minimum column widths stop fitting. Browsers without container
   queries keep the design's original auto-fit grids. */
.hero-strip { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.who-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.build-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.process-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

@supports (container-type: inline-size) {
  .cq { container-type: inline-size; }
  .hero-strip, .build-grid, .process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .who-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  @container (max-width: 1099px) { .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @container (max-width: 1071px) { .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @container (max-width: 895px) { .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @container (max-width: 871px) { .who-grid { grid-template-columns: minmax(0, 1fr); } }
  @container (max-width: 539px) { .build-grid { grid-template-columns: minmax(0, 1fr); } }
  @container (max-width: 523px) { .process-grid { grid-template-columns: minmax(0, 1fr); } }
  @container (max-width: 431px) { .hero-strip { grid-template-columns: minmax(0, 1fr); } }
}

/* ---------- Buttons and links ---------- */
.btn-cream { transition: background .18s ease, color .18s ease; }
.btn-cream:hover, .btn-cream:focus-visible { background: var(--accent) !important; color: var(--text-cream) !important; }

.link-accent { transition: color .18s ease, border-color .18s ease; }
.link-accent:hover, .link-accent:focus-visible { color: var(--text-cream) !important; border-color: var(--text-cream) !important; }

.footer-link:hover, .footer-link:focus-visible { color: var(--text-cream) !important; }

/* Visible focus ring for keyboard users */
a:focus-visible, button:focus-visible, input[type="range"]:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* ---------- FAQ accordion ---------- */
.faq-q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 32px;
  width: 100%; margin: 0; padding: 24px 0;
  background: none; border: 0; border-radius: 0;
  color: inherit; font: inherit; text-align: left;
  cursor: pointer;
}

/* ---------- Privacy Policy page (long-form text) ---------- */
.policy p, .policy li {
  font: 400 17px/1.75 Archivo, sans-serif;
  color: var(--text-muted);
  overflow-wrap: break-word;
}
.policy p { margin: 0 0 16px; }
.policy .policy-meta { font-size: 15px; margin: 0; }
.policy-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border-dark); }
.policy h2 {
  font: 600 clamp(21px, 2vw, 24px)/1.3 Archivo, sans-serif;
  letter-spacing: -.02em;
  color: var(--text-cream);
  margin: 0 0 16px;
}
.policy h3 {
  font: 600 17px/1.4 Archivo, sans-serif;
  letter-spacing: -.012em;
  color: var(--text-cream);
  margin: 28px 0 10px;
}
.policy ul { list-style: none; margin: 0 0 16px; padding: 0; }
.policy li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.policy li::before {
  content: ''; position: absolute; left: 2px; top: calc(.875em - 3px);
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light);
}
.policy strong { color: var(--text-cream); font-weight: 600; }
.policy a { color: var(--accent-light); text-decoration: underline; }
.policy a:hover { color: var(--text-cream); }
/* Details still to fill in, e.g. [INSERT DATE] — highlighted so they're easy to spot. */
.policy .ph { background: rgba(142,162,255,.18); color: var(--text-cream); font-weight: 500; padding: 1px 5px; border-radius: 3px; }

/* ---------- Revenue split calculator ---------- */
.rs-price-box { transition: border-color .18s ease, box-shadow .18s ease; }
.rs-price-box:focus-within { border-color: var(--accent-light) !important; box-shadow: 0 0 0 3px rgba(142,162,255,.18); }

/* ---------- Form fields ---------- */
.field-input { transition: border-color .18s ease, box-shadow .18s ease; }
.field-input:focus { border-color: var(--accent-light) !important; box-shadow: 0 0 0 3px rgba(142,162,255,.18); }
.field-input.has-error { border-color: var(--error) !important; }

select.field-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23A9B1BA' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
  padding-right: 44px !important;
}

.field-error-msg {
  display: none;
  font: 400 13px/1.5 Archivo, sans-serif;
  color: #FF9B92;
}
.field-error-msg.is-visible { display: block; }

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  display: none;
  max-width: 900px;
  border-radius: 6px;
  padding: 18px 22px;
  margin-bottom: 24px;
  font: 400 15px/1.6 Archivo, sans-serif;
}
.form-alert.is-visible { display: block; }
.form-alert-error {
  border: 1px solid rgba(226,100,90,.5);
  background: rgba(226,100,90,.08);
  color: #FFD9D5;
}

.submit-btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

/* Form / success view toggling */
[data-view].is-hidden { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
