/* Retire.Courses platform pages (pages-static/assets/home.css): the home page and the pages Retire.Courses itself owns
   (terms, 404, join links, unsubscribe). Copied from Aryze's charcoal "Retire Courses Landing Page"
   frame, measured from its 1x export and Figma's Properties panel (Oct 8 to 9 2026).
   Headlines are Georgia here. Advisor pages use brand.css (Inter Bold) instead; never mix them. */

:root {
  --charcoal: #222229;          /* Primary/Primary */
  --charcoal-card: #2e2e38;
  --charcoal-edge: #3a3a45;
  --charcoal-divider: #5d5d6f;
  --button-white: #f5f5ff;
  --off-white: #f6f6f6;         /* Background */
  --lightest: #eaeaec;          /* Foreground */
  --lighter: #d4d4d4;           /* Border */
  --text: #3a3a45;              /* Text Neutral */
  --glyph: #acacb9;             /* icon glyphs, decoration only */
  --error: #a3261b;
  --error-bg: #fbeceb;
  --serif: Georgia, Gelasio, "Times New Roman", serif;
  --sans: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: 84px; --h1: 72px; --h-panel: 64px; --h2: 54px; --h2-dark: 48px; --h3: 44px; --h4: 36px; --h5: 32px; --h6: 28px;
  --r-lg: 16px; --r-sm: 8px;
  --shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  --shadow-btn: 0 5px 25px rgba(0, 0, 0, 0.25);
  --wide: 1024px; --narrow: 864px; --gutter: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--off-white); color: var(--text); font: 500 18px/1.5 var(--sans); letter-spacing: -0.0125em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.05em; line-height: 1.14; color: var(--charcoal); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .on-photo :focus-visible { outline-color: var(--button-white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.tagline { display: block; font: 700 16px/1.2 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--charcoal); }
.dark .tagline, .on-photo .tagline { color: var(--off-white); }
.ico { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none !important; display: inline-block; white-space: nowrap; font-feature-settings: "liga"; font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 48; user-select: none; }
.wordmark { font: 700 24px/1 var(--sans); letter-spacing: -0.05em; color: var(--charcoal); text-decoration: none; white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: 600 16px/1.2 var(--sans); letter-spacing: -0.025em; border-radius: var(--r-sm); white-space: nowrap; transition: transform 250ms var(--ease); -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: scale(0.98); }
.btn[aria-busy="true"] { opacity: 0.6; transform: none; cursor: progress; }
.btn-ink { background: var(--charcoal); color: var(--off-white); padding: 13px 20px; box-shadow: var(--shadow-btn); }
.btn-light { background: var(--button-white); color: var(--charcoal); padding: 4px 4px 4px 14px; gap: 14px; box-shadow: var(--shadow-btn); }
.btn-light .chip { width: 33px; height: 33px; border-radius: 4px; background: var(--charcoal); color: #fff; display: grid; place-items: center; }
.btn-light .chip .ico { font-size: 20px; }
.btn-full { width: 100%; padding: 13px 20px; }

/* Nav pill, floating over the hero photo */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; height: 0; }
.pill { position: relative; top: 24px; width: min(768px, calc(100% - 32px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 17px; background: var(--lightest); border: 1px solid var(--lighter); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.pill ul { display: flex; gap: 25px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.pill ul a { font: 500 16px/1 var(--sans); letter-spacing: -0.025em; color: var(--charcoal); text-decoration: none; text-underline-offset: 6px; }
.pill ul a:hover { text-decoration: underline; }
.pill .btn-ink { padding: 14px 20px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--charcoal); cursor: pointer; }
.menu-btn .ico { font-size: 28px; }
.sheet { position: relative; top: 32px; width: calc(100% - 32px); margin: 0 auto; padding: 8px; background: var(--lightest); border: 1px solid var(--lighter); border-radius: var(--r-lg); box-shadow: var(--shadow); display: grid; gap: 2px; }
.sheet a { padding: 14px 12px; border-radius: var(--r-sm); text-decoration: none; font: 500 17px/1 var(--sans); color: var(--charcoal); }
.sheet .btn { margin-top: 6px; }

/* Hero: photo inset 8px, 16px corners, flat 75% charcoal layer */
.hero { position: relative; margin: 8px; min-height: 673px; border-radius: var(--r-lg); overflow: hidden; background: var(--charcoal) url(/assets/home/hero.jpg) 62% 40% / cover no-repeat; color: var(--off-white); display: flex; align-items: flex-end; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(34, 34, 41, 0.75); }
.hero > .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 325px; gap: 64px; align-items: end; padding-block: 200px 80px; }
.hero h1 { font-size: var(--display); line-height: 1.02; color: var(--off-white); margin-top: 16px; }
.hero .lede { margin-top: 24px; max-width: 620px; color: var(--lighter); }
.glass { border: 1px solid var(--charcoal-card); border-radius: var(--r-lg); padding: 24px; background: rgba(34, 34, 41, 0.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; gap: 18px; }
.glass h2 { font-size: var(--h5); color: var(--off-white); }
.glass p { color: var(--off-white); margin-top: 8px; }
.glass hr { border: 0; height: 1px; background: var(--charcoal-divider); margin: 0; }
.glass .btn { justify-self: start; }

/* Sections */
.sec { padding-block: 80px; }
.sec-alt { background: var(--lightest); }
.dark { background: var(--charcoal); color: var(--lighter); }
.dark h2, .dark h3 { color: var(--off-white); }
.intro { display: grid; gap: 16px; }
.intro p { margin-top: 8px; max-width: 610px; }
.intro.center { text-align: center; justify-items: center; max-width: 640px; margin: 0 auto; }
.intro.center p { margin-inline: auto; }

/* Questions row: three columns split by 1px rules, no cards */
.questions-intro h2 { font-size: var(--h1); }
.questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; }
.q { padding: 0 32px 0 0; display: grid; gap: 8px; align-content: start; }
.q + .q { border-left: 1px solid var(--lighter); padding-left: 32px; }
.q > :not(.ico) { margin-left: 16px; }
.q .ico { font-size: 64px; color: var(--glyph); margin-bottom: 24px; }
.q h3 { font-size: var(--h4); }

/* How Retire.Courses helps: feature cards with a photo and an overlapping icon tile */
.helps h2 { font-size: var(--h2); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.feature { background: var(--off-white); border: 1px solid var(--lighter); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px 16px 32px; }
.feature .img { position: relative; margin-bottom: 52px; }
.feature .img img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.feature .tile { position: absolute; left: 16px; bottom: -32px; width: 64px; height: 64px; border-radius: var(--r-sm); background: var(--charcoal); color: var(--glyph); display: grid; place-items: center; }
.feature .tile .ico { font-size: 34px; }
.feature h3 { font-size: var(--h5); padding-inline: 16px; }
.feature p { padding-inline: 16px; margin-top: 8px; }
.rule { border: 0; height: 1px; background: var(--lighter); margin: 32px 0; }
.cta-band { background: var(--charcoal); border-radius: var(--r-lg); padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow); }
.cta-band h2 { font-size: var(--h3); color: var(--off-white); }
.cta-band p { color: var(--off-white); margin-top: 8px; }

/* Learning comes first (charcoal, 128px padding): photos and cards in a 3-row checkerboard */
.why { padding-block: 128px; }
.why h2 { font-size: var(--h2-dark); }
.why .intro.center { max-width: 760px; }
.why-grid { display: grid; gap: 24px; margin-top: 48px; }
.why-row { display: grid; grid-template-columns: minmax(0, 605fr) minmax(0, 395fr); gap: 24px; }
.why-row.flip { grid-template-columns: minmax(0, 395fr) minmax(0, 605fr); }
.why-row img { width: 100%; height: 319px; object-fit: cover; border-radius: var(--r-lg); }
.why-row .dcard { min-height: 319px; }
.dcard { background: var(--charcoal-card); border: 1px solid var(--charcoal-edge); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; }
.dcard .ico { font-size: 64px; color: var(--glyph); margin-bottom: 24px; }
.dcard h3 { font-size: var(--h5); color: var(--off-white); }
.dcard p { margin-top: 16px; color: var(--lighter); max-width: 330px; }
.dcard .line { margin-top: auto; padding-top: 32px; border-bottom: 1px solid var(--charcoal-divider); }

/* Why trust them */
.trust-grid { display: grid; grid-template-columns: minmax(0, 548fr) minmax(0, 411fr); gap: 65px; align-items: start; }
.trust-grid h2 { font-size: var(--h3); }
.trust-grid .hr { border: 0; height: 1px; background: var(--lighter); margin: 48px 0 24px; }
.trust-grid .tagline { margin-bottom: 16px; }
.slider { margin-top: 48px; }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 20px; padding: 8px; background: var(--lightest); border: 1px solid var(--lighter); border-radius: var(--r-lg); align-items: center; }
.slide img { width: 252px; height: 160px; object-fit: cover; border-radius: 12px; }
.slide h3 { font-size: var(--h5); }
.slide p { margin-top: 8px; }
.slider-ctrl { display: flex; justify-content: space-between; margin-top: 16px; }
.round { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--charcoal); color: var(--off-white); display: grid; place-items: center; cursor: pointer; transition: transform 250ms var(--ease); }
.round[disabled] { opacity: 0.3; cursor: default; }
.round .ico { font-size: 22px; }
.photo-card { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 577px; background: var(--charcoal) url(/assets/home/trust-room.jpg) 50% 40% / cover no-repeat; box-shadow: var(--shadow); display: flex; align-items: flex-end; padding: 16px; }
.photo-card .glass { width: 100%; background: rgba(34, 34, 41, 0.75); }
.photo-card .glass h3 { font-size: var(--h6); color: var(--off-white); }

/* Sign up panel: charcoal, inset 16px from the window */
.panel-wrap { background: var(--lightest); padding: 16px; }
.panel { background: var(--charcoal); border-radius: var(--r-lg); padding-block: 80px; color: var(--lighter); }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 391px; gap: 48px; align-items: center; max-width: calc(928px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.panel h2 { font-size: var(--h-panel); color: var(--off-white); line-height: 1.12; margin-top: 16px; }
.panel .lede { margin-top: 24px; color: var(--lighter); }
.form-card { background: var(--charcoal-card); border: 1px solid var(--charcoal-edge); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 16px; color: var(--off-white); }
.form-card > .ico { font-size: 48px; color: var(--glyph); }
.form-card h3 { font-size: var(--h5); color: var(--off-white); }
.form-card hr { border: 0; height: 1px; background: var(--charcoal-divider); margin: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.fields .field-wide { grid-column: 1 / -1; }
.field { position: relative; min-width: 0; }
.field input { width: 100%; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--lighter); background: var(--lightest); box-shadow: var(--shadow); padding: 13px 8px 0; font: 600 16px/1.2 var(--sans); letter-spacing: -0.025em; color: var(--charcoal); appearance: none; }
.field label { position: absolute; left: 9px; top: 11px; font: 600 16px/1.2 var(--sans); letter-spacing: -0.025em; color: var(--text); pointer-events: none; transform-origin: left top; transition: transform 200ms var(--ease); }
.field input:focus { outline: none; border-color: var(--button-white); background: #fff; }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-8px) scale(0.62); }
.field.invalid input { border-color: #ffb4ab; background: var(--error-bg); }
.field-error { margin-top: 6px; font: 500 13px/1.3 var(--sans); color: #ffb4ab; display: flex; gap: 4px; align-items: center; }
.field-error .ico { font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font: 500 12px/1.5 var(--sans); letter-spacing: -0.0125em; color: var(--off-white); }
.consent a { color: inherit; }
.form-note { padding: 12px 14px; border-radius: var(--r-sm); background: var(--charcoal-edge); color: var(--off-white); font-size: 15px; line-height: 1.45; }
.success { display: grid; gap: 12px; }
/* The texting step under the thank-you (platform.js), and its quiet No. */
.text-step { display: grid; gap: 16px; }
.text-step-done:focus { outline: none; }
.btn-text { background: none; border: 0; padding: 4px 0; font: 500 15px/1.3 var(--sans); color: var(--off-white); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-text[disabled], .btn-light[disabled] { opacity: 0.6; cursor: progress; }
.success .ico { font-size: 40px; color: var(--off-white); }
.checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--charcoal-divider); max-width: 1024px; margin-inline: auto; }
.check-chip { flex: none; max-width: 100%; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 16px; border-radius: var(--r-sm); background: var(--charcoal-card); font: 700 14px/1 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--off-white); }
.check-chip .ico { font-size: 18px; font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 20; }

/* Footer */
.footer { background: var(--lightest); padding-block: 64px 80px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 48px; }
.foot-top .wordmark { font-size: 32px; }
.foot-top p { margin-top: 16px; font-size: 18px; max-width: 760px; }
.foot-col h2 { font-size: 20px; letter-spacing: -0.0125em; padding-bottom: 12px; border-bottom: 1px solid var(--lighter); }
.foot-col a { display: block; margin-top: 4px; padding: 6px; border-radius: 6px; font: 400 16px/1.2 var(--sans); letter-spacing: -0.025em; color: var(--charcoal); text-decoration: none; transition: background-color 250ms var(--ease); }
.foot-col a:hover { background: var(--off-white); }
.foot-legal { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--lighter); display: grid; gap: 16px; font: 500 12px/1.5 var(--sans); letter-spacing: -0.0125em; color: var(--charcoal); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 8px; }
.foot-base nav { display: flex; gap: 16px; }
.foot-base nav a { font: 500 14px/1.2 var(--sans); letter-spacing: -0.025em; color: var(--charcoal); text-underline-offset: 3px; }
.credit { display: flex; align-items: center; gap: 14px; font: 500 14px/1 var(--sans); color: var(--charcoal); }
.credit a, .credit .by { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.credit .sep { width: 1px; height: 28px; background: var(--lighter); }
.credit .aryze { height: 30px; width: auto; }
.credit .nexruto { height: 24px; width: auto; }

/* Small platform pages (terms, 404, join, unsubscribe): one centered card on the home page's ground */
.mini-head { padding: 24px 16px 0; }
.mini-head .pill { top: 0; }
.mini { min-height: calc(100vh - 240px); display: grid; place-items: center; padding: 64px 16px; }
.mini-card { width: min(100%, 560px); background: var(--off-white); border: 1px solid var(--lighter); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 40px; display: grid; gap: 16px; text-align: left; }
.mini-card h1 { font-size: var(--h4); }
.mini-card .mark { width: 56px; height: 56px; border-radius: 50%; background: var(--charcoal); color: var(--off-white); display: grid; place-items: center; }
.mini-card .mark .ico { font-size: 30px; }
.mini-card .note { font-size: 14px; color: var(--text); }
.doc { padding: 120px 16px 80px; }
.doc article { max-width: 760px; margin: 0 auto; background: var(--off-white); }
.doc h1 { font-size: var(--h2); }
.doc h2 { font-size: var(--h6); margin-top: 40px; }
.doc p, .doc li { margin-top: 12px; }
.doc .draft { margin-top: 16px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--charcoal); color: var(--off-white); font-size: 15px; }

/* Motion: rise in once, transform and opacity only */
.motion [data-reveal] { opacity: 0; transform: translateY(20px); }
.motion [data-reveal].in { opacity: 1; transform: none; transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
@media (prefers-reduced-motion: reduce) {
  .motion [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .round { transition: none !important; }
  .slides { scroll-behavior: auto; }
}

/* Tablet */
@media (max-width: 1023px) {
  :root { --display: 64px; --h1: 56px; --h-panel: 52px; --h2: 46px; --h2-dark: 42px; --h3: 38px; --h4: 30px; --h5: 28px; --gutter: 40px; }
  .pill ul, .pill > .btn { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .hero > .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 140px 56px; }
  .hero .glass { max-width: 420px; }
  .questions { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .q, .q + .q { padding: 0; border-left: 0; }
  .q + .q { border-top: 1px solid var(--lighter); padding-top: 32px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid > :last-child { grid-column: 1 / -1; }
  .why { padding-block: 96px; }
  .trust-grid, .panel-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .checks { margin-inline: var(--gutter); }
}
/* Phone */
@media (max-width: 767px) {
  :root { --display: 44px; --h1: 38px; --h-panel: 36px; --h2: 34px; --h2-dark: 32px; --h3: 28px; --h4: 26px; --h5: 24px; --h6: 22px; --gutter: 16px; }
  body { font-size: 16px; }
  .hero { min-height: 0; }
  .hero > .wrap { padding-block: 120px 32px; }
  .sec { padding-block: 56px; }
  .questions, .feature-grid { margin-top: 40px; }
  .feature-grid, .why-row, .why-row.flip, .fields { grid-template-columns: minmax(0, 1fr); }
  .feature-grid > :last-child { grid-column: auto; }
  .why { padding-block: 64px; }
  .why-row img { height: 220px; }
  .why-row .dcard { min-height: 0; }
  .check-chip { white-space: normal; }
  .why-row.flip img { order: -1; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .slide { grid-template-columns: minmax(0, 1fr); }
  .slide img { width: 100%; }
  .photo-card { min-height: 440px; }
  .panel { padding-block: 48px; }
  .form-card { padding: 24px; }
  .checks { gap: 12px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .mini-card { padding: 28px 24px; }
}
