.page-home {
  --home-peek: rgba(232, 241, 248, .74);
  --home-hair: rgba(183, 211, 232, .55);
  background: var(--c-ice);
  color: var(--c-text);
}

.page-home h1,
.page-home h2 {
  font-family: var(--font-title);
}

/* ---------- HERO ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 6vw, 4.25rem) 0 clamp(2.5rem, 7vw, 5rem);
  background:
    radial-gradient(112% 82% at 88% -18%, rgba(49, 224, 208, .22), transparent 58%),
    radial-gradient(84% 62% at -8% 8%, rgba(21, 74, 120, .78), transparent 62%),
    linear-gradient(168deg, var(--c-deep) 0%, var(--c-sea) 48%, var(--c-route) 100%);
  color: var(--c-frost);
}

.page-home .hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .6;
}

.page-home .hero-lines path {
  fill: none;
  stroke: rgba(143, 245, 236, .3);
  stroke-width: 1;
}

.page-home .hero-lines path:nth-child(2) {
  stroke: rgba(49, 224, 208, .18);
}

.page-home .hero-lines path:nth-child(3) {
  stroke: rgba(232, 241, 248, .12);
}

.page-home .hero-collage {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.35rem);
}

.page-home .hero-context {
  font-size: .74rem;
  letter-spacing: .2em;
  color: var(--c-neon);
}

.page-home .hero-title {
  margin: .85rem 0 0;
  font-size: clamp(1.9rem, 5.4vw, 3.35rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--c-frost);
}

.page-home .hero-lead {
  margin-top: 1.1rem;
  max-width: 54ch;
  font-size: 1.01rem;
  line-height: 1.85;
  color: var(--home-peek);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.7rem;
}

.page-home .hero-actions .btn--ghost {
  color: var(--c-frost);
  border-color: rgba(143, 245, 236, .42);
}

.page-home .hero-actions .btn--ghost:hover,
.page-home .hero-actions .btn--ghost:focus-visible {
  color: var(--c-neon);
  border-color: var(--c-neon);
}

/* hero visual + sync glass */
.page-home .hero-visual {
  position: relative;
  min-height: 218px;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid rgba(143, 245, 236, .2);
  background: linear-gradient(200deg, rgba(21, 74, 120, .72), rgba(6, 26, 47, .94));
  box-shadow: var(--shadow-2);
}

.page-home .hero-visual__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .hero-sync {
  position: absolute;
  z-index: 2;
  left: .85rem;
  right: .85rem;
  bottom: .85rem;
  padding: .85rem 1rem 1rem;
  border-radius: var(--radius-m);
  border: 1px solid rgba(49, 224, 208, .38);
  background: rgba(6, 26, 47, .78);
  color: var(--c-frost);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.page-home .hero-sync:hover,
.page-home .hero-sync:focus-within {
  border-color: var(--c-neon);
  background: rgba(11, 42, 74, .9);
}

.page-home .hero-sync__value {
  margin-top: .5rem;
  font-size: 1.35rem;
  letter-spacing: .04em;
  color: var(--c-neon-soft);
}

.page-home .hero-sync__note {
  font-size: .78rem;
  line-height: 1.7;
  color: var(--home-peek);
  margin-top: .4rem;
}

@media (hover: hover) {
  .page-home .hero-sync__note {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .32s var(--ease), opacity .32s var(--ease), margin-top .32s var(--ease);
  }

  .page-home .hero-sync:hover .hero-sync__note,
  .page-home .hero-sync:focus-within .hero-sync__note {
    max-height: 6rem;
    margin-top: .4rem;
    opacity: 1;
  }
}

/* hero task tiles */
.page-home .hero-task {
  display: block;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid rgba(143, 245, 236, .2);
  border-radius: var(--radius-m);
  background: rgba(6, 26, 47, .44);
  text-decoration: none;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}

.page-home .hero-task:hover,
.page-home .hero-task:focus-visible {
  border-color: var(--c-neon);
  background: rgba(21, 74, 120, .58);
  transform: translateY(-2px);
}

.page-home .hero-task__no {
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--c-neon);
}

.page-home .hero-task__title {
  display: block;
  margin-top: .35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-frost);
}

.page-home .hero-task__desc {
  display: block;
  margin-top: .3rem;
  font-size: .83rem;
  line-height: 1.7;
  color: var(--home-peek);
}

/* ---------- section head ---------- */
.page-home .home-head {
  margin-bottom: clamp(1.35rem, 3vw, 2.1rem);
}

.page-home .home-head__kicker {
  font-size: .74rem;
  letter-spacing: .16em;
  color: var(--c-route);
}

.page-home .home-head h2 {
  margin: .55rem 0 0;
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  line-height: 1.32;
  font-weight: 700;
}

.page-home .home-head p {
  margin-top: .7rem;
  max-width: 64ch;
  font-size: .96rem;
  line-height: 1.85;
  color: var(--c-muted);
}

/* ---------- 6-column accounts ---------- */
.page-home .home-accounts {
  padding: clamp(2.5rem, 6vw, 4.25rem) 0;
  background: var(--c-ice);
}

.page-home .accounts-figure {
  margin: 0 0 clamp(1.2rem, 2.6vw, 1.8rem);
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--home-hair);
  background: linear-gradient(120deg, var(--c-sea), var(--c-route) 60%, #2c6b9c);
  box-shadow: var(--shadow-1);
}

.page-home .accounts-figure img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 108px;
  aspect-ratio: 16 / 5;
  object-fit: cover;
}

.page-home .accounts-rail {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--c-route) var(--c-line);
}

.page-home .accounts-rail::-webkit-scrollbar {
  height: 6px;
}

.page-home .accounts-rail::-webkit-scrollbar-track {
  background: var(--c-line);
  border-radius: 99px;
}

.page-home .accounts-rail::-webkit-scrollbar-thumb {
  background: var(--c-route);
  border-radius: 99px;
}

.page-home .account-col {
  position: relative;
  flex: 0 0 76%;
  max-width: 268px;
  scroll-snap-align: start;
  padding: 1.15rem 1rem 1.05rem;
  background: var(--c-frost);
  border: 1px solid var(--home-hair);
  border-radius: var(--radius-m);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.page-home .account-col::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  background: linear-gradient(90deg, var(--c-neon), rgba(49, 224, 208, 0));
  opacity: 0;
  transition: opacity .25s var(--ease);
}

.page-home .account-col:hover,
.page-home .account-col:focus-within {
  border-color: var(--c-route);
  box-shadow: var(--shadow-1);
  transform: translateY(-3px);
}

.page-home .account-col:hover::before,
.page-home .account-col:focus-within::before {
  opacity: 1;
}

.page-home .account-col__no {
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--c-route);
}

.page-home .account-col__name {
  margin: .5rem 0 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--c-text);
}

.page-home .account-col__desc {
  margin-top: .45rem;
  font-size: .84rem;
  line-height: 1.75;
  color: var(--c-muted);
}

.page-home .account-col__meta {
  margin-top: .85rem;
  padding-top: .65rem;
  border-top: 1px dashed var(--c-line);
  font-size: .73rem;
  letter-spacing: .03em;
  color: var(--c-route);
}

.page-home .accounts-hint {
  margin-top: .35rem;
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--c-muted);
}

/* ---------- dual entry ---------- */
.page-home .home-dual {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: var(--c-frost);
}

.page-home .dual-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.page-home .dual-copy h2 {
  margin: .55rem 0 0;
  font-size: clamp(1.45rem, 3.4vw, 2.05rem);
  line-height: 1.32;
  font-weight: 700;
}

.page-home .dual-copy > p {
  margin-top: .8rem;
  max-width: 58ch;
  font-size: .96rem;
  line-height: 1.85;
  color: var(--c-muted);
}

.page-home .dual-points {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .8rem;
}

.page-home .dual-points li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .93rem;
  line-height: 1.78;
  color: var(--c-text);
}

.page-home .dual-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--c-neon);
  box-shadow: 0 0 0 3px rgba(49, 224, 208, .16);
}

.page-home .dual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.6rem;
}

.page-home .dual-visual {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--home-hair);
  background: linear-gradient(150deg, var(--c-ice), var(--c-frost));
  box-shadow: var(--shadow-1);
}

.page-home .dual-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.page-home .dual-visual figcaption {
  padding: .8rem 1rem .95rem;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--c-muted);
  border-top: 1px solid var(--home-hair);
}

/* ---------- recovery ---------- */
.page-home .home-recovery {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: var(--c-ice);
}

.page-home .recovery-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.page-home .recovery-copy h2 {
  margin: .55rem 0 0;
  font-size: clamp(1.45rem, 3.4vw, 2.05rem);
  line-height: 1.32;
  font-weight: 700;
}

.page-home .recovery-copy > p {
  margin-top: .8rem;
  max-width: 58ch;
  font-size: .96rem;
  line-height: 1.85;
  color: var(--c-muted);
}

.page-home .recovery-steps {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .8rem;
}

.page-home .recovery-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  padding: .8rem .95rem;
  background: var(--c-frost);
  border-left: 3px solid var(--c-route);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: .9rem;
  line-height: 1.75;
  color: var(--c-text);
}

.page-home .recovery-steps__no {
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--c-route);
  padding-top: .22rem;
}

.page-home .recovery-copy .btn {
  margin-top: 1.6rem;
}

.page-home .recovery-panel {
  align-self: start;
}

/* ---------- weekly rhythm ---------- */
.page-home .home-rhythm {
  padding: clamp(2.75rem, 6.5vw, 4.75rem) 0;
  background: linear-gradient(162deg, var(--c-deep) 0%, var(--c-sea) 58%, var(--c-route) 100%);
  color: var(--c-frost);
}

.page-home .rhythm-head h2 {
  margin: .55rem 0 0;
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  line-height: 1.32;
  font-weight: 700;
  color: var(--c-frost);
}

.page-home .rhythm-kicker {
  font-size: .74rem;
  letter-spacing: .16em;
  color: var(--c-neon);
}

.page-home .rhythm-head p {
  margin-top: .75rem;
  max-width: 62ch;
  font-size: .96rem;
  line-height: 1.85;
  color: var(--home-peek);
}

.page-home .rhythm-body {
  display: grid;
  gap: clamp(1.4rem, 3.4vw, 2.75rem);
  margin-top: clamp(1.5rem, 3.5vw, 2.4rem);
}

.page-home .rhythm-figure {
  margin: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid rgba(143, 245, 236, .2);
  background: rgba(6, 26, 47, .55);
}

.page-home .rhythm-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.page-home .rhythm-figure figcaption {
  padding: .75rem 1rem .9rem;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--home-peek);
  border-top: 1px solid rgba(143, 245, 236, .16);
}

.page-home .rhythm-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.page-home .rhythm-stats .stat {
  padding: .9rem 1rem 1rem;
  border-top: 2px solid var(--c-neon);
  background: rgba(6, 26, 47, .4);
  border-radius: 0 0 var(--radius-s) var(--radius-s);
}

.page-home .rhythm-stats .stat__value {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--c-neon);
}

.page-home .rhythm-stats .stat__label {
  margin-top: .4rem;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--home-peek);
}

.page-home .rhythm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: clamp(1.5rem, 3.4vw, 2.2rem);
}

.page-home .rhythm-actions .btn--ghost {
  color: var(--c-frost);
  border-color: rgba(143, 245, 236, .42);
}

.page-home .rhythm-actions .btn--ghost:hover,
.page-home .rhythm-actions .btn--ghost:focus-visible {
  color: var(--c-neon);
  border-color: var(--c-neon);
}

/* ---------- reach strip ---------- */
.page-home .home-reach {
  padding: clamp(2.25rem, 5.5vw, 3.75rem) 0;
  background: var(--c-frost);
}

.page-home .reach-strip {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.4rem, 3.4vw, 2.4rem);
  border: 1px solid var(--home-hair);
  border-left: 4px solid var(--c-warm);
  border-radius: var(--radius-m);
  background: linear-gradient(120deg, var(--c-frost), var(--c-ice));
  box-shadow: var(--shadow-1);
}

.page-home .reach-copy h2 {
  margin: .55rem 0 0;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.36;
  font-weight: 700;
}

.page-home .reach-copy p {
  margin-top: .7rem;
  max-width: 58ch;
  font-size: .93rem;
  line-height: 1.8;
  color: var(--c-muted);
}

.page-home .reach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

/* ---------- responsive ---------- */
@media (min-width: 620px) {
  .page-home .account-col {
    flex: 0 0 258px;
  }

  .page-home .rhythm-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-home .hero-collage {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "main main main main vis vis"
      "t1   t1   t2   t2   vis vis"
      "t3   t3   t4   t4   vis vis";
    align-items: stretch;
  }

  .page-home .hero-main {
    grid-area: main;
    align-self: center;
    padding-right: 1rem;
  }

  .page-home .hero-visual {
    grid-area: vis;
    min-height: 100%;
  }

  .page-home .hero-visual__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-home .hero-task--1 { grid-area: t1; }
  .page-home .hero-task--2 { grid-area: t2; }
  .page-home .hero-task--3 { grid-area: t3; }
  .page-home .hero-task--4 { grid-area: t4; }

  .page-home .dual-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
  }

  .page-home .recovery-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .rhythm-body {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
  }

  .page-home .reach-strip {
    grid-template-columns: minmax(0, 1.6fr) auto;
  }
}

@media (min-width: 1024px) {
  .page-home .accounts-rail {
    gap: .8rem;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .page-home .account-col {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .page-home .accounts-hint {
    display: none;
  }
}

@media (max-width: 380px) {
  .page-home .account-col {
    flex: 0 0 84%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-task,
  .page-home .account-col,
  .page-home .hero-sync {
    transition: none;
  }

  .page-home .hero-task:hover,
  .page-home .account-col:hover {
    transform: none;
  }
}
