/* Landing page (/). Tokens and base styles come from style.css. */

.landing {
  --max: 1080px;
}
.landing main {
  padding: 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px;
  background: rgba(11, 12, 14, 0.85);
  backdrop-filter: blur(8px);
}
.nav-links {
  display: flex;
  gap: 24px;
  margin: 0 auto;
}
.nav-links a {
  color: var(--muted);
  font-size: 13px;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0b0c0e;
  border-radius: 8px;
  padding: 10px 18px;
  font:
    600 14px Inter,
    sans-serif;
}
.btn-primary.small {
  padding: 7px 14px;
  font-size: 13px;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  font:
    500 14px Inter,
    sans-serif;
}

/* ---- Hero ---- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 16px 24px;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--muted);
  font-size: 12px;
  background: var(--panel);
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 22px 0 18px;
}
.lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.analyse {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 28px auto 10px;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.analyse input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font: 13px var(--mono);
  padding: 8px 10px;
}
.analyse input:focus {
  outline: none;
}
.analyse:focus-within {
  border-color: var(--accent);
}
.fine {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 0;
}
.form-status {
  font-size: 13px;
  margin: 6px auto;
  max-width: 520px;
  color: var(--muted);
}
.form-status.error {
  color: #f1b3ac;
}
.form-status.ok {
  color: var(--accent);
}

.preview {
  margin: 44px auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(200, 230, 74, 0.04);
  text-align: left;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.preview-bar .dots {
  display: flex;
  gap: 6px;
}
.preview-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3e45;
}
.preview-bar .dots i:first-child {
  background: #e5675a;
}
.preview-bar .dots i:nth-child(2) {
  background: #e6c84a;
}
.preview-bar .dots i:nth-child(3) {
  background: #8fcf5a;
}
.preview-url {
  flex: 1;
  text-align: center;
  color: var(--muted);
  font: 11.5px var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The iframe renders the real boss page at desktop width and is scaled to fit (landing.ts). */
.preview-frame {
  --scale: 0.8;
  position: relative;
  height: calc(760px * var(--scale));
  overflow: hidden;
}
.preview-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 760px;
  border: 0;
  transform: scale(var(--scale));
  transform-origin: 0 0;
  pointer-events: none;
}
.preview-link {
  display: block;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-align: right;
}

/* ---- Sections ---- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 16px 0;
}
.eyebrow {
  color: var(--accent);
  font: 500 11px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.section h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
}
.sub {
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 28px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.card h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
.card p {
  margin: 0;
}
.card-accent {
  border-color: rgba(200, 230, 74, 0.45);
  box-shadow: 0 0 40px rgba(200, 230, 74, 0.06);
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}
.chips-row span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11.5px;
  color: var(--muted);
}
.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps-list li,
.answer,
.fake-input {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.steps-list b {
  font: 500 12px var(--mono);
  color: var(--text);
  white-space: nowrap;
}
.fake-input {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  align-items: center;
}
.fake-input span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fake-input b {
  background: var(--accent);
  color: #0b0c0e;
  border-radius: 6px;
  padding: 3px 10px;
  font:
    600 12px Inter,
    sans-serif;
}
.answer {
  flex-direction: column;
  gap: 2px;
  color: var(--text);
  border-color: rgba(200, 230, 74, 0.3);
}
.answer.row {
  flex-direction: row;
  border-color: var(--line);
  color: var(--muted);
}
.answer.row b {
  font: 500 12px var(--mono);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: center;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  color: var(--muted);
  font-size: 12px;
}
.conf {
  border-radius: 4px;
  padding: 1px 6px;
  font: 500 11px var(--mono);
  font-style: normal;
  white-space: nowrap;
}
.conf.high {
  color: var(--accent);
  background: rgba(200, 230, 74, 0.12);
}
.conf.medium {
  color: #e6c84a;
  background: rgba(230, 200, 74, 0.12);
}
.conf.low {
  color: var(--muted);
  background: rgba(154, 158, 166, 0.12);
}
.strat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.strat-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.strat-lines li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.strat-lines b {
  color: var(--text);
  font-weight: 600;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.step .num {
  display: block;
  color: var(--accent);
  font: 500 12px var(--mono);
  margin-bottom: 14px;
}
.step p,
.feature p,
.faq p {
  font-size: 13px;
}
.feature .icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #1a1d22;
  color: var(--accent);
  margin-bottom: 14px;
  font-size: 15px;
}
.feature.soon .icon {
  color: var(--muted);
}
.badge {
  display: inline-block;
  margin-left: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--muted);
  font:
    500 10.5px Inter,
    sans-serif;
  vertical-align: 2px;
}

.cta {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 56px 20px;
  background:
    radial-gradient(ellipse at top, rgba(200, 230, 74, 0.08), transparent 60%), var(--panel);
}
.cta p {
  margin: 0 0 22px;
}

.foot {
  max-width: var(--max);
  margin: 72px auto 0;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

/* ---- Request access dialog ---- */
.access {
  width: min(420px, calc(100vw - 32px));
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.access::backdrop {
  background: rgba(0, 0, 0, 0.6);
}
.access h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.access label {
  display: block;
  margin-top: 14px;
  font-size: 13px;
}
.access input {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 9px 11px;
  font:
    14px Inter,
    sans-serif;
}
.access input:focus {
  outline: 1px solid var(--accent);
}
.access .hp {
  position: absolute;
  left: -9999px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

@media (max-width: 820px) {
  .compare,
  .split,
  .grid3,
  .grid2 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .nav .btn-primary {
    margin-left: auto;
  }
}
@media (max-width: 480px) {
  .analyse {
    flex-direction: column;
  }
  .strat-lines li {
    flex-direction: column;
    gap: 4px;
  }
}

/* Grid children must be allowed to shrink below their content (long URLs, nowrap chips). */
.compare > *,
.split > *,
.grid3 > *,
.grid2 > * {
  min-width: 0;
}
@media (max-width: 480px) {
  .hero h1 br {
    display: none;
  }
}
