/* ============================================================
   Devign Apps Portal — design system
   Dark, premium SaaS. Strict 4px spacing scale, equal-height
   cards, two product accents (Agency = violet, TCN = cyan).
   ============================================================ */

:root {
  /* surfaces */
  --bg: #08080c;
  --bg-2: #0c0c12;
  --surface: #121219;
  --surface-2: #16161f;
  --surface-3: #1c1c28;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* text */
  --text: #ececf3;
  --text-dim: #a2a2b4;
  --text-faint: #6f6f83;

  /* brand — Agency Suite (violet) */
  --violet: #6d5efc;
  --violet-2: #8b7bff;
  --violet-deep: #4a37d8;
  --violet-glow: rgba(109, 94, 252, 0.35);

  /* brand — TCN Agent (cyan) */
  --cyan: #22c3e6;
  --cyan-2: #4dd7f4;
  --cyan-deep: #0e93b3;
  --cyan-glow: rgba(34, 195, 230, 0.30);

  /* semantic */
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;

  /* accent (swapped per active product) */
  --accent: var(--violet);
  --accent-2: var(--violet-2);
  --accent-deep: var(--violet-deep);
  --accent-glow: var(--violet-glow);

  /* scale */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 20px 40px -24px rgba(0,0,0,0.8);
  --shadow-pop: 0 30px 80px -20px rgba(0,0,0,0.85);

  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-accent="tcn"] {
  --accent: var(--cyan);
  --accent-2: var(--cyan-2);
  --accent-deep: var(--cyan-deep);
  --accent-glow: var(--cyan-glow);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 12% -6%, rgba(109,94,252,0.16), transparent 60%),
    radial-gradient(680px 420px at 92% 2%, rgba(34,195,230,0.10), transparent 60%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 96px 0; position: relative; z-index: 1; }
.section-sm { padding: 64px 0; }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-2);
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.h-hero { font-size: clamp(38px, 5.4vw, 62px); }
.h-sec { font-size: clamp(28px, 3.4vw, 40px); }
.lede { font-size: 18px; color: var(--text-dim); max-width: 56ch; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.center { text-align: center; }
.gradient-text {
  background: linear-gradient(120deg, var(--text) 20%, var(--accent-2) 60%, var(--text) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 20px; border-radius: var(--r);
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 8px 24px -8px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.2) inset;
}
.btn-primary:hover { box-shadow: 0 12px 32px -8px var(--accent-glow), 0 1px 0 rgba(255,255,255,0.25) inset; }
.btn-ghost { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-3); }
.btn-quiet { color: var(--text-dim); background: transparent; }
.btn-quiet:hover { color: var(--text); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-danger { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.btn-danger:hover { background: color-mix(in srgb, var(--red) 20%, transparent); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--text-dim); font-size: 14px; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* brand mark */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; position: relative;
  background: conic-gradient(from 140deg, var(--violet), var(--cyan), var(--violet));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 4px;
  background: var(--bg);
}
.brand small { color: var(--text-faint); font-weight: 500; font-size: 11px; letter-spacing: 0.04em; }

/* ---------- hero ---------- */
.hero { padding: 92px 0 72px; text-align: center; }
.hero .h-hero { margin: 22px auto 0; max-width: 16ch; }
.hero .lede { margin: 22px auto 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-faint); }
.hero-apps { display: flex; gap: 10px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.app-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--text-dim);
}
.app-chip .dot { width: 8px; height: 8px; border-radius: 999px; }
.dot-violet { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ---------- product cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.prod {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: 34px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.prod:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateY(-3px); }
.prod::before {
  content: ""; position: absolute; top: -40%; right: -20%; width: 320px; height: 320px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  opacity: .5; pointer-events: none;
}
.prod-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface-3));
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  color: var(--accent-2); margin-bottom: 20px;
}
.prod-ico svg { width: 26px; height: 26px; }
.prod h3 { font-size: 24px; }
.prod .kicker { font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 8px; }
.prod p { color: var(--text-dim); margin-top: 10px; font-size: 15px; }
.prod ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 11px; }
.prod li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: var(--text); }
.prod li svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent-2); }
.prod .prod-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.prod .from { font-size: 13px; color: var(--text-faint); }
.prod .from b { color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- pricing ---------- */
.pricing-head { text-align: center; margin-bottom: 40px; }
.seg {
  display: inline-flex; padding: 5px; gap: 4px; margin: 26px auto 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
.seg button {
  border: 0; background: transparent; color: var(--text-dim);
  font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 9px; transition: color .15s;
}
.seg button .dot { width: 8px; height: 8px; border-radius: 999px; }
.seg button[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 6px 18px -8px var(--accent-glow); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px 26px; box-shadow: var(--shadow-card);
  transition: border-color .2s, transform .2s;
}
.tier:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.tier.pop {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 30px 60px -30px var(--accent-glow);
}
.tier.pop::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, var(--accent-glow), transparent 40%); opacity: .18;
}
.tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 8px 20px -8px var(--accent-glow);
}
.tier-name { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; color: var(--text); }
.tier-desc { font-size: 13px; color: var(--text-dim); margin-top: 6px; min-height: 34px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.price .amt { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; }
.price .per { font-size: 14px; color: var(--text-faint); }
.tier-cta { margin: 22px 0; }
.limits { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--border); }
.limits li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.limits .lk { color: var(--text-dim); display: flex; align-items: center; gap: 9px; }
.limits .lk svg { width: 16px; height: 16px; color: var(--accent-2); flex: none; }
.limits .lv { font-weight: 600; color: var(--text); }
.limits .lv.inf { color: var(--accent-2); }

/* branded add-on */
.branded {
  margin-top: 24px; border-radius: var(--r-lg); padding: 26px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface)),
    radial-gradient(500px 200px at 100% 0%, var(--accent-glow), transparent 60%);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--border));
}
.branded h4 { font-size: 19px; display: flex; align-items: center; gap: 12px; }
.branded p { color: var(--text-dim); font-size: 14px; margin-top: 6px; max-width: 62ch; }
.branded .price-tag { text-align: right; }
.branded .price-tag b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.branded .price-tag span { display: block; font-size: 12px; color: var(--text-faint); }
.pill {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; color: var(--accent-2);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ---------- feature strip ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
}
.feat .fi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--accent-2); }
.feat h4 { font-size: 16px; }
.feat p { font-size: 14px; color: var(--text-dim); margin-top: 7px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.qa { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .chev { color: var(--text-faint); transition: transform .2s; flex: none; }
.qa[open] summary .chev { transform: rotate(180deg); }
.qa .qa-body { padding: 0 22px 20px; color: var(--text-dim); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--r-xl); padding: 56px; text-align: center; overflow: hidden; position: relative;
  background:
    radial-gradient(600px 300px at 30% 0%, var(--violet-glow), transparent 60%),
    radial-gradient(600px 300px at 80% 100%, var(--cyan-glow), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 60px; position: relative; z-index: 1; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer h5 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer a { display: block; color: var(--text-dim); font-size: 14px; padding: 5px 0; }
.footer a:hover { color: var(--text); }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-faint); font-size: 13px; }

/* ---------- modal ---------- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(4, 4, 8, 0.72); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 24px;
}
.modal-scrim.open { display: flex; }
.modal {
  width: 100%; max-width: 440px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-pop);
  padding: 30px; position: relative;
}
.modal-x {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; color: var(--text-dim);
  background: var(--surface-3); border: 1px solid var(--border);
}
.modal-x:hover { color: var(--text); }
.modal h3 { font-size: 22px; }
.modal .sub { color: var(--text-dim); font-size: 14px; margin-top: 8px; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 13px 14px; border-radius: var(--r); font-size: 15px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.oauth { display: grid; gap: 10px; margin-top: 18px; }
.oauth button {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 13px; border-radius: var(--r); font-size: 15px; font-weight: 600;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text);
}
.oauth button:hover { border-color: var(--border-strong); }
.divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--text-faint); font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.secured { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; font-size: 12px; color: var(--text-faint); }
.secured svg { width: 14px; height: 14px; }

/* checkout summary rows */
.co-line { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.co-line .muted { color: var(--text-dim); }
.co-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 16px; }
.co-total .amt { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.co-prod { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--border); margin-top: 4px; }
.co-prod .prod-ico { width: 42px; height: 42px; margin: 0; border-radius: 11px; }
.co-prod .prod-ico svg { width: 22px; height: 22px; }

/* ============================================================
   Account / subscription-management page
   ============================================================ */
.app-shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; position: relative; z-index: 1; }
.side {
  border-right: 1px solid var(--border); padding: 22px 18px;
  display: flex; flex-direction: column; gap: 4px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}
.side .brand { padding: 6px 8px 20px; }
.side a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: var(--text-dim); font-size: 14.5px; font-weight: 500;
}
.side a svg { width: 18px; height: 18px; }
.side a:hover { color: var(--text); background: var(--surface-2); }
.side a.active { color: var(--text); background: var(--surface-3); border: 1px solid var(--border); }
.side .side-foot { margin-top: auto; }
.side .user { display: flex; align-items: center; gap: 11px; padding: 10px 8px; border-top: 1px solid var(--border); margin-top: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--cyan)); flex: none; }
.user .un { font-size: 13.5px; font-weight: 600; }
.user .ue { font-size: 12px; color: var(--text-faint); }

.main { padding: 34px 40px 80px; max-width: 940px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.page-title h1 { font-size: 28px; }
.page-sub { color: var(--text-dim); margin-bottom: 30px; }

.card {
  border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.card + .card { margin-top: 20px; }
.card-h { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-h h3 { font-size: 17px; }
.card-b { padding: 24px; }

.sub-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sub-hero .prod-ico { margin: 0; }
.sub-hero .meta { flex: 1; min-width: 200px; }
.sub-hero .meta .pln { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.sub-hero .meta .amt { color: var(--text-dim); font-size: 14px; margin-top: 3px; }
.sub-hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.status .d { width: 7px; height: 7px; border-radius: 999px; }
.status.active { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.status.active .d { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status.cancel { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); }
.status.cancel .d { background: var(--amber); }

.usage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.usage .u { }
.usage .u .top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.usage .u .lab { font-size: 13px; color: var(--text-dim); }
.usage .u .val { font-size: 14px; } .usage .u .val b { font-size: 20px; font-weight: 700; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.rows { width: 100%; border-collapse: collapse; }
.rows th { text-align: left; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; padding: 0 0 12px; border-bottom: 1px solid var(--border); }
.rows td { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.rows tr:last-child td { border-bottom: 0; }
.rows .amt { font-variant-numeric: tabular-nums; }
.tag-paid { color: var(--green); font-size: 12.5px; font-weight: 600; }
.pay-method { display: flex; align-items: center; gap: 14px; }
.pay-card { width: 46px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #2a2a3a, #16161f); border: 1px solid var(--border); display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-dim); }

/* plan-switch grid inside modal */
.switch-grid { display: grid; gap: 12px; margin-top: 18px; }
.switch-opt {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--bg-2); text-align: left; width: 100%; transition: border-color .15s;
}
.switch-opt:hover { border-color: var(--border-strong); }
.switch-opt.cur { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--bg-2)); }
.switch-opt .r { width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; }
.switch-opt.cur .r { border-color: var(--accent); }
.switch-opt.cur .r::after { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }
.switch-opt .so-main { flex: 1; display: flex; flex-direction: column; }
.switch-opt .so-main .n { font-weight: 600; font-size: 15px; }
.switch-opt .so-main .d { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.switch-opt .so-price b { font-size: 18px; font-weight: 700; }
.switch-opt .so-price span { font-size: 12px; color: var(--text-faint); }

.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); font-size: 13.5px; margin-top: 16px;
  background: color-mix(in srgb, var(--amber) 8%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 26%, transparent); color: #f5deb3; }
.callout svg { flex: none; width: 18px; height: 18px; color: var(--amber); margin-top: 1px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .tiers, .feat-grid, .usage { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .side .side-foot, .side .user { display: none; }
  .main { padding: 24px; }
  .nav-links { display: none; }
}
