/* ==========================================================================
   Pharos — marketing site
   1. Tokens
   2. Base & typography
   3. Layout
   4. Header & navigation
   5. Buttons & links
   6. Components
   7. Page sections
   8. Forms
   9. Footer
   10. Utilities, motion, print
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand — sampled from the PharOS logo */
  --navy-900: #0a1f36;
  --navy-800: #103152;
  --navy-700: #1a4570;
  --navy-600: #2a5c8e;
  --teal-700: #145f5a;
  --teal-600: #17706a;
  --teal-500: #20807a;
  --teal-400: #2f9c94;
  --teal-300: #35b0a7; /* teal that clears 4.5:1 on the navy bands */
  --teal-100: #d9ebe9;
  --teal-050: #eef6f5;

  /* Neutrals */
  --ink: #10233a;
  --ink-soft: #3d5064;
  --muted: #5b6e82;
  --line: #dfe6ee;
  --line-soft: #ecf1f6;
  --surface: #ffffff;
  --surface-soft: #f5f8fa;
  --surface-deep: var(--navy-800);

  /* Signal */
  --flag: #a95219;
  --flag-soft: #fdf3ea;

  /* Type */
  --font-sans: "Segoe UI Variable Display", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Segoe UI Variable Text", "Segoe UI", -apple-system,
    BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --step-h1: clamp(2.3rem, 1.55rem + 2.9vw, 3.65rem);
  --step-h2: clamp(1.75rem, 1.4rem + 1.45vw, 2.5rem);
  --step-h3: clamp(1.15rem, 1.09rem + 0.25vw, 1.3rem);
  --step-lead: clamp(1.1rem, 1.04rem + 0.32vw, 1.3rem);
  --step-body: 1.0625rem;
  --step-small: 0.9375rem;
  --step-eyebrow: 0.8125rem;

  /* Space & shape */
  --gutter: clamp(1.25rem, 0.7rem + 2vw, 2.5rem);
  --section-y: clamp(4rem, 2.6rem + 5.2vw, 7rem);
  --container: 1120px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(16, 35, 58, 0.06), 0 1px 3px rgba(16, 35, 58, 0.05);
  --shadow: 0 2px 6px rgba(16, 35, 58, 0.05), 0 12px 28px -14px rgba(16, 35, 58, 0.22);
  --shadow-lg: 0 4px 12px rgba(16, 35, 58, 0.06), 0 30px 60px -28px rgba(16, 35, 58, 0.3);

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Base & typography
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--navy-800);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.021em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--step-h1); letter-spacing: -0.028em; }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); line-height: 1.32; letter-spacing: -0.012em; }
h4 { font-size: 1.0625rem; line-height: 1.4; letter-spacing: -0.008em; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--navy-800); }

img, svg { max-width: 100%; }
img { height: auto; border: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

::selection {
  background: var(--teal-100);
  color: var(--navy-900);
}

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.lead {
  font-size: var(--step-lead);
  line-height: 1.55;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: var(--step-eyebrow);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--teal-400);
  border-radius: 2px;
}

.small { font-size: var(--step-small); }
.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * 0.66); }

.section--soft { background: var(--surface-soft); }
.section--tint { background: var(--teal-050); }
.section--line { border-top: 1px solid var(--line-soft); }

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section__head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: clamp(1.25rem, 0.9rem + 1.4vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.prose { max-width: 40rem; }

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus-visible { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -20px rgba(16, 35, 58, 0.7);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: auto;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.brand img {
  display: block;
  height: 34px;
  width: auto;
}

@media (max-width: 420px) {
  .brand img { height: 30px; }
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav__link {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav__link:hover { color: var(--navy-800); background: var(--surface-soft); }

.nav__link[aria-current="page"] {
  color: var(--navy-800);
  font-weight: 600;
}

.header__cta { flex: 0 0 auto; margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  cursor: pointer;
}

.nav-toggle svg { display: block; width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }

  .site-header__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem var(--gutter) 1.35rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-header__nav.is-open { display: flex; }

  .nav { flex-direction: column; align-items: stretch; gap: 0.15rem; }

  .nav__link {
    padding: 0.8rem 0.75rem;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }

  .nav__link:hover { background: transparent; }

  .header__cta { margin: 1rem 0 0; }
  .header__cta .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */

a { color: var(--teal-600); text-underline-offset: 0.18em; }
a:hover { color: var(--teal-700); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.9688rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: #fff;
  box-shadow: 0 1px 2px rgba(16, 35, 58, 0.16);
}

.btn--primary:hover {
  background: var(--teal-600);
  border-color: var(--teal-600);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(23, 112, 106, 0.75);
}

.btn--secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--navy-800);
}

.btn--secondary:hover {
  border-color: var(--navy-600);
  color: var(--navy-800);
  background: #fff;
}

.btn--ghost {
  padding-inline: 0;
  background: none;
  color: var(--teal-600);
}

.btn--ghost:hover { color: var(--teal-700); }
.btn--ghost .btn__arrow { transition: transform 0.16s ease; }
.btn--ghost:hover .btn__arrow { transform: translateX(3px); }

.btn--on-dark {
  background: #fff;
  border-color: #fff;
  color: var(--navy-800);
}

.btn--on-dark:hover { background: var(--teal-050); border-color: var(--teal-050); color: var(--navy-900); }

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn--lg { padding: 0.95rem 1.7rem; font-size: 1.0313rem; }
.btn--block { width: 100%; }

.btn__arrow { width: 1em; height: 1em; flex: 0 0 auto; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow svg { width: 1em; height: 1em; transition: transform 0.16s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Components
   -------------------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.15rem;
  background: var(--teal-050);
  border-radius: 12px;
  color: var(--teal-600);
}

.card__icon svg { width: 22px; height: 22px; }

.card--flat { border: 0; box-shadow: none; background: transparent; padding: 0; }

/* Numbered steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(1.25rem, 0.9rem + 1.4vw, 2rem);
}

.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 820px) {
  .steps--3 { grid-template-columns: minmax(0, 1fr); }
}

.step { position: relative; padding-top: 1.6rem; }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--teal-500);
}

.step::after {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 2.4rem;
  right: 0;
  height: 1px;
  background: var(--line);
}

.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); }

/* Ordered feature list (platform) */
.flow { display: grid; gap: 0; border-top: 1px solid var(--line); }

.flow__item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0 1.5rem;
  padding: clamp(1.5rem, 1.2rem + 0.9vw, 2.1rem) 0;
  border-bottom: 1px solid var(--line);
}

.flow__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--teal-500);
  padding-top: 0.35rem;
}

.flow__item h3 { margin-bottom: 0.45rem; }
.flow__item p { color: var(--ink-soft); max-width: 44rem; }

@media (max-width: 560px) {
  .flow__item { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .flow__num { padding-top: 0; }
}

/* Callout panel */
.callout {
  padding: clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-500);
  border-radius: var(--radius);
}

.callout h3 { margin-bottom: 0.5rem; }
.callout p { color: var(--ink-soft); }

.callout--plain { border-left-color: var(--navy-600); }

/* Split feature block */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 1.2rem + 3.5vw, 4.5rem);
  align-items: center;
}

.split--top { align-items: start; }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

/* Definition rows */
.deflist { display: grid; gap: 1.5rem; }

.deflist__item {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.35rem 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
}

.deflist__item:last-child { padding-bottom: 0; border-bottom: 0; }
.deflist__item dt { font-family: var(--font-sans); font-weight: 600; color: var(--navy-800); }
.deflist__item dd { margin: 0; color: var(--ink-soft); }

@media (max-width: 720px) {
  .deflist__item { grid-template-columns: minmax(0, 1fr); }
}

/* Pill / badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  background: var(--teal-050);
  border: 1px solid var(--teal-100);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.pill--flag {
  background: var(--flag-soft);
  border-color: #f2ddc6;
  color: var(--flag);
}

/* FAQ accordion */
.faq { border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--font-sans);
  font-size: var(--step-h3);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--navy-800);
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary:hover { color: var(--teal-600); }

.faq__sign {
  flex: 0 0 auto;
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--teal-600);
}

.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  inset: 50% 25%;
  border-top: 2px solid currentColor;
  transform: translateY(-1px);
}

.faq__sign::after { transform: translateY(-1px) rotate(90deg); transition: transform 0.2s ease, opacity 0.2s ease; }

.faq__item[open] .faq__sign::after { transform: translateY(-1px) rotate(0deg); opacity: 0; }

.faq__answer { padding: 0 3rem 1.6rem 0; color: var(--ink-soft); max-width: 46rem; }

/* Shelf example figure */
.shelf-figure {
  margin: 0;
  padding: clamp(1.1rem, 0.8rem + 1.2vw, 1.75rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shelf-figure svg { display: block; width: 100%; height: auto; }

/* The comparison is a wide diagram: let it scroll inside the figure rather
   than shrink below a readable size on a phone. */
.shelf-figure__media { overflow-x: auto; overscroll-behavior-x: contain; }
.shelf-figure__media img { display: block; width: 100%; }

.shelf-figure__hint { display: none; }

@media (max-width: 700px) {
  .shelf-figure__media img { width: 620px; max-width: none; }
  .shelf-figure__hint { display: block; margin-top: 0.75rem; color: var(--muted); }
}

.shelf-figure figcaption {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  font-size: var(--step-small);
  color: var(--muted);
}

/* Finding readout */
.finding { display: grid; gap: 1.1rem; }

.finding__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.2rem 1.25rem;
  align-items: baseline;
}

.finding__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.finding__row--flag .finding__label { color: var(--flag); }
.finding__row--action .finding__label { color: var(--teal-600); }
.finding__value { margin: 0; color: var(--ink); }

@media (max-width: 520px) {
  .finding__row { grid-template-columns: minmax(0, 1fr); }
}

/* Dark band */
.band-dark {
  background:
    radial-gradient(90rem 40rem at 15% -30%, rgba(47, 156, 148, 0.35), transparent 60%),
    var(--navy-800);
  color: #fff;
}

.band-dark h1,
.band-dark h2,
.band-dark h3 { color: #fff; }

.band-dark p { color: rgba(255, 255, 255, 0.82); }
.band-dark .eyebrow { color: var(--teal-300); }
.band-dark .eyebrow::before { background: var(--teal-300); }
.band-dark a { color: #fff; }

/* --------------------------------------------------------------------------
   7. Page sections
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 1.8rem + 4.6vw, 5.5rem) clamp(3.5rem, 2.2rem + 5vw, 6rem);
  background:
    radial-gradient(48rem 30rem at 78% -12%, var(--teal-050), transparent 62%),
    linear-gradient(180deg, #fbfdfd 0%, #ffffff 62%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1.4rem + 4vw, 4.5rem);
  align-items: center;
}

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

.hero h1 { margin-bottom: 1.1rem; }
.hero__lead { max-width: 34rem; margin-bottom: 1.9rem; }
.hero__note { margin-top: 1.5rem; color: var(--muted); font-size: var(--step-small); max-width: 30rem; }

.page-hero {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(2.5rem, 1.7rem + 3.4vw, 4rem);
  background:
    radial-gradient(44rem 26rem at 88% -20%, var(--teal-050), transparent 60%),
    linear-gradient(180deg, #fbfdfd 0%, #ffffff 70%);
  border-bottom: 1px solid var(--line-soft);
}

.page-hero__inner { max-width: 44rem; }
.page-hero h1 { margin-bottom: 1rem; }

.cta-band { text-align: center; }
.cta-band__inner { max-width: 40rem; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.9rem; }
.cta-band__note { margin-top: 1.35rem; font-size: var(--step-small); color: rgba(255, 255, 255, 0.72); }

/* Audience blocks */
.audience {
  display: grid;
  gap: clamp(1.25rem, 0.9rem + 1.4vw, 2rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) { .audience { grid-template-columns: minmax(0, 1fr); } }

.audience__item {
  padding: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.audience__item h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.audience__item h3 svg { width: 22px; height: 22px; color: var(--teal-500); flex: 0 0 auto; }

/* Pricing cards */
.price-card { position: relative; }
.price-card__kicker {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.85rem;
}

.price-card ul {
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  font-size: var(--step-small);
  color: var(--ink-soft);
}

.price-card li {
  position: relative;
  padding-left: 1.6rem;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--teal-500);
  border-bottom: 2px solid var(--teal-500);
  transform: rotate(-45deg);
}

/* Team list */
.team { display: grid; gap: clamp(1.25rem, 0.9rem + 1.4vw, 2rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 860px) { .team { grid-template-columns: minmax(0, 1fr); } }

.team__item { padding-top: 1.35rem; border-top: 2px solid var(--teal-500); }
.team__item h3 { margin-bottom: 0.45rem; }
.team__item p { color: var(--ink-soft); }

/* Legal pages */
.legal { max-width: 44rem; }
.legal h2 { margin-top: 2.5rem; font-size: 1.4rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal ul { padding-left: 1.2rem; color: var(--ink-soft); }
.legal li { margin-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */

.form-panel {
  padding: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

@media (max-width: 620px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--wide { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-800);
}

.field__optional { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.55; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #c6d2de; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(32, 128, 122, 0.16);
}

.field input::placeholder,
.field textarea::placeholder { color: #6c7681; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235b6e82' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
  padding-right: 2.4rem;
}

.field__error {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #b3261e;
}

.field__error:empty { display: none; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #d1534a; }

.field.has-error input:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(209, 83, 74, 0.16); }

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
}

.form-privacy { font-size: var(--step-small); color: var(--muted); max-width: 26rem; }

.form-note {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: var(--step-small);
}

.form-note[hidden] { display: none !important; }

.form-note--error {
  background: #fdf1f0;
  border: 1px solid #f2cdca;
  color: #8f231c;
}

.form-success {
  padding: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem);
  background: var(--teal-050);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-lg);
}

.form-success[hidden] { display: none !important; }

.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.1rem;
  background: var(--teal-500);
  color: #fff;
  border-radius: 50%;
}

.form-success__icon svg { width: 20px; height: 20px; }

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3rem, 2.2rem + 2.6vw, 4.5rem) 2rem;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--step-small);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 800px) {
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
}

.site-footer__brand img {
  height: 40px;
  width: auto;
  margin-bottom: 1.1rem;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.site-footer__brand p { max-width: 24rem; color: rgba(255, 255, 255, 0.62); }

.footer-col h4 {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.65rem; }

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: #fff; text-decoration: underline; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   10. Utilities, motion, print
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.stack > * + * { margin-top: 1.15rem; }
.mt-lg { margin-top: clamp(2rem, 1.4rem + 2vw, 3rem); }
.mt-md { margin-top: 1.75rem; }
.no-wrap { white-space: nowrap; }

[hidden] { display: none !important; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { font-size: 11pt; }
  .reveal { opacity: 1; transform: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
