/* Fasili.ai site styles
   Design system carried over from the Lovable build: deep green + mint palette,
   Space Grotesk headings, Manrope body, 6px radii, thin borders.
   Layout: Mercor-style marketplace structure (action row under the hero, service
   columns, roles list, research module, column footer) across three pages. */

@font-face { font-family: Manrope; src: url("assets/manrope-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/manrope-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/manrope-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/manrope-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/manrope-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/space-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --background: oklch(0.995 0.002 165);
  --foreground: oklch(0.24 0.035 173);
  --primary: oklch(0.32 0.07 174);
  --primary-foreground: oklch(0.995 0.005 165);
  --muted-foreground: oklch(0.47 0.025 173);
  --border: oklch(0.89 0.016 167);
  --mint: oklch(0.96 0.027 165);
  --mint-strong: oklch(0.9 0.055 165);
  --accent: oklch(0.52 0.105 169);
  --peach: oklch(0.93 0.056 53);
  --lilac: oklch(0.93 0.027 300);
  --hero-wash: oklch(0.97 0.02 164 / 0.66);
  --glass: oklch(0.995 0.005 163 / 0.95);
  --on-primary-muted: oklch(0.86 0.04 168);
  --shadow: 0 14px 50px oklch(0.24 0.035 173 / 0.1);

  --font-body: Manrope, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --t-xs: 0.78rem;
  --t-sm: 0.9rem;
  --t-base: 1rem;
  --t-lg: 1.125rem;
  --t-h3: 1.35rem;
  --t-h2: clamp(1.9rem, 1.4rem + 1.9vw, 2.6rem);
  --t-h1: clamp(2.6rem, 1.8rem + 3.4vw, 3.9rem);

  --radius: 6px;
  --max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(3.5rem, 7vw, 5.5rem);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 var(--t-base)/1.65 var(--font-body); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; line-height: 1.15; text-wrap: balance; }
h2 { font-size: var(--t-h2); margin-top: 0.75rem; }
h3 { font-size: var(--t-h3); line-height: 1.25; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 100; background: var(--background); padding: 0.75rem 1rem; border: 1px solid var(--border); }
.skip-link:focus { top: 0.75rem; }

.eyebrow { display: flex; align-items: center; gap: 0.55rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.lede { font-size: var(--t-lg); color: var(--muted-foreground); line-height: 1.7; max-width: 38rem; }
.muted { color: var(--muted-foreground); }
.small { font-size: var(--t-sm); }

/* ---------- buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0.85rem 1.35rem; border: 1px solid var(--primary); border-radius: var(--radius);
  background: var(--primary); color: var(--primary-foreground); font-weight: 600; font-size: 0.95rem; line-height: 1.4;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.button:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.button span[aria-hidden] { font-size: 1.15rem; line-height: 1; }
.button-small { padding: 0.6rem 1.05rem; gap: 1.25rem; font-size: 0.88rem; }
.button-light { background: var(--background); color: var(--primary); border-color: var(--background); }
.button-light:hover { background: var(--mint-strong); border-color: var(--mint-strong); color: var(--primary); }
.text-link { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 0.92rem; }
.text-link:hover { color: var(--accent); }

/* ---------- header ---------- */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--background); border-bottom: 1px solid var(--border); }
.nav { height: 80px; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0; }
.brand-logo { height: 44px; width: auto; }
.brand-footer img { height: 80px; width: auto; }
.nav-links { display: flex; gap: 1.4rem; font-size: 0.92rem; font-weight: 600; margin-left: auto; }
.nav-links a { color: var(--muted-foreground); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--foreground); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.menu-toggle { display: none; }

@media (max-width: 1000px) {
  .nav { height: 70px; gap: 1rem; }
  .brand-logo { height: 38px; }
  .nav-cta { margin-left: auto; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); color: var(--foreground); }
  .menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform 0.2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; background: var(--background); border-bottom: 1px solid var(--border); padding: 0.5rem var(--gutter) 1.25rem; font-size: 1.05rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 0; border-bottom: 1px solid var(--border); color: var(--foreground); }
  .nav-links a[aria-current="page"] { box-shadow: none; color: var(--accent); }
}
@media (max-width: 420px) { .nav-cta .cta-long { display: none; } }

/* ---------- hero (home) ---------- */
.hero { position: relative; background: var(--mint); overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-wash { position: absolute; inset: 0; background: var(--hero-wash); }
.hero-content { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; padding-block: clamp(3rem, 7vw, 5rem) clamp(3rem, 6vw, 4.5rem); }
.hero-copy { max-width: 40rem; min-width: 0; }
.hero h1 { font-size: var(--t-h1); line-height: 1.06; margin-top: 1.1rem; }
.hero h1 > span { display: block; color: var(--primary); }
.hero-copy > p { font-size: var(--t-lg); line-height: 1.75; max-width: 33rem; margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; margin-top: 2rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2rem; font-size: var(--t-sm); font-weight: 600; }
.check { color: var(--primary); margin-right: 0.35rem; }

.evaluation { width: 330px; flex-shrink: 0; background: var(--glass); padding: 1.4rem; border: 1px solid var(--background); border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(-3deg); margin-top: 4rem; }
.evaluation-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; letter-spacing: 0.1em; font-weight: 700; }
.evaluation-top > span:first-child { display: flex; gap: 0.4rem; align-items: center; }
.sample-label { font-size: 0.65rem; color: var(--muted-foreground); border: 1px solid var(--border); padding: 0.1rem 0.35rem; border-radius: 3px; }
.evaluation-query { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.query-icon { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; background: var(--mint); border-radius: 5px; font-size: 1.4rem; color: var(--accent); }
.evaluation-query small { font-size: 0.68rem; letter-spacing: 0.1em; color: var(--muted-foreground); font-weight: 700; }
.evaluation-query p { font-family: var(--font-heading); font-size: 1.1rem; line-height: 1.45; margin-top: 0.2rem; }
.eval-gloss { font-size: 0.82rem; color: var(--muted-foreground); margin-top: 0.35rem; }
.eval-divider { height: 1px; background: var(--border); margin: 1.2rem 0 0.9rem; }
.eval-rows { display: grid; gap: 0.45rem; font-size: 0.8rem; }
.eval-rows div { display: flex; justify-content: space-between; gap: 0.75rem; }
.eval-rows dt { color: var(--muted-foreground); }
.eval-rows dd { margin: 0; font-weight: 700; text-align: right; }
.verified { color: var(--primary); background: var(--mint); padding: 0.15rem 0.45rem; border-radius: 3px; font-weight: 700; }
.eval-bottom { margin-top: 1.1rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--peach); display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; flex-shrink: 0; }
.eval-bottom small { display: block; color: var(--muted-foreground); font-size: 0.72rem; }

/* action row under hero (Mercor-style doors) */
.doors { position: relative; background: var(--background); border-bottom: 1px solid var(--border); }
.doors-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.door { display: grid; gap: 0.3rem; align-content: start; padding: 1.4rem 1.4rem 1.5rem 0; min-width: 0; }
.door + .door { padding-left: 1.4rem; border-left: 1px solid var(--border); }
.door strong { font-family: var(--font-heading); font-weight: 500; font-size: 1.2rem; display: flex; justify-content: space-between; gap: 0.5rem; }
.door strong span { color: var(--accent); }
.door > span { color: var(--muted-foreground); font-size: var(--t-sm); }
.door:hover strong { color: var(--accent); }
@media (max-width: 1060px) { .doors-grid { grid-template-columns: minmax(0, 1fr); } .door, .door + .door { padding: 1rem 0; border-left: 0; } .door + .door { border-top: 1px solid var(--border); } .door { grid-template-columns: minmax(0, 1fr); } }

/* sector strip */
.intro-strip { border-bottom: 1px solid var(--border); }
.intro-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.6rem; }
.intro-inner > p { font-size: var(--t-sm); color: var(--muted-foreground); }
.intro-inner > p strong { color: var(--foreground); font-weight: 700; }
.sector { display: flex; gap: 0.5rem; align-items: center; font-size: var(--t-sm); font-weight: 600; white-space: nowrap; }
.sector > span { font-size: 1.25rem; color: var(--muted-foreground); }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section-tint { background: var(--mint); border-block: 1px solid var(--border); }
.section-dark { background: var(--primary); color: var(--primary-foreground); }
.section-dark .eyebrow { color: var(--mint-strong); }
.section-dark .lede, .section-dark .muted { color: var(--on-primary-muted); }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.25rem 2.5rem; margin-bottom: 2.5rem; }
.section-heading > div { max-width: 40rem; }
.section-heading > p { max-width: 26rem; color: var(--muted-foreground); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* service cards */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.service-card { border: 1px solid var(--border); background: var(--background); padding: 1.9rem 1.6rem 1.5rem; border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; transition: border-color 0.2s, transform 0.2s; }
.service-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.service-icon { width: 48px; height: 48px; border-radius: var(--radius); display: grid; place-items: center; font-size: 1.7rem; line-height: 1; }
.mint { background: var(--mint-strong); } .peach { background: var(--peach); } .lilac { background: var(--lilac); }
.service-number { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; color: var(--muted-foreground); margin-top: 1.6rem; }
.service-card h3 { font-size: 1.55rem; margin-top: 0.6rem; }
.service-card > p { margin-top: 0.9rem; color: var(--muted-foreground); }
.service-card ul { list-style: none; padding: 0; margin: 1.1rem 0 1.5rem; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.service-card li::before { content: "↗"; margin-right: 0.55rem; color: var(--accent); }
.service-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 700; font-size: 0.92rem; border-top: 1px solid var(--border); padding-top: 1rem; margin-top: auto; }
.service-link:hover { color: var(--accent); }
.annotation-note { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.4rem; background: var(--mint); padding: 1rem 1.25rem; border-radius: 4px; font-size: 0.95rem; }
.annotation-note > span { font-size: 1.35rem; }
.annotation-note > a { margin-left: auto; font-size: 1.35rem; }
@media (max-width: 960px) { .service-grid { grid-template-columns: minmax(0, 1fr); } }

/* enterprise suite */
.suite { display: grid; gap: 1rem; }
.suite-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.suite-flow li { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem; display: grid; gap: 0.25rem; align-content: start; min-width: 0; }
.suite-flow b { font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; }
.suite-flow span { font-size: 0.82rem; color: var(--muted-foreground); }
.suite-flow small { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; color: var(--accent); }
@media (max-width: 640px) { .suite-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--border); background: var(--background); border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.88rem; font-weight: 600; }
.ticks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.ticks li { position: relative; padding: 0.85rem 0 0.85rem 1.9rem; border-bottom: 1px solid var(--border); }
.ticks li::before { content: "✓"; position: absolute; left: 0.1rem; top: 0.85rem; color: var(--accent); font-weight: 800; }
.ticks small { display: block; color: var(--muted-foreground); font-size: 0.88rem; margin-top: 0.1rem; }
.section-dark .ticks, .section-dark .ticks li { border-color: oklch(0.52 0.105 169 / 0.6); }
.section-dark .ticks li::before { color: var(--mint-strong); }
.section-dark .ticks small { color: var(--on-primary-muted); }

/* research teaser cards */
.research-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.research-card { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; display: grid; gap: 0.9rem; align-content: start; min-width: 0; }
.research-card p { color: var(--muted-foreground); }
.pill { display: inline-flex; align-items: center; gap: 0.4rem; width: fit-content; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); background: var(--mint); border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.7rem; }
@media (max-width: 860px) { .research-grid { grid-template-columns: minmax(0, 1fr); } }

/* languages */
.languages { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.languages > span { display: flex; align-items: baseline; gap: 0.9rem; border: 1px solid var(--border); border-radius: 4px; padding: 0.75rem 1.1rem; background: var(--background); font-family: var(--font-heading); font-size: 1.2rem; }
.languages small { font: 400 0.85rem var(--font-body); color: var(--muted-foreground); }
.languages > p { width: 100%; font-size: 0.85rem; color: var(--muted-foreground); }

/* process */
.process-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.process-grid article { border-top: 1px solid var(--border); padding-top: 1.3rem; position: relative; min-width: 0; }
.process-grid article::before { content: ""; position: absolute; top: -3px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.process-grid article > span { font-family: var(--font-heading); font-size: 0.9rem; color: var(--accent); }
.process-grid h3 { margin-top: 0.9rem; }
.process-grid p { font-size: 0.95rem; color: var(--muted-foreground); margin-top: 0.6rem; }
.process-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .process-grid, .process-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .process-grid, .process-grid.four { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .process-grid article { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 0.75rem; padding: 1.2rem 0; }
  .process-grid article > span { grid-row: 1 / 3; padding-top: 0.15rem; }
  .process-grid h3 { margin: 0; }
  .process-grid article::before { display: none; }
}

/* people / commitments */
.commitments article { display: flex; gap: 1.2rem; padding: 1.35rem 0; border-bottom: 1px solid oklch(0.52 0.105 169 / 0.6); }
.commitments article:first-child { padding-top: 0; }
.commitments article:last-child { border: 0; padding-bottom: 0; }
.commitments article > span { font-size: 1.6rem; line-height: 1.2; color: var(--mint-strong); min-width: 1.6rem; }
.commitments h3 { font-size: 1.15rem; }
.commitments p { color: var(--on-primary-muted); margin-top: 0.4rem; font-size: 0.95rem; }

/* about */
.about-copy > p { color: var(--muted-foreground); margin-bottom: 1rem; }
.about-copy strong { color: var(--foreground); }
.founder { display: flex; align-items: center; gap: 0.75rem; border-top: 1px solid var(--border); padding-top: 1.4rem; margin-top: 1.6rem; }
.founder-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--mint-strong); display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; }
.founder > div { display: flex; flex-direction: column; font-size: 0.95rem; }
.founder > div > span { font-size: 0.82rem; color: var(--muted-foreground); }
.founder-location { margin-left: auto; color: var(--muted-foreground); font-size: 0.82rem; }

/* ---------- inner page hero ---------- */
.page-hero { background: var(--mint); border-bottom: 1px solid var(--border); padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero h1 { font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.4rem); line-height: 1.08; margin-top: 1rem; max-width: 20ch; }
.page-hero .lede { margin-top: 1.1rem; color: var(--foreground); opacity: 0.85; }
.page-hero .hero-actions { margin-top: 1.75rem; }

/* ---------- roles list (experts) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.filter { border: 1px solid var(--border); background: var(--background); color: var(--foreground); border-radius: 999px; padding: 0.45rem 0.95rem; font-weight: 600; font-size: 0.9rem; }
.filter:hover { border-color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.roles { border-top: 1px solid var(--foreground); }
.role { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.role-title { font-family: var(--font-heading); font-weight: 500; font-size: 1.15rem; }
.role-meta { color: var(--muted-foreground); font-size: 0.92rem; }
.role-pay { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.role-pay small { font-weight: 500; color: var(--muted-foreground); }
.role-type { justify-self: end; }
@media (max-width: 760px) {
  .role { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.3rem; }
  .role-meta { grid-column: 1 / -1; grid-row: 2; }
  .role-pay { grid-column: 2; grid-row: 1; text-align: right; }
  .role-type { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
}
.roles-note { margin-top: 1rem; font-size: 0.88rem; color: var(--muted-foreground); max-width: 46rem; }

/* ---------- research tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 640px; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); background: var(--mint); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; padding: 0.2rem 0.5rem; border-radius: 4px; background: var(--mint-strong); color: var(--primary); }
.tag.later { background: var(--lilac); }

.task-card { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: grid; gap: 0.9rem; }
.task-card .evaluation-top { font-size: 0.7rem; }
.task-q { font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.45; }
.rubric { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.rubric li { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); padding-top: 0.5rem; }
.rubric li b { font-weight: 800; color: var(--primary); white-space: nowrap; }
.board-empty { border: 1px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; color: var(--muted-foreground); background: var(--background); }

.dataset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.dataset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start; background: var(--background); min-width: 0; }
.dataset p { color: var(--muted-foreground); font-size: 0.95rem; }
.dataset dl { margin: 0.4rem 0 0; display: grid; gap: 0.3rem; font-size: 0.88rem; }
.dataset dl div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); padding-top: 0.35rem; }
.dataset dt { color: var(--muted-foreground); }
.dataset dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 760px) { .dataset-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 2.25rem 1.1rem 0; position: relative; font-family: var(--font-heading); font-weight: 500; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.2rem; color: var(--muted-foreground); max-width: 62ch; }

/* ---------- forms ---------- */
.contact-section { background: var(--mint); border-block: 1px solid var(--border); padding-block: var(--section); }
.pilot-points { display: grid; gap: 0.7rem; margin-top: 1.6rem; }
.pilot-points span span { color: var(--accent); margin-right: 0.6rem; }
.project-form { border: 1px solid var(--border); background: var(--background); padding: clamp(1.25rem, 3vw, 1.9rem); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 1rem; min-width: 0; }
.form-header { display: flex; align-items: center; justify-content: space-between; }
.form-header h3 { font-size: 1.3rem; }
.form-header > span { font-size: 1.5rem; color: var(--accent); }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.project-form label, .project-form legend { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.88rem; font-weight: 700; min-width: 0; }
.project-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.project-form legend { margin-bottom: 0.4rem; }
.project-form input:not([type="checkbox"]), .project-form select, .project-form textarea {
  width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 4px; background: var(--background); color: var(--foreground);
  padding: 0.7rem 0.8rem; font-size: 1rem; font-weight: 400;
}
.project-form textarea { resize: vertical; min-height: 6.5rem; }
input::placeholder, textarea::placeholder { color: var(--muted-foreground); }
.boxes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.box { flex-direction: row !important; align-items: center; gap: 0.45rem !important; border: 1px solid var(--border); border-radius: 999px; padding: 0.4rem 0.8rem; font-weight: 600 !important; cursor: pointer; }
.box input, .consent input { accent-color: var(--primary); margin: 0; width: 1rem; height: 1rem; }
.consent { flex-direction: row !important; align-items: flex-start; gap: 0.6rem !important; font-weight: 500 !important; color: var(--muted-foreground); }
.consent input { margin-top: 0.2rem; flex-shrink: 0; }
.project-form .button { width: 100%; }
.form-note { font-size: 0.8rem; color: var(--muted-foreground); }
.form-status { font-size: 0.9rem; color: var(--primary); font-weight: 600; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.footer { padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); gap: 1.75rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.footer-grid > div { display: grid; gap: 0.55rem; align-content: start; min-width: 0; }
.footer-grid h4 { margin: 0 0 0.2rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
.footer-grid a { font-size: 0.92rem; color: var(--muted-foreground); }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { color: var(--muted-foreground); font-size: 0.92rem; max-width: 26ch; margin-top: 0.8rem; }
.footer-about .brand { margin-left: -4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1.3rem; font-size: 0.82rem; color: var(--muted-foreground); }
@media (max-width: 1060px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- responsive hero ---------- */
@media (max-width: 960px) {
  .hero-content { flex-direction: column; align-items: flex-start; }
  .evaluation { margin: 0.5rem 0 0 auto; width: min(330px, 100%); }
}
@media (max-width: 560px) {
  .hero-image { object-position: 65% center; opacity: 0.8; }
  .evaluation { transform: rotate(-2deg); margin-inline: auto 0.25rem; }
  .hero-actions .button { width: 100%; }
  .founder-location { display: none; }
}

@keyframes appear { from { opacity: 0.2; transform: translateY(12px) rotate(-3deg); } to { opacity: 1; transform: translateY(0) rotate(-3deg); } }
.evaluation { animation: appear 0.8s both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- user research ---------- */
.price-line { margin-top: auto; border-top: 1px solid var(--border); padding-top: 1rem; color: var(--muted-foreground); font-size: 0.95rem; }
.price-line strong { color: var(--foreground); font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; }
.service-card .price-line { margin-top: auto; }
.ur-list { display: grid; gap: 0.75rem; }
.ur-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; transition: border-color 0.2s; }
.ur-row:hover { border-color: var(--accent); }
.ur-row span { display: grid; gap: 0.15rem; min-width: 0; }
.ur-row strong { font-family: var(--font-heading); font-weight: 500; font-size: 1.15rem; }
.ur-row small { color: var(--muted-foreground); font-size: 0.88rem; }
.ur-row b { font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; color: var(--primary); white-space: nowrap; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--mint); padding: clamp(1.5rem, 4vw, 2.5rem); }
.cta-band h2 { max-width: 24ch; }

.estimator { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 1.5rem; align-items: start; }
.est-form { display: grid; gap: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--background); min-width: 0; }
.est-group { border: 0; margin: 0; padding: 0; display: grid; gap: 0.6rem; min-width: 0; }
.est-group legend, .est-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.6rem; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 0.55rem 1rem; font-weight: 600; font-size: 0.92rem; background: var(--background); transition: background-color 0.15s, border-color 0.15s; }
.seg label:hover span { border-color: var(--accent); }
.seg input:checked + span { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.est-hint { font-size: 0.85rem; color: var(--muted-foreground); }
.est-n { display: flex; align-items: center; gap: 0.5rem; }
.est-n input { width: 6.5rem; text-align: center; font: 600 1.15rem var(--font-heading); padding: 0.55rem; border: 1px solid var(--border); border-radius: 4px; color: var(--foreground); background: var(--background); }
.step { width: 2.6rem; height: 2.6rem; border: 1px solid var(--border); border-radius: 50%; background: var(--background); color: var(--foreground); font-size: 1.2rem; line-height: 1; }
.step:hover { border-color: var(--accent); }
.est-check { display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; padding: 0.55rem 0; border-top: 1px solid var(--border); }
.est-check:first-of-type { border-top: 0; }
.est-check input { margin-top: 0.3rem; width: 1rem; height: 1rem; accent-color: var(--primary); flex-shrink: 0; }
.est-check span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; width: 100%; font-weight: 600; }
.est-check small { font-weight: 500; color: var(--muted-foreground); }
.est-check.is-disabled { opacity: 0.45; cursor: not-allowed; }
.est-result { position: sticky; top: 96px; background: var(--primary); color: var(--primary-foreground); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.75rem); display: grid; gap: 0.8rem; min-width: 0; box-shadow: var(--shadow); }
.est-result .eyebrow { color: var(--mint-strong); }
.est-result .status-dot { background: var(--mint-strong); }
.est-total { font-family: var(--font-heading); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.2rem); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.est-sub { color: var(--on-primary-muted); }
.est-lines { margin: 0; display: grid; gap: 0.4rem; font-size: 0.92rem; border-top: 1px solid oklch(0.52 0.105 169 / 0.6); padding-top: 0.8rem; }
.est-lines div { display: flex; justify-content: space-between; gap: 1rem; }
.est-lines dt { color: var(--on-primary-muted); }
.est-lines dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-time { font-weight: 600; }
.est-result .button { background: var(--background); color: var(--primary); border-color: var(--background); }
.est-result .button:hover { background: var(--mint-strong); border-color: var(--mint-strong); }
.est-note { font-size: 0.8rem; color: var(--on-primary-muted); }
@media (max-width: 900px) { .estimator { grid-template-columns: minmax(0, 1fr); } .est-result { position: static; } }

/* =====================================================================
   Mobile optimisation
   - every tap target at least 44px; form text 16px so iPhones don't zoom
   - no text under 12px; tighter spacing; full-screen menu; header hides
     while scrolling down; research table becomes cards; estimator gets a
     sticky total bar
   ===================================================================== */
a, button, label, input, select, textarea, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.button:active, .filter:active, .step:active, .seg label:active { transform: scale(0.98); }
.seg input { z-index: 1; }
.eyebrow, .est-group legend, .est-label, .footer-grid h4, th { font-size: 0.78rem; }
.service-number, .tag, .pill, .sample-label, .avatar, .evaluation-top, .evaluation-query small, .eval-bottom small { font-size: 0.75rem; }
.menu-cta { display: none; }
.est-bar { display: none; }

@media (hover: none) {
  .service-card:hover, .button:hover { transform: none; }
}

@media (max-width: 1000px) {
  :root { --section: clamp(2.75rem, 8vw, 4rem); }
  .header { transition: transform 0.25s ease, box-shadow 0.2s; }
  .header.is-hidden { transform: translateY(calc(-100% - env(safe-area-inset-top, 0px))); }
  .nav { height: 64px; }
  .brand { min-height: 44px; }
  .brand-logo { height: 36px; }
  .nav-cta, .menu-toggle { min-height: 44px; min-width: 44px; }
  .nav-cta { padding: 0.55rem 0.9rem; gap: 0.75rem; }
  /* full-screen menu */
  .nav-links { position: fixed; top: calc(64px + env(safe-area-inset-top, 0px)); left: 0; right: 0; bottom: 0; overflow-y: auto;
    overscroll-behavior: contain; padding: 0.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px)); font-size: 1.15rem; }
  .nav-links a { min-height: 56px; display: flex; align-items: center; }
  .nav-links .menu-cta { display: flex; justify-content: space-between; margin-top: 1.25rem; min-height: 52px; border-bottom: 0; color: var(--primary-foreground); }
  html.menu-open, html.menu-open body { overflow: hidden; }
  .text-link { min-height: 44px; }
  .service-link { min-height: 48px; }
  .annotation-note > a { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
  .filter { min-height: 44px; }
  .box { min-height: 44px; padding-inline: 0.95rem; }
  .step { width: 44px; height: 44px; }
  .faq summary { min-height: 52px; display: flex; align-items: center; }
  .footer-grid a { display: flex; align-items: center; min-height: 44px; }
  .footer-grid > div { gap: 0; }
  .footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 560px) {
  .hero-content { padding-block: 2.25rem 2.5rem; gap: 1.5rem; }
  .hero-copy > p { font-size: 1.05rem; line-height: 1.65; margin-top: 1.1rem; }
  .hero-actions { margin-top: 1.5rem; }
  .hero-proof { margin-top: 1.25rem; gap: 0.35rem 1rem; }
  .evaluation { width: 100%; transform: none; margin: 0; padding: 1.1rem; animation: none; }
  .evaluation-query { margin-top: 1rem; }
  .eval-divider { margin: 0.9rem 0 0.7rem; }
  .page-hero { padding-block: 2.25rem 2.5rem; }
  .section-heading { margin-bottom: 1.75rem; }
  .service-card { padding: 1.4rem 1.25rem 1.25rem; }
  .service-card h3 { font-size: 1.4rem; }
  .service-number { margin-top: 1.1rem; }
  .intro-inner { padding-block: 1.1rem; gap: 0.6rem 1.25rem; }
  .door { padding-block: 0.85rem; }
  .commitments article { padding: 1.1rem 0; }
  .split { gap: 1.75rem; }
  .contact-section { padding-block: 2.75rem; }
  .est-form, .est-result { padding: 1.15rem; }
  .seg span { min-height: 44px; padding-inline: 0.85rem; }
}

/* research table becomes stacked cards */
@media (max-width: 640px) {
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap tr { display: grid; gap: 0.35rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--background); padding: 0.9rem 1rem; margin-bottom: 0.75rem; }
  .table-wrap td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0; border: 0; }
  .table-wrap td::before { content: attr(data-label); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-foreground); padding-top: 0.15rem; }
  .table-wrap td:first-child { font-family: var(--font-heading); font-size: 1.1rem; display: block; margin-bottom: 0.2rem; }
  .table-wrap td:first-child::before { display: none; }
}

/* estimator: sticky total bar on phones */
@media (max-width: 900px) {
  .est-bar:not([hidden]) {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: var(--primary); color: var(--primary-foreground); box-shadow: 0 -8px 24px oklch(0.24 0.035 173 / 0.18);
  }
  .est-bar span { display: grid; line-height: 1.2; }
  .est-bar small { font-size: 0.75rem; color: var(--on-primary-muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
  .est-bar b { font-family: var(--font-heading); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
  .est-bar .button { background: var(--background); color: var(--primary); border-color: var(--background); min-height: 44px; }
}

.suite-flow small, .task-card .evaluation-top { font-size: 0.75rem; }
.est-n input { min-height: 44px; }
.inline-link { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; padding-block: 0.6rem; }

.table-wrap td .tag { justify-self: start; }
