/* landing.css — additional styles for marketing + auth */

.landing {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
}

/* nav */
.ln-nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.ln-nav-in {
  max-width: 1180px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 22px;
}
.ln-nav a { text-decoration: none; color: var(--text-dim); font-size: 13.5px; }
.ln-nav a:hover { color: var(--text); }
.ln-nav .right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ln-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--text-dim);
  font-family: var(--mono);
  padding: 3px 8px;
  border: 1px solid var(--border); border-radius: 999px;
}
.ln-status .d {
  width: 6px; height: 6px; border-radius: 999px; background: var(--ok);
  box-shadow: 0 0 0 3px oklch(0.66 0.14 152 / 0.18);
}
.ln-status.lvl-warn .d {
  background: var(--warn);
  box-shadow: 0 0 0 3px oklch(0.68 0.13 72 / 0.18);
}
.ln-status.lvl-bad .d {
  background: var(--bad);
  box-shadow: 0 0 0 3px oklch(0.60 0.17 22 / 0.18);
}
.ln-status.lvl-warn { color: var(--warn); }
.ln-status.lvl-bad  { color: var(--bad); }

/* section shell */
.section { max-width: 1180px; margin: 0 auto; padding: 80px 24px; }
.section.tight { padding: 48px 24px; }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.lead {
  max-width: 620px; margin-top: 20px;
  font-size: 17px; line-height: 1.5;
  color: var(--text-dim);
}

/* hero */
.hero {
  position: relative;
  padding-top: 88px;
  padding-bottom: 40px;
}
.hero-in {
  max-width: 1180px; margin: 0 auto;
  padding: 0 24px;
  position: relative; z-index: 1;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: 50% 0;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 40%, transparent 100%);
  opacity: 0.7;
  pointer-events: none;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-deep) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: 'Times New Roman', Times, 'Noto Serif', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: 18px;
  max-width: 620px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-top: 22px;
}
.hero-cta { margin-top: 28px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.trust-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px;
  color: var(--text-mute);
  font-size: 12.5px;
}
.trust-row .sep { width: 4px; height: 4px; border-radius: 999px; background: var(--text-mute); opacity: 0.4; }

/* hero preview */
.hero-preview {
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(37, 99, 235, 0.3),
    0 20px 40px -20px rgba(10, 11, 16, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
}
.hero-preview-top {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.hero-preview-top .lights { display: flex; gap: 6px; }
.hero-preview-top .lights span {
  width: 11px; height: 11px; border-radius: 999px;
  background: rgba(20,20,18,0.1);
}
.hero-preview-top .url {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--text-dim);
  padding: 4px 10px;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-left: 12px;
}

/* logo row */
.logos {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.logos-label {
  width: 100%; text-align: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.logo-mono {
  font-weight: 600; letter-spacing: -0.02em;
  color: var(--text-dim);
  opacity: 0.7;
  font-size: 17px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans);
}

/* "Built on" standards strip — replaces the legacy logos strip */
.standards { gap: 10px 14px; }
.standards .std-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: background .12s, color .12s, border-color .12s;
}
.standards .std-pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.standards .std-pill svg { color: var(--accent); flex: none; }
.standards .std-pill b { font-family: var(--sans); font-weight: 500; color: var(--text); }

/* features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feat {
  background: var(--surface);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 170px;
}
.feat .ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.feat h3 {
  margin: 0; font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em;
}
.feat p {
  margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.55;
}

/* compare */
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;      /* clip thead corners to match wrapper radius */
}
@media (max-width: 860px) {
  /* on narrow screens, allow horizontal scroll instead of clipping */
  .compare-wrap { overflow-x: auto; overflow-y: hidden; }
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 720px;
}
.compare th, .compare td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}
.compare th:first-child,
.compare td:first-child {
  text-align: left;
  color: var(--text-dim);
  white-space: normal;
}
.compare thead th {
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding-top: 26px; /* make room inside the cell for the "recommended" pill */
}
.compare thead th.hl {
  background: var(--accent);
  color: #fff;
  position: relative;
}
.compare thead th.hl::after {
  content: "recommended";
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  background: var(--accent-deep); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 2px 6px rgba(30,58,138,0.25);
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .y { color: var(--ok); font-weight: 600; }
.compare .n { color: var(--text-mute); }
.compare .hl-col {
  background: color-mix(in oklab, var(--accent) 6%, var(--surface));
  font-weight: 500;
  color: var(--text);
}
.compare tbody .sub-row td {
  background: var(--surface-alt);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
  padding: 8px 14px;
  text-align: left;
}

/* step cards */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 10px;
}
.step .n {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute);
}
.step h4 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.step p { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }

/* code card */
.code-card {
  display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 24px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.code-card .l { padding: 40px 36px; }
.code-card .r { padding: 24px; background: #0B0C12; align-self: stretch; display: flex; flex-direction: column; }
.code-card .r .tabs-bar {
  display: flex; gap: 2px; padding-bottom: 12px;
  border-bottom: 1px solid #1a1b24; margin-bottom: 12px;
}
.code-card .r .tabs-bar span {
  font-family: var(--mono); font-size: 11px;
  padding: 3px 10px; border-radius: 5px;
  color: #9AA0B3;
  cursor: pointer;
}
.code-card .r .tabs-bar span.on { color: #fff; background: #1a1b24; }
.code-card .r pre {
  flex: 1; margin: 0; font-family: var(--mono); font-size: 12.5px;
  color: #D8DCE5; white-space: pre; overflow: auto;
}
.tk-k { color: #A7B3FF; }
.tk-s { color: #C4F0AD; }
.tk-c { color: #7A8099; font-style: italic; }
.tk-n { color: #F5B57A; }
.tk-p { color: #D8DCE5; }

/* stats band */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-cell {
  background: var(--surface);
  padding: 32px 24px;
  text-align: center;
}
.stat-cell .v {
  font-family: var(--mono);
  font-size: 44px; font-weight: 500; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-cell .k {
  margin-top: 6px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim);
}

/* pricing row on landing */
.pricing-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  align-items: stretch;
}
/* Plan cards have different feature counts — make the features list grow
   so the CTA button sits flush with the bottom of both cards. */
.pricing-2 .plan { height: 100%; }
.pricing-2 .plan .features { flex: 1; }
.pricing-2 .plan > .btn { margin-top: auto; }

/* faq */
.faq-list {
  display: grid;
  gap: 8px;
  max-width: 780px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.faq-item > summary {
  list-style: none;
  padding: 16px 18px;
  cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  color: var(--text);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  margin-left: auto;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--text-mute);
  border-bottom: 1.5px solid var(--text-mute);
  transform: rotate(45deg);
  transition: transform .18s;
  flex: none;
}
.faq-item[open] > summary::after { transform: rotate(-135deg); }
.faq-item .faq-body {
  padding: 0 18px 18px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}
.faq-item .faq-body p { margin: 0 0 10px; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }
.faq-item .faq-body a { color: var(--accent); text-decoration: none; }
.faq-item .faq-body a:hover { text-decoration: underline; }
.faq-item .faq-body .mono {
  font-family: var(--mono);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 12.5px;
  color: var(--text);
}

/* cta band */
.cta-band {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  border-radius: 20px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  margin: 48px auto 80px;
  max-width: 1180px;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 20% 0%, black 0%, transparent 60%);
  pointer-events: none;
}
.cta-band-in {
  position: relative;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 {
  margin: 0; font-size: 36px; font-weight: 600; letter-spacing: -0.02em;
  max-width: 560px; line-height: 1.1;
}
.cta-band p { margin: 8px 0 0; color: rgba(255,255,255,0.75); max-width: 520px; font-size: 15px; }
.cta-band .btn {
  background: #fff; color: var(--accent-deep); border: 0;
  padding: 12px 22px; font-size: 14px; font-weight: 500;
}
.cta-band .btn:hover { background: #fff; transform: translateY(-1px); }
.cta-band .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }

/* footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 40px 24px 28px;
}
.footer-in {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px;
}
.footer h5 {
  margin: 0 0 14px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute); font-family: var(--mono); font-weight: 500;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { text-decoration: none; color: var(--text-dim); font-size: 13.5px; }
.footer ul a:hover { color: var(--text); }
.footer-bot {
  max-width: 1180px; margin: 32px auto 0;
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; color: var(--text-mute);
}

/* live preview widget that mimics the app pulse */
.preview-pulse {
  padding: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.pp-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 12px;
}
.pp-v {
  font-family: var(--mono); font-size: 34px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1;
}
.pp-rows { display: flex; flex-direction: column; gap: 8px; }
.pp-rows .pp-row:nth-child(n+6) { display: none; }
.pp-row {
  display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12px;
}
.pp-row:last-child { border-bottom: 0; }
.pp-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); flex: none; }
.pp-dot.opened { background: var(--blue-500); }
.pp-dot.bounced { background: var(--bad); }
.pp-dot.retrying { background: var(--warn); }
.pp-who { font-family: var(--mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ Auth pages ============ */
.auth-body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: var(--sans);
}
@media (max-width: 880px) { .auth-body { grid-template-columns: 1fr; } }

.auth-side {
  position: relative;
  background: linear-gradient(140deg, var(--accent-deep) 0%, var(--accent) 60%, #0F1F54 100%);
  color: #fff;
  padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.auth-side::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 0%, black 0%, transparent 80%);
  pointer-events: none;
}
.auth-side-in { position: relative; z-index: 1; }
.auth-side .logo { color: #fff; }
.auth-side .logo-mark { background: rgba(255,255,255,0.18); }
.auth-side h2 {
  margin: 0; font-size: 40px; letter-spacing: -0.025em; font-weight: 600; line-height: 1.05;
  max-width: 460px;
}
.auth-side h2 em {
  font-style: italic; font-family: 'Times New Roman', Times, 'Noto Serif', serif;
  font-weight: 500; color: rgba(255,255,255,0.9);
}
.auth-side .ss {
  margin-top: 24px;
  color: rgba(255,255,255,0.75);
  font-size: 15px; max-width: 440px; line-height: 1.5;
}

.auth-side .stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 520px;
}
.auth-side .stats .v {
  font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: -0.02em;
}
.auth-side .stats .k {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

.auth-side .feed-panel {
  position: relative; z-index: 1;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(10,20,60,0.5);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 16px 18px;
  max-width: 460px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(255,255,255,0.85);
}
.auth-side .feed-panel .hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.auth-side .feed-panel .hd .d {
  width: 6px; height: 6px; border-radius: 999px; background: #7EE7A1;
  display: inline-block; margin-right: 6px;
  box-shadow: 0 0 0 3px rgba(126, 231, 161, 0.25);
}
.auth-side .feed-panel .r {
  display: grid; grid-template-columns: 1fr auto;
  gap: 10px; padding: 5px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
}
.auth-side .feed-panel .r:last-child { border-bottom: 0; }
.auth-side .feed-panel .r .ok { color: #7EE7A1; }
.auth-side .feed-panel .r .warn { color: #FFC572; }
.auth-side .feed-panel .r .info { color: #A7B3FF; }
.auth-side .feed-panel .r .bad { color: #FFA299; }

.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.auth-card {
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: 18px;
}
.auth-card h1 {
  margin: 4px 0 2px; font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
}
.auth-card .sub {
  color: var(--text-dim); font-size: 14px; margin-bottom: 6px;
}
.auth-card .social {
  display: grid; grid-template-columns: 1fr; gap: 8px;
}
.auth-card .divider {
  display: flex; align-items: center; gap: 10px; margin: 4px 0;
  color: var(--text-mute); font-size: 11px; font-family: var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.auth-card .divider::before,
.auth-card .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-card .fields { display: flex; flex-direction: column; gap: 14px; }
.auth-card .foot {
  margin-top: 8px; font-size: 13px; color: var(--text-dim);
  text-align: center;
}
.auth-card .foot a { color: var(--accent); font-weight: 500; text-decoration: none; }

.lbl-row { display: flex; justify-content: space-between; align-items: baseline; }
.lbl-row a { font-size: 11.5px; color: var(--accent); text-decoration: none; }

/* responsive tables */
@media (max-width: 800px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-2 { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .code-card { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
