/* ============================================================
   Fanfare — Design System
   "Campaign command center": a confident growth-marketing studio.
   Warm bone paper, deep ink-plum, a bold persimmon primary with an
   electric-grape interactive accent. Clash Display headlines, General
   Sans body, Martian Mono labels. Deliberately distinct from siblings
   (no serif editorial, no magenta, no studio-photo look).
   The brand palette is mapped onto the --em-* / --pop-* token names so
   the shared component rules need no per-rule edits.
   ============================================================ */

:root {
  /* Ink-plum (text + dark surfaces) */
  --ink-900: #15111E;
  --ink-800: #211A30;
  --ink-700: #332647;
  --ink-600: #4C3A68;

  /* Persimmon — primary brand accent (kept as --em-* so markup needn't change) */
  --em-600: #D23A0C;
  --em-500: #FB5012;
  --em-400: #FF7A47;
  --em-300: #FFB290;
  --em-50:  #FFEAE0;

  /* Electric grape — secondary / interactive accent */
  --pop-600: #4322C9;
  --pop-500: #5B3DF5;
  --pop-400: #7E63F8;
  --pop-300: #B7A8FB;
  --pop-50:  #ECE7FE;

  /* Neutrals — warm bone paper */
  --paper:   #FBF6ED;
  --paper-2: #F2E9D9;
  --card:    #FFFFFF;
  --ink:     #1C1726;
  --ink-soft:#594F63;
  --ink-faint:#9C9080;
  --line:    #E9DECB;
  --line-2:  #F2EADC;

  /* Status */
  --good: #138A52;
  --bad:  #E11D48;

  /* Type */
  --display: "Clash Display", "General Sans", system-ui, sans-serif;
  --sans:    "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "Martian Mono", "SFMono-Regular", Menlo, monospace;

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Shadow (warm-tinted) */
  --sh-sm: 0 1px 2px rgba(40,28,18,.05), 0 2px 8px rgba(40,28,18,.05);
  --sh-md: 0 8px 26px rgba(40,28,18,.10), 0 2px 6px rgba(40,28,18,.05);
  --sh-lg: 0 32px 74px rgba(30,18,40,.20);

  --wrap: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; color: var(--ink-900); }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.3rem); font-weight: 700; line-height: 1.0; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 3.8vw, 2.95rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-weight: 600; }
.lede { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.62; }
.display { font-family: var(--display); }
.muted { color: var(--ink-faint); }
.accent { color: var(--em-600); }
.accent2 { color: var(--pop-500); }

/* mono kicker / eyebrow */
.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--em-600);
}
.kicker { background: var(--em-50); padding: 6px 13px; border-radius: var(--r-pill); }
.kicker::before { content: "◆"; color: var(--em-500); font-size: .7em; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.section { padding: 90px 0; }
.section-sm { padding: 54px 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.kicker + h2, .kicker + h1, .eyebrow + h2, .eyebrow + h1 { margin-top: 14px; }
.section-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.section-head .lede { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .98rem; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--em-500); color: #fff; box-shadow: 0 8px 20px rgba(251,80,18,.32); }
.btn-primary:hover { background: var(--em-600); box-shadow: 0 12px 28px rgba(251,80,18,.42); }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: var(--ink-800); }
.btn-pop { background: var(--pop-500); color: #fff; box-shadow: 0 8px 20px rgba(91,61,245,.32); }
.btn-pop:hover { background: var(--pop-600); }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-600); background: #fff; }
.btn-light { background: #fff; color: var(--ink-900); border-color: var(--line); }
.btn-light:hover { box-shadow: var(--sh-md); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.loading { position: relative; color: transparent; }
.btn.loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------- Pills / badges / tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 600; background: var(--em-50); color: var(--em-600);
}
.pill-dark { background: rgba(255,255,255,.12); color: #fff; }
.pill-good { background: var(--em-50); color: var(--good); }
.tag {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  padding: 4px 9px; border-radius: 6px; background: var(--paper-2); color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,246,237,.85); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 1.42rem; font-weight: 700; color: var(--ink-900); letter-spacing: -.03em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(150deg, var(--em-400), var(--em-600));
  display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 5px 14px rgba(251,80,18,.40);
}
.brand .mark svg { width: 21px; height: 21px; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.on { color: var(--ink-900); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink-900); font-size: 1.5rem; line-height: 1; }
.nav-auth-mobile { display: none; }
.credits-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600;
  padding: 7px 13px; border-radius: var(--r-pill); background: var(--em-50); color: var(--em-600);
}
.credits-chip b { font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-auth-mobile { display: block; border-top: 1px solid var(--line-2); }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 0;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .18s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 7vw; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FFFDF8 0%, var(--paper) 56%, #F3E9D8 100%); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42% 56% at 88% 2%, rgba(251,80,18,.16), transparent 62%),
    radial-gradient(46% 54% at 2% 98%, rgba(91,61,245,.16), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; padding: 92px 0; }
.hero h1 .accent { color: var(--em-600); }
.hero h1 .accent2 { color: var(--pop-500); }
.hero .lede { color: var(--ink-soft); margin-top: 22px; max-width: 36ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; color: var(--ink-faint); font-size: .86rem; }
.hero-trust span { display: inline-flex; gap: 8px; align-items: center; }
.hero-trust b { color: var(--ink-700); }

/* Hero mock: a mini "campaign board" */
.cam-mock { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 16px; transform: rotate(-1deg); }
.cam-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cam-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.cam-dot.r { background: #FF5F57; } .cam-dot.y { background: #FEBC2E; } .cam-dot.g { background: #28C840; }
.cam-tab { margin-left: auto; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; color: var(--ink-faint); text-transform: uppercase; }
.cam-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cam-col { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 7px; min-height: 150px; }
.cam-col .ch { font-family: var(--mono); font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 7px; display: block; }
.cam-pill { height: 22px; border-radius: 6px; background: #fff; border: 1px solid var(--line-2); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; padding: 0 6px; }
.cam-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--em-400); flex: none; }
.cam-col:nth-child(2) .cam-pill::before { background: var(--pop-400); }
.cam-col:nth-child(3) .cam-pill::before { background: var(--em-500); }
.cam-col:nth-child(4) .cam-pill::before { background: var(--pop-500); }
.cam-pill i { height: 6px; border-radius: 3px; background: var(--paper-2); flex: 1; }
.cam-foot { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; }
.cam-foot .lab { font-family: var(--mono); font-size: .6rem; color: var(--ink-faint); }
.cam-foot .go { background: var(--em-500); color: #fff; font-size: .64rem; font-weight: 700; padding: 5px 11px; border-radius: var(--r-pill); }

/* ---------- Cards / features ---------- */
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.feature { padding: 26px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--sh-sm); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--em-50); color: var(--em-600); margin-bottom: 16px; font-size: 1.3rem; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: .96rem; }
.mod-show { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 26px; }
.step .num { font-family: var(--mono); font-weight: 600; font-size: 1.5rem; color: var(--em-500); line-height: 1; letter-spacing: .04em; }
.step h3 { margin: 12px 0 8px; }
.step p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- Funnel diagram (landing) ---------- */
.funnel-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.funnel-stage { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--sh-sm); padding: 20px; position: relative; }
.funnel-stage .si { font-size: 1.2rem; color: var(--em-500); }
.funnel-stage h4 { font-family: var(--display); font-size: 1.05rem; margin: 8px 0 4px; }
.funnel-stage .sub { font-size: .82rem; color: var(--ink-faint); margin-bottom: 12px; }
.funnel-stage ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.funnel-stage li { font-size: .86rem; color: var(--ink-soft); display: flex; gap: 7px; }
.funnel-stage li::before { content: "›"; color: var(--em-400); font-weight: 700; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--sh-sm); display: flex; flex-direction: column; }
.price-card.featured { border: 1.5px solid var(--em-500); box-shadow: var(--sh-md); transform: translateY(-6px); }
.price-card.featured::before { content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--em-500); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--r-pill); }
.price-tier { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.price-amount { font-family: var(--display); font-weight: 700; font-size: 3rem; color: var(--ink-900); margin: 8px 0 2px; letter-spacing: -.03em; }
.price-amount .cur { font-size: 1.4rem; vertical-align: super; font-weight: 600; }
.price-credits { font-weight: 600; color: var(--em-600); }
.price-per { font-size: .85rem; color: var(--ink-faint); margin-top: 2px; }
.price-feats { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-feats li { display: flex; gap: 10px; font-size: .93rem; color: var(--ink-soft); }
.price-feats li svg { flex: none; margin-top: 3px; color: var(--good); }
.price-feats li.off { color: var(--ink-faint); opacity: .6; }
.price-feats li.off svg { color: var(--ink-faint); }
.onetime-note { display: inline-flex; gap: 8px; align-items: center; justify-content: center; font-size: .9rem; color: var(--good); font-weight: 600; }

/* ---------- Forms / auth ---------- */
.auth-wrap { max-width: 430px; margin: 60px auto; }
.auth-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--sh-md); }
.auth-tabs { display: flex; gap: 4px; background: var(--paper-2); border-radius: var(--r-pill); padding: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; border: 0; background: none; padding: 10px; border-radius: var(--r-pill); font-weight: 600; color: var(--ink-soft); }
.auth-tab.on { background: #fff; color: var(--ink-900); box-shadow: var(--sh-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field label .opt { font-weight: 400; color: var(--ink-faint); }
.field input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); outline: 0; transition: .15s; }
.field input:focus { border-color: var(--pop-500); background: #fff; box-shadow: 0 0 0 3px rgba(91,61,245,.16); }
.form-msg { font-size: .88rem; padding: 10px 14px; border-radius: var(--r-sm); margin-bottom: 14px; }
.form-msg.err { background: #FBEAE8; color: var(--bad); }
.form-msg.ok { background: var(--em-50); color: var(--good); }
.auth-alt { text-align: center; font-size: .9rem; color: var(--ink-soft); margin-top: 18px; }
.auth-alt a { color: var(--em-600); font-weight: 600; }

/* ---------- Account ---------- */
.acct-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.balance-card { background: var(--ink-900); color: #fff; border-radius: var(--r-lg); padding: 28px 32px; position: relative; overflow: hidden; }
.balance-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 90% 0%, rgba(251,80,18,.30), transparent 60%), radial-gradient(50% 80% at 0% 100%, rgba(91,61,245,.26), transparent 60%); }
.balance-card .big { font-family: var(--display); font-weight: 700; font-size: 3rem; color: var(--em-300); position: relative; z-index: 1; }
.history-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.history-table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.history-table td { padding: 12px; border-bottom: 1px solid var(--line-2); color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--ink-900); cursor: pointer; letter-spacing: -.01em; }
.faq-q .chev { transition: .2s; color: var(--em-500); }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { color: var(--ink-soft); font-size: .98rem; max-height: 0; overflow: hidden; transition: max-height .25s ease, margin .2s ease; }
.faq-item.open .faq-a { max-height: 460px; margin-top: 12px; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 38px 0 14px; }
.prose h3 { font-size: 1.16rem; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose strong { color: var(--ink); }
.callout { background: var(--em-50); border-left: 3px solid var(--em-500); padding: 16px 20px; border-radius: var(--r-sm); margin: 20px 0; }
.callout.warn { background: var(--pop-50); border-color: var(--pop-500); }
.page-head { background: linear-gradient(180deg, #FFFDF8, var(--paper)); color: var(--ink); padding: 64px 0 50px; border-bottom: 1px solid var(--line); }
.page-head h1 { color: var(--ink-900); }
.page-head .lede { color: var(--ink-soft); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #9A93A2; padding: 64px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #786C84; margin-bottom: 14px; font-weight: 700; }
.site-footer a { display: block; color: #B2A8BC; font-size: .92rem; padding: 5px 0; }
.site-footer a:hover { color: var(--em-300); }
.footer-blurb { font-size: .92rem; color: #897E92; max-width: 36ch; margin: 14px 0 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #786C84; }
.footer-bottom .onetime { color: var(--em-300); font-weight: 600; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(30,18,40,.18); border-top-color: var(--ink-900); border-radius: 50%; animation: spin .7s linear infinite; }
.spinner.lg { width: 34px; height: 34px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink-900); color: #fff; padding: 13px 22px; border-radius: var(--r-pill); box-shadow: var(--sh-lg); opacity: 0; pointer-events: none; transition: .25s; z-index: 400; font-size: .92rem; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.hidden { display: none !important; }

/* ============================================================
   KIT STUDIO — the app (brief bar + funnel board + drawer)
   ============================================================ */
.studio-grid { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 26px; align-items: start; }
.studio-grid > * { min-width: 0; }
.studio-rail { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }
.rail-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--sh-sm); padding: 16px; }
.rail-card h4 { font-family: var(--display); font-size: .95rem; font-weight: 600; margin-bottom: 12px; color: var(--ink-900); }
.hist-list { display: flex; flex-direction: column; gap: 6px; }
.hist-item { text-align: left; border: 1px solid var(--line-2); background: var(--paper); border-radius: var(--r-sm); padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; transition: .12s; }
.hist-item:hover { border-color: var(--em-300); background: #fff; }
.hist-item span { font-size: .86rem; font-weight: 600; color: var(--ink-900); line-height: 1.25; }
.hist-item small { font-family: var(--mono); font-size: .64rem; color: var(--ink-faint); }
.rail-tip { font-size: .84rem; color: var(--ink-soft); line-height: 1.5; }
.rail-tip b { color: var(--ink-900); }
.trial-note { background: var(--em-50); border: 1px solid var(--em-300); border-radius: var(--r-md); padding: 12px 16px; font-size: .92rem; color: var(--em-600); margin-bottom: 18px; }
.trial-note a { color: var(--em-600); font-weight: 700; text-decoration: underline; }

/* brief bar */
.kit-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: 22px; }
.kit-bar .lab { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; display: block; }
.kit-topic { width: 100%; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; font-size: 1.05rem; line-height: 1.5; resize: vertical; min-height: 92px; background: var(--paper); outline: 0; transition: .15s; color: var(--ink); }
.kit-topic:focus { border-color: var(--em-500); background: #fff; box-shadow: 0 0 0 3px rgba(251,80,18,.14); }
.goal-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 6px; }
.goal-chip { border: 1px solid var(--line); background: #fff; color: var(--ink-soft); padding: 9px 15px; border-radius: var(--r-pill); font-weight: 600; font-size: .88rem; transition: .15s; }
.goal-chip:hover { border-color: var(--em-400); }
.goal-chip.on { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.kit-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-top: 18px; }
.kit-row .field { margin-bottom: 0; flex: 1; min-width: 168px; }
.kit-row .field label { font-size: .76rem; }
.kit-row .field .opt { font-weight: 400; color: var(--ink-faint); }
.kit-row .field select, .kit-row .field input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font-weight: 500; color: var(--ink-900); outline: 0; }
.kit-run { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.kit-run .cost { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); }
.kit-run .cost b { color: var(--ink-900); }

#board { margin-top: 26px; }
.kit-empty { text-align: center; padding: 58px 24px; color: var(--ink-faint); border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: #fff; }
.kit-empty .big-ico { font-size: 2.4rem; margin-bottom: 10px; }
.kit-empty p { margin-bottom: 4px; }
.board-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.board-title { font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--ink-900); max-width: 640px; margin-top: 6px; line-height: 1.25; }
.res-actions { display: flex; gap: 8px; }
.disclaimer { font-size: .85rem; color: var(--ink-faint); margin-top: 18px; }
.disclaimer a { color: var(--em-600); font-weight: 600; }

/* the funnel board (kanban) */
.funnel-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.fn-col { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 12px; min-width: 0; }
.fn-col-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0 2px; }
.fn-col-h .fn-si { width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--em-500); font-size: .9rem; flex: none; }
.fn-stage { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--ink-900); line-height: 1.1; }
.fn-sub { display: block; font-size: .68rem; color: var(--ink-faint); margin-top: 1px; }
.fn-cards { display: flex; flex-direction: column; gap: 9px; }
.fn-card { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 12px 12px; display: flex; align-items: center; gap: 11px; box-shadow: var(--sh-sm); transition: transform .12s ease, box-shadow .18s ease, border-color .15s; }
.fn-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--em-300); }
.fn-card.empty { opacity: .55; }
.fn-card .fn-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--em-50); color: var(--em-600); display: grid; place-items: center; font-size: .95rem; font-weight: 700; flex: none; }
.fn-card .fn-meta { flex: 1; min-width: 0; }
.fn-card .fn-name { display: block; font-weight: 600; font-size: .92rem; color: var(--ink-900); line-height: 1.2; }
.fn-card .fn-prev { display: block; font-size: .76rem; color: var(--ink-faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fn-card .fn-go { color: var(--ink-faint); font-size: 1.3rem; line-height: 1; flex: none; }
.fn-card:hover .fn-go { color: var(--em-500); }

/* drawer */
.drawer-host { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.drawer-host[aria-hidden="false"] { visibility: visible; }
.drawer-ov { position: absolute; inset: 0; background: rgba(21,17,30,.5); opacity: 0; transition: opacity .24s ease; backdrop-filter: blur(2px); }
.drawer-host.open .drawer-ov { opacity: 1; }
.drawer { position: absolute; top: 0; right: 0; height: 100%; width: min(560px, 94vw); background: var(--paper); box-shadow: var(--sh-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .24s ease; }
.drawer-host.open .drawer { transform: none; }
.drawer-h { display: flex; align-items: center; gap: 13px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-h .d-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--em-50); color: var(--em-600); display: grid; place-items: center; font-size: 1.15rem; font-weight: 700; flex: none; }
.drawer-h .d-stage { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.drawer-h h3 { font-size: 1.2rem; margin-top: 1px; }
.drawer-x { margin-left: auto; border: 1px solid var(--line); background: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1rem; color: var(--ink-soft); flex: none; }
.drawer-x:hover { border-color: var(--ink-600); color: var(--ink-900); }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px; }
.drawer-foot { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: #fff; }
.drawer-foot .btn { flex: 1; justify-content: center; }

/* drawer internals */
.d-block { margin-bottom: 22px; }
.d-block:last-child { margin-bottom: 0; }
.d-h { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 9px; }
.d-lead { font-family: var(--display); font-weight: 600; font-size: 1.18rem; color: var(--ink-900); line-height: 1.2; margin-bottom: 6px; }
.drawer-body p { color: var(--ink); font-size: .96rem; line-height: 1.6; }
.drawer-body p.pre { white-space: pre-wrap; }
.d-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; margin-bottom: 7px; }
.d-row span { flex: 1; font-size: .92rem; }
.d-list { list-style: none; padding: 0; margin: 0; counter-reset: dl; display: flex; flex-direction: column; gap: 8px; }
.d-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; }
.d-list li::before { counter-increment: dl; content: counter(dl); font-family: var(--mono); font-size: .72rem; color: var(--em-500); font-weight: 600; flex: none; }
.d-list .tx { flex: 1; font-size: .94rem; line-height: 1.4; }
.d-card { border: 1px solid var(--line-2); border-radius: var(--r-md); background: #fff; padding: 14px 15px; margin-bottom: 12px; }
.d-card.sm { padding: 12px 14px; margin-bottom: 9px; }
.d-card b { color: var(--ink-900); }
.d-card p { font-size: .94rem; color: var(--ink-soft); margin-top: 4px; }
.d-card .d-h { margin-bottom: 8px; }
.d-mini { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; color: var(--ink); }
.d-mini span { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); background: var(--paper-2); padding: 3px 7px; border-radius: 5px; flex: none; }
.d-mini small { font-family: var(--mono); font-size: .68rem; color: var(--ink-faint); margin-left: auto; }
.cc { font-family: var(--mono); font-size: .68rem; color: var(--ink-faint); flex: none; }
.cc.over { color: var(--bad); font-weight: 600; }
.cp-btn { border: 1px solid var(--line); background: #fff; color: var(--ink-soft); border-radius: var(--r-pill); padding: 3px 11px; font-size: .72rem; font-weight: 600; flex: none; margin-left: auto; transition: .12s; }
.cp-btn:hover { border-color: var(--em-400); color: var(--em-600); }
.d-list .cp-btn, .d-row .cp-btn { margin-left: 0; }

.chip-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-wrap .ch { font-family: var(--mono); font-size: .76rem; background: var(--em-50); color: var(--em-600); padding: 5px 10px; border-radius: var(--r-pill); }

/* moodboard (Pexels photos) */
.mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.mood-item { position: relative; aspect-ratio: 4/3; border-radius: var(--r-sm); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line-2); }
.mood-item img { width: 100%; height: 100%; object-fit: cover; }
.mood-item .src { position: absolute; left: 6px; bottom: 6px; font-family: var(--mono); font-size: .56rem; color: #fff; background: rgba(21,17,30,.72); padding: 2px 6px; border-radius: 4px; }
.broll-note { font-size: .82rem; color: var(--ink-faint); margin-top: 12px; }
.broll-note a { color: var(--em-600); font-weight: 600; }

/* skeleton */
.mod-skel { display: flex; flex-direction: column; gap: 9px; }
.mod-skel span { height: 13px; border-radius: 6px; background: linear-gradient(90deg, var(--paper-2), var(--line-2), var(--paper-2)); background-size: 200% 100%; animation: shine 1.2s linear infinite; }
.mod-skel span:nth-child(2) { width: 80%; } .mod-skel span:nth-child(3) { width: 65%; }
@keyframes shine { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 64px 0; }
  .hero .lede { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .funnel-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-rail { position: static; order: 2; flex-direction: row; flex-wrap: wrap; }
  .studio-rail .rail-card { flex: 1; min-width: 200px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 62px 0; }
  .cols-2, .cols-3, .cols-4, .mod-show, .steps { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .funnel-board { grid-template-columns: 1fr; }
  .funnel-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .mood-grid { grid-template-columns: repeat(2, 1fr); }
  .cam-cols { gap: 5px; }
}
