/* Elderella v2 - Base Styles */
/* Following CLAUDE.md design standards */

/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== CSS Variables ===== */
:root {
    /* Primary Colors */
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F5;
    --color-purple-main: #5A4FCF;
    --color-purple-light: #CCCCFF;
    --color-purple-dark: #342A99;

    /* Supporting Colors */
    --color-cta: #FFBC57;
    --color-text: #595959;
    --color-black: #000000;
    --color-promo-bg: #FFEACC;
    --color-card-bg: #EFEEFC;
    --color-card-bg-alt: #EADCEF;
    --color-stats-bg: #F4F4F4;
    --color-btn-secondary: #9954B4;

    /* Typography */
    --font-heading: 'Merriweather Sans', sans-serif;
    --font-heading-sans: 'Merriweather Sans', sans-serif;
    --font-body: 'Source Sans Pro', sans-serif;

    /* Spacing */
    --container-max: 1440px;
    --container-padding: 180px;
    --container-padding-tablet: 30px;
    --container-padding-mobile: 20px;
    --section-padding: 60px;

    /* Spacing group: gap between stats and first feature card */
    --first-feature-gap-desktop: 140px; /* 80px (section top) + 60px (card margin) */
    --first-feature-gap-tablet: 110px;  /* 80px + 30px */
    --first-feature-gap-mobile: 96px;   /* 80px + 16px */

    /* Hero sizing + phone alignment calibration */
    --hero-extra-width: 100px; /* extra width beyond header on desktop */
    --hero-gutter-desktop: 24px;
    --hero-gutter-tablet: 20px;
    --hero-gutter-mobile: 16px;
    --badge-gap-desktop: 12px;
    --badge-gap-mobile: 8px;
    /* Hero grid sizing (desktop-first) */

    --hero-phone-xl: 448px;
    --hero-phone-lg: 400px;
    --hero-phone-md: 300px;
    --hero-phone-sm: 200px;

    --hero-copy-max-xl: 640px;
    --hero-copy-max-lg: 600px;
    --hero-copy-max-md: 560px;
    --hero-copy-max-sm: 520px;
    --hero-phone-sm: 200px;
    --hero-copy-top-mobile: calc(8% - 10px);
    /* Solo shift alignment offset */
    --solo-shift-right-offset-desktop: 180px;
    --solo-shift-right-offset-tablet: 130px;
    --solo-shift-right-offset-mobile: 0px;
    --phone-bottom-nudge-desktop: 0px;
    --phone-bottom-nudge-tablet: 0px;
    --phone-bottom-nudge-mobile: 0px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;

    /* Stats typography + spacing */
    --stat-number-desktop: 48px;
    --stat-number-tablet: 48px;
    --stat-number-mobile: 48px;
    --stat-label-desktop: 20px;
    --stat-label-tablet: 20px;
    --stat-label-mobile: 20px;
    --stat-desc-desktop: 18px;
    --stat-desc-tablet: 20px;
    --stat-desc-mobile: 20px;
    --stat-desc-max: 420px;
    --stats-gap-desktop: 40px;
    --stats-gap-tablet: 60px;
    --stats-gap-mobile: 32px;
}

/* ===== Base Typography ===== */
html {
    font-size: 20px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-text);
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-purple-dark);
}

h1 {
    font-family: var(--font-heading-sans);
    font-size: 60px;
    line-height: 1.1;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}
@media (max-width: 1024px) {
  h1 { font-size: 52px; line-height: 1.2; margin-bottom: 40px; }
}
@media (max-width: 768px) {
    /* Consolidated mobile subtitle sizing for all hero subtitles */
    .explore-hero-subtitle,
    .collects-hero-subtitle,
    .download-hero-subtitle,
    .trust-page-hero-subtitle,
    .story-hero-subtitle,
    .delete-hero-subtitle,
    .introduce-hero-subtitle { font-size: 28px; }
  h1 { font-size: 48px; line-height: 1.25; margin-bottom: 40px; }
}
h2 {
    font-family: var(--font-heading-sans);
    font-size: 48px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 40px;
}
@media (max-width: 1024px) {
  h2 { font-size: 44px; margin-bottom: 40px; }
}
@media (max-width: 768px) {
  h2 { font-size: 40px; margin-bottom: 40px; }
}
h3 {
    font-family: var(--font-body);
    font-size: 40px;
    line-height: 1;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
}
@media (max-width: 1024px) {
  h3 { font-size: 36px; }
}
@media (max-width: 768px) {
  h3 { font-size: 32px; }
}

/* h4 global styles */
h4 {
    font-family: var(--font-body);
    font-size: 32px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 44px;
}
@media (max-width: 1024px) {
  h4 { font-size: 32px; margin-bottom: 44px; }
}
@media (max-width: 768px) {
  h4 { font-size: 28px; margin-bottom: 40px; }
}

/* h5 global styles */
h5 {
    font-family: var(--font-body);
    font-size: 24px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 32px;
}
@media (max-width: 1024px) {
  h5 { font-size: 24px; margin-bottom: 32px; }
}
@media (max-width: 768px) {
  h5 { font-size: 24px; margin-bottom: 32px; }
}

/* h6 global styles (set to 20px) */
h6 {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 28px;
}
@media (max-width: 1024px) {
  h6 { font-size: 20px; margin-bottom: 28px; }
}
@media (max-width: 768px) {
  h6 { font-size: 20px; margin-bottom: 28px; }
}

a {
    color: var(--color-purple-dark);
    text-decoration: none;
}

/* Exclude button-like links from global hover color */
a:hover:not(.btn-signup):not(.btn-purple):not(.btn-try-free):not(.btn-more):not(.btn-cta-yellow):not(.btn-cta--purple):not(.btn-trust):not(.btn-learn-more):not(.btn-signup-footer):not(.app-promo__button):not(.btn-premium-cta) {
    color: var(--color-purple-main);
    text-decoration: none;
}

/* ===== Focus Styles for Accessibility ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-purple-main);
    outline-offset: 2px;
}

/* Suppress mouse/touch focus outlines; keep keyboard-visible */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) {
    outline: none;
}

/* Lock page scroll when nav is open */
html.nav-open, body.nav-open { overflow: hidden; }

/* Skip Link for Keyboard Navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-purple-main);
    color: var(--color-white);
    padding: 8px 16px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Screen Reader Only - Visually Hidden */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Header ===== */
.site-header {
    background-color: var(--color-white);
    padding: 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.site-header.has-scroll-border {
    border-bottom-color: #D4D4D4;
}

/* Desktop: keep header visible at top */
@media (min-width: 769px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  /* Center hero headline within copy column */
  .hero-copy .hero-headline { text-align: center; }
  /* Add 30px padding between phone image and hero right edge */
  .hero-media { padding-right: 30px; }
}

/* ===== App Promo Banner (mobile) ===== */
.app-promo {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #F5F5F5;
    border-bottom: 1px solid #eee;
    transform: translateY(-100%);
    transition: transform .25s ease;
}
.app-promo.is-visible { transform: translateY(0); }
.app-promo__inner {
    max-width: calc(var(--container-max) + var(--hero-extra-width));
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.app-promo__left { display: flex; align-items: center; gap: 12px; }
.app-promo__icon { width: 44px; height: 44px; border-radius: 10px; display: block; }
.app-promo__title { font-family: var(--font-heading-sans); font-size: 20px; color: var(--color-black); }
.app-promo__subtitle { font-family: var(--font-body); font-size: 20px; color: var(--color-text); }
.app-promo__right { display: flex; align-items: center; gap: 8px; }
.app-promo__button { display: inline-block; background: #5A4FCF; color: #fff; padding: 10px 16px; border-radius: 9999px; text-decoration: none; font-family: var(--font-body); font-size: 20px; }
.app-promo__button:hover { opacity: .9; text-decoration: none; }
.app-promo__close { background: none; border: 2px solid #bbb; color: #555; border-radius: 9999px; width: 32px; height: 32px; line-height: 28px; font-size: 20px; cursor: pointer; }

@media (min-width: 769px) {
  .app-promo { display: none; }
}

.header-container {
    display: flex;
    align-items: center;
}

/* Header container gutters: wider header by reducing side padding */
.site-header .container {
    padding: 0 24px;
}

.logo {
    margin-right: auto;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    margin-left: 8px;
    cursor: pointer;
}

.nav-toggle .hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-black);
    position: relative;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--color-black);
}

.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after  { top:  7px; }

.primary-navigation { display: flex; align-items: center; }

.site-header .logo img {
    height: 75px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-right: 74px; /* increased by 50px to space from CTA */
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-black);
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--color-purple-main);
    text-decoration: none;
}

/* ===== Header Dropdown (v2) ===== */
.nav-item--dropdown { position: relative; }
.dropdown-toggle {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-black);
    cursor: pointer;
}
/* Remove focus box on the dropdown toggle; keep a clear keyboard cue */
.dropdown-toggle:focus { outline: none; box-shadow: none; }
.dropdown-toggle:focus-visible {
    outline: none; box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}
.dropdown-toggle::-moz-focus-inner { border: 0; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 380px;
    background: #FFFFFF;
    border: 2px solid #D9D9D9;
    border-radius: 20px;
    padding: 12px 16px;
    z-index: 1100;
    margin-top: 10px; /* extra space below top nav */
}
.dropdown-menu[hidden] { display: none; }

.dropdown-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 8px 0;
    text-decoration: none;
    color: var(--color-black);
}
.dropdown-item + .dropdown-item { margin-top: 10px; }
.dropdown-item:hover {
    background: #F4F4F4;
    text-decoration: none;
    border-radius: 20px;
    /* Make hover background 5px wider on each side */
    margin-left: -5px;
    margin-right: -5px;
    padding-left: 5px;
    padding-right: 5px;
}
.dropdown-item:focus-visible {
    outline: 2px solid var(--color-purple-main);
    outline-offset: 2px;
    border-radius: 20px;
    /* Match hover width for keyboard focus */
    margin-left: -5px;
    margin-right: -5px;
    padding-left: 5px;
    padding-right: 5px;
}

.dropdown-content { display: flex; flex-direction: column; gap: 2px; }
.dropdown-title { display: block; font-family: var(--font-body); font-size: 18px; font-weight: 600; color: var(--color-black); }
.dropdown-desc  { display: block; font-family: var(--font-body); font-size: 16px; color: var(--color-text); }

.dropdown-icon {
    width: 40px; height: 40px; display: inline-block;
    background-size: contain; background-position: center; background-repeat: no-repeat;
}
.dropdown-icon.icon-collects  { background-image: url('../images/collects-icon.png'); }
.dropdown-icon.icon-remembers { background-image: url('../images/remembers-icon.png'); }
.dropdown-icon.icon-shares    { background-image: url('../images/shares-icon.png'); }

@media (max-width: 768px) {
  .nav-item--dropdown { width: 100%; }
  .dropdown-toggle { display: block; width: 100%; text-align: center; }
  /* Center dropdown panel and items in mobile nav */
  .dropdown-menu { position: static; width: 100%; margin-top: 8px; display: flex; flex-direction: column; align-items: center; }
  .dropdown-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; }
  .dropdown-content { align-items: center; text-align: center; }
}

.btn-signup {
    display: inline-block;
    background-color: var(--color-purple-main);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 9999px;
    text-decoration: none;
}

.btn-signup:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* ===== Promo Banner ===== */
.promo-banner {
    background-color: var(--color-promo-bg);
    border-radius: 10px;
    margin: 0; /* spacing controlled by .promo-container */
    padding: 12px 0;
}

.promo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px; /* match header logo gutters on desktop */
}

.promo-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-black);
}

.promo-link {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-black);
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
    text-decoration: none;
}

.promo-link:hover {
    text-decoration: none;
}

.promo-link-text {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.promo-link::after {
    content: '›';
    font-size: 1em;
    line-height: 1;
    margin-left: 2px;
}


    /* (moved) Promo stack micro-breakpoint at ≤600px is at file end */

/* ===== Hero Section ===== */
.hero {
    background-color: var(--color-white);
    padding: 40px 0 0 0;
    overflow: visible;
}

.hero-headline {
    font-family: var(--font-heading-sans);
    font-size: 72px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-black);
    text-align: center;
    margin: 0 auto 40px auto; /* center the headline box */
}

/* Ensure responsive hero sizes override base after cascade */
@media (max-width: 1024px) { .hero-headline { font-size: 52px; } }
@media (max-width: 768px)  { .hero-headline { font-size: 48px; } }

.hero-headline .highlight {
    color: var(--color-purple-main);
}

.hero-content {
    position: relative;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Make hero content span full width on desktop */
.hero .hero-content {
    max-width: calc(var(--container-max) + var(--hero-extra-width));
    padding: 0;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0 var(--hero-gutter-desktop); /* restore desktop gutters */
    border-radius: 20px; /* clip overlays to image corners */
    overflow: hidden;    /* prevent shadow from extending below image */
}

/* Overlay title centered over hero image */
/* no longer used with grid layout */
.hero-title-overlay { display: none; }

.hero-bg-image {
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 20px;
}

/* Grid overlay inside hero */
.hero-grid {
    position: absolute;
    inset: 0;
    display: block; /* absolute overlay */
    padding: 0 var(--hero-gutter-desktop); /* restore desktop gutters */
    z-index: 6;
}

.hero-copy {
    position: absolute;
    top: 6%;
    left: 0;
    right: 0;
    text-align: center;
    padding-right: 0;
}

/* Large laptop and up: keep hero headline on a single line */
@media (min-width: 1100px) {
  .hero-copy { white-space: nowrap; }
}

.hero-media {
    position: absolute;
    right: var(--hero-gutter-desktop);
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

/* Phone + badges wrapper in flow */
.hero-phone-wrap { position: relative; right: auto; bottom: auto; z-index: 10; line-height: 0; }

.hero-phone {
    position: static;
    display: block; /* remove inline baseline gap so bottom aligns exactly */
    width: var(--hero-phone-xl);
    height: auto;
    filter: none;
}

.hero-badges { position: static; transform: none; left: auto; bottom: auto; display: flex; gap: 12px; justify-content: center; margin-bottom: var(--badge-gap-desktop); z-index: 11; width: var(--hero-phone-xl); }

.store-badge img {
    height: 44px;
    width: auto;
}

/* ===== Solo Shift Section ===== */
.solo-shift {
    background-color: var(--color-white);
    padding: 100px 0 80px 0;
}

.solo-shift-container {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.solo-shift-left {
    flex: 0 0 auto;
}

/* Solo shift headline now uses global h1; keep left alignment */
.solo-shift .solo-shift-left h1 { text-align: left; }

.solo-shift-arrow {
    width: 100px;
    height: auto;
    margin-top: 50px;
    margin-left: 140px;
}

.solo-shift-right {
    flex: 1;
    padding-top: var(--solo-shift-right-offset-desktop);
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.solo-shift-subhead {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 16px;
}

.solo-shift-text {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 24px;
}

.btn-purple {
    display: inline-block;
    background-color: var(--color-purple-main);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 9999px;
    text-decoration: none;
    margin-top: 8px;
}

/* Right-column button aligns to the right on desktop */
.solo-shift-right .btn-purple {
    align-self: flex-end;
    margin-bottom: 30px;
}

.btn-purple:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* ===== Stats Section ===== */
.stats {
    background-color: var(--color-stats-bg);
    padding: 80px 0; /* 80px above heading and below cards */
    min-height: auto;
    display: block;
}

/* Heading above stats cards */
.stats-heading {
    /* rely on global h2 styles for font size */
    margin-bottom: 24px;
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: var(--stats-gap-desktop);
}

.stat-item {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Card treatment for each stat */
.stat-card {
    width: 300px;
    height: 350px;
    padding: 40px 24px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* vertical centering */
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading-sans);
    font-size: var(--stat-number-desktop);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.2px;
    color: var(--color-black);
    white-space: nowrap;
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-body);
    font-size: var(--stat-label-desktop);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text);
    margin-top: 16px;
}

.stat-desc {
    font-family: var(--font-body);
    font-size: var(--stat-desc-desktop);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    margin: 20px auto 0;
    max-width: var(--stat-desc-max);
}

/* ===== Caregiving Partner Section ===== */
.caregiving-partner {
    background-color: var(--color-white);
    /* 80px gap from stats to top of lavender card */
    padding: 80px 0 80px 0;
}

.partner-card {
    background-color: var(--color-card-bg);
    border-radius: 20px;
    display: flex;
    width: 100%;
    height: 800px; /* desktop height */
    overflow: hidden;
    margin-top: 0; /* spacing handled by .caregiving-partner top padding */
}

.partner-image {
    flex: 0 0 55%;
    background-color: var(--color-card-bg);
    display: flex;
    align-items: center;      /* vertically center the illustration */
    justify-content: flex-start;
    padding: 24px;
}

.partner-content {
    flex: 0 0 45%;
    padding: 90px 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-pill {
    display: inline-block;
    background-color: var(--color-purple-light);
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    width: fit-content;
}

.partner-headline {
    font-family: var(--font-heading-sans);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-black);
    margin-bottom: 20px;
    max-width: 320px;
    text-align: left; /* override global h2 centering */
}

.partner-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 32px;
    max-width: 400px;
}

.btn-try-free {
    display: inline-block;
    background-color: var(--color-btn-secondary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 9999px;
    text-decoration: none;
    width: fit-content;
}



.btn-try-free:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* ===== Share Responsibility Section ===== */
.share-responsibility {
    background-color: var(--color-white);
    padding: 0 0 80px 0; /* 80px space below card; 0 above to keep 80px between cards */
}

/* Match hero width and gutters for feature cards */
.caregiving-partner .container,
.share-responsibility .container,
.capture-section .container,
.meds-section .container,
.remember-section .container {
    max-width: calc(var(--container-max) + var(--hero-extra-width));
    padding: 0 var(--hero-gutter-desktop); /* restore desktop gutters */
}

/* Desktop-only extra left padding for the first purple card */
/* removed extra desktop-only left padding for partner card */

.responsibility-card {
    background-color: var(--color-card-bg);
    border-radius: 20px;
    display: flex;
    width: 100%;
    height: 800px; /* desktop height */
    overflow: hidden;
}

.responsibility-content {
    flex: 0 0 45%;
    padding: 90px 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.responsibility-image {
    flex: 0 0 55%;
    background-color: var(--color-card-bg);
    position: relative;
    display: flex;
    align-items: center;        /* vertically center illustration */
    justify-content: flex-end;  /* bias artwork to the right */
    padding: 24px 32px 24px 24px; /* extra right padding */
}

/* Baseline feature graphic sizing */
.feature-graphic {
    width: min(1000px, 100%);
    height: auto;
    object-fit: contain;
}

.responsibility-pill {
    display: inline-block;
    background-color: var(--color-purple-light);
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    width: fit-content;
}

.responsibility-headline {
    font-family: var(--font-heading-sans);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-black);
    margin-bottom: 20px;
    max-width: 320px;
    text-align: left; /* override global h2 centering */
}

.responsibility-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 32px;
    max-width: 400px;
}

/* ===== Capture Section ===== */
.capture-section {
    background-color: var(--color-white);
    padding: 0 0 80px 0; /* maintain 80px gap between cards */
}

.capture-card {
    background-color: var(--color-card-bg);
    border-radius: 20px;
    display: flex;
    width: 100%;
    height: 800px; /* desktop height */
    overflow: hidden;
}

.capture-image {
    flex: 0 0 55%;
    background-color: var(--color-card-bg);
    display: flex;
    align-items: center;       /* vertically center illustration */
    justify-content: flex-start;
    padding: 24px;
}

.capture-content {
    flex: 0 0 45%;
    padding: 90px 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.capture-pill {
    display: inline-block;
    background-color: var(--color-purple-light);
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    width: fit-content;
}

.capture-headline {
    font-family: var(--font-heading-sans);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-black);
    margin-bottom: 20px;
    max-width: 380px;
    text-align: left; /* override global h2 centering */
}

.capture-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 32px;
    max-width: 400px;
}

/* ===== Meds Section ===== */
.meds-section {
    background-color: var(--color-white);
    padding: 0 0 80px 0;
}

.meds-card {
    background-color: var(--color-card-bg);
    border-radius: 20px;
    display: flex;
    width: 100%;
    height: 800px; /* desktop height */
    overflow: hidden;
}

.meds-content {
    flex: 0 0 45%;
    padding: 90px 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.meds-image {
    flex: 0 0 55%;
    background-color: var(--color-card-bg);
    display: flex;
    align-items: center;        /* vertically center illustration */
    justify-content: flex-end;  /* bias to the right */
    padding: 24px 32px 24px 24px;
}

.meds-pill {
    display: inline-block;
    background-color: var(--color-purple-light);
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    width: fit-content;
}

.meds-headline {
    font-family: var(--font-heading-sans);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-black);
    margin-bottom: 20px;
    max-width: 320px;
    text-align: left; /* override global h2 centering */
}

.meds-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 32px;
    max-width: 400px;
}

/* ===== Remember Section ===== */
.remember-section {
    background-color: var(--color-white);
    padding: 0 0 80px 0;
}

.remember-card {
    background-color: var(--color-card-bg);
    border-radius: 20px;
    display: flex;
    width: 100%;
    height: 800px; /* desktop height */
    overflow: hidden;
}

.remember-image {
    flex: 0 0 55%;
    background-color: var(--color-card-bg);
    display: flex;
    align-items: center;      /* vertically center illustration */
    justify-content: flex-start;
    padding: 24px;
}

.remember-content {
    flex: 0 0 45%;
    padding: 90px 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.remember-pill {
    display: inline-block;
    background-color: var(--color-purple-light);
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    width: fit-content;
}

.remember-headline {
    font-family: var(--font-heading-sans);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-black);
    margin-bottom: 20px;
    max-width: 320px;
    text-align: left; /* override global h2 centering */
}

.remember-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 32px;
    max-width: 400px;
}

/* ===== See More Section ===== */
.see-more {
    background-color: var(--color-stats-bg);
    min-height: 288px;
    display: flex;
    align-items: center;
}

.see-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.see-more-headline { /* uses global h2 styles */ }

.btn-more {
    display: inline-block;
    background-color: var(--color-purple-main);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 9999px;
    text-decoration: none;
}

.btn-more:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* ===== Quotes Section ===== */
.quotes {
    background-color: var(--color-purple-main);
    min-height: 288px;
    display: flex;
    align-items: center;
}

.quotes-container {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.quote-card {
    background-color: #F5F5F5;
    border-radius: 16px;
    padding: 30px;
    min-width: 300px;
    min-height: 250px;
}

/* ===== Keep on Top Section ===== */
.keep-on-top {
    background-color: #FFFFFF;
    min-height: 612px;
    display: flex;
    align-items: center;
}

.keep-on-top-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.keep-on-top-phone {
    flex: 0 0 auto;
}

.keep-on-top-phone img {
    width: 280px;
    height: auto;
    filter: none;
}

.keep-on-top-content {
    flex: 1;
}

/* removed: .keep-on-top-headline — use global h2 */

.keep-on-top-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-black);
    margin-bottom: 24px;
    max-width: 500px;
}

.keep-on-top-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.keep-on-top-badges .store-badge img {
    height: 44px;
    width: auto;
}

/* Alt tooltip approach: explicit sibling element next to App Store badge (generalized) */
.badge-wrapper { position: relative; display: inline-block; }
.badge-wrapper .soon-tooltip {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(10px, -50%);
    background: #5A4FCF;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: auto; /* allow clicking links inside tooltip */
    transition: opacity .15s ease-in-out;
    z-index: 10;
}

/* Position hero badge tooltip above the App Store badge */
.hero-badges .badge-wrapper .soon-tooltip {
    top: auto;
    bottom: 120%;
    left: 50%;
    transform: translate(-50%, 0);
}

/* Position download page tooltip above the App Store badge */
.download-badges .badge-wrapper .soon-tooltip {
    top: auto;
    bottom: 120%;
    left: 50%;
    transform: translate(-50%, 0);
}
.badge-wrapper:hover .soon-tooltip,
.badge-wrapper:focus-within .soon-tooltip,
.badge-wrapper.show .soon-tooltip { opacity: 1; }
.badge-wrapper a[aria-disabled="true"] { cursor: not-allowed; }

/* Hide pseudo-element tooltip when using explicit tooltip wrapper */
.badge-wrapper .soon-badge::after { content: none; }

.badge-wrapper .soon-tooltip a {
    color: #fff;
    text-decoration: underline;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--color-stats-bg);
    padding: 60px 0 40px 0;
}

/* Footer: left-justify all section headers */
.site-footer h4 { text-align: left; }

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ensure logo and tagline align left */
}

.footer-logo {
    height: 75px;          /* match header logo height */
    width: auto;
    margin-bottom: 12px;
    display: block;        /* remove inline whitespace */
    margin-left: 0;        /* align exactly with container left edge */
}

/* Footer logo responsive sizes to match header */
@media (max-width: 1024px) {
  .site-footer .footer-logo { height: 64px; }
}
@media (max-width: 768px) {
  .site-footer .footer-logo { height: 56px; }
}

/* Global line-height normalization for v2: apply 1.4 to text elements */
h1, h2, h3, h4, h5, h6,
p, li, dd, dt,
blockquote, figcaption,
a, small, em, strong {
    line-height: 1.4 !important;
}

.footer-tagline {
    font-family: var(--font-heading-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-black);
}

.footer-nav {
    display: flex;
    gap: 80px;
}

.footer-nav-col h4 {
    font-family: var(--font-heading-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 16px;
}

.footer-nav-col ul {
    list-style: none;
}

.footer-nav-col li {
    margin-bottom: 8px;
}

.footer-nav-col a {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--color-black);
    text-decoration: none;
}

.footer-nav-col a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    padding-top: 60px;
}

.footer-social h4 {
    font-family: var(--font-heading-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-black);
}

/* Footer social icons */
.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    align-items: center;
}

.footer-social-icons a img {
    display: block;
    height: 28px;
    width: auto;
}

.footer-newsletter h4 {
    font-family: var(--font-heading-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 8px;
}

.footer-newsletter > p {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-black);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.newsletter-name-row {
    display: flex;
    gap: 12px;
}

.newsletter-email-row {
    display: flex;
    gap: 12px;
}

.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
    flex: 1;
    height: 38px;
    border: 2px solid var(--color-black);
    border-radius: 4px;
    padding: 0 12px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
}

.newsletter-form input[type="text"] {
    max-width: 165px;
}

.newsletter-form input[type="email"] {
    max-width: 342px;
}

.newsletter-message {
    font-family: var(--font-body);
    font-size: 16px;
    margin-bottom: 8px;
}

.newsletter-message.success {
    color: #2e7d32;
}

.newsletter-message.error {
    color: #c62828;
}

.btn-signup-footer {
    background-color: var(--color-purple-main);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    padding: 10px 20px; /* match primary buttons */
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-block;
    width: fit-content;
    line-height: 1; /* keep height consistent with anchor buttons */
}

.btn-signup-footer:hover {
    opacity: 0.9;
}

.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.newsletter-consent input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.newsletter-consent label {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-black);
    cursor: pointer;
}

.privacy-note {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-black);
}

/* Ensure privacy note stays 14px despite more general footer newsletter p rule */
.footer-newsletter > p.privacy-note {
    font-size: 16px;
}

.privacy-note a {
    color: var(--color-purple-main);
}

.footer-copyright {
    text-align: left;
}

.footer-copyright p {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-black);
}

/* ===== Layout ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* No generic container inside promo banner; spacing handled by .promo-container */

section {
    padding: var(--section-padding) 0;
}

section.alt-bg {
    background-color: var(--color-gray-light);
}

section.purple-bg {
    background-color: var(--color-purple-main);
    color: var(--color-white);
}

section.purple-bg h1,
section.purple-bg h2,
section.purple-bg h3 {
    color: var(--color-white);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    background-color: var(--color-cta);
    color: var(--color-text);
    font-family: var(--font-body);
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* ===== Button Variants (Consolidated) ===== */
/* Primary purple family: shared base */
.btn-signup,
.btn-purple,
.btn-more,
.btn-signup-footer,
.btn-trust,
.app-promo__button {
    display: inline-block;
    background-color: var(--color-purple-main);
    color: var(--color-white);
    font-family: var(--font-body);
    border-radius: 9999px;
    text-decoration: none;
}

/* Primary purple: medium size (common) */
.btn-signup,
.btn-purple,
.btn-more {
    font-size: 20px;
    font-weight: 400;
    padding: 10px 20px;
}

/* Preserve minor per-class tweaks */
.btn-purple { margin-top: 8px; }

/* Footer signup button (button element specifics) */
.btn-signup-footer {
    font-size: 20px;
    font-weight: 400;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    line-height: 1;
    width: fit-content;
}

/* Trust (slightly smaller purple) */
.btn-trust {
    font-size: 18px;
    font-weight: 400;
    padding: 12px 28px;
}

/* App promo button (narrow padding) */
.app-promo__button {
    font-size: 20px;
    padding: 10px 16px;
}

/* Secondary purple family */
.btn-try-free,
.btn-learn-more {
    display: inline-block;
    background-color: var(--color-btn-secondary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 400;
    border-radius: 9999px;
    text-decoration: none;
}

/* Secondary sizes */
.btn-try-free { font-size: 20px; padding: 10px 20px; }
.btn-learn-more { font-size: 18px; padding: 10px 24px; }

/* ===== Cards ===== */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.card.alt {
    background-color: var(--color-gray-light);
}

/* ===== Forms ===== */
/* Remove shadows from stat cards specifically */
.card.stat-card { box-shadow: none; }
input, textarea, select {
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border: 1px solid #8b7dd8;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    .product-tabs-section { margin-bottom: 80px; }
    .feature-cards-section {
        --feature-card-padding: 30px;
        padding-top: calc(80px + 107px + var(--feature-card-padding));
    }
    /* reverted extra top padding above overlays */
    .container {
        padding: 0 var(--container-padding-tablet);
    }

    /* Promo banner spacing controlled by .promo-container */
    .promo-container { padding: 0 20px; }

    /* Header container gutters (tablet) */
    .site-header .container {
        padding: 0 20px;
    }

    /* Feature sections match hero gutters on tablet */
    .caregiving-partner .container,
    .share-responsibility .container,
    .capture-section .container,
    .meds-section .container,
    .remember-section .container {
        padding: 0 var(--hero-gutter-tablet);
    }

    /* removed tablet override for partner card padding */

    /* Header logo sizing (tablet) */
    .site-header .logo img {
        height: 64px;
    }

    /* Hero gutters (tablet) */
    .hero-image-wrapper { padding: 0 var(--hero-gutter-tablet); }
    .hero-grid { padding: 0 var(--hero-gutter-tablet); }

    /* keep clamp sizing; remove fixed 56px override */

    .hero-copy { position: absolute; top: 8%; left: 0; right: 0; transform: none; max-width: var(--hero-copy-max-lg); text-align: center; padding-right: 0; }
    .hero-media { right: var(--hero-gutter-tablet); padding-right: 30px; }
    /* phone/badges widths handled by narrower breakpoint rules below */

    .solo-shift-container {
        gap: 40px;
    }

    /* removed: tablet font-size override for .solo-shift-headline */

    .stats-container {
        justify-content: center;
        gap: var(--stats-gap-tablet);
        flex-wrap: wrap;
        row-gap: 32px;
    }

    .stat-number {
        font-size: var(--stat-number-tablet);
    }

    .stat-label {
        font-size: var(--stat-label-tablet);
    }

    .stat-desc {
        font-size: var(--stat-desc-tablet);
    }

    /* Allow flexible card widths on tablet for wrapping */
    .stat-item { flex: 1 1 300px; }

    .partner-card,
    .responsibility-card,
    .capture-card,
    .meds-card,
    .remember-card {
        min-height: auto;
        height: auto; /* override fixed desktop height */
    }

    /* Tablet: use unified spacing variable on the section */
    .caregiving-partner { padding: 80px 0 80px 0; }

    /* Share responsibility image breathing room on tablet */
    .responsibility-image { padding: 20px 24px; }

    .partner-headline,
    .responsibility-headline,
    .capture-headline,
    .meds-headline,
    .remember-headline {
        font-size: 32px;
    }

    /* removed: .keep-on-top-headline tablet override */

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav {
        width: 100%;
    }
}

@media (max-width: 1099px) {
    .hero-grid { padding: 0 var(--hero-gutter-tablet); }
    .hero-copy { max-width: var(--hero-copy-max-md); }
    .hero-media { right: var(--hero-gutter-tablet); padding-right: 30px; }
}

/* 1099–769px: keep headline single-line and add extra right padding near phone */
@media (max-width: 1099px) and (min-width: 769px) {
  .hero-copy { white-space: nowrap; max-width: none; }
  /* headline size handled by ≤1024px rule below */
  .hero-media { padding-right: 60px; }
}

/* New phone sizing breakpoints
   ≥1200px: 448px (base)
   1199px–1000px: 300px
   999px–769px: 225px
   ≤768px: 225px (existing mobile rule) */
/* 1249–1100px: large laptop */
/* 1439–1200px: large laptop */
@media (max-width: 1439px) and (min-width: 1200px) {
  .hero-phone { width: var(--hero-phone-lg); }
  .hero-badges { width: var(--hero-phone-lg); }
}

/* 1199–1025px: laptop */
@media (max-width: 1199px) and (min-width: 1025px) {
  .hero-phone { width: 320px; }
  .hero-badges { width: 320px; }
}

/* 1024–951px: tablet large */
@media (max-width: 1024px) and (min-width: 951px) {
  .hero-phone { width: 300px; }
  .hero-badges { width: 300px; }
}

/* 950–851px: tablet small */
@media (max-width: 950px) and (min-width: 851px) {
  .hero-phone { width: 280px; }
  .hero-badges { width: 280px; }
}

/* ≤850px: mobile + small tablet — hide phone; hide badges */
@media (max-width: 850px) {
  .hero-phone { display: none; }
  .hero-badges { display: none; }
}




/* ≤768px: mobile */
@media (max-width: 768px) {
    /* Mobile: center the solo-shift headline */
    .solo-shift .solo-shift-left h1 { text-align: center; }
    .product-tabs-section { margin-bottom: 80px; }
    .feature-cards-section {
        --feature-card-padding: 24px;
        padding-top: calc(80px + 107px + var(--feature-card-padding));
    }
    html {
        font-size: 16px;
    }

    .container {
        padding: 0 var(--container-padding-mobile);
    }

    /* Promo banner spacing controlled by .promo-container */
    .promo-container { padding: 0 16px; }

    /* Header container gutters (mobile) */
    .site-header .container {
        padding: 0 16px;
    }

    /* Feature sections match hero gutters on mobile */
    .caregiving-partner .container,
    .share-responsibility .container,
    .capture-section .container,
    .meds-section .container,
    .remember-section .container {
        padding: 0 var(--hero-gutter-mobile);
    }

    /* removed mobile override for partner card padding */

    /* Mobile: use unified spacing variable on the section */
    .caregiving-partner { padding: 80px 0 80px 0; }

    /* Header - Stack Navigation */
    .site-header { position: relative; z-index: 1000; }
    .header-container { flex-wrap: nowrap; gap: 8px; }
    .logo { margin-right: auto; width: auto; text-align: left; }

    /* Header logo sizing (mobile) */
    .site-header .logo img {
        height: 56px;
    }

    /* Show hamburger */
    .nav-toggle { display: inline-block; }

    /* Collapsed navigation panel */
    .primary-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        display: none;
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px 16px;
        border-top: 1px solid #eee;
        box-shadow: 0 6px 20px rgba(0,0,0,0.08);
        z-index: 1001;
    }

    .primary-navigation[data-open="true"] { display: flex; }

    .main-nav { width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 12px; margin: 0; margin-right: 0; }
    .main-nav a { font-size: 20px; }
    .btn-signup { width: 100%; text-align: center; }

    .btn-signup { width: 100%; text-align: center; }

    /* Hero: keep clamp sizing; no mobile override */

    /* Mobile: place headline above the image */
    .hero-image-wrapper { display: flex; flex-direction: column; align-items: center; }
    .hero-grid { position: static; inset: initial; display: flex; flex-direction: column; align-items: center; padding: 0 var(--hero-gutter-mobile); order: -1; }
    .hero-copy { position: static; top: auto; left: auto; right: auto; transform: none; text-align: center; max-width: 100%; padding-right: 0; }
    .hero-media { position: absolute; right: var(--hero-gutter-mobile); bottom: 0; justify-content: flex-end; align-items: center; padding-right: 30px; }

    /* Hero gutters (mobile) */
    .hero-image-wrapper { padding: 0 var(--hero-gutter-mobile); }

    .store-badge img {
        height: 36px;
    }

    /* Solo Shift - Stack */
    .solo-shift {
        padding: 40px 0 40px 0;
    }

    .solo-shift-container {
        flex-direction: column;
        text-align: center;
    }

    /* Remove extra top padding above the paragraph on mobile */
    .solo-shift-right { padding-top: 0; }

    /* Hide decorative arrow on mobile to prevent extra vertical gap */
    .solo-shift-arrow { display: none; }

    .solo-shift-left,
    .solo-shift-right {
        width: 100%;
    }

    /* Hide the Solo Shift headline on mobile */
    .solo-shift-left h1 { display: none; }

    .solo-shift-headline {
        font-size: 36px;
    }

    .solo-shift-arrow {
        display: none !important;
    }

    .solo-shift-right {
        align-items: center;
        text-align: center;
        padding-top: var(--solo-shift-right-offset-mobile);
    }

    /* On mobile, center the CTA under the text */
    .solo-shift-right .btn-purple {
        align-self: center;
    }

    /* Stats - Stack */
    .stats {
        min-height: auto;
        padding: 80px 0;
    }

    .stats-container {
        flex-direction: column;
        gap: var(--stats-gap-mobile);
    }

    .stat-number {
        font-size: var(--stat-number-mobile);
    }

    .stat-label {
        font-size: var(--stat-label-mobile);
    }

    .stat-desc {
        font-size: var(--stat-desc-mobile);
    }

    .stat-item { flex: none; width: 100%; }

    /* Feature Cards - Stack */
    .partner-card,
    .responsibility-card,
    .capture-card,
    .meds-card,
    .remember-card {
        flex-direction: column;
        min-height: auto;
    }

    .partner-image,
    .responsibility-image,
    .capture-image,
    .meds-image,
    .remember-image {
        flex: none;
        height: auto;
        min-height: 200px;
    }

    /* Center the share responsibility artwork on mobile */
    .responsibility-image {
        justify-content: center;
        padding: 20px;
    }

    .partner-content,
    .responsibility-content,
    .capture-content,
    .meds-content,
    .remember-content {
        flex: none;
        padding: 30px 20px;
    }

    .partner-headline,
    .responsibility-headline,
    .capture-headline,
    .meds-headline,
    .remember-headline {
        font-size: 28px;
        max-width: none;
        text-align: center; /* center h2s on mobile */
    }

    .partner-text,
    .responsibility-text,
    .capture-text,
    .meds-text,
    .remember-text {
        max-width: none;
    }

    /* On mobile, place text above image for right-image desktop cards */
    .responsibility-card,
    .meds-card {
        flex-direction: column;
    }

    /* On mobile, place text above image for left-image desktop cards */
    .partner-card,
    .capture-card,
    .remember-card {
        flex-direction: column-reverse;
    }

    /* See More */
    .see-more {
        min-height: auto;
        padding: 40px 0;
    }

    .see-more-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .see-more-headline {
        font-size: 28px;
    }

    /* Center all Get started buttons under card text on mobile */
    .partner-content .btn-try-free,
    .responsibility-content .btn-try-free,
    .capture-content .btn-try-free,
    .meds-content .btn-try-free,
    .remember-content .btn-try-free {
        align-self: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Quotes */
    .quotes {
        min-height: auto;
        padding: 40px 0;
    }

    .quotes-container {
        flex-direction: column;
        gap: 20px;
    }

    /* Keep on Top - Stack */
    .keep-on-top {
        min-height: auto;
        padding: 40px 0;
    }

    .keep-on-top-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .keep-on-top-phone img {
        max-width: 200px;
    }

    /* removed: .keep-on-top-headline mobile override */

    .keep-on-top-badges {
        justify-content: center;
    }

    /* Footer */
    .footer-bottom {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-name-row,
    .newsletter-email-row {
        flex-direction: column;
    }

    .newsletter-form input[type="text"],
    .newsletter-form input[type="email"] {
        max-width: 100%;
        width: 100%;
    }

    /* Footer signup: use full-width mobile button */
    .btn-signup-footer { width: 100%; text-align: center; display: inline-block; }
}

/* ≤600px: promo micro-breakpoint */
@media (max-width: 600px) {
  .promo-container { flex-direction: column; align-items: center; gap: 8px; }
  .promo-text { text-align: center; }
}

/* ===== Explore Page Styles ===== */

/* Explore Hero Section */
.explore-hero {
    background-color: var(--color-white);
    padding: 80px 0 0 0;
    text-align: center;
}

/* Removed section-specific hero title sizing; rely on global h1 */

.explore-hero-subtitle {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.explore-hero-subtitle .highlight {
    color: var(--color-purple-main);
    font-weight: 600;
}

.explore-hero-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    max-width: 780px;
    margin: 0 auto;
}

/* Ella Partner Section */
.ella-partner-section {
    background-color: var(--color-white);
    padding: 60px 0 80px 0;
}

/* removed: .ella-partner-title — use global h2 */

/* Feature Step Cards */
.feature-step {
    background-color: var(--color-card-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 60px;
    margin-bottom: 40px;
    gap: 60px;
}

.feature-step:last-child {
    margin-bottom: 0;
}

.step-content {
    flex: 1;
    max-width: 500px;
}

.step-number {
    margin-bottom: 20px;
}

.step-number img {
    width: 60px;
    height: 60px;
}

.step-headline {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 16px;
}

.step-headline-bold {
    font-weight: 600;
}

.step-text {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 24px;
}

.btn-learn-more {
    display: inline-block;
    background-color: var(--color-btn-secondary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    padding: 10px 24px;
    border-radius: 9999px;
    text-decoration: none;
}

.btn-learn-more:hover {
    opacity: 0.9;
    text-decoration: none;
}

.step-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-graphic {
    max-width: 340px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Step image grid for multiple small images */
.step-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 420px;
}

.step-graphic-small {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Step image stack for vertically stacked cards */
.step-image-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 380px;
}

.step-graphic-card {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Help Tabs Section */
.help-tabs-section {
    background-color: var(--color-white);
    padding: 60px 0;
    text-align: center;
}

/* removed: .help-tabs-title — use global h2 */

.help-tabs {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Removed deprecated .help-tab boxed styles in favor of .help-tab-link */

/* Help tab links - text style with underline */
.help-tab-link {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    color: #5A4FCF;
    text-decoration: none;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.help-tab-link:hover {
    color: var(--color-purple-main);
    text-decoration: none;
}

.help-tab-link.active {
    color: var(--color-purple-main);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Ready CTA Section */
.ready-cta-section {
    background-color: var(--color-purple-main);
    padding: 80px 0;
    text-align: center;
}

.ready-cta-title {
    font-family: var(--font-heading-sans);
    font-size: 48px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 56px;
}

.btn-cta-yellow {
    display: inline-block;
    background-color: var(--color-cta);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 9999px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.btn-cta-yellow:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* Purple variant of CTA button (same size, purple background) */
.btn-cta--purple {
    background-color: var(--color-purple-main);
    color: var(--color-white);
}

.btn-cta--purple:hover {
    color: var(--color-white);
    opacity: 0.9;
    text-decoration: none;
}

/* Trust Section */
.trust-section {
    background-color: var(--color-white);
    padding: 80px 0;
    text-align: center;
}

/* removed: .trust-title — use global h2 */

.trust-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto 32px auto;
}

.btn-trust {
    display: inline-block;
    background-color: var(--color-purple-main);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    padding: 12px 28px;
    border-radius: 9999px;
    text-decoration: none;
}

.btn-trust:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* ===== Explore Page Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    /* Removed section-specific tablet override for explore hero h1 */

    .explore-hero-subtitle { font-size: 28px; }

    /* removed override: keep 20px on tablet */

    /* removed: tablet override for .ella-partner-title */

    .feature-step {
        padding: 40px;
        gap: 40px;
    }

    .step-headline {
        font-size: 28px;
    }

    /* removed: tablet override for .help-tabs-title */

    .ready-cta-title {
        font-size: 44px;
        margin-bottom: 52px;
    }

    /* removed: tablet override for .trust-title */
}

/* Mobile */
@media (max-width: 768px) {
    .explore-hero { padding: 60px 0 0 0; }

    /* Removed section-specific mobile override for explore hero h1 */

    .explore-hero-subtitle { font-size: 28px; }
    .explore-hero-subtitle br { display: none; }

    /* removed override: keep 20px on mobile */

    .ella-partner-section {
        padding: 40px 0 60px 0;
    }

    /* removed: mobile override for .ella-partner-title */

    .feature-step {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .step-content {
        max-width: none;
        text-align: center;
    }

    .step-number {
        display: flex;
        justify-content: center;
    }

    .step-headline {
        font-size: 24px;
    }

    .step-text {
        font-size: 16px;
    }

    .step-image {
        width: 100%;
    }

    .step-graphic {
        max-width: 250px;
    }

    .step-image-grid {
        max-width: 300px;
        margin: 0 auto;
    }

    .help-tabs-section {
        padding: 40px 0;
    }

    /* removed: mobile override for .help-tabs-title */

    .help-tabs {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    /* Removed deprecated .help-tab responsive styles */

    .ready-cta-section {
        padding: 60px 0;
    }

    .ready-cta-title {
        font-size: 40px;
        margin-bottom: 44px;
    }

    .btn-cta-yellow {
        font-size: 20px;
        padding: 12px 28px;
    }

    .trust-section {
        padding: 60px 0;
    }

    /* removed: mobile override for .trust-title */

    .trust-text {
        font-size: 20px;
    }

    .btn-trust {
        font-size: 20px;
    }
}

/* Active state for nav links */
.main-nav a.active {
    color: var(--color-purple-main);
    font-weight: 500;
}

/* ===== Collects Page Styles ===== */

/* Collects Hero Section - Compact */
.collects-hero {
    background-color: var(--color-white);
    padding: 80px 0 0 0;
    text-align: center;
}

/* collects hero now uses global h1 */

.collects-hero-subtitle {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.collects-hero-subtitle strong {
    font-weight: 600;
}

.collects-hero-subtitle .highlight {
    color: var(--color-purple-main);
    font-weight: 600;
}

/* Product Tabs Section - Below Hero */
.product-tabs-section {
    background-color: var(--color-white);
    padding: 0 0 40px 0;
    margin-bottom: 80px;
    text-align: center;
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
}

.product-tab-link {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-black);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.product-tab-link:hover {
    color: var(--color-purple-main);
    text-decoration: none;
}

.product-tab-link.active {
    color: var(--color-purple-main);
    font-size: 20px;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

/* Feature Cards Section */
.feature-cards-section {
    background-color: var(--color-white);
    padding: 40px 0 80px 0;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
    row-gap: 187px;
}

.feature-card {
    background-color: var(--color-card-bg);
    border-radius: 20px;
    --feature-card-padding: 32px;
    padding: var(--feature-card-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: visible;
}

/* Remove colored backdrop for specific cards */
.feature-card.no-backdrop { background-color: transparent; }
/* Force alt backdrop on demand */
.feature-card.bg-alt { background-color: var(--color-card-bg-alt); }
/* Force default backdrop on demand */
.feature-card.bg-primary { background-color: var(--color-card-bg); }

/* Alternate background colors per card down the page */
.feature-cards-grid .feature-card:nth-child(odd) { background-color: var(--color-card-bg-alt); }
.feature-cards-grid .feature-card:nth-child(even) { background-color: var(--color-card-bg); }
/* (reverted explicit override rules) */

/* Overlay panel for card copy */
.feature-card-overlay {
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 30px 40px 40px 40px;
    width: 378px;
    height: 214px;
    border: 4px solid #D9D9D9;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: left;
    align-items: flex-start;
    position: relative;
    top: 0; /* use flow-based offset to avoid phantom gap */
    margin-top: calc(-107px - var(--feature-card-padding));
    z-index: 1;
}

/* Inner copy block sizing and spacing */
.feature-card-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 298px;
    height: 134px;
    padding: 0;
}

/* Illustration area */
.feature-card-illustration {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.feature-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* (meds-crop removed; using clean image asset) */

/* Legacy content wrapper replaced by .feature-card-overlay */
.feature-card-content { display: contents; }

.feature-card-title {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--color-black);
    margin-bottom: 12px;
}

.feature-card-text {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 0;
}

/* Legacy image wrapper replaced by .feature-card-illustration */
.feature-card-image { display: contents; }

.feature-card-image > img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Remembers: Ask Ella image sizing */
.card-ask-ella .feature-screenshot {
    width: 240px;
    max-width: 100%;
    height: auto;
}

/* Remembers: Get care team updates image sizing */
.card-care-updates .updates-main { width: 210px; height: auto; }
.card-care-updates .updates-secondary { width: 170px; height: auto; }

/* Remembers: Medication information — make overlay touch the image (no gap) */
.card-meds { gap: 0; }

/* Remove image drop shadows on pillar pages (collects, remembers, shares) */
.collects-hero ~ .feature-cards-section .feature-screenshot,
.collects-hero ~ .feature-cards-section .overlap-img,
.collects-hero ~ .feature-cards-section .chat-stack-img {
    box-shadow: none !important;
}
/* (Tightened) Only remove shadows from feature card images on pillar pages */

/* Collects page: fine-tune first card screenshot sizing/alignment */
.collects-hero ~ .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) .feature-screenshot {
    width: 320px;
    max-width: 100%;
    height: auto;
}
@media (max-width: 1024px) {
  .collects-hero ~ .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) .feature-screenshot {
      width: 300px;
  }
}
@media (max-width: 768px) {
  .collects-hero ~ .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) .feature-screenshot {
      width: 260px;
  }
}

/* Collects page: fixed card background size on desktop */
@media (min-width: 1025px) {
  .collects-hero ~ .feature-cards-section .feature-cards-grid {
      grid-template-columns: repeat(2, 500px);
      justify-content: center;
  }
  .collects-hero ~ .feature-cards-section .feature-card {
      width: 500px;
      height: 558px; /* colored background size */
  }
  /* Tighten spacing between overlay and image on first card */
  .collects-hero ~ .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) { gap: 40px; }
  .collects-hero ~ .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) .feature-card-illustration { margin-top: 0; align-items: center; }
  /* First card overlay sizing/alignment to match reference */
  .collects-hero ~ .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) .feature-card-overlay {
      width: 378px;
      height: 214px;
      padding: 30px 40px 40px 40px;
      top: 0; /* flow-based */
      margin-top: calc(-107px - var(--feature-card-padding));
  }
  .collects-hero ~ .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) .feature-card-copy {
      width: 298px;
      height: 134px;
  }

  /* Remembers page: Card 6 (Medication information) image alignment */
  .collects-hero ~ .feature-cards-section .feature-cards-grid > .feature-card:nth-child(6) .feature-card-illustration {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: 0;
  }
  /* Ensure no extra gap on desktop */
  .card-meds { gap: 0; }
}

/* Chat Stack - Cascading chat screenshots diagonal layout */
.feature-card-image-stack {
    position: relative;
    min-height: 430px; /* allow for 10px vertical gaps across stack */
    width: 100%;
}

.chat-stack-img {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-stack-1 { top: 0; left: 0; z-index: 1; }
.chat-stack-2 { top: 66px; right: 0; z-index: 2; }
.chat-stack-3 { top: 152px; left: 0; z-index: 3; }
.chat-stack-4 { top: 257px; right: 0; z-index: 4; }
  .chat-stack-5 { top: 322px; left: 0; z-index: 5; }

  /* Overlap Images - For notes/docs and event updates cards */
  .feature-card-image-overlap {
      position: relative;
      min-height: 320px;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
  }

/* Force zero gap between the two product images in the Meds card at all breakpoints */
.card-meds .feature-card-image-overlap { gap: 0; }
/* Eliminate any residual inline spacing and pull the second image up
   to neutralize transparent padding inside the asset if present. */
.card-meds .feature-card-image-overlap img { display: block; }
.card-meds .overlap-secondary-bottom { margin-top: -30px; }

.overlap-img {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.overlap-main {
    z-index: 1;
}

.overlap-secondary {
    z-index: 2;
}

  .overlap-secondary-bottom {
      z-index: 2;
  }

/* Shares page – Card 1 (Identify care team): size and stagger alignment */
.page-shares .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) .feature-card-image-stack {
    min-height: 390px; /* 117px * 3 + 10px * 2 = 371 */
}

/* Shares page – Card 2 (Invite care team): exact size and corner radius */
.page-shares .feature-cards-section .feature-card-illustration img[src$="add-to-care-team.png"] {
    width: 270px;
    height: 370px;
    border-radius: 25px;
}

/* Shares page – Card 3 (Care team information): size + centered stack */
.card-care-team-info .feature-card-image-overlap { gap: 10px; align-items: center; }
/* Primary caregiver card should be on top */
.card-care-team-info .overlap-secondary { width: 240px; height: auto; order: 0; }
/* Two caregivers card should be on bottom */
.card-care-team-info .overlap-main { width: 240px; height: 237px; order: 1; }

/* Shares page – Card 4 (Delegate & remind): exact image sizes */
.page-shares .feature-cards-section .feature-cards-grid > .feature-card:nth-child(4) .overlap-main {
    width: 394px;
    height: 142px;
}
.page-shares .feature-cards-section .feature-cards-grid > .feature-card:nth-child(4) .overlap-secondary-bottom {
    width: 380px;
    height: auto;
}

/* Shares page – Card 6 (Set what care team sees): center three bars with 10px gap */
.page-shares .feature-cards-section .feature-cards-grid > .feature-card:nth-child(6) .feature-card-image-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 360px;
}
.page-shares .feature-cards-section .feature-cards-grid > .feature-card:nth-child(6) .chat-stack-img {
    position: static;
    top: auto; left: auto; right: auto;
    transform: none;
}
.page-shares .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) .chat-stack-img {
    width: 148px;
    height: 117px;
}
.page-shares .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) .chat-stack-1 {
    top: 0;
    right: 0;
    left: auto;
    transform: none;
}
.page-shares .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) .chat-stack-2 {
    top: 127px; /* 117 + 10 gap */
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}
.page-shares .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) .chat-stack-3 {
    top: 254px; /* 117*2 + 10*2 */
    left: 0;
    right: auto;
    transform: none;
}

/* ===== Collects Page Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    /* removed: collects hero title tablet override; uses global h1 */

    .collects-hero-subtitle {
        font-size: 28px;
        line-height: 1.4;
    }

    .feature-cards-grid {
        column-gap: 30px;
        row-gap: 187px;
    }

    .feature-card {
        --feature-card-padding: 30px;
        padding: var(--feature-card-padding);
    }
    /* First card: match 40px gap under overlay */
    .collects-hero ~ .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) { gap: 40px; }
    .collects-hero ~ .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) .feature-card-illustration { margin-top: 0; }
    /* Meds card: no gap between overlay and first image */
    .card-meds { gap: 0; }
}

/* Mobile */
@media (max-width: 768px) {
    /* reverted extra top padding above overlays */
    .collects-hero { padding: 60px 0 0 0; }

    /* removed: collects hero title mobile override; uses global h1 */

    .collects-hero-subtitle {
        font-size: 28px;
        line-height: 1.4;
    }

    .collects-hero-subtitle br {
        display: none;
    }

    .product-tabs-section {
        padding: 0 0 30px 0;
    }

    .product-tabs {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .product-tab-link {
        padding: 10px 0;
    }

    .feature-cards-section {
        padding: 20px 0 60px 0;
    }

    .feature-cards-grid {
        grid-template-columns: 1fr;
        row-gap: 187px;
    }

    .feature-card {
        flex-direction: column;
        --feature-card-padding: 24px;
        padding: var(--feature-card-padding);
        min-height: auto;
        gap: 20px;
        max-width: 340px;
        margin: 0 auto;
    }

    /* Make overlay responsive within narrower card */
    .feature-card-overlay {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 180px;
        padding: 20px 16px 24px 16px;
    }

    /* Make copy block responsive on mobile */
    .feature-card-copy {
        width: 100%;
        height: auto;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Ensure all images scale within card */
    .feature-card img,
    .overlap-img,
    .chat-stack-img {
        max-width: 100%;
        height: auto;
    }
    /* First card: match 40px gap under overlay */
    .collects-hero ~ .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) { gap: 40px; }
    .collects-hero ~ .feature-cards-section .feature-cards-grid > .feature-card:nth-child(1) .feature-card-illustration { margin-top: 0; }
    /* Meds card: no gap between overlay and first image */
    .card-meds { gap: 0; }

    .feature-card-content {
        flex: none;
    }

    .feature-card-title {
        font-size: 24px;
    }

    .feature-card-text {
        font-size: 15px;
    }

    .feature-card-image-stack {
        min-height: 400px; /* accommodate five bubbles with 10px gaps */
    }

    /* Mobile chat stack: 10px vertical gaps, aligned columns */
    .chat-stack-1 { top: 0; left: 0; right: auto; }
    .chat-stack-2 { top: 66px; right: 0; left: auto; }
    .chat-stack-3 { top: 152px; left: 0; right: auto; }
    .chat-stack-4 { top: 257px; right: 0; left: auto; }
    .chat-stack-5 { top: 322px; left: 0; right: auto; }

    .feature-card-image-overlap {
        min-height: 260px;
    }

    /* removed mobile max-width constraint for overlap images */
}

/* ===== Download Page Styles ===== */

/* Download Hero Section */
.download-hero {
    background-color: var(--color-white);
    padding: 80px 0 0 0;
    text-align: center;
}

/* download hero now uses global h1 */

.download-hero-subtitle {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* extra spacing below the download hero subtitle when needed */
.download-hero-subtitle.extra-gap { padding-bottom: 60px; }

.download-hero-subtitle strong {
    font-weight: 600;
    color: var(--color-black);
}

.download-hero-subtitle .highlight {
    color: var(--color-purple-main);
    font-weight: 600;
}

/* Download Badges Section */
.download-badges-section {
    background-color: var(--color-card-bg); /* #EFEEFC */
    padding: 80px 0;
}

.download-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.download-badge {
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.download-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.download-badge:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 4px;
    border-radius: 8px;
}

.download-badge img {
    display: block;
    height: 70px;
    width: auto;
}

/* ===== Download Page Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    .download-hero { padding: 80px 0 0 0; }

    /* removed: download hero title tablet override; uses global h1 */

    .download-hero-subtitle { font-size: 28px; }

    .download-badges-section {
        padding: 80px 0;
    }

    .download-badges {
        gap: 36px;
    }

    .download-badge img {
        height: 60px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .download-hero { padding: 60px 0 0 0; }

    /* removed: download hero title mobile override; uses global h1 */

    .download-hero-subtitle { font-size: 28px; }

    .download-hero-subtitle br {
        display: none;
    }

    .download-badges-section {
        padding: 60px 0;
    }

    .download-badges {
        flex-direction: column;
        gap: 20px;
    }

    .download-badge img {
        height: 54px;
    }
}

/* ===== Trust Page Styles ===== */

/* Trust Page Hero */
.trust-page-hero {
    background-color: var(--color-white);
    padding: 80px 0 0 0;
    text-align: center;
}

/* trust page hero now uses global h1 */

.trust-page-hero-subtitle {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.trust-page-hero-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    max-width: 700px;
    margin: 0 auto;
}

.trust-page-hero-text .highlight {
    color: var(--color-purple-main);
    font-weight: 600;
}

/* Promise Section */
.promise-section {
    background-color: var(--color-white);
    padding: 60px 0 80px 0;
}

.promise-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 48px;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.promise-card {
    background-color: transparent; /* remove tinted box */
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.promise-card-icon {
    width: 80px;
    height: 80px;
    background-color: transparent; /* remove colored circle */
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.promise-card-icon img {
    width: 40px;
    height: auto;
}

.promise-card-title {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 12px;
}

.promise-card-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
}

/* Protected Section (What Elderella Protects) */
.protected-section {
    background-color: var(--color-card-bg); /* #EFEEFC */
    padding: 80px 0;
}

.protected-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 16px;
}

.protected-subtitle {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 48px;
}

.protected-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center; /* center cards each row */
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.protected-grid .protected-card:nth-child(4),
.protected-grid .protected-card:nth-child(5) {
    grid-column: span 1;
}

/* Flex-based centering; no special positioning per item needed */

.protected-card {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 28px 28px 40px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 280px; /* match privacy-rights card width */
}

.protected-card-icon {
    width: 70px;
    height: 70px;
    background-color: transparent; /* remove colored circle */
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.protected-card-icon img {
    width: 36px;
    height: auto;
}

.protected-card-icon-ion ion-icon {
    font-size: 36px;
    color: #000;
}

.protected-card-title {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 10px;
}

.protected-card-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
}

/* Info Safe Section (How We Keep Information Safe) */
.info-safe-section {
    background-color: var(--color-white);
    padding: 80px 0;
}

.info-safe-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 48px;
}

.info-safe-block {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.info-safe-block:last-child {
    margin-bottom: 0;
}

.info-safe-subtitle {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 12px;
    text-align: left; /* override global h3 center */
}

.info-safe-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

.info-safe-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.info-safe-list li {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    padding-left: 28px;
    position: relative;
    margin-bottom: 10px;
}

.info-safe-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--color-purple-main);
    border-radius: 50%;
}

/* Privacy Rights Section */
.privacy-rights-section {
    background-color: var(--color-card-bg); /* #EFEEFC */
    padding: 80px 0;
}

.privacy-rights-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 16px;
}

.privacy-rights-subtitle {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px auto;
}

.privacy-rights-subtitle .privacy-link {
    color: var(--color-purple-main);
    text-decoration: underline;
}

.privacy-rights-subtitle .privacy-link:hover {
    text-decoration: none;
}

.privacy-rights-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center; /* center cards per row */
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.privacy-rights-card {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 28px 28px 40px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 280px; /* fixed card width for centering via flex */
}

.privacy-rights-card-icon {
    width: 70px;
    height: 70px;
    background-color: transparent; /* remove colored circle */
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px auto;
}

.privacy-rights-card-icon img {
    width: 36px;
    height: auto;
    filter: none; /* solid black icons */
}

.privacy-rights-card-title {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 8px;
}

.privacy-rights-card-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
    max-width: 30ch;
    margin-left: auto;
    margin-right: auto;
}

/* Data Usage Section */
.data-usage-section {
    background-color: var(--color-white);
    padding: 80px 0;
}

.data-usage-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 48px;
}

.data-usage-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 0px auto;
}

.data-usage-column {
    background-color: transparent; /* remove tinted boxes */
    border-radius: 16px;
    padding: 32px;
}

.data-usage-column-title {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 24px;
}

.data-usage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.data-usage-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 16px;
}

.data-usage-item:last-child {
    margin-bottom: 0;
}

.data-usage-item span {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
}

/* Pull the text closer to the icon by ~30px */
.data-usage-item > span + span { margin-left: -24px; }

/* Ensure icon colors override generic span color */
.data-usage-item .data-usage-check { color: #5A4FCF; }
.data-usage-item .data-usage-x { color: #DC607A; }

.data-usage-check {
    display: inline-block;
    width: 40px;
    font-size: 40px;
    color: #5A4FCF;
    flex-shrink: 0;
    line-height: 1;
    margin-right: 4px;
}

.data-usage-x {
    display: inline-block;
    width: 40px;
    font-size: 40px;
    color: #DC607A;
    flex-shrink: 0;
    line-height: 1;
    margin-right: 4px;
}

.data-usage-subsections {
    max-width: 800px;
    margin: 0 auto;
}

.data-usage-subsection {
    margin-bottom: 32px;
}

.data-usage-subsection:last-child {
    margin-bottom: 0;
}

.data-usage-subsection-title {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 12px;
}

.data-usage-subsection-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

/* Questions Section */
.questions-section {
    background-color: var(--color-white);
    padding: 80px 0;
    text-align: center;
}

.questions-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 16px;
}

.questions-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto 32px auto;
}

.questions-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Ensure consistent hover across all primary button styles */
.btn-signup:hover,
.btn-purple:hover,
.btn-try-free:hover,
.btn-more:hover,
.btn-cta-yellow:hover,
.btn-cta--purple:hover,
.btn-trust:hover,
.btn-learn-more:hover,
.btn-signup-footer:hover,
.app-promo__button:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* Remove color flipping on button hovers by scoping the global a:hover instead */

/* Generic 'Coming soon' tooltip for disabled store badges */
.soon-badge { position: relative; cursor: not-allowed; }
.soon-badge::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #5A4FCF;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease-in-out;
}
.soon-badge:hover::after,
.soon-badge:focus::after,
.soon-badge.show-tooltip::after { opacity: 1; }

/* Position tooltip to the right of the badge in Keep on top section */
.keep-on-top-badges .soon-badge {
    width: fit-content;
}

.keep-on-top-badges .soon-badge::after {
    bottom: auto;
    top: 50%;
    left: 100%;
    transform: translate(10px, -50%);
    z-index: 10;
}

/* ===== Trust Page Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    /* removed: trust hero title tablet override; uses global h1 */

    .trust-page-hero-subtitle {
        font-size: 28px;
    }

    .promise-title,
    .protected-title,
    .info-safe-title,
    .privacy-rights-title,
    .data-usage-title,
    .questions-title {
        font-size: 36px;
    }

    .privacy-rights-card { width: 280px; }
}

/* Mobile */
@media (max-width: 768px) {
    .protected-grid { gap: 16px; }
    .protected-card { width: 240px; }
    .trust-page-hero { padding: 60px 0 0 0; }

    /* removed: trust hero title mobile override; uses global h1 */

    .trust-page-hero-subtitle { font-size: 28px; }

    .trust-page-hero-text {
        font-size: 20px;
    }

    .promise-section {
        padding: 40px 0 60px 0;
    }

    .promise-title,
    .protected-title,
    .info-safe-title,
    .privacy-rights-title,
    .data-usage-title,
    .questions-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .promise-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .promise-card {
        padding: 24px;
    }

    .protected-section {
        padding: 60px 0;
    }

    .protected-subtitle {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .protected-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .protected-card {
        padding: 28px 24px 40px 24px;
    }

    .info-safe-section {
        padding: 60px 0;
    }

    .info-safe-block {
        margin-bottom: 32px;
    }

    .info-safe-subtitle {
        font-size: 24px;
    }

    .info-safe-text {
        font-size: 20px;
    }

    .info-safe-list li {
        font-size: 20px;
    }

    .privacy-rights-section {
        padding: 60px 0;
    }

    .privacy-rights-subtitle {
        font-size: 20px;
        margin-bottom: 32px;
    }

    .privacy-rights-grid { gap: 16px; }
    .privacy-rights-card { width: 240px; }

    .privacy-rights-card {
        padding: 28px 24px 40px 24px;
    }

    .data-usage-section {
        padding: 60px 0;
    }

    .data-usage-columns {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }

    .data-usage-column {
        padding: 24px;
    }

    .data-usage-column-title {
        font-size: 24px;
    }

    .data-usage-item span {
        font-size: 20px;
    }

    .data-usage-subsection-title {
        font-size: 24px;
    }

    .data-usage-subsection-text {
        font-size: 20px;
    }

    .questions-section {
        padding: 60px 0;
    }

    .questions-text {
        font-size: 20px;
    }

    .questions-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

}

/* ===== Story Page ===== */

/* Story Hero Section */
.story-hero {
    background-color: var(--color-white);
    padding: 80px 0 0 0;
}

.story-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-hero-content {
    max-width: 560px;
}

.story-hero-title { /* uses global h1 styles */ }

.story-hero-title em {
    font-style: italic;
}

.story-hero-subtitle {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.story-hero-text {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 20px;
}

.story-hero-text strong {
    font-weight: 600;
    color: var(--color-black);
}

.story-link {
    color: var(--color-purple-main);
    text-decoration: underline;
}

.story-link:hover {
    text-decoration: none;
}

.story-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Story Form Section */
.story-form-section {
    background-color: var(--color-gray-light);
    padding: 80px 0;
}

.story-form-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 16px;
}

.story-form-subtitle {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 40px;
}

.story-form {
    max-width: 560px;
    margin: 0 auto;
}

.story-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.story-form input[type="text"],
.story-form input[type="email"],
.story-form input[type="tel"],
.story-form textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.story-form input::placeholder,
.story-form textarea::placeholder {
    color: #999;
}

.story-form input:focus,
.story-form textarea:focus {
    outline: none;
    border-color: var(--color-purple-main);
}

.story-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Radio Button Section */
.story-form-radio-section {
    margin-bottom: 24px;
}

.story-form-radio-label {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-black);
    margin-bottom: 16px;
}

.story-form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.story-form-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.story-form-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-purple-main);
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.radio-custom::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-purple-main);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.story-form-radio input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
}

.story-form-radio input[type="radio"]:focus + .radio-custom {
    box-shadow: 0 0 0 3px rgba(90, 79, 207, 0.2);
}

.radio-text {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-text);
}

/* Checkbox Section */
.story-form-checkbox-group {
    margin-bottom: 32px;
}

.story-form-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.story-form-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-purple-main);
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.checkbox-custom::after {
    content: '\2713';
    font-size: 16px;
    color: var(--color-white);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.story-form-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--color-purple-main);
}

.story-form-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    opacity: 1;
}

.story-form-checkbox input[type="checkbox"]:focus + .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(90, 79, 207, 0.2);
}

.checkbox-text {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-text);
}

/* Submit Button */
.story-form-submit {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border: none;
    cursor: pointer;
}

/* Story Page Responsive - Tablet */
@media (max-width: 1024px) {
    .story-hero { padding: 60px 0 0 0; }

    .story-hero-grid {
        gap: 40px;
    }

    /* story-hero-title inherits responsive size from global h1 */

    .story-hero-subtitle { font-size: 28px; }

    .story-form-title { font-size: 36px; }
}

/* Story Page Responsive - Mobile */
@media (max-width: 768px) {
    .story-hero { padding: 40px 0 0 0; }

    .story-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .story-hero-content {
        order: 1;
    }

    .story-hero-image {
        order: 2;
    }

    /* story-hero-title inherits responsive size from global h1 */

    .story-hero-subtitle { font-size: 28px; margin-bottom: 24px; }

    .story-hero-text {
        font-size: 16px;
    }

    .story-form-section {
        padding: 60px 0;
    }

    .story-form-title {
        font-size: 28px;
    }

    .story-form-subtitle {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .story-form input[type="text"],
    .story-form input[type="email"],
    .story-form input[type="tel"],
    .story-form textarea {
        padding: 14px 16px;
        font-size: 16px;
    }

    .story-form-radio-label {
        font-size: 16px;
    }

    .radio-text,
    .checkbox-text {
        font-size: 16px;
    }

    .story-form-submit {
        max-width: 100%;
    }
}

/* ===== Delete Account Page ===== */

/* Delete Hero Section */
.delete-hero {
    background-color: var(--color-white);
    padding: 80px 0 0 0;
    text-align: center;
}

.delete-hero-title { /* uses global h1 styles */ }

.delete-hero-subtitle {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Before You Proceed Section */
.delete-before-section {
    background-color: var(--color-white);
    padding: 0 0 60px 0;
}

.delete-content-container {
    max-width: 800px;
    margin: 0 auto;
}

.delete-before-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 20px;
    text-align: center;
}

.delete-before-text {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 32px;
    text-align: center;
}

/* Warning Box */
.delete-warning-box {
    background-color: #FFF4E6;
    border-left: 4px solid var(--color-cta);
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 32px;
}

.delete-warning-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.delete-warning-icon {
    flex-shrink: 0;
}

.delete-warning-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-purple-dark);
    margin: 0;
}

.delete-warning-intro {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 12px;
}

.delete-warning-list {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.delete-warning-list li {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 8px;
}

.delete-warning-list li:last-child {
    margin-bottom: 0;
}

.delete-warning-note {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
}

.delete-warning-note strong {
    color: var(--color-purple-dark);
    font-weight: 600;
}

/* Processing Text */
.delete-processing-text {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 20px;
    text-align: center;
}

.delete-processing-text:last-child {
    margin-bottom: 0;
}

.delete-processing-text strong {
    color: var(--color-purple-dark);
    font-weight: 600;
}

/* Delete Form Section (Purple Background) */
.delete-form-section {
    background-color: var(--color-purple-main);
    padding: 80px 0;
}

.delete-form-container {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 40px;
}

.delete-form-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 32px;
}

/* Form Messages */
.delete-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
}

.delete-message-success {
    background-color: #f5f3ff;
    border-left: 4px solid var(--color-purple-main);
    color: var(--color-purple-dark);
}

.delete-message-error {
    background-color: #fff4e6;
    border-left: 4px solid #d32f2f;
    color: #8b0000;
}

/* Form Styles */
.delete-form {
    display: flex;
    flex-direction: column;
}

.delete-form-group {
    margin-bottom: 24px;
}

.delete-form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-purple-dark);
    margin-bottom: 8px;
}

.delete-form-input,
.delete-form-select,
.delete-form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 2px solid #e6e2f5;
    border-radius: 8px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
}

.delete-form-input:focus,
.delete-form-select:focus,
.delete-form-textarea:focus {
    outline: none;
    border-color: var(--color-purple-main);
    background-color: #f9f8ff;
}

.delete-form-input::placeholder,
.delete-form-textarea::placeholder {
    color: #999;
}

.delete-form-help {
    font-family: var(--font-body);
    font-size: 16px;
    color: #7a7a7a;
    margin-top: 6px;
}

/* Select/Dropdown */
.delete-form-select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23342A99" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

/* Textarea */
.delete-form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Radio Cards */
.delete-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delete-radio-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e6e2f5;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.delete-radio-card:hover {
    border-color: var(--color-purple-main);
    background-color: #f9f8ff;
}

.delete-radio-card.selected {
    border-color: var(--color-purple-main);
    background-color: #f9f8ff;
}

.delete-radio-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-purple-main);
}

.delete-radio-content {
    flex: 1;
    cursor: pointer;
}

.delete-radio-title {
    display: block;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-purple-dark);
    margin-bottom: 4px;
}

.delete-radio-description {
    display: block;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: #7a7a7a;
}

/* Confirmation Checkbox */
.delete-confirm-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.delete-confirm-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-purple-main);
}

.delete-confirm-label {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    cursor: pointer;
}

/* Submit Button */
.delete-form-submit {
    display: block;
    width: 100%;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    background-color: var(--color-cta);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.delete-form-submit:hover {
    opacity: 0.9;
}

.delete-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== Delete Page Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    /* delete-hero-title inherits responsive size from global h1 */

    .delete-before-title {
        font-size: 28px;
    }

    .delete-form-title {
        font-size: 28px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .delete-hero { padding: 60px 0 0 0; }
    /* delete-hero-title inherits responsive size from global h1 */

    .delete-hero-subtitle {
        font-size: 28px;
    }

    .delete-before-section {
        padding: 0 0 40px 0;
    }

    .delete-before-title {
        font-size: 24px;
    }

    .delete-before-text,
    .delete-warning-intro,
    .delete-warning-list li,
    .delete-warning-note,
    .delete-processing-text {
        font-size: 16px;
    }

    .delete-warning-box {
        padding: 20px;
    }

    .delete-warning-title {
        font-size: 1.1rem;
    }

    .delete-form-section {
        padding: 60px 0;
    }

    .delete-form-container {
        padding: 32px 24px;
    }

    .delete-form-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .delete-form-label {
        font-size: 16px;
    }

    .delete-form-input,
    .delete-form-select,
    .delete-form-textarea {
        padding: 12px 14px;
        font-size: 16px;
    }

    .delete-radio-card {
        padding: 14px;
    }

    .delete-radio-title {
        font-size: 16px;
    }

    .delete-radio-description {
        font-size: 16px;
    }

    .delete-confirm-label {
        font-size: 16px;
    }

    .delete-form-submit {
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* ===== Terms Page Styles ===== */

/* Terms Hero Section */
.terms-hero {
    background-color: var(--color-white);
    padding: 80px 0 0 0;
}

.terms-hero-title { /* uses global h1 styles */ }

.terms-version-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-purple-main);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(90, 79, 207, 0.25);
}

/* Terms Main Section */
.terms-main {
    background-color: var(--color-white);
    padding: 40px 0 80px 0;
}

.terms-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Terms Sidebar */
.terms-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    width: 280px;
    flex-shrink: 0;
}

.terms-toc {
    background-color: var(--color-gray-light);
    border: 1px solid #e6e2f5;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(52, 42, 153, 0.08);
}

.terms-toc-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-purple-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e6e2f5;
}

.terms-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.terms-toc-item {
    margin-bottom: 12px;
}

.terms-toc-item:last-child {
    margin-bottom: 0;
}

.terms-toc-link {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    display: flex;
    align-items: baseline;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.terms-toc-link:hover {
    color: var(--color-purple-dark);
    background: rgba(52, 42, 153, 0.1);
    transform: translateX(4px);
    text-decoration: none;
}

.terms-toc-number {
    font-weight: 600;
    margin-right: 8px;
    color: var(--color-purple-dark);
    min-width: 24px;
}

/* Terms Content */
.terms-content {
    flex: 1;
    max-width: 800px;
    min-width: 0;
}

.terms-intro {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 40px;
}

/* Terms Sections */
.terms-section {
    margin-bottom: 60px;
    padding: 40px;
    background-color: var(--color-white);
    border-radius: 12px;
    border: 1px solid rgba(230, 226, 245, 0.5);
}

.terms-section:nth-child(even) {
    background-color: var(--color-gray-light);
}

.terms-section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-purple-dark);
    text-align: left; /* override global centered headings */
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e6e2f5;
    display: flex;
    align-items: baseline;
    scroll-margin-top: 120px;
}

.terms-section-number {
    background-color: var(--color-purple-main);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 15px;
    font-family: var(--font-body);
}

.terms-subsection-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-purple-dark);
    text-align: left; /* override global */
    margin-top: 35px;
    margin-bottom: 18px;
    padding-left: 20px;
    border-left: 3px solid var(--color-purple-main);
}

.terms-text {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 24px;
}

.terms-text:last-child {
    margin-bottom: 0;
}

.terms-text strong {
    color: var(--color-purple-dark);
    font-weight: 600;
}

.terms-list {
    list-style: disc;
    margin-left: 30px;
    margin-bottom: 24px;
    color: var(--color-text);
}

.terms-list li {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.terms-list li:last-child {
    margin-bottom: 0;
}

.terms-list li strong {
    color: var(--color-purple-dark);
    font-weight: 600;
}

/* Terms Contact Box */
.terms-contact-box {
    background-color: var(--color-gray-light);
    border: 2px solid var(--color-purple-main);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(90, 79, 207, 0.15);
    padding: 30px;
    margin-top: 20px;
}

.terms-contact-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-purple-dark);
    margin-top: 0;
    margin-bottom: 18px;
    padding-left: 20px;
    border-left: 3px solid var(--color-purple-main);
}

.terms-contact-info {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-text);
}

.terms-contact-info p {
    margin-bottom: 16px;
}

.terms-contact-info p:last-child {
    margin-bottom: 0;
}

.terms-contact-info a {
    color: var(--color-purple-dark);
    text-decoration: none;
}

.terms-contact-info a:hover {
    text-decoration: underline;
}

/* ===== Terms Page Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    .terms-wrapper {
        flex-direction: column;
    }

    .terms-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: 40px;
    }

    .terms-hero-title {
        font-size: 52px;
    }

    .terms-section-title {
        font-size: 1.6rem;
    }

    .terms-subsection-title {
        font-size: 1.2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .terms-hero { padding: 60px 0 0 0; }

    /* terms-hero-title inherits responsive size from global h1 */

    .terms-version-badge {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    .terms-main {
        padding: 30px 0 60px 0;
    }

    .terms-wrapper {
        gap: 30px;
    }

    .terms-toc {
        padding: 20px;
    }

    .terms-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .terms-section {
        padding: 25px;
        margin-bottom: 40px;
    }

    .terms-section-title {
        font-size: 1.4rem;
        scroll-margin-top: 80px;
    }

    .terms-section-number {
        font-size: 1rem;
        padding: 3px 10px;
    }

    .terms-subsection-title {
        font-size: 1.1rem;
        margin-top: 25px;
        padding-left: 15px;
    }

    .terms-text {
        font-size: 16px;
    }

    .terms-list {
        margin-left: 20px;
    }

    .terms-list li {
        font-size: 16px;
    }

    .terms-contact-box {
        padding: 20px;
    }

    .terms-contact-title {
        font-size: 1.2rem;
        padding-left: 15px;
    }

    .terms-contact-info {
        font-size: 16px;
    }
}

/* ===== Introduce to Elder Page Styles ===== */

/* Introduce Hero Section */
.introduce-hero {
    background-color: var(--color-white);
    padding: 80px 0 0 0;
    text-align: center;
}

.introduce-hero-title { /* uses global h1 styles */ }

.introduce-hero-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    max-width: 780px;
    margin: 0 auto 16px auto;
}

/* Introduce hero subtitle formatting to match explore hero */
.introduce-hero-subtitle {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.introduce-hero-text:last-child { margin-bottom: 80px; }

/* Elder Note Section */
.elder-note-section {
    background-color: #EFEEFC;
    padding: 80px 0 80px 0; /* 80px bottom gap before next section */
}

/* Removed page-wide black link override on Introduce page to match brand link color */

.elder-note-section-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 32px;
}

.elder-note-card {
    background-color: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.elder-note-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 24px;
}

.elder-note-text {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 20px;
}

.elder-note-list {
    margin: 0 0 24px 0;
    padding-left: 24px;
}

.elder-note-list li {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 12px;
}

.elder-note-list li:last-child {
    margin-bottom: 0;
}

.elder-note-privacy {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-purple-dark);
    margin-bottom: 20px;
}

.elder-note-contact {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
}

.elder-note-contact a {
    color: var(--color-black);
    text-decoration: underline;
}

.elder-note-contact a:hover {
    text-decoration: none;
}

/* Elder Hands Image Section */
.elder-hands-section {
    position: relative;
    background-color: var(--color-white);
    overflow: hidden;
}

/* Constrain image width on Introduce page to 900px for review */
.page-introduce .elder-hands-section {
    max-width: 1000px;
    margin: 0 auto 40px; /* 0px top margin; 40px bottom spacing on desktop */
}

.page-introduce .elder-hands-image {
    width: 100%;
    height: auto;
}

.elder-hands-image {
    width: 100%;
    height: auto;
    display: block;
}

.elder-hands-overlay {
    position: absolute;
    right: 40px; /* 40px gap from photo's right edge */
    top: 50%;
    transform: translateY(-50%);
    width: clamp(260px, 25%, 360px); /* keep readable min/max while scaling */
    max-width: none;
    max-height: calc(100% - 80px); /* keep at least 40px gap top/bottom inside photo */
    overflow: auto;
    background-color: #FFFFFF; /* solid white to match explore cards */
    padding: 40px; /* interior padding */
    border-radius: 16px; /* match explore card radius */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); /* match explore card shadow */
}

.elder-hands-text {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0 0 12px 0;
}

.elder-hands-text:last-child {
    margin-bottom: 0;
}

/* Accordion Component */
.accordion-section {
    background-color: var(--color-white);
    padding: 0;
    margin-bottom: 60px; /* space below accordion section */
}

/* Introduce: standard top spacing on accordion */
.page-introduce .accordion-section { padding-top: 0; }

.accordion-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 48px;
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #e6e2f5;
}

.accordion-item:first-child {
    border-top: 1px solid #e6e2f5;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.accordion-header:hover,
.accordion-header:focus-visible {
    background: transparent;
    outline: none;
}

.accordion-header:hover .accordion-header-text,
.accordion-header:focus-visible .accordion-header-text {
    color: var(--color-purple-main);
    text-decoration: none;
}

.accordion-header-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 500;
    color: var(--color-black);
}

/* Numbered headings for accordion items (1–5) */
.accordion-container .accordion-item .accordion-header-text::before {
    content: "";
    margin-right: 8px;
    color: var(--color-text);
}
.accordion-container .accordion-item:nth-of-type(1) .accordion-header-text::before { content: "1. "; }
.accordion-container .accordion-item:nth-of-type(2) .accordion-header-text::before { content: "2. "; }
.accordion-container .accordion-item:nth-of-type(3) .accordion-header-text::before { content: "3. "; }
.accordion-container .accordion-item:nth-of-type(4) .accordion-header-text::before { content: "4. "; }
.accordion-container .accordion-item:nth-of-type(5) .accordion-header-text::before { content: "5. "; }

.accordion-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.accordion-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-purple-dark);
}

.accordion-item.is-open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .accordion-content {
        transition: none;
    }
}

.accordion-item.is-open .accordion-content {
    max-height: 500px;
    padding-bottom: 20px;
}

.accordion-content-inner {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text);
}

.accordion-content-inner p {
    margin-bottom: 16px;
}

.accordion-content-inner p:last-child {
    margin-bottom: 0;
}

.accordion-context {
    /* Gray lead-in/subhead sentence (not italic) */
    font-style: normal;
    color: var(--color-text);
    font-size: 20px;
    font-weight: 600;
}

.accordion-quote {
    /* Large, indented italic quote block */
    color: var(--color-text);
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    margin-left: 20px;
}

.accordion-explanation {
    color: var(--color-text);
}

/* Ways to Share Section */
.ways-share-section {
    background-color: var(--color-card-bg); /* #EFEEFC for icon contrast */
    padding: 80px 0;
}

.ways-share-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 40px;
}

.ways-share-list {
    max-width: 780px;
    margin: 0 auto;
    padding-left: 0;
    list-style: none;
}

.ways-share-list li::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}
/* Use numbered icons 1–4 to match Explore */
.ways-share-list li:nth-child(1)::before {
    background-image: -webkit-image-set(url('../images/1-icon.png') 1x, url('../images/1-icon@2x.png') 2x);
    background-image: image-set(url('../images/1-icon.png') 1x, url('../images/1-icon@2x.png') 2x);
}
.ways-share-list li:nth-child(2)::before {
    background-image: -webkit-image-set(url('../images/2-icon.png') 1x, url('../images/2-icon@2x.png') 2x);
    background-image: image-set(url('../images/2-icon.png') 1x, url('../images/2-icon@2x.png') 2x);
}
.ways-share-list li:nth-child(3)::before {
    background-image: -webkit-image-set(url('../images/3-icon.png') 1x, url('../images/3-icon@2x.png') 2x);
    background-image: image-set(url('../images/3-icon.png') 1x, url('../images/3-icon@2x.png') 2x);
}
.ways-share-list li:nth-child(4)::before {
    background-image: -webkit-image-set(url('../images/4-icon.png') 1x, url('../images/4-icon@2x.png') 2x);
    background-image: image-set(url('../images/4-icon.png') 1x, url('../images/4-icon@2x.png') 2x);
}

.ways-share-list li {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 16px;
}

.ways-share-list li:last-child {
    margin-bottom: 0;
}

/* Building Comfort Section */
.comfort-section {
    background-color: var(--color-white);
    padding: 80px 0 40px 0; /* 40px bottom spacing before next section */
}

.comfort-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
    margin-bottom: 48px;
}

.comfort-list {
    max-width: 800px;
    margin: 0 auto;
}

.comfort-item {
    padding: 0;
    margin-bottom: 32px;
}

/* Add space above the first comfort item to match inter-item spacing */
.comfort-list > .comfort-item:first-of-type { margin-top: 32px; }

/* Align comfort subheads with Explore step headline sizing/alignment */
.comfort-section h3 {
    text-align: left;
    font-size: 28px;
    margin-bottom: 16px;
}

.comfort-item:last-child {
    margin-bottom: 0;
}

.comfort-item-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-purple-dark);
    margin-bottom: 12px;
}

.comfort-item-text {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
    text-align: left;
}

/* Trust Info Section (for introduce page) */
.trust-info-section {
    background-color: var(--color-gray-light);
    padding: 60px 0;
    text-align: center;
}

.trust-info-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 16px;
}

.trust-info-text {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto 24px auto;
}

.trust-info-link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-purple-dark);
    text-decoration: underline;
}

.trust-info-link:hover {
    text-decoration: none;
}

/* ===== Introduce Page Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    .introduce-hero-title {
        font-size: 52px;
    }

    .accordion-title,
    .ways-share-title,
    .comfort-title,
    .elder-note-section-title {
        font-size: 36px;
    }

    .elder-hands-overlay {
        right: 40px; /* 40px outer gap on tablet */
        width: clamp(260px, 25%, 360px);
        max-width: none;
        max-height: calc(100% - 80px);
        overflow: auto;
        padding: 40px; /* interior padding */
    }
    /* Introduce: standardize bottom spacing under photo on tablet */
    .page-introduce .elder-hands-section { margin: 0 auto 60px; }
}

/* Mobile */
@media (max-width: 768px) {
    .introduce-hero { padding: 60px 0 0 0; }

    /* introduce-hero-title inherits responsive size from global h1 */

    .introduce-hero-subtitle { font-size: 28px; }

    .introduce-hero-text {
        font-size: 20px;
    }

    .elder-note-section {
        padding: 40px 0;
    }

    .elder-note-card {
        padding: 32px 24px;
    }

    .elder-note-title {
        font-size: 26px;
    }

    .elder-note-text,
    .elder-note-list li,
    .elder-note-privacy,
    .elder-note-contact {
        font-size: 20px;
    }

    .elder-hands-section { position: relative; }

    .elder-hands-overlay { display: none !important; }

    .accordion-section { padding: 0; }

    .accordion-title,
    .ways-share-title,
    .comfort-title,
    .elder-note-section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .accordion-header {
        padding: 24px 0;
    }

    .accordion-header-text {
        font-size: 22px;
    }

    .accordion-content-inner { font-size: 20px; }
    .accordion-context { font-size: 20px; }
    .accordion-quote { font-size: 20px; margin-left: 12px; }

    .ways-share-section {
        padding: 60px 0;
    }

    .ways-share-list li {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .ways-share-list li::before {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }

    .comfort-section { padding: 60px 0 40px 0; }
    /* Introduce: standardize bottom spacing under photo on mobile */
    .page-introduce .elder-hands-section { margin: 0 auto 40px; }

    .comfort-list {
        padding: 0 10px;
    }

    .comfort-item {
        margin-bottom: 28px;
    }

    /* Match top spacing above first item on mobile */
    .comfort-list > .comfort-item:first-of-type { margin-top: 28px; }

    .comfort-item-title {
        font-size: 22px;
    }

    .comfort-item-text {
        font-size: 20px;
    }

    .trust-info-section {
        padding: 40px 0;
    }

    .trust-info-title {
        font-size: 26px;
    }

    .trust-info-text {
        font-size: 16px;
    }
}
/* ===== Utilities ===== */
.text-center { text-align: center; }
.btn-center { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
.mt-24 { margin-top: 24px; }
.mb-60 { margin-bottom: 60px; }
.pt-36 { padding-top: 36px; }
.pb-40 { padding-bottom: 40px; }
.list-reset { list-style: none; padding: 0; margin: 0; }
.list-center { text-align: center; }

/* ===== Compare Plans Page Styles ===== */

/* Hero Section */
.compare-plans-hero {
    background-color: var(--color-white);
    padding: 80px 0 60px 0;
    text-align: center;
}

.compare-plans-subtitle {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA and Steps Section */
.compare-plans-cta-steps {
    background-color: var(--color-white);
    padding: 10px 0 60px 0;
}

.cta-steps-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.cta-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-premium-cta {
    display: inline-block;
    background-color: var(--color-purple-main);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    padding: 16px 40px;
    border-radius: 9999px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.btn-premium-cta:hover {
    opacity: 0.9;
    text-decoration: none;
}

.steps-column {
    flex-shrink: 0;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.step-text {
    font-family: var(--font-body);
    font-size: 24px;
    line-height: 1.4;
    color: var(--color-black);
    margin: 0;
    font-weight: 500;
}

/* Pricing Panels Section */
.pricing-panels-section {
    background-color: var(--color-white);
    padding: 40px 0 80px 0;
}

.pricing-panels {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 40px 32px;
    width: 330px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #D4D4D4;
    box-shadow: none;
}

.pricing-card--highlighted {
    background-color: var(--color-purple-main);
    color: var(--color-white);
    border: none;
    box-shadow: none;
}

.pricing-card--premium {
    overflow: visible;
}

/* Pricing Badge */
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-cta);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 9999px;
    white-space: nowrap;
}

/* Pricing Card Header */
.pricing-card-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.pricing-tier-name {
    font-family: var(--font-heading-sans);
    font-size: 48px;
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 20px;
    text-align: center;
}

.pricing-card--highlighted .pricing-tier-name {
    color: var(--color-white);
}

.pricing-description {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text);
    margin: 0 0 40px 0;
    min-height: 44px;
}

.pricing-card--highlighted .pricing-description {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}

.price-currency {
    font-family: var(--font-heading-sans);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-black);
    line-height: 1;
    align-self: flex-start;
    margin-top: 5px;
}

.pricing-card--highlighted .price-currency {
    color: var(--color-white);
}

.price-amount {
    font-family: var(--font-heading-sans);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1;
}

.pricing-card--highlighted .price-amount {
    color: var(--color-white);
}

.price-period {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pricing-card--highlighted .price-period {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-forever {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    margin: 10px 0 0 0;
    text-align: center;
}

.pricing-annual {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    text-align: center;
    margin: 0;
}

.pricing-card--highlighted .pricing-annual {
    color: rgba(255, 255, 255, 0.8);
}

/* Pricing Features List */
.pricing-features {
    list-style: none;
    padding: 40px 0 40px 0;
    margin: 0;
    flex-grow: 1;
    border-top: none;
    width: 252px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-card--highlighted .pricing-features {
    border-top: none;
}

.pricing-features li {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-text);
    padding: 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.pricing-card--highlighted .pricing-features li {
    color: var(--color-white);
}

/* Checkmark icon style matching design */
.feature-check {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background-image: url("../images/circle-check-purple.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-card--highlighted .feature-check {
    background-image: url("../images/circle-check-white.svg");
}

/* Statement Section */
.pricing-statement-section {
    background-color: var(--color-white);
    padding: 0;
    text-align: center;
}

.pricing-statement {
    font-family: var(--font-body);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-purple-main);
    margin: 0 0 80px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.compare-faq-section {
    background-color: #CCCCFF;
    padding: 80px 0;
}

.compare-faq-section h2 {
    font-family: var(--font-heading);
    margin-bottom: 40px;
}

.faq-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item:last-child {
    margin-bottom: 20px;
}

.faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-header:hover {
    background: transparent;
}

.faq-header-text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-black);
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-text);
}

.faq-item.is-open .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.is-open .faq-content {
    max-height: 500px;
}

.faq-content-inner {
    padding: 0 24px 20px 24px;
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text);
}

.faq-content-inner p {
    margin: 0 0 12px 0;
}

.faq-content-inner p:last-child {
    margin-bottom: 0;
}

.faq-content-inner ul,
.faq-content-inner ol {
    margin: 0 0 12px 0;
    padding-left: 24px;
}

.faq-content-inner ul:last-child,
.faq-content-inner ol:last-child {
    margin-bottom: 0;
}

.faq-content-inner li {
    margin-bottom: 8px;
}

.faq-content-inner li:last-child {
    margin-bottom: 0;
}

/* ===== Compare Plans Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    .compare-plans-hero {
        padding: 60px 0 20px 0;
    }

    .compare-plans-subtitle {
        font-size: 28px;
    }

    .pricing-panels {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .pricing-card {
        width: 100%;
        max-width: 380px;
    }

    .pricing-statement {
        font-size: 22px;
    }

}

/* Mobile */
@media (max-width: 768px) {
    .compare-plans-hero {
        padding: 60px 0 16px 0;
    }

    .compare-plans-subtitle {
        font-size: 28px;
    }

    .compare-plans-cta-steps {
        padding: 24px 0 40px 0;
    }

    .cta-steps-grid {
        flex-direction: column;
        gap: 30px;
    }

    .btn-premium-cta {
        font-size: 20px;
        padding: 14px 28px;
    }

    .step-text {
        font-size: 20px;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .pricing-panels-section {
        padding: 0 0 40px 0;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .pricing-tier-name {
        font-size: 32px;
    }

    .price-amount {
        font-size: 32px;
    }

    .price-period {
        font-size: 18px;
    }

    .pricing-features li {
        font-size: 20px;
    }

    .pricing-badge {
        font-size: 18px;
    }

    .pricing-statement-section {
        padding: 32px 0 60px 0;
    }

    .pricing-statement {
        font-size: 20px;
    }

    .compare-faq-section {
        padding: 60px 0;
    }

    .compare-faq-section h2 {
        margin-bottom: 32px;
    }

    .faq-header {
        padding: 16px 20px;
    }

    .faq-content-inner {
        padding: 0 20px 16px 20px;
    }
}
