:root {
  color-scheme: light;
  --primary: #172640;
  --surface: #f6f7f8;
  --card: #ffffff;
  --text: #1a1c1e;
  --muted: #5c6b73;
  --border: rgba(23, 38, 64, 0.1);
  --success: #059669;
  --success-bg: #d1fae5;
  --amber: #d4860b;
  --office-bg: #ffedd5;
  --office-text: #ea580c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--primary);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(246, 247, 248, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 2;
}

.nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 14px 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
  height: 36px;
  width: 36px;
}

.brand span {
  color: var(--primary);
  font-size: 17px;
  font-weight: 800;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

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

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 48px 24px 72px;
}

.legal-main {
  max-width: 880px;
}

.legal-document {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 56px);
}

.legal-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  padding-bottom: 32px;
}

.legal-header h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.legal-document section + section {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 28px;
}

.legal-document h2 {
  font-size: 1.35rem;
}

.legal-document p {
  margin: 12px 0 0;
}

.legal-footer a {
  text-decoration: none;
}

.hero {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  margin-bottom: 44px;
}

.article-hero {
  max-width: 840px;
}

.eyebrow,
.badge {
  background: var(--office-bg);
  border-radius: 4px;
  color: var(--office-text);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 7px 9px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--primary);
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  letter-spacing: 0;
  margin-top: 18px;
  max-width: 900px;
}

.article-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.25rem);
}

.dek {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  margin: 22px 0 0;
  max-width: 760px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
}

.download-panel {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 28px;
  padding: 18px;
}

.download-panel strong,
.download-panel span {
  display: block;
}

.download-panel strong {
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.35;
}

.download-panel span {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 2px;
}

.store-buttons {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-card {
  align-self: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.proof-card h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.check-row {
  align-items: center;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  padding: 13px 0;
}

.check-row:first-of-type {
  border-top: 0;
}

.check {
  align-items: center;
  background: var(--success-bg);
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  color: var(--success);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  align-items: center;
  background: var(--primary);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  gap: 8px;
  font-weight: 800;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
}

.store-badge-link {
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}

.store-badge {
  display: block;
  height: 50px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.button.secondary {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--primary);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.article-card h2 {
  font-size: 1.45rem;
  margin: 14px 0 10px;
}

.article-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.download-hero {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  margin-bottom: 28px;
}

.download-hero h1 {
  max-width: 780px;
}

.download-note {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 18px 0 0;
}

.download-proof {
  box-shadow: 0 18px 42px rgba(23, 38, 64, 0.08);
}

.scan-result {
  background: var(--primary);
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 6px;
  margin: 4px 0 14px;
  padding: 18px;
}

.scan-result span,
.scan-result small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.scan-result strong {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
}

.download-band,
.pricing-panel,
.final-download {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 24px;
  padding: clamp(24px, 5vw, 40px);
}

.download-band {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-band h2,
.pricing-panel h2,
.final-download h2,
.faq h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.download-band p,
.pricing-panel p,
.final-download p,
.faq p {
  color: var(--muted);
  margin: 12px 0 0;
}

.download-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.download-card {
  padding: 24px;
}

.download-card h2 {
  font-size: 1.45rem;
  margin-top: 16px;
}

.pricing-panel {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
}

.pricing-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 20px;
}

.price-card strong {
  color: var(--primary);
  font-size: 1.35rem;
}

.price-card span {
  color: var(--muted);
}

.price-card.featured {
  background: var(--success-bg);
  border-color: #a7f3d0;
}

.price-card.featured span {
  color: #065f46;
}

.faq {
  margin-top: 24px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 12px;
  padding: 18px 20px;
}

.faq summary {
  color: var(--primary);
  cursor: pointer;
  font-weight: 800;
}

.final-download {
  text-align: center;
}

.final-download .cta-row {
  justify-content: center;
}

.download-page {
  background:
    linear-gradient(180deg, #ffffff 0, var(--surface) 360px),
    var(--surface);
}

.download-header {
  background: rgba(255, 255, 255, 0.92);
}

.download-main {
  padding-top: 34px;
}

.app-landing-hero {
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  margin-bottom: 28px;
  min-height: 620px;
}

.download-copy h1 {
  font-size: clamp(2.55rem, 6vw, 5.6rem);
  max-width: 850px;
}

.store-cta-row {
  align-items: center;
}

.landing-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.landing-proof-row span {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px 12px;
}

.app-preview {
  display: flex;
  justify-content: center;
}

.phone-frame {
  background: #121820;
  border: 10px solid #0b1118;
  border-radius: 34px;
  box-shadow: 0 34px 80px rgba(23, 38, 64, 0.22);
  color: white;
  max-width: 360px;
  padding: 18px;
  width: 100%;
}

.phone-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.phone-top span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  font-weight: 700;
}

.phone-top strong {
  background: var(--success-bg);
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  color: #065f46;
  font-size: 0.75rem;
  padding: 6px 9px;
}

.document-preview,
.result-card {
  border-radius: 18px;
  display: grid;
  gap: 6px;
  padding: 20px;
}

.document-preview {
  background: #eef2f7;
  color: var(--primary);
  min-height: 190px;
}

.document-preview span,
.document-preview small,
.result-card span,
.result-card small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.document-preview strong {
  align-self: end;
  font-size: 2.45rem;
  line-height: 1;
}

.result-card {
  background: var(--success-bg);
  border: 1px solid #a7f3d0;
  color: #065f46;
  margin-top: 14px;
}

.result-card strong {
  font-size: 1.7rem;
  line-height: 1;
}

.result-card span,
.result-card small {
  color: #047857;
}

.phone-checklist {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.phone-checklist div {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.phone-checklist .check {
  height: 20px;
  width: 20px;
}

.conversion-strip {
  background: var(--primary);
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 24px;
  overflow: hidden;
}

.conversion-strip div {
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 4px;
  padding: 22px;
}

.conversion-strip strong {
  font-size: 1.2rem;
}

.conversion-strip span {
  color: rgba(255, 255, 255, 0.78);
}

.focused-band,
.landing-pricing,
.landing-final {
  margin-top: 24px;
}

.landing-faq {
  margin-left: auto;
  margin-right: auto;
  max-width: 860px;
}

.supporting-link {
  display: inline-flex;
  margin-top: 18px;
}

.content-wrap {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 52px);
}

article h2 {
  font-size: 1.85rem;
  margin-top: 42px;
}

article h2:first-child {
  margin-top: 0;
}

article h3 {
  font-size: 1.25rem;
  margin-top: 28px;
}

article p,
article li {
  font-size: 1.03rem;
}

article p {
  margin: 16px 0 0;
}

article ul,
article ol {
  margin: 16px 0 0;
  padding-left: 24px;
}

.note,
.sources,
.app-cta {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 28px;
  padding: 20px;
}

.note strong,
.sources strong,
.app-cta strong {
  color: var(--primary);
}

.app-cta {
  background: var(--primary);
  color: white;
}

.app-cta strong,
.app-cta a {
  color: white;
}

.app-cta .button {
  background: white;
  color: var(--primary);
}

.side {
  align-self: start;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 84px;
}

.side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.side-card h2 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.side-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.side-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.side-actions .button {
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
}

.side-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-card li + li {
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding-top: 10px;
}

.checker-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin-top: 36px;
}

.checker-panel,
.checker-cta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.checker-cta {
  align-self: start;
}

.checker-cta h2 {
  font-size: 1.45rem;
  margin-top: 14px;
}

.checker-cta p {
  color: var(--muted);
  margin: 12px 0 18px;
}

.file-drop {
  align-items: center;
  border: 1px dashed rgba(23, 38, 64, 0.3);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 34px 20px;
  text-align: center;
}

.file-drop:hover {
  border-color: var(--primary);
}

.file-drop-title {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
}

.file-drop-copy {
  color: var(--muted);
  font-size: 0.95rem;
}

.file-drop input {
  margin-top: 10px;
  max-width: 100%;
}

.result-summary {
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
  margin-top: 18px;
  padding: 18px;
}

.muted-summary {
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--muted);
}

.pass-summary {
  background: var(--success-bg);
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.caution-summary {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.fail-summary {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.result-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.result-item {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.result-item strong,
.result-item span {
  display: block;
}

.result-item strong {
  color: var(--primary);
}

.result-item div span {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 2px;
}

.status-pill {
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 9px;
  text-transform: uppercase;
}

.result-item.pass .status-pill {
  background: var(--success-bg);
  color: #065f46;
}

.result-item.caution .status-pill {
  background: #fef3c7;
  color: #92400e;
}

.result-item.fail .status-pill {
  background: #fee2e2;
  color: #991b1b;
}

.checker-notes {
  margin-top: 24px;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  margin: 0 auto;
  max-width: 1120px;
  padding: 28px 24px 44px;
}

@media (max-width: 860px) {
  .hero,
  .content-wrap,
  .grid,
  .checker-layout,
  .download-hero,
  .download-band,
  .pricing-panel {
    grid-template-columns: 1fr;
  }

  .download-grid,
  .pricing-grid,
  .conversion-strip {
    grid-template-columns: 1fr;
  }

  .app-landing-hero {
    min-height: 0;
  }

  .download-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .phone-frame {
    border-width: 8px;
    max-width: 330px;
  }

  .download-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-buttons,
  .store-buttons .button,
  .store-buttons .store-badge-link {
    width: 100%;
  }

  .store-buttons .button {
    justify-content: center;
  }

  .store-buttons .store-badge {
    height: auto;
    max-height: 56px;
    width: min(100%, 190px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .side {
    position: static;
  }

  .result-item {
    align-items: flex-start;
    flex-direction: column;
  }
}
