/* Tide Health — Performance
   Palette: deep tide navy, sea teal, sand. */
:root {
  --navy: #0b2540;
  --navy-2: #12365a;
  --teal: #0f8b8d;
  --teal-2: #13a8a4;
  --teal-soft: #e3f4f3;
  --sand: #f5efe6;
  --sand-2: #ebe1d1;
  --coral: #e0785a;
  --ink: #16212e;
  --muted: #566476;
  --line: #dde3ea;
  --white: #ffffff;
  --bg: #fbfaf7;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 37, 64, .06), 0 8px 24px rgba(11, 37, 64, .07);
  --max: 1160px;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #d6e2ee; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--teal { background: var(--teal-soft); }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--teal-2); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 64ch; }
.section--navy .lead { color: #b6c7d8; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, .92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.brand-text small { display: block; font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: .95rem; white-space: nowrap;
}
.nav-links a:hover { background: var(--sand); color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--teal); font-weight: 600; }
.nav-links li { margin: 0; }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px;
  align-items: center; justify-content: center; cursor: pointer; color: var(--navy);
}
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-head);
  font-weight: 700; font-size: .98rem; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
  line-height: 1.2; text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--teal); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-2); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 88% 10%, rgba(19, 168, 164, .16), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(224, 120, 90, .10), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--teal); }
.hero .lead { font-size: 1.25rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.hero-badges li {
  margin: 0; font-size: .86rem; font-weight: 600; color: var(--navy); background: #fff; border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 999px;
}
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); background: var(--sand); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 168, 164, .18), transparent 65%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 20ch; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Hero visual: ecosystem card */
.eco {
  background: var(--navy); border-radius: var(--radius-lg); padding: 28px; color: #d6e2ee; box-shadow: var(--shadow);
  position: relative;
}
.eco-center {
  background: var(--teal); color: #fff; border-radius: var(--radius); padding: 18px; text-align: center;
  font-family: var(--font-head); font-weight: 800;
}
.eco-center small { display: block; font-weight: 500; font-family: var(--font-body); opacity: .9; font-size: .85rem; }
.eco-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.eco-item { background: var(--navy-2); border-radius: 12px; padding: 14px; }
.eco-item strong { display: block; color: #fff; font-family: var(--font-head); font-size: .98rem; }
.eco-item span { font-size: .85rem; color: #a9bccf; }
.eco-foot { margin-top: 12px; display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; color: #a9bccf; flex-wrap: wrap; }
.eco-foot b { color: var(--teal-2); }

/* Grids and cards */
.grid { display: grid; gap: 22px; }
.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: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .muted { color: var(--muted); }
.section--navy .card { background: var(--navy-2); border-color: rgba(255, 255, 255, .08); box-shadow: none; }
.section--navy .card p { color: #b6c7d8; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--teal-soft); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }
.section--navy .icon { background: rgba(19, 168, 164, .16); color: var(--teal-2); }
.card-link { display: inline-flex; gap: 6px; font-weight: 600; text-decoration: none; margin-top: 8px; }
.card-link:hover { gap: 10px; }
.audience-card { display: flex; flex-direction: column; }
.audience-card ul { color: var(--muted); font-size: .96rem; flex: 1; }
.tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--navy); margin-bottom: 12px;
}
.tag-teal { background: var(--teal-soft); color: var(--teal); }
.tag-coral { background: #fbe7e0; color: #b24d31; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse > :first-child { order: 0; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5'/%3E%3C/svg%3E") center/100% no-repeat;
}
.section--navy .checklist li { color: #d6e2ee; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 0; counter-reset: step; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-when { font-family: var(--font-head); font-weight: 800; color: var(--teal); font-size: 1.05rem; }
.tl-when small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.tl-body h3 { margin-bottom: 6px; }
.tl-body p { color: var(--muted); margin-bottom: 8px; }
.tl-body .chips { margin-top: 6px; }
@media (max-width: 640px) { .tl-item { grid-template-columns: 1fr; gap: 6px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; font-size: .82rem; padding: 5px 11px; border-radius: 999px; background: var(--teal-soft); color: #0b6466; font-weight: 600; }

/* Steps (horizontal) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before {
  counter-increment: s; content: counter(s); display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Pricing / tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 980px) { .tiers { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tier.featured { border: 2px solid var(--teal); position: relative; }
.tier.featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 30px; background: var(--teal); color: #fff; font-size: .74rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.tier h3 { font-size: 1.4rem; margin-bottom: 4px; }
.tier .tier-sub { color: var(--muted); font-size: .95rem; min-height: 3em; }
.tier .price { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.5rem; margin: 10px 0 18px; }
.tier .price small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.tier ul { flex: 1; }
.tier .btn { margin-top: 18px; }

/* Stats band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { border-left: 3px solid var(--teal-2); padding-left: 16px; }
.stat b { display: block; font-family: var(--font-head); font-size: 2rem; color: #fff; line-height: 1.1; }
.stat span { font-size: .92rem; color: #a9bccf; }
.section:not(.section--navy) .stat b { color: var(--navy); }
.section:not(.section--navy) .stat span { color: var(--muted); }
@media (max-width: 800px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }

/* Callout */
.callout {
  border-radius: var(--radius); padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--coral);
}
.callout h4 { margin-bottom: 6px; }
.callout p { margin: 0; color: var(--muted); font-size: .96rem; }
.callout.teal { border-left-color: var(--teal); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-head); color: var(--navy); background: var(--sand); font-size: .88rem; }
tr:last-child td { border-bottom: 0; }
td.c, th.c { text-align: center; }
.yes { color: var(--teal); font-weight: 700; }
.no { color: #a3adb9; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.calc-inputs { padding: 32px; }
.calc-out { padding: 32px; background: var(--navy); color: #d6e2ee; }
.calc-out h3 { color: #fff; }
.field { margin-bottom: 20px; }
.field label { display: flex; justify-content: space-between; font-weight: 600; font-size: .94rem; color: var(--navy); margin-bottom: 8px; gap: 10px; }
.field label output { color: var(--teal); font-family: var(--font-head); font-weight: 800; }
input[type="range"] { width: 100%; accent-color: var(--teal); }
.calc-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); gap: 12px; }
.calc-row span { color: #a9bccf; }
.calc-row b { color: #fff; font-family: var(--font-head); white-space: nowrap; }
.calc-total { margin-top: 18px; padding: 18px; border-radius: 12px; background: rgba(19, 168, 164, .16); }
.calc-total span { display: block; color: #a9bccf; font-size: .9rem; }
.calc-total b { font-family: var(--font-head); font-size: 2.2rem; color: #fff; }
.calc-note { font-size: .8rem; color: #8ea3b8; margin-top: 16px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* App mock */
.phone {
  width: 280px; max-width: 100%; margin: 0 auto; background: var(--navy); border-radius: 38px; padding: 14px;
  box-shadow: 0 30px 60px rgba(11, 37, 64, .25);
}
.phone-screen { background: var(--bg); border-radius: 28px; padding: 22px 16px; min-height: 500px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ph-top b { font-family: var(--font-head); color: var(--navy); }
.ph-top span { font-size: .75rem; color: var(--muted); }
.ph-card { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); }
.ph-card small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.ph-card .big { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.35rem; }
.ph-bar { height: 8px; background: var(--teal-soft); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.ph-bar i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.ph-msg { background: var(--teal); color: #fff; font-size: .82rem; padding: 10px 12px; border-radius: 14px 14px 4px 14px; margin-left: 30px; }
.ph-msg.in { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; margin: 0 30px 8px 0; }
.ph-row { display: flex; gap: 8px; }
.ph-row .ph-card { flex: 1; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-family: var(--font-head); font-weight: 700;
  color: var(--navy); font-size: 1.08rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; color: var(--teal); font-weight: 400;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p, .faq details ul { color: var(--muted); padding-right: 40px; }

/* Forms */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px; border: 1px solid #c9d2dc; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.form textarea { min-height: 120px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .9rem; }
.form .check input { width: auto; margin-top: 4px; }
.form-success { display: none; padding: 16px; border-radius: 10px; background: var(--teal-soft); color: #0b6466; font-weight: 600; margin-top: 16px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.tabs button {
  font: inherit; font-weight: 600; font-size: .92rem; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, #0e4b6b 60%, var(--teal) 130%); color: #d6e2ee; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; color: #c2d3e2; }
.cta-band .btn-row { margin-top: 0; justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* Footer */
.site-footer { background: var(--navy); color: #a9bccf; padding: 64px 0 32px; font-size: .94rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #cfdbe7; text-decoration: none; }
.site-footer a:hover { color: var(--teal-2); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 24px; font-size: .82rem; color: #8ea3b8; }
.footer-legal p { max-width: 900px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.mt-0 { margin-top: 0; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }

/* QR pre-screen */
.qr-sign {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; text-align: center;
  box-shadow: var(--shadow); max-width: 340px; margin: 0 auto; border-top: 8px solid var(--teal);
}
.qr-sign .sign-kicker { font-family: var(--font-head); font-weight: 800; color: var(--teal); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.qr-sign h3 { font-size: 1.5rem; margin: 6px 0 16px; }
.qr-sign img { width: 180px; height: 180px; margin: 0 auto 16px; }
.qr-sign p { color: var(--muted); font-size: .9rem; margin: 0; }
.qr-sign .sign-foot { margin-top: 14px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.code-pill {
  display: inline-block; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; letter-spacing: .12em;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 1.4rem; margin: 10px 0;
}
.q { border: 0; padding: 0; margin: 0 0 22px; }
.q legend { font-weight: 600; color: var(--navy); margin-bottom: 10px; font-size: .98rem; }
.q .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.q .opts label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; color: var(--ink); cursor: pointer;
  border: 1px solid #c9d2dc; border-radius: 999px; padding: 8px 14px; font-size: .92rem;
}
.q .opts input { width: auto; accent-color: var(--teal); margin: 0; }
.q .opts label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.prescreen-result { display: none; text-align: center; }
.prescreen-result.show { display: block; }
.progress-steps { display: flex; gap: 6px; margin-bottom: 24px; }
.progress-steps span { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.progress-steps span.on { background: var(--teal); }

/* QR sign kit */
.kit { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
@media (max-width: 980px) { .kit { grid-template-columns: 1fr; } }
.kit-controls { position: sticky; top: 92px; }
@media (max-width: 980px) { .kit-controls { position: static; } }
.kit-controls .form { padding: 24px; }
.kit-controls .field { margin-bottom: 16px; }
.kit-controls .checks { display: grid; gap: 6px; }
.kit-controls .checks label { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink); margin: 0; }
.kit-controls .checks input { width: auto; accent-color: var(--teal); }
.kit-controls .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.sheets.cards { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.sheet-wrap figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sheet-wrap figcaption a { font-weight: 600; }
.sheet-wrap { margin: 0; }

/* The sign itself is sized in container units so the same design prints at full size */
.sign {
  container-type: inline-size; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line);
  aspect-ratio: 8.5 / 11; overflow: hidden; display: flex; flex-direction: column; color: var(--ink);
}
.sign-in { display: flex; flex-direction: column; height: 100%; }
.sign-top { background: var(--navy); color: #fff; padding: 5cqw 7cqw; display: flex; align-items: center; gap: 3cqw; }
.sign-top svg { width: 9cqw; height: 9cqw; flex: none; }
.sign-top b { font-family: var(--font-head); font-weight: 800; font-size: 4.4cqw; line-height: 1.05; display: block; }
.sign-top small { font-family: var(--font-head); font-weight: 700; font-size: 2.6cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-2); }
.sign-body { flex: 1; padding: 6cqw 7cqw 4cqw; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sign-kick { font-family: var(--font-head); font-weight: 800; font-size: 2.8cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.sign-h { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 8.4cqw; line-height: 1.05; letter-spacing: -.02em; margin: 1.5cqw 0 2cqw; }
.sign-sub { font-size: 3.5cqw; color: var(--muted); line-height: 1.35; margin: 0 0 4cqw; max-width: 80cqw; }
.sign-qr { width: 46cqw; padding: 2.4cqw; border: .8cqw solid var(--teal); border-radius: 4cqw; background: #fff; }
.sign-qr svg { width: 100%; height: auto; }
.sign-scan { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 4cqw; margin-top: 3cqw; }
.sign-scan span { color: var(--teal); }
.sign-points { display: flex; justify-content: center; gap: 2cqw; margin-top: 3.5cqw; flex-wrap: wrap; }
.sign-points span { font-size: 2.6cqw; font-weight: 600; color: var(--navy); background: var(--teal-soft); padding: 1.2cqw 2.4cqw; border-radius: 99px; }
.sign-foot { border-top: .3cqw solid var(--line); padding: 3cqw 7cqw 4cqw; display: flex; justify-content: space-between; gap: 3cqw; align-items: flex-end; }
.sign-foot .clinic { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 3cqw; text-align: left; }
.sign-foot .clinic small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: 2.2cqw; }
.sign-foot .url { font-size: 2.1cqw; color: var(--muted); text-align: right; }
.sign-foot .url b { color: var(--navy); font-family: ui-monospace, Menlo, monospace; }
.sign-legal { font-size: 1.8cqw; color: var(--muted); padding: 0 7cqw 3cqw; text-align: center; }

/* Counter-card / mirror format: landscape half-letter */
.sign.landscape { aspect-ratio: 8.5 / 5.5; }
.sign.landscape .sign-in { flex-direction: row; }
.sign.landscape .sign-left { width: 38%; background: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3cqw; gap: 2cqw; }
.sign.landscape .sign-qr { width: 100%; border-color: var(--teal-2); }
.sign.landscape .sign-left .sign-scan { color: #fff; font-size: 2.6cqw; margin: 0; text-align: center; }
.sign.landscape .sign-left .sign-scan span { color: var(--teal-2); }
.sign.landscape .sign-right { flex: 1; padding: 4.5cqw 5cqw; display: flex; flex-direction: column; }
.sign.landscape .brandline { display: flex; align-items: center; gap: 1.6cqw; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 2.6cqw; }
.sign.landscape .brandline svg { width: 5cqw; height: 5cqw; }
.sign.landscape .brandline small { color: var(--teal); letter-spacing: .12em; text-transform: uppercase; font-size: 1.8cqw; display: block; }
.sign.landscape .sign-kick { font-size: 1.9cqw; margin-top: 3.5cqw; }
.sign.landscape .sign-h { font-size: 5.4cqw; margin: 1cqw 0 1.6cqw; }
.sign.landscape .sign-sub { font-size: 2.3cqw; margin-bottom: 2.4cqw; max-width: none; }
.sign.landscape .sign-points { justify-content: flex-start; gap: 1.2cqw; margin-top: 0; }
.sign.landscape .sign-points span { font-size: 1.8cqw; padding: .8cqw 1.6cqw; }
.sign.landscape .card-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 2cqw; font-size: 1.6cqw; color: var(--muted); align-items: flex-end; }
.sign.landscape .card-foot .clinic { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 2.1cqw; }
.sign.landscape .card-foot b { font-family: ui-monospace, Menlo, monospace; color: var(--navy); }

@media print {
  @page { size: letter; margin: 0; }
  body { background: #fff; }
  body.printing-signs .site-header, body.printing-signs .site-footer, body.printing-signs .page-hero,
  body.printing-signs .kit-controls, body.printing-signs .no-print, body.printing-signs figcaption { display: none !important; }
  body.printing-signs .section { padding: 0; }
  body.printing-signs .container { max-width: none; padding: 0; }
  body.printing-signs .kit { display: block; }
  body.printing-signs .sheets { display: block; }
  body.printing-signs .sheet-wrap { break-after: page; page-break-after: always; }
  body.printing-signs .sign { width: 8.5in; box-shadow: none; border: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-signs .sheets.cards .sheet-wrap { break-after: auto; page-break-after: auto; }
  body.printing-signs .sheets.cards .sheet-wrap:nth-child(2n) { break-after: page; page-break-after: always; }
  body.printing-signs .sheets.cards .sign.landscape { height: 5.5in; aspect-ratio: auto; border-bottom: 1px dashed #bbb; }
}

/* Directory / marketplace */
.dir-search { display: flex; gap: 10px; margin-top: 26px; max-width: 720px; flex-wrap: wrap; }
.dir-search input, .dir-search select {
  font: inherit; padding: 14px 16px; border-radius: 12px; border: 1px solid #c9d2dc; background: #fff; color: var(--ink);
}
.dir-search input { flex: 2 1 260px; }
.dir-search select { flex: 1 1 180px; }
.dir { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
@media (max-width: 920px) { .dir { grid-template-columns: 1fr; } }
.dir-filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 92px; }
@media (max-width: 920px) { .dir-filters { position: static; } }
.dir-filters h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.dir-filters h4:first-child { margin-top: 0; }
.dir-filters label { display: flex; gap: 8px; align-items: center; font-size: .94rem; margin-bottom: 6px; cursor: pointer; }
.dir-filters input[type=checkbox] { accent-color: var(--teal); }
.dir-filters select { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid #c9d2dc; background: #fff; }
.dir-filters .reset { background: none; border: 0; color: var(--teal); font: inherit; font-weight: 600; cursor: pointer; padding: 0; margin-top: 14px; }
.dir-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.dir-bar p { margin: 0; color: var(--muted); }
.dir-bar select { font: inherit; padding: 8px 12px; border-radius: 10px; border: 1px solid #c9d2dc; background: #fff; }
.pros { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.pro { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.pro-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; color: #fff; background: var(--teal); font-size: 1.1rem; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.pro-head h3 { margin: 0; font-size: 1.1rem; }
.pro-head p { margin: 0; font-size: .88rem; color: var(--muted); }
.badge-cert { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; color: #0b6466; background: var(--teal-soft); border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; align-self: flex-start; }
.badge-cert svg { width: 14px; height: 14px; }
.pro-meta { list-style: none; padding: 0; margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.pro-meta li { margin-bottom: 4px; }
.pro-meta b { color: var(--ink); font-weight: 600; }
.pro .chips { margin-bottom: 14px; }
.pro-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.pro-foot .rate { font-family: var(--font-head); font-weight: 800; color: var(--navy); }
.pro-foot .rate small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .76rem; color: var(--muted); }
.status-off { font-size: .78rem; color: #b24d31; font-weight: 600; }
.empty { background: #fff; border: 1px dashed #c9d2dc; border-radius: var(--radius); padding: 40px 28px; text-align: center; }
.empty h3 { margin-bottom: 8px; }
.demo-banner { background: #fbe7e0; color: #7d3420; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-size: .94rem; font-weight: 600; }
dialog.profile { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(720px, calc(100% - 32px)); max-height: calc(100% - 48px); box-shadow: 0 30px 80px rgba(11,37,64,.35); color: var(--ink); }
dialog.profile::backdrop { background: rgba(11, 37, 64, .55); }
.profile-in { padding: 30px; }
.profile-top { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; padding-right: 40px; }
.profile-top .avatar { width: 76px; height: 76px; font-size: 1.5rem; }
.profile-top h2 { font-size: 1.6rem; margin: 0 0 2px; }
.profile-top p { margin: 0; color: var(--muted); }
.profile-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.3rem; color: var(--navy); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 16px 0; font-size: .94rem; }
.profile-grid div b { display: block; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .profile-grid { grid-template-columns: 1fr; } .profile-top { flex-direction: column; align-items: flex-start; } }
.profile .form { box-shadow: none; padding: 22px; background: var(--sand); border: 0; margin-top: 18px; }
@media (max-width: 920px) { #f-profession { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; } }
@media (max-width: 420px) { #f-profession { grid-template-columns: 1fr; } }
