:root {
  color: #202223;
  background: #f4f4f4;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  --text: #202223;
  --muted: #616b74;
  --border: #d9dedc;
  --surface: #ffffff;
  --subtle: #f7f8f7;
  --green: #008060;
  --blue: #005bd3;
  --yellow: #fff1d6;
  --yellow-text: #7a4d00;
  --blue-soft: #e8f3ff;
  --blue-text: #084e8a;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(180deg, #f6f7f6 0, #eeeeee 440px),
    #eeeeee;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 12px clamp(18px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 720px);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(46px, 6vw, 78px) clamp(18px, 5vw, 42px) clamp(34px, 5vw, 58px);
}

.kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 16px;
  padding: 5px 9px;
  color: #09543f;
  background: #dff6ec;
  border: 1px solid #bde9d0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-size: clamp(39px, 5.2vw, 64px);
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin: 20px 0 0;
  color: #39434d;
  font-size: clamp(16px, 2vw, 18px);
}

.quick-issues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.quick-issues span {
  padding: 7px 10px;
  color: #34414d;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.primary-button {
  color: #fff;
  background: #1f1f1f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.secondary-button {
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
}

.note {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.centered {
  text-align: center;
}

.preview-wrap {
  position: relative;
  align-self: start;
}

.preview-caption {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.app-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.app-preview::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #008060, #6bd2a1);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
}

.preview-header strong,
.preview-header span {
  display: block;
}

.preview-header span {
  color: var(--muted);
  font-size: 13px;
}

.mock-button {
  display: inline-grid;
  place-items: center;
  height: 32px;
  padding: 0 12px;
  color: #fff !important;
  background: #202223;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 32px;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
  padding-top: 1px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 18px;
  background: #f6f6f7;
  border-bottom: 1px solid var(--border);
}

.metric-row div {
  padding: 12px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.metric-row span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.metric-row strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.task-list {
  padding: 8px 18px 18px;
}

.task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eceeed;
}

.task:last-child {
  border-bottom: 0;
}

.mock-link {
  display: inline;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

.task span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.message-band {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 42px) 16px;
}

.message-band p {
  margin: 0;
  padding: 20px 22px;
  color: #34414d;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(38px, 5vw, 58px) clamp(18px, 5vw, 42px);
}

.section-title {
  max-width: 720px;
  margin-bottom: 22px;
}

.section-title h2,
.split-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-title p,
.split-section p {
  margin: 10px 0 0;
  color: var(--muted);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.check-grid div {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-weight: 700;
}

.example-section {
  padding-top: 12px;
}

.example-list {
  display: grid;
  gap: 10px;
}

.example-list article {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.example-list h3 {
  margin: 8px 0 4px;
  font-size: 17px;
  letter-spacing: 0;
}

.example-list p {
  margin: 0;
  color: var(--muted);
}

.severity {
  display: inline-flex;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.severity.warning {
  color: var(--yellow-text);
  background: var(--yellow);
}

.severity.suggestion {
  color: var(--blue-text);
  background: var(--blue-soft);
}

.flow-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.flow-grid article {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.flow-grid span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.flow-grid h3 {
  margin: 14px 0 6px;
  font-size: 17px;
  letter-spacing: 0;
}

.flow-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
  padding-top: 26px;
}

.safe-list {
  display: grid;
  gap: 8px;
}

.safe-list p {
  margin: 0;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-weight: 700;
}

.pricing-table {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.pricing-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.pricing-row:last-child {
  border-bottom: 0;
}

.pricing-row.header {
  color: var(--muted);
  background: #f6f6f7;
  font-size: 13px;
  font-weight: 700;
}

.pricing-row.highlighted {
  background: #f1fbf6;
}

.faq-section {
  padding-top: 18px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  gap: 10px;
  padding: 28px clamp(18px, 5vw, 56px);
  color: #69737c;
  background: #fff;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer-links a {
  color: #3e4b55;
  font-weight: 700;
}

.legal-page {
  padding: 48px clamp(18px, 5vw, 56px) 76px;
  background: #eeeeee;
}

.legal-container {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.legal-container h1 {
  margin: 0 0 26px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: 0;
}

.legal-container h2 {
  margin: 32px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 20px;
  letter-spacing: 0;
}

.legal-container p,
.legal-container li,
.legal-container td,
.legal-container th {
  color: #34414d;
}

.legal-container a {
  color: var(--blue);
  text-decoration: underline;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
}

.legal-table th,
.legal-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.legal-table th {
  width: 30%;
  background: #f7f8f7;
  color: var(--text);
}

.back-link {
  display: inline-flex;
  margin-top: 30px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero,
  .split-section,
  .example-list article {
    grid-template-columns: 1fr;
  }

  .app-preview {
    max-width: 100%;
  }

  .check-grid,
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .site-header {
    gap: 12px;
    padding: 10px 14px;
  }

  .brand {
    width: 100%;
  }

  .brand span {
    overflow-wrap: anywhere;
  }

  .hero h1 {
    font-size: 34px;
  }

  .preview-label {
    display: none;
  }

  .hero,
  .section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .message-band {
    padding-left: 14px;
    padding-right: 14px;
  }

  .metric-row,
  .check-grid,
  .flow-grid,
  .pricing-row {
    grid-template-columns: 1fr;
  }

  .task {
    grid-template-columns: 1fr;
  }

  .pricing-row.header {
    display: none;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    border-bottom: 0;
  }
}
