/* Additional styles for secondary pages */

/* ---------- Page header (slim hero for inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero.dark {
  background: #0b0b12;
  color: #fff;
  border-bottom: none;
}
.page-hero.dark h1, .page-hero.dark h2 { color: #fff; }
.page-hero.dark p { color: #b6b6c5; }
.page-hero.dark .eyebrow { color: #c4b5fd; }
.page-hero.tinted { background: var(--bg-tint); }
.page-hero .bg-grad {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 80% -20%, rgba(124, 58, 237, 0.15) 0%, transparent 55%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  max-width: 860px;
  margin-top: 16px;
}
.page-hero p.lede { max-width: 640px; margin-top: 22px; font-size: 18px; }
.page-hero .hero-ctas { margin-top: 30px; }

/* Breadcrumb */
.crumb {
  display: inline-flex;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.crumb a { color: var(--ink-4); }
.crumb a:hover { color: var(--brand); }
.crumb .sep { color: var(--line-2); }

/* Two-column content */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }
.two-col.flip > :first-child { order: 2; }
@media (max-width: 900px) { .two-col.flip > :first-child { order: 0; } }
.two-col h2 { font-size: clamp(28px, 3vw, 40px); }
.two-col .list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; gap: 14px;
}
.two-col .list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: var(--ink-2);
}
.two-col .list li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Panel mockup */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.panel.dense { padding: 0; }
.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.panel-head h4 { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.panel-head .subtle { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-4); letter-spacing: 0.06em; }

/* Stat badge */
.stat-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 12px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.stat-badge strong { font-weight: 600; }

/* Generic card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 28px;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.card .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.card h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.card p { font-size: 14px; color: var(--ink-3); flex: 1; }
.card .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border: 1.5px solid var(--brand);
  background: linear-gradient(180deg, #fbfaff 0%, #fff 50%);
  position: relative;
}
.plan.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
}
.plan .plan-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.plan .plan-tag { font-size: 13.5px; color: var(--ink-3); margin-bottom: 24px; min-height: 42px; }
.plan .plan-price {
  font-family: var(--font-display);
  font-size: 44px;
  letter-spacing: -0.025em;
  font-weight: 500;
  line-height: 1;
}
.plan .plan-price small {
  font-size: 13px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.04em;
  display: block;
  margin-top: 8px;
}
.plan .plan-cta { margin-top: 24px; }
.plan ul {
  list-style: none; padding: 0; margin: 28px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: grid; gap: 12px;
}
.plan ul li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--ink-2);
}
.plan ul li::before {
  content: "";
  width: 14px; height: 14px;
  margin-top: 4px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* Compare table */
.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 56px;
  font-size: 14px;
}
.compare th, .compare td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.compare thead th {
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}
.compare th:first-child, .compare td:first-child { font-weight: 500; color: var(--ink); }
.compare td .yes { color: var(--brand); }
.compare td .no { color: var(--ink-4); }

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  transition: border 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-softer);
}
.field textarea { min-height: 120px; resize: vertical; }

/* Blog list */
.post-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: all 0.15s ease;
}
.post:hover { padding-left: 8px; padding-right: 8px; }
.post .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 4px;
}
.post h3 { font-size: 20px; font-weight: 500; margin-bottom: 6px; letter-spacing: -0.015em; }
.post p { font-size: 14.5px; color: var(--ink-3); max-width: 640px; }
.post .read-arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  align-self: center;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.post:hover .read-arrow { opacity: 1; color: var(--brand); }
@media (max-width: 700px) {
  .post { grid-template-columns: 1fr; gap: 8px; }
  .post .read-arrow { display: none; }
}

/* Career list */
.job-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.job {
  display: grid;
  grid-template-columns: 1fr 200px 120px 80px;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 14px;
}
.job:hover { background: var(--bg-soft); padding-left: 12px; padding-right: 12px; }
.job h4 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.job .dept, .job .loc { color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }
.job .apply { color: var(--brand); font-family: var(--font-mono); font-size: 12px; text-align: right; letter-spacing: 0.04em; }
@media (max-width: 700px) { .job { grid-template-columns: 1fr; gap: 4px; } }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-member {
  display: flex; flex-direction: column; gap: 10px;
}
.team-avatar {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--bg-tint) 100%);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.team-member strong { font-size: 15px; font-weight: 500; letter-spacing: -0.005em; }
.team-member span { font-size: 13px; color: var(--ink-4); font-family: var(--font-mono); letter-spacing: 0.02em; }

/* Logo wall big */
.big-logo-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 36px;
}
@media (max-width: 700px) { .big-logo-wall { grid-template-columns: repeat(2, 1fr); } }
.big-logo {
  background: #fff;
  padding: 36px 20px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  display: grid; place-items: center;
  min-height: 120px;
}

/* Frameworks grid */
.fw-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .fw-card-grid { grid-template-columns: 1fr; } }
.fw-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s ease;
}
.fw-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.fw-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.fw-body {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.65;
}
.fw-card-big {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.18s ease;
}
.fw-card-big:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.fw-card-big .fw-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}
.fw-card-big h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.fw-card-big p { font-size: 13.5px; color: var(--ink-3); flex: 1; }
.fw-card-big .fw-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.04em;
}

/* Solution hero style */
.sol-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.sol-icon svg { width: 26px; height: 26px; }

/* Simple status list */
.status-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.status-row {
  display: grid;
  grid-template-columns: 1fr auto 140px;
  gap: 16px;
  padding: 16px 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.status-row:first-child { border-top: none; }
.status-row strong { font-weight: 500; color: var(--ink); }
.status-row .uptime { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: 999px;
  background: #ecfdf5; color: #047857;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.04em;
}
.status-pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #10b981;
}

/* Prose (legal/policy) */
.prose {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.prose h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 12px;
}
.prose h3 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 8px;
}
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose ul li { margin-bottom: 8px; }
.prose .meta-top {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 24px;
}

/* Sign-in card */
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 60px 28px;
  background: var(--bg-soft);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.auth-card p { margin-bottom: 28px; color: var(--ink-3); font-size: 14.5px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .btn { width: 100%; justify-content: center; padding: 14px; }
.auth-card .sso {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.auth-card .sso .btn { background: #fff; border: 1px solid var(--line-2); color: var(--ink); }
.auth-card .sso .btn:hover { border-color: var(--ink); }
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-4);
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.auth-foot { margin-top: 24px; text-align: center; font-size: 13px; color: var(--ink-3); }
.auth-foot a { color: var(--brand); font-weight: 500; }

/* Section variants for padding */
.section-md { padding: 80px 0; }
.section-sm { padding: 56px 0; }

/* Quote big */
.big-quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 820px;
  text-wrap: pretty;
  font-weight: 400;
}
.big-quote::before { content: "\201C"; color: var(--brand); }
.big-quote::after { content: "\201D"; color: var(--brand); }
.big-quote-who {
  margin-top: 20px;
  display: flex; align-items: center; gap: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE OVERRIDES — inner pages
   ═══════════════════════════════════════════════════════════════ */

/* ≤ 768px */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .page-hero { padding: 64px 0 48px; }
}

/* ≤ 640px */
@media (max-width: 640px) {
  .page-hero { padding: 56px 0 40px; }
  .page-hero p.lede { font-size: 16px; }
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
  /* Compare table: scroll horizontally instead of overflow */
  .compare { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Price grid: single column */
  .price-grid { grid-template-columns: 1fr !important; max-width: 440px; margin: 0 auto; }
  /* Card grids */
  .card-grid { gap: 14px; }
  /* Two-col gap tighter on mobile */
  .two-col { gap: 32px; }
}

/* ≤ 480px */
@media (max-width: 480px) {
  .page-hero { padding: 48px 0 32px; }
  .team-grid { grid-template-columns: 1fr !important; max-width: 280px; margin: 0 auto; }
  .section { padding: 40px 0; }
}
