/* registrycredit.com
   Blue-and-white porcelain with a gilt rim: cobalt on cool white, gold used only for rims and rules.
   Display: Libre Caslon Text (engraved-stationery serif). Text: Libre Franklin. */

/* Fonts, self-hosted (SIL Open Font License; licenses in /fonts). Latin subset.
   Libre Caslon Text for headings: sturdy strokes that hold up on screen.
   Libre Franklin for text: a sturdy American gothic, the classic partner to Caslon. */
@font-face {
  font-family: "Libre Caslon Text";
  src: url("/fonts/libre-caslon-text.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Caslon Text";
  src: url("/fonts/libre-caslon-text-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("/fonts/libre-franklin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --porcelain: #f6f7f9;
  --paper: #ffffff;
  --ink: #172035;
  --ink-soft: #313a50;
  --cobalt: #23408e;
  --cobalt-deep: #1a2f6b;
  --wash: #e6ebf6;
  --gilt: #b08d45;
  --gilt-text: #7a5c1e;
  --line: #d6dcea;
  --focus: #b08d45;

  --display: "Libre Caslon Text", "Baskerville", Georgia, serif;
  --text: "Libre Franklin", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--cobalt-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0; }
h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h3 {
  font-family: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
}
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink); max-width: 36em; }
.measure { max-width: 38em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.4rem;
  border-radius: 999px; border: 1.5px solid var(--cobalt);
  font: 700 1rem/1.2 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--cobalt); }
.btn-quiet:hover { background: var(--wash); color: var(--cobalt-deep); }

/* Header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.5rem; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font-family: var(--display); font-size: 1.35rem; font-weight: 400; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.nav a:hover { color: var(--cobalt); text-decoration: underline; }
.nav .btn { color: #fff; min-height: 44px; padding: 0.55rem 1.1rem; }
.nav .btn:hover { color: #fff; text-decoration: none; }
@media (max-width: 860px) { .nav .nav-link { display: none; } }
@media (max-width: 560px) { .nav .btn { display: none; } .site-head .wrap { min-height: 4rem; } }

/* Hero */
.hero { background: var(--paper); padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { max-width: 13em; }
.hero .lede { margin-top: 1.5rem; }
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-note { margin-top: 1.5rem; font-size: 0.95rem; color: var(--ink-soft); }

.plate-wrap { position: relative; justify-self: center; width: min(100%, 470px); }
.plate { width: 100%; filter: drop-shadow(0 18px 32px rgba(23, 32, 53, 0.13)); }
.plate .rim-progress {
  stroke-dasharray: 1394.9;
  stroke-dashoffset: 1394.9;
  animation: rim 2.2s cubic-bezier(0.35, 0.05, 0.2, 1) 0.4s forwards;
}
@keyframes rim { to { stroke-dashoffset: 348.7; } }
@media (prefers-reduced-motion: reduce) {
  .plate .rim-progress { animation: none; stroke-dashoffset: 348.7; }
}
.plate-caption { font-family: var(--display); }

.gift-slip {
  position: absolute; left: -8%; bottom: -4%;
  width: min(78%, 300px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gilt);
  border-radius: 8px;
  padding: 1rem 1.1rem 1.05rem;
  box-shadow: 0 12px 30px rgba(23, 32, 53, 0.12);
  font-size: 0.95rem; line-height: 1.45;
}
.gift-slip p { margin: 0; }
.gift-slip .from { font-weight: 700; }
.gift-slip .note { font-family: var(--display); font-style: italic; font-size: 1.02rem; margin: 0.4rem 0 0.7rem; color: var(--ink); }
.gift-slip .bal { display: flex; justify-content: space-between; gap: 0.5rem; border-top: 1px solid var(--line); padding-top: 0.6rem; color: var(--ink-soft); }
.gift-slip .bal strong { color: var(--ink); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .plate-wrap { width: min(88%, 400px); margin-top: 0.5rem; }
  .gift-slip { position: relative; left: auto; bottom: auto; margin: -14% auto 0; width: min(92%, 320px); }
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 1rem; color: var(--ink); }

/* Before / after table */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%; border-collapse: collapse; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: 1.02rem;
}
.compare caption { text-align: left; color: var(--ink-soft); padding: 0 0 0.75rem; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--display); font-weight: 400; font-size: 1.15rem; background: var(--wash); }
.compare tbody th { font-weight: 700; width: 22%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td.ours { background: #fbfcfe; }
@media (max-width: 640px) {
  .compare, .compare thead, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare thead { display: none; }
  .compare caption { display: block; padding: 1rem 1.15rem 0.25rem; }
  .compare tbody tr { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th { border: 0; padding-bottom: 0.25rem; width: auto; }
  .compare td { border: 0; padding-top: 0.2rem; padding-bottom: 0.4rem; }
  .compare td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink-soft); }
}

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--gilt); padding-top: 1.1rem; }
.steps li::before {
  content: counter(step);
  display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--cobalt);
  margin-bottom: 0.75rem; font-weight: 400;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--ink); font-size: 1.02rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Who it's for: three lists */
.features { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.audience h3 { font-family: var(--display); font-weight: 400; font-size: 1.45rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); margin-bottom: 0.25rem; }
.audience ul { list-style: none; margin: 0; padding: 0; }
.audience li { padding: 0.85rem 0 0.85rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; font-size: 1.02rem; }
.audience li:last-child { border-bottom: 0; }
.audience li::before {
  content: ""; position: absolute; left: 0; top: 1.25rem;
  width: 0.62rem; height: 0.62rem; border-radius: 50%;
  border: 1.5px solid var(--cobalt); box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 4px var(--gilt);
}
.audience li strong { font-weight: 700; }
@media (max-width: 900px) { .audiences { grid-template-columns: 1fr; } }

/* The money band */
.money { background: var(--cobalt); color: #fff; }
.money h2 { color: #fff; }
.money .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); }
.money .section-head p { color: #eef1fa; }
.money ul { list-style: none; margin: 0; padding: 0; }
.money li { padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.money li:first-child { border-top: 0; padding-top: 0; }
.money li strong { display: block; font-weight: 700; margin-bottom: 0.2rem; }
.money li span { color: #eef1fa; }
@media (max-width: 860px) { .money .wrap { grid-template-columns: 1fr; } }

/* Two up */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.panel h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }
.panel p:last-child { margin-bottom: 0; }
.panel .aside { font-size: 0.98rem; color: var(--ink-soft); border-left: 2px solid var(--gilt); padding-left: 0.9rem; }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } }

.needs { margin: 0; padding: 0; list-style: none; }
.needs li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.needs li:last-child { border-bottom: 0; }

/* Request form */
.request { background: var(--wash); }
.request .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.request .who { color: var(--ink-soft); }
.request .who a { white-space: nowrap; }
@media (max-width: 900px) { .request .wrap { grid-template-columns: 1fr; } }

.form-card { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2.25rem); }
.form-progress { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 1.25rem; display: none; }
.js .form-progress { display: block; }
.form-progress-bar { height: 4px; background: var(--wash); border-radius: 2px; margin-top: 0.5rem; overflow: hidden; }
.form-progress-bar span { display: block; height: 100%; width: 33.33%; background: var(--gilt); transition: width 0.25s ease; }
@media (prefers-reduced-motion: reduce) { .form-progress-bar span { transition: none; } }

fieldset { border: 0; margin: 0 0 1.75rem; padding: 0; min-width: 0; }
.js fieldset.step[hidden] { display: none; }
legend { font-family: var(--display); font-size: 1.4rem; font-weight: 400; padding: 0; margin-bottom: 1rem; }
.field { margin-bottom: 1.1rem; }
.field > label, .group-label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; }
.hint { display: block; font-size: 0.92rem; color: var(--ink-soft); font-weight: 400; margin-top: 0.15rem; }
.req { color: var(--gilt-text); font-weight: 700; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.8rem;
  border: 1.5px solid #7a849b; border-radius: 8px; background: #fff; color: var(--ink);
  font: 1rem/1.4 var(--text);
}
textarea { min-height: 7rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--cobalt); outline-offset: 1px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }

.choices { display: grid; gap: 0.5rem; margin-top: 0.35rem; }
.choice { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.7rem 0.85rem; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1.4; }
.choice:hover { border-color: #7a849b; }
.choice input { margin: 0.2rem 0 0; width: 1.15rem; height: 1.15rem; accent-color: var(--cobalt); flex: none; }
.choice:has(input:checked) { border-color: var(--cobalt); background: #f4f6fc; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }

.form-nav { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.form-nav .spacer { flex: 1; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
.js .no-js-submit[hidden] { display: none; }
.form-error { color: #8a1c1c; font-weight: 600; font-size: 0.98rem; margin: 0 0 1rem; }
.form-error:empty { display: none; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 0.9rem; color: var(--ink-soft); margin-top: 1rem; }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq details p { color: var(--ink); margin: 0 0 1.25rem; max-width: 42em; }

/* Plain pages */
.page { background: var(--paper); padding: clamp(3rem, 7vw, 5rem) 0; min-height: 60vh; }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.6rem; margin: 2.25rem 0 0.75rem; }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: 0.4rem; }

/* Footer */
.site-foot { background: var(--ink); color: #dde2ec; padding: 3rem 0 2.5rem; font-size: 0.98rem; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: #fff; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; }
.site-foot .brand { color: #fff; margin-bottom: 0.75rem; }
.site-foot .brand:hover { color: #fff; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.4rem; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.16); padding-top: 1.25rem; font-size: 0.9rem; color: #c6cddb; }
.site-foot .legal p { margin: 0 0 0.4rem; }
@media (max-width: 700px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* Small helpers (no inline styles: the site's Content-Security-Policy blocks them) */
.flush-top { padding-top: 0; }
.after-head { margin-top: 1rem; }
.panel-title { font-family: var(--display); font-weight: 400; font-size: 1.45rem; margin-bottom: 0.75rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
