  /* Header logo */
.logo { display:flex; align-items:center; gap:10px; font-weight:800 }
.logo-img{
  height: 62px;
  width: auto;
  display: block;
  border-radius: 8px;
}
.logo-title{ letter-spacing:.2px }
@media (max-width: 480px){
  .logo-title{ display:none }
}

:root{
  --bg:#0b1020; --bg-soft:#0f162b; --card:#111a33;
  --ink:#ecf2ff; --muted:#a9b8da; --stroke:#243255;

  --accent-start:#5fdcff;
  --accent-mid:#46c4f0;
  --accent-end:#2fa3e4;
  --accent-gradient: linear-gradient(180deg,
    var(--accent-start) 0%,
    var(--accent-mid) 50%,
    var(--accent-end) 100%);

  --accent: var(--accent-start);
  --accent-2: var(--accent-end);

  --btn-fg:#ffffff;
  --btn-ghost-fg: var(--ink);

  --ok:#3ee6a5; --warn:#f7b955;
  --shadow:0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
  --radius:16px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
  --header-h: 68px;
}

[data-theme="light"]{
  --bg:#f6f8ff; --bg-soft:#eef2ff; --card:#ffffff;
  --ink:#0f1627; --muted:#5d6a86; --stroke:#d8def2;

  --accent-start:#66e0ff;
  --accent-mid:#4cc8f2;
  --accent-end:#36a9e6;
  --accent-gradient: linear-gradient(180deg,
    var(--accent-start) 0%,
    var(--accent-mid) 50%,
    var(--accent-end) 100%);

  --accent: var(--accent-start);
  --accent-2: var(--accent-end);

  --btn-fg:#ffffff;
  --btn-ghost-fg: var(--ink);

  --shadow:0 12px 24px rgba(16,33,75,.08), inset 0 1px 0 rgba(255,255,255,.9);
}

/* ===== Buttons (solid + ghost) ===== */
.btn{
  display:inline-flex; align-items:center; gap:.6rem;
  background: var(--accent-gradient);
  color: var(--btn-fg);
  font-weight:700; border:none; border-radius:999px;
  padding:12px 18px; box-shadow:var(--shadow); cursor:pointer;
  transition: transform .08s ease, filter .2s ease, background .2s ease;
}
.btn:hover{ filter:brightness(1.06) }
.btn:active{ transform:translateY(1px) }
.btn:focus-visible{ outline:2px solid color-mix(in oklab, var(--accent-end) 60%, white 40%); outline-offset:2px; }

/* Ghost */
.btn.ghost{
  background: transparent;
  color: var(--btn-ghost-fg);
  border:1px solid var(--stroke);
  box-shadow:none;
}
.btn.ghost:hover{ background: color-mix(in oklab, var(--ink) 6%, transparent); }
.btn.ghost:active{ transform: translateY(1px); }

/* compact variant for inline CTAs */
.btn.compact{ padding:8px 12px; font-size:.95rem }

/* base */
*{box-sizing:border-box}
html,body{height:100%}
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 10% 0%, rgba(122,162,255,0.15), transparent 60%),
    radial-gradient(900px 700px at 95% 10%, rgba(99,216,255,0.12), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  scroll-behavior: smooth;
  overflow-x: hidden;
  padding-top: var(--header-h);
}
section, .hero, .features, footer { background: transparent; }
a{color:inherit; text-decoration:none}
.container{max-width:1100px; padding:0 20px; margin:auto;}
.card{background:var(--card); border:1px solid var(--stroke); border-radius:var(--radius); box-shadow:var(--shadow)}
.grid{display:grid; gap:18px}
.h1{font-size:clamp(32px,4vw,48px); line-height:1.1; letter-spacing:.2px}
.h2{font-size:clamp(22px,3vw,32px); line-height:1.2}
.muted{color:var(--muted)} .center{text-align:center}

/* header */
/* ===== App bar polish ===== */
header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  border: 0;
  background: transparent; /* we'll render the bar as its own surface */
}

/* The bar surface */
.nav{
  max-width: 1140px;
  margin: 8px auto;                /* pull off top edge a bit */
  padding: 8px 10px;               /* inner breathing room */
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--stroke) 85%, transparent);
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--bg) 86%, transparent) 0%,
      color-mix(in oklab, var(--bg) 92%, transparent) 100%);
  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 24px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px;                /* a bit shorter by default */
}

/* Compact on scroll */
.nav.shrink{
  min-height: 48px;
  margin-top: 4px;
  padding-block: 6px;
  border-radius: 12px;
  transition: min-height .18s ease, margin .18s ease, padding .18s ease, border-radius .18s ease;
}

/* Logo area */
.logo{ gap: 10px }
.logo-img{ height: 52px; border-radius: 10px }
.tag{ padding: 4px 8px; border:1px solid var(--stroke); border-radius: 999px; font-size:.8rem; opacity:.9 }

/* Right side */
.nav-actions{ display:flex; gap:10px; align-items:center }
.nav-actions .btn.ghost{ padding:8px 12px }
.nav-actions .btn{ height: 36px }

/* Account pill tweaks */
.account-btn{
  border-color: color-mix(in oklab, var(--stroke) 85%, transparent);
  padding: 6px 10px;
}
.account-avatar{ width: 22px; height: 22px }
.account-email{ font-size: .9rem; opacity:.9 }

/* Dropdown alignment + shadow */
.account-menu{
  top: calc(100% + 10px);
  box-shadow: 0 14px 44px rgba(0,0,0,.36);
}

/* Hover rings (subtle) */
.nav .btn:hover,
.account-btn:hover{
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 10%, transparent) inset;
}

/* Mobile: keep it airy */
@media (max-width: 640px){
  .nav{ margin: 6px 10px; border-radius: 12px; gap: 8px }
  .logo-img{ height: 44px }
  .nav-actions .btn.ghost{ padding:7px 10px }
  .nav-actions .btn{ height: 34px; padding:8px 12px }
  .account-email{ display:none } /* show avatar only on small screens */
}


/* spacing */
section{padding:56px 0}
.hero{padding:64px 0}
.hero-wrap{display:grid; gap:24px; grid-template-columns:1fr}
.hero .pill{display:inline-flex; gap:8px; align-items:center; padding:6px 10px; border:1px solid var(--stroke); border-radius:999px; font-size:.9rem; color:var(--muted)}
.hero-cta{display:flex; gap:10px; flex-wrap:wrap}

/* hero visual */
.hero-visual{
  min-height: 320px;
  background: radial-gradient(600px 300px at 80% -50%, rgba(122,162,255,.25), transparent 60%),
              linear-gradient(180deg, var(--bg-soft), color-mix(in oklab, var(--card) 85%, black 5%));
  border:1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.mini-editor{
  height: 100%; display: grid; grid-template-rows: auto 1fr;
  border-radius: 12px; overflow: hidden; border:1px solid var(--stroke);
  background: color-mix(in oklab, var(--card) 90%, black 6%);
  box-shadow: var(--shadow);
}
.mini-titlebar{
  display:flex; align-items:center; gap:8px; padding:8px 10px;
  background: color-mix(in oklab, var(--bg-soft) 70%, black 10%);
  border-bottom:1px solid var(--stroke);
}
.mini-title{ margin-left:auto; color:var(--muted); font-size:.85rem }
.dot{width:10px;height:10px;border-radius:50%;display:inline-block;opacity:.9}
.dot.red{background:#ff5f57}.dot.yellow{background:#febc2e}.dot.green{background:#28c840}

.mini-body{
  padding:14px; font:15px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color:var(--ink); position:relative; white-space:pre-wrap;
}

#heroType::after{
  content:"";
  display:inline-block;
  width:2px;
  height:1.1em;
  background:var(--ink);
  margin-left:2px;
  animation: blink 1s steps(1) infinite;
  vertical-align:-0.15em; /* keeps it aligned with text */
}
@keyframes blink { 50% { opacity: 0; } }


/* features / compare */
.features{grid-template-columns:repeat(3,1fr)}
.feature{padding:18px}
.compare table{width:100%; border-collapse:collapse; overflow:hidden; border-radius:12px}
.compare th,.compare td{border:1px solid var(--stroke); padding:12px}
.compare th{background:color-mix(in oklab, var(--card) 70%, black 10%)}
.check{color:var(--ok); font-weight:800} .x{color:#f57171; font-weight:800}

/* ===== Scoped pricing styles — polished card headers ===== */
#pricing.pricing{max-width:1050px;margin:0 auto;padding:56px 0 20px}

/* Center cards whether there are 1, 2, or 3 */
#pricing .plans{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:18px;
}

#pricing .plan{
  position:relative; overflow:hidden;
  background:var(--card); border:1px solid var(--stroke); border-radius:18px;
  padding:20px; display:flex; flex-direction:column; justify-content:space-between;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  flex:0 1 340px;                 /* pleasant width, wraps as needed */
  color:var(--ink);               /* ensure theme-aware text by default */
}
#pricing .plan.highlight{
  border-color:var(--accent);
  box-shadow:0 14px 44px rgba(118,167,255,.18);
}

/* Top section of the card */
#pricing .plan-top{
  display:grid; grid-template-columns:1fr auto; grid-auto-rows:min-content;
  row-gap:6px; column-gap:10px; align-items:center;
  padding:14px 16px 12px;
  margin:-20px -20px 14px;           /* stretch to edges */
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--bg-soft) 80%, transparent) 0%,
                             transparent 85%);
  border-bottom:1px solid var(--stroke);
}
#pricing .plan.highlight .plan-top{
  background:
    radial-gradient(800px 200px at 0 -40%, color-mix(in oklab, var(--accent) 22%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, color-mix(in oklab, var(--bg-soft) 85%, transparent) 0%, transparent 100%);
}

/* Eyebrow labels */
#pricing .pill{
  justify-self:start;
  display:inline-flex; gap:8px; align-items:center;
  padding:6px 10px; border:1px solid var(--stroke);
  border-radius:999px; font-size:.8rem; color:var(--muted);
}
#pricing .badge{
  justify-self:end;
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 8px; border-radius:10px; font-size:11px; font-weight:700;
  background:rgba(107,227,255,.14); border:1px solid rgba(107,227,255,.35);
}

/* Title + price block (theme-aware) */
#pricing .plan-title{grid-column:1 / -1; margin:2px 0 2px; font-size:18px; font-weight:700; color:var(--ink)}
#pricing .plan-price{
  grid-column:1 / -1;
  display:flex; align-items:baseline; gap:8px;
  margin-top:2px;
}
#pricing .plan-amount{font-size:44px; font-weight:900; letter-spacing:-.02em; color:var(--ink)}
#pricing .plan-unit{color:var(--muted)}
#pricing .sub{color:var(--muted); font-size:12px; margin-top:2px}

/* Body list */
#pricing .plan-points{margin:6px 0 18px; padding:0; list-style:none}
#pricing .plan-points li{display:flex; gap:8px; margin:10px 0; color:var(--ink)}
#pricing .plan-points li::before{content:"•"; color:var(--muted); transform:translateY(-1px)}

/* CTAs */
#pricing .cta{
  display:inline-flex; justify-content:center; align-items:center; width:100%;
  padding:12px 14px; border-radius:12px; border:1px solid var(--stroke);
  background:linear-gradient(180deg,#172340,#0f1a33);
  color:var(--btn-fg);              /* readable in both themes */
  font-weight:700; text-decoration:none
}
#pricing .cta:hover{filter:brightness(1.06)}
#pricing .cta-primary{
  border-color:transparent;
  background:linear-gradient(180deg,var(--accent),var(--accent-2));
  color:#041028;                    /* keep contrast on bright gradient */
}
#pricing .fine{margin-top:10px; color:var(--muted); font-size:12px; text-align:center}

/* Small visual cue around the highlight card */
#pricing .plan.highlight{
  box-shadow:0 14px 46px rgba(118,167,255,.22),
             inset 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent)
}

/* One column on narrow screens */
@media (max-width:900px){
  #pricing .plans{ justify-content:center }  /* keep centered */
  #pricing .plan{ flex-basis:100% }
}

/* misc */
.t-grid{grid-template-columns:repeat(3,1fr)} .t-card{padding:18px}
.faq .q{padding:14px 16px; border-bottom:1px solid var(--stroke); cursor:pointer}
.faq .a{padding:0 16px 14px; display:none}

#live-demo .card{padding:20px}
.demo-grid{display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:20px}
.demo-col{display:flex; flex-direction:column; gap:8px}
.demo-label{font-size:1rem; font-weight:600}
.demo-textarea,.demo-target{
  background:var(--bg-soft); border:1px solid var(--stroke); border-radius:12px;
  color:var(--ink); padding:12px; height:240px; resize:vertical;
  font:15px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.demo-target{overflow:auto; white-space:pre-wrap}
.demo-row{display:flex; align-items:center; gap:10px; justify-content:space-between}
.demo-count{color:var(--muted); font-size:.9rem}
.demo-controls{display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px}
.demo-ctrl{background:var(--bg-soft); border:1px solid var(--stroke); border-radius:10px; padding:12px; display:flex; flex-direction:column; gap:8px}
.demo-ctrl input[type="range"]{width:100%}
.demo-badge{font-size:.85rem; color:var(--muted)}
.flash { background:rgba(255,255,255,.08) }

footer{padding:40px 0; border-top:1px solid var(--stroke); color:var(--muted)}

@media (min-width: 980px){ .hero-wrap{ grid-template-columns: 1.05fr .95fr; } }
@media (max-width: 900px){
  .features{grid-template-columns:1fr}
  .pricing-grid{grid-template-columns:1fr}
  .t-grid{grid-template-columns:1fr}
  .demo-grid{grid-template-columns:1fr}
}

/* --- How it works / steps --- */
.howto .card { padding: 22px }
.steps-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top:16px;
}
.step-card{
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: 14px;
  padding:16px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.step-num{
  flex:0 0 auto;
  width:28px; height:28px; border-radius:50%;
  display:grid; place-items:center;
  font-weight:800;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color:#ffffff; box-shadow: var(--shadow);
}
.step-body h4{ margin:0 0 6px; font-size:1rem }
.step-body p{ margin:0; color:var(--muted); font-size:.92rem }
.howto-cta{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:18px }

.demo-textarea {
  resize: none;
  height: 150px; /* Optional fixed height */
}

.demo-target {
  resize: none;
  height: 150px;
  overflow-y: auto;
}


/* Auth modal */
.auth-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:2000}
.auth-modal.open{display:flex}
.auth-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(2px)}
.auth-dialog{
  position:relative; width:min(420px,92vw);
  background:var(--card); border:1px solid var(--stroke); border-radius:16px; padding:20px;
  box-shadow:0 18px 60px rgba(0,0,0,.45)
}
.auth-close{position:absolute;top:8px;right:10px;background:transparent;border:none;color:var(--muted);font-size:22px;cursor:pointer}
.auth-tabs{display:flex;gap:8px;margin:8px 0 12px}
.auth-tab{flex:1;border:1px solid var(--stroke);background:transparent;color:var(--ink);padding:8px 10px;border-radius:10px;cursor:pointer;font-weight:600}
.auth-tab.active{background:color-mix(in oklab,var(--bg-soft) 85%,transparent)}
.auth-field{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.auth-field input{
  background:var(--bg-soft); border:1px solid var(--stroke); border-radius:10px; padding:10px;
  color:var(--ink); font:16px/1.4 var(--font)
}
.auth-error{margin:6px 0 0;color:#ff8f8f;font-weight:600}
.auth-note{margin-top:10px;color:var(--muted);font-size:.9rem}



/* Header auth UI */
.auth-slot{position:relative; display:flex; align-items:center}
.account-wrap{position:relative}
.account-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px; border:1px solid var(--stroke);
  background:transparent; color:var(--ink); cursor:pointer;
}
.account-avatar{
  width:28px; height:28px; border-radius:50%;
  background:linear-gradient(180deg, var(--accent), var(--accent-2));
  display:inline-block;
}
.account-email{font-size:.92rem; opacity:.9}
.account-menu{
  position:absolute; right:0; top:calc(100% + 8px); min-width:240px; z-index:1500;
  background:var(--card); border:1px solid var(--stroke); border-radius:12px;
  box-shadow:var(--shadow); padding:8px; display:none;
}
.account-menu.open{display:block}
.account-menu .item{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 12px; border-radius:8px; cursor:pointer;
}
.account-menu .item:hover{background:color-mix(in oklab, var(--ink) 8%, transparent)}
.account-menu .muted{font-size:.86rem}
.account-divider{height:1px; background:var(--stroke); margin:8px 0}

/* Constrain modals + enable internal scrolling when tall */
.auth-dialog{
  width: min(520px, 92vw);            /* a little wider if you want */
  max-height: min(86vh, 720px);       /* cap height */
  overflow: auto;                     /* scroll the dialog when needed */
  overscroll-behavior: contain;       /* keep scroll from bubbling to page */
  scrollbar-gutter: stable;           /* avoids layout shift when scrollbar shows */
}



/* ----- Button loading state ----- */
.btn.loading,
.cta.loading {
  position: relative;
  opacity: 0.9;
}

.btn.loading::before,
.cta.loading::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: et-spin .8s linear infinite;
}

/* anchors don't support disabled; use aria-disabled */
.btn[aria-disabled="true"],
.cta[aria-disabled="true"] {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.6;
}

@keyframes et-spin {
  to { transform: rotate(360deg); }
}


/* Center the pricing cards regardless of how many are visible */
.pricing .plans{
  display: flex;           /* override any grid rules */
  flex-wrap: wrap;
  justify-content: center; /* <-- centers 1, 2, or 3 items */
  gap: 18px;               /* match your spacing */
}

/* Keep a nice card width; adjust to your taste */
.pricing .plan{
  flex: 0 1 340px;         /* fixed-ish width, shrinks on small screens */
  display: flex;
  flex-direction: column;  /* keeps card content vertical */
}

/* Full width on narrow screens */
@media (max-width: 720px){
  .pricing .plan{ flex-basis: 100%; }
}

/* Optional: visually disable a sold-out CTA (you already add this class) */
.cta.disabled{
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}


#pricing.pricing .plans{ display:flex !important; flex-wrap:wrap; justify-content:center; gap:18px; }
#pricing.pricing .plan{ flex:1 1 320px; max-width:360px; }

[hidden] { display: none !important; }


/* Lifetime left badge – base */
#lifetime-left{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.2px;
  background:linear-gradient(180deg,#1a2748,#0f1a33);
  color:var(--ink);
  border:1px solid var(--stroke);
}

/* Lifetime availability pill text color override */
#pricing #lifetime-left{
  color: #fff !important;   /* force white text */
  opacity: 1 !important;    /* cancel the global .sub opacity */
  font-weight: 800;         /* optional: bolder */
  letter-spacing: .2px;     /* optional: a bit crisper */
}


/* Low stock (<=10) */
#lifetime-left.low{
  color:#000000;
  background:linear-gradient(180deg,#ffc96b,#ff9f6b);
  border-color:transparent;
  box-shadow:0 8px 20px rgba(255,159,107,.35);
}
#lifetime-left.low::before{ content:""; }

/* Critical (<=3) — add pulse */
#lifetime-left.critical{
  color:#000000;
  background:linear-gradient(180deg,#ff8a8a,#ff5959);
  border-color:transparent;
  box-shadow:0 10px 26px rgba(255,89,89,.45);
  animation:lifetime-pulse 1.2s ease-in-out infinite;
}
#lifetime-left.critical::before{ content:""; }

@keyframes lifetime-pulse{
  0%,100%{ transform:scale(1); box-shadow:0 0 0 0 rgba(255,89,89,.45); }
  60%   { transform:scale(1.04); box-shadow:0 0 0 12px rgba(255,89,89,0); }
}

/* Light theme tweaks (optional) */
[data-theme="light"] #lifetime-left.low,
[data-theme="light"] #lifetime-left.critical{
  color:#08101e;
}





/* Footer layout */
.footer-wrap{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:10px;
}

/* Pill buttons */
.footer-links{ display:flex; flex-wrap:wrap; gap:8px }
.link-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: color-mix(in oklab, var(--bg-soft) 75%, transparent);
  color: var(--ink);
  font-weight:700;
  text-decoration:none;
  box-shadow: var(--shadow);
  transition: filter .15s ease, transform .06s ease, background .2s ease;
}
.link-pill:hover{ filter:brightness(1.06) }
.link-pill:active{ transform: translateY(1px) }
.link-pill:focus-visible{
  outline:2px solid color-mix(in oklab, var(--accent-end) 65%, white 35%);
  outline-offset:2px;
}

/* Nice subtle tweak for light theme */
[data-theme="light"] .link-pill{
  background: color-mix(in oklab, #ffffff 80%, var(--bg-soft) 20%);
}

/* Bigger gap before the footer on legal pages (Privacy / Terms) */
.legal-page .card:last-of-type{
  /* responsive bottom gutter under the main card */
  margin-bottom: clamp(64px, 10vw, 140px);
}

/* Optional: also give the footer a touch more top room on legal pages */
.legal-page .site-footer{
  margin-top: 24px;
  padding-top: 18px;
}





/* ---- Limited-time cosmetics ---- */
#pricing .plan.limited { position: relative; isolation: isolate; }
#pricing .plan.limited .plan-top { position: relative; }

/* pulsing gradient flag (right side of header) */
#pricing .lt-flag{
  justify-self:end;
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  font-size:12px; font-weight:800;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  color:#041028; box-shadow:0 0 0 2px color-mix(in oklab,var(--accent) 30%, transparent) inset,
                 0 10px 24px color-mix(in oklab,var(--accent) 30%, transparent);
  animation:lt-pulse 2.4s ease-in-out infinite;
}
#pricing .lt-flag.ending{ animation:lt-pulse-fast 0.9s ease-in-out infinite; }
#pricing .lt-flash{ text-transform:uppercase; letter-spacing:.03em; }
#pricing .lt-dot{ opacity:.55 }

/* animated glow behind the card */
#pricing .limited-glow{
  position:absolute; inset:-3px; border-radius:inherit; z-index:-1;
  background:conic-gradient(from 0deg at 50% 50%,
    color-mix(in oklab,var(--accent) 55%, transparent) 0%,
    transparent 18%,
    color-mix(in oklab,var(--accent-2) 55%, transparent) 42%,
    transparent 62%,
    color-mix(in oklab,var(--accent) 55%, transparent) 82%,
    transparent 100%);
  filter:blur(16px) saturate(1.15);
  animation:lt-spin 12s linear infinite;
}

/* stronger focus on limited card border/shadow */
#pricing .plan.highlight.limited{
  box-shadow:0 20px 60px rgba(118,167,255,.25),
             inset 0 0 0 1px color-mix(in oklab,var(--accent) 55%, transparent);
}

/* progress "left" pill text stays bright */
#pricing #lifetime-left{ color:#fff; font-weight:800; }

/* animations */
@keyframes lt-spin { to { transform:rotate(1turn); } }
@keyframes lt-pulse { 0%,100%{ transform:scale(1)} 50%{ transform:scale(1.03)} }
@keyframes lt-pulse-fast { 0%,100%{ transform:scale(1)} 50%{ transform:scale(1.06)} }

@media (max-width:900px){
  #pricing .lt-flag{ margin-top:4px; }
}



/* pill row: Limited Time (left) — Founders 200 (right) */
.plan .plan-top .plan-flags{
  display:flex;
  align-items:center;
  justify-content:space-between;   /* pushes ends apart */
  gap:8px;
  margin-bottom:8px;
}

/* keep existing visuals; just ensure they behave nicely in a row */
.plan .plan-top .lt-flag{ white-space:nowrap; }
.plan .plan-top .badge{ white-space:nowrap; }

/* optional: on very narrow screens, allow wrapping instead of squishing */
@media (max-width:480px){
  .plan .plan-top .plan-flags{
    flex-wrap:wrap;
    gap:6px;
  }
}


/* Items (solid background instead of transparent) */
.account-menu .item {
  display:flex; align-items:center; justify-content:space-between;
  width:100%;
  text-align:left;
  padding:10px 12px; border-radius:10px;
  background: var(--bg-soft);            /* was: transparent */
  border: 1px solid var(--stroke);       /* subtle outline */
  color: var(--ink); font-size:14px; line-height:1.2;
  cursor:pointer;
}

.account-menu .item:hover { background: var(--bg); }   /* slightly stronger fill */
.account-menu .item:active { transform: translateY(0.5px); }
.account-menu .item:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* keep the first (info) row neutral */
.account-menu .item:first-child {
  cursor: default; pointer-events:none;
  flex-direction: column; align-items:flex-start; gap:2px;
  padding:10px 12px 6px;
  background: var(--bg-elev);            /* match panel, not transparent */
  border: none;
}


/* Emphasize destructive action */
.account-menu .item.danger { color: #e35; }
.account-menu .item.danger:hover { background: rgba(227,53,53,.08); }


/* Legal checklist */
.legal-ack {
  margin-top: 10px;
  padding: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  display: grid;
  gap: 8px;
}
.legal-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.legal-left { display:flex; align-items:center; gap:8px; }
.legal-left input { width:18px; height:18px; }
.legal-btn { padding:6px 10px; font-size:12px; }

/* Extra space below the legal checklist on Create account */
#authForm[data-mode="signup"] .legal-ack {
  margin-bottom: 18px; /* 14–24px also looks nice */
}

/* (optional) tiny cushion even when the error is hidden */
#authSubmit { margin-top: 4px; }

/* Put in your CSS if you want anchors to always smooth-scroll */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.account-avatar{
  width:28px;height:28px;border-radius:50%;
  /* gradient blue background */
  background: var(--accent-mid);
  background: linear-gradient(135deg,
              var(--accent-start),
              var(--accent-mid) 55%,
              var(--accent-end));
  color:#fff;

  /* center + crisp type */
  display:inline-grid; place-items:center;
  font-family: "Plus Jakarta Sans","Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans";
  font-weight:800;
  font-size:13px;              /* a hair larger for legibility */
  letter-spacing:.2px;
  text-transform:uppercase;
  line-height:1;               /* avoids vertical wobble */
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;

  /* optional polish */
  box-shadow: 0 1px 2px rgba(0,0,0,.15) inset, 0 0 0 1px rgba(255,255,255,.15);
}


.loading-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.4);
  display:none; align-items:center; justify-content:center;
  z-index:9999; backdrop-filter:saturate(120%) blur(2px);
}
.loading-overlay.open{ display:flex; }
.loading-card{
  background:var(--bg); color:var(--ink); border:1px solid var(--stroke);
  border-radius:14px; padding:18px 20px; min-width:260px;
  display:flex; gap:12px; align-items:center; box-shadow:0 10px 30px rgba(0,0,0,.15);
}
.spinner{
  width:20px; height:20px; border-radius:50%;
  border:3px solid transparent; border-top-color:var(--ink);
  animation:spin .8s linear infinite;
}
.loading-text{ font-weight:600; }
@keyframes spin{ to{ transform:rotate(360deg) } }



/* ===== Typing Features ===== */
.f-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.f-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.f-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.f-card h3 {
  margin: 0;
  font-size: 1rem;
}
.f-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-2);
  flex: 0 0 22px;
}
.f-extras {
  padding: 12px;
  display: grid;
  gap: 8px;
}
.f-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 980px) {
  .f-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .f-grid { grid-template-columns: 1fr; }
}





/* ===== Promo Banner ===== */
.promo-wrap{
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 18px;
  align-items: center;
  border-radius: 14px;
  background:
    radial-gradient(1200px 400px at 0% 0%, rgba(95,220,255,.10), transparent 60%),
    radial-gradient(800px 300px at 100% 100%, rgba(47,163,228,.10), transparent 60%),
    var(--bg-soft, #0f162b);
  padding: 18px clamp(14px, 3vw, 28px);
  border: 1px solid var(--stroke);
  overflow: hidden;
}

.promo-badge{
  position: absolute;
  top: 10px; left: 10px;
  padding: 6px 10px;
  font: 700 12px/1 ui-sans-serif, system-ui, -apple-system;
  letter-spacing: .6px;
  color: #03141c;
  background: linear-gradient(180deg, #5fdcff, #2fa3e4);
  border-radius: 999px;
  box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.35));
  text-transform: uppercase;
}

.promo-badge {
  position: static;   /* no absolute positioning */
  align-self: flex-start;
  margin-bottom: 4px;
}

.promo-body{
  min-width: 0;
}
.promo-title{
  margin: 0;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ink);
}
.promo-sub{
  margin: 4px 0 0;
  color: var(--muted, #a9b8da);
  font-size: 14px;
}

.promo-code{
  justify-self: end;
  display: grid;
  gap: 6px;
  align-items: center;
  text-align: right;
}
.promo-label{
  color: var(--muted, #a9b8da);
  font-size: 12px;
}
.promo-kbd{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(95,220,255,.22), rgba(47,163,228,.14));
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .8px;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
  position: relative;
  overflow: hidden;
}
.promo-kbd::after{
  /* subtle shine pass */
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(110deg, transparent 45%, rgba(255,255,255,.25) 50%, transparent 55%);
  transform: translateX(-120%);
  animation: promoShine 3.5s ease-in-out infinite;
}

.promo-note{
  color: var(--muted, #a9b8da);
  font-size: 12px;
}

/* Soft animated glow behind */
.promo-glow{
  position: absolute; inset: -40%;
  background:
    radial-gradient(50% 50% at 20% 30%, rgba(95,220,255,.12), transparent 60%),
    radial-gradient(60% 60% at 80% 70%, rgba(47,163,228,.12), transparent 60%);
  filter: blur(10px);
  animation: promoFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}

/* ===== Animations ===== */
@keyframes promoSweep{
  0%   { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 200% 0, -200% 0, 360deg; }
}
@keyframes promoShine{
  0%   { transform: translateX(-120%); }
  40%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
@keyframes promoFloat{
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(2%, 1%, 0)  scale(1.03); }
}

/* Responsive: stack on small screens */
@media (max-width: 720px){
  .promo-wrap{ grid-template-columns: 1fr; text-align: left; }
  .promo-code{ justify-self: start; text-align: left; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .promo-banner, .promo-kbd::after, .promo-glow{ animation: none !important; }
}

.promo-wrap{
  /* existing styles… */
  margin: 10px 0 28px;   /* <-- adds clean gap below the promo */
}

.promo-body {
  display: flex;
  flex-direction: column;
  gap: 12px;  /* controls vertical spacing between all children */
}

.promo-timer {
  align-self: flex-start; /* keep the pill aligned left under text */
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(95,220,255,.12);
  border: 1px solid rgba(95,220,255,.35);
  font-weight: 600;
  color: #ecf2ff;
  white-space: nowrap;
}


.promo-code {
  justify-self: end;
  display: flex;              /* instead of grid */
  align-items: center;
  gap: 10px;                  /* spacing between label, code, and note */
  text-align: right;
  flex-wrap: wrap;            /* lets it wrap nicely on small screens */
}

.promo-label {
  color: var(--muted, #a9b8da);
  font-size: 12px;
}

.promo-note {
  color: var(--muted, #a9b8da);
  font-size: 12px;
  opacity: 0.85;              /* soften a bit so the pill stands out */
}




.dev-badge {
  font: inherit;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity .2s, transform .08s ease;
}
.dev-badge:hover { opacity: 1; }
.dev-badge:active { transform: translateY(1px); }

/* Optional: color hint by env */
.dev-badge[data-env="live"]  { box-shadow: inset 0 0 0 999px rgba(0,160,0,.06); }
.dev-badge[data-env="test"]  { box-shadow: inset 0 0 0 999px rgba(160,0,0,.06); }



/* Theme-aware overlay (scrim) */
:root{
  --scrim: rgba(0,0,0,.55);
}
html[data-theme="light"]{ --scrim: rgba(0,0,0,.35); } /* lighter overlay on light theme */
html[data-theme="dark"] { --scrim: rgba(0,0,0,.65); } /* a touch darker on dark theme */

/* Popup */
.ext-popup{
  position: fixed; inset: 0;
  background: var(--scrim);         /* uses theme var */
  display: none; place-items: center;
  z-index: 9999;
}
.ext-popup[aria-hidden="false"]{ display: grid; }

/* Dialog uses your tokens */
.ext-dialog{
  position: relative;
  background: var(--card);          /* instead of hard-coded #111a33 */
  color: var(--ink);                /* text color from theme */
  border: 1px solid var(--stroke);  /* matches site cards */
  border-radius: 14px;
  padding: 24px;
  max-width: 360px; width: 90%;
  box-shadow: var(--shadow, 0 10px 40px rgba(0,0,0,.5));
  text-align: center;
}

/* Buttons/controls also theme-aware */
.ext-close{
  position: absolute; top:10px; right:16px;
  background: none; border: none; cursor: pointer;
  color: var(--ink); font-size: 22px; line-height: 1;
  opacity: .8;
}
.ext-close:hover{ opacity:1; }

.ext-btn{
  display: inline-block;
  margin-top: 16px; padding: 10px 16px;
  border-radius: 10px; font-weight: 700; text-decoration: none;
  color: #03141c;
  background: linear-gradient(180deg, var(--accent-start), var(--accent-end));
  border: 1px solid rgba(255,255,255,.08);
}
