.page-home {
  position: relative;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
}

.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

.page-home .mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- HERO ---------- */

.page-home .hero {
  position: relative;
  padding: 84px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-home .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.22;
  filter: saturate(0.55) contrast(1.1);
}

.page-home .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, var(--ink) 42%, rgba(7, 11, 20, 0.35) 100%),
    repeating-linear-gradient(90deg, rgba(42, 58, 87, 0.35) 0 1px, transparent 1px 96px);
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
}

.page-home .hero .breadcrumb {
  margin-bottom: 28px;
  color: var(--muted);
}

.page-home .hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-home .hero__lead .eyebrow {
  margin: 0 0 18px;
}

.page-home .hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 7.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--white);
  max-width: 15em;
}

.page-home .hero__sub {
  margin: 18px 0 0;
  max-width: 30em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .hero__marks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 30px 0 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}

.page-home .hero__marks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-home .hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 224, 208, 0.16);
}

.page-home .hero__mark {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(88px, 26vw, 150px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--panel-2);
  align-self: end;
  justify-self: start;
  user-select: none;
}

.page-home .hero__mark::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 8%;
  bottom: 14%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--sand), transparent);
  transform: rotate(-4deg);
  opacity: 0.7;
}

.page-home .hero__mark-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-top: 14px;
}

@supports (-webkit-text-stroke: 1px #000) {
  .page-home .hero__mark {
    color: transparent;
    -webkit-text-stroke: 2px rgba(53, 224, 208, 0.42);
  }
}

/* ---------- WAVE DIVIDER ---------- */

.page-home .wave {
  color: var(--steel);
  line-height: 0;
  padding: 0 20px;
}

.page-home .wave svg {
  display: block;
  width: 100%;
  height: 46px;
  opacity: 0.75;
}

/* ---------- SHELF / TILES ---------- */

.page-home .sec-head {
  max-width: 44em;
}

.page-home .sec-head h2,
.page-home .steps h2,
.page-home .fees h2,
.page-home .status h2,
.page-home .help h2 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--white);
}

.page-home .sec-head__note,
.page-home .steps__intro,
.page-home .fees__lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 34em;
}

.page-home .shelf__figure {
  margin: 28px 0 26px;
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.page-home .shelf__figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 20, 0.82));
  pointer-events: none;
}

.page-home .shelf__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.72;
}

.page-home .shelf__figure .media__caption {
  position: absolute;
  left: 16px;
  bottom: 12px;
  right: 16px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-auto-rows: minmax(132px, auto);
}

.page-home .tile {
  min-width: 0;
}

.page-home .tile__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 14px 14px 16px;
  position: relative;
  text-decoration: none;
  color: var(--white);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 2px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}

.page-home .tile__num {
  font-size: 11px;
  color: var(--sand);
}

.page-home .tile__name {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.page-home .tile__use {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: auto;
}

.page-home .tile__go {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 14px;
  color: var(--steel);
  transition: color var(--t-fast), transform var(--t-fast);
}

.page-home .tile__link:hover,
.page-home .tile__link:focus-visible {
  background: var(--cyan-deep);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.page-home .tile__link:hover .tile__go,
.page-home .tile__link:focus-visible .tile__go {
  color: var(--cyan);
  transform: translateX(3px);
}

.page-home .tile__link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- STEPS ---------- */

.page-home .steps {
  border-top: 1px solid var(--line);
}

.page-home .steps__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.page-home .steps__item {
  position: relative;
  padding: 20px 18px 22px;
  background: var(--panel);
  border-left: 2px solid var(--cyan);
  min-width: 0;
}

.page-home .steps__idx {
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.16em;
}

.page-home .steps__name {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  color: var(--white);
}

.page-home .steps__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .steps__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 26px 0 0;
}

.page-home .steps__foot-note {
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- FEES ---------- */

.page-home .fees {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--ink) 78%);
}

.page-home .fees__text {
  min-width: 0;
}

.page-home .fees__figure {
  margin: 26px 0 0;
  max-width: 300px;
  border: 1px solid var(--line-soft);
  background: var(--ink);
}

.page-home .fees__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.8;
}

.page-home .fees__figure .media__caption {
  display: block;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

.page-home .fees__switch {
  margin-top: 26px;
  min-width: 0;
}

.page-home .fees__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.page-home .fees__tab {
  padding: 9px 14px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.page-home .fees__tab:hover {
  color: var(--white);
  border-color: var(--steel);
}

.page-home .fees__panels {
  margin-top: 22px;
}

.page-home .fees__panel {
  display: none;
}

.page-home .fees__amount {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  line-height: 1;
}

.page-home .fees__num {
  font-size: clamp(52px, 14vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--orange);
}

.page-home .fees__unit {
  font-size: 15px;
  font-family: var(--font-mono);
  color: var(--muted);
}

.page-home .fees__desc {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--white);
  max-width: 30em;
}

.page-home .fees__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-home .fees__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .fees__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 1px;
  background: var(--cyan);
}

.page-home #plan-free:checked ~ .fees__tabs label[for="plan-free"],
.page-home #plan-std:checked ~ .fees__tabs label[for="plan-std"],
.page-home #plan-pro:checked ~ .fees__tabs label[for="plan-pro"] {
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-home #plan-free:focus-visible ~ .fees__tabs label[for="plan-free"],
.page-home #plan-std:focus-visible ~ .fees__tabs label[for="plan-std"],
.page-home #plan-pro:focus-visible ~ .fees__tabs label[for="plan-pro"] {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home #plan-free:checked ~ .fees__panels [data-panel="free"],
.page-home #plan-std:checked ~ .fees__panels [data-panel="std"],
.page-home #plan-pro:checked ~ .fees__panels [data-panel="pro"] {
  display: block;
  animation: home-fade 0.3s var(--ease) both;
}

@keyframes home-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-home .fees__more {
  margin: 22px 0 0;
}

/* ---------- STATUS ---------- */

.page-home .status {
  border-top: 1px solid var(--line);
}

.page-home .status__scale {
  height: 14px;
  margin: 26px 0 22px;
  background:
    repeating-linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 24px),
    linear-gradient(90deg, var(--cyan), var(--sand), var(--steel));
  background-size: auto, 100% 2px;
  background-position: 0 0, 0 100%;
  background-repeat: repeat-x, no-repeat;
  opacity: 0.85;
}

.page-home .status__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .status__item {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.page-home .status__val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .status__val em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  margin-left: 4px;
}

.page-home .status__label {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .status__note {
  margin-top: 28px;
  padding: 18px 18px 18px 20px;
  border-left: 2px solid var(--sand);
  background: var(--panel);
}

.page-home .status__note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 40em;
}

/* ---------- HELP ---------- */

.page-home .help {
  border-top: 1px solid var(--line);
}

.page-home .help__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 28px;
}

.page-home .help__card {
  min-width: 0;
  padding: 20px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .help__tag {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--sand);
  border: 1px solid var(--line-soft);
  padding: 3px 8px;
  border-radius: 999px;
}

.page-home .help__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.25;
  color: var(--white);
}

.page-home .help__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .help__contact {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--cyan);
  word-break: break-all;
}

.page-home .help__link {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13.5px;
  color: var(--white);
  text-decoration: none;
  border-top: 1px solid var(--line-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t-fast);
}

.page-home .help__link:hover,
.page-home .help__link:focus-visible {
  color: var(--cyan);
}

.page-home .help__link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- CLOSER ---------- */

.page-home .closer {
  position: relative;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.page-home .closer img {
  display: block;
  width: 100%;
  height: clamp(130px, 26vw, 220px);
  object-fit: cover;
  opacity: 0.5;
}

.page-home .closer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, transparent 45%, var(--ink) 100%);
}

.page-home .closer__line {
  position: absolute;
  left: 20px;
  bottom: 14px;
  z-index: 1;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- TABLET ---------- */

@media (min-width: 700px) {
  .page-home .hero {
    padding: 104px 0 72px;
  }

  .page-home .hero__sub {
    font-size: 17px;
  }

  .page-home .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    grid-auto-flow: dense;
  }

  .page-home .steps__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .page-home .status__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

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

  .page-home .help__card--wide {
    grid-column: span 2;
  }
}

/* ---------- DESKTOP ---------- */

@media (min-width: 980px) {
  .page-home .hero {
    padding: 128px 0 88px;
  }

  .page-home .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 40px;
    align-items: end;
  }

  .page-home .hero__mark {
    justify-self: end;
    font-size: clamp(150px, 17vw, 216px);
    margin-bottom: -0.06em;
  }

  .page-home .hero__marks {
    margin-top: 36px;
  }

  .page-home .shelf__figure {
    margin: 34px 0 32px;
  }

  .page-home .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    grid-auto-rows: minmax(150px, auto);
  }

  .page-home .tile--xl {
    grid-column: span 2;
    grid-row: span 2;
  }

  .page-home .tile--wide {
    grid-column: span 2;
  }

  .page-home .tile--tall {
    grid-row: span 2;
  }

  .page-home .tile--xl .tile__name {
    font-size: 26px;
  }

  .page-home .tile--xl .tile__use {
    font-size: 13.5px;
  }

  .page-home .steps__list {
    margin-top: 36px;
    gap: 20px;
  }

  .page-home .steps__item {
    padding: 24px 22px 28px;
  }

  .page-home .fees__switch {
    margin-top: 0;
    padding-left: 8px;
  }

  .page-home .help__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .help__card--wide {
    grid-column: span 1;
  }

  .page-home .closer__line {
    left: 32px;
    bottom: 20px;
  }
}

/* ---------- MOTION ---------- */

.page-home [data-reveal] {
  opacity: 0;
}

.page-home [data-reveal].is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal] {
    opacity: 1 !important;
  }

  .page-home .tile__link,
  .page-home .tile__go,
  .page-home .help__link {
    transition: none;
  }

  .page-home .tile__link:hover,
  .page-home .tile__link:focus-visible {
    transform: none;
  }

  .page-home .tile__link:hover .tile__go,
  .page-home .tile__link:focus-visible .tile__go {
    transform: none;
  }

  .page-home #plan-free:checked ~ .fees__panels [data-panel="free"],
  .page-home #plan-std:checked ~ .fees__panels [data-panel="std"],
  .page-home #plan-pro:checked ~ .fees__panels [data-panel="pro"] {
    animation: none;
  }
}
