/* Undertable — marketing & support site. Static, no build. */
:root {
  --bg: #0c0c12;
  --bg-2: #12121b;
  --card: #16161f;
  --line: #262633;
  --ink: #ececf3;
  --muted: #9a9aae;
  --muted-2: #6f6f82;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --grad: linear-gradient(120deg, #8b5cf6, #ec4899);
  --radius: 16px;
  --wrap: 1080px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .45);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(1200px 600px at 70% -10%, rgba(139,92,246,.16), transparent 60%),
              radial-gradient(900px 500px at 10% 10%, rgba(236,72,153,.10), transparent 55%),
              var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .4em; }
p { color: var(--muted); margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.02); }

/* Header */
header.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(12,12,18,.7);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand .mark { width: 26px; height: 26px; border-radius: 8px; background: var(--grad); display: inline-block; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px;
  font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--ink); transition: .15s;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--grad); border: none; color: #fff; box-shadow: 0 8px 24px rgba(139,92,246,.35); }
.btn.primary:hover { filter: brightness(1.06); }

/* Hero */
.hero { padding: 84px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; }
.hero .sub { font-size: clamp(16px, 2.3vw, 20px); max-width: 640px; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.age { margin-top: 18px; font-size: 13px; color: var(--muted-2); }

/* App Store badge */
.appstore {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 14px;
  background: #000; border: 1px solid #2a2a2a; color: #fff;
}
.appstore .apple { font-size: 26px; line-height: 1; }
.appstore .small { font-size: 11px; color: #cfcfcf; display: block; letter-spacing: .04em; }
.appstore .big { font-size: 19px; font-weight: 600; line-height: 1.1; }

/* Phone mock */
.phone-wrap { display: flex; justify-content: center; margin-top: 54px; }
.phone {
  width: 300px; aspect-ratio: 9 / 19.5; border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #1c1c28, #101018); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.phone .screen {
  height: 100%; border-radius: 32px; overflow: hidden;
  background: radial-gradient(400px 300px at 50% 0%, rgba(139,92,246,.35), transparent 60%), #0a0a10;
  display: flex; flex-direction: column; gap: 12px; padding: 26px 18px;
}
.phone .glass { border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.03); border-radius: 14px; padding: 12px; }
.phone .row { display: flex; align-items: center; gap: 10px; }
.phone .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); flex: none; }
.phone .bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.12); }

/* Sections */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(139,92,246,.14);
  display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.card h3 { font-size: 18px; }
.card p { margin: 0; font-size: 14.5px; }

.safety { background: var(--bg-2); border-block: 1px solid var(--line); }
.safety .grid { grid-template-columns: repeat(2, 1fr); }
.safety .card { background: transparent; border-color: var(--line); }

/* Legal / content pages */
.content { padding: 56px 0 40px; }
.content .doc { max-width: 760px; }
.content h1 { font-size: clamp(30px, 5vw, 44px); }
.content h2 { font-size: 22px; margin-top: 1.6em; }
.content h3 { font-size: 17px; margin-top: 1.3em; }
.content p, .content li { color: var(--muted); }
.content ul { padding-left: 20px; }
.content .meta { color: var(--muted-2); font-size: 14px; margin-bottom: 2em; }
.content a { color: var(--accent); }
.content a:hover { text-decoration: underline; }
.content table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.content th, .content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: rgba(139,92,246,.06);
  border-radius: 10px; padding: 14px 16px; margin: 1.4em 0; }
.callout p { color: var(--ink); margin: 0; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin-bottom: 10px; background: var(--card); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--accent); }
.faq p { padding-bottom: 12px; margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 30px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--muted); font-size: 14px; }
.foot a:hover { color: var(--ink); }
.foot .cols { display: flex; gap: 22px; flex-wrap: wrap; }
.foot .fine { color: var(--muted-2); font-size: 13px; }

@media (max-width: 820px) {
  .grid, .safety .grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
