@import url("/static/saluvanta/tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--signal) 35%, white); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--white);
  color: var(--deep);
  padding: 10px 12px;
  border-radius: var(--radius-control);
  z-index: 9999;
}
.skip-link:focus { left: 12px; outline: 3px solid var(--signal); }

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

h1, h2, h3 {
  color: var(--deep);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: 48px; line-height: 1.15; }
h2 { font-size: 32px; line-height: 1.25; }
h3 { font-size: 22px; line-height: 1.35; }
p { margin: 0; }
.lead { font-size: 17px; line-height: 1.65; max-width: 54ch; }
.small { font-size: 14px; line-height: 1.5; }

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  :root { --section-y: var(--section-y-sm); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--deep) 10%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--deep);
}
.brand-lockup {
  height: 32px;
  width: auto;
  max-width: min(200px, 52vw);
}
.brand-mark {
  width: 40px;
  height: 30px;
  color: var(--deep);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brand-sub { font-size: 12px; color: var(--slate); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  text-decoration: none;
  color: var(--slate);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-control);
}
.nav-links a:hover { color: var(--deep); background: var(--paper); }
.nav-links a[aria-current="page"] { color: var(--deep); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-control);
  border: 1px solid color-mix(in srgb, var(--deep) 18%, transparent);
  background: var(--white);
  color: var(--deep);
  font-size: 18px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--deep);
  color: var(--white);
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  text-decoration: none;
  color: var(--white);
  font-size: 22px;
  font-weight: 500;
  padding: 14px 8px;
  border-radius: var(--radius-control);
}
.mobile-nav a:hover { background: color-mix(in srgb, var(--white) 10%, transparent); }
.mobile-nav .close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--white) 25%, transparent);
  background: transparent;
  color: var(--white);
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: 20px;
}
.mobile-nav .mobile-cta {
  margin-top: auto;
  text-align: center;
  background: var(--signal);
  color: var(--deep);
  font-weight: 600;
}

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .brand-lockup { height: 28px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-control);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--signal) 70%, transparent);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--deep);
  color: var(--white);
}
.btn-primary:hover { background: color-mix(in srgb, var(--deep) 88%, black); }
.btn-secondary {
  background: transparent;
  color: var(--deep);
  border-color: color-mix(in srgb, var(--deep) 28%, transparent);
}
.btn-secondary:hover { background: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--deep);
  border-color: transparent;
  font-weight: 600;
}
.btn-ghost:hover { background: var(--paper); }

/* Sections */
.section { padding: var(--section-y) 0; }
.section-paper { background: var(--paper); }
.section-head { margin-bottom: 36px; max-width: 40rem; }
.section-head p { margin-top: 10px; }

.hero {
  padding: 72px 0 56px;
  background: var(--saluvanta-hero-bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { margin-top: 0; }
.hero .lead { margin-top: 16px; }
.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-visual {
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--deep) 12%, transparent);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--deep) 12%, transparent);
  overflow: hidden;
  min-height: 280px;
}
.hero-visual .chart-mock {
  padding: 20px;
}
.chart-mock .lbl {
  font-size: 13px;
  color: var(--slate);
  font-weight: 600;
}
.chart-mock .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.chart-mock .meta strong {
  color: var(--deep);
  font-size: 18px;
  font-weight: 600;
}
.trend-svg {
  width: 100%;
  height: auto;
  margin-top: 18px;
  display: block;
}
.trend-line {
  stroke: var(--signal);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw-trend 1100ms ease forwards;
}
.trend-ref {
  stroke: color-mix(in srgb, var(--slate) 45%, transparent);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  fill: none;
}
.trend-axis {
  stroke: color-mix(in srgb, var(--deep) 22%, transparent);
  stroke-width: 0.8;
}
.chart-caption {
  margin-top: 12px;
  font-size: 12px;
  color: color-mix(in srgb, var(--slate) 80%, transparent);
}
@keyframes draw-trend {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .trend-line { animation: none; stroke-dashoffset: 0; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--deep) 10%, transparent);
  border-radius: var(--radius-card);
  padding: 24px;
}
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--sage) 22%, white);
  color: var(--deep);
  margin-bottom: 14px;
  font-size: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; }

@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr; }
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
}
.feature:nth-child(even) .feature-copy { order: 2; }
.feature-media {
  min-height: 200px;
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--sage) 25%, white), var(--paper));
  border: 1px solid color-mix(in srgb, var(--deep) 8%, transparent);
  position: relative;
  overflow: hidden;
}
.feature-media::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--white) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--deep) 8%, transparent);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--deep) 8%, transparent);
}
.feature h3 { margin-bottom: 10px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-copy { order: 0; }
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.trust a {
  display: block;
  text-decoration: none;
  text-align: center;
  padding: 18px 12px;
  border-radius: var(--radius-card);
  border: 1px solid color-mix(in srgb, var(--deep) 12%, transparent);
  background: var(--white);
  color: var(--deep);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.trust a:hover { border-color: var(--signal); }
@media (max-width: 900px) {
  .trust { grid-template-columns: 1fr 1fr; }
}

.cta-band {
  text-align: center;
  background: var(--deep);
  color: color-mix(in srgb, var(--white) 88%, transparent);
  padding: var(--section-y) 0;
}
.cta-band h2 { color: var(--white); max-width: 20ch; margin-inline: auto; }
.cta-band .btn-primary {
  margin-top: 24px;
  background: var(--signal);
  color: var(--deep);
}
.cta-band .btn-primary:hover {
  background: color-mix(in srgb, var(--signal) 88%, white);
}

/* Forms */
.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--deep) 12%, transparent);
  border-radius: var(--radius-card);
  padding: 28px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-control);
  border: 1px solid color-mix(in srgb, var(--deep) 20%, transparent);
  font: inherit;
  color: var(--deep);
  background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group .hint { margin-top: 6px; font-size: 13px; color: var(--slate); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-status { margin-top: 12px; font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: var(--deep); }
.form-status.err { color: #9b2c2c; }

/* Footer */
.site-footer {
  background: var(--deep);
  color: color-mix(in srgb, var(--white) 78%, transparent);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-brand .brand-mark { color: var(--white); }
.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
  align-content: start;
}
.footer-links a {
  text-decoration: none;
  color: color-mix(in srgb, var(--white) 78%, transparent);
  font-size: 14px;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
  font-size: 13px;
  line-height: 1.55;
}
.disclaimer { margin-top: 10px; max-width: 70ch; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

/* Page chrome */
.page-hero {
  padding: 56px 0 28px;
  background: var(--paper);
}
.page-hero h1 { margin-bottom: 12px; }
.prose { max-width: 70ch; }
.prose p + p { margin-top: 14px; }
.prose h2 { margin: 28px 0 10px; font-size: 22px; }
.prose ul { padding-left: 1.2em; margin: 10px 0; }
.prose li { margin: 6px 0; }

.fade-up {
  animation: fadeUp 700ms ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
