/* Homepage v2 additions. Uses the existing landing-page design tokens. */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.feat-card {
  display: flex;
  min-height: 230px;
  padding: 34px 30px 38px;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
}
.feat-kicker,
.plan-row-k {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.feat-title { color: var(--ink); font-size: 21px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.feat-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.phase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 56px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.phase-cell { display: flex; padding: 22px 22px 26px; flex-direction: column; gap: 12px; background: var(--bg); }
.phase-trigger { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; text-align: left; }
.phase-trigger:focus-visible { border-radius: 8px; outline: 2px solid var(--accent); outline-offset: 3px; }
.phase-shot { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-elev); border: 1px solid var(--line-2); border-radius: 8px; }
.phase-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phase-shot::after { position: absolute; inset: 0; background: rgba(61, 91, 255, .16); content: ''; opacity: 0; transition: opacity .2s ease; }
.phase-trigger:hover .phase-shot::after,
.phase-trigger:focus-visible .phase-shot::after { opacity: 1; }
.phase-zoom { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: grid; width: 26px; height: 26px; place-items: center; background: rgba(10, 10, 11, .72); border: 1px solid var(--line-2); border-radius: 6px; opacity: 0; transition: opacity .2s ease; backdrop-filter: blur(6px); }
.phase-trigger:hover .phase-zoom,
.phase-trigger:focus-visible .phase-zoom { opacity: 1; }
.phase-zoom svg { display: block; width: 13px; height: 13px; color: var(--ink); }
.phase-idx { color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.phase-name { color: var(--ink); font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.phase-desc { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.legacy-anchor { position: absolute; width: 1px; height: 1px; pointer-events: none; }

.lightbox { position: fixed; inset: 0; z-index: 300; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: clamp(16px, 4vw, 56px); align-items: center; justify-content: center; background: rgba(5, 5, 6, .88); border: 0; color: inherit; backdrop-filter: blur(10px); }
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: transparent; }
.lightbox-inner { position: relative; display: flex; max-width: min(1280px, 100%); max-height: 100%; flex-direction: column; gap: 14px; }
.lightbox-img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 190px); object-fit: contain; background: var(--bg-elev); border: 1px solid var(--line-2); border-radius: 12px; }
.lightbox-cap { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.lightbox-idx { color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.lightbox-name { color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.lightbox-desc { max-width: 78ch; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.lightbox-close,
.lightbox-nav button { display: grid; width: 34px; height: 34px; place-items: center; background: var(--bg-elev); border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); cursor: pointer; }
.lightbox-close { position: absolute; top: -46px; right: 0; }
.lightbox-nav { position: absolute; top: -46px; right: 44px; display: flex; gap: 6px; }
.lightbox-close:hover,
.lightbox-nav button:hover { border-color: var(--accent); color: var(--accent); }
.lightbox-close svg,
.lightbox-nav svg { display: block; width: 14px; height: 14px; }
body.lightbox-open { overflow: hidden; }

.plan-grid { display: grid; margin-top: 40px; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card { display: flex; padding: 28px 26px 30px; flex-direction: column; gap: 18px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; }
.plan-card.is-lead { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft), 0 18px 60px -30px var(--accent-glow); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { color: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.plan-tag { padding: 4px 9px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.plan-rows { display: flex; flex-direction: column; gap: 13px; }
.plan-row-k { color: var(--muted-deep); font-size: 9.5px; letter-spacing: .13em; }
.plan-row-v { margin-top: 3px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.plan-row-v.muted { color: var(--muted); }
.economics-model-head { margin-top: 96px; }
.section-head h2.h2-long { max-width: 34ch; font-size: clamp(32px, 4.6vw, 62px); }
.harness-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.harness-tbl { width: 100%; min-width: 560px; border-collapse: collapse; }
.harness-tbl th,
.harness-tbl td { padding: 13px 20px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: left; }
.harness-tbl th { background: var(--bg-sunk); color: var(--muted-deep); font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; }
.harness-tbl tr:last-child td { border-bottom: 0; }
.harness-tbl td:first-child { color: var(--ink); font-family: var(--mono); font-size: 12.5px; }
.harness-tbl td:nth-child(2) { color: var(--muted); }
.harness-tbl td:last-child { color: var(--accent); font-family: var(--mono); font-size: 12.5px; }

@media (max-width: 1040px) { .phase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .feat-grid,
  .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .phase-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .phase-shot::after,
  .phase-zoom { transition: none; }
}
