/* Marketing layouts and app illustrations. Shared theme: styles.css. */
:root {
  --home-space: clamp(64px, 7vw, 104px);
  --home-content-width: 1040px;
  --home-gutter: 32px;
}

.site-header .content-inset {
  padding-inline: 0;
}

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

.homepage .autopilot-section {
  padding-top: 36px;
  padding-bottom: 40px;
}

.homepage .principle-copy {
  order: initial;
  padding-block: 24px;
  padding-inline-start: 0;
  min-width: 0;
}

.homepage .autopilot-heading-lockup {
  display: block;
  padding: 0;
  margin-bottom: 48px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.homepage .principle-copy .autopilot-heading-copy h1 {
  text-wrap: balance;
}

.homepage .principle-copy > p {
  padding: 0;
  max-width: 440px;
  margin-bottom: 30px;
  line-height: 1.75;
}

.homepage .autopilot-actions {
  margin: 0;
}

.homepage .button {
  box-shadow: none;
}

.homepage .cta-card h2 {
  font-weight: 800;
  text-wrap: balance;
}

.homepage .cta-card {
  overflow: visible;
  color: var(--text);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.homepage .cta-card h2 {
  margin: 0;
  max-width: 540px;
}

.homepage .cta-copy p {
  max-width: 640px;
  margin: 20px 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.homepage .cta-card .newsletter-form {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  max-width: 460px;
  justify-self: start;
  align-self: center;
}

.homepage .cta-card .newsletter-form > label {
  color: var(--text);
}

.homepage .newsletter-fields {
  grid-template-columns: 1fr;
  gap: 12px;
}

.homepage .cta-card .newsletter-note {
  color: var(--text-tertiary);
  margin-top: 16px;
}

@media (max-width: 900px) {
  .homepage .cta-card {
    column-gap: 36px;
  }
}

@media (max-width: 640px) {
  .homepage .autopilot-section {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .homepage .principle-copy {
    display: contents;
  }

  .homepage .autopilot-heading-lockup {
    grid-column: 1;
    margin: 0;
  }

  .homepage .principle-copy > p {
    grid-column: 1 / -1;
    margin: 0;
    line-height: 1.75;
  }

  .homepage .autopilot-actions {
    grid-column: 1 / -1;
  }

  .homepage .cta-card {
    grid-template-columns: 1fr;
  }

  .homepage .cta-card .newsletter-form {
    grid-column: 1;
    grid-row: auto;
  }
}
.how-it-works {
  scroll-margin-top: 90px;
}
.budget-alert {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(var(--shadow) / 0.12);
  text-align: left;
  transform: rotate(2deg);
}
.budget-alert-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #452d08;
  background: #facc15;
}
.notification-app-icon {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.budget-alert > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.budget-alert strong {
  font-size: 11px;
  line-height: 1.4;
}
.budget-alert > div > span:last-child {
  font-size: 11px;
  color: var(--text-secondary);
}
@media (max-width: 640px) {
  .budget-alert {
    margin-inline: 0;
  }
}
/* Budget notification illustration */
.budget-alert-feature {
  width: 100%;
  margin: 0;
  padding: var(--home-space) 0;
  background: var(--background);
  text-align: left;
}
.budget-alert-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.budget-alert-copy {
  max-width: 560px;
}
.budget-alert-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.budget-alert-copy p {
  max-width: 500px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}
.budget-alert-preview {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 9 / 19;
  margin: 0 auto;
  padding: 64px 12px 44px;
  border: 6px solid #334155;
  border-radius: 40px;
  background: linear-gradient(
    155deg,
    var(--card-blue),
    var(--background) 65%,
    var(--card-green)
  );
  box-shadow:
    0 20px 40px rgb(var(--shadow) / 0.12),
    inset 0 0 0 2px rgb(255 255 255 / 0.15);
}
.notification-phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  border-radius: 20px;
  background: #0f172a;
}
.notification-phone-clock {
  margin-bottom: 30px;
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--text-secondary);
}
.budget-alert-preview::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 4px;
  border-radius: 4px;
  background: var(--text);
  opacity: 0.65;
}
.budget-alert-feature .budget-alert {
  padding: 16px 12px;
  transform: none;
  border-color: color-mix(in srgb, var(--border) 60%, transparent);
  box-shadow: 0 8px 20px rgb(var(--shadow) / 0.08);
}
.budget-alert-feature .budget-alert strong {
  font-size: 12px;
}
@media (max-width: 760px) {
  .budget-alert-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .budget-alert-preview {
    width: min(100%, 260px);
  }
}

.how-step-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0;
  background: none;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  font-weight: 750;
  line-height: 1.4;
}

.notification-app-icon.budgy-theme-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .notification-app-icon.budgy-theme-light {
    display: none;
  }
  .notification-app-icon.budgy-theme-dark {
    display: block;
  }
}
.homepage {
  --editorial-width: var(--home-content-width);
  background: var(--background);
}
.homepage .budget-alert-feature {
  background: var(--background-muted);
}
.site-header .container {
  width: min(var(--home-content-width), calc(100% - 2 * var(--home-gutter)));
}
.homepage .budget-alert-feature,
.homepage .cta {
  padding-block: var(--home-space);
  border: 0;
}
.homepage .cta-card h2 {
  line-height: 1.12;
}
.homepage .cta-card .newsletter-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
@media (max-width: 760px) {
  :root {
    --home-gutter: 24px;
  }
}
/* Features */
.features-launch p {
  color: var(--text-secondary);
  line-height: 1.7;
}
.features-launch {
  border-top: 1px solid var(--border);
  text-align: center;
}
.features-launch .button {
  margin-top: 16px;
}
/* Homepage steps */
.life-steps {
  position: relative;
}
.life-step {
  padding-block: var(--home-space);
  scroll-margin-top: 90px;
}
.life-step-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.life-step-copy {
  max-width: 560px;
}
.life-step-copy h2 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.035em;
}
.life-step-copy h2,
.homepage .budget-alert-copy h2 {
  margin: 0 0 24px;
  line-height: 1.08;
  text-wrap: balance;
}
.life-step-copy p {
  max-width: 500px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}
.life-step-copy .story-link,
.budget-alert-copy .story-link {
  display: inline-block;
  margin-top: 24px;
}
.life-step-art {
  display: block;
  width: min(100%, 440px);
  height: auto;
  margin: 0 auto;
}
.life-live {
  background: color-mix(in srgb, var(--sun) 5%, var(--background-muted));
}
.life-live .life-step-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}
.life-live .life-step-copy {
  grid-column: 2;
  grid-row: 1;
}
.homepage .life-steps .budget-alert-preview {
  width: min(100%, 280px);
  aspect-ratio: 9 / 19;
  padding-top: 52px;
}
@media (max-width: 760px) {
  .life-step-layout,
  .life-live .life-step-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .life-live .life-step-copy {
    grid-column: auto;
    grid-row: auto;
  }
  .life-bank-art {
    width: min(100%, 320px);
  }
}
.security-label {
  display: block;
  margin-bottom: 20px;
  font-weight: 700;
}
.security-hero h1 {
  margin: 0 0 24px;
  line-height: 1.03;
}
.security-hero p,
.security-card p,
.security-akahu-facts p,
.security-faq p,
.security-contact p {
  color: var(--text-secondary);
  line-height: 1.75;
}
.security-card p,
.security-contact p {
  color: var(--panel-text-muted);
}
.security-hero p {
  max-width: 500px;
  margin: 0;
  font-size: 1.1rem;
}
.security-hero-art {
  display: block;
  width: min(100%, 400px);
  height: auto;
  margin: 0 auto;
}
.security-details,
.security-contact {
  padding-block: var(--home-space);
}
.security-assurances h1,
.security-details h2,
.security-contact h2 {
  margin: 0 0 36px;
  line-height: 1.12;
  text-wrap: balance;
}
.security-details h2,
.security-contact h2 {
  letter-spacing: -0.035em;
}
.security-contact h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
}
.security-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.security-card-icon {
  margin-bottom: 24px;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.security-card h2,
.security-akahu-facts h3 {
  margin: 0 0 14px;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.security-card p {
  margin: 0;
  font-size: 0.95rem;
}
.security-akahu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.security-akahu-facts h3:not(:first-child) {
  margin-top: 28px;
}
.security-akahu-facts p {
  margin: 0 0 16px;
}
.security-details {
  border-top: 1px solid var(--border);
}
.security-faq details {
  padding-block: 22px;
  border-bottom: 1px solid var(--border);
}
.security-faq summary {
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.5;
}
.security-faq details > div {
  max-width: 760px;
  padding-top: 8px;
}
.security-faq details p:last-child {
  margin-bottom: 0;
}
.security-contact {
  text-align: center;
}
.security-contact h2 {
  margin-bottom: 20px;
}
.security-contact p {
  max-width: 580px;
  margin: 0 auto;
}
.security-contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}
@media (max-width: 760px) {
  .security-card-grid,
  .security-akahu-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .security-hero-art {
    width: min(100%, 280px);
  }
}
.feature-chapter {
  padding-block: 64px;
  scroll-margin-top: 80px;
}
.feature-chapter + .feature-chapter .life-step-layout {
  position: relative;
}
.feature-chapter + .feature-chapter .life-step-layout::before {
  content: "";
  position: absolute;
  top: -64px;
  left: 0;
  right: 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
}
.features-page .life-step-copy h2 {
  max-width: 540px;
}
.features-page .life-step-copy p {
  max-width: 440px;
  line-height: 1.65;
}
.feature-section-tag {
  gap: 9px;
}
/* Native app tab icons */
.native-tab-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: currentColor;
  mask: var(--native-icon) center / contain no-repeat;
}
.native-tab-budget {
  --native-icon: url("/assets/app-icons/budget.png");
}
.native-tab-budget-fill {
  --native-icon: url("/assets/app-icons/budget-fill.png");
}
.native-tab-transactions {
  --native-icon: url("/assets/app-icons/transactions.png");
}
.native-tab-transactions-fill {
  --native-icon: url("/assets/app-icons/transactions-fill.png");
}
.native-tab-upcoming {
  --native-icon: url("/assets/app-icons/upcoming.png");
}
.native-tab-upcoming-fill {
  --native-icon: url("/assets/app-icons/upcoming-fill.png");
}
.native-tab-trends {
  --native-icon: url("/assets/app-icons/trends.png");
}
.native-tab-trends-fill {
  --native-icon: url("/assets/app-icons/trends-fill.png");
}
.native-tab-settings {
  --native-icon: url("/assets/app-icons/settings.png");
}
.native-tab-cart-fill {
  --native-icon: url("/assets/app-icons/cart-fill.png");
}
.native-tab-fuel-fill {
  --native-icon: url("/assets/app-icons/fuel-fill.png");
}
.native-tab-home-fill {
  --native-icon: url("/assets/app-icons/home-fill.png");
}
.native-tab-power-fill {
  --native-icon: url("/assets/app-icons/power-fill.png");
}
.native-tab-bank-fill {
  --native-icon: url("/assets/app-icons/bank-fill.png");
}
.native-tab-savings {
  --native-icon: url("/assets/app-icons/savings.svg");
}

/* Illustrative app screens */
.feature-phone {
  --app-bg: #f7f9fb;
  --app-card: #fff;
  --app-ink: #111b2e;
  --app-muted: #536174;
  --app-line: #e0e4e9;
  --app-green: #16a34a;
  --app-trend-capacity: #79d3f1;
  --app-trend-capacity-highlight: #b5eaf9;
  --app-trend-capacity-text: #155e80;
  --app-trend-progress: #007ebe;
  --app-trend-progress-highlight: #09b7f1;
  --app-trend-progress-text: #006ba3;
  --app-trend-balance: #23835b;
  --app-trend-balance-highlight: #35b982;
  --app-trend-tile-opacity: 15%;
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 0;
  border-radius: 44px;
  background: var(--app-bg);
  color: var(--app-ink);
  overflow: hidden;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  line-height: 1.3;
}
.feature-phone::after {
  background: var(--app-ink);
  z-index: 3;
}
.feature-phone .notification-phone-island {
  z-index: 4;
  width: 86px;
  top: 13px;
}
.feature-phone-screen {
  position: absolute;
  inset: 58px 0 78px;
  padding: 0 13px 12px;
  overflow: hidden;
}
.feature-phone-tabbar {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 12px 4px 29px;
  background: color-mix(in srgb, var(--app-bg) 96%, transparent);
  border-top: 1px solid var(--app-line);
  box-shadow: 0 -8px 16px var(--app-bg);
}
.feature-phone-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--app-muted);
}
.feature-phone-tab .native-tab-icon {
  width: 23px;
  height: 23px;
}
.feature-phone-tab small {
  font-size: 8px;
  font-weight: 600;
}
.feature-phone-tab.is-active {
  color: var(--primary);
}
.app-preview-title {
  display: block;
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.app-preview-period {
  font-size: 13px;
  font-weight: 700;
  color: var(--app-muted);
}
.app-budget-group {
  margin-top: 26px;
}
.app-section-heading {
  display: block;
  margin: 0 10px 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.app-envelope {
  position: relative;
  min-height: 63px;
  padding: 12px 12px 14px;
  border: 1px solid color-mix(in srgb, currentColor 9%, transparent);
  border-radius: 5px 5px 8px 8px;
  background: var(--envelope-color);
  color: var(--envelope-ink);
  box-shadow: 0 7px 8px rgb(var(--shadow) / 0.08);
}
.app-envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--envelope-shine, rgb(255 255 255 / 0.45));
  clip-path: polygon(0 0, 100% 0, 97% 92%, 3% 92%);
  border-radius: inherit;
}
.app-envelope > div,
.app-envelope > span,
.app-envelope > small {
  position: relative;
}
.app-envelope > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-envelope strong {
  font-size: 13px;
  font-weight: 750;
}
.app-envelope b {
  margin-left: auto;
  white-space: nowrap;
  font-size: 13px;
}
.app-category-icon {
  flex-shrink: 0;
  color: var(--envelope-accent);
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  font-size: 27px;
}
.app-category-icon .native-tab-icon,
.app-category-icon svg {
  width: 27px;
  height: 27px;
}
.app-envelope-household {
  --envelope-color: var(--envelope-household-surface);
  --envelope-ink: var(--envelope-household-ink);
  --envelope-shine: var(--envelope-household-shine);
  --envelope-accent: var(--envelope-household-accent);
  --envelope-tint: var(--envelope-household-tint);
  background: var(--envelope-color);
  color: var(--envelope-ink);
}
.app-envelope-mobility {
  --envelope-color: var(--envelope-mobility-surface);
  --envelope-ink: var(--envelope-mobility-ink);
  --envelope-shine: var(--envelope-mobility-shine);
  --envelope-accent: var(--envelope-mobility-accent);
  --envelope-tint: var(--envelope-mobility-tint);
  background: var(--envelope-color);
  color: var(--envelope-ink);
}
.app-envelope-food {
  --envelope-color: var(--envelope-food-surface);
  --envelope-ink: var(--envelope-food-ink);
  --envelope-shine: var(--envelope-food-shine);
  --envelope-accent: var(--envelope-food-accent);
  --envelope-tint: var(--envelope-food-tint);
  background: var(--envelope-color);
  color: var(--envelope-ink);
}
.app-envelope-care {
  --envelope-color: var(--envelope-care-surface);
  --envelope-ink: var(--envelope-care-ink);
  --envelope-shine: var(--envelope-care-shine);
  --envelope-accent: var(--envelope-care-accent);
  --envelope-tint: var(--envelope-care-tint);
  background: var(--envelope-color);
  color: var(--envelope-ink);
}
.app-envelope-obligations {
  --envelope-color: var(--envelope-obligations-surface);
  --envelope-ink: var(--envelope-obligations-ink);
  --envelope-shine: var(--envelope-obligations-shine);
  --envelope-accent: var(--envelope-obligations-accent);
  --envelope-tint: var(--envelope-obligations-tint);
  background: var(--envelope-color);
  color: var(--envelope-ink);
}
.app-envelope-shopping {
  --envelope-color: var(--envelope-shopping-surface);
  --envelope-ink: var(--envelope-shopping-ink);
  --envelope-shine: var(--envelope-shopping-shine);
  --envelope-accent: var(--envelope-shopping-accent);
  --envelope-tint: var(--envelope-shopping-tint);
  background: var(--envelope-color);
  color: var(--envelope-ink);
}
.app-envelope-leisure {
  --envelope-color: var(--envelope-leisure-surface);
  --envelope-ink: var(--envelope-leisure-ink);
  --envelope-shine: var(--envelope-leisure-shine);
  --envelope-accent: var(--envelope-leisure-accent);
  --envelope-tint: var(--envelope-leisure-tint);
  background: var(--envelope-color);
  color: var(--envelope-ink);
}
.app-envelope-general {
  --envelope-color: var(--envelope-general-surface);
  --envelope-ink: var(--envelope-general-ink);
  --envelope-shine: var(--envelope-general-shine);
  --envelope-accent: var(--envelope-general-accent);
  --envelope-tint: var(--envelope-general-tint);
  background: var(--envelope-color);
  color: var(--envelope-ink);
}
.app-envelope-giving {
  --envelope-color: var(--envelope-giving-surface);
  --envelope-ink: var(--envelope-giving-ink);
  --envelope-shine: var(--envelope-giving-shine);
  --envelope-accent: var(--envelope-giving-accent);
  --envelope-tint: var(--envelope-giving-tint);
  background: var(--envelope-color);
  color: var(--envelope-ink);
}
.app-envelope-fitness {
  --envelope-color: var(--envelope-fitness-surface);
  --envelope-ink: var(--envelope-fitness-ink);
  --envelope-shine: var(--envelope-fitness-shine);
  --envelope-accent: var(--envelope-fitness-accent);
  --envelope-tint: var(--envelope-fitness-tint);
  background: var(--envelope-color);
  color: var(--envelope-ink);
}
.app-envelope-pets {
  --envelope-color: var(--envelope-pets-surface);
  --envelope-ink: var(--envelope-pets-ink);
  --envelope-shine: var(--envelope-pets-shine);
  --envelope-accent: var(--envelope-pets-accent);
  --envelope-tint: var(--envelope-pets-tint);
  background: var(--envelope-color);
  color: var(--envelope-ink);
}
.app-envelope-travel {
  --envelope-color: var(--envelope-travel-surface);
  --envelope-ink: var(--envelope-travel-ink);
  --envelope-shine: var(--envelope-travel-shine);
  --envelope-accent: var(--envelope-travel-accent);
  --envelope-tint: var(--envelope-travel-tint);
  background: var(--envelope-color);
  color: var(--envelope-ink);
}
.app-envelope-work {
  --envelope-color: var(--envelope-work-surface);
  --envelope-ink: var(--envelope-work-ink);
  --envelope-shine: var(--envelope-work-shine);
  --envelope-accent: var(--envelope-work-accent);
  --envelope-tint: var(--envelope-work-tint);
  background: var(--envelope-color);
  color: var(--envelope-ink);
}
.app-envelope-green {
  --envelope-color: #cdeed9;
  --envelope-shine: #ecfdf3;
  --envelope-ink: #123524;
  --envelope-accent: #2f855a;
  --envelope-tint: #ecfdf3;
  --envelope-secondary: #315f47;
  background: var(--envelope-color);
  color: var(--envelope-ink);
}
.app-envelope-red {
  --envelope-color: #ffe0e7;
  --envelope-shine: #fff1f4;
  --envelope-ink: #4c0519;
  --envelope-accent: #e11d48;
  --envelope-tint: #fff1f4;
  --envelope-secondary: #be123c;
  background: var(--envelope-color);
  color: var(--envelope-ink);
}
.app-envelope-green small,
.app-envelope-red small {
  color: var(--envelope-secondary);
}
.app-balance-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  width: calc(100% - 38px);
  height: 14px;
  margin: 4px 0 0 38px;
}
.app-balance-bar {
  flex: 0 0 4px;
  height: 14px;
  border-radius: 1px;
  background: var(--envelope-accent);
  opacity: clamp(0.3, var(--bar-opacity, 1), 1);
}
.app-balance-bar-spent {
  background: var(--envelope-color);
  opacity: 1;
}
.app-envelope-preview-extra {
  display: none;
}
.app-goal-progress {
  flex: 1;
  height: 14px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--envelope-accent) 16%, transparent);
  overflow: hidden;
}
.app-goal-progress i {
  display: block;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, transparent 0 8px, #ffffff33 8px 16px),
    var(--envelope-accent);
}
.app-envelope > .app-envelope-goal {
  margin: 4px 0 0 38px;
  justify-content: space-between;
  gap: 10px;
}
.app-envelope .app-envelope-goal small {
  margin: 0;
}
.app-envelope small {
  display: block;
  font-size: 9px;
  font-weight: 650;
  margin: 3px 0 0 38px;
}
.app-preview-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 24px;
  background: var(--app-line);
  color: var(--app-muted);
  font-size: 12px;
}
.app-preview-search svg {
  width: 17px;
  height: 17px;
  stroke: var(--app-ink);
  fill: none;
  stroke-width: 2;
}
.app-date-heading {
  display: block;
  margin: 22px 12px 10px;
  font-size: 10px;
  color: var(--app-muted);
}
.app-row-group {
  padding: 0 12px;
  border-radius: 24px;
  background: var(--app-card);
}
.app-transaction-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 72px;
}
.app-transaction-row + .app-transaction-row {
  border-top: 1px solid var(--app-line);
}
.app-row-icon {
  background: var(--envelope-tint, var(--surface));
  color: var(--envelope-accent, var(--text));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
}
.app-row-icon .native-tab-icon {
  width: 20px;
  height: 20px;
}
.app-transaction-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-transaction-row strong {
  font-size: 12px;
}
.app-transaction-row > div > span {
  font-size: 10px;
  color: var(--app-muted);
}
.app-transaction-row b {
  margin-left: auto;
  white-space: nowrap;
  font-size: 12px;
}
.app-transaction-row b > span {
  margin-left: 6px;
  font-size: 19px;
  color: var(--app-muted);
  opacity: 0.5;
}
.app-income {
  color: var(--app-green);
}
.app-calendar-month {
  display: block;
  margin: 26px 0 16px;
  font-size: 21px;
  font-weight: 800;
}
.app-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: var(--app-muted);
  font-size: 8px;
  font-weight: 700;
  margin-bottom: 10px;
}
.app-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: calc(240px / var(--calendar-weeks, 5));
  margin-inline: -13px;
}
.app-calendar-cell {
  min-height: 0;
  padding: 3px 1px;
  border-top: 1px solid var(--app-line);
  text-align: center;
  font-size: 11px;
  font-weight: 650;
}
.app-calendar-cell > span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
}
.app-calendar-muted {
  color: var(--app-muted);
  opacity: 0.45;
}
.app-calendar-today {
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
}
.app-calendar-event {
  background: var(--envelope-tint, var(--surface));
  display: block;
  text-align: left;
  padding: 2px;
  border-radius: 3px;
  font-size: 7px;
  font-weight: 700;
  overflow: hidden;
  line-height: 1.2;
}
.app-calendar-days[data-calendar-weeks="6"] .app-calendar-cell > span {
  width: 16px;
  height: 16px;
}
.app-calendar-days[data-calendar-weeks="6"] .app-calendar-event {
  background: var(--envelope-tint, var(--surface));
  padding: 1px 2px;
  font-size: 6.5px;
}
.app-trend-overview {
  background: var(--app-card);
  border: 1px solid var(--app-line);
  border-radius: 20px;
  padding: 12px 10px;
  margin-top: 20px;
}
.app-native-chart {
  display: block;
  width: 100%;
  height: auto;
}
.app-chart-area {
  fill: url(#trend-balance-area);
}
.app-chart-axis {
  stroke: var(--app-line);
  stroke-width: 1.5;
}
.app-chart-selection {
  fill: none;
  stroke: var(--app-muted);
  stroke-opacity: 0.3;
}
.app-chart-balance {
  fill: none;
  stroke: url(#trend-balance-gradient);
  stroke-width: 1.5;
}
.app-chart-projection {
  stroke-dasharray: 0.1 3.5;
  stroke-linecap: round;
}
.app-chart-income {
  fill: url(#trend-income-gradient);
}
.app-chart-bars {
  fill: url(#trend-spending-gradient);
}
.app-chart-forecast {
  fill: none;
  stroke: var(--app-ink);
  stroke-width: 1.5;
  stroke-dasharray: 0.1 3.5;
  stroke-linecap: round;
}
.app-chart-scale {
  fill: var(--app-muted);
  font-size: 8px;
  text-anchor: end;
}
.app-chart-dates {
  fill: var(--app-muted);
  font-size: 9px;
  text-anchor: middle;
  font-weight: 650;
}
.app-trend-period {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
}
.app-trend-status {
  flex-shrink: 0;
  padding: 4px 8px;
  border: 1.5px dotted var(--primary);
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
}
.app-trend-summary {
  border: 1px solid var(--app-line);
  border-radius: 20px;
  padding: 16px 12px;
  margin-top: 14px;
  background: var(--app-card);
}
.app-trend-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.app-trend-totals > div {
  --metric-swatch: var(--app-trend-capacity);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 6px;
  border: 1px solid var(--app-line);
  border-top: 3px solid var(--metric-swatch);
  border-radius: 9px;
  background:
    linear-gradient(
      to bottom right,
      color-mix(
        in srgb,
        var(--metric-swatch) var(--app-trend-tile-opacity),
        transparent
      ),
      color-mix(in srgb, var(--metric-swatch) 3%, transparent)
    ),
    var(--app-card);
}
.app-trend-totals > .app-trend-spending {
  text-align: right;
  --metric-swatch: var(--app-trend-progress);
}
.app-trend-surplus {
  text-align: right;
}
.app-trend-totals > .app-trend-savings {
  --metric-swatch: var(--app-trend-balance);
}
.app-trend-income strong {
  color: var(--app-trend-capacity-text);
}
.app-trend-spending strong {
  color: var(--app-trend-progress-text);
}
.app-trend-savings strong {
  color: var(--app-trend-balance);
}
.app-trend-totals span {
  font-size: 9px;
  color: var(--app-muted);
  font-weight: 600;
}
.app-trend-totals strong {
  font-size: 18px;
  font-weight: 800;
}
.app-trend-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
}
.app-trend-row .app-row-icon {
  background: var(--envelope-tint, var(--surface));
  color: var(--envelope-accent, var(--text));
  border-radius: 8px;
  width: 28px;
  height: 28px;
}
.app-trend-row strong {
  font-size: 12px;
}
.app-trend-row b {
  margin-left: auto;
  font-size: 13px;
}
@media (prefers-color-scheme: dark) {
  .app-trend-status {
    background: color-mix(in srgb, var(--primary) 18%, transparent);
  }
  .feature-phone {
    --app-bg: #0c1525;
    --app-card: #152135;
    --app-ink: #f3f6fc;
    --app-muted: #a9b6c9;
    --app-line: #26354a;
    --app-green: #58cf85;
    --app-trend-capacity: #23688d;
    --app-trend-capacity-highlight: #368aaf;
    --app-trend-capacity-text: #baeafb;
    --app-trend-progress: #0788c4;
    --app-trend-progress-highlight: #2cc4f3;
    --app-trend-progress-text: #71d9ff;
    --app-trend-balance: #66bd94;
    --app-trend-balance-highlight: #84e5b4;
    --app-trend-tile-opacity: 22%;
  }
  .app-envelope-green {
    --envelope-color: #173a29;
    --envelope-shine: #245039;
    --envelope-ink: #f0fdf4;
    --envelope-accent: #4ade80;
    --envelope-tint: #245039;
    --envelope-secondary: #bbf7d0;
  }
  .app-envelope-red {
    --envelope-color: #4a1824;
    --envelope-shine: #692235;
    --envelope-ink: #fff1f2;
    --envelope-accent: #fb7185;
    --envelope-tint: #692235;
    --envelope-secondary: #fecdd3;
  }
  .app-envelope::before {
    background: var(--envelope-shine, rgb(255 255 255 / 0.035));
  }
}

.app-calendar-next-month {
  margin-top: 16px;
}

:root {
  --paper: var(--background);
  --ink: var(--text);
  --rule: var(--border);
  --panel-green: var(--card-green);
  --panel-purple: #e7d9ff;
  --panel-peach: #f9d3bf;
  --panel-blue: var(--card-blue);
  --panel-gold: var(--card-orange);
  --cover-navy: #0f172a;
  --cover-blue: #2563eb;
  --cover-foreground: #f8fafc;
  --cover-secondary: #cbd5e1;
  --site-content-width: 1160px;
  --editorial-width: var(--site-content-width);
  --page-gutter: 48px;
  --panel-gutter: 20px;
}
html {
  scrollbar-gutter: stable;
}

.site-header {
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.site-header .nav {
  min-height: 88px;
  border-bottom: 0;
}
.brand {
  font-size: 1.65rem;
}
.nav-links {
  gap: 28px;
}
.nav-links a {
  padding-block: 12px;
  font-size: 0.9rem;
}
.nav-links a[aria-current="page"]::after {
  height: 3px;
  bottom: 3px;
  background: var(--ink);
}
.button,
.homepage .button {
  border-radius: 999px;
  min-height: 54px;
  padding-inline: 26px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgb(0 0 0 / 0.1);
}
.story-link {
  text-underline-offset: 6px;
}
main h1,
main h2 {
  text-wrap: balance;
}
.homepage .autopilot-section {
  position: relative;
  margin: 24px 20px 0;
  padding-block: 48px;
  border-radius: 36px;
  overflow: hidden;
  background: var(--cover-blue);
}
.homepage .principle {
  width: min(1100px, calc(100% - 80px));
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  min-height: clamp(320px, 34vw, 480px);
}
.homepage .principle-copy .autopilot-heading-copy h1 {
  color: var(--cover-foreground);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 0.98;
}
.homepage .autopilot-heading-copy h1 span {
  color: inherit;
}
.homepage .principle-copy > p {
  color: var(--cover-foreground);
  font-size: 1.12rem;
}
.homepage .autopilot-actions .button {
  background: var(--cover-foreground);
  color: var(--cover-blue);
}
.autopilot-portrait {
  position: relative;
  display: grid;
  place-items: end center;
  min-width: 0;
  width: min(100%, 480px);
  aspect-ratio: 1;
  align-self: end;
  justify-self: center;
  margin-bottom: -48px;
  isolation: isolate;
}
.autopilot-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.sky-cloud {
  fill: #ffffff;
  opacity: 0.14;
}
.autopilot-budgy {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  /* Let the portrait's cropped base meet the hero edge, past its transparent margin. */
  transform: translateY(4%);
}
.homepage .mission {
  padding-block: clamp(80px, 9vw, 120px) clamp(40px, 5vw, 64px);
  text-align: left;
}
.mission-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: center;
  gap: 48px;
}
.mission-highlight {
  background: linear-gradient(var(--sun), var(--sun)) left bottom / 100% 0.1em
    no-repeat;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.mission-spark {
  width: 100%;
  overflow: visible;
  pointer-events: none;
}
.mission-spark-main {
  fill: var(--sun);
  transform: rotate(8deg);
  transform-origin: 105px 75px;
}
.mission-spark-small {
  fill: #70a7d5;
}
.mission-spark-trail,
.mission-spark-rays {
  stroke: #70a7d5;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.mission-spark-trail {
  stroke-dasharray: 4 8;
}
@media (max-width: 760px) {
  .mission-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .mission-spark {
    position: absolute;
    width: 56px;
    top: -64px;
    right: 8px;
  }
}
.homepage .mission h2 {
  max-width: 900px;
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.homepage .mission p {
  max-width: 660px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  text-wrap: pretty;
}
.homepage .mission .mission-lead {
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 600;
}
/* Shared section rhythm for the homepage story and signup. */
.homepage .life-connect,
.homepage .life-live,
.homepage .life-steps .budget-alert-feature,
.homepage .cta {
  padding-block: clamp(56px, 6vw, 80px);
}
.homepage .life-steps .life-step,
.homepage .life-steps .budget-alert-feature {
  padding-block: clamp(48px, 5vw, 64px);
}
.homepage .life-steps .life-step-layout,
.homepage .life-steps .budget-alert-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  max-width: var(--editorial-width);
  min-height: 400px;
}
.homepage .life-step-copy,
.homepage .budget-alert-copy {
  width: 100%;
  max-width: 520px;
}
.homepage .life-step-copy p,
.homepage .budget-alert-copy p {
  max-width: 440px;
}
.homepage .life-connect-art {
  position: relative;
  isolation: isolate;
  width: min(100%, 420px);
  margin-inline: auto;
  padding: 16px 28px;
}
.homepage .life-connect-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 8% 0 3%;
  background: var(--panel-blue);
  border-radius: 44% 56% 35% 65% / 35% 42% 58% 65%;
  transform: rotate(-6deg);
}
.homepage .life-connect-art .life-bank-art {
  width: min(100%, 340px);
  margin-inline: auto;
}
@media (max-width: 760px) {
  .homepage .life-connect-art {
    max-width: 360px;
    padding: 24px;
  }
  .homepage .life-connect-art .life-bank-art {
    width: min(100%, 260px);
  }
}
.homepage .how-step-tag {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 14px;
  background: none;
  color: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.homepage .life-step-copy h2,
.homepage .budget-alert-copy h2 {
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  letter-spacing: -0.055em;
}
.homepage .life-live {
  margin-inline: 0;
  width: 100%;
  background: transparent;
}
.homepage .life-live .life-step-layout {
  grid-template-columns: 1fr 1fr;
}
.homepage .life-live .life-step-copy {
  grid-column: auto;
  grid-row: auto;
}
.homepage .life-budget-art {
  position: relative;
  isolation: isolate;
  width: min(100%, 480px);
  margin-inline: auto;
  padding: 32px 8px;
}
.homepage .envelope-sparkle {
  position: absolute;
  width: clamp(18px, 2.5vw, 32px);
  height: auto;
  fill: currentColor;
  pointer-events: none;
}
.homepage .envelope-sparkle-top {
  top: 5%;
  right: 15%;
  color: #e9ad28;
  transform: rotate(12deg);
}
.homepage .envelope-sparkle-left {
  top: 42%;
  left: 0;
  width: 16px;
  color: #70a7d5;
  transform: rotate(-8deg);
}
.homepage .envelope-sparkle-bottom {
  bottom: 16%;
  right: 14%;
  width: 22px;
  color: #e9ad28;
  transform: rotate(8deg);
}
.homepage .life-envelope-art {
  width: min(100%, 480px);
}
.homepage .setup-story {
  display: grid;
  gap: 24px;
  padding-block: clamp(32px, 4vw, 48px);
}
.homepage .life-steps .setup-story .life-step {
  padding-block: 0;
}
.homepage .life-steps .setup-story .life-step-layout {
  min-height: 0;
  row-gap: 12px;
  column-gap: 24px;
}
.homepage .setup-story .life-step-copy h2 {
  max-width: 520px;
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
}
.setup-visual {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: min(100%, 360px);
  justify-self: start;
  margin: 0;
}
.homepage .setup-story .setup-caption {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  text-wrap: pretty;
}
.setup-caption p {
  margin: 0;
}
.setup-caption .story-link {
  display: inline;
  font-size: inherit;
  text-underline-offset: 2px;
}
.homepage .setup-story .life-connect-art {
  max-width: 320px;
}
.homepage .setup-story .life-bank-art {
  max-width: 240px;
}
.homepage .setup-story .life-budget-art {
  max-width: 336px;
  padding-block: 20px;
}
.homepage .life-steps .budget-alert-feature {
  background: var(--paper);
}
.homepage .budget-alert-art {
  /* Include the phone's tilt and shadow in the row's visual spacing. */
  padding-block: 32px;
  min-width: 0;
}
.homepage .budget-alert-copy p + p {
  margin-top: 20px;
}
.homepage .budget-alert-preview {
  transform: rotate(5deg);
  box-shadow: 12px 16px 0 var(--panel-green);
}
.homepage .budget-alert-feature .budget-alert {
  gap: 8px;
  padding: 6px 8px;
}
.homepage .budget-alert-feature .budget-alert > div {
  gap: 0;
  line-height: 1.3;
}
.homepage .budget-alert-feature .budget-alert strong {
  font-size: 13px;
  line-height: 1.3;
}
.homepage .budget-alert-preview .notification-phone-clock {
  font-size: 52px;
  margin-bottom: 24px;
}
.homepage .cta {
  --editorial-width: var(--site-content-width);
  background: var(--cover-blue);
}
.homepage .cta-card {
  color: var(--cover-foreground);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 28px 48px;
}
.homepage .cta-card h2 {
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
  letter-spacing: -0.055em;
}
.homepage .cta-card .newsletter-fields {
  grid-template-columns: 1fr;
}
.homepage .cta-card .button {
  background: var(--cover-foreground);
  color: var(--cover-blue);
  border-radius: 12px;
}
.homepage .cta-copy p,
.homepage .cta-card .newsletter-form > label,
.homepage .cta-card .newsletter-note {
  color: var(--cover-foreground);
}
.homepage .cta-card .newsletter-fields input {
  border-color: var(--border-strong);
  border-radius: 12px;
  min-height: 56px;
}
.features-page {
  background: var(--paper);
  padding-bottom: 48px;
}
.feature-chapter {
  position: relative;
  margin: 0 auto 24px;
  padding: 40px 0;
  overflow: hidden;
  border-radius: 32px;
}
.feature-chapter:first-of-type {
  padding-top: 40px;
}
.feature-chapter + .feature-chapter .life-step-layout::before {
  display: none;
}
.features-page .life-step-copy h2 {
  font-size: clamp(3rem, 5.2vw, 4.8rem);
  letter-spacing: -0.055em;
}
.feature-section-tag {
  color: inherit;
  background: none;
  padding: 0;
  margin-bottom: 24px;
}
.feature-phone-frame {
  --preview-scale: 0.75;
  position: relative;
  width: calc(320px * var(--preview-scale));
  aspect-ratio: 9 / 19;
  margin-inline: auto;
}
.feature-phone-frame .feature-phone {
  position: absolute;
  inset: 0 auto auto 0;
  width: 320px;
  max-width: none;
  transform: scale(var(--preview-scale));
  transform-origin: top left;
  box-shadow: 0 16px 28px rgb(18 34 26 / 0.12);
}
#budget.feature-chapter {
  background: var(--panel-green);
  border-radius: 32px 100px 32px 32px;
}
#transactions.feature-chapter {
  background: var(--panel-purple);
}
#upcoming.feature-chapter {
  background-color: var(--panel-blue);
}
#trends.feature-chapter {
  background: var(--panel-peach);
  color: var(--text);
}
#trends .life-step-copy p {
  color: var(--text-secondary);
}
.features-launch {
  border: 0;
  padding-block: 88px 48px;
}
/* Features overview grid */
.feature-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.feature-showcase .feature-chapter {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px;
  border-radius: 24px;
}
.feature-showcase #budget {
  border-radius: 24px;
}
.feature-showcase .feature-chapter .life-step-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px;
  align-items: center;
  gap: 24px;
}
.feature-showcase .feature-chapter .life-step-copy {
  grid-area: auto;
  max-width: none;
  margin: 0;
  text-align: left;
}
.feature-showcase .feature-chapter .life-step-copy :is(h1, h2) {
  font-size: clamp(1.85rem, 2.5vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  text-wrap: initial;
  font-weight: 700;
}
.feature-heading-aside {
  display: block;
  margin-top: 8px;
  font-size: 0.9375rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: normal;
}
.feature-showcase .feature-chapter .life-step-copy p {
  max-width: 42ch;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.feature-showcase .feature-section-tag {
  justify-content: flex-start;
  margin-bottom: 20px;
  font-size: 0.8rem;
}
.feature-showcase .feature-phone-frame {
  --preview-scale: 0.65;
  grid-area: auto;
}
.features-page .features-launch {
  padding-block: 64px 16px;
}
.features-heading {
  padding-block: 32px 0;
  text-align: center;
}
.features-heading h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 761px) and (max-width: 1199px) {
  .feature-showcase .feature-chapter .life-step-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    height: 100%;
  }
  .feature-showcase .feature-chapter .life-step-copy {
    align-self: start;
  }
  .feature-showcase .feature-phone-frame {
    align-self: end;
  }
}
@media (max-width: 760px) {
  .feature-showcase {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature-showcase .feature-chapter {
    padding: 28px 24px;
  }
  .feature-showcase .feature-chapter .life-step-layout {
    grid-template-columns: minmax(0, 1fr) 208px;
  }
}
@media (max-width: 540px) {
  .feature-showcase .feature-chapter .life-step-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feature-showcase .feature-chapter .life-step-copy :is(h1, h2) {
    font-size: 1.85rem;
  }
  .feature-showcase .feature-section-tag {
    margin-bottom: 12px;
  }
}
/* Security */
.security-page {
  background: var(--paper);
}
.security-hero {
  padding-block: 84px;
}
.security-hero h1 {
  font-size: clamp(3.5rem, 7vw, 6.3rem);
}
.security-label {
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.security-hero-art {
  padding: 36px 12px;
  border: 1px solid var(--rule);
  border-radius: 48% 48% 12px 12px;
  background: var(--envelope-household-surface);
}
.security-assurances {
  background: var(--envelope-household-surface);
  padding-block: 72px;
}
.security-assurances h1 {
  max-width: none;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
}
.security-card-grid {
  gap: 0;
}
.security-card {
  padding: 24px 32px;
  border: 0;
  border-left: 1px solid var(--border-strong);
  border-radius: 0;
  background: none;
}
.security-card:first-child {
  padding-left: 0;
  border-left: 0;
}
.security-card-icon {
  width: 44px;
  height: 44px;
  stroke: var(--ink);
}
.security-akahu {
  padding-block: 112px;
}
.security-akahu-facts {
  padding: 0 0 0 36px;
  border: 0;
  border-left: 2px solid var(--rule);
  background: none;
  border-radius: 0;
}
.security-details {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
}
.security-details h2 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}
.security-faq details:first-child {
  padding-top: 0;
}
.security-faq summary {
  padding-right: 16px;
}
.security-contact {
  margin-bottom: 64px;
  padding: 64px 32px;
  background: var(--envelope-household-shine);
  border-radius: 32px;
}
.about-page {
  background: var(--paper);
}
.about-letter {
  grid-template-columns: 0.95fr 1.1fr;
  gap: 80px;
  padding-block: 100px;
}
.about-letter h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(3rem, 5.6vw, 5rem);
  line-height: 1.04;
}
.about-photo-frame {
  padding: 14px 14px 50px;
  border: 0;
  border-radius: 3px;
  transform: rotate(-5deg);
  box-shadow: 0 20px 50px rgb(40 31 21 / 0.13);
}
.about-photo {
  border-radius: 0;
  aspect-ratio: 4 / 5;
}
.about-photo-frame::before {
  inset: -32px 34% auto;
  height: 58px;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--envelope-mobility-surface) 75%, transparent);
  transform: rotate(8deg);
}
.about-photo-frame::after {
  display: none;
}
.about-photo-sparkle {
  width: 66px;
  height: 66px;
  top: auto;
  bottom: -18px;
  right: -24px;
  color: var(--envelope-mobility-accent);
}
.about-apps {
  padding-bottom: 100px;
}
.about-apps h2 {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.about-app {
  border: 0;
  border-radius: 24px;
  background: var(--panel-green);
}
.about-app:nth-child(2) {
  background: var(--envelope-mobility-surface);
}
.about-app-icon {
  box-shadow: 0 12px 20px rgb(30 40 20 / 0.12);
  transform: rotate(-6deg);
}
.about-app:nth-child(2) .about-app-icon {
  transform: rotate(6deg);
}
.support-page {
  padding: 24px 20px 64px;
}
.support-welcome {
  padding: clamp(28px, 6vw, 80px);
  border-radius: 32px;
  background: var(--envelope-shopping-surface);
  gap: 32px;
}
.support-welcome h1 {
  font-size: clamp(3rem, 5.7vw, 5.5rem);
  line-height: 1.02;
}
.support-intro {
  font-family: Georgia, serif;
  font-size: 1.8rem;
  font-style: italic;
}
.support-email {
  background: var(--primary);
  color: var(--primary-foreground);
}
.support-details {
  font-size: 0.95rem;
  line-height: 1.8;
}
.support-illustration::before {
  inset: 4% 0;
  border-radius: 50% 50% 10% 10%;
  background: var(--envelope-shopping-shine);
  transform: rotate(5deg);
}
.support-illustration img {
  transform: rotate(-4deg);
}
.legal-hero {
  margin: 16px 20px 0;
  border-radius: 32px;
  padding-block: 56px;
  background: var(--envelope-household-surface);
}
.legal-hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.5rem);
}
.legal-nav {
  padding: 20px 14px;
  border: 1px solid var(--rule);
  border-radius: 18px;
}
.legal-content section {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}
.legal-content h2 {
  font-size: 1.75rem;
  letter-spacing: -0.035em;
}
.legal-content .legal-note {
  background: var(--envelope-household-shine);
  color: var(--panel-text-muted);
}
.message-card {
  border-radius: 28px;
  box-shadow: 0 20px 60px rgb(var(--shadow) / 0.07);
}
.not-found-page {
  background: var(--panel-gold);
}

/* Shared marketing footer */
.site-footer {
  padding-block: 52px 64px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.site-footer .footer-grid {
  grid-template-columns: 180px minmax(0, 1fr) 240px;
  align-items: start;
  gap: 36px 40px;
}
.site-footer .footer-brand {
  font-size: 2.5rem;
  line-height: 1;
}
.site-footer .footer-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.maker-section {
  min-width: 0;
}
.maker-note {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.maker-copy {
  min-width: 0;
  max-width: 540px;
}
.maker-note h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.maker-note p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  text-wrap: pretty;
}
.maker-art {
  width: 64px;
  aspect-ratio: 5 / 6;
}
.maker-map {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 4px 20px;
  text-align: left;
}
.site-footer .footer-links a {
  min-height: 40px;
}
.footer-copyright {
  white-space: normal;
}
@media (max-width: 1100px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 28px 40px;
  }
  .site-footer .footer-identity {
    grid-column: 1 / -1;
  }
  .maker-section {
    grid-column: 1;
  }
  .site-footer .footer-links {
    grid-column: 2;
  }
}
@media (max-width: 900px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .site-footer .footer-links {
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 20px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
  }
  .site-footer .footer-links a {
    min-height: 44px;
  }
}
@media (max-width: 600px) {
  .site-footer .footer-brand {
    font-size: 2.5rem;
  }
  .maker-note {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 20px;
  }
  .maker-art {
    width: 56px;
    grid-column: 1;
    grid-row: 1;
  }
  .maker-copy {
    display: contents;
  }
  .maker-note h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 1.5rem;
  }
  .maker-note p {
    grid-column: 1 / -1;
  }
  .site-footer .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.security-page header.security-hero {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  margin-block: 24px 56px;
  padding: 48px;
  border-radius: 28px;
  background: var(--cover-navy);
  color: var(--cover-foreground);
}
.security-hero .security-label {
  color: var(--cover-secondary);
  margin-bottom: 20px;
}
.security-page .security-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.04;
  margin-bottom: 24px;
}
.security-hero h1 span {
  color: inherit;
}
.security-page .security-hero p {
  max-width: 500px;
  color: var(--cover-secondary);
  font-size: 1rem;
  line-height: 1.7;
}
.security-page .security-hero-art {
  width: 280px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
@media (max-width: 760px) {
  .security-page header.security-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-block: 20px 40px;
    padding: 28px 24px;
  }
  .security-page header.security-hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  .security-page .security-hero-art {
    width: min(100%, 200px);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --panel-purple: #33205d;
    --panel-peach: #492313;
    --cover-navy: #101a2d;
    --cover-blue: #172554;
  }
  .homepage .autopilot-actions .button {
    background: var(--primary);
    color: var(--primary-foreground);
  }
  .about-photo-frame {
    background: var(--surface-elevated);
  }
}

@media (max-width: 900px) {
  .about-letter {
    gap: 40px;
  }
  .feature-chapter .life-step-layout {
    gap: 32px;
  }
  .security-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 760px) {
  .site-header {
    position: static;
  }
  .site-header .nav {
    min-height: 76px;
  }
  .nav-links {
    gap: 16px;
  }
  .homepage .autopilot-section {
    margin: 16px 12px 0;
    border-radius: 24px;
    padding-block: 24px;
  }
  .homepage .principle {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }
  .homepage .principle-copy {
    padding-block: 12px 0;
    padding-inline-start: 0;
    display: block;
    text-align: center;
  }
  .homepage .principle-copy > p {
    margin-bottom: 24px;
  }
  .homepage .autopilot-heading-lockup {
    margin-bottom: 40px;
  }
  .homepage .principle-copy .autopilot-heading-copy h1 {
    font-size: clamp(2.5rem, 11.5vw, 4rem);
  }
  .homepage .autopilot-heading-copy h1 span {
    margin-inline: auto;
  }
  .homepage .autopilot-actions {
    justify-content: center;
  }
  .autopilot-portrait {
    width: min(100%, 360px);
    margin-inline: auto;
    margin-top: 28px;
    margin-bottom: -24px;
  }
  .homepage .life-connect,
  .homepage .life-live,
  .homepage .life-steps .budget-alert-feature,
  .homepage .cta {
    padding-block: 56px;
  }
  .homepage .life-steps .life-step,
  .homepage .life-steps .budget-alert-feature {
    padding-block: 48px;
  }
  .homepage .life-steps .life-step-layout,
  .homepage .life-steps .budget-alert-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    min-height: 0;
  }
  .homepage .life-budget-art {
    width: min(100%, 368px);
    padding: 32px 20px;
  }
  .homepage .setup-story {
    gap: 40px;
  }
  .homepage .life-steps .setup-story .life-step-layout {
    min-height: 0;
    gap: 20px;
  }
  .setup-visual {
    justify-self: center;
  }
  .homepage .setup-story .life-bank-art {
    max-width: 220px;
  }
  .homepage .life-envelope-art {
    width: min(100%, 320px);
  }
  .homepage .budget-alert-art {
    margin-top: 20px;
  }
  .homepage .budget-alert-preview {
    box-shadow: 8px 10px 0 var(--panel-green);
  }
  .homepage .cta-card {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .feature-phone-frame {
    --preview-scale: 0.65;
  }
  .feature-chapter,
  .feature-chapter:first-of-type {
    padding-block: 32px;
    border-radius: 24px;
  }
  .feature-chapter:first-of-type {
    width: calc(100% - 24px);
  }
  #budget.feature-chapter {
    border-radius: 24px 64px 24px 24px;
  }
  .feature-chapter .life-step-layout {
    gap: 28px;
  }
  .features-page .life-step-copy h2 {
    font-size: clamp(2.6rem, 9vw, 4rem);
  }
  .security-hero {
    padding-block: 56px;
  }
  .security-card,
  .security-card:first-child {
    border-left: 0;
    border-top: 1px solid var(--border-strong);
    padding: 28px 0;
  }
  .security-card-icon {
    margin-bottom: 16px;
  }
  .security-akahu {
    padding-block: 64px;
  }
  .security-akahu-facts {
    padding-left: 24px;
  }
  .security-contact {
    padding: 40px 24px;
  }
  .about-letter {
    grid-template-columns: 1fr;
    padding-block: 64px;
    gap: 56px;
  }
  .about-photo-frame {
    max-width: 300px;
  }
  .about-photo-sparkle {
    right: 0;
    width: 44px;
    height: 44px;
  }
  .about-letter h1 {
    font-size: clamp(3rem, 10vw, 4.5rem);
  }
  .about-copy,
  .about-app {
    min-width: 0;
  }
  .about-copy > .story-link {
    overflow-wrap: anywhere;
  }
  .about-apps {
    padding-bottom: 64px;
  }
  .support-page {
    padding: 12px 12px 40px;
  }
  .support-welcome {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
  .support-welcome h1 {
    font-size: clamp(3rem, 10vw, 4.5rem);
  }
  .support-illustration {
    width: min(100%, 380px);
    justify-self: center;
  }
  .legal-hero {
    margin: 12px;
    border-radius: 24px;
  }
  .legal-hero {
    padding-block: 40px;
  }
  .site-footer {
    padding-block: 40px 56px;
  }
}
@media (max-width: 400px) {
  .support-email {
    padding-inline: 16px;
    font-size: 0.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button,
  .homepage .button {
    transition: none;
  }
  .button:hover {
    transform: none;
  }
}
.site-header .nav,
.site-footer .container,
main .container,
.homepage .container,
.features-page .container,
.security-page .container,
.about-letter,
.about-apps {
  width: min(var(--editorial-width), calc(100% - 2 * var(--page-gutter)));
  max-width: none;
  padding-inline: 0;
}
.legal-hero .container {
  width: min(
    var(--editorial-width),
    calc(100% - 2 * (var(--page-gutter) - var(--panel-gutter)))
  );
}
.homepage .autopilot-section .principle {
  width: min(
    var(--editorial-width),
    calc(100% - 2 * (var(--page-gutter) - var(--panel-gutter)))
  );
}
.feature-chapter {
  width: calc(100% - 2 * var(--panel-gutter));
  max-width: calc(
    var(--editorial-width) + 2 * (var(--page-gutter) - var(--panel-gutter))
  );
}
.feature-chapter .life-step-layout {
  width: calc(100% - 2 * (var(--page-gutter) - var(--panel-gutter)));
}
.support-page {
  padding-inline: var(--panel-gutter);
}
.support-welcome {
  width: 100%;
  max-width: none;
  padding-inline: max(
    calc(var(--page-gutter) - var(--panel-gutter)),
    calc((100% - var(--editorial-width)) / 2)
  );
}
.security-contact {
  padding-inline: 32px;
}
.site-footer .footer-grid {
  padding-inline: 0;
}
@media (max-width: 760px) {
  :root {
    --page-gutter: 24px;
    --panel-gutter: 12px;
  }
  .homepage .cta-card .newsletter-form {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
    padding: 0;
  }
  .security-contact {
    padding-inline: 24px;
  }
}

/* The product overview has a wider canvas than the navigation and prose. */
.features-page .feature-showcase {
  width: min(1600px, calc(100% - 2 * var(--panel-gutter)));
  margin-block: 32px 0;
}

/* Homepage composition: a bold opening, paired setup steps, a quiet payoff. */
.homepage .autopilot-section {
  margin: 20px;
  padding-block: 40px;
  border-radius: 32px;
}
.homepage .principle {
  min-height: 400px;
  gap: 32px;
}
.homepage .principle-copy .autopilot-heading-copy h1 {
  font-size: clamp(3rem, 5.8vw, 5rem);
  line-height: 1.04;
}
.homepage .autopilot-heading-lockup {
  margin-bottom: 36px;
}
.homepage .autopilot-portrait {
  margin-bottom: -40px;
}
.homepage .mission {
  padding-block: 48px;
  text-align: center;
}
.homepage .mission-layout {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 12px;
}
.homepage .mission-copy {
  max-width: 620px;
}
.homepage .mission-copy p {
  margin-inline: auto;
}
.homepage .mission h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.35;
}
.homepage .mission p {
  font-size: 1rem;
}
.homepage .mission-spark {
  position: absolute;
  width: 72px;
  left: -36px;
  top: -66px;
  transform: rotate(-12deg);
}
.homepage .setup-story {
  width: min(var(--editorial-width), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
  padding-block: 64px 72px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.homepage .life-steps .setup-story .life-step {
  padding: 40px 36px;
  border-radius: 28px;
  background: color-mix(in srgb, var(--panel-blue) 60%, var(--background));
}
.homepage .life-steps .setup-story .life-live {
  background: color-mix(in srgb, var(--panel-gold) 52%, var(--background));
}
.homepage .life-steps .setup-story .life-step-layout {
  width: 100%;
  height: 100%;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 40px;
  text-align: center;
}
.homepage .setup-story .life-step-copy h2 {
  max-width: 340px;
  margin-inline: auto;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.1;
}
.homepage .setup-visual {
  width: 100%;
  justify-self: center;
  align-self: start;
  grid-template-rows: 280px auto;
  align-items: center;
  gap: 32px;
}
.homepage .setup-caption .setup-features-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
}
.homepage .setup-story .life-connect-art {
  display: grid;
  place-items: center;
  height: 280px;
  padding: 0;
  max-width: 290px;
}
.homepage .life-connect-art::before {
  display: none;
}
.homepage .setup-story .life-bank-art {
  width: auto;
  max-width: 100%;
  max-height: 280px;
}
.homepage .setup-story .life-budget-art {
  max-width: 340px;
  padding: 0;
}
.homepage .setup-story .setup-caption {
  align-self: start;
  max-width: 320px;
  font-size: 1rem;
  line-height: 1.6;
}
.homepage .life-steps .budget-alert-feature {
  padding-block: 0 80px;
}
.homepage .life-steps .budget-alert-layout {
  min-height: 0;
  gap: 64px;
  padding: 48px 56px;
  border-radius: 32px;
  background: color-mix(in srgb, var(--panel-green) 38%, var(--background));
}
.homepage .budget-alert-copy h2 {
  font-size: clamp(2.25rem, 3.8vw, 3.25rem);
}
.homepage .budget-alert-copy p {
  font-size: 1rem;
}
.homepage .budget-alert-art {
  padding-block: 12px;
}
.homepage .life-steps .budget-alert-preview {
  width: 244px;
  aspect-ratio: 9 / 16;
  border-width: 4px;
  border-radius: 34px;
}
.homepage .cta {
  --editorial-width: var(--site-content-width);
  padding-block: 64px;
}
.homepage .cta-card {
  align-items: center;
  gap: 32px;
}
@media (min-width: 761px) {
  .homepage .cta-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  }
}
.homepage .cta-card h2 {
  max-width: 680px;
  font-size: clamp(2.25rem, 3.6vw, 3rem);
}
@media (max-width: 1000px) {
  .homepage .life-steps .budget-alert-layout {
    padding: 40px 32px;
    gap: 32px;
  }
  .homepage .life-steps .setup-story .life-step {
    padding: 36px 24px;
  }
}
@media (max-width: 760px) {
  .homepage .autopilot-section {
    margin: 12px;
    padding-block: 32px 0;
    border-radius: 24px;
  }
  .homepage .principle {
    min-height: 0;
    gap: 0;
  }
  .homepage .principle-copy .autopilot-heading-copy h1 {
    font-size: clamp(2.5rem, 10.5vw, 4rem);
  }
  .homepage .autopilot-portrait {
    width: min(85%, 320px);
    margin-block: 24px 0;
  }
  .homepage .mission {
    padding-block: 36px;
  }
  .homepage .mission-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .homepage .mission-spark {
    width: 48px;
    left: auto;
    right: 0;
    top: -48px;
  }
  .homepage .setup-story {
    grid-template-columns: 1fr;
    padding-block: 36px;
    gap: 20px;
  }
  .homepage .setup-visual {
    grid-template-rows: 240px auto;
  }
  .homepage .setup-story .life-connect-art {
    height: 240px;
  }
  .homepage .setup-story .life-bank-art {
    max-width: 100%;
    max-height: 240px;
  }
  .homepage .setup-story .life-budget-art {
    max-width: 300px;
  }
  .homepage .life-steps .budget-alert-feature {
    padding-block: 0 40px;
  }
  .homepage .life-steps .budget-alert-layout {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 24px;
    border-radius: 24px;
  }
  .homepage .budget-alert-art {
    margin-top: 0;
    padding-block: 8px 20px;
  }
  .homepage .cta {
    padding-block: 48px;
  }
  .homepage .cta-card {
    gap: 32px;
  }
}

/* Product-led homepage: oversized phone, with the mascot grounded at the edge. */
.homepage .autopilot-heading-lockup {
  /* Leave breathing room below the underline, which extends beyond the text box. */
  margin-bottom: clamp(32px, 3vw, 44px);
}
.homepage .autopilot-actions .button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
}
.autopilot-product {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: center;
  height: 500px;
  align-self: end;
  margin-bottom: -40px;
}
.autopilot-product .feature-phone-frame {
  --preview-scale: 1.05;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) rotate(10deg);
  transform-origin: center 35%;
}
.homepage .autopilot-product .feature-phone {
  transform: scale(var(--preview-scale));
  background: var(--app-bg);
  padding: 0;
  box-shadow: 0 16px 32px rgb(15 23 42 / 0.2);
}
.autopilot-companion {
  position: absolute;
  width: 200px;
  left: -136px;
  bottom: 0;
  overflow: hidden;
}
.homepage .setup-visual {
  grid-template-rows: 340px auto;
}
.bank-preview-icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0 auto 20px;
  max-width: 260px;
}
.bank-preview-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 7px;
}
.homepage .budget-detail,
.homepage .transaction-detail {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 340px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 12px 32px rgb(var(--shadow) / 0.08);
}
.budget-detail .app-budget-group {
  margin-top: 16px;
}
.budget-detail .app-envelope-green,
.budget-detail .app-budget-group:last-child .app-envelope:last-child {
  display: none;
}
.budget-detail .app-section-heading {
  margin-bottom: 8px;
  font-size: 16px;
}
.budget-detail::after {
  display: none;
}
.homepage .budget-alert-feature .budget-alert-preview {
  transform: none;
  box-shadow: 0 12px 28px rgb(var(--shadow) / 0.1);
}
@media (max-width: 1000px) and (min-width: 761px) {
  .autopilot-companion {
    width: 170px;
    left: -124px;
  }
}
@media (max-width: 760px) {
  .homepage .autopilot-section {
    padding-bottom: 0;
  }
  .homepage .principle-copy > p {
    margin-inline: auto;
  }
  .autopilot-product {
    max-width: 340px;
    height: 400px;
    margin-block: 32px 0;
    padding: 0;
  }
  .autopilot-product .feature-phone-frame {
    --preview-scale: 0.9;
    top: 4px;
  }
  .autopilot-companion {
    width: 150px;
    left: -112px;
  }
  .homepage .setup-visual {
    grid-template-rows: auto auto;
    gap: 28px;
  }
  .homepage .budget-detail,
  .homepage .transaction-detail {
    padding: 14px 10px;
  }
}

/* Features show the useful interface without device hardware or navigation. */
.feature-showcase .feature-crop {
  width: 100%;
  max-width: 360px;
  min-height: 360px;
  padding: 20px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: var(--app-bg);
  box-shadow: 0 12px 32px rgb(var(--shadow) / 0.08);
  text-align: left;
  align-self: end;
}
.feature-crop::after {
  display: none;
}
.feature-crop .app-budget-group {
  margin-top: 18px;
}
/* A compact excerpt keeps Budget balanced with the other feature illustrations. */
.feature-crop-budget .app-budget-group {
  margin-top: 12px;
}
.feature-crop-budget .app-section-heading {
  font-size: 16px;
  margin-bottom: 4px;
}
.feature-crop-budget .app-envelope-preview-extra {
  display: block;
}
.feature-showcase .feature-crop-budget,
.feature-showcase .feature-crop-trends {
  height: 360px;
  overflow: hidden;
}
.feature-crop-budget .app-budget-upcoming,
.feature-crop-budget .app-budget-goals,
.feature-crop-transactions .app-date-heading ~ .app-date-heading,
.feature-crop-transactions .app-row-group:last-child,
.feature-crop-upcoming .app-calendar-next-month,
.feature-crop-upcoming .app-calendar-next-month ~ *,
.feature-crop-trends .app-trend-row {
  display: none;
}
.feature-crop .app-calendar-month {
  margin-top: 0;
}
.feature-crop .app-calendar-days {
  margin-inline: -8px;
}
.feature-crop .app-transaction-row {
  min-height: 60px;
}
.feature-crop .app-date-heading {
  margin-top: 18px;
}
@media (max-width: 400px) {
  .feature-showcase .feature-crop {
    padding: 16px 12px;
  }
  .feature-crop .app-row-group {
    padding-inline: 8px;
  }
  .feature-crop .app-transaction-row {
    gap: 6px;
  }
}

.feature-showcase #budget {
  width: 100%;
}
.feature-crop .app-trend-overview {
  margin-top: 0;
  padding: 8px;
}
.feature-crop .app-native-chart {
  height: 150px;
}
.feature-crop .app-trend-totals {
  gap: 6px;
  margin-bottom: 0;
}
.feature-crop .app-trend-totals strong {
  font-size: 15px;
}
@media (min-width: 1200px), (min-width: 541px) and (max-width: 760px) {
  .feature-showcase .feature-chapter .life-step-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
  }
  .feature-showcase .feature-crop {
    padding: 16px 12px;
    align-self: center;
  }
  .feature-crop .app-row-group {
    padding-inline: 8px;
  }
}

.homepage .transaction-detail .app-transaction-row {
  min-height: 64px;
}

.homepage .transaction-detail .app-date-heading {
  margin-top: 0;
  font-size: 13px;
  font-weight: 700;
}
.app-row-bank-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 7px;
}

/* One quiet mission statement between the promise and the product. */
.homepage .mission-statement {
  padding-block: 48px 0;
  text-align: center;
}
.homepage .mission-statement h2 {
  max-width: 760px;
  margin: 0 auto;
  font-family: inherit;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--text-secondary);
}
.homepage .mission-statement h2 strong {
  font-weight: 600;
  color: var(--text);
}
@media (max-width: 760px) {
  .homepage .mission-statement {
    padding-top: 32px;
  }
}

/* Lock-screen notification styling, without a device frame. */
.notification-examples {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
.notification-stack {
  display: grid;
  gap: 12px;
}
.homepage .notification-stack .budget-alert {
  gap: 12px;
  padding: 16px;
  border-color: color-mix(in srgb, var(--surface) 65%, transparent);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  backdrop-filter: blur(20px);
  box-shadow: 0 3px 10px rgb(var(--shadow) / 0.06);
  transform: none;
}
.homepage .notification-stack .notification-message {
  flex: 1;
  min-width: 0;
  gap: 3px;
  line-height: 1.4;
}

.homepage .notification-stack .budget-alert strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

@media (prefers-color-scheme: dark) {
  .homepage .notification-stack .budget-alert {
    background: rgb(255 255 255 / 0.08);
    border-color: rgb(255 255 255 / 0.12);
  }
}

@media (max-width: 400px) {
  .homepage .notification-stack .budget-alert {
    padding: 12px;
    gap: 8px;
  }
}

.homepage .notification-stack .notification-message > span:last-child {
  font-size: 13px;
  line-height: 1.4;
}

/* Responsive layouts for the product-led homepage and feature crops. */
@media (min-width: 761px) and (max-width: 1000px) {
  .autopilot-product {
    height: 450px;
  }
  .autopilot-product .feature-phone-frame {
    --preview-scale: 0.9;
    top: 24px;
  }
  .autopilot-companion {
    left: -64px;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .homepage .cta-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px;
  }
  .homepage .cta-card h2 {
    font-size: 2rem;
  }
}
@media (min-width: 641px) and (max-width: 1199px) {
  .features-page .feature-showcase {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-showcase .feature-chapter .life-step-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
    align-items: center;
    gap: 32px;
  }
  .feature-showcase .feature-chapter .life-step-copy,
  .feature-showcase .feature-crop {
    align-self: center;
  }
}
@media (max-width: 760px) {
  .autopilot-companion {
    left: -12px;
    width: 140px;
  }
  .autopilot-product .feature-phone-frame {
    left: 57%;
  }
  .homepage .notification-examples {
    max-width: 340px;
  }
  .homepage .budget-alert-copy h2 {
    font-size: clamp(1.875rem, 6vw, 2.5rem);
  }
  .homepage .cta-card .newsletter-form {
    max-width: none;
  }
}
@media (max-width: 640px) {
  .feature-showcase .feature-chapter .life-step-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
@media (max-width: 400px) {
  .autopilot-product {
    height: 360px;
  }
  .autopilot-product .feature-phone-frame {
    --preview-scale: 0.78;
    left: 55%;
    top: 12px;
  }
  .autopilot-companion {
    width: 120px;
  }
  .homepage .transaction-detail .app-row-group {
    padding-inline: 8px;
  }
  .homepage .transaction-detail .app-transaction-row {
    gap: 6px;
  }
}

/* Soft cloud: a quiet marketing canvas around the unchanged app artwork. */
.cloud-marketing {
  --home-card-gap: 24px;
  --home-section-gap: 72px;
  --home-card-padding: 40px;
  --cloud-background: #f2f5fa;
  --cloud-surface: #ffffff;
  --cloud-ink: #33445e;
  --cloud-muted: #536176;
  --cloud-action: #476991;
  --cloud-action-ink: #ffffff;
  --cloud-line: #e3eaf3;
  --cloud-shadow: 0 8px 24px rgb(50 70 101 / 0.025);
  background: var(--cloud-background);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}
.cloud-marketing .site-header {
  position: relative;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}
.cloud-marketing .site-header .brand,
.cloud-marketing .site-header .nav-links {
  color: var(--cloud-ink);
}
.cloud-marketing .homepage,
.cloud-marketing .features-page,
.cloud-marketing .site-footer,
.cloud-marketing .homepage .budget-alert-feature,
.cloud-marketing .homepage .cta {
  background: transparent;
}
.cloud-marketing .homepage .autopilot-section,
.cloud-marketing .homepage .life-steps .setup-story .life-step,
.cloud-marketing
  .features-page
  :is(#budget, #transactions, #upcoming, #trends) {
  background: var(--cloud-surface);
  border: 1px solid var(--cloud-line);
  border-radius: 28px;
  box-shadow: var(--cloud-shadow);
}
.cloud-marketing .homepage .life-steps .budget-alert-layout {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.cloud-marketing .homepage .principle-copy .autopilot-heading-copy h1,
.cloud-marketing .homepage .setup-story .life-step-copy h2,
.cloud-marketing .homepage .budget-alert-copy h2,
.cloud-marketing .features-page .features-heading h1,
.cloud-marketing .feature-chapter .life-step-copy h2,
.cloud-marketing .features-page .feature-section-tag {
  color: var(--cloud-ink);
}
.cloud-marketing .features-page .feature-section-tag {
  background: transparent;
}
.cloud-marketing .homepage .setup-caption,
.cloud-marketing .homepage .budget-alert-copy > p,
.cloud-marketing
  .features-page
  :is(#budget, #transactions, #upcoming, #trends)
  .life-step-copy
  > p {
  color: var(--cloud-muted);
}
.cloud-marketing .homepage .autopilot-actions .button,
.cloud-marketing .homepage .cta-card .button,
.cloud-marketing .features-page .features-launch .button {
  background: var(--cloud-action);
  color: var(--cloud-action-ink);
  border: 0;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgb(34 53 82 / 0.06);
}
/* Match the setup and notification containers, including their mobile gutters. */
.cloud-marketing .homepage .cta {
  --editorial-width: var(--home-content-width);
  padding-block: var(--home-section-gap);
}
.cloud-marketing .homepage .setup-story {
  gap: var(--home-card-gap);
  padding-block: 0;
}
.cloud-marketing .homepage .mission-statement {
  padding-block: var(--home-section-gap);
}
.cloud-marketing .homepage .life-steps .setup-story .life-step,
.cloud-marketing .homepage .life-steps .budget-alert-layout {
  padding: var(--home-card-padding);
}
.cloud-marketing .homepage .life-steps .budget-alert-feature {
  padding-block: var(--home-section-gap) 0;
}
.cloud-marketing .homepage .cta-card {
  background: var(--cloud-surface);
  color: var(--cloud-ink);
  border: 1px solid var(--cloud-line);
  border-radius: 28px;
  padding: var(--home-card-padding);
}
.cloud-marketing .homepage .cta-card h2,
.cloud-marketing .homepage .cta-card .newsletter-form > label {
  color: var(--cloud-ink);
}
.cloud-marketing .homepage .cta-card p {
  color: var(--cloud-muted);
}
@media (prefers-color-scheme: dark) {
  .cloud-marketing {
    --cloud-background: #0c1421;
    --cloud-surface: #152132;
    --cloud-ink: #e3ebf6;
    --cloud-muted: #afbdd0;
    --cloud-action: #a8c7ed;
    --cloud-action-ink: #16263b;
    --cloud-line: #26364b;
    --cloud-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
  }
}
@media (max-width: 760px) {
  .cloud-marketing {
    --home-section-gap: 48px;
    --home-card-padding: 24px;
  }
  .cloud-marketing .homepage .autopilot-section,
  .cloud-marketing .homepage .life-steps .setup-story .life-step,
  .cloud-marketing
    .features-page
    :is(#budget, #transactions, #upcoming, #trends),
  .cloud-marketing .homepage .cta-card {
    border-radius: 24px;
  }
  .cloud-marketing .homepage .cta-card {
    padding: 24px;
  }
}

.app-trend-savings-label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.app-trend-savings-label .native-tab-icon {
  color: var(--app-trend-balance);
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}
