/* MindAura Creators portal. Matches mindauralabs.com: Inter, #0066ff, light grey surfaces. */
:root {
  --bg: #f5f5f7; --surface: #ffffff; --ink: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7; --line-soft: #e8e8ed;
  --accent: #0066ff; --accent-2: #00d4ff; --accent-ink: #0052cc; --accent-soft: #e6f0ff;
  --ok: #177a48; --ok-soft: #e3f4ea; --warn: #9a5b00; --warn-soft: #fdf1dc; --bad: #b8322a; --bad-soft: #fbe6e4;
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(0,0,0,.05);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0f15; --surface: #151a24; --ink: #f2f4f8; --muted: #a1a8b8; --line: #2a3140; --line-soft: #1f2532;
    --accent: #4d94ff; --accent-ink: #80b3ff; --accent-soft: #16233d;
    --ok: #5fd394; --ok-soft: #12291d; --warn: #f0b454; --warn-soft: #2d2210; --bad: #f08077; --bad-soft: #2f1715;
    --shadow: none; color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--sans); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-underline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 750; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; height: 56px; background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line-soft); }
.nav__inner { max-width: 1180px; margin: 0 auto; height: 100%; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
.logo { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.logo span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.nav__spacer { flex: 1; }
.nav a.link { color: var(--ink); text-decoration: none; font-size: 14px; opacity: .8; }
.nav a.link:hover { opacity: 1; }

/* layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 460px; margin: 48px auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin-bottom: 6px; }
.stat .label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.stat .value { font-size: 28px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat .hint { font-size: 12px; color: var(--muted); }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--sans); cursor: pointer; text-decoration: none; background: var(--accent); color: #fff; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent-ink); border-color: var(--line); }
.btn.subtle { background: var(--accent-soft); color: var(--accent-ink); }
.btn.danger { background: var(--bad); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.block { width: 100%; }
label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.field { margin-bottom: 14px; }
.field .help { font-size: 12px; color: var(--muted); margin-top: 5px; }
input:not([type]), input[type=text], input[type=month], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 15px var(--sans); }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.error { color: var(--bad); font-size: 13px; margin-top: 8px; min-height: 18px; }
.success { color: var(--ok); font-size: 13px; }
.code-input { font: 700 22px var(--mono) !important; letter-spacing: .12em; text-transform: uppercase; }

/* pills & tables */
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--line-soft); color: var(--muted); white-space: nowrap; }
.pill.ok, .pill.active, .pill.paid, .pill.approved { background: var(--ok-soft); color: var(--ok); }
.pill.warn, .pill.pending, .pill.draft, .pill.review, .pill.open { background: var(--warn-soft); color: var(--warn); }
.pill.bad, .pill.suspended, .pill.banned, .pill.void, .pill.cancelled { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--accent-soft); color: var(--accent-ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--bg); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--bg); }

/* tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; background: var(--line-soft); border-radius: 12px; margin: 20px 0; scrollbar-width: none; }
.tabs button { flex: none; border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* code chip & links */
.codechip { display: inline-block; font: 700 18px var(--mono); letter-spacing: .1em; padding: 6px 12px; border: 2px dashed var(--accent);
  background: var(--accent-soft); color: var(--accent-ink); border-radius: 10px; }
.linkcard { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
.linkcard img.icon { width: 56px; height: 56px; border-radius: 14px; }
.linkbox { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.linkbox input { font: 14px var(--mono); padding: 9px 11px; }
.offer { font-size: 13px; background: var(--accent-soft); color: var(--accent-ink); padding: 6px 10px; border-radius: 8px; display: inline-block; }

/* progress & chart */
.progress { height: 10px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; }
.chart svg { width: 100%; height: 180px; display: block; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* hero (public page) */
.hero { padding-top: 72px; padding-bottom: 56px; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps { counter-reset: s; }
.steps .card::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; margin-bottom: 10px; }
.tier { text-align: center; }
.tier .rate { font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: var(--accent-ink); }
.appgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.appgrid .app { display: flex; gap: 12px; align-items: center; }
.appgrid .app img { width: 48px; height: 48px; border-radius: 12px; }
details.faq { border-bottom: 1px solid var(--line-soft); padding: 14px 0; }
details.faq summary { font-weight: 600; cursor: pointer; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

.notice { border-left: 3px solid var(--warn); background: var(--warn-soft); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 14px; }
.notice.info { border-color: var(--accent); background: var(--accent-soft); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 50; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: min(640px, calc(100vw - 32px)); width: 100%;
  background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgba(0,0,0,.35); }

footer.site { padding: 32px 16px 48px; text-align: center; font-size: 13px; color: var(--muted); }
footer.site a { color: inherit; }

@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .card { padding: 16px; }
  .hide-sm { display: none; }
  th, td { padding: 9px 10px; }
}
