/* Stitchist marketing site.
   Ember-style structure (airy sections, huge type, glass nav, border-beam
   cards, community grid) in the same professional LIGHT palette as the
   studio: near-white paper, white cards with slate hairlines, dark-slate ink
   and the #4f3bf6 accent — soft violet/blue glows keep it from feeling
   sterile. The site and the editor read as one product. */

/* ----------------------------------------------------------------- fonts */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/static/fonts/jakarta-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/static/fonts/jakarta-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --accent: #4f3bf6;
  --accent-soft: #7a68ff;
  --sky: #3d8de8;
  --paper: #f4f5f8;                        /* page base — same as the editor */
  --paper-2: #ffffff;
  --card: #ffffff;
  --card-line: rgba(26, 31, 54, 0.12);
  --card-line-hot: rgba(79, 59, 246, 0.45);
  --ink: #1a1f36;
  --ink-2: rgba(26, 31, 54, 0.72);
  --ink-3: rgba(26, 31, 54, 0.52);
  --ok: #148a52;
  --grad: linear-gradient(92deg, var(--accent), var(--sky));
  --glow-a: rgba(122, 104, 255, 0.22);     /* violet glow */
  --glow-b: rgba(79, 156, 246, 0.20);      /* blue glow  */
  --card-shadow: 0 1px 2px rgba(20, 24, 50, .05), 0 10px 30px rgba(20, 24, 50, .06);
  --radius: 16px;
  --container: 1200px;
  --tr: transform .16s ease, background .25s ease, color .25s ease,
        border-color .25s ease, box-shadow .25s ease, opacity .25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
::selection { background: rgba(79, 59, 246, .18); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(26,31,54,.25); border-radius: 8px; }

body {
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------ backdrop fx */
/* Drifting blueprint grid + product-gradient glows behind the hero. */
.bg-fx { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: -60px;
  background-image:
    linear-gradient(rgba(26,31,54,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,31,54,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 8%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 8%, #000 30%, transparent 75%);
  animation: griddrift 26s linear infinite;
}
@keyframes griddrift { to { transform: translate3d(44px, 44px, 0); } }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.bg-glow.a { width: 720px; height: 520px; left: 50%; top: -180px; transform: translateX(-78%);
             background: radial-gradient(closest-side, var(--glow-a), transparent 72%); }
.bg-glow.b { width: 720px; height: 520px; left: 50%; top: -140px; transform: translateX(-18%);
             background: radial-gradient(closest-side, var(--glow-b), transparent 72%); }
.bg-glow.c { width: 900px; height: 620px; left: 50%; bottom: -320px; transform: translateX(-50%);
             background: radial-gradient(closest-side, rgba(122, 104, 255, .28), transparent 72%);
             animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }

/* ---------------------------------------------------------------- topnav */
.nav {
  position: sticky; top: 14px; z-index: 50;
  margin: 14px auto 0; max-width: 1060px; padding: 0 16px;
}
.nav-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--card-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; }
.brand .mark {
  width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--sky));
  box-shadow: 0 4px 16px rgba(79, 59, 246, .45);
}
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 7px 13px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2);
  transition: var(--tr);
}
.nav-links a:hover { color: var(--ink); background: rgba(26,31,54,.06); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 650; cursor: pointer;
  transition: var(--tr); white-space: nowrap;
}
.btn.primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 24px rgba(79, 59, 246, .28);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(79, 59, 246, .4); }
.btn.ghost {
  background: #ffffff; color: var(--ink);
  border-color: var(--card-line);
  backdrop-filter: blur(8px);
}
.btn.ghost:hover { background: #fafbff; border-color: var(--card-line-hot); }
.btn.grad {
  background: linear-gradient(92deg, var(--accent) 0%, #2f6fd8 100%);
  color: #fff; position: relative; overflow: hidden;
}
.btn.grad:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(79, 59, 246, .5); }
.btn.grad::after {                    /* spark shimmer sweeping the CTA */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: spark 3.6s ease-in-out infinite;
}
@keyframes spark { 18% { transform: translateX(120%); } 100% { transform: translateX(120%); } }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn.small { padding: 7px 15px; font-size: 13.5px; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 92px 0 40px; text-align: center; position: relative; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2);
  background: #ffffff; border: 1px solid var(--card-line);
  backdrop-filter: blur(8px);
}
.hero .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 {
  margin: 22px auto 0; max-width: 880px;
  font-size: clamp(40px, 7vw, 76px); font-weight: 640;
}
.hero .sub {
  margin: 20px auto 0; max-width: 660px;
  font-size: 18px; color: var(--ink-2);
}
.hero .cta-row { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* product screenshot in a glow halo */
.hero-shot { margin: 64px auto 0; max-width: 1060px; position: relative; padding: 0 16px; }
.hero-shot::before {
  content: ""; position: absolute; inset: -8% -4% -14%;
  background:
    radial-gradient(ellipse 60% 55% at 32% 40%, var(--glow-a), transparent 70%),
    radial-gradient(ellipse 60% 55% at 68% 60%, var(--glow-b), transparent 70%);
  filter: blur(30px); z-index: -1;
}
.hero-shot .frame {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--card-line);
  box-shadow: 0 30px 90px rgba(20, 24, 50, .18);
  background: var(--paper-2);
}
.hero-shot .chrome {
  display: flex; align-items: center; gap: 6px; padding: 11px 14px;
  background: #f2f3f7; border-bottom: 1px solid rgba(26,31,54,.09);
}
.hero-shot .chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(26,31,54,.18); }
.hero-shot .chrome span {
  margin-left: 10px; font-size: 12px; color: var(--ink-3); font-style: normal;
}
.hero-shot img { width: 100%; }

/* --------------------------------------------------------------- sections */
.section { padding: 96px 0 0; }
.section:last-of-type { padding-bottom: 96px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.sec-head .kicker {
  font-size: 13.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 630; }
.sec-head p { margin-top: 16px; color: var(--ink-2); font-size: 17px; }

/* ------------------------------------------------------------ stat strip */
.stats { margin-top: 64px; }
.stats .row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 940px; margin: 0 auto;
}
.stat {
  padding: 20px 12px; text-align: center; border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  background: var(--card); border: 1px solid var(--card-line);
  backdrop-filter: blur(10px); box-shadow: var(--card-shadow);
}
.stat b { display: block; font-size: 24px; font-weight: 700; }
.stat span { font-size: 13.5px; color: var(--ink-3); }

/* ---------------------------------------------------------- feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  position: relative; padding: 26px 24px 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-line);
  backdrop-filter: blur(10px); box-shadow: var(--card-shadow);
  transition: var(--tr); overflow: hidden;
}
.feature:hover { transform: translateY(-3px); border-color: var(--card-line-hot); }
/* rotating border-beam on hover */
.feature::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--beam, 0deg),
              transparent 0 70%, var(--accent-soft) 82%, var(--sky) 90%, transparent 98%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
@property --beam { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.feature:hover::before { opacity: 1; animation: beamspin 2.6s linear infinite; }
@keyframes beamspin { to { --beam: 360deg; } }
.feature .ficon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(79,59,246,.08); border: 1px solid rgba(79,59,246,.18); margin-bottom: 16px;
}
.feature h3 { font-size: 18px; font-weight: 680; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-2); }

/* ------------------------------------------------------------ how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; padding: 26px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #fafbfd);
  border: 1px solid var(--card-line);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 13px; font-weight: 750; letter-spacing: .08em; color: var(--accent-soft);
}
.step h3 { font-size: 18px; margin: 10px 0 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); }

/* ---------------------------------------------------------------- gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--card-line); background: var(--paper-2);
  aspect-ratio: 1; transition: var(--tr);
}
.shot.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.shot:hover { border-color: var(--card-line-hot); }
.shot:hover img { transform: scale(1.045); }
.shot .cap {
  position: absolute; inset: auto 0 0; padding: 26px 14px 10px;
  font-size: 13px; color: var(--ink-2);
  background: linear-gradient(transparent, rgba(255, 255, 255, .92));
  opacity: 0; transition: opacity .3s ease;
}
.shot:hover .cap { opacity: 1; }

/* ------------------------------------------------------------ testimonials */
.quotes { columns: 3; column-gap: 16px; }
.quote {
  break-inside: avoid; margin-bottom: 16px; padding: 20px 20px 18px;
  border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--card-line); backdrop-filter: blur(10px); box-shadow: var(--card-shadow);
}
.quote .starrow { color: #e2a600; font-size: 13px; letter-spacing: 2px; }
.quote p { margin: 10px 0 14px; font-size: 14.5px; color: var(--ink-2); }
.quote .who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.quote .who .avi {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--sky));
}
.quote .who span { color: var(--ink-3); }

/* ------------------------------------------------------------ pricing cards */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 18px; justify-content: center; }
.plan {
  position: relative; padding: 30px 28px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--card-line);
  backdrop-filter: blur(10px); box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 0;
}
.plan.pro {
  background: linear-gradient(180deg, rgba(139,123,255,.14), rgba(79,59,246,.05) 55%),
              var(--card);
  border-color: rgba(139, 123, 255, .45);
  box-shadow: 0 20px 70px rgba(79, 59, 246, .25);
}
.plan .badge {
  position: absolute; top: -12px; right: 24px; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(92deg, var(--accent), #2f6fd8);
}
.plan h3 { font-size: 20px; font-weight: 700; }
.plan .tag { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.plan .price { margin: 18px 0 2px; font-size: 44px; font-weight: 720; letter-spacing: -0.03em; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan .subprice { min-height: 20px; font-size: 13px; color: var(--ink-3); }
.plan ul { list-style: none; margin: 20px 0 26px; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.plan li.no { color: var(--ink-3); }
.plan li.no::before { content: "—"; color: var(--ink-3); }
.plan .btn { margin-top: auto; }

/* billing interval toggle */
.cycle { display: flex; justify-content: center; margin-bottom: 34px; }
.cycle .pill {
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: #ffffff; border: 1px solid var(--card-line);
}
.cycle button {
  font: inherit; font-size: 14px; font-weight: 650; color: var(--ink-2);
  padding: 7px 18px; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
  transition: var(--tr);
}
.cycle button.on { background: var(--accent); color: #fff; }
.cycle .save { color: var(--ok); font-weight: 700; font-size: 12px; margin-left: 6px; }

/* --------------------------------------------------------------- compare */
.compare { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--card-line); }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; background: #ffffff; }
.compare th, .compare td { padding: 13px 18px; text-align: left; font-size: 14.5px; }
.compare thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.compare tbody tr { border-top: 1px solid rgba(26,31,54,.08); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare td.y { color: var(--ok); font-weight: 700; }
.compare td.n { color: var(--ink-3); }

/* ------------------------------------------------------------------- FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border-radius: 14px; background: var(--card); border: 1px solid var(--card-line);
  padding: 16px 20px; transition: var(--tr);
}
.faq details[open] { border-color: var(--card-line-hot); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 15.5px; list-style: none; display: flex; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--ink-3); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }

/* -------------------------------------------------------------- downloads */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 430px)); gap: 18px; justify-content: center; }
.dl-card {
  padding: 30px 28px; border-radius: 20px; text-align: center;
  background: var(--card); border: 1px solid var(--card-line); backdrop-filter: blur(10px); box-shadow: var(--card-shadow);
}
.dl-card .oslogo { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.dl-card h3 { font-size: 20px; }
.dl-card .req { margin: 8px 0 20px; font-size: 13.5px; color: var(--ink-3); }
.dl-note {
  max-width: 760px; margin: 42px auto 0; padding: 18px 22px; border-radius: 14px;
  background: rgba(255, 214, 107, .07); border: 1px solid rgba(255, 214, 107, .25);
  font-size: 14px; color: var(--ink-2);
}
.dl-note b { color: #a86a00; }

/* -------------------------------------------------------------- CTA band */
.cta-band {
  margin-top: 96px; padding: 72px 24px; text-align: center; position: relative; overflow: hidden;
  border-top: 1px solid var(--card-line);
  background:
    radial-gradient(ellipse 70% 90% at 50% 115%, rgba(79, 59, 246, .35), transparent 70%),
    var(--paper-2);
}
.cta-band h2 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 640; }
.cta-band p { margin: 14px auto 26px; max-width: 520px; color: var(--ink-2); }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid rgba(26,31,54,.09); background: #eceef4; }
.foot-inner {
  max-width: var(--container); margin: 0 auto; padding: 44px 24px 34px;
  display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between;
}
.foot .brand { font-size: 15.5px; }
.foot .cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot .col { display: grid; gap: 9px; align-content: start; }
.foot .col b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.foot .col a { font-size: 14px; color: var(--ink-2); }
.foot .col a:hover { color: var(--ink); }
.foot .legal {
  max-width: var(--container); margin: 0 auto; padding: 0 24px 34px;
  font-size: 12.5px; color: var(--ink-3);
}

/* ------------------------------------------------------------ legal pages */
.page { max-width: 800px; margin: 0 auto; padding: 60px 24px 96px; }
.page h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 640; margin-bottom: 8px; }
.page .updated { color: var(--ink-3); font-size: 13.5px; margin-bottom: 36px; }
.page h2 { font-size: 20px; font-weight: 680; margin: 34px 0 10px; }
.page p, .page li { font-size: 15px; color: var(--ink-2); }
.page ul { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.page .card-note {
  margin: 26px 0; padding: 16px 20px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--card-line); font-size: 14px; color: var(--ink-2);
}

/* --------------------------------------------------------- reset password */
.auth-card {
  max-width: 420px; margin: 12vh auto 0; padding: 34px 32px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--card-line); backdrop-filter: blur(12px);
}
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .hint { font-size: 14px; color: var(--ink-2); margin-bottom: 22px; }
.auth-card input {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: inherit; color: var(--ink);
  background: #ffffff; border: 1px solid rgba(26,31,54,.22); outline: none;
}
.auth-card input:focus { border-color: var(--accent-soft); box-shadow: 0 0 0 3px rgba(139,123,255,.25); }
.auth-card .btn { width: 100%; margin-top: 14px; }
.auth-card .msg { margin-top: 14px; font-size: 14px; color: var(--ink-2); min-height: 20px; }
.auth-card .msg.err { color: #d13c4b; }

/* --------------------------------------------------------- scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .quotes { columns: 2; }
  .stats .row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { top: 10px; }
  .nav-links { display: none; }
  .features, .steps, .plans, .dl-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .quotes { columns: 1; }
  .hero { padding-top: 64px; }
  .section { padding-top: 72px; }
}

/* -------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-grid, .bg-glow.c, .btn.grad::after { animation: none !important; }
  .feature:hover::before { animation: none !important; opacity: .5; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn.primary:hover, .btn.grad:hover, .feature:hover { transform: none; }
  .shot img, .shot:hover img { transition: none; transform: none; }
}

/* ------------------------------------------------ account chip (signed in) */
/* The editor's exact chip + menu (rendered by /static/account.js into
   .account-slot) — restyled with the site tokens so it sits naturally in
   the pill nav. Same entries: My projects · Settings · plan · Sign out. */
.account-slot { display: inline-flex; position: relative; }
.acct-signin {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--card-line);
  background: #fff; color: var(--ink); font-family: inherit;
  font-size: 13.5px; font-weight: 650; cursor: pointer; transition: var(--tr);
}
.acct-signin:hover { border-color: var(--card-line-hot); }
.acct-chip {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px;
  border-radius: 999px; border: 1px solid var(--card-line);
  background: #fff; color: var(--ink); font-family: inherit;
  font-size: 13px; font-weight: 650; cursor: pointer; transition: var(--tr);
}
.acct-chip:hover { border-color: var(--card-line-hot); box-shadow: var(--card-shadow); }
.acct-chip .face { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
.acct-chip .face.init {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800;
}
.acct-chip .nm { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 200px;
  display: flex; flex-direction: column; gap: 2px; padding: 8px 6px 6px;
  background: #fff; border: 1px solid var(--card-line);
  border-radius: 14px; box-shadow: 0 14px 40px rgba(20, 24, 50, .16);
}
.acct-menu .who { display: flex; flex-direction: column; gap: 1px; padding: 2px 10px 8px; border-bottom: 1px solid rgba(26,31,54,.08); margin-bottom: 4px; }
.acct-menu .who b { font-size: 13px; color: var(--ink); }
.acct-menu .who span { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.acct-menu > button {
  text-align: left; padding: 8px 10px; border-radius: 9px; border: none;
  background: transparent; color: var(--ink); font-family: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: var(--tr);
}
.acct-menu > button:hover { background: rgba(26, 31, 54, .06); }
.acct-menu .acct-upgrade { color: #fff; background: linear-gradient(92deg, rgba(122,104,255,.95), rgba(61,141,232,.95)); }
.acct-menu .acct-upgrade:hover { filter: brightness(1.06); }
