/* ==========================================================================
   KeepProof Static Site Stylesheet
   Zero external fonts, zero JS, zero trackers.
   Palette: Emerald (#0F766E / #10B981) + Deep Slate (#0F172A)
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Brand */
  --emerald-700: #0f766e;
  --emerald-600: #0d9488;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  /* Light theme tokens */
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-accent-soft: #ecfdf5;
  --text: #0f172a;
  --text-muted: #475569;
  --text-on-accent: #ffffff;
  --accent: #0f766e;
  --accent-bright: #10b981;
  --accent-hover: #0d5f59;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 50px -15px rgba(15, 23, 42, 0.18);

  /* Status accents */
  --warn-bg: #fef3c7;
  --warn-text: #92400e;
  --warn-border: #fcd34d;
  --info-bg: #e0f2fe;
  --info-text: #075985;

  /* Layout */
  --container: 1120px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-elevated: #0f172a;
    --bg-subtle: #1e293b;
    --bg-accent-soft: rgba(16, 185, 129, 0.12);
    --text: #f1f5f9;
    --text-muted: #cbd5e1;
    --text-on-accent: #042f2e;
    --accent: #10b981;
    --accent-bright: #34d399;
    --accent-hover: #34d399;
    --border: #1e293b;
    --border-strong: #334155;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 32px -10px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 56px -12px rgba(0, 0, 0, 0.65);

    --warn-bg: rgba(245, 158, 11, 0.16);
    --warn-text: #fcd34d;
    --warn-border: rgba(245, 158, 11, 0.35);
    --info-bg: rgba(56, 189, 248, 0.14);
    --info-text: #7dd3fc;
  }
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  background: var(--bg-subtle);
  padding: 0.15em 0.42em;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--slate-900);
  color: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 4rem;
}

.section-muted {
  background-color: var(--bg-subtle);
  border-block: 1px solid var(--border);
}

/* Header & Navigation (Zero-JS responsive layout) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

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

.brand-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
  background-color: var(--bg-subtle);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background-color: var(--bg-accent-soft);
}

/* Buttons & Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background-color: var(--bg-accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-bright);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--emerald-700);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--emerald-600);
  color: #ffffff;
}

.btn-play {
  background-color: var(--slate-900);
  color: #ffffff;
  border-color: var(--slate-700);
  padding: 0.72rem 1.25rem;
  box-shadow: var(--shadow-md);
}

.btn-play:hover {
  background-color: var(--slate-800);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .btn-play {
    background-color: #10b981;
    color: #022c22;
    border-color: #34d399;
  }

  .btn-play:hover {
    background-color: #34d399;
    color: #022c22;
  }
}

.play-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.play-btn-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.play-btn-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.btn-secondary {
  background-color: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  color: var(--text);
}

/* Hero Section */
.hero {
  padding-block: 3.5rem 4.5rem;
  background:
    radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--emerald-500) 14%, transparent), transparent 45%),
    radial-gradient(circle at 10% 80%, color-mix(in srgb, var(--emerald-700) 10%, transparent), transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
}

.hero h1 {
  margin: 1.1rem 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 850;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 1.4rem;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Pure CSS Phone Mockup Frame */
.phone-frame {
  max-width: 340px;
  width: 100%;
  margin-inline: auto;
  background: var(--slate-900);
  color: #f8fafc;
  border-radius: 34px;
  padding: 14px;
  border: 2px solid var(--slate-700);
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  background: #0f172a;
  border-radius: 24px;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-notch {
  width: 72px;
  height: 6px;
  background: #334155;
  border-radius: 999px;
  margin: 0 auto 0.9rem;
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.mock-app-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
}

.mock-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.mock-stat-card {
  background: #1e293b;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-stat-label {
  font-size: 0.7rem;
  color: #94a3b8;
  display: block;
}

.mock-stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.mock-stat-value.emerald {
  color: #34d399;
}

.mock-item {
  background: #1e293b;
  border-radius: 14px;
  padding: 0.8rem;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.mock-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.mock-item-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: #f8fafc;
}

.mock-item-meta {
  font-size: 0.74rem;
  color: #94a3b8;
}

.mock-urgency {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  white-space: nowrap;
}

.mock-urgency.ok {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.mock-cta {
  margin-top: 0.75rem;
  background: #0f766e;
  color: #ffffff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.58rem;
  border-radius: 10px;
}

/* Section Headings */
.section-head {
  max-width: 680px;
  margin-bottom: 2.25rem;
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Feature Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--bg-accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

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

/* Pricing & Comparison Table */
.pricing-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
  position: relative;
}

.price-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.price-amount {
  font-size: 1.85rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.price-amount span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-note {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.table-wrap {
  overflow-x: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.95rem;
}

.compare-table thead th {
  background: var(--bg-subtle);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody th {
  font-weight: 700;
}

.pro-col {
  color: var(--accent);
  font-weight: 700;
}

/* Pure HTML <details> FAQ Accordion */
.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-body {
  padding: 1rem 1.25rem 1.15rem;
  color: var(--text-muted);
}

.faq-body p {
  margin: 0;
}

.faq-body p + p {
  margin-top: 0.65rem;
}

/* Legal & Support Document Pages */
.doc-hero {
  padding-block: 3rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.doc-hero h1 {
  margin: 0.75rem 0 0.5rem;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.doc-meta {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
}

.doc-content {
  padding-block: 2.75rem 4rem;
}

.doc-content h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  scroll-margin-top: 5.5rem;
}

.doc-content h2:first-child {
  margin-top: 0;
}

.doc-content h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.1rem;
}

.doc-content p,
.doc-content li {
  color: var(--text-muted);
}

.doc-content strong {
  color: var(--text);
}

.doc-content ul,
.doc-content ol {
  padding-left: 1.35rem;
}

.doc-content li + li {
  margin-top: 0.4rem;
}

.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin-block: 1.5rem;
}

.callout-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  border-left: 4px solid var(--warn-text);
  color: var(--warn-text);
}

.callout-warn p,
.callout-warn strong {
  color: inherit;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout p:first-child {
  margin-top: 0;
}

.support-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.support-card h2 {
  margin-top: 0;
}

.placeholder-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  font-weight: 700;
  padding: 0.12em 0.45em;
  border-radius: 6px;
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px solid var(--warn-border);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding-block: 2.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pricing-pills {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 3rem;
  }

  .header-inner {
    justify-content: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }
}
