/* cauldron.wtf, Meridian: the main Potion design system. Loaded on every page while the Meridian site theme is on.
   Midnight navy (never flat black), electric blue for action, icy blue for highlights, violet only for AI and small accents.
   One type family (Geist) with a strict scale, Geist Mono for labels and commands. Hairline borders, 10-14px radii,
   light used in two or three places per page, not everywhere. */
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root {
  /* surfaces, from the page to raised panels */
  --md-0: #060a18; --md-1: #0a1024; --md-2: #0e162f; --md-3: #141d3b; --md-4: #1c2749;
  /* lines */
  --md-line: rgba(150, 175, 235, .09); --md-line-2: rgba(150, 175, 235, .16); --md-line-3: rgba(150, 175, 235, .26);
  /* text */
  --md-text: #eef2fb; --md-soft: #aab4cd; --md-mute: #6f7a97;
  /* colour */
  --md-blue: #4f7dff; --md-blue-2: #6b93ff; --md-ice: #a8c8ff; --md-violet: #9a8cff; --md-gold: #e8c179; --md-green: #4fd1a5; --md-red: #ff6b7a;
  /* type */
  --md-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --md-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  /* motion */
  --md-ease: cubic-bezier(.22, .8, .24, 1);
  /* the site's shared names */
  --void: var(--md-0); --char: var(--md-1); --char-2: var(--md-2); --line: var(--md-line); --line-2: var(--md-line-2);
  --text: var(--md-text); --mute: var(--md-mute); --gold: var(--md-gold); --radius: 12px;
}
html { background: var(--md-0); }
body { font: 400 15.5px/1.6 var(--md-sans); color: var(--md-text); letter-spacing: -.006em; -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 520px at 50% -180px, rgba(79, 125, 255, .14), transparent 70%), var(--md-0); background-attachment: fixed; }
body::before { display: none !important; }
::selection { background: rgba(79, 125, 255, .45); color: #fff; }
h1, h2, h3, h4 { font-family: var(--md-sans); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; color: var(--md-text); }
h1 em, h2 em { font-style: normal; color: var(--md-ice); background: none; -webkit-text-fill-color: currentColor; }
a { color: var(--md-ice); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--md-blue-2); outline-offset: 2px; }
code, kbd, .mono { font-family: var(--md-mono); }

/* ---------------------------------------------------------------- buttons */
.btn { font: 550 14px/1 var(--md-sans); letter-spacing: -.01em; border-radius: 10px; padding: 13px 18px; gap: 8px;
  transition: background .2s var(--md-ease), border-color .2s, color .2s, box-shadow .25s var(--md-ease), transform .2s var(--md-ease); }
.btn-main { color: #fff; border: 0; background: linear-gradient(180deg, #5b87ff, #3e6cf2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 1px rgba(79, 125, 255, .55), 0 6px 18px -8px rgba(79, 125, 255, .8); }
.btn-main:hover { color: #fff; background: linear-gradient(180deg, #6b93ff, #4a77f7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 1px rgba(107, 147, 255, .7), 0 10px 26px -10px rgba(79, 125, 255, .9); }
.btn-main:active { transform: translateY(1px); }
.btn-ghost { color: var(--md-text); background: rgba(150, 175, 235, .04); border: 1px solid var(--md-line-2); }
.btn-ghost:hover { color: #fff; background: rgba(150, 175, 235, .08); border-color: var(--md-line-3); }
.btn-gold { color: #1f1606; background: linear-gradient(180deg, #f0d08f, #d9ac58); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-gold:hover { color: #1f1606; background: linear-gradient(180deg, #f6dba4, #e0b768); }
.btn-small { padding: 9px 13px; font-size: 13px; border-radius: 9px; }
.btn[disabled], .btn:disabled { opacity: .5; }

/* ---------------------------------------------------------------- panels: flat navy, a hairline, a faint light along the top edge */
.glass, .card { background: linear-gradient(180deg, rgba(20, 29, 59, .55), rgba(10, 16, 36, .7)) var(--md-1) !important; border: 1px solid var(--md-line) !important;
  border-radius: 14px !important; box-shadow: inset 0 1px 0 rgba(170, 195, 255, .05) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  transition: border-color .2s; }
.card:hover { border-color: var(--md-line-2) !important; }

/* ---------------------------------------------------------------- nav (log in, sign up, 404) */
.nav { background: rgba(6, 10, 24, .72); border-bottom: 1px solid var(--md-line); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.brand { font: 600 17px/1 var(--md-sans); letter-spacing: -.03em; gap: 9px; color: var(--md-text); }
.brand img { height: 26px; width: auto; image-rendering: auto; filter: none; }
.nav-links a { font: 450 14px var(--md-sans); color: var(--md-soft); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.menu { background: var(--md-1); border-top: 1px solid var(--md-line); }
.menu a { font-weight: 500; border-bottom-color: var(--md-line); }
.menu a:last-child { color: var(--md-ice); }
.menu-btn { border-radius: 9px; border: 1px solid var(--md-line-2); background: rgba(150, 175, 235, .04); }

/* ---------------------------------------------------------------- forms */
label { font: 500 13px var(--md-sans); color: var(--md-soft); letter-spacing: -.005em; }
input, textarea, select { font: 400 15px/1.4 var(--md-sans); color: var(--md-text); background: rgba(6, 10, 24, .7); border: 1px solid var(--md-line-2); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s, background .2s; }
input:hover, textarea:hover, select:hover { border-color: var(--md-line-3); }
input:focus, textarea:focus, select:focus { border-color: var(--md-blue-2); background: rgba(6, 10, 24, .9); box-shadow: 0 0 0 3px rgba(79, 125, 255, .2); outline: none; }
input::placeholder, textarea::placeholder { color: #56607c; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--md-blue); }
button, input, select, textarea { font-family: var(--md-sans); }
.hint { color: var(--md-mute); }
.error { color: var(--md-red); }
.toast { color: var(--md-text); background: var(--md-3); border: 1px solid var(--md-line-2); border-radius: 10px; font-weight: 500; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); }
.loading { background: var(--md-0); }
.prem-tag { border-radius: 6px !important; font-family: var(--md-mono); letter-spacing: .02em; }

/* ---------------------------------------------------------------- dashboard */
/* the side: a navy rail with the tabs as a quiet list; the open tab gets a raised row and a blue edge */
@media (min-width: 761px) { .app { grid-template-columns: 248px minmax(0, 1fr); } }
.app .side { background: linear-gradient(180deg, rgba(14, 22, 47, .9), rgba(6, 10, 24, .95)); border-right: 1px solid var(--md-line); padding: 22px 14px; gap: 26px; }
.app .side .brand { padding: 2px 10px; font-size: 17px; }
.app .tabs { gap: 2px; }
.app .tabs::before { content: "Workspace"; display: block; padding: 0 12px 8px; font: 500 11px var(--md-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--md-mute); }
.app .tabs a { font: 500 14px/1 var(--md-sans); padding: 10px 12px; border-radius: 9px; color: var(--md-soft); transition: background .15s, color .15s; }
.app .tabs a .t-ico { color: var(--md-mute); transition: color .15s; }
.app .tabs a:hover { background: rgba(150, 175, 235, .05); color: #fff; }
.app .tabs a:hover .t-ico { color: var(--md-soft); }
.app .tabs a[aria-current="page"] { color: #fff; background: rgba(79, 125, 255, .12); box-shadow: inset 0 0 0 1px rgba(107, 147, 255, .22); }
.app .tabs a[aria-current="page"] .t-ico { color: var(--md-ice); }
.app .me { border-radius: 12px; background: rgba(6, 10, 24, .6); border: 1px solid var(--md-line); padding: 10px; }
.app .me img { image-rendering: auto; background: var(--md-2); }
.app .me b { font-weight: 600; font-size: 14px; }
.app .me span { font-size: 12.5px; }
.app .main { padding: 36px clamp(20px, 3.4vw, 48px) 80px; max-width: 1240px; }
.app .pane-head { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--md-line); }
.app .pane-head h1 { font: 600 30px/1.1 var(--md-sans); letter-spacing: -.04em; margin: 0 0 6px; }
.app .pane-head p { color: var(--md-soft); margin: 0; font-size: 14.5px; }
.app .pane { animation: md-pane .35s var(--md-ease); }
@keyframes md-pane { from { opacity: 0; transform: translateY(6px); } }
.app .grid-2 { gap: 16px; margin-bottom: 16px; }
.app .card { padding: 22px; }
.app .card h2 { font: 600 15px/1.2 var(--md-sans); letter-spacing: -.02em; margin: 0 0 16px; color: var(--md-text); }
.app .facts dt { color: var(--md-mute); }
.app .facts dd { font-weight: 500; }
/* numbers: big, light and tabular, with small mono labels */
.app .stat-tile { border-radius: 14px; padding: 18px 20px; }
.app .stat-tile b { font: 500 32px/1 var(--md-sans); letter-spacing: -.045em; color: var(--md-text); font-variant-numeric: tabular-nums; }
.app .stat-tile span, .app .stat-tile small { font-family: var(--md-sans); }
.app .meter { border-radius: 99px; background: var(--md-3); height: 6px; }
.app .meter span { border-radius: 99px; background: linear-gradient(90deg, var(--md-blue), var(--md-ice)); box-shadow: none; }
.app .status { font-weight: 600; letter-spacing: -.02em; }
/* plans */
.app .plan { border-radius: 14px !important; background: var(--md-1) !important; border: 1px solid var(--md-line-2) !important; transition: border-color .2s, transform .25s var(--md-ease), box-shadow .25s; }
.app .plan:hover { border-color: rgba(107, 147, 255, .45) !important; transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgba(79, 125, 255, .7) !important; }
.app .plan .price { font-family: var(--md-sans); font-weight: 600; letter-spacing: -.05em; color: var(--md-text) !important; }
/* segmented tabs and pick-one boxes */
.app .ed-tabs, .app .subtabs, .th-pages, .sv-tabs { border-radius: 11px !important; background: rgba(6, 10, 24, .6) !important; border: 1px solid var(--md-line) !important; padding: 4px !important; }
.app .ed-tabs button, .app .subtabs button, .th-pages button, .sv-tabs button { border-radius: 8px !important; font-weight: 500 !important; }
.app .ed-tabs button[aria-selected="true"], .app .subtabs button[aria-selected="true"], .th-pages button[aria-selected="true"], .sv-tabs button[aria-selected="true"] {
  background: var(--md-3) !important; color: #fff !important; box-shadow: inset 0 0 0 1px var(--md-line-2) !important; }
.seg, .seg span, .th-card, .sv-card, .db-table, .os-tiles > * { border-radius: 11px !important; }
.app .preview, .th-stage { border-radius: 16px !important; border-color: var(--md-line-2) !important; }
.locked { border-radius: 10px; background: rgba(232, 193, 121, .06); border-color: rgba(232, 193, 121, .28); color: #f0d49c; }
@media (max-width: 760px) {
  .app .tabs { background: rgba(6, 10, 24, .96); border-top: 1px solid var(--md-line); backdrop-filter: blur(14px); }
  .app .tabs::before { display: none; }
  .app .tabs a[aria-current="page"] { box-shadow: none; }
  .app .main { padding: 24px 16px 110px; }
  .app .pane-head h1 { font-size: 26px; }
}

/* ---------------------------------------------------------------- log in, sign up, password reset, 404 */
main.center { position: relative; isolation: isolate; }
main.center::before { background: radial-gradient(closest-side, rgba(79, 125, 255, .16), transparent) !important; }
main.center::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(150, 175, 235, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 175, 235, .05) 1px, transparent 1px); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(closest-side at 50% 45%, #000, transparent 85%); mask-image: radial-gradient(closest-side at 50% 45%, #000, transparent 85%); }
.box.glass { padding: 40px 36px 30px; border-radius: 18px !important; background: linear-gradient(180deg, rgba(20, 29, 59, .85), rgba(10, 16, 36, .92)) !important;
  box-shadow: inset 0 1px 0 rgba(170, 195, 255, .08), 0 40px 80px -40px rgba(0, 0, 0, .9) !important; }
.box .mark { width: 40px !important; height: auto !important; image-rendering: auto; filter: drop-shadow(0 8px 18px rgba(79, 125, 255, .35)); }
.box h1, .nf h1 { font: 600 26px/1.15 var(--md-sans); letter-spacing: -.04em; }
.box .intro, .box p { color: var(--md-soft); }
.box .switch a { color: var(--md-ice); }
.box .code { font-family: var(--md-sans) !important; font-weight: 600 !important; letter-spacing: -.06em; color: var(--md-text); }

/* premium status line */
.app .status { font-family: var(--md-sans); font-weight: 600; letter-spacing: -.02em; }
.app .status::before { flex: none; }
.app .status.big { font-size: 22px; line-height: 1.25; }
@media (max-width: 760px) { .app .status.big { font-size: 19px; } }

.app .card h2.gap { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--md-line); }

/* plan cards: the approved bottle art, gold for Lifetime */
.app .plan img { content: url("/assets/potion-logo-sm.png"); width: 28px !important; height: 40px !important; max-height: none; object-fit: contain; image-rendering: auto; }
.app .plan.life img { content: url("/assets/potion-logo-gold-sm.png"); }
