/* Shared by the home page and every content page (use cases, comparisons,
   security, blog, about, press, status). Loaded after styles.css. */

/* ---------- Nav additions ---------- */

.lang-switch {
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}
.lang-switch:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}
.nav.scrolled .lang-switch {
  color: var(--muted);
  border-color: var(--line);
}
.nav.scrolled .lang-switch:hover {
  color: var(--ink);
}
.lang-switch:focus-visible {
  outline: 3px solid rgba(251, 191, 36, 0.8);
  outline-offset: 3px;
}

/* ---------- Hero trust strip ---------- */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-strip li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------- Stats band ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats li {
  padding: 30px 26px;
}
.stats li + li {
  border-left: 1px solid var(--line);
}
.stats strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.stats span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}
.stats-section {
  padding: 8px 0 0;
}

/* ---------- Use-case cards ---------- */

.uc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.uc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  color: var(--ink);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.uc-card:hover {
  transform: translateY(-2px);
  border-color: #cdd5e4;
  box-shadow: 0 18px 40px rgba(15, 20, 36, 0.08);
}
.uc-card:focus-visible {
  outline: 3px solid rgba(251, 191, 36, 0.8);
  outline-offset: 3px;
}
.uc-card h3 {
  font-size: 21px;
}
.uc-card p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
}
.uc-card .more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
}
.uc-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 20px;
  border-radius: 12px;
  background: var(--soft);
}

/* ---------- Get started steps ---------- */

.steps {
  display: grid;
  gap: 14px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16.5px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: #231903;
  background: var(--amber);
  border-radius: 10px;
}
.steps strong {
  color: #ffffff;
}
.final .small-print {
  margin: 18px 0 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.55);
}
.final .small-print a {
  color: #fcd34d;
}

/* ---------- Maker note (stands in for testimonials until there are real ones) ---------- */

.maker {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
  padding: 36px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 26px;
}
.maker-mark {
  width: 76px;
  height: 76px;
  border-radius: 22px;
}
.maker blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.maker figcaption {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}
.maker figcaption a {
  color: var(--blue);
  font-weight: 600;
}

/* Testimonial card, for real early-user quotes. */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.quote {
  margin: 0;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.quote blockquote {
  margin: 0;
  font-size: 17px;
}
.quote figcaption {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Content pages ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 84px;
  color: #ffffff;
  background: var(--night);
}
.page-hero .wrap {
  position: relative;
}
.page-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.04em;
}
.page-hero .lead {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.72);
}
.page-hero .cta-row {
  justify-content: flex-start;
  margin-top: 34px;
}
.page-hero .eyebrow {
  color: #fcd34d;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 8px;
}
.crumbs a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.crumbs a:hover {
  color: #ffffff;
}

/* Long-form text: blog posts, comparisons, security, about. */
.prose {
  max-width: 760px;
}
.prose.center {
  margin-left: auto;
  margin-right: auto;
}
.prose h2 {
  margin: 56px 0 16px;
  font-size: clamp(26px, 3.4vw, 34px);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 34px 0 10px;
  font-size: 21px;
}
.prose p,
.prose li {
  color: #2b3142;
}
.prose p {
  margin: 0 0 16px;
}
.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
}
.prose a {
  color: var(--blue);
}
.prose .meta {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--muted);
}
.callout {
  margin: 28px 0;
  padding: 20px 22px;
  background: var(--soft);
  border-left: 4px solid var(--amber);
  border-radius: 0 14px 14px 0;
}
.callout p:last-child {
  margin-bottom: 0;
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15.5px;
}
.compare th,
.compare td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-family: var(--display);
  font-weight: 600;
  background: var(--soft);
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}
.compare tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 34%;
}
.compare td.us {
  background: #fffbeb;
}
.yes {
  font-weight: 600;
  color: #047857;
}
.no {
  color: #b91c1c;
}
.sources {
  font-size: 14px;
  color: var(--muted);
}

/* Feature grid on content pages */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.section.soft .card {
  border-color: transparent;
}
.card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}
.card p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
}

/* Data-flow diagram (security page) */
.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.flow-col {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.flow-col.home {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.flow-col h3 {
  font-size: 18px;
}
.flow-col .where {
  margin: 4px 0 14px;
  font-size: 14px;
  color: var(--muted);
}
.flow-col ul {
  margin: 0;
  padding-left: 20px;
  font-size: 15.5px;
}
.flow-col li {
  margin: 5px 0;
}

/* Blog index */
.post-list {
  display: grid;
  gap: 18px;
  max-width: 860px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-list a {
  display: block;
  padding: 28px;
  color: var(--ink);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.post-list a:hover {
  border-color: #cdd5e4;
  box-shadow: 0 18px 40px rgba(15, 20, 36, 0.07);
}
.post-list h2 {
  font-size: 24px;
}
.post-list p {
  margin: 10px 0 0;
  color: var(--muted);
}
.post-list .meta {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}

/* Inline CTA band at the end of content pages */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
  color: #ffffff;
  background: radial-gradient(120% 140% at 100% 0%, #13306f 0%, var(--night) 60%);
  border-radius: 28px;
}
.cta-band h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}
.cta-band p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Status page */
.status-list {
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}
.status-list li + li {
  border-top: 1px solid var(--line);
}
.status-list .what {
  font-weight: 600;
}
.status-list .why {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.pill-state {
  flex: none;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  color: var(--muted);
  background: var(--soft);
}
.pill-state.up {
  color: #047857;
  background: #ecfdf5;
}
.pill-state.degraded {
  color: #92400e;
  background: #fffbeb;
}
.pill-state.down {
  color: #b91c1c;
  background: #fef2f2;
}

/* Press kit downloads */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.asset {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.asset .preview {
  display: grid;
  place-items: center;
  height: 150px;
  border-radius: 14px;
  background: var(--soft);
}
.asset .preview.dark {
  background: var(--night);
}
.asset a {
  font-weight: 600;
  color: var(--blue);
}

/* ---------- Home additions ---------- */

a.mode {
  text-decoration: none;
}
a.mode:hover {
  background: #dbe7ff;
}
.more-link {
  margin: 40px 0 0;
}
.more-link a {
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.more-link a:hover {
  text-decoration: underline;
}
.final p:has(+ .steps) {
  margin-bottom: 0;
}

/* Short pages: keep the dark footer at the bottom of the window. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > main {
  flex: 1;
}

.callout a,
.card a,
.flow-col a {
  color: var(--blue);
}

.prose .eyebrow {
  margin: 0 0 14px;
  color: #8a6508;
}
.compare.wide tbody th {
  width: auto;
}

/* ---------- Footer additions ---------- */

.footer-grid {
  grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr));
}
.footer-tag {
  margin: 14px 0 0;
  max-width: 240px;
  font-size: 14.5px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
}
.footer-bottom .copyright {
  margin: 0;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}
.status-badge:hover {
  color: #ffffff;
}
.status-badge .sdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}
.status-badge[data-state='up'] .sdot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}
.status-badge[data-state='degraded'] .sdot {
  background: var(--amber);
}
.status-badge[data-state='down'] .sdot {
  background: #ef4444;
}

/* ---------- Small screens ---------- */

@media (max-width: 960px) {
  .lang-switch {
    margin-left: auto;
  }
  .nav-inner .lang-switch + .btn-small {
    margin-left: 0;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats li:nth-child(3) {
    border-left: 0;
  }
  .stats li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .uc-grid,
  .quotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-grid,
  .flow,
  .asset-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid > .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .stats li {
    padding: 22px 16px;
  }
  .uc-grid,
  .quotes,
  .card-grid.two {
    grid-template-columns: minmax(0, 1fr);
  }
  .maker {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px;
  }
  .page-hero {
    padding: 120px 0 60px;
  }
  .page-hero .lead {
    font-size: 18px;
  }
  .cta-band {
    padding: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
