/* /assets/css/site.css — ClearComplaint (v2)
   Unified with the newer generator-style visual system.
   Includes:
   - Dark/light theme support
   - Generator-style global page background
   - Shared hero system aligned to generator hero treatment
   - Existing class compatibility preserved
   - No intended feature loss

   Header compatibility:
   Preferred:
     <header class="cc-header" id="top"> ... </header>
   Also supported:
     <header id="top"> ... </header>

   New recommended reusable hero class:
     <section class="card edge section heroCard">...</section>

   Optional richer variant later if needed:
     heroCardMarketing
*/

/* -----------------------------
   Design tokens (default DARK)
------------------------------ */
:root{
  --accent:#6d28d9;
  --accent2:#4c1d95;
  --accent3:#8b5cf6;
  --accentSoft:rgba(109,40,217,.16);
  --accentSoft2:rgba(124,58,237,.12);

  --bg:#0b0f17;
  --panel:#111827;
  --panel2:#0f172a;
  --panel3:#0c1321;

  --bgGlow1:rgba(109,40,217,.16);
  --bgGlow2:rgba(76,29,149,.12);
  --bgGlow3:rgba(139,92,246,.05);

  --text:#e5e7eb;
  --muted:#9ca3af;
  --muted2:#cbd5e1;

  --line:rgba(255,255,255,.10);
  --lineStrong:rgba(255,255,255,.16);

  --btn:#6d28d9;
  --btnHover:#4c1d95;
  --btnText:#ffffff;

  --success:#22c55e;
  --warning:#f59e0b;
  --danger:#ef4444;

  --shadow:0 12px 40px rgba(0,0,0,.45);
  --shadowSoft:0 10px 30px rgba(0,0,0,.28);
  --shadowLift:0 18px 48px rgba(0,0,0,.42);

  --radius:16px;
  --radius2:22px;
  --radius3:32px;

  --max:1120px;
  --narrow:860px;

  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* -----------------------------
   Theme: LIGHT
------------------------------ */
[data-theme="light"]{
  --bg:#f6f7fb;
  --panel:#ffffff;
  --panel2:#ffffff;
  --panel3:#f8fafc;

  --bgGlow1:rgba(109,40,217,.08);
  --bgGlow2:rgba(76,29,149,.05);
  --bgGlow3:rgba(139,92,246,.03);

  --text:#0b1220;
  --muted:#475569;
  --muted2:#334155;

  --line:rgba(15,23,42,.12);
  --lineStrong:rgba(15,23,42,.18);

  --btn:#6d28d9;
  --btnHover:#4c1d95;
  --btnText:#ffffff;

  --success:#15803d;
  --warning:#b45309;
  --danger:#b91c1c;

  --shadow:0 10px 30px rgba(15,23,42,.10);
  --shadowSoft:0 8px 24px rgba(15,23,42,.08);
  --shadowLift:0 16px 36px rgba(15,23,42,.14);

  --accentSoft:rgba(109,40,217,.12);
  --accentSoft2:rgba(124,58,237,.09);
}

/* -----------------------------
   Reset / base
------------------------------ */
*{ box-sizing:border-box; }
html,body{ height:100%; }

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:var(--sans);
  color:var(--text);
  background-color:var(--bg);
  background-image:
    radial-gradient(1400px 820px at 12% -10%, var(--bgGlow1), transparent 60%),
    radial-gradient(1100px 680px at 88% 0%, var(--bgGlow2), transparent 56%),
    radial-gradient(1000px 520px at 50% 0%, var(--bgGlow3), transparent 62%);
  background-repeat:no-repeat;
  background-attachment:scroll;
  line-height:1.45;
  position:relative;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body::before{
  content:none;
}

a{ color:inherit; }

a:focus{
  outline:2px solid rgba(109,40,217,.6);
  outline-offset:3px;
  border-radius:10px;
}

img{
  max-width:100%;
  height:auto;
}

button,
input,
textarea,
select{
  font:inherit;
}

/* -----------------------------
   Layout containers
------------------------------ */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:22px 18px 56px;
}

.narrow{
  max-width:var(--narrow);
  margin:0 auto;
}

/* -----------------------------
   Sticky header (shared)
------------------------------ */
.cc-header,
header#top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  position:sticky;
  top:0;
  z-index:1000;

  background:linear-gradient(
    to bottom,
    color-mix(in srgb, var(--bg) 92%, transparent),
    color-mix(in srgb, var(--bg) 70%, transparent)
  );
  backdrop-filter:blur(10px);

  padding:12px 18px;
  border-bottom:1px solid var(--line);
}

/* Homepage brand block */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:-.02em;
}

.logo{
  width:34px;
  height:34px;
  border-radius:10px;
  background:linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 50%, transparent),
    color-mix(in srgb, var(--accent2) 45%, transparent)
  );
  border:1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  display:grid;
  place-items:center;
  box-shadow:var(--shadowSoft);
  font-weight:800;
  color:#fff;
}

/* Universal brand block */
.cc-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:-.02em;
  text-decoration:none;
}

.cc-logo{
  width:34px;
  height:34px;
  border-radius:10px;
  background:linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 50%, transparent),
    color-mix(in srgb, var(--accent2) 45%, transparent)
  );
  border:1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  display:grid;
  place-items:center;
  box-shadow:var(--shadowSoft);
  font-weight:800;
  color:#fff;
}

.cc-brandMeta{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

/* Nav */
nav,
.cc-nav{
  display:flex;
  gap:12px;
  align-items:center;
  color:var(--muted);
  font-size:14px;
}

nav a,
.cc-nav a{
  opacity:.92;
  text-decoration:none;
  font-weight:600;
}

nav a:hover,
.cc-nav a:hover{
  opacity:1;
  color:var(--text);
  text-decoration:none;
}

@media (max-width:740px){
  nav a,
  .cc-nav a{ display:none; }
}

/* Toggle */
.toggle,
.cc-toggle{
  border:1px solid var(--line);
  background:color-mix(in srgb, var(--panel2) 84%, transparent);
  color:var(--text);
  border-radius:999px;
  padding:8px 10px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  box-shadow:none;
}

.dot{
  width:12px;
  height:12px;
  border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 0 4px var(--accentSoft);
}

.toggleText{
  font-size:13px;
  color:var(--muted);
}

/* -----------------------------
   Buttons
------------------------------ */
.btn{
  border:1px solid transparent;
  border-radius:16px;
  padding:11px 16px;
  background:var(--btn);
  color:var(--btnText);
  font-weight:700;
  cursor:pointer;
  box-shadow:none;
  transition:
    transform .08s ease,
    opacity .08s ease,
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
  display:inline-flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
  text-decoration:none;
}

.btn:hover{
  background:var(--btnHover);
  color:var(--btnText);
}

.btn:active{
  transform:translateY(1px);
}

.btn.secondary{
  background:var(--panel2);
  color:var(--text);
  border:1px solid var(--line);
  box-shadow:none;
}

.btn.secondary:hover{
  background:color-mix(in srgb, var(--panel2) 88%, white 3%);
  border-color:var(--lineStrong);
  color:var(--text);
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.btn:focus-visible{
  outline:3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset:3px;
}

/* -----------------------------
   Cards / sections / typography
------------------------------ */
.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius2);
  padding:22px;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}

.card.edge::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:radial-gradient(700px 260px at 18% 0%, rgba(109,40,217,.18), transparent 60%);
  pointer-events:none;
}

.card.edge > *{
  position:relative;
}

.section{
  margin-top:16px;
}

.section h2{
  font-size:18px;
  margin:0 0 10px 0;
  letter-spacing:-.01em;
}

h1{
  margin:0 0 10px 0;
  font-size:clamp(30px, 4.2vw, 46px);
  line-height:1.05;
  letter-spacing:-.6px;
}

.sub{
  color:var(--muted);
  font-size:16px;
  margin:0 0 14px 0;
  max-width:90ch;
}

.fine{
  color:var(--muted);
  font-size:13px;
}

.esc_txt{
  color:var(--muted);
  font-size:16px;
}

/* Pills */
.pillRow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

.pill{
  font-size:13px;
  border:1px solid var(--line);
  padding:8px 10px;
  border-radius:999px;
  background:color-mix(in srgb, var(--panel2) 78%, transparent);
  color:var(--text);
}

/* CTA row */
.ctaRow{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:14px;
}

/* Steps */
.steps{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:12px;
}

@media (max-width:860px){
  .steps{ grid-template-columns:1fr; }
}

.step{
  background:color-mix(in srgb, var(--panel2) 86%, transparent);
  border:1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius:var(--radius);
  padding:16px;
}

.step b{
  display:block;
  margin-bottom:6px;
}

/* Grids */
.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

@media (max-width:640px){
  .grid2{ grid-template-columns:1fr; }
}

/* -----------------------------
   Reusable hero card aligned to generator
   Recommended usage:
   <section class="card edge section heroCard">...</section>
------------------------------ */
.card.edge.heroCard{
  background:
    linear-gradient(135deg, #31224a 0%, #4c1d95 100%) !important;
  border:1px solid rgba(145,103,255,.22);
  box-shadow:
    0 18px 44px rgba(0,0,0,.32),
    0 0 16px rgba(109,40,217,.12);
  color:#ffffff;
  position:relative;
  overflow:hidden;
  border-radius:var(--radius3);
}

.card.edge.heroCard::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(620px 300px at 14% 0%, rgba(168,85,247,.22), transparent 60%);
  pointer-events:none;
}

.card.edge.heroCard > *{
  position:relative;
  z-index:1;
}

.card.edge.heroCard h1,
.card.edge.heroCard h2,
.card.edge.heroCard h3{
  color:#ffffff;
}

.card.edge.heroCard .sub,
.card.edge.heroCard .fine,
.card.edge.heroCard .esc_txt,
.card.edge.heroCard .heroEyebrow{
  color:rgba(255,255,255,.78);
}

.card.edge.heroCard .pill{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  color:#ffffff;
}

.card.edge.heroCard .btn.secondary{
  color:#ffffff;
  border-color:rgba(255,255,255,.22);
  background:rgba(255,255,255,.08);
}

.card.edge.heroCard .btn.secondary:hover{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.30);
}

/* Search card inside hero */
.card.edge.heroCard .heroSearchCard{
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)),
    rgba(12,16,29,.28);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:
    0 12px 30px rgba(0,0,0,.24),
    0 0 18px rgba(145,103,255,.10);
  border-radius:24px;
}

.card.edge.heroCard .heroSearchCard::before{
  background:
    radial-gradient(circle at top right, rgba(168,85,247,.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255,255,255,.06), transparent 30%);
}

.card.edge.heroCard .heroSearchHeading,
.card.edge.heroCard .tileKicker,
.card.edge.heroCard label{
  color:#ffffff;
}

.card.edge.heroCard .homeSearchInput{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  color:#ffffff;
}

.card.edge.heroCard .homeSearchInput::placeholder{
  color:rgba(255,255,255,.62);
}

.card.edge.heroCard .homeSearchInput:hover{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.24);
}

.card.edge.heroCard .homeSearchInput:focus{
  border-color:rgba(255,255,255,.34);
  box-shadow:
    0 0 0 4px rgba(168,85,247,.18),
    0 14px 34px rgba(0,0,0,.18);
  background:rgba(255,255,255,.14);
}

.card.edge.heroCard .homeSearchIcon{
  color:rgba(255,255,255,.78);
}

/* Optional alias if legacy homepage selector still exists */
.card.edge[aria-label="Homepage hero"]{
  background:
    linear-gradient(135deg, #31224a 0%, #4c1d95 100%) !important;
  border:1px solid rgba(145,103,255,.22);
  box-shadow:
    0 18px 44px rgba(0,0,0,.32),
    0 0 16px rgba(109,40,217,.12);
  color:#ffffff;
  position:relative;
  overflow:hidden;
  border-radius:var(--radius3);
}

.card.edge[aria-label="Homepage hero"]::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(620px 300px at 14% 0%, rgba(168,85,247,.22), transparent 60%);
  pointer-events:none;
}

.card.edge[aria-label="Homepage hero"] > *{
  position:relative;
  z-index:1;
}

.card.edge[aria-label="Homepage hero"] h1,
.card.edge[aria-label="Homepage hero"] h2,
.card.edge[aria-label="Homepage hero"] h3{
  color:#ffffff;
}

.card.edge[aria-label="Homepage hero"] .sub{
  color:rgba(255,255,255,.78);
}

.card.edge[aria-label="Homepage hero"] .fine,
.card.edge[aria-label="Homepage hero"] .heroEyebrow{
  color:rgba(255,255,255,.72);
}

.card.edge[aria-label="Homepage hero"] .pill{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  color:#ffffff;
}

.card.edge[aria-label="Homepage hero"] .btn.secondary{
  color:#ffffff;
  border-color:rgba(255,255,255,.22);
  background:rgba(255,255,255,.08);
}

.card.edge[aria-label="Homepage hero"] .btn.secondary:hover{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.30);
}

.card.edge[aria-label="Homepage hero"] .heroSearchCard{
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)),
    rgba(12,16,29,.28);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:
    0 12px 30px rgba(0,0,0,.24),
    0 0 18px rgba(145,103,255,.10);
  border-radius:24px;
}

.card.edge[aria-label="Homepage hero"] .heroSearchCard::before{
  background:
    radial-gradient(circle at top right, rgba(168,85,247,.14), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255,255,255,.06), transparent 30%);
}

.card.edge[aria-label="Homepage hero"] .heroSearchHeading,
.card.edge[aria-label="Homepage hero"] .tileKicker,
.card.edge[aria-label="Homepage hero"] label{
  color:#ffffff;
}

.card.edge[aria-label="Homepage hero"] .homeSearchInput{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  color:#ffffff;
}

.card.edge[aria-label="Homepage hero"] .homeSearchInput::placeholder{
  color:rgba(255,255,255,.62);
}

.card.edge[aria-label="Homepage hero"] .homeSearchInput:hover{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.24);
}

.card.edge[aria-label="Homepage hero"] .homeSearchInput:focus{
  border-color:rgba(255,255,255,.34);
  box-shadow:
    0 0 0 4px rgba(168,85,247,.18),
    0 14px 34px rgba(0,0,0,.18);
  background:rgba(255,255,255,.14);
}

.card.edge[aria-label="Homepage hero"] .homeSearchIcon{
  color:rgba(255,255,255,.78);
}

/* -----------------------------
   Hub list rows
------------------------------ */
.list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}

.linkRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:color-mix(in srgb, var(--panel2) 72%, transparent);
  text-decoration:none;
  transition:
    border-color .12s ease,
    transform .08s ease,
    background .12s ease;
}

.linkRow:hover{
  border-color:color-mix(in srgb, var(--accent) 55%, transparent);
  background:color-mix(in srgb, var(--panel2) 84%, transparent);
  transform:translateY(-1px);
}

.linkRowLeft{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.linkRowName{
  font-weight:700;
}

.linkRowHint{
  font-size:13px;
  color:var(--muted);
}

.arrow{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background:var(--accentSoft);
  flex:0 0 auto;
  font-weight:800;
}

/* Brand grids */
.brandGrid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}

@media (max-width:900px){
  .brandGrid{ grid-template-columns:repeat(2, 1fr); }
}

@media (max-width:520px){
  .brandGrid{ grid-template-columns:1fr; }
}

.brandItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  background:color-mix(in srgb, var(--panel2) 72%, transparent);
  border:1px solid var(--line);
  text-decoration:none;
  transition:border-color .12s ease, background .12s ease;
}

.brandItem:hover{
  border-color:color-mix(in srgb, var(--accent) 45%, transparent);
  background:color-mix(in srgb, var(--panel2) 84%, transparent);
}

.brandItem b{
  font-size:14px;
}

.brandItem span{
  font-size:13px;
  color:var(--muted);
}

/* -----------------------------
   Forms
------------------------------ */
label{
  display:block;
  font-size:13px;
  margin:0 0 6px 2px;
  font-weight:600;
}

input, textarea, select{
  width:100%;
  background:var(--panel2);
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 12px;
  color:var(--text);
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input::placeholder,
textarea::placeholder{
  color:var(--muted);
}

textarea{
  min-height:132px;
  resize:vertical;
}

input:focus, textarea:focus, select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(109,40,217,.25);
}

input:hover,
textarea:hover,
select:hover{
  border-color:color-mix(in srgb, var(--accent) 28%, var(--line));
}

/* -----------------------------
   Preview blocks
------------------------------ */
.preview{
  background:color-mix(in srgb, var(--panel2) 84%, transparent);
  border:1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius:var(--radius2);
  padding:18px;
  box-shadow:var(--shadow);
}

.previewTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.tag{
  font-size:12px;
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  background:color-mix(in srgb, var(--panel2) 78%, transparent);
  white-space:nowrap;
}

.letter{
  white-space:pre-wrap;
  font-size:14px;
  line-height:1.55;
  border-radius:14px;
  padding:14px;
  border:1px solid var(--line);
  background:color-mix(in srgb, var(--panel3) 84%, transparent);
  color:var(--text);
}

.locked{
  position:relative;
}

.locked::after{
  content:"";
  position:absolute;
  inset:0;
  backdrop-filter:blur(4px);
  background:color-mix(in srgb, var(--bg) 50%, transparent);
  border-radius:14px;
  pointer-events:none;
}

.lockOverlay{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:16px;
  text-align:center;
  z-index:2;
}

.lockBox{
  max-width:420px;
  border:1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background:color-mix(in srgb, var(--panel) 82%, transparent);
  border-radius:16px;
  padding:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.22);
}

.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  margin-top:10px;
}

/* -----------------------------
   Toast
------------------------------ */
.toast{
  position:fixed;
  left:50%;
  top:40%;
  transform:translateX(-50%);
  background:color-mix(in srgb, var(--panel) 82%, transparent);
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius:999px;
  font-size:13px;
  color:var(--text);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
  z-index:2000;
  box-shadow:var(--shadow);
}

.toast.show{
  opacity:1;
}

/* -----------------------------
   Footer
------------------------------ */
footer{
  margin-top:28px;
  color:var(--muted);
  font-size:13px;
  border-top:1px solid var(--line);
  padding-top:16px;
}

.mutedLink{
  color:var(--muted);
  text-decoration:none;
}

.mutedLink:hover{
  color:var(--text);
  text-decoration:none;
}

/* -----------------------------
   Tone selector
------------------------------ */
.tone{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

@media (max-width:640px){
  .tone{ grid-template-columns:1fr; }
}

.tone button{
  border-radius:14px;
  padding:11px 12px;
  border:1px solid var(--line);
  background:color-mix(in srgb, var(--panel2) 78%, transparent);
  color:var(--text);
  cursor:pointer;
  text-align:left;
  transition:border-color .15s ease, background .15s ease;
}

.tone button:hover{
  border-color:color-mix(in srgb, var(--accent) 45%, transparent);
}

.tone button.active{
  border-color:color-mix(in srgb, var(--accent) 75%, transparent);
  background:color-mix(in srgb, var(--accentSoft) 65%, transparent);
}

/* -----------------------------
   Shared links Social
------------------------------ */
.sharePz{
  padding:10px 12px;
}

.sharePzTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.sharePzLeft{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:140px;
}

.sharePzKicker{
  font-weight:800;
  line-height:1.1;
  letter-spacing:.2px;
}

.sharePzSub{
  margin-top:2px;
  opacity:.78;
}

.sharePzRight{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px;
}

.sharePz .btn{
  padding:7px 10px;
  border-radius:999px;
  font-size:14px;
  line-height:1;
  box-shadow:none;
}

.sharePz .shareIco{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:6px;
  opacity:.9;
}

.sharePz .shareIco svg{
  width:14px;
  height:14px;
}

.sharePz [data-share-status]{
  margin-top:6px !important;
  min-height:14px;
}

.sharePzPanel{
  margin-top:8px;
  padding-top:8px;
  border-top:1px dashed rgba(0,0,0,.12);
}

[data-theme="dark"] .sharePzPanel{
  border-top-color:rgba(255,255,255,.10);
}

.sharePzGrid{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.sharePzPill{
  padding:7px 9px;
}

@media (max-width:720px){
  .sharePzTop{
    flex-direction:column;
    align-items:stretch;
  }

  .sharePzRight{
    justify-content:flex-start;
  }
}

/* -----------------------------
   HERO CTA sizing
------------------------------ */
.card.edge .ctaRow .btn{
  padding:15px 22px;
  font-size:16px;
  line-height:1.1;
}

.card.edge .ctaRow .btn.secondary{
  padding:12px 18px;
  font-size:14px;
  opacity:.94;
}

.card.edge .ctaRow .btn:not(.secondary):hover{
  transform:translateY(-1px);
}

.card.edge .ctaRow .btn:not(.secondary):active{
  transform:translateY(1px);
}

.card.edge .ctaRow .btn:focus-visible{
  outline:3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset:3px;
}

@media (max-width:520px){
  .card.edge .ctaRow{
    gap:10px;
  }

  .card.edge .ctaRow .btn{
    width:100%;
    justify-content:center;
  }
}

/* -----------------------------
   Homepage how-it-works forced 4-up desktop
------------------------------ */
#how .steps.homeSteps{
  display:grid !important;
  grid-template-columns:repeat(4, 1fr) !important;
  gap:10px !important;
  align-items:stretch;
}

#how .steps.homeSteps > *{
  min-width:0 !important;
}

#how .stepCard{
  border:1px solid rgba(145,103,255,.38) !important;
  padding:14px !important;
  background:color-mix(in srgb, var(--panel2) 82%, transparent);
  border-radius:var(--radius) !important;
  box-shadow:none;
}

#how .stepNumber{
  width:36px;
  height:36px;
  border-radius:50% !important;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:14px;
  line-height:1;
  background:rgba(145,103,255,.18);
  border:1px solid rgba(145,103,255,.45);
  margin-bottom:10px;
  flex:0 0 36px;
}

#how .stepCard .tileTitle{
  margin:0 0 6px !important;
  font-size:16px !important;
  line-height:1.2 !important;
  color:color-mix(in srgb, var(--text) 90%, transparent);
}

#how .stepCard .tileDesc{
  margin:0 !important;
  font-size:13px !important;
  line-height:1.45 !important;
}

@media (max-width:760px){
  #how .steps.homeSteps{
    grid-template-columns:repeat(2, 1fr) !important;
  }
}

@media (max-width:640px){
  #how .steps.homeSteps{
    grid-template-columns:1fr !important;
  }
}

/* -----------------------------
   Purple hero helper alias
------------------------------ */
.heroPurple{
  background:
    linear-gradient(135deg, #31224a 0%, #4c1d95 100%) !important;
  border:1px solid rgba(145,103,255,.22);
  box-shadow:
    0 18px 44px rgba(0,0,0,.32),
    0 0 16px rgba(109,40,217,.12);
  border-radius:var(--radius3);
}

.heroPurple::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(620px 300px at 14% 0%, rgba(168,85,247,.22), transparent 60%);
  pointer-events:none;
}

.heroPurple > *{
  position:relative;
  z-index:1;
}

/* Lucide sparkles icon */
.card.edge .lucide-sparkles{
  stroke:#ffffff;
}

/* -----------------------------
   Minor shared polish helpers
------------------------------ */
hr{
  border:0;
  border-top:1px solid var(--line);
  margin:20px 0;
}

table{
  width:100%;
  border-collapse:collapse;
}

th, td{
  border-bottom:1px solid var(--line);
  padding:10px 8px;
  text-align:left;
}

code, pre{
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* -----------------------------
   Narrow-screen spacing refinement
------------------------------ */
@media (max-width:640px){
  .wrap{
    padding:18px 14px 42px;
  }

  .card{
    padding:18px;
    border-radius:18px;
  }

  .heroPurple,
  .card.edge.heroCard,
  .card.edge[aria-label="Homepage hero"]{
    border-radius:24px;
  }
}

.arrow svg{
  width:16px;
  height:16px;
}