/* === Physio · Design Tokens === */
:root {
  --bg: #f5f1ea;
  --bg-2: #ede7dc;
  --bg-3: #e3dccd;
  --ink: #1a1a18;
  --ink-2: #3d3d39;
  --muted: #6b6a64;
  --line: #d8d2c4;
  --line-2: #c7c0ae;
  --primary: #1f322c;        /* deep forest */
  --primary-2: #2c4a40;
  --sage: #5e7a6b;
  --accent: #c47a52;         /* warm clay */
  --accent-2: #a85f3d;
  --card: #faf7f1;
  --shadow-sm: 0 1px 2px rgba(31,50,44,.06), 0 2px 4px rgba(31,50,44,.04);
  --shadow-md: 0 4px 12px rgba(31,50,44,.08), 0 12px 28px rgba(31,50,44,.06);

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Söhne", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

[data-palette="warm"] {
  --bg: #f5f1ea;
  --bg-2: #ede7dc;
  --bg-3: #e3dccd;
  --ink: #1a1a18;
  --ink-2: #3d3d39;
  --muted: #6b6a64;
  --line: #d8d2c4;
  --line-2: #c7c0ae;
  --primary: #1f322c;
  --primary-2: #2c4a40;
  --sage: #5e7a6b;
  --accent: #c47a52;
  --accent-2: #a85f3d;
  --card: #faf7f1;
}

[data-palette="editorial"] {
  --bg: #fafaf8;
  --bg-2: #f1f0ec;
  --bg-3: #e6e4dc;
  --ink: #0a0a0a;
  --ink-2: #2a2a28;
  --muted: #6a6a66;
  --line: #e0ddd3;
  --line-2: #cfcbbd;
  --primary: #0a0a0a;
  --primary-2: #1f1f1d;
  --sage: #5b6157;
  --accent: #b64a2e;
  --accent-2: #8e3520;
  --card: #ffffff;
}

[data-palette="clinic"] {
  --bg: #f3f5f7;
  --bg-2: #e8edf2;
  --bg-3: #d6dee8;
  --ink: #0c1620;
  --ink-2: #2a3441;
  --muted: #5e6b7a;
  --line: #d1d8e0;
  --line-2: #b6c0cc;
  --primary: #0a3d62;
  --primary-2: #0e4f7d;
  --sage: #4a6b85;
  --accent: #c4612a;
  --accent-2: #a04a1c;
  --card: #ffffff;
}

[data-palette="terra"] {
  --bg: #f1ebe1;
  --bg-2: #e8e0d0;
  --bg-3: #ddd1bb;
  --ink: #2a1f14;
  --ink-2: #4a3a2a;
  --muted: #786652;
  --line: #cfc1a8;
  --line-2: #b8a684;
  --primary: #3a2817;
  --primary-2: #553a22;
  --sage: #6b6147;
  --accent: #a85f3d;
  --accent-2: #863f22;
  --card: #f9f4ea;
}

[data-palette="anthracite-editorial"] {
  --bg: #f5f5f3;
  --bg-2: #ecece9;
  --bg-3: #dfdfdb;
  --ink: #222427;
  --ink-2: #404348;
  --muted: #6a6f76;
  --line: #d2d4d8;
  --line-2: #b8bcc3;
  --primary: #2f3338;
  --primary-2: #1f2328;
  --sage: #6f8a63;
  --accent: #d59033;
  --accent-2: #b97723;
  --card: #ffffff;
}

[data-palette="cool-gray-clinic"] {
  --bg: #f2f4f6;
  --bg-2: #e8ecf0;
  --bg-3: #dce2e9;
  --ink: #1f252d;
  --ink-2: #38424f;
  --muted: #647180;
  --line: #ced6de;
  --line-2: #b3bdc8;
  --primary: #2f3b49;
  --primary-2: #232d3a;
  --sage: #6f8975;
  --accent: #c98731;
  --accent-2: #aa6e24;
  --card: #ffffff;
}

[data-palette="warm-stone-minimal"] {
  --bg: #f4f2ee;
  --bg-2: #ece9e3;
  --bg-3: #e2ddd5;
  --ink: #2a2a29;
  --ink-2: #434340;
  --muted: #74736e;
  --line: #d5d0c7;
  --line-2: #bfb8ac;
  --primary: #3a3937;
  --primary-2: #2b2a28;
  --sage: #7b786f;
  --accent: #cb8740;
  --accent-2: #ad6c2f;
  --card: #fcfbf8;
}

[data-palette="monochrome-pro"] {
  --bg: #f7f7f6;
  --bg-2: #eeeeed;
  --bg-3: #e2e2e0;
  --ink: #171819;
  --ink-2: #323437;
  --muted: #666a70;
  --line: #d0d2d6;
  --line-2: #b2b6bd;
  --primary: #191c20;
  --primary-2: #0f1114;
  --sage: #5f646c;
  --accent: #d7882f;
  --accent-2: #b56a21;
  --card: #ffffff;
}

[data-palette="dark-slate-premium"] {
  --bg: #22272d;
  --bg-2: #2b3139;
  --bg-3: #363f48;
  --ink: #f2f3f5;
  --ink-2: #d4d8de;
  --muted: #a4acb7;
  --line: #444f5c;
  --line-2: #5a6674;
  --primary: #556273;
  --primary-2: #6a7788;
  --sage: #8fa683;
  --accent: #da903c;
  --accent-2: #bd772b;
  --card: #2f3741;
}

[data-theme="dark"] {
  --bg: #14201d;
  --bg-2: #182824;
  --bg-3: #1f322c;
  --ink: #f3ede0;
  --ink-2: #d8d1bf;
  --muted: #9ba79f;
  --line: #284039;
  --line-2: #3a584f;
  --primary: #e8d9b8;
  --primary-2: #d8c79c;
  --sage: #8aa599;
  --accent: #e29c75;
  --accent-2: #c97e5a;
  --card: #1a2a26;
}

[data-typo="modern"] {
  --serif: "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, sans-serif;
}
[data-typo="classic"] {
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", "Inter", system-ui, sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv11";
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; line-height: 1.08; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* === Top Nav === */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__row {
  display: flex; align-items: center; justify-content: flex-start;
  height: 72px;
}
.brand {
  display: flex; align-items: center; justify-content: center;
  width: 220px;
  margin-right: 20px;
  font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
}
.brand__logo {
  height: 30px;
  width: auto;
  max-width: min(160px, 32vw);
}
.brand__mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 18px;
  font-style: italic;
}
.nav__links {
  display: flex; gap: 4px; align-items: center;
}
.nav__link {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2);
  transition: background .18s ease, color .18s ease;
}
.nav__link:hover { background: var(--bg-2); color: var(--ink); }
.nav__link.is-active { background: var(--primary); color: var(--bg); }
.nav__cta {
  margin-left: 12px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 500;
  transition: background .18s ease, transform .18s ease;
}
.nav__theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.nav__theme-btn:hover {
  background: var(--bg-2);
  color: var(--ink);
  border-color: var(--ink);
}
.nav__theme-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.nav__cta:hover { background: var(--accent-2); transform: translateY(-1px); }

.nav__menu-btn { display: none; }
@media (max-width: 920px) {
  .brand { width: auto; margin-right: 10px; justify-content: flex-start; }
  .brand__logo { height: 22px; max-width: min(118px, 42vw); }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__theme-btn { margin-right: 0; }
  .nav__theme-label { display: none; }
  .nav__menu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2);
    font-size: 14px;
  }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: all .2s ease;
}
.btn--primary { background: var(--primary); color: var(--bg); }
.btn--primary:hover { background: var(--primary-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--ink); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* === Eyebrow / Index === */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 16px; font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: color-mix(in srgb, var(--muted) 62%, var(--sage) 38%);
}

/* === Section base === */
section { position: relative; }
.section {
  padding-block: clamp(72px, 9vw, 128px);
  border-top: 1px solid var(--line);
}
.section--alt { background: var(--bg-2); }
.section--ink { background: var(--primary); color: var(--bg); border-color: var(--primary-2); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--bg); }
.section--ink .eyebrow { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.section--ink .eyebrow::before { background: color-mix(in srgb, var(--bg) 50%, transparent); }

.section-head {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px;
  align-items: end; margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(34px, 4.4vw, 60px);
  text-wrap: balance;
}
.section-head__lede {
  font-size: 17px; color: var(--ink-2); max-width: 56ch;
  text-wrap: pretty;
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

.section-head.employer-intro {
  margin-bottom: 24px;
}
.employer-dual-apply {
  margin-bottom: 48px;
}

/* === Image placeholders (striped) === */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      var(--bg-3) 0 14px,
      var(--bg-2) 14px 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--muted);
}
.placeholder__label {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 6px;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.placeholder__label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.placeholder__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.placeholder--tall { aspect-ratio: 3/4; }
.placeholder--wide { aspect-ratio: 16/10; }
.placeholder--square { aspect-ratio: 1; }
.placeholder--portrait { aspect-ratio: 4/5; }

/* === Cards === */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.card__title {
  font-family: var(--serif); font-size: 24px; line-height: 1.15;
  margin-top: 16px; letter-spacing: -0.02em;
}
.card__body {
  margin-top: 12px; font-size: 15px; color: var(--ink-2); line-height: 1.6;
}
.coop-card {
  background: color-mix(in srgb, var(--bg) 8%, transparent);
  border-color: var(--primary-2);
  border-radius: 16px;
  padding: 22px;
}
.section--ink .coop-card:hover {
  border-color: color-mix(in srgb, var(--bg) 55%, transparent);
}

/* === Hero === */
.hero { padding-block: clamp(64px, 7vw, 110px) clamp(80px, 9vw, 140px); }
.hero__row {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px;
  align-items: end;
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 0.98; letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 em, h2 em {
  font-style: italic;
  color: var(--sage);
  font-family: var(--serif);
}
.hero h1 em.hero__highlight {
  color: var(--sage) !important;
}
.hero__lede {
  margin-top: 32px; font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-2); max-width: 52ch; line-height: 1.55;
}
.hero__cta-row { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta {
  display: flex; gap: 28px; margin-top: 56px;
  padding-top: 28px; border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero__meta-item .k { font-family: var(--serif); font-size: 32px; letter-spacing: -0.02em; }
.hero__meta-item .v { font-family: var(--serif); font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0.01em; color: var(--muted); margin-top: 4px; }

.hero__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero__visual .hero__image {
  border: none;
  background: transparent;
}
.hero__visual .hero__image .placeholder__img {
  transform: scale(1.08);
  transform-origin: center;
  filter: sepia(0.22) saturate(0.78) hue-rotate(-8deg) brightness(0.96) contrast(0.94);
}
.hero__chip {
  position: absolute;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px;
  font-size: 13px; box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero__chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 68%, var(--sage) 32%);
}
.hero__chip--1 { top: 7%; left: -20px; }
.hero__chip--2 { bottom: 14%; right: -16px; }

@media (max-width: 960px) {
  .hero__row { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { aspect-ratio: 4/5; max-width: 480px; }
}

/* === Footer === */
.footer {
  background: var(--primary);
  color: color-mix(in srgb, var(--bg) 88%, transparent);
  padding: 80px 0 32px;
  border-top: 1px solid var(--primary-2);
}
.footer__brand-logo {
  height: 22px;
  width: auto;
}
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 60%, transparent); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.footer ul a:hover { color: var(--bg); }
.footer__bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid var(--primary-2);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: color-mix(in srgb, var(--bg) 55%, transparent);
}
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* === Marquee strip === */
.strip {
  background: var(--accent); color: #fff;
  padding: 14px 0; overflow: hidden;
  border-top: 1px solid var(--accent-2); border-bottom: 1px solid var(--accent-2);
}
.strip__track {
  display: flex; gap: 56px; white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.strip__track span { display: inline-flex; align-items: center; gap: 56px; }
.strip__track span::after {
  content: "✶"; color: rgba(255,255,255,.6);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === FAQ accordion === */
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__btn {
  width: 100%; text-align: left; padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em;
}
.faq__icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  flex-shrink: 0; transition: transform .25s ease, background .25s ease;
  font-size: 18px;
}
.faq__item.is-open .faq__icon { background: var(--primary); color: var(--bg); transform: rotate(45deg); border-color: var(--primary); }
.faq__panel {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq__item.is-open .faq__panel { max-height: 360px; padding-bottom: 28px; }
.faq__panel p { color: var(--ink-2); max-width: 70ch; line-height: 1.65; }

/* === Tag pill === */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.tag--accent { background: color-mix(in srgb, var(--primary) 12%, var(--bg)); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 30%, var(--bg)); }

/* === Two-col split feature === */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* === Page transitions === */
.page-enter { animation: pageIn .42s cubic-bezier(.2,.7,.2,1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.list-check { color: var(--primary); }

/* === Form === */
.field { display: grid; gap: 6px; }
.field label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15px;
  padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}
.field textarea { resize: vertical; min-height: 140px; font-family: var(--sans); }

/* === Phone mock === */
.phone {
  width: 280px; aspect-ratio: 9/19;
  background: #0a0a0a; border-radius: 36px;
  padding: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.18), 0 8px 16px rgba(0,0,0,.08);
  position: relative;
}
.phone__screen {
  width: 100%; height: 100%; border-radius: 28px; overflow: hidden;
  background: var(--card); position: relative;
}
.phone__screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px; background: #0a0a0a; border-radius: 999px; z-index: 2;
}

/* utility */
.muted { color: var(--muted); }
.flow > * + * { margin-top: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .strip__track { animation: none; }
  .page-enter { animation: none; }
  html { scroll-behavior: auto; }
}
