/* Firmament, firmamentco.com. Brand values: pages/firmament-brand.md in the wiki. */

:root {
  --navy: #0B0F2B;
  --navy-2: #121738;
  --navy-3: #1A2048;
  --line: rgba(225, 228, 242, 0.14);
  --blue: #3F8EFC;
  --blue-deep: #2C74E0;
  --silver: #E1E4F2;
  --silver-dim: #A9AFCB;
  --graphite: #1A1A1A;
  --ink-soft: #4A5068;
  --paper: #F5F6FB;
  --white: #FFFFFF;
  --amber: #FDBB2D;
  --radius: 14px;
  --wrap: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); max-width: 21em; }
h3 { font-size: 1.15rem; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 800px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--navy); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { border-color: rgba(225, 228, 242, 0.45); color: var(--silver); }
.btn-ghost:hover { border-color: var(--silver); background: rgba(225, 228, 242, 0.08); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-3); }
.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.text-link { display: inline-block; margin-top: 26px; color: var(--silver); font-weight: 600; text-underline-offset: 5px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 43, 0.9);
  backdrop-filter: blur(10px);
}
/* Horizon Gradient line under the header, as on the Firmament payment instructions sheet */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: linear-gradient(90deg, #1A2A6C 0%, #B21F1F 55%, #FDBB2D 100%); pointer-events: none; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand img { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--silver); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--white); }
.site-nav .nav-retail { color: var(--silver-dim); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 42px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--silver); margin: 0 auto; position: relative; content: ""; }
.bars::before { position: absolute; top: -6px; }
.bars::after { position: absolute; top: 6px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--silver); padding: clamp(56px, 8vw, 104px) 0 clamp(96px, 12vw, 150px); }
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(225, 228, 242, 0.8), transparent 60%),
    radial-gradient(1px 1px at 27% 64%, rgba(225, 228, 242, 0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 12%, rgba(225, 228, 242, 0.7), transparent 60%),
    radial-gradient(1px 1px at 58% 38%, rgba(225, 228, 242, 0.5), transparent 60%),
    radial-gradient(2px 2px at 71% 18%, rgba(225, 228, 242, 0.75), transparent 60%),
    radial-gradient(1px 1px at 83% 52%, rgba(225, 228, 242, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 93% 9%, rgba(225, 228, 242, 0.7), transparent 60%),
    radial-gradient(1px 1px at 6% 78%, rgba(225, 228, 242, 0.4), transparent 60%),
    radial-gradient(1px 1px at 36% 86%, rgba(225, 228, 242, 0.35), transparent 60%);
  pointer-events: none;
}
/* The Horizon Gradient, used once per hero moment as the brand guide asks. */
.horizon {
  position: absolute; left: -10%; right: -10%; bottom: -230px; height: 440px;
  background: radial-gradient(ellipse at 50% 100%, rgba(253, 187, 45, 0.62) 0%, rgba(178, 31, 31, 0.5) 26%, rgba(26, 42, 108, 0.6) 54%, rgba(11, 15, 43, 0) 74%);
  pointer-events: none;
}
.horizon-top { bottom: auto; top: -300px; transform: rotate(180deg); opacity: 0.75; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2.15rem, 4.5vw, 3.3rem); text-wrap: balance; }
.accent { color: var(--blue); }
.lede { font-size: 1.12rem; margin-top: 26px; max-width: 36em; color: var(--silver); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.fineprint { margin-top: 18px; font-size: 0.86rem; color: var(--silver-dim); }
.owner { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: 0.92rem; color: var(--silver); line-height: 1.45; }
.avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-3), var(--blue-deep));
  color: var(--white); font-weight: 700;
}

.flow-card {
  background: linear-gradient(180deg, rgba(26, 32, 72, 0.92), rgba(18, 23, 56, 0.92));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 30px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.flow-title { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver-dim); margin-bottom: 22px; }
.flow { list-style: none; margin: 0; padding: 0; }
.flow li { display: flex; gap: 16px; padding-bottom: 22px; position: relative; }
.flow li:last-child { padding-bottom: 0; }
.flow li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 20px; bottom: -2px; width: 2px; background: linear-gradient(var(--blue), rgba(63, 142, 252, 0.15)); }
.flow-dot { flex: none; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--navy); border: 3px solid var(--blue); }
.flow strong { display: block; color: var(--white); font-weight: 600; font-size: 1rem; line-height: 1.35; }
.flow span:not(.flow-dot) { font-size: 0.88rem; color: var(--silver-dim); }
.flow-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; color: var(--silver); }

/* Logo strip */
.logos { background: var(--navy-2); border-block: 1px solid var(--line); padding: 44px 0 48px; }
.strip-title { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver-dim); text-align: center; max-width: none; margin-bottom: 30px; }
.logo-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px 52px; }
.logo-row img { width: auto; opacity: 0.78; transition: opacity 0.2s ease; }
.logo-row img:hover { opacity: 1; }
.logo-svg { filter: brightness(0) invert(1); }

/* Section shells */
section.light, section.dark { padding: clamp(72px, 9vw, 116px) 0; }
.light { background: var(--paper); color: var(--graphite); }
.dark { background: var(--navy); color: var(--silver); position: relative; overflow: hidden; }
.dark h2 { color: var(--white); }
.section-lede { margin-top: 20px; font-size: 1.08rem; max-width: 40em; color: var(--ink-soft); }
.dark .section-lede { color: var(--silver); }

/* What we do */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 52px; }
.card { background: var(--white); border: 1px solid #E3E6F2; border-radius: var(--radius); padding: 30px 28px 32px; box-shadow: 0 2px 6px rgba(11, 15, 43, 0.04); }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(63, 142, 252, 0.11); color: var(--blue-deep); margin-bottom: 20px; }
.card-icon svg, .step-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; padding: 28px 30px; border-color: rgba(63, 142, 252, 0.35); background: linear-gradient(90deg, rgba(63, 142, 252, 0.07), var(--white) 60%); }
.card-wide .card-icon { flex: none; width: 56px; height: 56px; margin-bottom: 0; background: var(--blue); color: var(--white); }
.card-wide h3 { font-size: 1.2rem; }
.card-wide p { max-width: 70ch; }
.card h3 { margin-bottom: 10px; color: var(--navy); }
.card p { font-size: 0.97rem; color: var(--ink-soft); }

/* Comparison */
.versus-section { background: var(--white); }
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.versus-col { border-radius: 20px; padding: 34px 32px 36px; }
.versus-col h3 { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 22px; }
.versus-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.versus-col li { position: relative; padding-left: 36px; line-height: 1.5; }
.versus-col li::before {
  position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.82rem; font-weight: 700; line-height: 1;
}
.versus-usual { background: var(--paper); border: 1px solid #E3E6F2; color: var(--ink-soft); }
.versus-usual h3 { color: #6A7088; }
.versus-usual li::before { content: "\00D7"; background: #E3E6F2; color: #6A7088; font-size: 1rem; }
.versus-ours { background: var(--navy); color: var(--silver); box-shadow: 0 24px 60px rgba(11, 15, 43, 0.22); }
.versus-ours h3 { color: var(--blue); }
.versus-ours li { color: var(--white); font-weight: 500; }
.versus-ours li::before { content: "\2713"; background: var(--blue); color: var(--white); }

/* Letter */
.letter-section { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.letter { margin: 38px 0 38px; padding-left: 28px; border-left: 3px solid var(--blue); }
.letter p { margin-bottom: 20px; font-size: 1.06rem; color: var(--silver); }
.signature { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.signature .avatar { width: 64px; height: 64px; object-fit: cover; }
.signature p { margin: 0; font-size: 0.93rem; line-height: 1.5; color: var(--silver-dim); }
.signature strong { color: var(--white); font-size: 1.05rem; }

/* Case study */
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); margin-top: 40px; align-items: start; }
.case-copy p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.04rem; }
.compare { margin-top: 30px; display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 62px 1fr; align-items: center; column-gap: 12px; row-gap: 4px; }
.bar-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.bar { height: 16px; border-radius: 999px; }
.bar-before { width: 6%; min-width: 14px; background: #C3C8DC; }
.bar-after { width: 100%; background: linear-gradient(90deg, var(--blue-deep), var(--blue)); }
.bar-value { grid-column: 2; font-size: 0.9rem; font-weight: 600; color: var(--navy); justify-self: start; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--white); border: 1px solid #E3E6F2; border-radius: var(--radius); padding: 24px 22px; }
.tile-strong { background: var(--navy); border-color: var(--navy); }
.tile-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.tile strong { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.15; color: var(--navy); margin-bottom: 8px; width: fit-content; }
.tile span:last-child { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.45; display: block; }
.tile-strong strong { color: var(--white); }
.tile-strong span:last-child { color: var(--silver); }
.source-note { margin-top: 34px; font-size: 0.84rem; color: #6A7088; }

/* How it works */
.steps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.steps li { position: relative; }
.step-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy-3); border: 1.5px solid var(--blue); color: var(--white); margin-bottom: 22px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; top: 26px; left: 64px; right: -10px; height: 0; border-top: 2px dashed rgba(63, 142, 252, 0.45); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; right: -12px; width: 9px; height: 9px; border-top: 2px solid rgba(63, 142, 252, 0.75); border-right: 2px solid rgba(63, 142, 252, 0.75); transform: rotate(45deg); }
.steps h3 { color: var(--white); margin-bottom: 10px; }
.steps p { font-size: 0.96rem; color: var(--silver); }

/* Numbers */
.numbers { background: var(--navy-2); border-block: 1px solid var(--line); padding: 54px 0; }
.numbers-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.number { text-align: center; color: var(--silver-dim); }
.number strong { display: block; font-size: 2.3rem; font-weight: 800; color: var(--white); line-height: 1.2; }
.number span { font-size: 0.9rem; }

/* Questions */
.faq { margin-top: 40px; border-top: 1px solid #DADDEA; }
.faq details { border-bottom: 1px solid #DADDEA; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.06rem; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 44px 24px 0; color: var(--ink-soft); }

/* Closing and contact */
.closing-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--navy-2); border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.contact-form label { display: grid; gap: 8px; font-size: 0.84rem; font-weight: 600; color: var(--silver); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form .req { color: var(--blue); font-weight: 700; }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 0.98rem; color: var(--white);
  background: rgba(11, 15, 43, 0.7); border: 1px solid rgba(225, 228, 242, 0.25); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.contact-form input::placeholder { color: #6E7598; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(63, 142, 252, 0.25); }
.contact-form button { justify-content: center; }
.form-note { font-size: 0.9rem; color: var(--silver-dim); margin: 0; }
.form-note:empty { display: none; }
.form-note.ok { color: #7FE0A7; }
.form-note.error { color: var(--amber); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[disabled] { opacity: 0.6; cursor: default; }

/* Retailer strip */
.retail-strip { background: var(--silver); color: var(--navy); padding: 30px 0; }
.retail-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.retail-row p { font-size: 1.02rem; }

/* Footer */
.site-footer { background: #070A1F; color: var(--silver-dim); padding: 56px 0 30px; }
.footer-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer img { height: 32px; width: auto; }
.tagline { margin-top: 16px; font-style: italic; color: var(--silver); }
.footer-small { font-size: 0.86rem; margin-top: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; align-content: start; }
.footer-nav a { color: var(--silver); text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.8rem; }

/* Inner pages (How it works, Results, About, Contact) */
.site-nav a[aria-current="page"]:not(.btn) { color: var(--white); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.page-hero { position: relative; overflow: hidden; color: var(--silver); padding: clamp(56px, 7vw, 92px) 0 clamp(64px, 8vw, 104px); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 17em; }
.page-hero .lede { max-width: 40em; }
.page-hero .horizon { bottom: -340px; opacity: 0.7; }
.section-link { display: inline-block; margin-top: 30px; font-weight: 600; color: var(--blue-deep); text-underline-offset: 5px; }
.dark .section-link { color: var(--silver); }

.detail-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 22px; }
.detail-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 26px; background: var(--white); border: 1px solid #E3E6F2; border-radius: 20px; padding: 34px; box-shadow: 0 2px 6px rgba(11, 15, 43, 0.04); }
.detail-step .step-icon { position: relative; background: var(--navy); border-color: var(--navy); margin: 0; }
.detail-step .step-body > h3 { font-size: 1.45rem; color: var(--navy); }
.detail-step .step-body > p { margin-top: 12px; color: var(--ink-soft); max-width: 46em; }
.give-get { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.give-get > div { background: var(--paper); border-radius: 12px; padding: 20px 22px; }
.give-get h4 { margin: 0 0 12px; font-weight: 700; line-height: 1.15; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-deep); margin-bottom: 12px; }
.give-get ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.95rem; display: grid; gap: 6px; }

.versus-you { background: var(--paper); border: 1px solid #E3E6F2; color: var(--graphite); }
.versus-you h3 { color: var(--navy); }
.versus-you li::before { content: "\2713"; background: var(--navy); color: var(--white); }

.cards.cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cards-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card .tile-label { margin-bottom: 14px; }

.note-box { background: var(--white); border: 1px solid #E3E6F2; border-left: 4px solid var(--blue); border-radius: 12px; padding: 28px 30px; margin-top: 44px; }
.note-box h3 { color: var(--navy); margin-bottom: 14px; }
.note-box ul { margin: 0; padding-left: 20px; color: var(--ink-soft); display: grid; gap: 10px; }

.facts { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.facts li { border-top: 2px solid var(--blue); padding-top: 16px; font-size: 0.95rem; color: var(--ink-soft); }
.facts strong { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: 4px; }

.prose p { margin-top: 20px; font-size: 1.06rem; color: var(--ink-soft); max-width: 44em; }
.prose p:first-of-type { margin-top: 28px; }
.pull-line { margin-top: 30px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; font-style: italic; color: var(--white); max-width: 22em; line-height: 1.3; }

.check-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.check-list li { position: relative; padding-left: 36px; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 0.8rem; font-weight: 700; display: grid; place-items: center; }

.cta-band { text-align: center; }
.cta-band h2 { margin-inline: auto; }
.cta-band .section-lede { margin-inline: auto; }
.cta-band .cta-row { justify-content: center; }

/* Tablet */
@media (max-width: 980px) {
  .cards.cards-three { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .case-grid, .closing-grid, .versus { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards .card:last-child { grid-column: 1 / -1; }
  .cards.cards-two .card:last-child { grid-column: auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps li:nth-child(2n)::before, .steps li:nth-child(2n)::after { display: none; }
  .numbers-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line); padding: 8px 24px 22px;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .btn { margin-top: 18px; justify-content: center; }
}

/* Phone */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 36px, var(--wrap)); }
  .cards, .steps, .tiles { grid-template-columns: 1fr; }
  .card-wide { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cards.cards-two, .give-get, .facts { grid-template-columns: 1fr; }
  .detail-step { grid-template-columns: 1fr; gap: 18px; padding: 26px 22px; }
  .cards .card:last-child { grid-column: auto; }
  .steps { row-gap: 0; }
  .steps li { padding: 0 0 34px 72px; min-height: 86px; }
  .steps li:last-child { padding-bottom: 0; }
  .step-icon { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li:not(:last-child)::before, .steps li:nth-child(2n):not(:last-child)::before { display: block; top: 58px; bottom: 6px; left: 25px; right: auto; height: auto; border-top: 0; border-left: 2px dashed rgba(63, 142, 252, 0.45); }
  .steps li::after, .steps li:nth-child(2n)::after { display: none; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .logo-row { gap: 26px 34px; }
  .logo-row img { transform: scale(0.85); }
  .letter { padding-left: 18px; }
  .retail-row { flex-direction: column; align-items: flex-start; }
  .flow-card { padding: 24px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Text movement. Two parts, both skipped for visitors whose device asks for less motion.
   1. Top of each page: the label, headline, paragraph and buttons start a little low and
      invisible and rise into place one after another as the page arrives. Plain CSS, no script.
   2. Further down: site.js marks each block that starts below the first screen (class "reveal")
      and shows it (class "in") when it scrolls into view. Without the script nothing is hidden. */
@keyframes rise-in { from { opacity: 0; transform: translateY(34px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .page-hero .wrap > *,
  .contact-page .closing-grid > div > *,
  .contact-page .contact-form,
  .flow-card { animation: rise-in 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2), .page-hero .wrap > :nth-child(2), .contact-page .closing-grid > div > :nth-child(2) { animation-delay: 0.1s; }
  .hero-copy > :nth-child(3), .page-hero .wrap > :nth-child(3), .contact-page .closing-grid > div > :nth-child(3) { animation-delay: 0.2s; }
  .hero-copy > :nth-child(4), .contact-page .closing-grid > div > :nth-child(4) { animation-delay: 0.3s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.4s; }
  .flow-card, .contact-page .contact-form { animation-delay: 0.35s; }

  /* The section right under the top band is often on the first screen too, so it follows the
     headline in on arrival instead of sitting still. (The script leaves on-screen blocks alone.) */
  .hero + section .wrap > *,
  .page-hero + section .wrap > * { animation: rise-in 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; }
  .hero + section .wrap > :nth-child(2), .page-hero + section .wrap > :nth-child(2) { animation-delay: 0.4s; }
  .hero + section .wrap > :nth-child(3), .page-hero + section .wrap > :nth-child(3) { animation-delay: 0.5s; }
  .hero + section .wrap > :nth-child(n+4), .page-hero + section .wrap > :nth-child(n+4) { animation-delay: 0.6s; }

  .reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .reveal.in { opacity: 1; transform: none; }
}
@media print { .reveal { opacity: 1; transform: none; } }
