/* MyTalker design system — accessible, calm, modern. */
:root {
  --bg: #0b1020;
  --bg-soft: #121933;
  --panel: #182143;
  --panel-2: #1f2a52;
  --line: #2a3566;
  --text: #eef1ff;
  --muted: #a4afe0;
  --brand: #6c8cff;
  --brand-2: #8a5cff;
  --teal: #2fd6b0;
  --teal-2: #1fb894;
  --warn: #ffd166;
  --pink: #ff7eb6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); line-height: 1.6;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(138, 92, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(47, 214, 176, 0.16), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Skip link for keyboard/screen-reader users */
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Nav */
header.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px);
  background: rgba(11, 16, 32, 0.72); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 0 18px rgba(108, 140, 255, 0.6); }
.nav nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 999px;
  padding: 11px 20px; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .06s ease, filter .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 10px 26px rgba(108, 140, 255, 0.35); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-teal { background: linear-gradient(135deg, var(--teal), var(--teal-2)); color: #042; }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid var(--warn); outline-offset: 2px; }

/* Hero */
.hero { padding: 84px 0 56px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 .grad { background: linear-gradient(120deg, var(--teal), var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: clamp(17px, 2.4vw, 21px); color: var(--muted); max-width: 640px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--teal);
  background: rgba(47, 214, 176, 0.12); border: 1px solid rgba(47, 214, 176, 0.35); padding: 6px 12px; border-radius: 999px; }

/* Layout helpers */
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } .nav nav a.hide-sm { display: none; } }

section { padding: 56px 0; }
.section-title { font-size: clamp(26px, 4vw, 38px); margin: 0 0 10px; letter-spacing: -0.01em; }
.section-sub { color: var(--muted); max-width: 620px; margin: 0 0 30px; }

/* Cards */
.card { background: linear-gradient(180deg, var(--panel), var(--bg-soft)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 8px 0 6px; font-size: 19px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: rgba(108, 140, 255, 0.14); border: 1px solid var(--line); }

/* Steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.step:last-child { border-bottom: 0; }
.step .num { counter-increment: step; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.step .num::before { content: counter(step); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }
.plan { background: linear-gradient(180deg, var(--panel), var(--bg-soft)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); position: relative; }
.plan.featured::after { content: "Most popular"; position: absolute; top: -12px; right: 16px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.plan .amount { font-size: 34px; font-weight: 800; margin: 6px 0 2px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 9px; }
.plan li { display: flex; gap: 9px; color: var(--muted); font-size: 14px; }
.plan li::before { content: "✓"; color: var(--teal); font-weight: 800; }
.plan .btn { margin-top: auto; justify-content: center; }

/* Forms */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 40px 0; }
.form-card { width: 100%; max-width: 420px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: 15px; }
.note { font-size: 13px; color: var(--muted); }
.error { background: rgba(255, 126, 182, 0.12); border: 1px solid var(--pink); color: #ffd0e4; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; display: none; }
.error.show { display: block; }

/* Dashboard */
.dash { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
@media (max-width: 820px) { .dash { grid-template-columns: 1fr; } .side { display: flex; overflow-x: auto; gap: 6px; } }
.side { background: var(--bg-soft); border-right: 1px solid var(--line); padding: 18px 12px; }
.side a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; cursor: pointer; }
.side a.active, .side a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.dash-main { padding: 26px; }
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 720px) { .kpi { grid-template-columns: repeat(2, 1fr); } }
.kpi .card { padding: 16px; }
.kpi .big { font-size: 28px; font-weight: 800; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: 0; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.tag.plan-plus, .tag.plan-family { background: rgba(108,140,255,.18); color: #cdd6ff; }
.del { margin-left: auto; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.hidden { display: none !important; }

/* Demo grid (live predictive board) */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 620px) { .board { grid-template-columns: repeat(2, 1fr); } }
.tile { border: none; border-radius: 14px; padding: 16px 10px; min-height: 86px; color: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 600; }
.tile .em { font-size: 26px; }
.tile.flow { background: linear-gradient(160deg, var(--teal), var(--teal-2)); color: #042; }
.tile.core { background: var(--panel-2); }
.tile.escape { background: linear-gradient(160deg, #6b2a5a, #8a3a72); }
.utter { font-size: 22px; min-height: 30px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 30px; color: var(--muted); }
footer.site .container { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer.site a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
