/* Fixer Aligners website. Light brand site on purpose (one theme): navy and aqua from the portal and the treatment plan report.
   Layout: navy header with the aqua rule; white sections alternating with a pale tint; one navy band for the sample plans. */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/Poppins-Regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("fonts/Poppins-Medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/Poppins-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/Poppins-Bold.woff2") format("woff2"); }

:root {
  --navy: #0B1A33; --navy-2: #13284A; --aqua: #5CE1E6; --teal: #0B7C87;
  --paper: #FFFFFF; --tint: #F3F7FA; --chart: #F7F9FC; --line: #D6DFEA; --ink: #0B1A33; --muted: #4A5870; --on-navy: #C9D6E6;
  --todo: #FFF1B8;
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
  --r: 10px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.05rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow > * { max-width: 800px; }   /* reading width, lined up with the page heading */
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 12px; }
.fine { font-size: .82rem; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 8px;
  font: 600 .95rem/1.2 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-navy { background: var(--navy); color: #fff; } .btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-aqua { background: var(--aqua); color: var(--navy); min-height: 40px; padding: 8px 16px; } .btn-aqua:hover { background: #fff; color: var(--navy); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; } .btn-line:hover { background: var(--navy); color: #fff; }

/* header: navy with the aqua rule, as on the portal and the report */
.top { background: var(--navy); color: #fff; border-bottom: 4px solid var(--aqua); position: relative; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand img { width: 140px; }
.nav { display: flex; gap: 24px; margin-left: 12px; }
.nav a, .signin { color: var(--on-navy); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav a:hover, .signin:hover { color: #fff; }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 18px; }
@media (max-width: 980px) { .nav { display: none; } }
@media (max-width: 560px) { .top-act .btn-aqua { display: none; } .brand img { width: 120px; } .top-in { min-height: 64px; } }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 84px); background: linear-gradient(var(--paper), var(--tint)); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-text { display: grid; gap: 22px; max-width: 640px; }
.lead { font-size: 1.12rem; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: .86rem; color: var(--muted); }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } }

/* the chart: a slice of the treatment plan report */
.chart { margin: 0; background: var(--chart); border-top: 3px solid var(--aqua); border-radius: var(--r); padding: 18px clamp(12px, 2vw, 22px) 16px; box-shadow: 0 18px 40px -24px rgba(11, 26, 51, .45); }
.chart-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.chart-title { font-weight: 600; color: var(--teal); font-size: .92rem; }
.numbering { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 3px; }
.numbering button { border: 0; background: none; font: 500 .8rem var(--font); color: var(--muted); padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.numbering button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.arch { position: relative; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); padding-top: 4px; }
.tooth { position: relative; display: grid; justify-items: center; gap: 30px; }
.tooth.mid { box-shadow: 1px 0 0 var(--muted); }
.tn { width: 100%; text-align: center; font: 600 clamp(.62rem, .5rem + .4vw, .82rem)/1 var(--font); color: var(--ink); padding: 7px 0;
  border: 1px solid var(--line); border-left-width: 0; background: var(--paper); font-variant-numeric: tabular-nums; }
.tooth:first-child .tn { border-left-width: 1px; }
.tooth img:not(.att) { width: auto; height: clamp(56px, 4.6vw + 30px, 104px); }
.att { position: absolute; width: clamp(7px, .9vw, 13px); bottom: 14%; left: 50%; transform: translateX(-50%); }
.pill { position: absolute; top: calc(clamp(.62rem, .5rem + .4vw, .82rem) + 22px); transform: translateX(-50%); background: var(--navy); color: #fff;
  font: 600 clamp(.55rem, .45rem + .3vw, .72rem)/1 var(--font); padding: 4px 6px; border-radius: 10px; font-variant-numeric: tabular-nums;
  animation: pop .45s cubic-bezier(.2, .9, .3, 1.3) backwards; animation-delay: calc(400ms + var(--d) * 140ms); }
.pill::after { content: ""; position: absolute; left: 50%; top: 100%; height: clamp(50px, 4.6vw + 30px, 104px); border-left: 1.5px dashed var(--muted); }
@keyframes pop { from { transform: translateX(-50%) scale(.3); opacity: 0; } }
.chart figcaption { display: flex; gap: 18px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.chart figcaption span { display: inline-flex; align-items: center; gap: 7px; }
.k-pill { width: 22px; height: 12px; border-radius: 6px; background: var(--navy); }
.k-att { width: 10px; height: 10px; background: var(--aqua); border: 1px solid var(--teal); }

/* sections */
.sec { padding-block: clamp(56px, 7vw, 96px); }
.sec > .wrap { display: grid; gap: 22px; }
.sec-tint { background: var(--tint); }
.sec-lead { color: var(--muted); max-width: 640px; font-size: 1.05rem; margin-top: -8px; }
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 14px; }
.svc-item { display: grid; gap: 12px; align-content: start; padding-top: 18px; border-top: 3px solid var(--navy); }
.svc-item p { color: var(--muted); }
.svc-item ul, .ticks { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.svc-item li, .ticks li { position: relative; padding-left: 26px; }
.svc-item li::before, .ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.svc-photo { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--r); margin-top: 18px; background: var(--navy); }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; } }

/* how a case runs: a real sequence */
.steps { counter-reset: s; list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 40px; }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding-top: 14px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 700 2.2rem/1 var(--font); color: var(--teal); font-variant-numeric: tabular-nums; }
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* the report */
.report { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.report-text { display: grid; gap: 18px; }
.report-text > p { color: var(--muted); }
.report-pages { position: relative; padding: 0 18% 14% 0; width: 100%; max-width: 540px; justify-self: end; }
.report-pages a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 20px 44px -22px rgba(11, 26, 51, .55); border: 1px solid var(--line); background: #fff; }
.page-b { position: absolute !important; width: 64%; right: 0; bottom: 0; }
@media (max-width: 860px) { .report { grid-template-columns: 1fr; } }

/* samples: navy band */
.sec-navy { background: var(--navy); color: #fff; }
.sec-navy .sec-lead { color: var(--on-navy); }
.sec-navy a { color: var(--aqua); }
.empty { border: 1px dashed #3A5582; border-radius: var(--r); padding: 22px; color: var(--on-navy); max-width: 640px; }

/* portal features */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin: 10px 0 8px; }
.feats div { display: grid; gap: 4px; }
.feats dt { font-weight: 600; } .feats dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feats { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; border-top: 1px solid var(--line); margin-top: 6px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 1.6rem/1 var(--font); color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 680px; }

/* contact */
.contact { display: grid !important; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact > div { display: grid; gap: 14px; } .contact > div p { color: var(--muted); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: var(--tint); padding: clamp(18px, 3vw, 28px); border-radius: var(--r); }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; align-content: start; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { font: 400 1rem var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.form [aria-invalid="true"] { border-color: #B42318; }
.opt { color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-msg { font-size: .92rem; } .form-msg.ok { color: #1E8E5A; } .form-msg.err { color: #B42318; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* legal pages */
.legal .wrap { display: grid; gap: 14px; }
.legal h2 { font-size: 1.25rem; margin-top: 18px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.updated { font-size: .9rem; }
mark.todo { background: var(--todo); color: var(--ink); padding: 0 3px; border-radius: 3px; }

/* footer */
.foot { background: var(--navy); color: var(--on-navy); border-top: 4px solid var(--aqua); padding-block: 44px 28px; font-size: .92rem; }
.foot a { color: #fff; text-decoration: none; } .foot a:hover { color: var(--aqua); }
.foot .fine { color: var(--on-navy); }
.foot-base { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--navy-2); }

/* ---------- multi-page additions ---------- */
/* who the page is for: a thin strip above the header */
.aud { background: #07122A; font-size: .82rem; }
.aud-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.aud nav { display: flex; gap: 4px; }
.aud nav a { color: var(--on-navy); text-decoration: none; padding: 7px 12px; border-radius: 0 0 6px 6px; }
.aud nav a:hover { color: #fff; }
.aud nav a[aria-current] { background: var(--navy); color: #fff; font-weight: 600; }
.aud .signin { font-size: .82rem; }
.nav a[aria-current="page"] { color: #fff; box-shadow: 0 2px 0 var(--aqua); padding-bottom: 2px; }
@media (max-width: 560px) { .aud .signin { display: inline; } }

/* inner page heading */
.page-head { background: linear-gradient(var(--paper), var(--tint)); padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; gap: 16px; }
.page-head .lead { max-width: 720px; }
.sec-flush { padding-top: clamp(32px, 4vw, 48px); }
.after { color: var(--muted); margin-top: 18px; }

/* text with a picture */
.split { display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-text { display: grid; gap: 16px; align-content: start; }
.split-text .sec-lead { margin-top: 0; }
.split-img { width: 100%; border-radius: var(--r); object-fit: cover; max-height: 420px; }
.split-img.page-shot { max-height: 520px; object-fit: cover; object-position: top; border: 1px solid var(--line); box-shadow: 0 20px 44px -26px rgba(11, 26, 51, .55); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.feats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .feats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feats-2, .feats-4 { grid-template-columns: 1fr; } }

/* conditions: name and plain description, three to a row */
.conds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 6px 0 0; }
.conds div { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; scroll-margin-top: 20px; }
.conds dt { font-weight: 600; } .conds dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .conds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .conds { grid-template-columns: 1fr; } }

/* patient hero photo */
.hero-photo { width: 100%; border-radius: 14px; object-fit: cover; aspect-ratio: 684 / 496; }

/* closing band */
.band { background: var(--navy); color: #fff; padding-block: clamp(40px, 5vw, 64px); }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.band-in > div:first-child { display: grid; gap: 8px; max-width: 620px; }
.band p { color: var(--on-navy); }
.band-soft { background: var(--tint); color: var(--ink); border-top: 1px solid var(--line); }
.band-soft p { color: var(--muted); }
.btn-ghost { border-color: var(--on-navy); color: #fff; } .btn-ghost:hover { background: #fff; color: var(--navy); }

.two-ways { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); }
.two-ways > div { display: grid; gap: 12px; align-content: start; padding-top: 18px; border-top: 3px solid var(--navy); }
.two-ways p { color: var(--muted); }
@media (max-width: 760px) { .two-ways { grid-template-columns: 1fr; } }
.contact-text { display: grid; gap: 12px; } .contact-text h2 { font-size: 1.3rem; margin-top: 6px; } .contact-text p { color: var(--muted); }
.sel { user-select: all; font-weight: 500; }

/* footer columns */
.foot-in { display: grid !important; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-about { display: grid; gap: 10px; align-content: start; max-width: 380px; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col h2 { font-size: .95rem; color: #fff; margin-bottom: 4px; }
@media (max-width: 860px) { .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- pictures ---------- */
/* a portal picture: a framed screen */
.shot { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 50px -30px rgba(11, 26, 51, .55); }
.shot img { width: 100%; }
.shot-wide { margin-top: 14px; max-width: 1040px; }
/* the portal walkthrough: text beside each picture, numbered in order */
.tour { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: clamp(36px, 5vw, 64px); }
.tour-item { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.tour-item:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }   /* picture on the left: same width as on the right */
.tour-item:nth-child(even) .tour-text { order: 2; }
.tour-item.no-img { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
.tour-text { display: grid; gap: 10px; align-content: start; }
.tour-text p { color: var(--muted); }
.tour-n { font: 700 2rem/1 var(--font); color: var(--teal); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .tour-item, .tour-item:nth-child(even) { grid-template-columns: 1fr; } .tour-item:nth-child(even) .tour-text { order: 0; } }
/* drawings of each bite */
.drawing { width: 100%; max-width: 320px; height: auto; display: block; margin-bottom: 10px; background: var(--chart); border-radius: 8px; }
.d-tooth { fill: #fff; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.d-gum { fill: #F4DADD; }
.conds div { align-content: start; }
/* the 22-hour clock */
.clock { width: 100%; max-width: 260px; justify-self: center; }
.clock-off { fill: none; stroke: var(--line); stroke-width: 16; }
.clock-on { fill: none; stroke: var(--teal); stroke-width: 16; stroke-linecap: butt; }
.d-line { stroke: var(--muted); stroke-width: 1.5; }
.clock-big { font: 700 44px var(--font); fill: var(--ink); }
.clock-small { font: 500 12px var(--font); fill: var(--muted); }
.split-clock { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.feats-1 { grid-template-columns: 1fr; gap: 18px; }
/* the treatable cases: outline drawings on the chart colour */
.case-pic { width: 100%; height: auto; aspect-ratio: 554 / 307; object-fit: contain; background: var(--chart); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }

/* ---------- the menu on phones and tablets: ☰ at the top left, the menu slides in from the left (as in the portal) ---------- */
.hamburger, .drawer, .drawer-backdrop { display: none; }
@media (max-width: 980px) {
  .top { position: sticky; top: env(safe-area-inset-top, 0px); }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--navy); }
  .top-in { gap: 12px; min-height: 64px; }
  .hamburger { position: relative; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08);
    display: grid; place-content: center; gap: 5px; cursor: pointer; flex: none; }
  .hamburger span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: #fff; }
  .brand img { width: 120px; }
  .drawer { display: flex; flex-direction: column; gap: 6px; position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000; width: min(84vw, 320px);
    background: var(--navy); color: #fff; border-right: 4px solid var(--aqua); padding: 18px 14px; padding-top: calc(18px + env(safe-area-inset-top, 0px));
    padding-left: max(14px, env(safe-area-inset-left, 0px)); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-105%); visibility: hidden; transition: transform .25s ease, visibility .25s; box-shadow: 4px 0 24px rgba(0, 0, 0, .25); }
  .drawer.open { transform: translateX(0); visibility: visible; }
  .drawer-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
  .drawer-top img { width: 140px; margin: 2px 0 0 4px; }
  .drawer-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 18px; cursor: pointer; }
  .drawer-aud { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: #07122A; margin-bottom: 10px; }
  .drawer-aud a { text-align: center; padding: 9px 6px; border-radius: 8px; color: var(--on-navy); text-decoration: none; font-size: .9rem; font-weight: 500; }
  .drawer-aud a[aria-current] { background: var(--navy-2); color: #fff; font-weight: 600; }
  .drawer nav { display: grid; gap: 4px; }
  .drawer nav a { display: flex; align-items: center; min-height: 46px; padding: 12px 14px; border-radius: 8px; color: var(--on-navy); text-decoration: none; font-size: 1rem; font-weight: 500; }
  .drawer nav a:hover { background: var(--navy-2); color: #fff; }
  .drawer nav a[aria-current="page"] { background: var(--aqua); color: var(--navy); font-weight: 600; }
  .drawer-act { margin-top: auto; display: grid; gap: 10px; padding: 18px 4px 6px; }
  .drawer-act .btn { width: 100%; min-height: 46px; }
  .drawer-signin { color: var(--on-navy); text-align: center; text-decoration: none; padding: 8px; }
  .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 950; background: rgba(11, 26, 51, .5); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .drawer-backdrop.show { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .aud { display: none; }   /* the clinics / patients switch is in the menu */
}

/* ---------- sample plans: a card per case; the name shows, a tap slides the pictures and details open below ---------- */
.samples { display: grid; gap: 14px; margin-top: 10px; }
.sample { background: var(--navy-2); border: 1px solid #2A4066; border-radius: 14px; overflow: hidden; }
.sample h3 { margin: 0; font-size: inherit; }
.sample-head { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name chev" "sum chev"; align-items: center; gap: 2px 16px;
  text-align: left; background: none; border: 0; color: #fff; font: inherit; cursor: pointer; padding: clamp(16px, 2.4vw, 22px) clamp(16px, 2.6vw, 26px); }
.sample-head:hover .s-chev { background: rgba(255, 255, 255, .14); }
.sample-head:focus-visible { outline: 3px solid var(--aqua); outline-offset: -3px; border-radius: 14px; }
.s-name { grid-area: name; font-size: 1.3rem; font-weight: 600; }
.s-sum { grid-area: sum; color: var(--on-navy); font-size: .92rem; }
.s-chev { grid-area: chev; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); position: relative; }
.s-chev::before { content: ""; position: absolute; left: 50%; top: 45%; width: 10px; height: 10px; border-right: 2.5px solid var(--aqua); border-bottom: 2.5px solid var(--aqua);
  transform: translate(-50%, -50%) rotate(45deg); transition: transform .3s ease; }
.sample.open .s-chev::before { transform: translate(-50%, -20%) rotate(-135deg); }
/* the slide: the body's row grows from 0 to its natural height */
.sample-body { display: grid; grid-template-rows: 1fr; }
.js .sample-body { grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.js .sample.open .sample-body { grid-template-rows: 1fr; }
.sample-clip { overflow: hidden; min-height: 0; }
.sample-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center;
  padding: 0 clamp(16px, 2.6vw, 26px) clamp(16px, 2.6vw, 26px); }
.sample-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sample-pics figure { margin: 0; display: grid; gap: 8px; }
.sample-pics img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: #000; }
.sample-pics figcaption { font-size: .85rem; color: var(--on-navy); }
.sample-info { display: grid; gap: 14px; align-content: start; }
.sample-info dl { margin: 0; display: grid; gap: 10px; }
.sample-info dl div { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid #2A4066; }
.sample-info dt { font-size: .8rem; color: var(--on-navy); }
.sample-info dd { margin: 0; font-weight: 500; }
.sample-info .btn { justify-self: start; }
.s-soon { color: var(--on-navy); font-size: .9rem; }
@media (max-width: 860px) { .sample-inner { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .sample-pics { grid-template-columns: 1fr; } }
/* buttons keep their own colours inside the navy section (its plain links are aqua) */
.sec-navy .btn-aqua { color: var(--navy); }
.sec-navy .btn-aqua:hover { background: #fff; color: var(--navy); }
/* the broker section on the portal page (navy) */
.feats-dark dd { color: var(--on-navy); }
.feats-dark div { padding-top: 16px; border-top: 1px solid #2A4066; }
.broker-note { color: var(--on-navy); max-width: 680px; }
.feats div { align-content: start; }
/* photo layouts */
.split.split-top { align-items: start; }
.split-img.split-square { aspect-ratio: 1; max-height: 460px; }
.split-faq { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
.faq-photo { position: sticky; top: 96px; aspect-ratio: 4 / 5; max-height: 460px; object-position: 40% center; }
@media (max-width: 860px) { .split-faq { grid-template-columns: 1fr; } .faq-photo { position: static; order: -1; aspect-ratio: 4 / 3; max-height: 300px; } }

/* ---------- website assistant ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-launch { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 18px 11px 14px; cursor: pointer;
  background: var(--navy); color: #fff; font: 600 .95rem/1 var(--font); box-shadow: 0 6px 20px rgba(11, 26, 51, .28); }
.chat-launch svg { width: 22px; height: 22px; fill: var(--aqua); }
.chat-launch:hover { background: var(--navy-2); }
.chat-launch.on { display: none; }
body.menu-open .chat-launch { display: none; }
.chat { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 61;
  width: min(380px, calc(100vw - 36px)); height: min(600px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(11, 26, 51, .28); overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px 12px 16px; background: var(--navy); color: #fff; border-bottom: 3px solid var(--aqua); }
.chat-head b { display: block; font-size: 1rem; }
.chat-head span { font-size: .78rem; color: var(--on-navy); }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.chat-close:hover { background: rgba(255, 255, 255, .1); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--tint); }
.chat-msg { max-width: 86%; padding: 8px 12px; border-radius: 14px; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.typing { color: var(--muted); letter-spacing: 2px; }
.chat-msg.err { border-color: #E8B93A; background: #FFF4D6; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: var(--tint); }
.chat-chips:empty { display: none; }
.chat-chips button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 5px 11px; font: 500 .82rem/1.3 var(--font); cursor: pointer; }
.chat-chips button:hover { border-color: var(--teal); color: var(--teal); }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font: 400 .95rem/1.4 var(--font); color: var(--ink); max-height: 120px; }
.chat-form textarea:focus { outline: 2px solid var(--aqua); outline-offset: 0; border-color: transparent; }
.chat-send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--navy); cursor: pointer; display: grid; place-items: center; }
.chat-send svg { width: 18px; height: 18px; fill: var(--aqua); }
.chat-foot { padding: 0 14px 10px; font-size: .75rem; color: var(--muted); }
.chat-wa { display: block; margin-top: 3px; font-weight: 600; color: #128C4A; }
.chat-hand { align-self: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; font-size: .88rem; }
.chat-hand p { margin: 0; }
.chat-hand input { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: 400 .9rem var(--font); }
.chat-hand .hp { position: absolute; left: -9999px; }
.chat-hand-row { display: flex; gap: 10px; align-items: center; }
.chat-hand .btn { padding: 8px 14px; font-size: .88rem; }
.chat-skip { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.chat-hand-msg { color: var(--muted); font-size: .82rem; }
.chat-hand-msg:empty { display: none; }
@media (max-width: 560px) {
  .chat { right: 0; bottom: 0; width: 100vw; height: min(88vh, 100dvh); border-radius: 16px 16px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .chat-launch { padding: 12px; } .chat-launch span { display: none; }
}
@media print { .chat, .chat-launch { display: none !important; } }

/* ---------- sections added with the website editor ---------- */
/* text with a picture: picture on the left */
.split-rev { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.split-rev > :not(.split-text) { order: -1; }
@media (max-width: 860px) { .split-rev { grid-template-columns: 1fr; } .split-rev > :not(.split-text) { order: 0; } }
/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px 40px; margin-top: 8px; }
.quote { margin: 0; display: grid; gap: 16px; align-content: space-between; padding-top: 18px; border-top: 3px solid var(--aqua); }
.quote blockquote { margin: 0; font-size: 1.05rem; }
.quote blockquote p::before { content: "\201C"; } .quote blockquote p::after { content: "\201D"; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.quote figcaption > span { display: grid; } .quote figcaption span span { color: var(--muted); }
.sec-navy .quote figcaption span span { color: var(--on-navy); }
.quote-pic { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
/* a picture or banner */
.banner { margin: 0; display: grid; gap: 10px; }
.banner img { width: 100%; border-radius: var(--r); }
.banner figcaption { color: var(--muted); font-size: .9rem; }
.banner-narrow { max-width: 760px; }
.sec-full > .banner img { border-radius: 0; max-height: 70vh; object-fit: cover; }
.sec-full > .banner figcaption { padding-inline: max(20px, env(safe-area-inset-left, 0px)); max-width: 1180px; margin-inline: auto; width: 100%; }
.sec-full > .wrap { margin-bottom: 22px; }
.sec-navy .banner figcaption { color: var(--on-navy); }
/* footer contact details and social links */
.foot-contact { line-height: 1.8; }
.foot-social { display: flex; flex-wrap: wrap; gap: 6px 16px; }
/* a text section's own headings and lists */
.sec .narrow h3 { margin-top: 8px; }
.sec .narrow > ul:not(.ticks) { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
