/* nunito-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../fonts/nunito-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* nunito-cyrillic-wght-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../fonts/nunito-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* nunito-vietnamese-wght-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../fonts/nunito-vietnamese-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* nunito-latin-ext-wght-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../fonts/nunito-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* nunito-latin-wght-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../fonts/nunito-latin-wght-normal.woff2) format('woff2-variations');
  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;
}

/* Step Project – site styles.
   Tokens follow the Step Project brand pack v1.0. Tailwind 4 (build-time CSS) supplies layout utilities,
   daisyUI 5 supplies form and disclosure primitives, themed through the variables below. */

/* Everything sits in the components layer: above daisyUI and Tailwind's base, below Tailwind utilities.
   The layer order itself is declared first thing in <head> (see main.server.dart). */
@layer components {
:root,
[data-theme='step'] {
  color-scheme: light;

  --cream: #f7f3ec;
  --teal: #1f5f6b;
  --ink: #16313a;
  --robin: #e8703a;
  --gold: #e9b44c;
  --sage: #8fb5a0;
  --stone: #c9c2b6;

  --teal-80: #4c7f89;
  --teal-20: #d2dfe1;
  --teal-10: #e9eff0;
  --sage-40: #d2e1d9;
  --sage-20: #e9f0ec;
  --gold-40: #f6e1b7;
  --gold-20: #fbf0db;
  --gold-10: #fdf8ed;
  --robin-10: #fdf1eb;
  /* Card stock: a step darker than the page, for the back of the packet. */
  --stock: #efe9df;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --measure: 68ch;

  /* daisyUI 5 theme */
  --color-base-100: var(--cream);
  --color-base-200: var(--stock);
  --color-base-300: var(--stone);
  --color-base-content: var(--ink);
  --color-primary: var(--teal);
  --color-primary-content: var(--cream);
  --color-secondary: var(--ink);
  --color-secondary-content: var(--cream);
  --color-accent: var(--gold);
  --color-accent-content: var(--ink);
  --color-neutral: var(--ink);
  --color-neutral-content: var(--cream);
  --color-info: var(--teal);
  --color-info-content: var(--cream);
  --color-success: #2f6b4f;
  --color-success-content: var(--cream);
  --color-warning: var(--gold);
  --color-warning-content: var(--ink);
  --color-error: #9b2c1f;
  --color-error-content: var(--cream);
  --radius-selector: 999px;
  --radius-field: 0.75rem;
  --radius-box: 1rem;
  --size-selector: 0.3125rem;
  --size-field: 0.3125rem;
  --border: 1.5px;
  --depth: 0;
  --noise: 0;
}

/* ---------- Base ---------- */

html {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Nunito', 'Arial Rounded MT Bold', 'Segoe UI', system-ui, sans-serif;
  /* No root font-size: 1rem stays the browser's (and, with <meta name="text-scale">, the phone's) text size.
     Scale the fallback fonts to Nunito's x-height (0.484, from its OS/2 table), so text doesn't jump when the
     web font swaps in. A fixed value rather than from-font: while Nunito is loading, from-font would read the
     fallback's own metrics and do nothing. Nunito itself renders unscaled. */
  font-size-adjust: 0.484;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--stone) var(--cream);
  --header-clearance: 7.5rem;
  scroll-padding-top: var(--header-clearance);
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.5556;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--gold-40);
  color: var(--ink);
}

input,
textarea,
select {
  caret-color: var(--teal);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.on-dark :focus-visible,
.on-dark:focus-visible {
  outline-color: var(--gold);
}

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

h1,
h2,
h3,
h4 {
  color: var(--teal);
  font-weight: 800;
  text-wrap: balance;
  margin: 0;
}

h3,
h4 {
  font-weight: 700;
}

p,
li {
  text-wrap: pretty;
}

.t-display {
  font-size: 2.25rem;
  line-height: 2.75rem;
  letter-spacing: -0.02em;
}

.t-h1 {
  font-size: 1.875rem;
  line-height: 2.375rem;
  letter-spacing: -0.015em;
}

.t-h2 {
  font-size: 1.75rem;
  line-height: 2.25rem;
  letter-spacing: -0.01em;
}

.t-h3 {
  font-size: 1.375rem;
  line-height: 1.875rem;
}

.t-lead {
  font-size: 1.25rem;
  line-height: 1.9rem;
}

.t-small {
  font-size: 0.9375rem;
  line-height: 1.375rem;
  font-weight: 600;
}

@media (min-width: 48rem) {
  .t-display {
    font-size: 3rem;
    line-height: 3.5rem;
  }

  .t-h1 {
    font-size: 2.25rem;
    line-height: 2.75rem;
  }
}

/* Section heads carry the page at desktop widths: 40px, so they hold their own beside the 48px hero.
   Page titles step up with them to stay above. */
@media (min-width: 64rem) {
  .t-h1 {
    font-size: 2.75rem;
    line-height: 3.25rem;
  }

  .t-h2 {
    font-size: 2.5rem;
    line-height: 3rem;
    letter-spacing: -0.015em;
  }
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Links: Dusk teal, bold, always underlined. Hover: Teal ink with a thicker underline. */
.prose a,
a.link-step {
  color: var(--teal);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: color 160ms ease, text-decoration-thickness 160ms ease;
}

.prose a:hover,
a.link-step:hover {
  color: var(--ink);
  text-decoration-thickness: 3px;
}

.on-dark a.link-step,
.on-dark .prose a {
  color: var(--cream);
}

.on-dark a.link-step:hover,
.on-dark .prose a:hover {
  color: var(--gold-40);
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

/* The header runs wider than the page content so the logo and menu sit nearer the edges on big screens. */
.wrap.wrap-wide {
  max-width: 96rem;
}

.section {
  padding-block: var(--section);
}

.measure {
  max-width: var(--measure);
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2 {
  font-size: 1.75rem;
  line-height: 2.25rem;
  margin-top: 3rem;
}

.prose h3 {
  font-size: 1.375rem;
  line-height: 1.875rem;
  margin-top: 2.25rem;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.75rem;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.45rem;
}

.prose li::marker {
  color: var(--teal);
  font-weight: 800;
}

.prose strong {
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.1rem;
  border-radius: 0.75rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header ---------- */

.site-header {
  /* The mobile menu popover is positioned against the header's bottom edge. */
  anchor-name: --site-header;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--stone);
  background: var(--cream);
}

.utility-bar {
  background: var(--ink);
  color: var(--cream);
}

.utility-bar a {
  color: var(--cream);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--cream) 45%, transparent);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 160ms ease, text-decoration-thickness 160ms ease;
}

.utility-bar a:hover {
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

.utility-bar :focus-visible {
  outline-color: var(--gold);
}

.brand-link {
  display: block;
  flex-shrink: 0;
  width: 10rem;
  /* clear space: roughly the wordmark cap height */
  padding-block: 0.5rem;
  transition: opacity 160ms ease;
}

@media (min-width: 40rem) {
  .brand-link {
    width: 12.5rem;
  }
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: 0.45rem;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;

}

.nav-link[aria-current='page'] {
  color: var(--teal);
}

.nav-link[aria-current='page']::after {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--teal);
  }

  .nav-link:hover::after {
    transform: scaleX(1);
  }

  .brand-link:hover {
    opacity: 0.75;
  }
}

/* Mobile menu: a native popover in the top layer, full width under the header. */
.menu-panel {
  position: fixed;
  inset: auto 0;
  /* Browsers without anchor positioning keep this offset, roughly the phone header's height. */
  top: 7rem;
  top: anchor(--site-header bottom);
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  max-height: calc(100dvh - 10rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--cream);
  color: var(--ink);
  border-bottom: 1px solid var(--stone);
  box-shadow: 0 18px 30px -18px rgb(22 49 58 / 0.35);
}

/* A short fade in and out. Browsers without @starting-style or allow-discrete simply open and close. */
@media (prefers-reduced-motion: no-preference) {
  .menu-panel {
    opacity: 0;
    translate: 0 -4px;
    transition:
      opacity 160ms var(--ease-out),
      translate 160ms var(--ease-out),
      overlay 160ms allow-discrete,
      display 160ms allow-discrete;
  }

  .menu-panel:popover-open {
    opacity: 1;
    translate: 0 0;
  }

  @starting-style {
    .menu-panel:popover-open {
      opacity: 0;
      translate: 0 -4px;
    }
  }
}

.menu-panel a:not(.btn-step) {
  display: flex;
  align-items: center;
  min-height: 3rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--stone) 60%, transparent);
  transition: color 160ms ease;
}

.menu-panel a:not(.btn-step)[aria-current='page'] {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Stable targets; feedback comes from the ink colour. */
.menu-panel a:not(.btn-step):active {
  color: var(--teal);
}

@media (hover: hover) and (pointer: fine) {
  .menu-panel a:not(.btn-step):hover {
    color: var(--teal);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-panel a:not(.btn-step) {
    transition: color 160ms ease;
  }
}

/* ---------- Quick exit ---------- */

.quick-exit {
  position: fixed;
  z-index: 100;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  min-width: 3.25rem;
  padding: 0.5rem 1.15rem 0.5rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--cream);
  /* Raised by site.js near the bottom of the page so it sits above the footer's last rule. */
  translate: 0 calc(-1 * var(--quick-exit-lift, 0px));
  box-shadow:
    0 1px 2px rgb(22 49 58 / 0.25),
    0 10px 24px -8px rgb(22 49 58 / 0.45);
  transition:
    transform 140ms var(--ease-out),
    background-color 160ms ease,
    padding 240ms var(--ease-out);
}

.quick-exit:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.quick-exit:active:not(:focus-visible) {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .quick-exit:hover {
    background: var(--teal);
  }
}

.quick-exit-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 14rem;
  padding-left: 0.6rem;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 240ms var(--ease-out),
    padding-left 240ms var(--ease-out),
    opacity 160ms ease;
}

.quick-exit kbd {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 0.4rem;
  border: 1px solid color-mix(in srgb, var(--cream) 40%, transparent);
  color: var(--gold-40);
}

.quick-exit-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

/* Phones and tablets: once the page is scrolled down, shrink to a round icon-only button so it covers
   less content. It grows back when scrolling up or near the top. The accessible name is on the link
   itself, so it is unchanged. */
@media (max-width: 63.99rem) {
  html[data-quick-exit-compact] .quick-exit {
    padding-inline: calc((3.25rem - 4px - 1.25rem) / 2);
  }

  html[data-quick-exit-compact] .quick-exit-label {
    max-width: 0;
    padding-left: 0;
    opacity: 0;
  }
}

/* Desktop: floats in the bottom-right corner, at a scale closer to the nav so it doesn't shout. */
@media (min-width: 64rem) {
  .quick-exit {
    right: max(1.5rem, env(safe-area-inset-right));
    bottom: max(1.5rem, env(safe-area-inset-bottom));
    min-height: 2.5rem;
    padding: 0.3rem 0.85rem 0.3rem 0.75rem;
    font-size: 0.9375rem;
    border-width: 1px;
    box-shadow: 0 1px 2px rgb(22 49 58 / 0.2);
  }

  .quick-exit-label {
    gap: 0.5rem;
    padding-left: 0.45rem;
  }

  .quick-exit-icon {
    width: 1.1rem;
    height: 1.1rem;
  }

  .quick-exit kbd {
    font-size: 0.75rem;
    padding: 0 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quick-exit,
  .quick-exit-label {
    transition: none;
  }
}

/* ---------- Buttons and fields ---------- */

.btn-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--teal);
  background: var(--teal);
  color: var(--cream);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 140ms var(--ease-out),
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.btn-step:active:not(:focus-visible) {
  transform: scale(0.97);
}

.btn-step:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (hover: hover) and (pointer: fine) {
  .btn-step:hover {
    background: var(--ink);
    border-color: var(--ink);
  }

  .btn-step.is-ghost:hover {
    background: var(--teal-10);
    color: var(--ink);
    border-color: var(--ink);
  }
}

.btn-step.is-ghost {
  background: transparent;
  color: var(--teal);
}

.on-dark .btn-step {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.on-dark .btn-step:focus-visible {
  outline-color: var(--gold);
}

@media (hover: hover) and (pointer: fine) {
  .on-dark .btn-step:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
  }
}

/* Not-live-yet button: dashed outline (line-form rule), no link, no hover. */
.btn-step.is-soon {
  background: transparent;
  color: var(--teal);
  border-style: dashed;
  cursor: default;
  flex-wrap: wrap;
}

.soon-tag {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--gold-40);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
}

.on-dark .btn-step.is-soon {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}

@media (hover: hover) and (pointer: fine) {
  .btn-step.is-soon:hover,
  .on-dark .btn-step.is-soon:hover {
    background: transparent;
    border-color: var(--teal);
    color: var(--teal);
  }

  .on-dark .btn-step.is-soon:hover {
    border-color: var(--cream);
    color: var(--cream);
  }
}

.field-label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.field-hint {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.375rem;
  color: color-mix(in srgb, var(--ink) 82%, var(--cream));
  margin-bottom: 0.5rem;
}

.field-error {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.375rem;
  font-weight: 700;
  color: var(--color-error);
  margin-top: 0.4rem;
}

.field {
  width: 100%;
  min-height: 3rem;
  box-sizing: border-box;
  padding: 0.65rem 0.95rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--teal-80);
  background: var(--gold-10);
  color: var(--ink);
  font: inherit;
  font-size: 1.125rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field::placeholder {
  color: color-mix(in srgb, var(--ink) 60%, var(--cream));
}

.field:hover {
  border-color: var(--teal);
}

.field:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-color: var(--teal);
}

.field[aria-invalid='true'] {
  border-color: var(--color-error);
  border-width: 2px;
}

textarea.field {
  min-height: 7rem;
  resize: vertical;
}

.check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-height: 2.75rem;
  padding-block: 0.35rem;
  cursor: pointer;
}

.check input {
  margin-top: 0.15rem;
  flex: none;
}

/* ---------- The packet: seams, panels, the step rail ---------- */

/* A stepped seam: repeating step motif marking where one panel ends and the next begins. */
.seam {
  height: 0.625rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10' viewBox='0 0 24 10'%3E%3Cpath d='M0 8 H10 Q12 8 12 6 V4 Q12 2 14 2 H24' fill='none' stroke='%23C9C2B6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    left center / 24px 10px repeat-x;
}

.stock {
  background: var(--stock);
}

.panel-sage {
  background: var(--sage-20);
}

.panel-gold {
  background: var(--gold-20);
}

.panel-teal {
  background: var(--teal);
  color: var(--cream);
}

.panel-teal h2,
.panel-teal h3 {
  color: var(--cream);
}

.panel-ink {
  background: var(--ink);
  color: var(--cream);
}

.panel-ink h2,
.panel-ink h3 {
  color: var(--cream);
}

.rule {
  border: 0;
  border-top: 1px solid var(--stone);
  margin: 0;
}

.before-contact {
  display: grid;
  gap: 2rem;
  scroll-margin-top: 0;
}

.before-contact-intro {
  max-width: 36rem;
}

@media (min-width: 64rem) {
  .before-contact {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 8.333%;
  }
}

/* The hero pairs the proposition with the brand's robin on a generous stepped ledge.
   One SVG path continues past both page edges, avoiding seams between scaled pieces. */
.packet-front {
  position: relative;
  isolation: isolate;
}

.hero-layout {
  padding-top: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: 13rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero-title {
  max-width: 19ch;
}

.hero-intro {
  max-width: 51ch;
}

.hero-rail {
  --k: 0.9;
  --ledge-inset: var(--gutter);
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: calc(225px * var(--k));
  pointer-events: none;
}

.hero-rail-art {
  position: absolute;
  right: var(--ledge-inset);
  bottom: 0;
  width: calc(300px * var(--k));
  height: auto;
  overflow: visible;
}

.hero-rail-art .rail-path {
  stroke: var(--teal);
  /* Keep the enlarged drawing as light as the rest of the brand's linework. */
  stroke-width: calc(3px / var(--k));
}

@media (min-width: 48rem) {
  .hero-layout {
    padding-bottom: 14rem;
  }

  .hero-rail {
    --k: 1.3;
  }
}

@media (min-width: 64rem) {
  .hero-layout {
    min-height: 36rem;
    padding-bottom: 8rem;
  }

  .hero-copy {
    width: 59%;
  }

  .hero-title {
    font-size: 3.5rem;
    line-height: 1.14;
  }

  .hero-rail {
    --k: 1.65;
    --ledge-inset: max(var(--gutter), calc((100vw - 76rem) / 2 + var(--gutter)));
  }
}

@media (min-width: 80rem) {
  .hero-rail {
    --k: 1.9;
  }
}

/* Charter commitments borrow the printed charter's numbered, two-column composition. */
.charter-commitments {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.75rem;
}

.charter-commitment {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-content: start;
  align-items: start;
}

.charter-number {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 1.375rem;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.charter-commitment:nth-child(2) .charter-number { background: var(--teal-10); }
.charter-commitment:nth-child(3) .charter-number { background: var(--sage-40); }
.charter-commitment:nth-child(4) .charter-number { background: var(--gold-20); }

.charter-commitment-copy { display: contents; }

.charter-commitment h3 {
  align-self: center;
  font-size: 1.375rem;
  line-height: 1.875rem;
  font-weight: 700;
}

.charter-commitment p {
  grid-column: 1 / -1;
  max-width: var(--measure);
}

@media (min-width: 40rem) {
  .charter-commitment {
    grid-template-columns: 4rem minmax(0, 1fr);
    column-gap: 1.5rem;
  }
  .charter-number { width: 4rem; height: 4rem; }
  .charter-commitment-copy { display: block; }
  .charter-commitment p { margin-top: 0.75rem; }
}

@media (min-width: 64rem) {
  .charter-commitments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 4vw, 4rem);
    row-gap: 3.5rem;
  }
}

/* The back of the packet: steps strung on the rail. State is carried by line form. */
.rail-steps {
  --node: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.rail-step {
  position: relative;
  display: grid;
  grid-template-columns: var(--node) 1fr;
  column-gap: 1.1rem;
  padding-bottom: 2.25rem;
}

.rail-step:last-child {
  padding-bottom: 0;
}

/* vertical connector on narrow screens */
.rail-step::before {
  content: '';
  position: absolute;
  left: calc(var(--node) / 2 - 2px);
  top: var(--node);
  bottom: 0;
  border-left: 4px solid var(--teal);
}

.rail-step:last-child::before {
  display: none;
}

.rail-step.is-later::before,
.rail-step:has(+ .rail-step.is-later)::before {
  border-left-style: dashed;
  border-left-width: 3px;
  border-left-color: var(--teal-80);
}

.step-node {
  width: var(--node);
  height: var(--node);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: var(--cream);
  font-weight: 800;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}

.rail-step.is-later .step-node {
  background: var(--cream);
  color: var(--teal);
  border: 3px dashed var(--teal-80);
}

.rail-step h3 {
  font-size: 1.375rem;
  line-height: 1.875rem;
  margin-top: 0.45rem;
}

.rail-step p {
  margin-top: 0.35rem;
}

@media (min-width: 64rem) {
  .rail-steps.is-row {
    grid-template-columns: repeat(var(--count, 4), minmax(0, 1fr));
    column-gap: 2rem;
  }

  .rail-steps.is-row .rail-step {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  .rail-steps.is-row .rail-step::before {
    left: var(--node);
    right: -2rem;
    top: calc(var(--node) / 2 - 2px);
    bottom: auto;
    border-left: 0;
    border-top: 4px solid var(--teal);
  }

  .rail-steps.is-row .rail-step.is-later::before,
  .rail-steps.is-row .rail-step:has(+ .rail-step.is-later)::before {
    border-top-style: dashed;
    border-top-width: 3px;
    border-top-color: var(--teal-80);
  }

  .rail-steps.is-row .rail-step h3 {
    margin-top: 1.1rem;
  }
}

/* Tickets: how each credit union takes a request. Solid = offered, dashed = to be confirmed. */
.ticket {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.2rem 0.8rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--teal);
  color: var(--ink);
  background: var(--cream);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
}

.ticket.is-pending {
  border-style: dashed;
  border-color: var(--teal-80);
  font-weight: 600;
}

.ticket svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

/* daisyUI collapse, restyled as stitched packet folds */
.fold {
  border-top: 1px solid var(--stone);
  border-radius: 0;
}

.fold:last-child {
  border-bottom: 1px solid var(--stone);
}

.fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.85rem;
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--teal);
}

.fold > summary::-webkit-details-marker {
  display: none;
}

.fold-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.fold[open] .fold-icon {
  rotate: 45deg;
}

.fold-body {
  padding-bottom: 1.25rem;
}

/* Folds slide open and closed in CSS. Closed content stays findable with find-in-page. Browsers without
   ::details-content or interpolate-size open and close instantly. */
.fold::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  /* Keeps layout containment constant, so the paragraph margins inside don't make the slide jitter. */
  contain: layout;
}

.fold:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .fold-icon {
    transition: rotate 180ms var(--ease-out);
  }

  .fold::details-content {
    transition:
      block-size 220ms var(--ease-out),
      content-visibility 220ms allow-discrete;
  }
}

/* Form feedback is a single readable fade, with no moving fields or blur. */
.swap-in {
  animation: none;
}

html[data-input="pointer"] .swap-in {
  animation: feedback-fade 180ms var(--ease-out) both;
}

@keyframes feedback-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-step:active,
  .quick-exit:active:not(:focus-visible) {
    transform: none;
  }

  .swap-in { animation-duration: 100ms; }
}

/* More content fits on phones without reducing reading size or touch targets. */
@media (max-width: 39.99rem) {
  .section { padding-block: 3.5rem; }
  .page-intro .wrap { padding-block: 2.5rem; }
  .brand-link { width: min(12.5rem, 52vw); }
  .site-header > .wrap { gap: 0.75rem; }
  .menu-toggle > button { padding-inline: 0.75rem; }
}

@media (min-width: 40rem) {
  html { --header-clearance: 10.5rem; }
}

h1, h2, h3 { text-wrap: balance; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--stock);
  border-top: 1px solid var(--stone);
}

.footer-content {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem;
}

.footer-brands {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.footer-wordmark {
  width: 10rem;
  flex: none;
}

.footer-founder img {
  width: 10rem;
  height: auto;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-copyright {
  padding-top: 1rem;
  border-top: 1px solid var(--stone);
}

.cu-entry { max-width: 64rem; }
.cu-entry dd { max-width: 65ch; }
.provider-identity { display: grid; gap: 1.5rem; margin-bottom: 2rem; }

@media (min-width: 48rem) {
  .provider-identity { grid-template-columns: 16rem 1fr; align-items: center; gap: 2.5rem; }
}

.provider-logo {
  display: block;
  width: min(100%, 18rem);
  height: auto;
  margin-bottom: 0;
}

@media (min-width: 48rem) {
  .footer-content {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-copyright {
    grid-column: 1 / -1;
  }
}

/* Keep secondary information readable below the sticky navigation. */
.lg\:sticky {
  top: var(--header-clearance);
}

.footer-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.footer-link:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
}

/* Cross-fade between pages. Both pages opt in through this shared sheet; <link rel="expect" blocking="render">
   in <head> holds the new page until #main is parsed. Browsers without support navigate instantly. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/* Optional analytics choice stays in normal flow and never covers the quick exit. */
.analytics-banner {
  background: var(--gold-40);
  color: var(--ink);
  padding: 1.5rem var(--gutter, 1.25rem);
}
.analytics-banner-inner {
  max-width: 76rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}
.analytics-banner-inner h2 { font-size: 1.2rem; font-weight: 800; }
.analytics-banner-inner p { max-width: 44rem; margin-top: .25rem; }
.analytics-banner-inner a { color: var(--teal); font-weight: 700; text-decoration: underline; }
.analytics-banner .btn-step.is-ghost {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--cream);
}
@media (hover: hover) {
  .analytics-banner .btn-step.is-ghost:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
  }
}
.analytics-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
[hidden] { display: none !important; }

/* ---------- Embedded sign-up form ---------- */

/* The CU Flow form is a cross-origin Flutter app. Flutter claims every touch on its canvas (touch-action: none),
   so a swipe that starts over the frame never scrolls this page, and a frame sized to the whole form can leave
   a phone with nothing else on screen to swipe. On touch screens, keep the frame shorter than the visible page:
   the form then scrolls itself (Flutter handles that), and the page around it stays reachable to scroll past.
   svh, not dvh, so the frame doesn't resize, and Flutter re-lay out, as the browser toolbar shows and hides.
   The bridge sets the height inline; max-height still wins over it. The outline (not a border, which the
   bridge resets inline) shows where the form's own scrolling area ends. */
@media (pointer: coarse) {
  iframe[data-step-form-url] {
    max-height: max(22rem, calc(100svh - var(--header-clearance) - 5rem));
    border-radius: var(--radius-box);
    outline: 1px solid var(--stone);
  }
}
