/* Homepage: readable phone typography and no fixed three-column elements. */
.home-page { zoom: 1; overflow-x: clip; }
.home-page .shell { width: min(100% - 40px, 1000px); }
.home-page .hero, .home-page .hero-card, .home-page .hero-visual,
.home-page .overview, .home-page .steps, .home-page .steps article,
.home-page .plan-strip { min-width: 0; }
.home-page .hero h1, .home-page .overview strong,
.home-page .steps h3, .home-page .plan-strip h2 { overflow-wrap: break-word; }

@media (max-width: 850px) {
  .home-page .hero { grid-template-columns: minmax(0, 1fr) 185px; gap: 15px; padding: 15px 0 25px; }
  .home-page .hero-card { padding: 25px; border-radius: 18px; }
  .home-page .hero h1 { font-size: clamp(31px, 5.5vw, 44px); }
  .home-page .hero-visual.cat-scene { min-height: 210px; border-radius: 18px; }
  .home-page .hero-cat { width: min(100%, 170px); height: 170px; }
  .home-page .overview { padding: 14px 8px; margin: 0 0 30px; border-radius: 17px; }
  .home-page .overview-item { padding: 0 10px; gap: 8px; }
  .home-page .overview strong { font-size: 12px; line-height: 1.35; }
  .home-page .overview span { font-size: 11px; line-height: 1.35; display: block; }
  .home-page .icon-box { width: 31px; height: 31px; flex: 0 0 31px; }
  .home-page .steps { gap: 8px; }
  .home-page .steps article { padding: 12px; }
  .home-page .plan-strip { padding: 22px; gap: 15px; }
}

@media (max-width: 640px) {
  .home-page { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .home-page .shell, .home-page .brandbar.shell { width: calc(100% - 32px); }
  .home-page .brandbar, .home-page .brandbar.shell { height: 64px; min-height: 64px; }
  .home-page .brand { font-size: 21px; gap: 7px; letter-spacing: -.6px; }
  .home-page .brand img { width: 34px; height: 34px; }
  .home-page .hero { display: block; padding: 8px 0 23px; }
  .home-page .hero-card { padding: 21px 18px; border-radius: 16px; }
  .home-page .hero h1 { font-size: clamp(29px, 9vw, 39px); line-height: 1.12; margin: 0 0 10px; }
  .home-page .hero p { max-width: none; font-size: 14px; line-height: 1.55; margin: 0 0 16px; }
  .home-page .hero .actions { gap: 10px 14px; }
  .home-page .hero .button { min-height: 44px; padding: 10px 17px; font-size: 14px; }
  .home-page .hero .text-link { min-height: 38px; font-size: 13px; }
  .home-page .hero .hero-note { margin: 12px 0 0 !important; font-size: 12px !important; }
  /* Keep the large kitten visible on the home screen on phones. */
  .home-page .hero-visual.cat-scene {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 13px;
    min-height: 205px;
    padding: 9px 16px;
    border-radius: 20px;
    background: radial-gradient(circle at 50% 50%, #fff 0 27%, #f4eee6 28% 58%, transparent 59%), linear-gradient(160deg,#f8f3ed,#fff);
    border: 1px solid #ece5dd;
  }
  .home-page .hero-visual.cat-scene .hero-cat {
    display: block;
    width: min(78vw, 190px);
    height: 186px;
    object-fit: contain;
    margin: 0 auto;
  }
  .home-page .overview {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 0;
    padding: 0 14px; margin: 0 0 26px; border-radius: 15px;
  }
  .home-page .overview-item { display: flex; align-items: center; min-width: 0; gap: 12px; padding: 12px 0; }
  .home-page .overview-item + .overview-item { border-left: 0; border-top: 1px solid #eee7df; }
  .home-page .icon-box { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; }
  .home-page .overview strong { font-size: 14px; line-height: 1.3; }
  .home-page .overview span { margin-top: 1px; font-size: 12px; line-height: 1.4; }
  .home-page .section-head { margin-bottom: 13px; }
  .home-page .section-head h2 { font-size: 23px; line-height: 1.25; }
  .home-page .steps { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 0 25px; }
  .home-page .steps article {
    display: grid; grid-template-columns: 28px minmax(0, 1fr);
    align-items: start; column-gap: 10px; padding: 11px 0;
    border: 0; border-bottom: 1px solid #eae3da; border-radius: 0; background: transparent;
  }
  .home-page .steps .step-number { grid-row: 1 / 3; width: 26px; height: 26px; display: grid; place-items: center; margin: 0; border-radius: 8px; background: #f0e9e0; font-size: 11px; }
  .home-page .steps h3 { grid-column: 2; margin: 0 0 3px; font-size: 15px; line-height: 1.3; }
  .home-page .steps p { grid-column: 2; max-width: none; margin: 0; font-size: 13px; line-height: 1.5; }
  .home-page .plan-strip { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px; border-radius: 16px; }
  .home-page .plan-strip h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; }
  .home-page .plan-strip p { font-size: 13px; line-height: 1.45; }
  .home-page .plan-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; }
  .home-page .plan-strip strong { font-size: 23px; white-space: nowrap; }
  .home-page .plan-actions .button { min-height: 43px; padding: 9px 15px; font-size: 13px; white-space: nowrap; }
  .home-page .mini-footer { padding: 14px 10px max(22px, env(safe-area-inset-bottom)); margin-top: 20px; line-height: 1.6; }
  .home-page .mini-footer a, .home-page .mini-footer { font-size: 11px; }
}
@media (max-width: 365px) {
  .home-page .shell, .home-page .brandbar.shell { width: calc(100% - 24px); }
  .home-page .brand { font-size: 19px; }
  .home-page .hero-card { padding: 18px 15px; }
  .home-page .hero h1 { font-size: 29px; }
  .home-page .hero .actions { align-items: stretch; flex-direction: column; }
  .home-page .hero .button, .home-page .hero .text-link { width: 100%; justify-content: center; }
  .home-page .plan-actions { align-items: stretch; flex-direction: column; }
  .home-page .plan-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .button { transition: none; }
}

/* v9: the kitten greets mobile visitors before the first headline. */
@media (max-width: 640px) {
  .home-page .hero { display: flex; flex-direction: column; gap: 12px; padding-top: 5px; }
  .home-page .hero-visual.cat-scene {
    order: -1; width: 100%; margin: 0;
    min-height: 166px; max-height: 172px; padding: 0 10px; border-radius: 19px;
    background: radial-gradient(circle at 50% 53%, #fff 0 27%, #f4eee6 28% 56%, transparent 57%),linear-gradient(160deg,#f8f3ed,#fff);
  }
  .home-page .hero-visual.cat-scene .hero-cat { width: min(60vw, 174px); height: 162px; }
  .home-page .hero-card { order: 1; width: 100%; }
}

/* v10: the big kitten is the first mobile element, before the branded header. */
.home-page .mobile-cat-top { display: none; }
@media (max-width: 640px) {
  .home-page .mobile-cat-top {
    display: flex; justify-content: center; align-items: center;
    height: 180px; margin: 0 14px 2px; padding: 4px 10px;
    background: radial-gradient(circle at 50% 52%, #fff 0 28%, #f2ece4 29% 58%, transparent 59%),
                linear-gradient(145deg, #f9f5ef, #fffdf9);
    border: 1px solid #ede5d9; border-radius: 0 0 24px 24px;
  }
  .home-page .mobile-cat-top img { width: min(65vw,185px); height: 165px; object-fit: contain; }
  .home-page .hero-visual.cat-scene { display: none; }
  .home-page .brandbar.shell { margin-top: 0; }
  .home-page .hero { padding-top: 2px; }
}
@media (max-width: 370px) {
  .home-page .mobile-cat-top { height: 150px; }
  .home-page .mobile-cat-top img { height: 140px; }
}
