:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --ink: #172033;
  --muted: #657186;
  --line: #d9e0ea;
  --brand: #256f7f;
  --brand-strong: #164f5d;
  --accent: #d95f43;
  --success: #1f8f63;
  --danger: #b94a64;
  --shadow: 0 18px 48px rgba(23, 32, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand-logo,
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a,
.footer-links a {
  border-radius: 8px;
  padding: 7px 9px;
}

.site-nav a:hover,
.footer-links a:hover {
  background: #e8edf4;
  color: var(--ink);
}

main {
  display: grid;
  gap: 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 48px;
  align-items: center;
  min-height: 680px;
  padding: 50px 0 36px;
}

.hero-copy h1 {
  max-width: 770px;
  margin: 16px 0 18px;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p,
.section-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-copy p {
  max-width: 660px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.store-badges,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.button,
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.button {
  padding: 0 17px;
}

.store-badge {
  gap: 10px;
  min-width: 166px;
  padding: 7px 14px;
  background: #111827;
  color: #fff;
}

.store-badge small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.store-badge span {
  display: block;
  line-height: 1.1;
}

.button.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 111, 127, 0.22);
}

.button.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button:hover,
.store-badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.install-strip {
  display: grid;
  gap: 8px;
  width: min(100%, 600px);
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.install-strip code,
.command-line code {
  display: block;
  overflow-x: auto;
  color: #102233;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}

.install-strip code + code {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
}

.app-icon {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(23, 32, 51, 0.18);
}

.phone-frame {
  width: min(100%, 360px);
  margin-top: -18px;
  padding: 18px;
  border: 1px solid #cdd7e4;
  border-radius: 34px;
  background: #101827;
  box-shadow: var(--shadow);
}

.phone-screen {
  display: grid;
  gap: 12px;
  min-height: 520px;
  padding: 18px;
  border-radius: 22px;
  background: #f8fafc;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.phone-plus {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
}

.session-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #fff;
}

.session-card strong {
  font-size: 15px;
}

.session-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.session-card.active {
  border-color: rgba(37, 111, 127, 0.35);
  box-shadow: 0 10px 24px rgba(37, 111, 127, 0.12);
}

.session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.session-meta span,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #eef3f8;
  color: #526174;
  font-size: 12px;
  font-weight: 800;
}

.section-heading {
  max-width: 790px;
}

.section-heading h2,
.prose h1 {
  margin: 12px 0;
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-lead {
  margin: 0;
  max-width: 720px;
}

.grid,
.mode-grid,
.steps-grid,
.policy-grid {
  display: grid;
  gap: 14px;
}

.grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mode-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.policy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.step,
.mode,
.policy-item,
.prose {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.04);
}

.card,
.step,
.mode,
.policy-item {
  padding: 22px;
}

.card h3,
.step h3,
.mode h3,
.policy-item h3,
.prose h2,
.prose h3 {
  margin: 0 0 10px;
}

.card p,
.step p,
.mode p,
.policy-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.card-icon,
.step-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #e6f0f2;
  color: var(--brand-strong);
  font-weight: 900;
}

.mode h3 a {
  color: var(--brand-strong);
}

.band {
  margin-inline: calc(50% - 50vw);
  padding: 64px calc(50vw - 50%);
  background: #eef3f8;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: start;
}

.diagram {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.diagram-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.diagram-box {
  min-height: 62px;
  padding: 12px;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
  font-weight: 800;
}

.diagram-arrow {
  color: var(--brand);
  font-weight: 900;
}

.security-note {
  padding: 16px;
  border: 1px solid rgba(31, 143, 99, 0.28);
  border-radius: 8px;
  background: rgba(31, 143, 99, 0.08);
  color: #176449;
  line-height: 1.65;
}

.prose {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px;
}

.prose p,
.prose li {
  color: rgba(23, 32, 51, 0.82);
  line-height: 1.72;
}

.prose a {
  color: var(--brand-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose th {
  background: #eef3f8;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.markdown-rendered {
  margin-top: 22px;
}

.markdown-rendered h1 {
  display: none;
}

.markdown-rendered h2 {
  margin: 28px 0 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 32, 51, 0.1);
}

.markdown-rendered code,
.prose code {
  border-radius: 8px;
  padding: 2px 6px;
  background: rgba(23, 32, 51, 0.08);
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.delete-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.delete-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.delete-form input,
.delete-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(23, 32, 51, 0.16);
  padding: 14px 16px;
  font: inherit;
  background: white;
  color: var(--ink);
}

.banner {
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}

.banner.error {
  background: rgba(185, 74, 100, 0.12);
  color: var(--danger);
}

.banner.success {
  background: rgba(31, 143, 99, 0.12);
  color: var(--success);
}

.fine-print {
  font-size: 13px;
  color: rgba(23, 32, 51, 0.64);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-top: 72px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .grid,
  .mode-grid,
  .steps-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 22px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .phone-frame {
    width: min(100%, 340px);
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav,
  .footer-links {
    justify-content: flex-start;
  }

  main {
    gap: 54px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .section-lead {
    font-size: 16px;
  }

  .section-heading h2,
  .prose h1 {
    font-size: 30px;
  }

  .diagram-row {
    grid-template-columns: 1fr;
  }

  .diagram-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .prose {
    padding: 22px;
  }

  .store-badge {
    width: 100%;
  }
}
