/* hayati — one stylesheet · Arabic RTL first · light app, dark hero */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #12151b;
  --ink-2: #394150;
  --muted: #6b7280;
  --faint: #9aa1ad;
  --line: #e7e3da;
  --line-2: #efece5;

  --brand: #0f766e;
  --brand-2: #14b8a6;
  --violet: #7c3aed;

  --lic: #4f46e5;    --lic-soft: #eeedfd;
  --rec: #b45309;    --rec-soft: #fbf0e3;
  --health: #e11d48; --health-soft: #fdecf0;
  --habit: #059669;  --habit-soft: #e6f6ef;
  --acc: #0284c7;    --acc-soft: #e5f3fb;
  --eye: #7c3aed;    --eye-soft: #f1ebfe;
  --about: #475569;  --about-soft: #eef1f5;

  --late: #dc2626;  --late-soft: #fdecec;
  --soon: #d97706;  --soon-soft: #fdf2e1;
  --near: #a16207;  --near-soft: #fbf6dd;
  --ok: #15803d;    --ok-soft: #e7f5ec;
  --renew: #2563eb; --renew-soft: #e8effd;

  --r: 20px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(18, 21, 27, 0.04), 0 10px 30px rgba(18, 21, 27, 0.06);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.35);
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.ic { width: 1.25em; height: 1.25em; flex: none; }

/* ── brand ─────────────────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.brand-mark i { display: block; width: 6px; border-radius: 3px; }
.brand-mark i:nth-child(1) { height: 10px; background: var(--brand-2); }
.brand-mark i:nth-child(2) { height: 16px; background: #a78bfa; }
.brand-mark i:nth-child(3) { height: 22px; background: currentColor; }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 1.1em; height: 1.1em; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-sm { padding: 7px 14px; font-size: 0.875rem; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262b35; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef0f3; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-danger { background: var(--late); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.link-soft { color: inherit; opacity: 0.75; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.link-soft:hover { opacity: 1; }

/* Google */
.gsi-slot { min-height: 44px; display: flex; align-items: center; }
.gsi-wait { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; opacity: 0.7; }
.gsi-status { font-size: 0.9rem; min-height: 1.4em; margin-top: 6px; opacity: 0.85; }
.g-logo { width: 20px; height: 20px; flex: none; }
.gbtn-stub {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px; border-radius: 999px; border: 1px dashed var(--faint);
  background: rgba(255, 255, 255, 0.7); color: var(--ink-2); font-weight: 600; font-size: 0.95rem; cursor: not-allowed;
}
.gbtn-stub.on-dark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); color: #e5e7eb; }

.flash { background: var(--ok); color: #fff; text-align: center; padding: 10px 16px; font-weight: 600; }

/* ── landing: hero ─────────────────────────────────────────────────────── */
.hero {
  color: #f3f4f6;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(20, 184, 166, 0.28), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(124, 58, 237, 0.25), transparent 60%),
    #0b0e13;
  padding: 0 clamp(20px, 5vw, 72px) clamp(56px, 8vw, 110px);
  overflow: hidden;
}
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; max-width: 1180px; margin: 0 auto; }
.topbar .brand { color: #fff; }
.topbar-end { display: flex; align-items: center; gap: 18px; }
.hero-grid {
  max-width: 1180px; margin: 0 auto; padding-top: clamp(28px, 6vw, 72px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(20, 184, 166, 0.14); color: #5eead4; font-size: 0.85rem; font-weight: 600;
}
.eyebrow-violet { background: var(--eye-soft); color: var(--eye); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); margin: 22px 0 18px; font-weight: 700; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #5eead4, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #c9ced6; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.hero-cta .gsi-status { flex-basis: 100%; margin: 0; color: #c9ced6; }
.fine { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #9ca3af; }

.hero-visual { position: relative; }
.mock {
  background: #fff; color: var(--ink); border-radius: 26px; padding: 22px; box-shadow: var(--shadow-lg);
  transform: rotate(-2deg); max-width: 430px; margin-inline-start: auto;
}
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock-head small { display: block; color: var(--muted); font-size: 0.8rem; }
.mock-head b { font-size: 1.5rem; }
.mock-ring {
  --p: 50; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0);
}
.mock-ring span { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); margin-top: 8px; font-size: 0.92rem; }
.mock-row i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.mock-row span { flex: 1; font-weight: 600; }
.mock-row em { font-style: normal; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.mock-row.late i { background: var(--late); } .mock-row.late em { background: var(--late-soft); color: var(--late); }
.mock-row.soon i { background: var(--soon); } .mock-row.soon em { background: var(--soon-soft); color: var(--soon); }
.mock-row.renew i { background: var(--renew); } .mock-row.renew em { background: var(--renew-soft); color: var(--renew); }
.mock-bars { display: grid; gap: 8px; margin-top: 16px; }
.mock-bars div { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--muted); }
.mock-bars b { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--habit) var(--w), var(--line-2) var(--w)); }
.mock-chip {
  position: absolute; bottom: -18px; inset-inline-end: 4%;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px;
  background: #1c2230; color: #fde68a; font-size: 0.85rem; font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}

/* ── landing: sections ─────────────────────────────────────────────────── */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.section-head p { color: var(--muted); margin-top: 10px; }

.domains { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.domain { background: var(--surface); border-radius: var(--r); padding: 22px 18px; box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.domain h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.domain p { color: var(--muted); font-size: 0.92rem; }
.domain-ic, .wiz-ic, .tile-ic, .h-ic { display: inline-grid; place-items: center; border-radius: 14px; }
.domain-ic { width: 46px; height: 46px; }
.domain-ic .ic { width: 24px; height: 24px; }

.tone-lic { --tone: var(--lic); --tone-soft: var(--lic-soft); }
.tone-rec { --tone: var(--rec); --tone-soft: var(--rec-soft); }
.tone-health { --tone: var(--health); --tone-soft: var(--health-soft); }
.tone-habit { --tone: var(--habit); --tone-soft: var(--habit-soft); }
.tone-acc { --tone: var(--acc); --tone-soft: var(--acc-soft); }
.tone-eye { --tone: var(--eye); --tone-soft: var(--eye-soft); }
.tone-about { --tone: var(--about); --tone-soft: var(--about-soft); }
.domain-ic, .wiz-ic, .tile-ic, .h-ic { background: var(--tone-soft); color: var(--tone); }

.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.how li { background: var(--surface); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.how b { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1rem; }
.how h3 { font-size: 1.15rem; margin: 16px 0 6px; }
.how p { color: var(--muted); }

.eye-band {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center;
  background: linear-gradient(135deg, #f4effe, #eef6ff); border: 1px solid #e4dcfb; border-radius: 28px; padding: clamp(28px, 4vw, 48px);
}
.eye-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 14px 0 10px; }
.eye-copy p { color: var(--ink-2); }
.eye-agents { display: grid; gap: 10px; }
.agent { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); color: var(--eye); }
.agent b { color: var(--ink); flex: 1; }
.agent small { color: var(--eye); background: var(--eye-soft); padding: 2px 10px; border-radius: 99px; font-weight: 600; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust > div { background: var(--surface); border-radius: var(--r); padding: 24px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.trust .ic { width: 28px; height: 28px; color: var(--brand); }
.trust h3 { font-size: 1.1rem; margin: 12px 0 6px; }
.trust p { color: var(--muted); font-size: 0.95rem; }

.final { text-align: center; max-width: 720px; margin: 0 auto; padding: clamp(64px, 9vw, 110px) 20px; }
.final h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.final p { color: var(--muted); margin-top: 10px; }
.final-cta { display: flex; flex-direction: column; align-items: center; margin-top: 26px; }

.foot {
  max-width: 1180px; margin: 0 auto; padding: 28px clamp(20px, 5vw, 72px) 40px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted);
}
.foot > div { display: flex; align-items: center; gap: 14px; }
.foot .brand { color: var(--ink); font-size: 1.05rem; }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* ── app shell ─────────────────────────────────────────────────────────── */
.appbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 40px); background: rgba(246, 244, 239, 0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.appbar-meta { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.appbar-end { display: flex; align-items: center; gap: 10px; }
.who { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 4px 12px 4px 4px; border-radius: 99px; border: 1px solid var(--line); background: #fff; }
.who img, .who .ic { width: 30px; height: 30px; border-radius: 50%; }
.who .ic { padding: 5px; background: var(--about-soft); color: var(--about); }

.card { background: var(--surface); border-radius: var(--r); padding: clamp(18px, 3vw, 26px); box-shadow: var(--shadow); border: 1px solid var(--line-2); }

.demo-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--ink); color: #f3f4f6; font-size: 0.92rem; text-align: center;
}
.demo-bar .ic { color: #5eead4; }
.demo-bar a { color: #5eead4; font-weight: 700; text-decoration: none; }

/* ── wizard ────────────────────────────────────────────────────────────── */
.wizard { max-width: 760px; margin: 0 auto; padding: 24px clamp(14px, 4vw, 24px) 64px; }
.stepper { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.stepper a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--faint); font-size: 0.8rem; font-weight: 600; }
.stepper b {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--line); color: var(--faint); font-size: 0.9rem;
}
.stepper b .ic { width: 18px; height: 18px; }
.stepper .is-done a { color: var(--brand); }
.stepper .is-done b { background: var(--brand); border-color: var(--brand); color: #fff; }
.stepper .is-now a { color: var(--ink); }
.stepper .is-now b { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 5px rgba(18, 21, 27, 0.08); }

.wiz-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.wiz-ic { width: 54px; height: 54px; flex: none; }
.wiz-ic .ic { width: 26px; height: 26px; }
.wiz-head h1 { font-size: clamp(1.4rem, 3.4vw, 1.8rem); }
.wiz-head p { color: var(--muted); margin-top: 4px; }

.fs { border: 0; padding: 0; margin: 0 0 22px; }
.fs legend { font-weight: 700; font-size: 1rem; margin-bottom: 12px; padding: 0; }
.fs-plain legend { font-weight: 600; font-size: 0.92rem; color: var(--ink-2); margin-bottom: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-weight: 600; font-size: 0.9rem; color: var(--ink-2); }
.field > span small { color: var(--faint); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: #fcfbf9; transition: border-color 0.15s ease, background 0.15s ease; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field input[type='date'] { direction: rtl; text-align: right; }
.help { color: var(--faint); font-size: 0.8rem; }
.suffix { position: relative; }
.suffix input { padding-inline-end: 64px; }
.suffix i { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--faint); font-size: 0.88rem; pointer-events: none; }

.rows { display: grid; gap: 10px; margin-bottom: 12px; }
.row { display: grid; gap: 10px; align-items: end; padding: 12px; border-radius: 14px; background: var(--bg); position: relative; }
.row-2 { grid-template-columns: 1.4fr 1fr 40px; }
.row-3 { grid-template-columns: 1.5fr 0.8fr 1fr 40px; }
.row-4 { grid-template-columns: 1.4fr 0.8fr 1fr 0.9fr 40px; }
.row-x { width: 40px; height: 48px; border-radius: 12px; border: 0; background: transparent; color: var(--faint); cursor: pointer; display: grid; place-items: center; }
.row-x:hover { color: var(--late); background: var(--late-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 18px; border-radius: 99px; border: 1.5px solid var(--line); background: #fcfbf9; cursor: pointer; font-weight: 600; font-size: 0.92rem; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.locked { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--about-soft); color: var(--about); margin: 6px 0 18px; }
.locked .ic { margin-top: 3px; }
.locked b { color: var(--ink-2); }
.locked p { font-size: 0.9rem; }

.wiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.wiz-go { display: flex; gap: 10px; }
.wiz-go .btn-dark { order: 2; }
.wiz-go .btn-ghost { order: 1; }

/* ── dashboard ─────────────────────────────────────────────────────────── */
.dash { max-width: 1120px; margin: 0 auto; padding: 22px clamp(14px, 4vw, 32px) 48px; display: grid; gap: 18px; }
.dash-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: clamp(22px, 4vw, 34px); border-radius: 26px; color: #f3f4f6;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(20, 184, 166, 0.3), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(124, 58, 237, 0.28), transparent 60%),
    #0e1218;
}
.dh-greet { color: #9ca3af; font-weight: 500; }
.dash-hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 2px 0 8px; }
.dh-summary { color: #d1d5db; font-size: 1.05rem; max-width: 36em; }
.ring {
  --p: 0; width: 120px; height: 120px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#5eead4 calc(var(--p) * 1%), rgba(255, 255, 255, 0.12) 0);
}
.ring-in { width: 96px; height: 96px; border-radius: 50%; background: #0e1218; display: grid; place-items: center; align-content: center; text-align: center; }
.ring-in b { font-size: 1.5rem; line-height: 1.1; }
.ring-in small { color: #9ca3af; font-size: 0.75rem; }

.pulse { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { display: grid; gap: 2px; align-content: start; text-decoration: none; background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line-2); transition: transform 0.15s ease; min-width: 0; }
.tile:hover { transform: translateY(-2px); }
.tile-ic { width: 40px; height: 40px; margin-bottom: 8px; }
.tile small { color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.tile b { font-size: 1.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-sub { color: var(--tone); font-size: 0.86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.card-head > small { color: var(--faint); font-weight: 500; }
.h-ic { width: 34px; height: 34px; border-radius: 11px; }
.h-ic .ic { width: 19px; height: 19px; }
.card-edit { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 600; padding: 6px 10px; border-radius: 99px; }
.card-edit:hover { background: var(--bg); color: var(--ink); }
.card-edit .ic { width: 16px; height: 16px; }
.card-foot { margin-top: 12px; color: var(--muted); font-size: 0.86rem; display: flex; align-items: center; gap: 6px; }

.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dl { display: grid; grid-template-columns: 12px 1fr auto auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.dl .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.dl-main { min-width: 0; }
.dl-main b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-main small { color: var(--faint); font-size: 0.8rem; }
.when { color: var(--muted); font-size: 0.85rem; text-align: left; display: grid; line-height: 1.35; }
.when small { color: var(--faint); font-size: 0.75rem; }
.badge { font-style: normal; font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.compact .dl { grid-template-columns: 10px 1fr auto; padding: 10px 12px; }
.compact .when { display: none; }

.st-late .dot { background: var(--late); }   .badge.st-late { background: var(--late-soft); color: var(--late); }
.st-soon .dot { background: var(--soon); }   .badge.st-soon { background: var(--soon-soft); color: var(--soon); }
.st-near .dot { background: #eab308; }       .badge.st-near { background: var(--near-soft); color: var(--near); }
.st-ok .dot { background: var(--ok); }       .badge.st-ok { background: var(--ok-soft); color: var(--ok); }
.st-renew .dot { background: var(--renew); } .badge.st-renew { background: var(--renew-soft); color: var(--renew); }
.dl.st-late { background: #fef5f5; }

.empty { padding: 16px; border-radius: 14px; background: var(--bg); color: var(--muted); font-size: 0.92rem; text-align: center; }
.empty a { color: var(--brand); font-weight: 700; text-decoration: none; }

.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
.dash-grid .card { border-top: 4px solid var(--tone); }

.facts { margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.facts div { background: var(--tone-soft); border-radius: 12px; padding: 10px 12px; }
.facts dt { font-size: 0.78rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

.habits { display: grid; gap: 14px; }
.hb-top { display: flex; justify-content: space-between; font-size: 0.92rem; }
.hb-top span { color: var(--ink-2); font-weight: 600; }
.hb-track { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin: 6px 0 4px; }
.hb-track i { display: block; height: 100%; border-radius: 99px; background: var(--habit); }
.hb.is-low .hb-track i { background: var(--soon); }
.hb small { color: var(--faint); font-size: 0.78rem; }
.habit-note { margin-top: 14px; font-size: 0.92rem; color: var(--ink-2); }
.goal { margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--habit-soft); border-inline-start: 4px solid var(--habit); font-weight: 600; }
.goal small { display: block; color: var(--habit); font-size: 0.78rem; font-weight: 700; }
.total { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--acc-soft); color: var(--ink-2); display: flex; justify-content: space-between; }
.total b { color: var(--acc); }

.eye-card { background: linear-gradient(160deg, #fff 40%, #f6f1ff); }
.soon-pill { background: var(--eye-soft); color: var(--eye) !important; font-weight: 700 !important; padding: 3px 12px; border-radius: 99px; font-size: 0.8rem; }
.agents { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agents li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px dashed #ddd2fb; color: var(--eye); }
.agents b { color: var(--ink); display: block; font-size: 0.95rem; }
.agents small { color: var(--muted); font-size: 0.82rem; }
.wish { display: grid; gap: 8px; margin-top: 14px; justify-items: start; }
.wish .field { width: 100%; }

.dash-foot { display: flex; gap: 20px; justify-content: center; align-items: center; color: var(--muted); font-size: 0.9rem; padding-top: 10px; }
.dash-foot a { text-decoration: none; font-weight: 600; }
.dash-foot a:hover { color: var(--ink); }

/* ── account · privacy · messages ──────────────────────────────────────── */
.narrow { max-width: 640px; margin: 0 auto; padding: 28px clamp(14px, 4vw, 24px) 64px; display: grid; gap: 18px; }
.center { min-height: 70vh; align-content: center; }
.acct { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.acct img, .acct-ic { width: 64px; height: 64px; border-radius: 50%; }
.acct-ic { display: grid; place-items: center; background: var(--about-soft); color: var(--about); }
.acct h1 { font-size: 1.4rem; }
.acct p { color: var(--muted); }
.acct small { color: var(--faint); }
.danger h2 { display: flex; align-items: center; gap: 8px; color: var(--late); font-size: 1.1rem; margin-bottom: 6px; }
.danger p { color: var(--muted); }
.del-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--late); }

.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.15rem; margin-top: 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 4px; }
.draft-note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--soon-soft); color: var(--soon); font-weight: 600; font-size: 0.9rem; }

.msg { text-align: center; display: grid; gap: 10px; justify-items: center; }
.msg-code { font-size: 3rem; color: var(--faint); line-height: 1; }
.msg p { color: var(--muted); margin-bottom: 8px; }

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .domains { grid-template-columns: repeat(3, 1fr); }
  .pulse { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock { margin: 10px auto 0; transform: rotate(-1.5deg); }
  .eye-band { grid-template-columns: 1fr; }
  .how, .trust { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .topbar-end .link-soft { display: none; }
  .domains { grid-template-columns: 1fr 1fr; }
  .domain:last-child { grid-column: 1 / -1; }
  .grid-2 { grid-template-columns: 1fr; }
  .stepper span { display: none; }
  .row-2, .row-3, .row-4 { grid-template-columns: 1fr 1fr; }
  .row .field:first-child { grid-column: 1 / -1; }
  .row-x { position: absolute; top: 6px; inset-inline-end: 6px; height: 34px; width: 34px; }
  .row { padding-top: 14px; }
  .dash-hero { gap: 14px; align-items: flex-start; }
  .ring { width: 84px; height: 84px; }
  .ring-in { width: 66px; height: 66px; }
  .ring-in b { font-size: 1.1rem; }
  .ring-in small { font-size: 0.65rem; }
  .dl { grid-template-columns: 10px 1fr auto; }
  .dl .when { display: none; }
  .wiz-actions { flex-wrap: wrap; }
  .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
