/* Paradox Dynamics website. Same tokens as Kaayi's Onyx design system
   (src/styles.js), so the company and the app read as one brand. */
:root {
  --bg: #0a0c10;
  --surface-1: #12151b;
  --surface-2: #181c23;
  --surface-3: #1f242c;
  --line: #232831;
  --line-strong: #2e343e;
  --text: #f2f4f7;
  --text-2: #a9b1bd;
  --text-3: #858d9a;
  --accent: #e3bb6f;
  --accent-strong: #f0cc88;
  --on-accent: #1a1407;
  --accent-soft: rgba(227, 187, 111, 0.12);
  --positive: #4cc592;
  --positive-soft: rgba(76, 197, 146, 0.13);
  --info: #86a9f2;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.035) inset, 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --glow-accent: 0 8px 28px -10px rgba(227, 187, 111, 0.55);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 520px at 12% -12%, rgba(227, 187, 111, 0.07), transparent 60%),
    radial-gradient(900px 480px at 110% 0%, rgba(134, 169, 242, 0.05), transparent 55%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 8px 14px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------------------------------------------------------------- header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--r-pill);
  transition: color 140ms var(--ease-out), background 140ms var(--ease-out);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* ---------------------------------------------------------------- type */
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(36px, 7vw, 60px); letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 4vw, 34px); }
h3 { font-size: 18px; letter-spacing: -0.015em; }
p { margin: 0; }
.eyebrow {
  display: inline-block; margin-bottom: 18px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.lede { margin-top: 20px; max-width: 620px; font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }

/* ---------------------------------------------------------------- buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-sm);
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), background 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(180deg, var(--accent-strong), var(--accent)); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); box-shadow: var(--glow-accent); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-strong); }
.btn-secondary:hover { color: var(--text); background: var(--surface-3); }
.btn-static { background: transparent; color: var(--text-2); border: 1px dashed var(--line-strong); cursor: default; }
.btn-static:active { transform: none; }

/* ---------------------------------------------------------------- sections */
main { display: block; }
.hero { padding: 48px 0 72px; }
@media (min-width: 720px) { .hero { padding: 88px 0 104px; } }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .section { padding: 80px 0; } }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 17px; }

.card {
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); padding: 24px;
}
.card h3 + p { margin-top: 8px; color: var(--text-2); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
/* Three cards: one column, then three across, never two plus one. */
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.icon-well {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.icon-well svg { width: 20px; height: 20px; }

/* Product card on the home page */
.product {
  display: grid; gap: 28px; align-items: center;
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(227, 187, 111, 0.08), transparent 70%),
    radial-gradient(500px 260px at 100% 100%, rgba(134, 169, 242, 0.06), transparent 70%),
    var(--surface-1);
  border: 1px solid var(--line-strong); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-2);
}
@media (min-width: 820px) { .product { grid-template-columns: 1.1fr 1fr; padding: 48px; } }
.product-title { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.product-title img { width: 64px; height: 64px; border-radius: 15px; box-shadow: var(--shadow-2); }
.product-title h2 { font-size: 36px; }
.product p { color: var(--text-2); font-size: 17px; }
.product .actions { margin-top: 24px; }

.checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--positive-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234cc592' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Contact */
.contact a { font-size: 17px; font-weight: 500; word-break: break-word; }
.contact .label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }

/* ---------------------------------------------------------------- phone mock-up (Kaayi) */
.phone {
  width: 300px; max-width: 100%; margin: 0 auto; padding: 10px;
  border-radius: 46px; background: #050608; border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.screen {
  position: relative; overflow: hidden; border-radius: 37px; padding: 44px 14px 16px;
  background:
    radial-gradient(400px 220px at 10% -10%, rgba(227, 187, 111, 0.08), transparent 60%),
    var(--bg);
  font-size: 12px; line-height: 1.35;
}
.screen::before { /* the Dynamic Island */
  content: ""; position: absolute; top: 12px; left: 50%; width: 86px; height: 24px; margin-left: -43px;
  border-radius: 14px; background: #000;
}
.m-eyebrow { color: var(--text-3); font-size: 11px; }
.m-title { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; margin: 2px 0 12px; }
.m-hero {
  border-radius: 18px; padding: 14px; border: 1px solid var(--line-strong);
  background:
    radial-gradient(240px 140px at 0% 0%, rgba(227, 187, 111, 0.1), transparent 70%),
    radial-gradient(240px 140px at 100% 100%, rgba(134, 169, 242, 0.07), transparent 70%),
    var(--surface-1);
}
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-label { font-size: 9.5px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.m-chip { font-size: 9.5px; padding: 3px 8px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.m-amount { font-size: 32px; font-weight: 500; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; margin: 6px 0 10px; }
.m-bar { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.m-bar span { display: block; height: 100%; width: 38%; border-radius: 3px; background: var(--accent); }
.m-sub { margin-top: 7px; color: var(--text-3); font-size: 10px; }
.m-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.m-tile { border-radius: 14px; padding: 10px; background: var(--surface-1); border: 1px solid var(--line); }
.m-tile b { display: block; margin-top: 3px; font-size: 15px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.m-tile small { color: var(--text-3); font-size: 9.5px; }
.m-chart { margin-top: 8px; border-radius: 14px; padding: 10px 10px 6px; background: var(--surface-1); border: 1px solid var(--line); }
.m-chart svg { display: block; width: 100%; height: auto; margin-top: 6px; }
.m-tabs {
  display: flex; align-items: center; justify-content: space-around; margin-top: 12px;
  padding: 6px; border-radius: var(--r-pill); background: rgba(24, 28, 35, 0.9); border: 1px solid var(--line);
}
.m-tabs i { width: 30px; height: 6px; border-radius: 3px; background: var(--surface-3); }
.m-tabs i.on { background: var(--text-3); }
.m-tabs b {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent)); color: var(--on-accent);
  font-size: 20px; font-weight: 500; line-height: 1; box-shadow: var(--glow-accent);
}

/* Kaayi page hero */
.kaayi-hero { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .kaayi-hero { grid-template-columns: 1.15fr 1fr; } }
.app-icon { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 24px; box-shadow: var(--shadow-2); }

/* ---------------------------------------------------------------- legal & help pages */
.doc { max-width: 720px; padding: 32px 0 80px; }
@media (min-width: 720px) { .doc { padding: 56px 0 96px; } }
.doc h1 { font-size: clamp(34px, 6vw, 48px); }
.doc .updated { margin-top: 12px; color: var(--text-3); font-size: 14px; }
.doc h2 { font-size: 22px; margin: 44px 0 12px; scroll-margin-top: 24px; }
.doc h3 { font-size: 17px; margin: 28px 0 8px; }
.doc p, .doc ul, .doc ol, .doc dl { color: var(--text-2); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc .summary {
  margin-top: 28px; padding: 20px 22px; border-radius: var(--r-lg);
  background: var(--surface-1); border: 1px solid var(--line);
}
.doc .summary p { color: var(--text); }
.doc .summary ul { margin-top: 10px; }
.table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--text); font-weight: 600; background: var(--surface-1); }
td { color: var(--text-2); }
tr:last-child td { border-bottom: 0; }
/* On phones the table stacks: one block per row, each cell labelled. */
@media (max-width: 640px) {
  .table-wrap { border: 0; overflow: visible; }
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-1); }
  td { border-bottom: 1px solid var(--line); }
  td:last-child { border-bottom: 0; }
  td::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3);
  }
}

/* Questions on the support page */
.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative;
  color: var(--text); font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 13px; color: var(--accent); font-size: 22px; font-weight: 400;
  transition: transform 220ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--text-2); }
.faq details > div p + p { margin-top: 10px; }

.callout {
  margin-top: 16px; padding: 18px 20px; border-radius: var(--r-md);
  background: var(--accent-soft); border: 1px solid rgba(227, 187, 111, 0.25); color: var(--text);
}

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--text-3); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 20px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.legal { line-height: 1.7; }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 600ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
