/* Glyflo support & privacy: specimen-sheet styling. Palette: mist, lilac, periwinkle, indigo. */
:root {
  --mist: #F4EEFF;
  --lilac: #DCD6F7;
  --peri: #A6B1E1;
  --indigo: #424874;
  --shadow: 0 18px 40px rgba(66, 72, 116, 0.16), 0 3px 8px rgba(66, 72, 116, 0.08);
  --radius: 28px;
  --display: "Optima", "Optima Nova", "Candara", "Segoe UI", "URW Classico", "Palatino Linotype", sans-serif;
  --text: "Optima", "Candara", "Segoe UI", "Gill Sans", "Trebuchet MS", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--indigo);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--indigo); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--peri); }
a:hover, a:focus-visible { text-decoration-color: var(--indigo); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--indigo); color: var(--mist); padding: 10px 16px; border-radius: 0 0 14px 0; }
.skip:focus { left: 0; }

/* Masthead: the "Aa" with metric guides */
.masthead { padding: 28px 20px 8px; max-width: 980px; margin: 0 auto; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { font-family: var(--display); font-weight: 900; font-size: 1.6rem; letter-spacing: 0.01em; text-decoration: none; }
.leafnav { display: flex; gap: 6px; flex-wrap: wrap; }
.leafnav a { text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: 0.9rem; background: var(--lilac); }
.leafnav a[aria-current="page"] { background: var(--indigo); color: var(--mist); }
.metric-art { width: 100%; max-width: 560px; height: auto; display: block; margin: 22px auto 0; }
.lede { font-family: var(--display); font-size: clamp(1.5rem, 5.6vw, 2.5rem); line-height: 1.2; font-weight: 900; margin: 18px 0 6px; max-width: 18em; }
.lede-sub { max-width: 36em; margin: 0 0 8px; }

main { max-width: 980px; margin: 0 auto; padding: 0 20px 40px; }
.metric-label { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 4px; }
h2 { font-family: var(--display); font-weight: 900; font-size: 1.55rem; line-height: 1.25; margin: 0 0 10px; }
h3 { font-family: var(--display); font-weight: 900; font-size: 1.15rem; margin: 0 0 6px; }
section { margin-top: 44px; }
.guide-rule { border: 0; border-top: 2px dashed var(--peri); margin: 44px 0 0; }

/* The card strip: specimen cards that snap sideways, like the app */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 22px; margin: 0 -4px; }
.card { scroll-snap-align: center; background: var(--lilac); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.card.ink { background: var(--indigo); color: var(--mist); }
.card.ink a { color: var(--mist); }
.route { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; }
.chip { background: var(--indigo); color: var(--mist); padding: 3px 10px; border-radius: 999px; }
.card.ink .chip { background: var(--lilac); color: var(--indigo); }
.glyphs { font-family: "Didot", "Bodoni 72", "Big Caslon", "Georgia", serif; font-size: 4.4rem; line-height: 1; margin: 6px 0 0; }
.card p { margin: 0; }
.strip-hint { font-size: 0.85rem; margin: 0; }

/* Steps: numbered like the pipeline */
.pipeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: stage; }
.pipeline li { counter-increment: stage; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.pipeline li::before { content: counter(stage); width: 48px; height: 48px; border-radius: 50%; background: var(--lilac); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 1.2rem; }
.pipeline li:last-child::before { background: var(--indigo); color: var(--mist); }

/* FAQ as a waterfall of questions */
.waterfall details { background: var(--lilac); border-radius: 22px; margin-bottom: 10px; padding: 0 18px; }
.waterfall summary { cursor: pointer; padding: 16px 0; font-family: var(--display); font-weight: 900; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.waterfall summary::-webkit-details-marker { display: none; }
.waterfall summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.waterfall details[open] summary::after { content: "\2212"; }
.waterfall details p { margin: 0 0 16px; }

/* Contact: the indigo counter */
.counter { background: var(--indigo); color: var(--mist); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.counter a.mail { display: inline-block; background: var(--mist); color: var(--indigo); font-weight: 700; padding: 12px 20px; border-radius: 999px; text-decoration: none; word-break: break-all; justify-self: start; }
.counter p { margin: 0; }

footer { max-width: 980px; margin: 0 auto; padding: 22px 20px 40px; font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 8px 18px; border-top: 2px dashed var(--peri); }

/* Privacy colophon: one narrow column with marginal metric labels */
.colophon { max-width: 720px; }
.leaf { display: grid; gap: 4px 22px; margin-top: 34px; }
.leaf .margin { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 6px; }
.leaf p, .leaf ul { margin: 0 0 10px; }
.leaf ul { padding-left: 1.2em; }
.leaf li { margin-bottom: 6px; }
.leaf li::marker { color: var(--indigo); content: "\25C6  "; font-size: 0.8em; }
.stamp { background: var(--lilac); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-top: 24px; }
.stamp strong { font-family: var(--display); font-weight: 900; font-size: 1.25rem; display: block; }
table.ledger { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
table.ledger th, table.ledger td { text-align: left; padding: 10px 12px; vertical-align: top; }
table.ledger th { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
table.ledger td { background: #fff; }
table.ledger td:first-child { border-radius: 16px 0 0 16px; font-weight: 700; }
table.ledger td:last-child { border-radius: 0 16px 16px 0; }

@media (min-width: 720px) {
  .masthead { padding-top: 40px; }
  .strip { grid-auto-columns: calc((100% - 28px) / 3); }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .leaf { grid-template-columns: 150px 1fr; }
  .leaf .margin { text-align: right; }
}
@media (prefers-reduced-motion: no-preference) {
  .strip { scroll-behavior: smooth; }
}
