/* Breakglass — index.html specific layout (loads after styles.css) */

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 72px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  max-width: 14ch;
}

.hero .lede {
  margin-top: 18px;
  font-size: 1.1rem;
  max-width: 44ch;
}

.hero-ctas {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual svg { width: 100%; max-width: 380px; }

/* ---------- Problem / phone roles ---------- */

.problem .wrap {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .problem .wrap { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

.role-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.role-cloud .chip { color: var(--text); }
.role-cloud .chip svg { width: 16px; height: 16px; }

/* ---------- How it works rail ---------- */

.rail {
  margin-top: 48px;
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .rail {
    grid-template-columns: repeat(3, 1fr);
    position: relative;
  }
  .rail::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 4%;
    right: 4%;
    height: 1px;
    background: var(--border);
  }
}

.rail-step { position: relative; }

.rail-step .num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.rail-step h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

/* ---------- Dependency graph ---------- */

.graph-section { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.graph-wrap { margin-top: 40px; }

.graph-desktop { display: none; }
@media (min-width: 740px) {
  .graph-desktop { display: block; }
  .graph-mobile { display: none; }
}

.graph-mobile {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 420px;
}

.graph-mobile .node {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
}

.graph-mobile .node.hot {
  border-color: var(--accent);
  color: var(--accent);
}

.graph-mobile .arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 6px 0;
}

.graph-mobile .arrow.hot { color: var(--accent); }

.graph-callout {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  max-width: 56ch;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.graph-callout svg { color: var(--accent); margin-top: 2px; }
.graph-callout p { color: var(--text); font-size: 0.95rem; }
.graph-callout strong { color: var(--accent-dark); }

/* ---------- Product ---------- */

.product-row {
  display: grid;
  gap: 40px;
  margin-top: 32px;
}

@media (min-width: 900px) {
  .product-row { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
}

.price-card {
  border: 2px solid var(--border-strong);
  padding: 32px 28px;
  background: var(--bg-elevated);
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  margin-top: 6px;
}

.price-card .price sup { font-size: 1.4rem; top: -1.4em; }

.price-card .btn { margin-top: 22px; }

.check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .check-grid { grid-template-columns: 1fr 1fr; }
}

.check-item {
  background: var(--bg-elevated);
  padding: 16px 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
}

.check-item svg { color: var(--safe); margin-top: 2px; }

/* ---------- Pricing ladder ---------- */

.pricing-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); align-items: end; }
}

.plan {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan.is-featured {
  border: 2px solid var(--accent);
  transform: translateY(-10px);
  box-shadow: 0 18px 34px -24px rgba(0,0,0,0.35);
}

.plan .badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.plan .plan-name { font-size: 1.05rem; font-weight: 700; }

.plan .plan-price {
  font-family: var(--font-display);
  font-size: 2rem;
}

.plan .plan-price span { font-size: 0.9rem; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; }

.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; color: var(--text-muted); }
.plan li { display: flex; gap: 8px; }
.plan li svg { width: 15px; height: 15px; margin-top: 3px; color: var(--text-muted); flex-shrink: 0; }

/* ---------- Trust plaque (deliberate one-time dark band) ---------- */

.trust-plaque {
  background: #15171a;
  color: #f6f6f3;
  border-top: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
}

.trust-plaque .eyebrow { color: #ff6678; }
.trust-plaque h2 { color: #f6f6f3; }
.trust-plaque p { color: #c7c9c4; }

.trust-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: #33353a;
  border: 1px solid #33353a;
}

@media (min-width: 900px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}

.trust-item {
  background: #15171a;
  padding: 28px 24px;
}

.trust-item svg { color: var(--accent); margin-bottom: 14px; width: 26px; height: 26px; }
.trust-item h3 { color: #f6f6f3; font-size: 1.1rem; margin-bottom: 8px; }
.trust-item p { color: #a8aba6; font-size: 0.92rem; }

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 36px;
  border-top: 1px solid var(--border);
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .chevron {
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1);
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item[open] summary .chevron { transform: rotate(180deg); }

.faq-item p {
  padding-bottom: 20px;
  max-width: 68ch;
  font-size: 0.95rem;
}
