.home-hero {
  min-height: var(--hero-height);
}

.home-hero-shell {
  grid-template-columns: minmax(0, 1.03fr) minmax(480px, 0.97fr);
  gap: 48px;
}

.home-hero-copy {
  padding-top: 18px;
  padding-bottom: 18px;
}

.home-hero h1 {
  margin-top: 22px;
}

.home-hero .hero-actions {
  margin-top: 24px;
}

.home-hero .hero-subtitle {
  margin-top: 28px;
}

.home-bento {
  position: relative;
  display: grid;
  align-self: center;
  min-height: 600px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(72px, 1fr));
  gap: 12px;
}

.bento-cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  color: var(--color-text);
  transition:
    transform var(--transition-medium),
    border-color var(--transition-medium);
}

.bento-cell:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-strong);
}

.bento-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.bento-cell > span:last-child {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.bento-code {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.04em;
}

.bento-cover {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
  background: var(--color-panel-soft);
}

.bento-entry {
  grid-column: 4 / 7;
  grid-row: 1 / 3;
  background: var(--color-panel-muted);
}

.bento-route {
  position: relative;
  z-index: 3;
  grid-column: 1 / 7;
  grid-row: 3 / 6;
  padding: 28px;
  border-color: var(--color-warn);
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.bento-route:hover {
  border-color: var(--color-warn);
}

.bento-route .bento-code,
.bento-route > span:last-child {
  color: var(--color-white);
}

.bento-route-top,
.bento-route-main,
.bento-route-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bento-route-top .status-dot {
  background: var(--color-white);
}

.bento-route-main strong {
  color: var(--color-white);
  font-size: clamp(28px, 3vw, 42px);
}

.bento-route-main div > span {
  display: block;
  margin-top: 8px;
  color: var(--color-white);
  font-size: 13px;
  opacity: 0.82;
}

.bento-route-bottom {
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 680;
  opacity: 0.82;
}

.bento-check {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--color-white);
  border-radius: var(--radius-pill);
  background: var(--color-accent-dark);
  color: var(--color-white);
}

.bento-check svg {
  width: 28px;
  height: 28px;
}

.bento-device {
  grid-column: 1 / 4;
  grid-row: 6 / 7;
  flex-direction: row;
  align-items: center;
  background: var(--color-panel);
}

.bento-device .bento-code {
  display: none;
}

.bento-device strong {
  font-size: 18px;
}

.bento-refund {
  grid-column: 4 / 7;
  grid-row: 6 / 7;
  flex-direction: row;
  align-items: center;
  border-color: var(--color-warn);
  background: var(--color-warn-soft);
}

.bento-refund .bento-code {
  display: none;
}

.bento-refund strong {
  color: var(--color-warn-dark);
  font-size: 18px;
}

.home-fact-band {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
}

.home-fact-band-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow-x: auto;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  scrollbar-width: none;
}

.home-fact-band-inner::-webkit-scrollbar {
  display: none;
}

.home-fact-band-inner span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.home-fact-band-inner b {
  color: var(--color-accent-dark);
  font-size: 13px;
}

.home-section-heading {
  display: grid;
  margin-bottom: 50px;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 54px;
  align-items: end;
}

.home-section-heading h2 {
  max-width: 640px;
  margin-top: 18px;
  margin-bottom: 0;
}

.home-section-heading > p {
  max-width: 680px;
  margin: 0;
}

.feature-manual {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.feature-index {
  position: sticky;
  top: var(--toc-top);
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.feature-index-label {
  margin-bottom: 12px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 720;
}

.feature-index a {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 680;
}

.feature-index a:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.feature-documents {
  display: grid;
  gap: 18px;
}

.feature-sheet {
  width: 100%;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
}

.feature-sheet h3 {
  max-width: 720px;
  margin-top: 18px;
}

.feature-sheet p {
  max-width: 850px;
  margin-bottom: 24px;
}

.feature-number {
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 740;
  letter-spacing: 0.05em;
}

.feature-sheet-offset {
  width: calc(100% - 44px);
  margin-left: 44px;
  background: var(--color-panel-soft);
}

.feature-sheet-mid {
  width: calc(100% - 88px);
  margin-left: 24px;
}

.feature-sheet-narrow {
  width: calc(100% - 118px);
  margin-left: 88px;
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.home-decision-panel {
  display: grid;
  margin-top: 48px;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.24fr);
  gap: 50px;
  padding: clamp(28px, 4.5vw, 58px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-black-soft);
}

.home-decision-panel h3,
.home-decision-panel p {
  color: var(--color-white);
}

.home-decision-panel h3 {
  margin-top: 18px;
  font-size: clamp(27px, 3vw, 40px);
}

.home-decision-panel p {
  opacity: 0.78;
}

.home-decision-copy {
  display: grid;
  gap: 8px;
}

.home-routes {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel-soft);
}

.route-guidance {
  display: grid;
  margin-top: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 26px;
  align-items: start;
}

.route-guidance > div {
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.route-guidance .callout {
  margin: 0;
}

.home-text-link {
  display: inline-flex;
  margin-top: 28px;
  color: var(--color-accent-dark);
  font-size: 14px;
  font-weight: 780;
}

.home-text-link:hover {
  color: var(--color-text);
}

.home-plan-note {
  margin-top: 12px;
  font-size: 14px;
}

.traffic-pack-panel {
  display: grid;
  margin-top: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 34px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--color-success);
  border-radius: var(--radius-xl);
  background: var(--color-success-soft);
}

.traffic-pack-panel h3 {
  margin-top: 18px;
}

.traffic-pack-list {
  display: grid;
  gap: 9px;
  align-content: center;
}

.traffic-pack-list span {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.traffic-pack-list b {
  color: var(--color-text);
  font-size: 17px;
}

.home-blog {
  border-top: 1px solid var(--color-border);
}

.home-blog .article-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-blog .article-card {
  min-height: 360px;
}

.home-blog .article-card h3 {
  font-size: 20px;
}

.home-final {
  padding-top: 0;
  padding-bottom: var(--section-space);
}

.home-final-panel {
  margin-top: 0;
}

.home-final-code {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 720;
  opacity: 0.76;
}

@media (max-width: 1120px) {
  .home-hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.88fr);
    gap: 28px;
  }

  .home-bento {
    min-height: 550px;
  }

  .feature-manual {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
  }

  .home-blog .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .home-hero-shell {
    grid-template-columns: 1fr;
  }

  .home-bento {
    min-height: 560px;
  }

  .home-section-heading,
  .home-decision-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-manual {
    grid-template-columns: 1fr;
  }

  .feature-index {
    position: static;
    display: flex;
    max-width: 100%;
    gap: 5px;
    overflow-x: auto;
    border-radius: var(--radius-md);
    scrollbar-width: none;
  }

  .feature-index::-webkit-scrollbar {
    display: none;
  }

  .feature-index-label {
    display: none;
  }

  .feature-index a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .route-guidance,
  .traffic-pack-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .home-bento {
    min-height: 520px;
    grid-template-rows: repeat(7, minmax(58px, 1fr));
  }

  .bento-cell {
    padding: 16px;
  }

  .bento-cover {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
  }

  .bento-entry {
    grid-column: 4 / 7;
    grid-row: 1 / 3;
  }

  .bento-route {
    grid-column: 1 / 7;
    grid-row: 3 / 6;
    padding: 20px;
  }

  .bento-device {
    grid-column: 1 / 7;
    grid-row: 6 / 7;
  }

  .bento-refund {
    grid-column: 1 / 7;
    grid-row: 7 / 8;
  }

  .bento-cell strong {
    font-size: 17px;
  }

  .bento-route-main strong {
    font-size: 27px;
  }

  .bento-check {
    width: 48px;
    height: 48px;
  }

  .home-section-heading {
    margin-bottom: 34px;
  }

  .feature-sheet,
  .feature-sheet-offset,
  .feature-sheet-mid,
  .feature-sheet-narrow {
    width: 100%;
    margin-left: 0;
  }

  .home-blog .article-grid {
    grid-template-columns: 1fr;
  }

  .home-blog .article-card {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .home-bento {
    min-height: 560px;
  }

  .bento-cover,
  .bento-entry {
    justify-content: flex-start;
    gap: 12px;
  }

  .bento-cover > span:last-child,
  .bento-entry > span:last-child {
    font-size: 10px;
  }

  .bento-route-top .bento-code {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bento-route-main {
    align-items: flex-start;
  }

  .bento-route-bottom span:first-child {
    max-width: 180px;
  }

  .home-decision-panel,
  .traffic-pack-panel {
    padding: 24px;
  }
}