/* ============================================================
   Curioler — Home page
   Single source of truth for home.css.
   Loaded only in base_home.html — no other page affected.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --cream:    #F7F4EE;
  --ink:      #23395D;
  --slate:    #4B5563;
  --sage:     #C7D2C2;
  --peach:    #EBCFC2;
  --lavender: #D9D1E6;
  --yellow:   #E6C36A;
  --border:   #E8E2D9;
  --white:    #FFFFFF;
  --hover:    #EDE8DF;
  --sw:       240px;   /* sidebar width */
  --radius:   16px;
  --sh:       0 1px 4px rgba(35,57,93,.05), 0 3px 12px rgba(35,57,93,.07);
  --sh-lg:    0 4px 24px rgba(35,57,93,.12);
  --fh:       'Kalam', cursive;
  --fb:       'Nunito', 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body.h-page {
  font-family: var(--fb);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── Shell ───────────────────────────────────────────────── */
.h-shell { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────── */
.h-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sw);
  height: 100vh;
  background: #FAFAF6;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1rem;
  overflow-y: auto;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
  z-index: 200;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}

.h-sidebar::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* Logo */
.h-sidebar__logo { margin-bottom: 1.25rem; }

.h-sidebar__logo-link {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  text-decoration: none;
}

.h-sidebar__wordmark {
  font-family: var(--fh);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.1;
}

.h-sidebar__subname {
  font-size: .82rem;
  color: var(--slate);
  font-weight: 600;
  letter-spacing: .01em;
  margin-top: .1rem;
}

.h-sidebar__tagline {
  font-size: .68rem;
  color: #9CA3AF;
  font-weight: 400;
  letter-spacing: .01em;
  margin-top: .05rem;
}

/* Nav */
.h-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1;
}

.h-nav-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .62rem .85rem;
  border-radius: 11px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s;
  cursor: pointer;
}

.h-nav-item:hover,
.h-nav-item--active { background: var(--hover); }

.h-nav-item__icon { font-size: 1rem; width: 1.3rem; text-align: center; flex-shrink: 0; }
.h-nav-item__label { line-height: 1; }

/* Sidebar bottom */
.h-sidebar__bottom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.h-sidebar__newsletter-note {
  font-size: .72rem;
  color: var(--slate);
  line-height: 1.5;
  margin-bottom: .75rem;
}

.h-sidebar__email-form {
  display: flex;
  gap: .35rem;
  margin-bottom: .9rem;
}

.h-sidebar__email-input {
  flex: 1;
  min-width: 0;
  padding: .42rem .6rem;
  font: inherit;
  font-size: .78rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  outline: none;
}

.h-sidebar__email-input:focus { border-color: var(--ink); }

.h-sidebar__email-btn {
  padding: .42rem .72rem;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.h-sidebar__email-btn:hover { opacity: .85; }

.h-sidebar__social {
  display: flex;
  gap: .85rem;
  align-items: center;
  margin-bottom: .9rem;
}

.h-sidebar__social-link {
  color: var(--slate);
  display: flex;
  align-items: center;
  transition: color .15s;
}
.h-sidebar__social-link:hover { color: var(--ink); }

.h-sidebar__auth {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.h-sidebar__auth-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
}

.h-sidebar__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.h-sidebar__avatar--placeholder {
  background: var(--sage);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
}

.h-sidebar__auth-secondary {
  font-size: .75rem;
  color: var(--slate);
  font-weight: 500;
  transition: color .15s;
}
.h-sidebar__auth-secondary:hover { color: var(--ink); }

/* ── Mobile topbar ───────────────────────────────────────── */
.h-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  align-items: center;
  justify-content: space-between;
  z-index: 300;
}

.h-topbar__wordmark {
  font-family: var(--fh);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.h-topbar__menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  padding: .35rem;
}

/* Overlay */
.h-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(35,57,93,.35);
  z-index: 150;
  opacity: 0;
  transition: opacity .28s;
}
.h-overlay--visible { opacity: 1; }

/* ── Main ────────────────────────────────────────────────── */
.h-main {
  margin-left: var(--sw);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.h-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 2.5rem 5rem 1.5rem;
  width: 100%;
  flex: 1;
}

/* Messages */
.h-messages { margin-bottom: 1.5rem; }

.h-message {
  padding: .65rem 1rem;
  border-radius: 10px;
  margin-bottom: .4rem;
  font-size: .88rem;
  font-weight: 600;
}
.h-message--success { background: #d1fae5; color: #065f46; }
.h-message--error   { background: #fee2e2; color: #991b1b; }
.h-message--info,
.h-message--         { background: #e0f2fe; color: #075985; }

/* Footer */
.h-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.25rem 2.5rem;
}

.h-footer__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: .78rem;
  color: var(--slate);
  flex-wrap: wrap;
}

.h-footer__inner a { color: var(--slate); font-weight: 500; }
.h-footer__inner a:hover { color: var(--ink); text-decoration: underline; }

/* ── Buttons ─────────────────────────────────────────────── */
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .72rem 1.6rem;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  text-decoration: none;
}

.h-btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 10px rgba(35,57,93,.2);
}
.h-btn--primary:hover {
  background: #1a2d4a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(35,57,93,.25);
}

.h-btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.h-btn--outline:hover {
  background: var(--hover);
  transform: translateY(-1px);
}

.h-btn--ghost {
  background: transparent;
  color: var(--slate);
  border-color: var(--border);
  font-size: .88rem;
  padding: .5rem 1.1rem;
}
.h-btn--ghost:hover { background: var(--hover); color: var(--ink); }

.h-btn--sm { padding: .45rem 1rem; font-size: .82rem; }

/* ── Shared section typography ───────────────────────────── */
.h-section-title {
  font-family: var(--fh);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: .35rem;
}

.h-section-sub {
  font-size: .95rem;
  color: var(--slate);
  margin-bottom: 2.25rem;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.h-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: .5rem 0 3.5rem;
  margin-bottom: .5rem;
}

.h-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--sage);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 50px;
  margin-bottom: 1.1rem;
}

.h-hero__title {
  font-family: var(--fh);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.h-hero__title em {
  font-style: normal;
  position: relative;
  display: inline-block;
}

.h-hero__title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: .05em;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.h-hero__lead {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 440px;
}

.h-hero__actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Image side */
.h-hero__visual {
  position: relative;
  /* shift image slightly up so it bleeds into the top */
  margin-top: -1.5rem;
  margin-left: -1.5rem; /* bleed into the left content gap */
}

.h-hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 8px 36px rgba(35,57,93,.13);
}

.h-hero__img {
  width: 112%;
  margin-left: -3%;
  display: block;
  object-fit: cover;
}

.h-hero__badge {
  position: absolute;
  bottom: 2.5rem;
  right: 1.5rem;
  background: var(--yellow);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
  padding: .6rem .95rem;
  border-radius: 10px;
  box-shadow: var(--sh);
  max-width: 138px;
  text-align: center;
  transform: rotate(-1.5deg);
  z-index: 2;
}

/* ── Alternating section bands ───────────────────────────── */
/* Sections marked .h-alt get a white full-bleed strip */
.h-alt {
  background: var(--white);
  margin-left: -1.5rem;
  margin-right: -2.5rem;
  padding-left: 1.5rem;
  padding-right: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* compensate so the section's own margin-bottom still works */
.h-alt > *:last-child { margin-bottom: 0; padding-bottom: 4rem; }

/* Hidden sections — kept in HTML for later */
.h-moments { display: none; }

/* ═══════════════════════════════════════════════════════════
   JOURNEY SELECTOR
═══════════════════════════════════════════════════════════ */
.h-journey {
  margin-bottom: 4rem;
}

.h-jcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.h-jcard {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.75rem 2rem;
  border-radius: 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}

.h-jcard::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  pointer-events: none;
}

.h-jcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.h-jcard--sage     { background: var(--sage); }
.h-jcard--peach    { background: var(--peach); }
.h-jcard--lavender { background: var(--lavender); }

.h-jcard__icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-jcard__icon-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.h-jcard__title {
  font-family: var(--fh);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .55rem;
  flex: 1;
}

.h-jcard__desc {
  font-size: .88rem;
  line-height: 1.55;
  color: rgba(35,57,93,.75);
  margin-bottom: 1.25rem;
}

.h-jcard__cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
}

.h-jcard__cta-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform .15s;
}

.h-jcard:hover .h-jcard__cta-arrow { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════
   WHY CURIOLER (trust strip)
═══════════════════════════════════════════════════════════ */
.h-trust {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.75rem 2.5rem;
  margin-bottom: 4rem;
  box-shadow: var(--sh);
  position: relative;
  overflow: hidden;
}

/* notebook-line texture */
.h-trust::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 31px,
    rgba(232,226,217,.5) 31px,
    rgba(232,226,217,.5) 32px
  );
  pointer-events: none;
}

.h-trust__inner { position: relative; }

.h-trust__title {
  font-family: var(--fh);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2rem;
}

.h-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.h-tcol__icon {
  width: 64px;
  height: 64px;
  margin-bottom: .85rem;
}
.h-tcol__icon-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.h-tcol__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: .35rem;
}

.h-tcol__body {
  font-size: .9rem;
  color: var(--slate);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   ROADMAP
═══════════════════════════════════════════════════════════ */
.h-roadmap {
  margin-bottom: 4rem;
}

.h-roadmap__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: flex-start;
  margin-top: 2rem;
  gap: 0;
}

.h-roadmap__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
}

.h-roadmap__bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fh);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--sh);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.h-roadmap__step:nth-child(1) .h-roadmap__bubble { border-color: var(--sage); background: #edf4eb; }
.h-roadmap__step:nth-child(3) .h-roadmap__bubble { border-color: var(--peach); background: #fdf2ee; }
.h-roadmap__step:nth-child(5) .h-roadmap__bubble { border-color: var(--lavender); background: #f2eefa; }
.h-roadmap__step:nth-child(7) .h-roadmap__bubble { border-color: var(--yellow); background: #fdf6e3; }

.h-roadmap__label {
  font-size: .83rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  max-width: 110px;
}

.h-roadmap__line {
  height: 2px;
  border-top: 2px dashed var(--border);
  margin-top: 26px;
  flex: 1;
  min-width: 20px;
  align-self: flex-start;
}

/* ═══════════════════════════════════════════════════════════
   READING CORNER
═══════════════════════════════════════════════════════════ */
.h-reading {
  margin-bottom: 4rem;
}

.h-reading__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.h-reading__sub {
  font-size: .9rem;
  color: var(--slate);
  margin-top: .25rem;
}

.h-reading__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.h-acard {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.h-acard:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
}

.h-acard__thumb {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Warm gradient per card position */
.h-reading__grid .h-acard:nth-child(4n+1) .h-acard__thumb { background: linear-gradient(135deg, #C7D2C2 0%, #ddebd5 100%); }
.h-reading__grid .h-acard:nth-child(4n+2) .h-acard__thumb { background: linear-gradient(135deg, #EBCFC2 0%, #f5e0d4 100%); }
.h-reading__grid .h-acard:nth-child(4n+3) .h-acard__thumb { background: linear-gradient(135deg, #D9D1E6 0%, #e8dff5 100%); }
.h-reading__grid .h-acard:nth-child(4n)   .h-acard__thumb { background: linear-gradient(135deg, #E6C36A 0%, #f5d98a 100%); }

.h-acard__thumb svg { opacity: .35; }

.h-acard__body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.h-acard__badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: .5rem;
}

.h-acard__title {
  font-family: var(--fh);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: .45rem;
  flex: 1;
}

.h-acard__excerpt {
  font-size: .85rem;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: .6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.h-acard__meta {
  font-size: .75rem;
  color: #9CA3AF;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   COMMUNITY — sticky notes
═══════════════════════════════════════════════════════════ */
.h-moments {
  margin-bottom: 4rem;
}

.h-moments__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.h-sticky {
  background: #FFF9E3;
  border-radius: 4px 4px 4px 4px;
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: 3px 5px 16px rgba(35,57,93,.1);
  position: relative;
}

/* top tape strip */
.h-sticky::before {
  content: '';
  position: absolute;
  top: 0; left: 1.25rem; right: 1.25rem;
  height: 3px;
  border-radius: 0 0 2px 2px;
}

.h-sticky--1 { background: #FFF9E3; transform: rotate(-1.5deg); }
.h-sticky--1::before { background: var(--yellow); }

.h-sticky--2 { background: #FEF0F0; transform: rotate(1deg); }
.h-sticky--2::before { background: var(--peach); }

.h-sticky--3 { background: #F0F4FF; transform: rotate(-1deg); }
.h-sticky--3::before { background: var(--lavender); }

.h-sticky--4 { background: #F2FBF2; transform: rotate(1.5deg); }
.h-sticky--4::before { background: var(--sage); }

.h-sticky--5 { background: #FFF9E3; transform: rotate(-.8deg); }
.h-sticky--5::before { background: var(--yellow); }

.h-sticky__quote {
  font-family: var(--fh);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
}

.h-moments__footer {
  margin-top: 1.75rem;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   OUR STORY
═══════════════════════════════════════════════════════════ */
.h-story {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--sh);
  background: var(--white);
  margin-bottom: 1rem;
}

.h-story__thumb {
  min-height: 280px;
  background: linear-gradient(160deg, var(--sage) 0%, var(--peach) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-story__thumb-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  color: rgba(35,57,93,.4);
}

.h-story__copy {
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.h-story__title {
  font-family: var(--fh);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.h-story__body {
  font-size: .95rem;
  color: var(--slate);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .h-topbar { display: flex; }

  .h-sidebar {
    transform: translateX(-100%);
    top: 56px;
    height: calc(100vh - 56px);
    box-shadow: var(--sh-lg);
  }

  .h-sidebar--open { transform: translateX(0); }
  .h-overlay { display: block; }

  .h-main { margin-left: 0; padding-top: 56px; }

  .h-content { padding: 1rem 1.25rem 4rem; }
  .h-alt { margin-left: -1.25rem; margin-right: -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }

  .h-hero { grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem 0 2rem; }
  .h-hero__lead { max-width: 100%; }
  .h-hero__visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .h-hero__badge { bottom: 1rem; right: .5rem; }

  .h-jcard-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }

  .h-trust__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .h-trust { padding: 2rem 1.5rem; }

  .h-roadmap__row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem 1rem;
  }
  /* hide the connector lines on mobile */
  .h-roadmap__line { display: none; }

  .h-reading__grid { grid-template-columns: 1fr; }

  .h-moments__grid { grid-template-columns: 1fr; }
  .h-sticky--1, .h-sticky--2, .h-sticky--3,
  .h-sticky--4, .h-sticky--5 { transform: rotate(0deg); }

  .h-story { grid-template-columns: 1fr; }
  .h-story__thumb { min-height: 200px; }
  .h-story__copy { padding: 1.75rem 1.5rem; }

  .h-footer { padding: 1.25rem; }
}

@media (max-width: 480px) {
  .h-hero__title { font-size: 1.85rem; }
  .h-hero__actions { flex-direction: column; align-items: flex-start; }
  .h-hero__actions .h-btn { width: 100%; justify-content: center; }
  .h-roadmap__row { grid-template-columns: 1fr 1fr; }
  .h-reading__header { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .h-jcard, .h-acard, .h-btn, .h-sidebar { transition: none; }
}
