/* Quilla Health site styles */
:root {
  --ink: #0B1F33;
  --ink-2: #4A5B6C;
  --ground: #F5F8FB;
  --white: #FFFFFF;
  --line: #DCE5EE;
  --line-dark: #2B4258;
  --field: #B9C7D5;
  --accent: #1F6FB2;
  --accent-light: #8EC3EE;
  --tint: #E3EFF9;
  --on-dark: #C2D1DF;
  --radius: 14px;
  --display: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img, svg { display: block; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--white); }
.hero { background: var(--white); padding: 88px 0; }
.hero-dark { background: var(--ink); color: var(--white); padding: 88px 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row-lg { display: flex; flex-wrap: wrap; gap: 48px; }
.row > *, .row-lg > * { min-width: 0; }
.col { flex: 1 1 440px; }
.mb-40 { margin-bottom: 40px; }
.center { text-align: center; align-items: center; }

/* Type */
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
h1 { font-weight: 700; font-size: 52px; line-height: 1.1; }
.h1-xl { font-size: 56px; line-height: 1.08; }
h2 { font-weight: 700; font-size: 36px; line-height: 1.2; }
h3 { font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.on-dark .eyebrow, .section-dark .eyebrow, .hero-dark .eyebrow { color: var(--accent-light); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 640px; }
.hero-dark .lead, .section-dark .lead { color: var(--on-dark); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.max-720 { max-width: 720px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: var(--body); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #185C94; color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--tint); color: var(--ink); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.text-link { font-weight: 600; }
.section-dark .text-link { color: var(--accent-light); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand span span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav .btn { color: var(--white); }
.nav .btn[aria-current="page"] { background: var(--ink); color: var(--white); }
.menu-toggle { display: none; min-height: 44px; min-width: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; align-items: center; justify-content: center; }

/* Cards */
.card { flex: 1 1 320px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card-sm { flex-basis: 260px; padding: 24px; }
.card-xs { flex-basis: 200px; padding: 24px; }
.card p { color: var(--ink-2); }
.card-dark { background: transparent; border-color: var(--line-dark); }
.card-dark p { color: var(--on-dark); }
.card-tint { background: var(--ground); border: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.step-num { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 15px; }

/* Lists */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; line-height: 1.55; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%231F6FB2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.bullets { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.steps li { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--accent); padding-top: 20px; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* Pills */
.pill { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.pill-green { color: #0B5A2E; background: #E2F4EA; }
.pill-amber { color: #6B4A00; background: #FCEFD2; }
.pill-blue { color: var(--white); background: var(--accent); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; align-self: flex-start; }

/* Option rows */
.option-row { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.option-row .muted { font-size: 15px; }

/* Order mockup */
.order-mock { flex: 1 1 420px; background: var(--ground); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.order-line { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.order-line.selected { border: 2px solid var(--accent); }
.order-send { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px; background: var(--ink); color: var(--white); font-weight: 600; }
.mock-label { font-size: 13px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; }

/* Standards rows */
.std-row { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-wrap: wrap; gap: 24px; align-items: baseline; }
.std-row h3 { flex: 1 1 260px; }
.std-row p { flex: 2 1 420px; color: var(--ink-2); }
.std-row .freq { flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--accent); }

/* Pricing */
.price-card { flex: 1 1 320px; border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 20px; background: var(--white); }
.price-card.featured { border: 2px solid var(--accent); }
.price { font-family: var(--display); font-weight: 700; font-size: 40px; }
.price-card .bullets { flex: 1 1 auto; font-size: 15px; }
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.equation .op { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--accent); }
.eq-box { flex: 1 1 240px; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.eq-box .big { font-family: var(--display); font-weight: 700; font-size: 24px; }
.eq-box.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.eq-box.dark .muted { color: var(--on-dark); }
.qa { display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.qa:last-child { border-bottom: 0; }
.qa h3 { font-size: 18px; }
.ins-row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; flex-wrap: wrap; }
.ins-row:last-of-type { border-bottom: 0; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; font-family: var(--display); font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--accent); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 24px 22px; color: var(--ink-2); }

/* Team */
.person { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.photo { aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--tint); display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-size: 14px; }

/* Forms */
.tabs { display: flex; gap: 8px; background: var(--ground); border-radius: 10px; padding: 6px; }
.tab { flex: 1 1 0; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 15px; cursor: pointer; font-family: var(--body); }
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(11, 31, 51, 0.12); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 46px; border: 1px solid var(--field); border-radius: 8px; padding: 0 12px; font: inherit; font-weight: 400; font-size: 16px; background: var(--white); color: var(--ink); }
.field textarea { padding: 10px 12px; resize: vertical; min-height: 96px; }
.field .hint { font-weight: 400; color: var(--ink-2); font-size: 13px; }
.form-note { font-size: 13px; color: var(--ink-2); }
.form-status { font-size: 15px; }
.form-status.error { color: #A12020; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }
.thanks { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: 24px 0; }

/* CTA band */
.cta-band { background: var(--ink); padding: 72px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-inner h2 { color: var(--white); font-size: 32px; flex: 1 1 480px; }
.cta-inner p { color: var(--on-dark); }

/* Legal pages */
.legal h2 { font-size: 24px; margin-top: 32px; }
.legal p, .legal li { color: var(--ink-2); }
.notice { background: #FCEFD2; color: #6B4A00; border-radius: 10px; padding: 16px 20px; font-size: 15px; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-brand { flex: 2 1 320px; display: flex; flex-direction: column; gap: 12px; }
.footer-col { flex: 1 1 140px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col strong { font-weight: 600; }
.disclaimer { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 24px; font-size: 13px; color: var(--ink-2); max-width: 880px; }

/* Responsive */
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}
@media (max-width: 640px) {
  h1, .h1-xl { font-size: 36px; }
  h2 { font-size: 28px; }
  .cta-inner h2 { font-size: 26px; }
  .section, .hero, .hero-dark { padding: 64px 0; }
  .lead { font-size: 17px; }
  .panel { padding: 22px; }
  .std-row, .card { padding: 22px; }
}
