/* EasyFade — shared design system
   ------------------------------------------------------------------ */

:root{
  --bg:#0b0d12;
  --surface:#12151c;
  --surface2:#1a1e27;
  --surface3:#222736;
  --line:#262b36;
  --line2:#333a49;
  --text:#e9ecf3;
  --dim:#98a1b2;
  --faint:#6b7484;
  --accent:#7c5cff;
  --accent-dim:#6247d6;
  --accent2:#00d1b2;
  --warn:#ffb020;
  --r:12px;
  --maxw:1140px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--text);
  font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
img{max-width:100%}

h1,h2,h3,h4{margin:0 0 .5em;line-height:1.2;letter-spacing:-.021em;font-weight:700}
h1{font-size:clamp(30px,5vw,50px)}
h2{font-size:clamp(23px,3.2vw,33px)}
h3{font-size:19px}
p{margin:0 0 1em}
.lead{font-size:clamp(16px,2vw,19px);color:var(--dim);line-height:1.55}
.dim{color:var(--dim)}
.faint{color:var(--faint)}
.center{text-align:center}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}
.narrow{max-width:760px;margin:0 auto;padding:0 22px}
section{padding:70px 0}
hr.rule{border:0;border-top:1px solid var(--line);margin:0}

/* ---------- nav ---------- */
.nav{
  position:sticky;top:0;z-index:50;background:rgba(11,13,18,.86);
  backdrop-filter:saturate(150%) blur(12px);border-bottom:1px solid var(--line);
}
.nav .inner{max-width:var(--maxw);margin:0 auto;padding:0 22px;height:60px;display:flex;align-items:center;gap:22px}
.brand{display:flex;align-items:center;gap:9px;font-weight:700;font-size:16.5px;text-decoration:none;letter-spacing:-.02em}

/* The mark: colour dissolving to expose the transparency checkerboard, which is
   the one symbol every designer already reads as "nothing is there". */
.brand .mark{
  width:22px;height:22px;border-radius:6px;flex:0 0 auto;position:relative;overflow:hidden;
  background:
    conic-gradient(#3a4252 0 25%, #2a2f3a 0 50%, #3a4252 0 75%, #2a2f3a 0) 0 0 / 7px 7px;
  border:1px solid #33384a;
}
.brand .mark::after{
  content:"";position:absolute;inset:0;background:#8f6dff;
  -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 30%,rgba(0,0,0,.62) 60%,rgba(0,0,0,.2) 82%,transparent 100%);
          mask-image:linear-gradient(90deg,#000 0%,#000 30%,rgba(0,0,0,.62) 60%,rgba(0,0,0,.2) 82%,transparent 100%);
}
/* The wordmark fades out as you read it. Solid fallback first, so the name is
   never invisible if background-clip:text is unsupported. */
.brand .wm{color:var(--text)}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  /* The tail is floored around 60%. Any lighter and the final "e" stops being
     readable against the dark nav, and a logo you cannot read is not a logo. */
  .brand .wm{
    background:linear-gradient(96deg,#fff 0%,#fff 46%,#efeaff 66%,rgba(200,183,255,.92) 84%,rgba(174,150,255,.6) 100%);
    -webkit-background-clip:text;background-clip:text;color:transparent;
  }
}
/* footer.site a{display:block} is more specific than .brand{display:flex}, so the
   footer lockup silently stopped being a flex row. The old flat mark hid it; the
   checkerboard one does not. Put the row back explicitly. */
footer.site a.brand{display:flex}
footer.site .brand .wm{
  background:linear-gradient(96deg,#e9ecf3 0%,#e9ecf3 46%,#d5cdf7 68%,rgba(178,158,240,.8) 86%,rgba(160,138,235,.55) 100%);
  -webkit-background-clip:text;background-clip:text;
}
.nav nav{display:flex;gap:20px;margin-left:8px}
.nav nav a{color:var(--dim);text-decoration:none;font-size:14px}
.nav nav a:hover,.nav nav a[aria-current]{color:var(--text)}
.nav .sp{flex:1}
.nav .right{display:flex;align-items:center;gap:10px}
@media(max-width:720px){ .nav nav{display:none} }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  border:1px solid transparent;border-radius:9px;padding:10px 17px;
  font-size:14px;font-weight:600;cursor:pointer;text-decoration:none;
  background:var(--accent);color:#fff;transition:filter .15s,border-color .15s,background .15s;
  font-family:inherit;
}
.btn:hover{filter:brightness(1.1)}
.btn:disabled{opacity:.45;cursor:not-allowed;filter:none}
.btn.ghost{background:transparent;border-color:var(--line2);color:var(--dim)}
.btn.ghost:hover{color:var(--text);border-color:#454d61;filter:none}
.btn.quiet{background:var(--surface2);border-color:var(--line);color:var(--text)}
.btn.sm{padding:7px 12px;font-size:13px;border-radius:8px}
.btn.lg{padding:14px 26px;font-size:15.5px;border-radius:10px}
.btn.block{width:100%}
.btn.danger{background:transparent;border-color:#5a2a2a;color:#e8807f}
.btn.danger:hover{background:#2a1616;filter:none}

/* ---------- cards / forms ---------- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:22px}
.field{margin-bottom:14px}
.field label{display:block;font-size:13px;color:var(--dim);margin-bottom:6px;font-weight:500}
input[type=text],input[type=email],input[type=password],select,textarea{
  width:100%;background:var(--surface2);border:1px solid var(--line);color:var(--text);
  padding:10px 12px;border-radius:9px;font-size:14.5px;font-family:inherit;outline:none;
}
input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(124,92,255,.16)}
input::placeholder{color:#5c6474}
.hint{font-size:12.5px;color:var(--faint);margin-top:6px}
.note{
  background:rgba(255,176,32,.08);border:1px solid rgba(255,176,32,.3);color:#ffcf7a;
  padding:11px 13px;border-radius:9px;font-size:13px;margin:14px 0;
}
.note.ok{background:rgba(0,209,178,.08);border-color:rgba(0,209,178,.32);color:#7fe8d8}
.note.err{background:rgba(255,90,90,.08);border-color:rgba(255,90,90,.32);color:#ff9d9d}
.badge{
  display:inline-block;padding:3px 9px;border-radius:999px;font-size:11.5px;font-weight:600;
  background:rgba(124,92,255,.16);color:#b8a5ff;border:1px solid rgba(124,92,255,.35);
}
.badge.teal{background:rgba(0,209,178,.13);color:#7fe8d8;border-color:rgba(0,209,178,.34)}

/* ---------- auth pages ---------- */
.auth-page{min-height:100vh;display:flex;flex-direction:column}
.auth-body{flex:1;display:flex;align-items:center;justify-content:center;padding:40px 22px}
.auth-card{width:100%;max-width:400px}
.auth-card h1{font-size:26px;margin-bottom:6px}
.auth-card .sub{color:var(--dim);font-size:14.5px;margin-bottom:22px}
.auth-alt{text-align:center;margin-top:18px;font-size:13.5px;color:var(--dim)}
.auth-alt a{color:#b8a5ff;text-decoration:none}
.auth-alt a:hover{text-decoration:underline}
.divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--faint);font-size:12px}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}

/* ---------- pricing ---------- */
.tiers{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:20px;align-items:start}
.tier{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:26px;position:relative}
.tier.hero{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 20px 50px rgba(124,92,255,.14)}
/* The badge straddles the card's top border, and .badge fills with a
   translucent tint — so the accent border ran straight through the middle of
   "MOST POPULAR" and out the other side. An opaque fill is the fix: this is
   the same rgba(124,92,255,.16) already flattened against the page background,
   so it looks identical while actually covering the line it sits on. */
.tier .flag{position:absolute;top:-11px;left:26px;background:#1d1a38}
.tier h3{font-size:16px;color:var(--dim);text-transform:uppercase;letter-spacing:.08em;font-size:12px;margin-bottom:12px}
.price{display:flex;align-items:baseline;gap:6px;margin-bottom:4px}
.price .amt{font-size:42px;font-weight:700;letter-spacing:-.03em}
.price .per{color:var(--dim);font-size:14px}
.tier ul{list-style:none;padding:0;margin:20px 0 24px}
.tier li{padding:7px 0 7px 25px;position:relative;font-size:14px;color:var(--dim);border-top:1px solid var(--line)}
.tier li:first-child{border-top:0}
.tier li::before{content:"✓";position:absolute;left:0;color:var(--accent2);font-weight:700}
.tier li.no{color:var(--faint)}
.tier li.no::before{content:"—";color:var(--faint)}
.tier li b{color:var(--text);font-weight:600}

.toggle-billing{display:inline-flex;background:var(--surface2);border:1px solid var(--line);border-radius:999px;padding:4px;gap:2px;margin:0 auto 34px;position:relative}
.toggle-billing button{
  border:0;background:transparent;color:var(--dim);padding:8px 18px;border-radius:999px;
  cursor:pointer;font-size:13.5px;font-weight:600;font-family:inherit;
}
.toggle-billing button.on{background:var(--accent);color:#fff}

/* ---------- misc marketing ---------- */
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.feat{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:20px}
.feat h3{font-size:16px;margin-bottom:6px}
.feat p{margin:0;color:var(--dim);font-size:14px}
.privacy-bar{
  display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;
  color:var(--dim);font-size:13.5px;padding:14px 22px;text-align:center;
}
.privacy-bar b{color:var(--text)}
.lockicon{width:15px;height:15px;flex:0 0 auto;opacity:.85}

table.cmp{width:100%;border-collapse:collapse;font-size:14px}
table.cmp th,table.cmp td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left}
table.cmp th{color:var(--dim);font-weight:600;font-size:12.5px;text-transform:uppercase;letter-spacing:.06em}
table.cmp td.y{color:var(--accent2)}
table.cmp td.n{color:var(--faint)}
table.cmp tr td:first-child{color:var(--text);font-weight:500}

details.faq{border-bottom:1px solid var(--line);padding:16px 0}
details.faq summary{cursor:pointer;font-weight:600;font-size:15.5px;list-style:none;display:flex;justify-content:space-between;gap:12px}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary::after{content:"+";color:var(--dim);font-weight:400;font-size:20px;line-height:1}
details.faq[open] summary::after{content:"–"}
details.faq p{margin:12px 0 0;color:var(--dim);font-size:14.5px}

/* A claim on one line, the reasoning under it. Used where a page has to argue a
   point rather than just list features, so the skimmer gets the bold lines and
   the person who wants the detail gets the rest. */
.kv2{padding:14px 0;border-top:1px solid var(--line)}
.kv2:first-child{border-top:0;padding-top:0}
.kv2:last-child{padding-bottom:0}
.kv2 b{display:block;font-size:15px;margin-bottom:5px}
.kv2 span{display:block;color:var(--dim);font-size:14.5px;line-height:1.65}

ul.plain{list-style:none;padding:0;margin:14px 0}
ul.plain li{position:relative;padding:7px 0 7px 20px;color:var(--dim);font-size:14.5px}
ul.plain li::before{content:"";position:absolute;left:2px;top:15px;width:5px;height:5px;
  border-radius:50%;background:var(--accent,#8f6dff)}

/* ---------- footer ---------- */
footer.site{border-top:1px solid var(--line);padding:40px 0;color:var(--faint);font-size:13.5px;margin-top:20px}
footer.site .cols{display:flex;gap:40px;flex-wrap:wrap;justify-content:space-between}
footer.site a{color:var(--dim);text-decoration:none;display:block;padding:3px 0}
footer.site a:hover{color:var(--text)}
footer.site h4{color:var(--text);font-size:13px;text-transform:uppercase;letter-spacing:.07em;margin-bottom:8px}

/* ---------- modal ---------- */
.modal-bg{
  position:fixed;inset:0;background:rgba(6,8,12,.72);backdrop-filter:blur(3px);
  display:none;align-items:center;justify-content:center;z-index:200;padding:22px;
}
.modal-bg.on{display:flex}
.modal{background:var(--surface);border:1px solid var(--line2);border-radius:16px;padding:26px;max-width:420px;width:100%;box-shadow:0 30px 70px rgba(0,0,0,.6)}
.modal h3{font-size:20px;margin-bottom:8px}
.modal p{color:var(--dim);font-size:14.5px}
.modal .acts{display:flex;gap:10px;margin-top:20px}
.modal .acts .btn{flex:1}
