/* =====================================================================
   AntoNika — Animal Almanac aesthetic
   Editorial luxury × 19th-century natural-history encyclopedia
   ===================================================================== */

:root {
  --cream: #f3ead8;
  --paper: #faf5ea;
  --ink: #182621;
  --ink-soft: #2e3d36;
  --ink-tint: rgba(24, 38, 33, 0.62);
  --ochre: #b06f2f;
  --ochre-deep: #8a4f1c;
  --rust: #8a3b1f;
  --moss: #38554a;
  --line: rgba(24, 38, 33, 0.18);
  --line-soft: rgba(24, 38, 33, 0.08);
  --shadow-paper: 0 30px 60px -30px rgba(24, 38, 33, 0.22), 0 2px 6px rgba(24, 38, 33, 0.05);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(176, 111, 47, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(56, 85, 74, 0.08), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.15 0 0 0 0 0.13 0 0 0 0.040 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  position: relative;
}

::selection { background: var(--ochre); color: var(--paper); }

a { color: inherit; }

/* ============== Layout primitives ============== */

.frame {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.rule.double {
  height: 4px;
  background: transparent;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.numeral {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 300;
  font-style: italic;
  color: var(--ochre);
  letter-spacing: -0.04em;
}

/* ============== Top mast ============== */

.mast {
  border-bottom: 1px solid var(--ink);
  position: sticky;
  top: 0;
  background: rgba(243, 234, 216, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  z-index: 60;
}
.mast-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.mast-meta { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-tint); }
.mast-meta.right { text-align: right; }
.mast-mark {
  text-align: center;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 30;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.mast-mark .small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-tint);
  margin-top: -2px;
}

/* ============== Hero ============== */

.hero {
  padding: 72px 0 88px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 60px;
  align-items: end;
}
.hero-headline {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 300;
  font-size: clamp(56px, 8vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.hero-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--ochre-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-lede {
  margin-top: 28px;
  max-width: 520px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.hero-lede strong { color: var(--ink); font-weight: 500; }

.hero-cta-row {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-side {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.hero-portrait {
  position: relative;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 14px;
  box-shadow: var(--shadow-paper);
  transform: rotate(-1.2deg);
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.04) saturate(0.9);
}
.hero-portrait::after {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  border: 1px solid rgba(24, 38, 33, 0.5);
}
.hero-portrait .seal {
  position: absolute;
  width: 130px;
  height: 130px;
  right: -38px;
  bottom: -40px;
  object-fit: contain;
  opacity: 0.95;
  transform: rotate(8deg);
  mix-blend-mode: multiply;
  filter: drop-shadow(0 6px 14px rgba(24, 38, 33, 0.25));
  pointer-events: none;
}
.hero-cred {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-tint);
  text-align: right;
  line-height: 1.4;
}
.hero-cred span { display: block; font-style: normal; letter-spacing: 0.18em; text-transform: uppercase; font-size: 10px; color: var(--ink-soft); }

.hero-id-card {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 18px;
  font-size: 13px;
  align-items: center;
  box-shadow: var(--shadow-paper);
}
.hero-id-card .field-label { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-tint); }
.hero-id-card .field-value { font-family: var(--font-mono); font-size: 13px; }
.hero-id-card .field-value.big { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.hero-id-card .status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--moss); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(56, 85, 74, 0.18); }

/* ============== Almanac index ============== */

.almanac-index {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1.6fr 3fr;
  gap: 32px;
  align-items: start;
}
.almanac-index .label { padding-top: 4px; }
.toc {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.toc li {
  border-top: 1px solid var(--ink);
  padding-top: 10px;
  font-family: var(--font-body);
  font-weight: 400;
}
.toc .vol { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-tint); }
.toc .ttl {
  margin-top: 4px;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 30;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.toc a { text-decoration: none; }
.toc a:hover .ttl { color: var(--ochre-deep); }

/* ============== Buttons ============== */

.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--ochre-deep); border-color: var(--ochre-deep); }
.btn .arrow { font-family: var(--font-display); font-weight: 300; font-style: italic; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.block { display: flex; width: 100%; justify-content: center; }

/* ============== Section: How it works ============== */

.section { padding: 96px 0; position: relative; }
.section + .section { border-top: 1px solid var(--ink); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-head h2 em { font-style: italic; color: var(--ochre-deep); font-variation-settings: "opsz" 144, "SOFT" 100; }
.section-head .lede { font-size: 18px; max-width: 480px; color: var(--ink-soft); line-height: 1.5; }
.section-head .stamp { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-tint); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.step {
  padding: 28px 24px 36px;
  border-right: 1px solid var(--line);
  position: relative;
  background: rgba(250, 245, 234, 0.4);
}
.step:last-child { border-right: 0; }
.step .num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 300;
  font-style: italic;
  font-size: 78px;
  line-height: 0.9;
  color: var(--ochre);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.step h3 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 30;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 10px;
}
.step p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* ============== Section: Plans / Certificates ============== */

.certificates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}
.cert {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-paper);
  transition: transform 0.2s ease;
}
.cert:hover { transform: translateY(-4px); }
.cert.popular {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cert.popular:hover { transform: translateY(-4px); }
/* Push the list to grow and pin the CTA + renewal to the bottom, so the
   ENROLL buttons line up across the three cards regardless of feature count. */
.cert ul { flex: 1 0 auto; }
.cert .buy-btn { margin-top: auto; }
.cert .renewal { margin-bottom: 0; min-height: 1.2em; }
.cert .roman {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 300;
  font-style: italic;
  font-size: 72px;
  line-height: 1;
  color: var(--ochre);
  letter-spacing: -0.04em;
}
.cert.popular .roman { color: var(--ochre); }
.cert .cert-name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
.cert .cert-tag { font-size: 13px; color: var(--ink-tint); line-height: 1.5; }
.cert.popular .cert-tag { color: rgba(250, 245, 234, 0.62); }
.cert .price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.cert.popular .price-row { border-color: rgba(250, 245, 234, 0.22); }
.cert .price {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 500;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.cert .price .cents { font-size: 24px; font-weight: 400; vertical-align: top; opacity: 0.7; }
.cert .price-meta { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-tint); }
.cert.popular .price-meta { color: rgba(250, 245, 234, 0.62); }

.cert ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
}
.cert ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.4;
}
.cert ul li::before {
  content: "✚";
  color: var(--ochre);
  font-size: 13px;
  margin-top: 2px;
}

.cert .ribbon {
  position: absolute;
  top: 0;
  right: 24px;
  background: var(--ochre);
  color: var(--paper);
  padding: 6px 14px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
}
.cert .renewal {
  font-style: italic;
  font-size: 13px;
  color: var(--ink-tint);
  text-align: center;
}
.cert.popular .renewal { color: rgba(250, 245, 234, 0.62); }

.cert .buy-btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  width: 100%;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.cert .buy-btn:hover { background: var(--ink); color: var(--paper); }
.cert.popular .buy-btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cert.popular .buy-btn:hover { background: var(--ochre); border-color: var(--ochre); color: var(--paper); }

/* ============== Marginalia / FAQ ============== */

.marginalia { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.marginalia h2 { margin-top: 0; }
.faq { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--ink);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--ink); }
.faq-item .q-num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 300;
  font-style: italic;
  font-size: 32px;
  color: var(--ochre);
  line-height: 1;
}
.faq-item .q-text {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 30;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.faq-item .a-text {
  grid-column: 2;
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink-soft);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.2s ease;
}
.faq-item.open .a-text { max-height: 400px; margin-top: 16px; }
.faq-item .toggle {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ochre);
  margin-left: 8px;
}

/* ============== Trust band ============== */

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trust-item .big {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.trust-item .big em { font-style: italic; color: var(--ochre-deep); font-variation-settings: "opsz" 144, "SOFT" 100; }
.trust-item .lbl { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-tint); }

/* ============== Footer ============== */

.foot {
  padding: 60px 0 48px;
  border-top: 1px solid var(--ink);
  background: var(--paper);
  font-size: 13.5px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.foot h4 { font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-tint); margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a { text-decoration: none; color: var(--ink); }
.foot a:hover { color: var(--ochre-deep); }
.foot-mark {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "SOFT" 100;
  font-weight: 300;
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.foot-mini {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-tint);
  display: flex;
  justify-content: space-between;
}

/* ============== Public Profile L2 — PIN form + records ============== */

.pin-form { display: inline-block; }
.pin-digits {
  display: inline-flex;
  gap: 10px;
}
.pin-digit {
  width: 54px;
  height: 64px;
  text-align: center;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-weight: 500;
  font-size: 30px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  caret-color: var(--ochre);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pin-digit:focus {
  outline: 0;
  border-color: var(--ochre-deep);
  box-shadow: 0 0 0 3px rgba(176, 111, 47, 0.18);
  background: #fff;
}
@media (max-width: 560px) {
  .pin-digits { gap: 6px; }
  .pin-digit { width: 42px; height: 52px; font-size: 24px; }
}

.records {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}
.record {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.record-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-tint);
  padding-top: 6px;
}
.record-type {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-deep);
  margin: 0 0 4px;
}
.record-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 30;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 6px;
}
.record-desc {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.record-next {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-tint);
  font-style: italic;
}
@media (max-width: 560px) {
  .record { grid-template-columns: 1fr; gap: 4px; }
}

/* ============== Stripe-style checkout overlay ============== */

body.checkout-open { overflow: hidden; }

.checkout {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  background: rgba(24, 38, 33, 0.55);
  backdrop-filter: blur(6px);
  align-items: stretch;
  justify-content: center;
}
.checkout.open { display: flex; animation: fade 0.18s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.checkout-sheet {
  background: #fff;
  width: 100%;
  max-width: 980px;
  margin: 40px;
  display: grid;
  grid-template-columns: 1.05fr 1.4fr;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: #0a2540;
  box-shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0,0,0,0.3);
  border-radius: 6px;
  overflow: hidden;
  animation: rise 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.checkout-left {
  background: linear-gradient(180deg, #f6f9fc, #eef2f7);
  padding: 36px 36px 28px;
  display: flex;
  flex-direction: column;
}
.checkout-merchant { font-size: 14px; color: #425466; font-weight: 500; margin-bottom: 24px; }
.checkout-merchant .dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: #182621; margin-right: 8px; vertical-align: middle; }
.checkout-product-name { font-size: 14px; color: #425466; }
.checkout-product-price { font-size: 32px; font-weight: 500; margin-top: 2px; letter-spacing: -0.02em; color: #0a2540; }
.checkout-line {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3e8ee;
}
.checkout-line.total { font-weight: 600; font-size: 15px; border-bottom: 0; padding-top: 12px; }
.checkout-trust {
  margin-top: auto;
  font-size: 12px;
  color: #697386;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 24px;
}

.checkout-right { padding: 36px 40px 28px; display: flex; flex-direction: column; }
.checkout-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: 0; background: transparent; cursor: pointer;
  color: #697386; font-size: 22px;
}
.checkout-close:hover { color: #0a2540; }
.checkout-title { font-size: 15px; color: #425466; margin: 0 0 18px; font-weight: 500; }

.cf-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.cf-row.duo { flex-direction: row; gap: 0; }
.cf-row.duo .cf-cell { flex: 1; }
.cf-row.duo .cf-cell:first-child .cf-input { border-radius: 6px 0 0 6px; border-right: 0; }
.cf-row.duo .cf-cell:last-child .cf-input { border-radius: 0 6px 6px 0; }
.cf-label { font-size: 12.5px; color: #425466; font-weight: 500; }
.cf-input {
  width: 100%;
  border: 1px solid #d6dde6;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 15px;
  background: #fff;
  color: #0a2540;
  font-family: inherit;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}
.cf-input:focus { outline: 0; border-color: #635bff; box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.18); }
.cf-input.error { border-color: #df1b41; }
.cf-card-wrap { position: relative; }
.cf-card-wrap .cf-brand {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 11px; font-weight: 600; color: #635bff; letter-spacing: 0.06em;
}

.cf-pay {
  margin-top: 18px;
  width: 100%;
  padding: 14px;
  background: #635bff;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.cf-pay:hover { background: #5851e8; }
.cf-pay:disabled { opacity: 0.8; cursor: progress; }
.cf-pay .spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cf-tos { font-size: 11px; color: #697386; margin-top: 14px; line-height: 1.5; }

.cf-success {
  display: none;
  text-align: center;
  padding: 24px 8px;
}
.cf-success.show { display: block; }
.cf-success .tick {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #00d924;
  color: #fff;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  animation: pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.cf-success h3 { font-size: 22px; margin: 0 0 6px; color: #0a2540; font-weight: 600; }
.cf-success p { font-size: 14px; color: #425466; margin: 0; }

.cf-stripe-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e3e8ee;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #697386;
}
.cf-stripe-foot .lock { font-size: 11px; }
.cf-stripe-foot .powered b { color: #0a2540; font-weight: 600; }

/* ============== Mobile ============== */

@media (max-width: 960px) {
  .frame { padding: 0 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-headline { font-size: clamp(48px, 12vw, 80px); }
  .toc { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .certificates { grid-template-columns: 1fr; gap: 20px; }
  .marginalia { grid-template-columns: 1fr; gap: 24px; }
  .almanac-index { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .trust-band { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .checkout-sheet { grid-template-columns: 1fr; margin: 0; max-width: none; max-height: 100vh; overflow-y: auto; border-radius: 0; }
  .checkout-left { padding: 24px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .mast-meta { display: none; }
  .mast-inner { grid-template-columns: 1fr; }
}
