/* PhantomMic store: the app's own look (violet glow on midnight slate). */
:root {
  --bg: #0a0e14;
  --panel: #111720;
  --panel-2: #151c28;
  --border: #283345;
  --border-soft: #1e2735;
  --text: #e2e8f0;
  --soft: #94a6be;
  --accent: #9c6bff;
  --accent-2: #8646ef;
  --highlight: #5ca8ff;
  --good: #4ade80;
  --warn: #fbbf24;
  --danger: #e08a8a;
  --radius: 14px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(156, 107, 255, .18), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(92, 168, 255, .10), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.6 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
a { color: var(--highlight); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
code, pre { font-family: "Cascadia Mono", Consolas, monospace; font-size: .85em; }
pre { background: #0c111b; border: 1px solid var(--border-soft); border-radius: 10px; padding: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
main { flex: 1; padding: 32px 0 64px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 20, .78);
  border-bottom: 1px solid var(--border-soft);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a, .nav button.link {
  color: var(--soft); padding: 7px 12px; border-radius: 9px; font-weight: 550; background: none; border: 0; font: inherit; cursor: pointer;
}
.nav a:hover, .nav button.link:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav a.on { color: var(--text); background: rgba(156, 107, 255, .14); }
.nav form { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; background: #1a2333; transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(180deg, #a879ff, var(--accent-2));
  border-color: #a879ff; color: #fff;
  box-shadow: 0 8px 26px rgba(134, 70, 239, .35);
}
.btn.primary:hover { box-shadow: 0 10px 32px rgba(134, 70, 239, .5); }
.btn:not(.primary):hover { box-shadow: 0 0 14px rgba(139, 108, 240, .25); border-color: rgba(156, 107, 255, .55); }
.btn.good { border-color: rgba(74, 222, 128, .45); color: var(--good); }
.panel.narrow { max-width: 600px; }
/* Contact support and its requests. */
.support { max-width: 860px; margin: 0 auto; }
.support > .panel, .support .thread { margin-top: 16px; }
.thread .message { margin-top: 12px; }
.message.staff { border-color: rgba(156, 107, 255, .55); background: rgba(156, 107, 255, .07); }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .two-fields { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
details.panel > summary { cursor: pointer; }
.reply-edit input[name=title] { flex: 1; min-width: 240px; }
.reply-edit textarea { margin-top: 8px; font-family: inherit; }
.canned-picker { margin-bottom: 10px; }
/* A support request's details from the app, read back for the admin. */
.diag h3 { font-size: .95rem; margin: 18px 0 8px; }
.diag-flags { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.diag-flags li { display: flex; gap: 8px; align-items: baseline; }
.diag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 28px; }
.diag-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.diag-facts dt { color: var(--soft); }
.diag-facts dd { margin: 0; overflow-wrap: anywhere; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--soft); flex: none; }
.dot.good { background: var(--good); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--danger); }
.diag-error { border-top: 1px solid var(--border-soft); padding: 10px 0; }
.diag-error p { margin: 0 0 4px; }
.diag-cause { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; color: var(--danger); overflow-wrap: anywhere; }
.diag-hint { color: var(--good); font-size: .9rem; }
.legal h3 { margin-top: 1.5em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: .35em 0; }
.btn.danger { border-color: rgba(224, 138, 138, .45); color: var(--danger); }
.btn.small { padding: 6px 12px; font-size: .88rem; border-radius: 8px; }
.btn.big { padding: 14px 24px; font-size: 1.05rem; border-radius: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Panels and cards */
.panel {
  background: linear-gradient(180deg, rgba(21, 28, 40, .92), rgba(17, 23, 32, .92));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 18px; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.muted { color: var(--soft); }
.small { font-size: .88rem; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.two { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

.feature-card { display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.feature-card::before {
  content: ""; position: absolute; inset: -1px -1px auto -1px; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  opacity: .8;
}
.feature-card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(156, 107, 255, .14); border: 1px solid rgba(156, 107, 255, .35); color: #c4a7ff;
}
.feature-card .icon svg { width: 24px; height: 24px; }
.feature-card .price { font-size: 1.35rem; font-weight: 750; }
.feature-card .price small { font-size: .85rem; color: var(--soft); font-weight: 500; }
.feature-card .actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.feature-card.bundle { border-color: rgba(156, 107, 255, .6); box-shadow: 0 0 0 1px rgba(156, 107, 255, .25), var(--shadow); }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700;
  background: rgba(74, 222, 128, .12); color: var(--good); border: 1px solid rgba(74, 222, 128, .35);
}
.badge.trial { background: rgba(251, 191, 36, .1); color: var(--warn); border-color: rgba(251, 191, 36, .35); }
.badge.accent { background: rgba(156, 107, 255, .14); color: #c4a7ff; border-color: rgba(156, 107, 255, .4); }
.badge.off { background: rgba(148, 166, 190, .1); color: var(--soft); border-color: var(--border); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 30px 0 50px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero h1 .glow { background: linear-gradient(90deg, #c4a7ff, var(--highlight)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--soft); max-width: 36em; }
.shot {
  border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 80px rgba(156, 107, 255, .18);
  width: 100%; height: auto; display: block;
}
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps .panel { position: relative; padding-top: 52px; }
.steps .panel::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 18px; left: 22px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-2); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}
section { margin-top: 56px; }
section > header { text-align: center; max-width: 640px; margin: 0 auto 26px; }

/* Forms */
.form { max-width: 440px; margin: 0 auto; }
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .92rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], textarea, select {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: #0c111b; color: var(--text); font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(156, 107, 255, .55); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 80px; resize: vertical; }
.birth { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.birth legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.birth-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.field-error, .validation-summary-errors { color: var(--danger); font-size: .88rem; }
.validation-summary-errors ul { margin: 6px 0; padding-left: 18px; }
/* An empty summary (its "display:none" item is an inline style, which the CSP blocks). */
.validation-summary-valid { display: none; }

.notice { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); margin-bottom: 18px; }
.notice.good { border-color: rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .07); }
.notice.warn { border-color: rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .07); }
.notice.bad { border-color: rgba(224, 138, 138, .45); background: rgba(224, 138, 138, .07); }
table.inbox tr.unread td { font-weight: 650; color: var(--text); }
pre.mail { word-break: normal; overflow-wrap: anywhere; font-family: inherit; font-size: .95rem; line-height: 1.5; max-height: 60vh; overflow-y: auto; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
th { color: var(--soft); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
td form { margin: 0; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.stat .n { font-size: 1.8rem; font-weight: 800; }
.code-big {
  font: 800 2rem/1 "Cascadia Mono", Consolas, monospace; letter-spacing: .12em; text-align: center;
  padding: 18px; border-radius: 12px; background: #0c111b; border: 1px dashed rgba(156, 107, 255, .5); color: #c4a7ff;
}
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-nav a { padding: 6px 12px; border-radius: 8px; color: var(--soft); border: 1px solid var(--border-soft); }
.admin-nav a.on { color: var(--text); border-color: var(--accent); background: rgba(156, 107, 255, .12); }

/* Footer */
.foot { border-top: 1px solid var(--border-soft); padding: 40px 0 28px; color: var(--soft); font-size: .9rem; }
.foot .wrap { display: grid; gap: 28px; grid-template-columns: 2fr repeat(3, 1fr); }
.foot a { color: var(--soft); }
.foot a:hover { color: var(--text); }
.foot-brand .brand { margin-bottom: 8px; }
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-col strong { color: var(--text); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.foot-copy { grid-column: 1 / -1; border-top: 1px solid var(--border-soft); padding-top: 18px; margin: 0; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Skip link and the menu button (narrow screens) */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--accent-2); color: #fff; }
.skip:focus { left: 16px; }
.menu-button { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-button span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded=true] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .menu-button { display: flex; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px;
    background: #0a0e14; border-bottom: 1px solid var(--border-soft); box-shadow: 0 24px 40px rgba(0, 0, 0, .5); }
  .nav.open { display: flex; }
  .nav a, .nav button.link { padding: 11px 12px; text-align: left; }
  .nav .btn { margin-top: 6px; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mt { margin-top: 14px; }
.mt-l { margin-top: 26px; }
.center { text-align: center; }

/* Panels side by side line up; only stacked panels get a gap above. */
.grid > .panel, .two > .panel, .stats > .panel, .steps > .panel { margin-top: 0; }
.feature-card .actions form, .feature-card .actions .btn { width: 100%; }
.feature-card .actions .btn { justify-content: center; }
.feature-card > p.muted { flex-grow: 1; }
.feature-card .actions { margin-top: 4px; }
.stats + .panel, .admin-nav + .stats { margin-top: 18px; }

/* Pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.plans.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.plan { display: flex; flex-direction: column; gap: 12px; position: relative; transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s, border-color .22s; }
.plan:hover { transform: translateY(-6px); border-color: rgba(156, 107, 255, .7); box-shadow: 0 0 0 1px rgba(156, 107, 255, .35), 0 0 34px rgba(139, 108, 240, .28), var(--shadow); }
.plan.clickable { cursor: pointer; }
.plan.featured { border-color: rgba(156, 107, 255, .7); box-shadow: 0 0 0 1px rgba(156, 107, 255, .3), 0 0 60px rgba(156, 107, 255, .18), var(--shadow); }
.plan .ribbon { position: absolute; top: -12px; left: 22px; }
.plan .amount { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.plan .amount small { font-size: .95rem; color: var(--soft); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.plan li::before { content: "✓"; color: var(--good); font-weight: 800; margin-right: 8px; }
.plan li.no::before { content: "–"; color: var(--soft); }
.plan .actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.plan .actions form, .plan .actions .btn { width: 100%; }
.plan .actions .btn { justify-content: center; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare td.yes { color: var(--good); font-weight: 700; }
.compare td.no { color: var(--soft); }
.feature-card.soon { opacity: .75; }

/* Continue with Google */
form.google { margin: 18px 0 4px; }
.google-btn { width: 100%; background: #fff; color: #1f1f1f; border-color: #dadce0; }
.google-btn:hover { background: #f3f4f6; color: #1f1f1f; }
.google-btn svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: .85rem; margin: 14px 0 6px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Two-step sign-in */
.qr { display: flex; justify-content: center; align-items: center; }
.qr svg { width: 240px; height: 240px; max-width: 100%; display: block; border-radius: 12px; background: #fff; }
input.mono { font-family: Consolas, monospace; letter-spacing: .06em; }
ul.codes { list-style: none; margin: 0; font-family: Consolas, monospace; columns: 2; font-size: 1rem; letter-spacing: .05em; padding: 14px 18px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }

/* Coming soon (the main domain before launch) */
body.splash { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.splash-card { max-width: 640px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.splash-card img { border-radius: 22px; box-shadow: 0 0 60px rgba(156, 107, 255, .35); }
.splash-card h1 .glow { background: linear-gradient(90deg, #c4a7ff, var(--highlight)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash-card .lead { font-size: 1.15rem; color: var(--soft); }
.splash-card form { margin: 0; }
.splash-card button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--highlight); cursor: pointer; }
.splash-card button.link:hover { text-decoration: underline; }

/* Passkeys */
.passkey-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.passkey-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-2); }
.passkey-add { display: grid; gap: 8px; }
.passkey-button { width: 100%; margin-top: 8px; }

/* Admin inbox: unread messages stand out with a dot and bold type; tools act on the ticked ones. */
.inbox-tools { align-items: center; gap: 8px; margin-bottom: 10px; }
.inbox-tools .spacer { flex: 1; }
.inbox tr.unread td { font-weight: 700; color: var(--text); }
.inbox tr.read td { color: var(--soft); }
.read-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--soft); }
.inbox tr.unread .read-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 8px rgba(156, 107, 255, .6); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
