/* ==========================================================================
   WilliamLeroy.org — design system
   Approved palette only. Gold is reserved for Keys Too Wealth / opportunity moments.
   ========================================================================== */

:root {
  --blue:        #1261A8;   /* William Leroy blue: primary actions, links, selected states */
  --blue-dark:   #0E4F8C;   /* hover/pressed tint of --blue */
  --sky:         #2F91D0;   /* supporting; graphics and large accents only */
  --sky-light:   #A9D8F3;   /* soft transitions from the hero artwork */
  --green:       #65A844;   /* growth; decorative / progress */
  --green-deep:  #39752F;   /* growth; text-safe */
  --gold:        #C99A3D;   /* Keys Too Wealth / opportunity */
  --gold-light:  #E5C66A;   /* champagne gold highlight */
  --navy:        #102E4A;   /* trust and premium depth */
  --cream:       #F7F4E9;
  --white:       #FFFFFF;
  --charcoal:    #263238;   /* body copy */

  --line:        rgba(16, 46, 74, .14);
  --shadow-sm:   0 1px 2px rgba(16, 46, 74, .08), 0 2px 8px rgba(16, 46, 74, .06);
  --shadow-md:   0 6px 24px rgba(16, 46, 74, .12);

  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;

  --radius:      12px;
  --radius-lg:   20px;
  --container:   1180px;
  --header-h:    84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7;
  color: var(--charcoal); background: var(--white); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.1rem; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #E7EEF5; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a:not(.btn) { color: var(--gold-light); }
.center { text-align: center; }
.mt-lg { margin-top: 2.2rem; }
.mt-md { margin-top: 1.4rem; }
.stack > * + * { margin-top: 1.1rem; }
.section-head { max-width: 720px; margin: 0 0 clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { font-size: 1.15rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep); margin-bottom: .9rem; }
.section--navy .eyebrow { color: var(--gold-light); }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); line-height: 1.65; color: #34454e; }
.rule-gold { width: 64px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border: 0; border-radius: 3px; margin: 0 0 1.4rem; }
.center .rule-gold { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px;
  padding: .8em 1.6em; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700;
  font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-light); color: var(--navy); }
.btn--green { background: var(--green-deep); color: var(--white); }
.btn--green:hover { background: #2E6226; color: var(--white); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: var(--white); color: var(--navy); }
.btn--sm { min-height: 42px; padding: .55em 1.2em; font-size: .82rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.center .btn-row { justify-content: center; }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.text-link::after { content: "\2192"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(3px); }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: 0 0 auto; line-height: 0; }
.brand img { height: 66px; width: auto; mix-blend-mode: multiply; }
.header-panel { display: flex; align-items: center; gap: 28px; flex: 1 1 auto; justify-content: flex-end; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.primary-nav a, .sub-toggle {
  display: inline-flex; align-items: center; gap: .4em; padding: 10px 14px; border-radius: 8px; color: var(--navy);
  font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; min-height: 44px;
}
.primary-nav a:hover, .sub-toggle:hover { color: var(--blue); background: rgba(18,97,168,.07); }
.primary-nav a.is-current, .sub-toggle.is-current, .primary-nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); border-radius: 8px 8px 0 0; }
.has-sub { position: relative; }
.caret { width: .5em; height: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.sub-toggle[aria-expanded="true"] .caret { transform: rotate(-135deg) translateY(-2px); }
.primary-nav .sub { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 8px; display: none; flex-direction: column; align-items: stretch; gap: 0; z-index: 20; }
.primary-nav .sub.is-open { display: flex; }
.primary-nav .sub a { width: 100%; justify-content: flex-start; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.link-login { font-weight: 600; font-size: .95rem; color: var(--navy); text-decoration: none; padding: 10px 6px; }
.link-login:hover { color: var(--blue); text-decoration: underline; }
.inline-form { display: inline; margin: 0; }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: var(--white); border: 2px solid var(--navy); color: var(--navy); border-radius: 999px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, top .2s ease; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1099px) {
  :root { --header-h: 72px; }
  .brand img { height: 54px; }
  .nav-toggle { display: inline-flex; }
  .header-panel {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 20px; padding: 20px 24px 40px; overflow-y: auto; display: none; border-top: 1px solid var(--line);
  }
  .header-panel.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a, .sub-toggle { width: 100%; justify-content: space-between; font-size: 1.1rem; padding: 14px 12px; }
  .primary-nav a.is-current, .sub-toggle.is-current, .primary-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--blue); border-radius: 0 8px 8px 0; }
  .primary-nav .sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; background: transparent; }
  .primary-nav .sub.is-open { display: flex; }
  .header-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .header-actions .btn { width: 100%; }
  .link-login { text-align: center; padding: 14px; border: 2px solid var(--line); border-radius: 999px; }
  body.nav-open { overflow: hidden; }
}

/* ------------------------------------------------------------ hero (art-directed per breakpoint) */
.hero { position: relative; background: var(--cream); isolation: isolate; }
.hero__visual { position: relative; }
.hero__media { display: block; overflow: hidden; }
.hero__media img { width: 100%; object-fit: cover; }
.hero__fade { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; }
.hero__content { position: relative; }
.hero h1 { color: var(--navy); margin-bottom: .35em; }
.hero h1 .accent { display: block; color: var(--blue); }
.hero .lead { max-width: 34em; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 1rem; }
.hero__kicker::before { content: ""; width: 36px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); }

/* Mobile (default): the art-directed crop (door, path and all three keys), then text on cream below a short fade */
.hero__media img { aspect-ratio: 640 / 672; max-height: 520px; object-position: 50% 40%; }
.hero__fade { height: 16%; background: linear-gradient(to bottom, rgba(247,244,233,0), rgba(247,244,233,.85) 70%, var(--cream)); }
.hero__content { margin-top: -8px; padding-bottom: 56px; padding-top: 8px; }
.hero__content .btn-row { margin-top: 1.6rem; }
.hero__content .btn-row .btn { flex: 1 1 240px; }

/* Tablet: wider crop, centered text below */
@media (min-width: 640px) {
  .hero__media img { aspect-ratio: auto; height: clamp(420px, 62vw, 640px); max-height: none; object-position: 50% 40%; }
  .hero__fade { height: 14%; }
  .hero__content { text-align: center; padding-top: 16px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero__kicker { justify-content: center; }
  .hero__content .btn-row { justify-content: center; }
  .hero__content .btn-row .btn { flex: 0 0 auto; }
}

/* Desktop: cinematic full-width scene; text sits on the left over a navy gradient so the door, path and keys stay clear */
@media (min-width: 1280px) {
  .hero { background: var(--navy); }
  .hero__media img { height: clamp(600px, 42.4vw, 900px); object-position: 50% 50%; }
  .hero__fade { height: 18%; background: linear-gradient(to bottom, rgba(255,255,255,0), var(--white) 98%); z-index: 2; }
  .hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(16,46,74,.88) 0%, rgba(16,46,74,.66) 26%, rgba(16,46,74,0) 44%);
  }
  .hero__content { position: absolute; z-index: 3; inset: 0; margin: 0; padding: 0; text-align: left; display: flex; align-items: center; }
  .hero__content > .container { padding-bottom: 6%; }
  .hero__text { max-width: min(400px, 34vw); }
  .hero h1 { color: var(--white); font-size: clamp(2.3rem, 1.1vw + 1.55rem, 3.1rem); line-height: 1.12; text-shadow: 0 2px 18px rgba(16,46,74,.5); }
  .hero h1 .accent { color: var(--gold-light); }
  .hero .lead { color: #EEF3F8; margin-left: 0; text-shadow: 0 1px 10px rgba(16,46,74,.55); font-size: 1.1rem; }
  .hero__kicker { color: var(--sky-light); justify-content: flex-start; text-shadow: 0 1px 8px rgba(16,46,74,.6); }
  .hero__content .btn-row { justify-content: flex-start; }
  .hero__content .btn-row .btn { flex: 0 0 auto; }
}

/* ------------------------------------------------------------ page heads for inner pages */
.page-head { position: relative; background: var(--cream); padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); overflow: hidden; isolation: isolate; }
.page-head__sky {
  position: absolute; inset: 0 0 auto 0; height: 100%; z-index: -1; opacity: .3;
  background: linear-gradient(to bottom, rgba(247,244,233,0) 0%, var(--cream) 100%), url("../img/sky-strip.webp") center top / cover no-repeat;
}
.page-head h1 { margin-bottom: .35em; }
.page-head .lead { max-width: 40em; margin-bottom: 0; }
.breadcrumbs { margin-bottom: 1.4rem; font-size: .88rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #6b7a84; }
.breadcrumbs a { color: var(--blue); }

/* ------------------------------------------------------------ cards, icons, steps */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.card > :last-child { margin-bottom: 0; }
.card .text-link { margin-top: auto; padding-top: 1rem; }
.card--cream { background: var(--cream); box-shadow: none; }
.card--navy { background: var(--navy); border-color: var(--navy); color: #E7EEF5; }
.card--navy h3 { color: var(--white); }
.card--gold { border-top: 4px solid var(--gold); }
.card--green { border-top: 4px solid var(--green); }
.card--blue { border-top: 4px solid var(--blue); }
.card__eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-deep); margin-bottom: .6rem; }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(18,97,168,.1); color: var(--blue); margin-bottom: 1.1rem; flex: 0 0 auto; }
.icon svg { width: 26px; height: 26px; }
.icon--gold { background: rgba(201,154,61,.18); color: #7A5612; }
.icon--green { background: rgba(101,168,68,.18); color: var(--green-deep); }
.checklist { list-style: none; display: grid; gap: .7rem; margin: 0 0 1.2rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: .6rem; border-left: 3px solid var(--green-deep); border-bottom: 3px solid var(--green-deep); transform: rotate(-45deg) scale(.85); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: var(--navy);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: 64px; right: -12px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.steps h3 { font-size: 1.2rem; }
.steps p { font-size: .98rem; margin: 0; }
.arch { border-radius: 999px 999px var(--radius-lg) var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); max-width: 340px; margin: 0 auto; border: 6px solid var(--white); outline: 2px solid var(--gold); }
.arch img { width: 100%; height: auto; }
.portrait-slot { aspect-ratio: 4 / 5; max-width: 380px; width: 100%; margin: 0 auto; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); border: 2px dashed rgba(16,46,74,.28); background: linear-gradient(180deg, var(--cream), #fff); display: grid; place-items: center; text-align: center; padding: 24px; color: #4a5b66; font-size: .92rem; }
.portrait-slot svg { width: 56px; height: 56px; color: var(--gold); margin: 0 auto 10px; }
.pullquote { font-family: var(--font-heading); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem); line-height: 1.3; color: var(--white); margin: 0 0 1rem; font-weight: 600; }
.band-cta { background: linear-gradient(135deg, var(--navy), #163f66); color: #E7EEF5; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px); text-align: center; position: relative; overflow: hidden; }
.band-cta h2 { color: var(--white); }
.band-cta p { max-width: 38em; margin-left: auto; margin-right: auto; }
.band-cta .btn-row { justify-content: center; }
.band-cta a:not(.btn) { color: var(--gold-light); font-weight: 600; }
.contact-points { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; margin-top: 1.6rem; font-weight: 600; }
.disclosure-band { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; font-size: .92rem; color: #3b4b54; }
.disclosure-band p { margin: 0; }
.keys-strip { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }

/* ------------------------------------------------------------ notices, alerts, badges */
.notice { border-radius: var(--radius); padding: 14px 18px; margin: 0 0 1.6rem; font-size: .95rem; border: 1px solid var(--line); background: var(--cream); }
.notice--review { background: #FFF6DD; border-color: var(--gold); color: #4a3608; }
.notice--risk { background: var(--cream); border-left: 5px solid var(--gold); border-radius: 4px var(--radius) var(--radius) 4px; }
.alert { border-radius: var(--radius); padding: 14px 18px; margin: 0 0 1.4rem; font-weight: 500; border: 1px solid; }
.alert--success { background: #EAF5E4; border-color: var(--green-deep); color: #1f4a19; }
.alert--error { background: #FDECEC; border-color: #B3261E; color: #7a1712; }
.alert--info { background: #E8F3FB; border-color: var(--blue); color: var(--navy); }
.badge { display: inline-block; padding: .2em .8em; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(18,97,168,.12); color: var(--blue-dark); }
.badge--gold { background: rgba(201,154,61,.22); color: #6b4a0e; }
.badge--green { background: rgba(101,168,68,.2); color: #24521d; }
.badge--muted { background: #eceff1; color: #4a5a63; }
.badge--red { background: #FDECEC; color: #8a1a14; }

/* ------------------------------------------------------------ forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-md); }
.form-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label, legend { font-weight: 600; color: var(--navy); font-size: .95rem; }
.field .hint { font-size: .86rem; color: #54656f; }
.req { color: #B3261E; }
.input, select.input, textarea.input {
  width: 100%; font: inherit; color: var(--charcoal); background: #F4F9FD; border: 1.5px solid #9fb5c6; border-radius: 10px; padding: 12px 14px; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
textarea.input { min-height: 150px; resize: vertical; }
.input:hover { border-color: var(--blue); }
.input:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(47,145,208,.28); }
.input[aria-invalid="true"] { border-color: #B3261E; background: #FFF8F8; }
.field-error { color: #9b1c15; font-size: .9rem; font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-group { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: block; padding: 14px 16px; border: 1.5px solid #9fb5c6; border-radius: 12px; background: #F4F9FD; font-weight: 600; color: var(--navy); }
.choice small { display: block; font-weight: 400; color: #4a5b66; font-size: .86rem; margin-top: 2px; }
.choice input:checked + span { border-color: var(--blue); background: rgba(18,97,168,.08); box-shadow: inset 0 0 0 1px var(--blue); }
.choice input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--blue); flex: 0 0 auto; }
.check label { font-weight: 400; color: var(--charcoal); font-size: .95rem; }
.form-foot { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.form-links { font-size: .95rem; }
.auth-wrap { max-width: 560px; margin: 0 auto; }
.auth-wrap--wide { max-width: 760px; }
.pw-toggle { display: flex; gap: 8px; align-items: center; font-size: .88rem; margin-top: 2px; }

/* ------------------------------------------------------------ legal / prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .caps { text-transform: uppercase; font-size: .92rem; line-height: 1.6; }
.prose .updated { color: #54656f; font-size: .92rem; }

/* ------------------------------------------------------------ member area */
.member-head { background: var(--navy); color: #E7EEF5; padding: 36px 0 0; }
.member-head h1 { color: var(--white); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin-bottom: .2em; }
.member-head p { margin-bottom: 1.4rem; color: #C6D4E1; }
.member-head .accent-bar { height: 4px; width: 72px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 4px; margin-bottom: 1rem; }
.member-tabs { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
.member-tabs a { display: block; padding: 12px 20px; color: #C6D4E1; text-decoration: none; font-weight: 600; border-radius: 10px 10px 0 0; min-height: 44px; }
.member-tabs a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.member-tabs a[aria-current="page"] { background: #F4F7FA; color: var(--navy); }
.subtabs { border-bottom: 2px solid var(--line); margin-bottom: 8px; }
.subtabs a { color: var(--navy); border-radius: 8px 8px 0 0; }
.subtabs a:hover { color: var(--blue); background: rgba(18,97,168,.08); }
.subtabs a[aria-current="page"] { background: var(--white); color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
.member-body { background: #F4F7FA; padding: 36px 0 80px; min-height: 50vh; }
.dash-grid { display: grid; gap: 24px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.dash-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.dash-card h2 { font-size: 1.35rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; margin-bottom: .8rem; }
.dash-card--gold { border-top: 4px solid var(--gold); }
.col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; } .col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 1rem; }
.kv dt { font-weight: 600; color: #54656f; }
.kv dd { margin: 0; word-break: break-word; }
.empty-state { text-align: center; padding: 28px 16px; border: 2px dashed rgba(16,46,74,.2); border-radius: var(--radius); color: #4a5b66; background: #FAFBFC; }
.empty-state svg { width: 40px; height: 40px; color: var(--gold); margin: 0 auto 8px; }
.empty-state p { margin: 0; }
.list-plain { list-style: none; display: grid; gap: 14px; }
.list-item { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-item h3 { font-size: 1.05rem; font-family: var(--font-body); margin-bottom: .2em; }
.list-item p { margin: 0; font-size: .96rem; }
.progress { list-style: none; display: grid; gap: 12px; }
.progress li { display: flex; gap: 12px; align-items: center; }
.progress .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #9fb5c6; flex: 0 0 auto; display: grid; place-items: center; }
.progress .done .dot { background: var(--green-deep); border-color: var(--green-deep); }
.progress .done .dot::after { content: ""; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }

/* admin tables */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 640px; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: #EEF3F8; color: var(--navy); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
table.data tr:last-child td { border-bottom: 0; }
.stat { font-family: var(--font-heading); font-size: 2.2rem; color: var(--navy); line-height: 1; }
.pager { display: flex; gap: 10px; margin-top: 18px; align-items: center; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--navy); color: #C6D4E1; padding: 64px 0 0; font-size: .96rem; }
.site-footer a { color: #E7EEF5; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { display: inline-block; background: var(--white); border-radius: 14px; padding: 10px 18px; line-height: 0; margin-bottom: 18px; }
.footer-logo img { height: 74px; width: auto; }
.footer-brand p { max-width: 24em; }
.footer-title { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; font-weight: 700; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; position: relative; padding-top: 22px; padding-bottom: 30px; font-size: .88rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: rgba(255,255,255,.14); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex !important; flex-wrap: wrap; gap: 6px 22px !important; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1099px) {
  .steps, .steps--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .col-4 { grid-column: span 6; } .col-8 { grid-column: span 12; }
}
@media (max-width: 859px) {
  .grid--3, .grid--2, .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
  .col-4, .col-6, .col-8 { grid-column: span 12; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  body { font-size: 1rem; }
  .container { padding: 0 20px; }
  .steps, .steps--three, .grid--4, .choice-group { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}

/* ------------------------------------------------------------ motion */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .nav-toggle { display: none; } }
