:root {
  --ink: #0c1a2e;
  --paper: #f2f5fb;
  --white: #ffffff;
  --azure: #1570ef;
  --azure-soft: #e8f1ff;
  --azure-container: #d6e6ff;
  --brass: #3b8bff;
  --muted: #4a5a6e;
  --border: #d4dce8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 26, 46, 0.06);
  --shadow-md: 0 8px 30px rgba(12, 26, 46, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, rgba(21, 112, 239, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 139, 255, 0.08), transparent 50%);
  min-height: 100vh;
}

a {
  color: var(--azure);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: none;
}

.wrap {
  width: min(40rem, 90vw);
  margin-inline: auto;
}

.wrap-wide {
  width: min(56rem, 92vw);
  margin-inline: auto;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(212, 220, 232, 0.9);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.site-header .wrap-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--azure-soft);
}

/* —— Home —— */

.landing {
  padding: 2.25rem 0 3.5rem;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px);
  gap: 2rem 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-copy .app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.1rem;
}

.hero-copy h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 650;
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-copy .lede {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34ch;
  line-height: 1.55;
}

.social-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-chips a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.social-chips a:hover {
  border-color: rgba(21, 112, 239, 0.35);
  box-shadow: 0 4px 16px rgba(21, 112, 239, 0.12);
  transform: translateY(-1px);
}

.widget-preview {
  background: linear-gradient(160deg, #0c1a2e 0%, #152a45 100%);
  color: #e8eef8;
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.15rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-preview .wp-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 238, 248, 0.65);
  margin-bottom: 0.85rem;
}

.widget-preview .wp-question {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.widget-preview .wp-answer {
  margin: 0;
  font-size: 0.95rem;
  color: #8bb6ff;
  font-weight: 500;
}

.widget-preview .wp-foot {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(232, 238, 248, 0.75);
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.highlight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.highlight-card:hover {
  border-color: rgba(21, 112, 239, 0.25);
  box-shadow: 0 6px 24px rgba(12, 26, 46, 0.07);
}

.highlight-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
}

.highlight-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.store-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.15rem 1.35rem;
  background: linear-gradient(135deg, var(--azure-container) 0%, var(--azure-soft) 100%);
  border: 1px solid rgba(21, 112, 239, 0.15);
  border-radius: var(--radius);
}

.faq {
  margin: 2.25rem 0 1.25rem;
}

.faq h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.faq details + details {
  margin-top: 0.55rem;
}

.faq summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-weight: 650;
  font-size: 0.95rem;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.store-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: #243044;
  max-width: 40rem;
}

.store-banner strong {
  color: var(--ink);
}

.store-badge {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

/* —— Legal / prose —— */

.prose-page {
  padding: 2rem 0 3.5rem;
}

.prose-page .doc {
  max-width: 40rem;
  margin-inline: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-md);
}

.prose-page h1 {
  font-size: 1.65rem;
  font-weight: 650;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.prose-page .meta {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}

.prose h2 {
  font-size: 1.08rem;
  font-weight: 650;
  margin: 1.6rem 0 0.5rem;
  color: var(--ink);
}

.prose p,
.prose li {
  color: #243044;
}

.prose ol {
  padding-left: 1.25rem;
}

.prose ol li {
  margin: 0.35rem 0;
}

/* —— Footer —— */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}

.site-footer .wrap-wide {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.85rem 1.5rem;
  align-items: center;
}

.site-footer p {
  margin: 0;
  grid-column: 1;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-end;
}

.footer-social a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.footer-social a:hover {
  color: var(--azure);
  border-color: var(--border);
  background: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  grid-column: 1 / -1;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .widget-preview {
    order: -1;
    max-width: 20rem;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .wrap-wide {
    grid-template-columns: 1fr;
  }

  .footer-social {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .nav {
    font-size: 0.8125rem;
  }

  .nav a {
    padding: 0.3rem 0.45rem;
  }
}
