/* Vei-Rise public site — Material Design 3 tokens and components.
   Light theme only, seeded from the Vei-Rise logo: charcoal #2E3A46 + red. */

:root {
  /* M3 color scheme (also read by @material/web components) */
  --md-sys-color-primary: #b3261e;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #ffdad5;
  --md-sys-color-on-primary-container: #410002;
  --md-sys-color-secondary: #2e3a46;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #d9e2ec;
  --md-sys-color-on-secondary-container: #111c26;
  --md-sys-color-surface: #fbf9f7;
  --md-sys-color-on-surface: #1b1c1d;
  --md-sys-color-surface-variant: #f0eae6;
  --md-sys-color-on-surface-variant: #4e4644;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f7f4f1;
  --md-sys-color-surface-container: #f3efec;
  --md-sys-color-surface-container-high: #ede8e4;
  --md-sys-color-outline: #837470;
  --md-sys-color-outline-variant: #d6c8c3;
  --md-sys-color-error: #8c1d18;

  /* Typeface references used by @material/web components */
  --md-ref-typeface-brand: "Roboto Flex", "Roboto", system-ui, sans-serif;
  --md-ref-typeface-plain: "Roboto Flex", "Roboto", system-ui, sans-serif;

  /* M3 shape + type */
  --shape-sm: 12px;
  --shape-md: 16px;
  --shape-lg: 28px;
  --font: "Roboto Flex", "Roboto", system-ui, -apple-system, sans-serif;

  --content-max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }

/* ---------- Type scale (M3) ---------- */
.display {
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  font-weight: 560;
  letter-spacing: -0.02em;
  margin: 0;
}
.headline {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  font-weight: 540;
  letter-spacing: -0.01em;
  margin: 0;
}
.title { font-size: 1.17rem; font-weight: 600; line-height: 1.3; margin: 0; }
.body-large { font-size: 1.08rem; color: var(--md-sys-color-on-surface-variant); }
.body { font-size: 0.95rem; color: var(--md-sys-color-on-surface-variant); }
.label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--md-sys-color-primary); }

/* ---------- Buttons (M3 common buttons, CSS implementation) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  border: none;
  font-family: var(--font);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.15s ease, background-color 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn-filled { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.btn-filled:hover { box-shadow: 0 2px 8px rgba(179, 38, 30, 0.35); filter: brightness(1.05); }
.btn-tonal { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.btn-tonal:hover { filter: brightness(0.97); }
.btn-outlined {
  background: transparent;
  color: var(--md-sys-color-primary);
  border: 1px solid var(--md-sys-color-outline);
}
.btn-outlined:hover { background: rgba(179, 38, 30, 0.06); }
.btn-text { background: transparent; color: var(--md-sys-color-secondary); padding: 0 14px; }
.btn-text:hover { background: rgba(46, 58, 70, 0.07); }

/* ---------- Top app bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--md-sys-color-surface) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.topbar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.topbar-logo img { height: 30px; display: block; }
.topbar-nav { display: flex; gap: 4px; margin-left: auto; }
.topbar-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--md-sys-color-on-surface-variant);
  text-decoration: none;
}
.topbar-nav a:hover { background: var(--md-sys-color-surface-container-high); color: var(--md-sys-color-on-surface); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Sections ---------- */
.section { padding: 72px 24px; }
.section-inner { max-width: var(--content-max); margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: 40px; display: grid; gap: 12px; }
.section-alt { background: var(--md-sys-color-surface-container-low); }

/* ---------- Hero ---------- */
.hero { padding: 84px 24px 72px; }
.hero-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-note { font-size: 0.87rem; color: var(--md-sys-color-on-surface-variant); }

/* ---------- Card grids ---------- */
.card-grid { display: grid; gap: 20px; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--shape-md);
  padding: 26px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.card-alt { background: var(--md-sys-color-surface-container-low); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--shape-sm);
  background: var(--md-sys-color-secondary-container);
  display: grid;
  place-items: center;
}
.card-icon.accent { background: var(--md-sys-color-primary-container); }
.card-icon svg { width: 30px; height: 30px; }

/* ---------- Journey stepper ---------- */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.journey-step {
  position: relative;
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--shape-md);
  padding: 24px 20px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.journey-step::before {
  counter-increment: step;
  content: counter(step);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.journey-step svg { width: 44px; height: 44px; }
.journey-step .title { font-size: 1.02rem; }
.journey-step .body { font-size: 0.88rem; }

/* ---------- Pricing ---------- */
.pricing-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 550;
}
.price-card { position: relative; padding: 30px 28px; gap: 16px; }
.price-card.highlight { border: 2px solid var(--md-sys-color-primary); }
.price-chip {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
}
.price-figure { display: flex; align-items: baseline; gap: 8px; }
.price-amount { font-size: 2.3rem; font-weight: 640; letter-spacing: -0.02em; }
.price-cadence { font-size: 0.85rem; color: var(--md-sys-color-on-surface-variant); max-width: 180px; }
.price-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.price-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--md-sys-color-on-surface-variant);
}
.price-features li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--md-sys-color-primary-container) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="%23410002" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M5 12.5l4.5 4.5L19 8"/></svg>') center/12px no-repeat;
}
.fine-print { font-size: 0.8rem; color: var(--md-sys-color-outline); margin-top: 28px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--md-sys-color-secondary);
  color: var(--md-sys-color-on-secondary);
  border-radius: var(--shape-lg);
  padding: 56px 48px;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}
.cta-band .headline { color: var(--md-sys-color-on-secondary); }
.cta-band p { margin: 0; color: var(--md-sys-color-secondary-container); max-width: 560px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container-low);
  padding: 44px 24px 36px;
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-top img { height: 26px; }
.footer-links { display: flex; gap: 20px; font-size: 0.9rem; }
.footer-links a { color: var(--md-sys-color-on-surface-variant); text-decoration: none; }
.footer-links a:hover { color: var(--md-sys-color-on-surface); }
.footer-legal { font-size: 0.84rem; color: var(--md-sys-color-on-surface-variant); display: grid; gap: 4px; }

/* ---------- Register form ---------- */
.form-shell { max-width: 640px; margin: 0 auto; display: grid; gap: 24px; }
.form-card {
  background: var(--md-sys-color-surface-container-lowest);
  border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--shape-lg);
  padding: 36px;
}
.form-card form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-errors {
  background: #fdeceb;
  border: 1px solid var(--md-sys-color-error);
  color: var(--md-sys-color-error);
  border-radius: var(--shape-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
}
.form-errors ul { margin: 6px 0 0; padding-left: 18px; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
md-outlined-text-field, md-outlined-select { width: 100%; }

/* Success page */
.success-shell { max-width: 560px; margin: 0 auto; text-align: center; display: grid; gap: 18px; justify-items: center; }
.success-shell svg { width: 76px; height: 76px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 460px; }
}
@media (max-width: 720px) {
  .topbar-nav { display: none; }
  .section { padding: 56px 20px; }
  .card-grid.cols-3 { grid-template-columns: 1fr; }
  .card-grid.cols-4 { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .form-card { padding: 26px 20px; }
}
