/* Reveal Associates: site styles.
   Palette comes from Reveal's own logo (brown and gold). Gold is a fill, never a text colour on white.
   LAUNCH: the .confirm rule marks text that Suhas must confirm; scripts/check-launch.mjs refuses to ship while any remains. */

@font-face { font-family: "Bitter"; src: url("/assets/fonts/Bitter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/PublicSans-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #2a1507;
  --brown: #5a1e00;
  --brown-deep: #3b1300;
  --gold: #f2a900;
  --gold-tint: #fdf0c9;
  --paper: #f4f3f1;
  --white: #ffffff;
  --line: #dad6d0;
  --muted: #6b5a4d;
  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 62ch;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--ink); background: var(--white); font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brown); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brown-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brown-deep); color: var(--white); padding: 0.7rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

h1, h2, h3 { font-family: var(--serif); color: var(--brown-deep); font-weight: 700; margin: 0; }
h1 { font-size: clamp(2.15rem, 5.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); line-height: 1.18; letter-spacing: -0.008em; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1rem; max-width: var(--measure); }
.lead { font-size: clamp(1.1rem, 2vw, 1.28rem); line-height: 1.6; color: var(--ink); }
.small { font-size: 0.9rem; color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(3rem, 8vw, 5.5rem); }
.band--paper { background: var(--paper); }
.band--brown { background: var(--brown); color: var(--paper); }
.band--brown h2 { color: var(--white); }
.band--brown a { color: var(--gold-tint); }
.band--brown p, .band--brown .lead { color: var(--paper); }
.band > .wrap > h2 { margin-bottom: 0.6rem; }
.band > .wrap > .intro { margin-bottom: 2.2rem; }

/* header */
.site-head { position: static; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.6rem; padding-block: 0.55rem; }
.brand { display: block; line-height: 0; }
.brand img { height: 3.5rem; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; margin-left: auto; font-weight: 500; font-size: 0.98rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 0.5rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--gold); }
.nav a[aria-current="page"] { border-bottom-color: var(--brown); font-weight: 600; }
@media (min-width: 52rem) { .site-head { position: sticky; top: 0; } }
.btn.head-cta { display: none; }
@media (min-width: 62rem) { .btn.head-cta { display: inline-flex; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.7rem 1.35rem; border-radius: 0.3rem; font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn--gold { background: var(--gold); color: var(--brown-deep); }
.btn--gold:hover { background: #ffbd2e; color: var(--brown-deep); }
.btn--line { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn--line:hover { background: var(--brown); color: var(--white); }
.band--brown .btn--line { border-color: var(--gold-tint); color: var(--gold-tint); }
.band--brown .btn--line:hover { background: var(--gold-tint); color: var(--brown-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* hero */
.hero { padding-block: clamp(2.2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 62rem) { .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero h1 { margin-bottom: 1.2rem; max-width: 16ch; }
.hero .for { margin-top: 1.4rem; color: var(--muted); font-size: 0.95rem; max-width: 46ch; }

/* the visit record: the one memorable thing on the site */
.record { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--gold); border-radius: 0.2rem; box-shadow: 0.7rem 0.7rem 0 var(--paper), 0.7rem 0.7rem 0 1px var(--line); max-width: 29rem; width: 100%; justify-self: center; margin: 0 0.7rem 0.7rem 0; }
.record header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.9rem 1.1rem 0.6rem; }
.record header strong { font: 700 1.05rem/1.2 var(--serif); color: var(--brown-deep); }
.record header span { font-size: 0.82rem; color: var(--muted); }
.record .photo { margin: 0 1.1rem; border: 1px solid var(--line); line-height: 0; }
.record .photo svg { width: 100%; height: auto; }
.record dl { margin: 0; padding: 0.7rem 1.1rem 0.4rem; display: grid; grid-template-columns: 7.2rem 1fr; gap: 0.35rem 0.8rem; font-size: 0.92rem; line-height: 1.45; }
.record dt { color: var(--muted); }
.record dd { margin: 0; font-weight: 500; }
.record footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 1.1rem 0.95rem; border-top: 1px dashed var(--line); margin-top: 0.4rem; }
.record footer span { font-size: 0.82rem; color: var(--muted); max-width: 17rem; }
.seal { width: 3.7rem; height: auto; flex: none; transform-origin: 50% 70%; animation: land 520ms cubic-bezier(.2,.9,.3,1.2) 700ms both; }
@keyframes land { from { opacity: 0; transform: scale(1.7) rotate(-9deg); } to { opacity: 1; transform: none; } }
.record-note { max-width: 29rem; justify-self: center; font-size: 0.82rem; color: var(--muted); margin: 0.9rem 0.7rem 0 0; }
@media (prefers-reduced-motion: reduce) { .seal { animation: none; } }

/* the schedule of checks (a scope-of-work, not a card grid) */
.sched { border-top: 2px solid var(--brown-deep); margin: 0; padding: 0; list-style: none; }
.sched > li { display: grid; gap: 0.4rem 2rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .sched > li { grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 1fr); } }
.sched h3 { font-size: 1.25rem; }
.sched p { margin: 0; }
.sched .get { color: var(--muted); }
.sched .get b { color: var(--ink); font-weight: 600; }

/* process: a real sequence, so it is numbered */
.steps { counter-reset: s; margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border-left: 3px solid var(--gold); }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.7rem 2.7rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: -1.05rem; top: -0.05rem; width: 2.05rem; height: 2.05rem; border-radius: 50%; background: var(--brown-deep); color: var(--white); font: 700 1rem/2.05rem var(--serif); text-align: center; }
.steps h3 { margin-bottom: 0.2rem; }
.steps p { margin: 0; }

/* claim and mechanism */
.proof { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.proof > li { display: grid; gap: 0.3rem 2.5rem; padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .proof > li { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.proof h3 { font-size: 1.3rem; }
.proof p { margin: 0; }

.pack { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 52rem) { .pack { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { padding: 0.55rem 0 0.55rem 2rem; position: relative; border-bottom: 1px solid rgba(255,255,255,.18); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 1.05rem; height: 0.55rem; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg) translate(2px, -3px); }

/* inner pages */
.page-head { padding-block: clamp(2.2rem, 6vw, 3.8rem) 1rem; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); max-width: 22ch; margin-bottom: 1rem; }
.page-head + .band { padding-top: clamp(1.2rem, 3vw, 2rem); }
.prose h2 { margin: 2.4rem 0 0.7rem; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.prose ul { padding-left: 1.2rem; max-width: var(--measure); }
.prose li { margin-bottom: 0.4rem; }
.facts { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.5rem 1.4rem; margin: 1rem 0 2rem; max-width: 42rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.tpl { background: var(--paper); border-left: 4px solid var(--gold); padding: 1rem 1.2rem; font-size: 0.97rem; max-width: 36rem; }
.tpl p { margin: 0 0 0.3rem; }

/* footer */
.site-foot { background: var(--brown-deep); color: var(--paper); padding-block: 2.6rem 5.4rem; font-size: 0.97rem; }
.site-foot a { color: var(--gold-tint); }
.site-foot .wrap { display: grid; gap: 2rem 3rem; }
@media (min-width: 52rem) { .site-foot .wrap { grid-template-columns: 1.2fr 1fr 1fr; } .site-foot { padding-bottom: 2.6rem; } }
.site-foot img { height: 3.4rem; width: auto; margin-bottom: 0.8rem; }
.foot-logo { filter: brightness(0) invert(1); }
.site-foot h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; letter-spacing: 0; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.35rem; }
.site-foot .legal { color: #cbbfb3; font-size: 0.85rem; grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.2rem; }

/* phone: a call bar that stays in reach */
.callbar { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
.callbar .btn { min-height: 2.9rem; }
@media (min-width: 52rem) { .callbar { display: none; } }

/* LAUNCH: delete this rule only after Suhas has confirmed every highlighted line (scripts/check-launch.mjs enforces it) */
.confirm { color: var(--ink); background: #ffe58a; outline: 1px dashed #b07a00; outline-offset: 1px; }

@media print { .site-head, .callbar { display: none; } }

/* Tables inside long text pages (the Verify privacy policy): a wrapper scrolls on a phone, so the page never does. */
.table-wrap { overflow-x: auto; margin: 0.8rem 0 1.6rem; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line, #d9d2c4); }
.prose th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.prose h3 { margin: 1.8rem 0 0.4rem; font-size: 1.15rem; }
.prose ol { padding-left: 1.4rem; max-width: var(--measure); }
.prose code { font-size: 0.9em; }
.summary-box { max-width: var(--measure); background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 0.2rem; padding: 0.2rem 1.4rem 0.6rem; margin: 1.2rem 0 2rem; }
.summary-box h2 { margin-top: 1rem; }
/* On a phone each table row becomes a labelled card, so no column is cut off. */
@media (max-width: 640px) {
  .prose table { min-width: 0; }
  .prose thead { position: absolute; left: -9999px; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose tr { border: 1px solid var(--line); border-radius: 0.2rem; background: var(--white); margin: 0 0 0.8rem; padding: 0.3rem 0; }
  .prose td { border: 0; padding: 0.4rem 0.9rem; }
  .prose td::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.1rem; }
}
/* Printing or saving as PDF: the text only, no site chrome. */
@media print {
  .site-head, .site-foot, .callbar, .skip { display: none !important; }
  .band, .page-head { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .prose table { min-width: 0; font-size: 0.85rem; }
  .prose tr, .summary-box { break-inside: avoid; }
}
