/* ============ Home Page ============ */
.page-home {
  background: var(--color-white);
  color: var(--color-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Hero ===== */
.page-home .ph-hero {
  position: relative;
  color: var(--color-white);
  background:
    radial-gradient(1100px 460px at 82% 8%, rgba(30, 58, 95, 0.9) 0%, transparent 60%),
    linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary) 48%, var(--color-primary-light) 100%);
  overflow: hidden;
  padding: 1rem 0 var(--space-lg);
}
.page-home .ph-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.page-home .ph-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-vip) 0%, var(--color-accent) 42%, transparent 82%);
  z-index: 4;
}
.page-home .ph-hero__crumbs {
  position: relative;
  z-index: 2;
  padding-top: 0.5rem;
}
.page-home .ph-hero__crumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}
.page-home .ph-hero__crumb a {
  color: var(--color-vip);
  text-decoration: none;
  transition: color 0.2s ease;
}
.page-home .ph-hero__crumb a:hover {
  color: var(--color-accent);
}
.page-home .ph-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
}
.page-home .ph-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.page-home .ph-hero__kicker {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  text-transform: uppercase;
  border: 1px solid rgba(255, 94, 58, 0.55);
  padding: 0.3rem 0.6rem;
  margin: 0 0 1rem;
}
.page-home .ph-hero__title {
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  padding-left: 1rem;
  border-left: 5px solid var(--color-accent);
}
.page-home .ph-hero__lead {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1rem;
}
.page-home .ph-hero__desc {
  max-width: 34rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.5rem;
}
.page-home .ph-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: 2rem;
}
.page-home .ph-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  width: 100%;
}
.page-home .ph-hero__stats div {
  flex: 1;
  min-width: 6rem;
  border-left: 2px solid var(--color-vip);
  padding-left: 0.7rem;
}
.page-home .ph-hero__stats dd {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
}
.page-home .ph-hero__stats dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}
.page-home .ph-hero__visual {
  position: relative;
  min-height: 300px;
  aspect-ratio: 9 / 8;
  background: radial-gradient(ellipse at 70% 30%, rgba(30, 58, 95, 0.9) 0%, rgba(6, 13, 24, 0.7) 72%);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.page-home .ph-hero__glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.08) 40%, transparent 60%);
  z-index: 1;
}
.page-home .ph-hero__pages {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.page-home .ph-hero__page-text {
  font-family: var(--font-heading);
}
.page-home .ph-hero__photo {
  position: absolute;
  left: 8%;
  bottom: 0;
  width: 68%;
  margin: 0;
  z-index: 2;
  box-shadow: 0 30px 60px rgba(4, 10, 20, 0.5);
}
.page-home .ph-hero__photo img {
  display: block;
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: polygon(0 0, 84% 0, 100% 16%, 100% 100%, 0 100%);
}
.page-home .ph-hero__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(6, 13, 24, 0.38) 0%, transparent 38%);
}
.page-home .ph-hero__photo::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  border-style: solid;
  border-width: 0 0 40px 40px;
  border-color: transparent transparent rgba(6, 13, 24, 0.82) transparent;
}

/* ===== Shared Section Head ===== */
.page-home .ph-section-head {
  margin-bottom: var(--space-lg);
}
.page-home .ph-section-index {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.8rem;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.page-home .ph-section-index__num {
  color: var(--color-primary);
  border: 1px solid var(--color-accent);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.page-home .ph-section-index__key {
  color: var(--color-gray);
}
.page-home .ph-section-index__line {
  flex: 0 1 8rem;
  height: 1px;
  background: var(--color-light-gray);
}
.page-home .ph-section-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
.page-home .ph-section-lead {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-gray);
  line-height: 1.6;
  margin: 0;
  max-width: 48rem;
}

/* ===== Sync Section ===== */
.page-home .ph-sync {
  padding: var(--space-xl) 0;
  border-bottom: 4px solid var(--color-accent);
}
.page-home .ph-sync__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.page-home .ph-sync__figure {
  margin: 0;
  position: relative;
  border: 1px solid var(--color-light-gray);
  box-shadow: 14px 14px 0 rgba(11, 31, 58, 0.06);
}
.page-home .ph-sync__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .ph-sync__figure figcaption {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--color-light-gray);
  color: var(--color-gray);
  text-transform: uppercase;
}
.page-home .ph-sync__connect {
  position: absolute;
  top: -1px;
  right: 1rem;
  display: flex;
  gap: 4px;
  padding: 0.25rem 0.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-top: none;
}
.page-home .ph-sync__connect i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  display: block;
}
.page-home .ph-sync__intro {
  font-size: 1rem;
  margin: 0 0 1.25rem;
}
.page-home .ph-sync__steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.page-home .ph-sync__steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1rem 3.2rem;
  list-style: none;
  border-bottom: 1px solid var(--color-light-gray);
  margin-bottom: 1rem;
}
.page-home .ph-sync__steps li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
.page-home .ph-sync__steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-weight: 700;
}
.page-home .ph-sync__meta {
  font-size: 0.875rem;
  color: var(--color-gray);
}
.page-home .ph-sync__meta a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.page-home .ph-sync__meta a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ===== Legacy Section ===== */
.page-home .ph-legacy {
  background: var(--color-light-gray);
  padding: var(--space-xl) 0;
}
.page-home .ph-legacy .ph-section-index__num {
  color: var(--color-primary);
}
.page-home .ph-legacy__compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.page-home .ph-legacy__card {
  background: var(--color-white);
  border: 1px solid rgba(107, 114, 128, 0.25);
  padding: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.page-home .ph-legacy__card:hover {
  border-color: var(--color-accent);
  box-shadow: 12px 12px 0 rgba(255, 94, 58, 0.08);
}
.page-home .ph-legacy__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.page-home .ph-legacy__card-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}
.page-home .ph-legacy__badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--color-gray);
  color: var(--color-gray);
  white-space: nowrap;
}
.page-home .ph-legacy__preview {
  height: 10rem;
  border: 1px solid var(--color-light-gray);
  background: var(--color-white);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
}
.page-home .ph-legacy__preview_new {
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}
.page-home .ph-legacy__preview_old {
  background: var(--color-light-gray);
  filter: grayscale(1) contrast(0.9);
}
.page-home .ph-legacy__bar {
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  width: 55%;
  margin-bottom: 0.5rem;
}
.page-home .ph-legacy__preview_old .ph-legacy__bar {
  background: rgba(107, 114, 128, 0.35);
}
.page-home .ph-legacy__row {
  height: 0.45rem;
  background: rgba(255, 255, 255, 0.2);
  width: 100%;
}
.page-home .ph-legacy__row_short {
  width: 68%;
}
.page-home .ph-legacy__preview_old .ph-legacy__row {
  background: rgba(107, 114, 128, 0.4);
}
.page-home .ph-legacy__tile {
  height: 2rem;
  background: var(--color-accent);
  clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%);
}
.page-home .ph-legacy__preview_old .ph-legacy__tile {
  background: #8b9097;
  height: 1.4rem;
}
.page-home .ph-legacy__old-btn {
  height: 1.2rem;
  width: 32%;
  background: #aaa;
}
.page-home .ph-legacy__note {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin: 0.75rem 0 0;
}
.page-home .ph-legacy__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(107, 114, 128, 0.25);
}
.page-home .ph-legacy__action p {
  flex: 1 1 100%;
  font-size: 0.95rem;
  margin: 0;
}

/* ===== V3 VIP Section ===== */
.page-home .ph-vip {
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(212, 175, 55, 0.1), transparent 55%),
    linear-gradient(145deg, var(--color-primary-deep) 0%, var(--color-primary) 70%);
  color: var(--color-white);
  padding: var(--space-xl) 0;
}
.page-home .ph-vip__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.page-home .ph-vip__badge {
  position: relative;
  margin: 0;
  justify-self: stretch;
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.8rem;
  background: rgba(6, 13, 24, 0.35);
}
.page-home .ph-vip__rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.28),
    inset 0 0 0 10px rgba(212, 175, 55, 0.05),
    inset 0 0 0 11px rgba(212, 175, 55, 0.12);
}
.page-home .ph-vip__badge img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .ph-vip__badge figcaption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  z-index: 2;
  background: var(--color-primary-deep);
  color: var(--color-vip);
  padding: 0.3rem 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(212, 175, 55, 0.5);
}
.page-home .ph-vip__content {
  color: rgba(255, 255, 255, 0.8);
}
.page-home .ph-vip__content .ph-section-index__num {
  color: var(--color-vip);
  border-color: var(--color-vip);
}
.page-home .ph-vip__content .ph-section-index__key {
  color: rgba(255, 255, 255, 0.55);
}
.page-home .ph-vip__content .ph-section-index__line {
  background: rgba(212, 175, 55, 0.4);
}
.page-home .ph-vip__content .ph-section-title {
  color: var(--color-white);
}
.page-home .ph-vip__content .ph-section-lead {
  color: rgba(255, 255, 255, 0.7);
}
.page-home .ph-vip__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.page-home .ph-vip__features li {
  padding: 0.75rem 0.9rem 0.75rem 2.6rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}
.page-home .ph-vip__features li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 1.05rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--color-vip);
  transform: rotate(45deg);
}
.page-home .ph-vip__features span {
  display: block;
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.page-home .ph-vip__tiers {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.page-home .ph-vip__tier {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.page-home .ph-vip__tier_active {
  border-color: var(--color-vip);
  background: rgba(212, 175, 55, 0.08);
}
.page-home .ph-vip__tier-name {
  font-family: var(--font-heading);
  font-weight: 700;
  min-width: 2.4rem;
  color: var(--color-white);
}
.page-home .ph-vip__tier_active .ph-vip__tier-name {
  color: var(--color-vip);
}
.page-home .ph-vip__tier-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.page-home .ph-vip__content .btn {
  margin-top: 0.5rem;
}

/* ===== Weekend Section ===== */
.page-home .ph-weekend {
  padding: var(--space-xl) 0;
}
.page-home .ph-weekend__figure {
  position: relative;
  margin: 0 0 var(--space-md);
}
.page-home .ph-weekend__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .ph-weekend__figure figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.75rem;
  text-transform: uppercase;
  box-shadow: -6px -6px 0 rgba(255, 94, 58, 0.25);
}
.page-home .ph-weekend__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.page-home .ph-weekend__card {
  border: 1px solid var(--color-light-gray);
  padding: 1rem 1.1rem 1.1rem;
  background: var(--color-white);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.page-home .ph-weekend__card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 rgba(11, 31, 58, 0.05);
}
.page-home .ph-weekend__card-num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.85rem;
  display: inline-block;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.15rem;
  margin-bottom: 0.75rem;
}
.page-home .ph-weekend__card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.page-home .ph-weekend__card-text {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin: 0;
  line-height: 1.55;
}
.page-home .ph-weekend__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  border-top: 1px solid var(--color-light-gray);
  padding-top: var(--space-md);
}
.page-home .ph-weekend__foot p {
  flex: 1 1 220px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-gray);
}

/* ===== Close / Trust Section ===== */
.page-home .ph-close {
  background: var(--color-primary-deep);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-home .ph-close::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -120%;
  width: 1px;
  height: 340%;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}
.page-home .ph-close__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}
.page-home .ph-close__slogan {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  margin: 0;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}
.page-home .ph-close__text {
  max-width: 38rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  padding: 0 1rem;
}
.page-home .ph-close__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  margin-top: 0.5rem;
}
.page-home .ph-close__links a {
  color: var(--color-vip);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s;
}
.page-home .ph-close__links a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.page-home .ph-close__links a:focus-visible,
.page-home .ph-close__links a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== Media Queries ===== */
@media (min-width: 640px) {
  .page-home .ph-sync__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
  .page-home .ph-legacy__compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .ph-vip__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .ph-vip__tiers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-home .ph-weekend__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-home .ph-hero__inner {
    grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr);
    gap: var(--space-xl);
    align-items: center;
    padding-top: var(--space-lg);
  }
  .page-home .ph-vip__inner {
    grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr);
    gap: var(--space-xl);
  }
  .page-home .ph-legacy__action p {
    flex: 1 1 60%;
  }
  .page-home .ph-legacy__action .btn {
    margin-left: auto;
  }
}
