/* Dr. Quick Books, Inc. — main stylesheet */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("assets/fonts/atkinson-next-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("assets/fonts/courier-prime-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("assets/fonts/courier-prime-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* REPLACEABLE IMAGES */
  --img-pad-tint: url("assets/pad-tint.svg");
  /* end REPLACEABLE IMAGES */

  /* Security-paper mint, one-colour pad ink, pill-vial amber, label stock */
  --pad: #e2f0ea;
  --pad-deep: #cfe5dc;
  --pad-line: #a9cbbf;
  --ink: #12283a;
  --ink-2: #2f4c60;
  --ink-3: #4b6779;
  --amber: #e08a1e;
  --amber-deep: #945000;
  --amber-field: #f0a43a;
  --label: #fdfefd;
  --label-line: #d5e3dd;
  --binding: #12283a;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Courier Prime", "Courier New", ui-monospace, monospace;

  --step--1: clamp(0.9rem, 0.87rem + 0.15vw, 0.98rem);
  --step-0: clamp(1.06rem, 1.02rem + 0.2vw, 1.18rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.55rem, 1.3rem + 1.1vw, 2.2rem);
  --step-3: clamp(2rem, 1.5rem + 2.3vw, 3.4rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);

  --rule: 2rem; /* the pad's writing line, the page's one grid unit */
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --wrap: 76rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-label: 0 1px 1px rgba(18, 40, 58, 0.08), 0 8px 22px -10px rgba(18, 40, 58, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--pad);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; text-decoration-color: var(--amber-deep); }
a:hover { text-decoration-thickness: 0.14em; }
::selection { background: var(--amber-field); color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber-deep); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--ink-3) var(--pad-deep); }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); font-weight: 800; font-stretch: 112%; }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.85rem); font-weight: 800; font-stretch: 114%; }
h3 { font-size: var(--step-1); font-weight: 750; font-stretch: 108%; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.measure { max-width: 66ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--amber); color: var(--ink); padding: 0.6rem 1rem; font-weight: 700; }
.skip:focus { top: 0.75rem; }
.mono { font-family: var(--mono); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Binding strip (sticky header) ---------- */
.binding {
  position: sticky; top: 0; z-index: 40;
  background: var(--binding);
  color: var(--pad);
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.45);
}
.binding::after { /* perforation below the gum strip */
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px;
  background: radial-gradient(circle at 5px 0, var(--binding) 2.2px, transparent 2.6px) 0 0 / 12px 6px repeat-x;
}
.binding .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.wordmark { display: inline-flex; align-items: baseline; gap: 0.5rem; color: var(--pad); text-decoration: none; font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: 1.15rem; letter-spacing: 0.01em; white-space: nowrap; margin-right: auto; }
.wordmark .rx-mini { font-size: 1.3rem; color: var(--amber); }
.nav { display: flex; gap: 0.25rem; }
.nav a { white-space: nowrap; color: var(--pad); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 0.45rem 0.55rem; border-radius: 2px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(226, 240, 234, 0.12); text-decoration: underline; text-decoration-color: var(--amber); }
.binding .tel { color: var(--pad); font-family: var(--mono); font-weight: 700; text-decoration: none; white-space: nowrap; font-size: 1.02rem; }
.binding .tel:hover { text-decoration: underline; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; color: var(--pad); font-weight: 700; padding: 0.5rem 0.7rem; border: 1.5px solid rgba(226, 240, 234, 0.5); border-radius: 2px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--pad); color: var(--ink); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 0.6rem); width: min(86vw, 22rem); background: var(--label); color: var(--ink); box-shadow: var(--shadow-label); padding: 0.5rem; border-top: 4px solid var(--amber); }
.menu-panel a { display: block; padding: 0.75rem 0.85rem; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--label-line); }
.menu-panel a:last-child { border-bottom: 0; }
@media (max-width: 1180px) { .nav { display: none; } .menu { display: block; } }
@media (max-width: 560px) { .binding .tel, .binding .btn { display: none; } .wordmark { font-size: 1rem; font-stretch: 112%; } .binding .wrap { gap: 0.5rem; } }
@media (min-width: 561px) { .binding .tel .tel-short { display: none; } }

/* ---------- Buttons: one vocabulary ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  font-family: var(--display); font-weight: 750; font-stretch: 110%; font-size: 1.05rem; letter-spacing: 0.01em;
  color: var(--ink); background: var(--amber); text-decoration: none; border: 0; border-radius: 3px; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 -3px 0 rgba(18, 40, 58, 0.22), 0 6px 16px -10px rgba(140, 70, 0, 0.9);
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.btn:hover { background: var(--amber-field); transform: translateY(-1px); box-shadow: inset 0 -3px 0 rgba(18, 40, 58, 0.22), 0 10px 20px -10px rgba(140, 70, 0, 0.9); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(18, 40, 58, 0.22); }
.btn-lg { min-height: 3.6rem; font-size: 1.2rem; padding: 0.9rem 1.7rem; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-quiet { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-quiet:hover { background: var(--label); box-shadow: inset 0 0 0 2px var(--ink); }
.binding .btn { min-height: 2.6rem; padding: 0.5rem 1rem; font-size: 0.98rem; }

/* ---------- The pad sheet ---------- */
.sheet {
  position: relative;
  background-color: var(--pad);
  background-image: var(--img-pad-tint);
  background-size: 420px auto;
}
.rx { font-family: var(--display); font-weight: 800; font-stretch: 100%; line-height: 0.8; display: inline-block; position: relative; letter-spacing: -0.06em; color: var(--ink); }
.rx span { font-size: 0.62em; position: relative; left: -0.12em; top: 0.18em; }

.pad-hero { padding-block: clamp(1rem, 1.6vw, 1.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.letterhead {
  display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 2rem; align-items: end;
  padding-bottom: 0.75rem; border-bottom: 3px double var(--ink);
}
.letterhead .lh-name { font-family: var(--display); font-weight: 850; font-stretch: 125%; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.8rem); letter-spacing: 0.005em; line-height: 1.05; margin: 0; }
.letterhead .lh-cred { margin: 0.35rem 0 0; color: var(--ink-2); font-size: var(--step--1); }
.letterhead .lh-contact { text-align: right; font-family: var(--mono); font-size: 0.98rem; line-height: 1.45; color: var(--ink); }
.letterhead .lh-contact a { text-decoration: none; font-weight: 700; }
.letterhead .lh-contact a:hover { text-decoration: underline; }

.pad-body { display: grid; grid-template-columns: minmax(4.5rem, 9rem) minmax(0, 1fr) minmax(11rem, 14rem); gap: 0 clamp(1rem, 3vw, 2.75rem); margin-top: clamp(1rem, 2.4vw, 1.75rem); }
.pad-body .rx { font-size: clamp(4.5rem, 3rem + 6vw, 9rem); grid-row: 1 / span 3; padding-top: 0.2rem; }
.pad-hero h1 { font-size: clamp(2.05rem, 1.35rem + 2.4vw, 3.3rem); font-stretch: 106%; letter-spacing: -0.02em; max-width: 21ch; }
.pad-hero .promise { font-size: var(--step-1); line-height: 1.42; color: var(--ink-2); margin: 0.75rem 0 0; max-width: 56ch; }
.hero-copy .signoff { margin-top: 1.1rem; }

.clipped-photo { grid-column: 3; grid-row: 1 / span 2; justify-self: end; align-self: start; position: relative; margin: 0.4rem 0 0; width: 100%; max-width: 14rem; transform: rotate(1.6deg); }
.clipped-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; background: var(--ink); box-shadow: 0 2px 2px rgba(18,40,58,.15), 0 18px 30px -16px rgba(18, 40, 58, 0.55); }
.clipped-photo .clip { position: absolute; top: -1.1rem; left: 1.4rem; width: 1.5rem; height: 3.4rem; z-index: 2; }
.clipped-photo figcaption { font-size: var(--step--1); color: var(--ink-2); margin-top: 0.7rem; line-height: 1.35; transform: rotate(-1.6deg); }
.clipped-photo figcaption strong { color: var(--ink); display: block; font-family: var(--display); font-stretch: 110%; }

.scripts { grid-column: 2 / span 2; list-style: none; margin: clamp(1.1rem, 2vw, 1.6rem) 0 0; padding: 0; counter-reset: rx; }
.scripts li {
  counter-increment: rx; display: grid; grid-template-columns: 2.4rem 1fr auto; gap: 0 1rem; align-items: baseline;
  padding: 0.55rem 0; border-bottom: 1px solid var(--pad-line);
}
.scripts li:first-child { border-top: 1px solid var(--pad-line); }
.scripts li::before { content: counter(rx) "."; font-family: var(--mono); font-weight: 700; font-size: 1.15rem; color: var(--amber-deep); }
.scripts .s-text { font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem); line-height: 1.35; font-weight: 600; }
.scripts .s-text b { font-weight: 800; background: linear-gradient(transparent 62%, rgba(240, 164, 58, 0.55) 62%); }
.s-link { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--display); font-stretch: 108%; font-weight: 750; font-size: 1rem; white-space: nowrap; }
.s-link .arrow { width: 1.05em; height: 1.05em; transition: transform 180ms var(--ease-out); }
.s-link:hover .arrow { transform: translateX(3px); }
.t-link { font-weight: 600; }

.signoff { grid-column: 2 / span 2; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.signoff .or { color: var(--ink-2); }
.signoff .or a { font-family: var(--mono); font-weight: 700; font-size: 1.12rem; }
.sigline { grid-column: 2 / span 2; margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; align-items: end; font-size: var(--step--1); color: var(--ink-2); }
.sigline .sig { border-top: 1.5px solid var(--ink); padding-top: 0.35rem; min-width: min(100%, 22rem); }
.sigline .sig b { color: var(--ink); font-family: var(--display); font-stretch: 110%; }

@media (max-width: 900px) {
  .pad-body { grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 11rem); }
  .pad-body .rx { grid-row: auto; grid-column: 1 / -1; font-size: 4.2rem; margin-bottom: 0.25rem; }
  .pad-body .hero-copy { grid-column: 1; }
  .clipped-photo { grid-column: 2; grid-row: 2; }
  .scripts, .signoff, .sigline { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .letterhead { grid-template-columns: 1fr; padding-bottom: 0.75rem; }
  .letterhead .lh-contact { display: none; }
  .letterhead .lh-cred { font-size: 0.88rem; }
  .pad-body { grid-template-columns: 1fr; }
  .pad-body .rx { display: none; }
  .clipped-photo { grid-column: 1; grid-row: 1; justify-self: stretch; max-width: none; margin: 0.4rem 0 1.25rem; transform: none; display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: center; }
  .clipped-photo img { transform: rotate(1.6deg); }
  .clipped-photo .clip { left: 0.9rem; top: -0.9rem; height: 2.8rem; }
  .clipped-photo figcaption { transform: none; margin: 0; }
  .pad-body .hero-copy { grid-row: 2; }
  .scripts li { grid-template-columns: 2rem 1fr; }
  .scripts .s-link { grid-column: 2; margin-top: 0.3rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section-head { display: grid; gap: 0.9rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); max-width: 52rem; }
.section-head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.45; margin: 0; max-width: 54ch; }
.section-cta { margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.section-cta .or { color: var(--ink-2); }
.section-cta .or a { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.on-label { background: var(--pad-deep); border-block: 1px solid var(--pad-line); }
.on-ink { background: var(--ink); color: var(--pad); }
.on-ink a { color: var(--pad); }
.on-ink h2, .on-ink h3 { color: var(--label); }
.on-ink .section-head p { color: #c7ddd4; }
.on-amber { background: var(--amber-field); color: var(--ink); }
.on-amber .section-head p { color: #3a2a12; }

/* Stations (the visit, in order) */
.stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.stations li { padding: 1.25rem 1.25rem 1.5rem 0; border-right: 1px solid var(--pad-line); }
.stations li + li { padding-left: 1.25rem; }
.stations li:last-child { border-right: 0; }
.stations .st-no { font-family: var(--mono); font-weight: 700; color: var(--amber-deep); }
.stations h3 { margin-bottom: 0.5rem; }
.stations p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
@media (max-width: 860px) {
  .stations { grid-template-columns: 1fr 1fr; }
  .stations li:nth-child(2) { border-right: 0; }
  .stations li:nth-child(3) { padding-left: 0; }
  .stations li:nth-child(n+3) { border-top: 1px solid var(--pad-line); }
}
@media (max-width: 520px) {
  .stations { grid-template-columns: 1fr; }
  .stations li, .stations li + li { padding: 1.1rem 0; border-right: 0; }
  .stations li + li { border-top: 1px solid var(--pad-line); }
}

/* ---------- Pharmacy labels (the dispensary) ---------- */
.plan-switch { display: inline-flex; border: 2px solid var(--ink); border-radius: 3px; padding: 3px; gap: 3px; background: var(--label); margin-bottom: 1.5rem; }
.plan-switch input { position: absolute; opacity: 0; pointer-events: none; }
.plan-switch label { font-family: var(--display); font-weight: 750; font-stretch: 110%; padding: 0.55rem 1.1rem; cursor: pointer; border-radius: 2px; color: var(--ink-2); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.plan-switch input:checked + label { background: var(--ink); color: var(--label); }
.plan-switch input:focus-visible + label { outline: 3px solid var(--amber-deep); outline-offset: 2px; }
.plan-note { font-size: var(--step--1); color: var(--ink-2); margin: -0.75rem 0 1.5rem; }

.labels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
@media (max-width: 1100px) { .labels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .labels { grid-template-columns: 1fr; } }
.label {
  position: relative; background: var(--label); color: var(--ink);
  box-shadow: var(--shadow-label);
  padding: 1.1rem 1.2rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  border-top: 6px solid var(--ink);
}
.label h3 { padding-bottom: 0.55rem; border-bottom: 1.5px dashed var(--label-line); }
.label .l-head { white-space: nowrap; display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; font-family: var(--mono); font-size: 0.86rem; color: var(--ink-3); min-height: 1.6rem; }
.label .l-head b { color: var(--ink); }
.label h3 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.8rem); font-stretch: 122%; font-weight: 850; margin-top: 0.2rem; }
.label .l-refill { margin: 0; font-size: 0.92rem; color: var(--ink-2); line-height: 1.4; }
.label .l-refill a { font-weight: 700; }
.label .l-filled { margin: 0; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); border-top: 1px solid var(--label-line); padding-top: 0.5rem; }
.label .l-sig { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.45; min-height: 4.4em; }
.label dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.75rem; font-size: 0.98rem; border-top: 1px solid var(--label-line); padding-top: 0.6rem; }
.label dt { font-family: var(--mono); color: var(--ink-3); font-size: 0.86rem; padding-top: 0.12rem; }
.label dd { margin: 0; font-weight: 600; text-align: right; }
.label .l-price { border-top: 2px solid var(--ink); padding-top: 0.75rem; margin: auto 0 0; }
.label .l-price .p-big { font-family: var(--mono); font-weight: 700; font-size: clamp(1.7rem, 1.4rem + 0.9vw, 2.1rem); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; display: block; }
.label .l-price .p-per { font-size: 0.92rem; color: var(--ink-2); }
.label .l-price .p-msrp { display: block; font-size: 0.95rem; color: var(--ink-2); margin-top: 0.25rem; }
.label .l-price .p-msrp s { text-decoration-color: var(--amber-deep); text-decoration-thickness: 2px; }
.label .l-tag { position: absolute; right: 0.9rem; top: -0.95rem; background: var(--amber); color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 0.82rem; padding: 0.2rem 0.55rem; border-radius: 2px; }
.label .l-more { font-family: var(--mono); font-weight: 700; font-size: 0.95rem; }

/* plan toggle: annual / monthly re-prints every label (works without JS via :has) */
.monthly-only { display: none; }
.dispensary:has(#plan-monthly:checked) .monthly-only { display: revert; }
.dispensary:has(#plan-monthly:checked) .annual-only { display: none; }
.label.reprint .l-price { animation: reprint 620ms var(--ease-out); }
@keyframes reprint {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-0.35rem); }
  to { clip-path: inset(0 0 0 0); transform: none; }
}
.js .labels.feed .label { opacity: 0; transform: translateY(1.25rem); clip-path: inset(0 0 100% 0); }
.js .labels.feed.fed .label { opacity: 1; transform: none; clip-path: inset(-2rem -1rem 0 -1rem); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out), clip-path 900ms var(--ease-out); }
.js .labels.feed.fed .label:nth-child(2) { transition-delay: 90ms; }
.js .labels.feed.fed .label:nth-child(3) { transition-delay: 180ms; }
.js .labels.feed.fed .label:nth-child(4) { transition-delay: 270ms; }
@media (prefers-reduced-motion: reduce) {
  .js .labels.feed .label { opacity: 1; transform: none; clip-path: none; }
  .label.reprint .l-price { animation: none; }
}

/* ---------- Refill slip (amber field) ---------- */
.refills { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.refills h2 { font-size: var(--step-3); }
.refill-list { list-style: none; margin: 0; padding: 0; background: var(--label); box-shadow: 0 18px 40px -24px rgba(80, 40, 0, 0.75); border-top: 6px solid var(--ink); }
.refill-list li { border-bottom: 1px dashed var(--label-line); }
.refill-list li:last-child { border-bottom: 0; }
.refill-list a { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: 0.75rem; align-items: center; padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); transition: background-color 160ms var(--ease-out); }
.refill-list a:hover { background: #f4f9f6; }
.refill-list .box { width: 1.25rem; height: 1.25rem; border: 2px solid var(--ink); border-radius: 2px; }
.refill-list a:hover .box { background: var(--amber); }
.refill-list .r-title { font-weight: 700; line-height: 1.3; }
.refill-list .r-sub { display: block; font-weight: 400; font-size: 0.95rem; color: var(--ink-2); }
.refill-list .arrow { width: 1.2rem; height: 1.2rem; }
@media (max-width: 860px) { .refills { grid-template-columns: 1fr; } }

/* ---------- Columns, lists, tables ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.ruled { list-style: none; margin: 0; padding: 0; border-top: 2px solid currentColor; }
.ruled li { padding: 0.8rem 0; border-bottom: 1px solid var(--pad-line); display: grid; gap: 0.15rem; }
.on-ink .ruled li { border-bottom-color: rgba(226, 240, 234, 0.2); }
.ruled .r-name { font-weight: 700; }
.ruled .r-desc { color: var(--ink-2); font-size: 1rem; }
.on-ink .ruled .r-desc { color: #c7ddd4; }

.products { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.products li { font-weight: 700; font-size: 0.98rem; padding: 0.3rem 0.65rem; border: 1.5px solid currentColor; border-radius: 2px; }

.fees { margin: 0; border-top: 2px solid var(--label); }
.fees .fee { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid rgba(226, 240, 234, 0.22); align-items: baseline; }
.fees .f-name { font-weight: 700; color: var(--label); }
.fees .f-desc { grid-column: 1; color: #c7ddd4; font-size: 1rem; }
.fees .f-price { grid-column: 2; grid-row: 1; font-family: var(--mono); font-weight: 700; font-size: 1.3rem; color: var(--amber-field); white-space: nowrap; }

.table-wrap { overflow-x: auto; background: var(--label); box-shadow: var(--shadow-label); border-top: 6px solid var(--ink); margin: 0 0 1rem; }
table.prices { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 1rem; }
table.prices caption { text-align: left; font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: var(--step-1); padding: 0.9rem 1rem 0.6rem; }
table.prices th, table.prices td { padding: 0.6rem 1rem; text-align: right; border-bottom: 1px solid var(--label-line); white-space: nowrap; }
table.prices th:first-child, table.prices td:first-child { text-align: left; }
table.prices thead th { font-family: var(--mono); font-size: 0.86rem; color: var(--ink-3); font-weight: 700; border-bottom: 2px solid var(--ink); vertical-align: bottom; white-space: normal; line-height: 1.25; }
table.prices td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.prices td:first-child { font-family: var(--body); font-weight: 700; }
table.prices td.you { font-weight: 700; color: var(--ink); background: rgba(240, 164, 58, 0.16); }
table.prices tbody tr:hover td { background: #f1f7f4; }
table.prices tbody tr:hover td.you { background: rgba(240, 164, 58, 0.28); }
.table-note { font-size: var(--step--1); color: var(--ink-2); max-width: 70ch; }

/* ---------- Credentials ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.badges { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 1rem; align-items: end; }
.badges img { width: 100%; max-width: 6.5rem; height: auto; margin-inline: auto; }
.facts { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--pad-line); }
.facts dt { font-family: var(--mono); font-size: 0.9rem; color: var(--ink-3); padding-top: 0.15rem; }
.facts dd { margin: 0; }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 0.1rem; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .quotes { grid-template-columns: 1fr; } }
.quote { margin: 0; padding: 1.5rem 1.5rem 1.6rem 0; border-bottom: 1px solid var(--pad-line); display: flex; flex-direction: column; gap: 0.9rem; }
.quotes .quote:not(:nth-child(3n+1)) { padding-left: 1.5rem; border-left: 1px solid var(--pad-line); }
@media (max-width: 960px) {
  .quotes .quote:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .quotes .quote:nth-child(2n) { padding-left: 1.5rem; border-left: 1px solid var(--pad-line); }
}
@media (max-width: 620px) { .quotes .quote:nth-child(2n) { padding-left: 0; border-left: 0; } }
.quote blockquote { margin: 0; font-size: 1.12rem; line-height: 1.5; }
.quote blockquote p { margin: 0; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption { margin-top: auto; font-size: 0.95rem; color: var(--ink-2); }
.quote figcaption .q-author { font-weight: 700; color: var(--ink); display: block; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--pad-line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 700; font-size: 1.12rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.7rem; height: 0.7rem; border-right: 2.5px solid var(--amber-deep); border-bottom: 2.5px solid var(--amber-deep); transform: translateY(-70%) rotate(45deg); transition: transform 220ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { margin: 0 0 1.2rem; color: var(--ink-2); max-width: 70ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--label); color: var(--ink); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.7); border-top: 6px solid var(--amber); display: grid; gap: 1.1rem; }
.form .f-row { display: grid; gap: 0.35rem; }
.form label { font-weight: 700; font-size: 1rem; }
.form .hint { font-size: 0.92rem; color: var(--ink-2); font-weight: 400; }
.form input, .form textarea { font: inherit; color: var(--ink); background: #f7fbf9; border: 1.5px solid #9fbdb2; border-radius: 2px; padding: 0.75rem 0.85rem; width: 100%; transition: border-color 160ms, box-shadow 160ms; }
.form textarea { min-height: 9rem; resize: vertical; background-image: repeating-linear-gradient(transparent 0 calc(1.6em - 1px), #dbe9e3 calc(1.6em - 1px) 1.6em); background-attachment: local; line-height: 1.6; background-position: 0 0.75rem; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(224, 138, 30, 0.45); }
.form input:user-invalid, .form textarea:user-invalid { border-color: #b3261e; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { margin: 0; padding: 0.85rem 1rem; border-radius: 2px; font-weight: 600; }
.form-status.ok { background: #dff1e6; color: #12432a; }
.form-status.err { background: #fbe4e1; color: #7a1d16; }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid rgba(226, 240, 234, 0.6); }
.contact-list li { padding: 0.9rem 0; border-bottom: 1px solid rgba(226, 240, 234, 0.2); display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; }
.contact-list .c-k { font-family: var(--mono); color: #c7ddd4; font-size: 0.92rem; padding-top: 0.15rem; }
.contact-list a { font-weight: 700; }
.hours { margin: 0; }
.hours .h-row { margin: 0; }

/* ---------- Inner page (a sheet of its own) ---------- */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 3px double var(--ink); }
.crumbs { font-size: 0.95rem; margin: 0 0 1.25rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.page-head-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.page-head-grid .rx { font-size: clamp(3.4rem, 2.5rem + 3.5vw, 6rem); }
.page-head h1 { font-size: var(--step-3); max-width: 24ch; }
.page-head .lede { font-size: var(--step-1); color: var(--ink-2); line-height: 1.45; margin: 1rem 0 0; max-width: 56ch; }
.page-head .section-cta { margin-top: 1.75rem; }
@media (max-width: 600px) { .page-head-grid { grid-template-columns: 1fr; } .page-head-grid .rx { display: none; } }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin: 2.5em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--amber-deep); font-weight: 700; }
.callout { background: var(--label); border-top: 4px solid var(--amber); padding: 1.1rem 1.25rem; margin: 1.5rem 0; box-shadow: var(--shadow-label); }
.callout p:last-child { margin-bottom: 0; }
.page-body { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-body > .wrap > * + * { margin-top: 2.5rem; }
.steps { list-style: none; counter-reset: st; padding: 0; margin: 0 0 1.5rem; border-top: 2px solid var(--ink); }
.steps li { counter-increment: st; display: grid; grid-template-columns: 2.5rem 1fr; padding: 0.9rem 0; border-bottom: 1px solid var(--pad-line); margin: 0; }
.steps li::before { content: counter(st) "."; font-family: var(--mono); font-weight: 700; color: var(--amber-deep); }
.related { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0 2rem; border-top: 2px solid var(--ink); }
.related li { border-bottom: 1px solid var(--pad-line); }
.related a { display: block; padding: 0.85rem 0; font-weight: 700; text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--pad); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; position: relative; border-top: 1px solid rgba(226, 240, 234, 0.18); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; background: radial-gradient(circle at 5px 6px, var(--ink) 2.2px, transparent 2.6px) 0 0 / 12px 6px repeat-x; }
.footer a { color: var(--pad); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem 3rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .f-name { font-family: var(--display); font-weight: 850; font-stretch: 122%; font-size: 1.45rem; color: var(--label); margin: 0 0 0.4rem; }
.footer .f-slogan { color: #c7ddd4; margin: 0 0 1.25rem; max-width: 38ch; }
.footer address { font-style: normal; line-height: 1.7; }
.footer address a { font-family: var(--mono); font-weight: 700; }
.footer h2 { font-size: 1.02rem; font-family: var(--display); font-stretch: 112%; font-weight: 750; color: #c7ddd4; margin: 0 0 0.75rem; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.45rem; }
.footer li a { text-decoration: none; }
.footer li a:hover { text-decoration: underline; }
.fineprint { margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(226, 240, 234, 0.2); font-size: 0.9rem; color: #cfe5dc; display: grid; gap: 0.5rem; }
.fineprint p { margin: 0; max-width: 90ch; }
.fineprint a { color: #d4e6df; }

/* Sticky phone bar on small screens */
.callbar { display: none; }
@media (max-width: 560px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom)); background: var(--binding); box-shadow: 0 -8px 20px -14px rgba(0,0,0,.8); }
  .callbar .btn { min-height: 2.9rem; font-size: 1rem; padding: 0.5rem; }
  .callbar .btn-quiet, .callbar .btn-quiet:hover { color: var(--pad); background: transparent; box-shadow: inset 0 0 0 2px var(--pad); }
  .callbar .btn-quiet:hover { background: rgba(226, 240, 234, 0.14); }
  body { padding-bottom: 4.2rem; }
}

@media print {
  .binding, .callbar, .menu, .form { display: none !important; }
  body { background: #fff; }
}

/* Compact price tables on phones: four columns fit without sideways scroll */
@media (max-width: 600px) {
  table.prices { min-width: 0; font-size: 0.9rem; }
  table.prices th, table.prices td { padding: 0.55rem 0.5rem; }
  table.prices thead th { white-space: normal; font-size: 0.78rem; line-height: 1.25; }
  table.prices caption { padding-inline: 0.6rem; }
}

/* Price tables: title set outside the scrolling area */
.table-block + .table-block { margin-top: 2rem; }
.table-title { font-size: var(--step-1); font-stretch: 116%; margin: 0 0 0.6rem; }
table.prices th, table.prices td { padding: 0.6rem 0.8rem; }
@media (max-width: 600px) { table.prices .opt { display: none; } }
@media (max-width: 560px) {
  .letterhead .lh-name, .hide-sm { display: none; }
  .letterhead { padding-bottom: 0.5rem; }
  .letterhead .lh-cred { margin: 0; }
  .clipped-photo { margin-bottom: 0.9rem; grid-template-columns: 6.5rem 1fr; }
}
@media (max-width: 600px) {
  table.prices { font-size: 0.84rem; }
  table.prices th, table.prices td { padding: 0.5rem 0.35rem; }
  table.prices td:first-child { white-space: normal; }
  table.prices td { letter-spacing: -0.02em; }
}
/* Focus ring on ink grounds: amber reads at 5.6:1 there */
.binding :focus-visible, .on-ink :focus-visible, .footer :focus-visible, .callbar :focus-visible { outline-color: var(--amber); }
.form input, .form textarea { border-color: #5f7f75; }
.form :focus-visible { outline-color: var(--amber-deep); }
