/* ============================================================
   Booked&Busy — brand system.
   "MUA Admin, Beautifully Managed."
   Editorial beauty meets sharp software. Shared by the brand
   sheet, the landing page and the auth screens.
   ============================================================ */

/* Three tokens differ from the handoff. Every one was measured, not judged.
   WCAG AA is 4.5:1 for normal text, 3.0:1 for large text and non-text.

     --ink-3   #9C9284 -> #767063
       The handoff calls it "muted / captions", which is text, and it scored
       2.87 on --paper: under even the 3.0 non-text bar. A caption colour that
       cannot carry a caption is the one token you cannot leave alone. Now 4.60
       on paper, 4.92 on white. Still a muted warm grey; just a legible one.

     --gold    #B98A3E kept, --gold-text added
       2.90 on paper. It is specced as a "rare editorial flourish" so the brand
       hex survives for hairlines, dots and rules, where 3.0 does not apply.
       --gold-text exists for the moment someone reaches for gold on a word.

     --rouge   NOW PURPLE #9575CD (the token name is kept; see below)
       3.45 on paper and 3.68 under white. The rule that already existed here --
       "rouge is for fills and large display type, --rouge-deep for rouge-
       coloured body text" -- still holds and is now load-bearing rather than
       tidy: the periwinkle is further under 4.5 than the rouge was.

       What changed: rouge carried white at 4.75, so .bb-btn.primary was fine.
       Periwinkle carries white at 3.68, so it is not. --rouge-solid is new, for
       exactly the fills that carry white; --rouge stays for fills that carry
       nothing. The token NAMES are deliberately not renamed to --purple-*: they
       are threaded through ~40 rules and two HTML files, and a rename is a much
       larger and riskier diff than a colour change. The names are wrong; the
       colours are right. Renaming is a separate, mechanical job. */
:root {
  /* Warm paper + near-black ink. Distinct from the CRM's cream. */
  --paper:      #FAF7F2;
  --paper-2:    #F2ECE1;
  --surface:    #FFFFFF;
  --ink:        #17150F;
  --ink-2:      #5C554A;
  --ink-3:      #767063;   /* was #9C9284 (2.87 on paper) */
  --line:       #E7DFD2;
  --line-2:     #D8CDBB;

  /* One confident accent: periwinkle. Used sparingly and loud.
     FILLS AND DISPLAY ONLY, and now strictly: 3.45 on paper, 3.68 under white.
     For purple text at body size use --rouge-deep; for a fill that carries
     white use --rouge-solid. */
  --rouge:      #9575CD;
  --rouge-deep: #6A4CA6;   /* 6.15 on paper, 6.57 on white */
  --rouge-soft: #EFEBFB;
  --blush:      #EFEBFB;

  /* The accent as a block under white text. Ria's periwinkle at the same hue
     and saturation, 4.7 lightness points down -- the deepest it goes while
     clearing 4.5. Matches --accent-solid in the app so the CTA is one colour
     across the landing page, the auth pages and the product. */
  --rouge-solid: #8763C7;  /* white on it: 4.53 */

  /* A single warm-metal detail for the smallest editorial flourishes.
     --gold is non-text only (2.90 on paper). --gold-text if it must be read. */
  --gold:       #B98A3E;
  --gold-text:  #8A662E;   /* 4.89 on paper */

  --r:     18px;
  --r-sm:  11px;
  --r-lg:  30px;
  --r-pill:999px;

  --shadow:    0 2px 4px rgba(23,21,15,.04), 0 14px 40px rgba(23,21,15,.07);
  --shadow-lg: 0 30px 80px rgba(23,21,15,.16);
  --shadow-rouge: 0 18px 44px rgba(149,117,205,.30);

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Dark surface used by the auth brand panel and dark sections. */
.bb-dark {
  --paper:   #171410;
  --paper-2: #211C16;
  --surface: #201B15;
  --ink:     #F7F1E8;
  --ink-2:   #C3B8A8;
  --ink-3:   #9A8F7E;   /* raised from #8A7F70: 4.52 on the dark paper */
  --line:    #332C22;
  --line-2:  #443B2E;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.005em;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
a { color: var(--rouge-deep); text-decoration: none; }
/* Hover used to lighten to --rouge. That was already marginal under the rouge
   (4.44, just under the 4.5 it needed) and the periwinkle makes it 3.45: the
   hover state was quietly the least legible state of a link. A hover should add
   signal, not remove it, so it underlines and holds the colour. */
a:hover { color: var(--rouge-deep); text-decoration: underline; }
button { font-family: inherit; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* ---------- Wordmark ---------- */
.bb-word { font-family: var(--sans); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); display: inline-flex; align-items: baseline; }
/* The ampersand takes --rouge-deep, not --rouge: it is a glyph of the wordmark
   read at body size, and the periwinkle on the warm paper is 3.45. Ria's call
   during the colour review, and the measurement agrees with her. */
.bb-word .amp { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--rouge-deep); padding: 0 .04em; letter-spacing: 0; }

/* The mark glyph: an italic serif ampersand with a beauty-spot dot. */
.bb-amark { position: relative; font-family: var(--serif); font-style: italic; line-height: 1; display: inline-block; }
.bb-amark::after { content: ''; position: absolute; top: .04em; right: -.05em; width: .15em; height: .15em; border-radius: 50%; background: currentColor; }
.bb-amark.b1 { -webkit-text-stroke: .6px currentColor; paint-order: stroke fill; }
.bb-amark.b2 { -webkit-text-stroke: 1.1px currentColor; paint-order: stroke fill; }

/* Monogram mark */
.bb-mark {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--ink); color: var(--paper);
  font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1;
}
/* --rouge-solid: a tile carrying a white glyph, same as .bbmark in the app.
   WCAG would exempt it as a logotype at 3.68, but the app's mark is 4.53 and a
   brand mark that changes shade between the landing page and the product is not
   one mark. */
.bb-mark.rouge { background: var(--rouge-solid); color: #fff; }
.bb-mark.big { width: 72px; height: 72px; border-radius: 19px; font-size: 36px; }

/* ---------- Buttons ---------- */
.bb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .25s var(--ease), color .18s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.bb-btn.primary { background: var(--rouge-solid); color: #fff; box-shadow: var(--shadow-rouge); }
.bb-btn.primary:hover { background: var(--rouge-deep); transform: translateY(-2px); color: #fff; }
.bb-btn.ink { background: var(--ink); color: var(--paper); }
.bb-btn.ink:hover { transform: translateY(-2px); color: var(--paper); }
.bb-btn.ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.bb-btn.ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.bb-btn.lg { padding: 17px 30px; font-size: 16.5px; }
.bb-btn.sm { padding: 10px 16px; font-size: 14px; }

.bb-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  background: var(--rouge-soft); color: var(--rouge-deep);
}
.bb-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bb-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--rouge-deep); }

/* ---------- Layout helpers ---------- */
.bb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.bb-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* ---------- Motion ---------- */
@keyframes bbFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes bbFloatSlow { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes bbMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bbShimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
@keyframes bbPop { 0% { transform: scale(.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes bbGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Scroll reveal: starts hidden, .in reveals. Delay set inline for stagger. */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-sc { opacity: 0; transform: scale(.96); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-sc.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-sc { opacity: 1 !important; transform: none !important; transition: none; }
  .bb-float, .bb-float-slow { animation: none !important; }
}
.bb-float { animation: bbFloat 6s var(--ease) infinite; }
.bb-float-slow { animation: bbFloatSlow 8s var(--ease) infinite; }

/* ============================================================
   Brand system page
   ============================================================ */
.bb-row-head { display: grid; grid-template-columns: 60px 1fr; gap: 8px 24px; align-items: baseline; margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.bb-row-head .idx { font-family: var(--serif); font-size: 22px; color: var(--rouge); }
.bb-row-head h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; }
.bb-row-head p { grid-column: 2; color: var(--ink-2); font-size: 16px; max-width: 60ch; }

.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.logo-cell { position: relative; min-height: 150px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; }
.logo-cell.dark { background: var(--ink); }
.logo-tag { position: absolute; top: 14px; left: 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.mark-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.mark-cell { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.mark-cap { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }

.swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.sw { border-radius: var(--r); min-height: 150px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; }
.sw-name { font-size: 14px; font-weight: 700; }
.sw-hex { font-size: 12px; font-variant-numeric: tabular-nums; opacity: .85; }

.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.type-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.type-meta { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-3); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.type-scale { font-size: 13px; color: var(--ink-2); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.comp-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }

@media (max-width: 860px) {
  .logo-grid, .type-grid, .comp-grid { grid-template-columns: 1fr; }
  .comp-card[style*="span 2"] { grid-column: auto !important; }
  .swatch-grid { grid-template-columns: repeat(3, 1fr); }
  .bb-row-head { grid-template-columns: 1fr; }
  .bb-row-head p { grid-column: 1; }
}

/* ---------- Grain / texture overlay ---------- */
.bb-grain::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
}

/* ============================================================
   Landing page
   ============================================================ */
.bb-nav { position: sticky; top: 0; z-index: 50; padding: 16px 0; background: rgba(250,247,242,.82); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-links { display: flex; gap: 26px; margin-left: 34px; }
.nav-links a { color: var(--ink-2); font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }
.nav-login { color: var(--ink); font-weight: 700; font-size: 15px; }
/* Once signed in the button already says "Dashboard", so this text link is a
   duplicate — and on a phone the two together overran the header to the right.
   Hidden when authed at every width; logged-out visitors still get "Log in". */
body.bb-authed .nav-login { display: none; }

.hero { padding: 70px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-note { font-size: 13.5px; color: var(--ink-3); font-weight: 600; margin-top: 20px; }

.hero-art { position: relative; }
.art-window { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.aw-bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.aw-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.aw-title { margin-left: 10px; font-family: var(--serif); font-size: 17px; }
.aw-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.aw-tile { background: var(--rouge-soft); border: 1px solid var(--rouge-soft); border-radius: 14px; padding: 16px 18px; }
.aw-tile-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rouge-deep); }
.aw-tile-val { font-family: var(--serif); font-size: 40px; line-height: 1; margin: 6px 0 12px; color: var(--ink); }
.aw-bar-track { height: 7px; border-radius: 999px; background: rgba(161,30,48,.16); overflow: hidden; }
.aw-bar-track span { display: block; height: 100%; background: var(--rouge); border-radius: 999px; }
.aw-mini { display: flex; justify-content: space-between; align-items: center; background: var(--paper-2); border-radius: 12px; padding: 12px 15px; font-weight: 700; }
.aw-mini-l { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.aw-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; }
.aw-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.aw-row-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.aw-row-txt b { font-size: 14px; }
.aw-row-txt span { font-size: 12px; color: var(--ink-3); }
.aw-chip { margin-left: auto; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.aw-chip.ok { background: #E4F0E8; color: #2f6b45; }
.float-chip { position: absolute; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px; padding: 10px 16px; font-size: 13.5px; font-weight: 700; }
.chip-1 { top: 8%; left: -6%; color: #2f6b45; }
.chip-2 { bottom: 12%; right: -5%; color: var(--rouge-deep); }

.marquee-wrap { margin: 40px 0 10px; text-align: center; }
.marquee-label { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; align-items: center; gap: 30px; white-space: nowrap; animation: bbMarquee 26s linear infinite; font-family: var(--serif); font-size: 30px; color: var(--ink); }
.marquee-track .sep { color: var(--rouge); font-size: 16px; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 56px auto; }
.stat { text-align: center; }
.stat-num { font-family: var(--serif); font-size: clamp(44px, 6vw, 72px); line-height: 1; color: var(--ink); }
.stat-cap { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

.section { padding-block: 80px; }
.section-head { margin-bottom: 44px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; }
.feat-card.big { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: center; gap: 44px; }
.feat-card.big .fb-text { flex: 1; }
.feat-card.big .feat-demo.board { flex: 1.1; min-width: 300px; }
.feat-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--rouge-soft); color: var(--rouge-deep); font-size: 22px; margin-bottom: 20px; }
.feat-card h3 { font-size: 23px; margin-bottom: 10px; letter-spacing: -0.02em; }
.feat-card p { color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.feat-demo.board { display: flex; gap: 10px; }
.fd-col { flex: 1; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.fd-h { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.fd-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: 12.5px; font-weight: 600; }
.fd-card.rouge { background: var(--rouge-solid); border-color: var(--rouge-solid); color: #fff; }

.how-section { position: relative; background: var(--ink); padding: 90px 0; margin: 0; overflow: hidden; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 54px; }
.step { color: var(--paper); }
.step-n { font-size: 56px; color: var(--rouge); line-height: 1; }
.step h3 { font-size: 22px; margin: 16px 0 10px; color: var(--paper); }
.step p { color: rgba(247,241,232,.68); font-size: 16px; line-height: 1.6; }

.bill-toggle { display: inline-flex; gap: 4px; background: var(--paper-2); border-radius: 999px; padding: 5px; margin-top: 28px; }
.bt-btn { border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 14.5px; color: var(--ink-2); padding: 10px 20px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; transition: background .2s var(--ease), color .2s var(--ease); }
.bt-btn.on { background: var(--ink); color: var(--paper); }
/* --rouge-deep, not --rouge: this is 11px text, the smallest purple-on-lavender
   in the brand, and the accent gives it 3.15. It is the label that tells someone
   annual is cheaper, on the control where they choose -- it has to be readable
   at the moment it is doing its only job. (This was 4.06 under the rouge, so it
   was already under the bar; the periwinkle just made it obvious.) */
.bt-btn .save { font-size: 11px; font-weight: 700; color: var(--rouge-deep); background: var(--rouge-soft); padding: 2px 7px; border-radius: 999px; }
.bt-btn.on .save { color: #fff; background: var(--rouge-solid); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; align-items: start; }
.price-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.price-card.popular { border-color: var(--rouge); box-shadow: var(--shadow-rouge); }
.pc-flag { position: absolute; top: -13px; left: 32px; background: var(--rouge-solid); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; }
.pc-name { font-family: var(--serif); font-size: 26px; }
.pc-desc { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; min-height: 42px; }
.pc-price { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; margin-top: 14px; }
.pc-price span:first-child { font-variant-numeric: tabular-nums; }
.pc-per { font-size: 16px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.pc-billed { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.pc-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 11px; }
.pc-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--ink); }
.pc-list li::before { content: '✓'; position: absolute; left: 0; color: var(--rouge); font-weight: 800; }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; margin: 0; }
.quote-card blockquote { margin: 0; font-size: 23px; line-height: 1.35; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.q-av { width: 40px; height: 40px; border-radius: 50%; background: var(--blush); color: var(--rouge-deep); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.quote-card figcaption b { display: block; font-size: 14.5px; }
.quote-card figcaption span { font-size: 13px; color: var(--ink-3); }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 20px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 17px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq .fq-x { position: relative; width: 15px; height: 15px; flex: none; }
.faq .fq-x::before, .faq .fq-x::after { content: ''; position: absolute; background: var(--rouge); border-radius: 2px; transition: transform .25s var(--ease); }
.faq .fq-x::before { top: 6px; left: 0; width: 15px; height: 2.5px; }
.faq .fq-x::after { left: 6px; top: 0; width: 2.5px; height: 15px; }
.faq details[open] .fq-x::after { transform: rotate(90deg); opacity: 0; }
.faq details p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; padding: 0 0 20px; margin: 0; max-width: 60ch; }

.founder { padding-top: 40px; }
.founder-sign { display: flex; align-items: center; justify-content: center; gap: 11px; margin-top: 26px; font-weight: 700; color: var(--ink-2); }

.cta-section { position: relative; margin: 40px 24px; border-radius: var(--r-lg); padding: 100px 24px; background: radial-gradient(120% 140% at 50% 0%, #E24455 0%, var(--rouge) 42%, var(--rouge-deep) 100%); overflow: hidden; }

.bb-footer { padding: 46px 0 60px; border-top: 1px solid var(--line); }
.bb-footer a { color: var(--ink-2); }
.bb-footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { margin-top: 30px; }
  .nav-links { display: none; }
  .feat-grid, .price-grid, .quote-grid, .steps, .stats-row { grid-template-columns: 1fr; }
  /* .price-grid.two beats a bare .price-grid on specificity, so the two-plan
     grid ignored the stack-to-one rule above and stayed two 380px cards jammed
     into a phone. Match its specificity here so it collapses like the rest. */
  .price-grid.two { grid-template-columns: 1fr; max-width: 420px; }
  .feat-card.big { grid-row: auto; flex-direction: column; align-items: stretch; gap: 26px; }
  .float-chip { display: none; }
}

/* ============================================================
   Auth
   ============================================================ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.02fr .98fr; }
.auth-brand { position: relative; overflow: hidden; padding: 54px; display: flex; flex-direction: column; background: var(--paper); }
.ab-glow { position: absolute; width: 620px; height: 620px; border-radius: 50%; top: -180px; right: -220px; background: radial-gradient(circle, rgba(149,117,205,.55), transparent 62%); filter: blur(20px); z-index: 0; }
.ab-amp { position: absolute; bottom: -80px; left: -20px; font-size: 400px; line-height: 1; color: rgba(255,255,255,.04); z-index: 0; }
.ab-list { display: flex; flex-direction: column; gap: 14px; margin-top: 34px; }
.ab-item { display: flex; align-items: center; gap: 12px; color: rgba(247,241,232,.86); font-size: 16px; font-weight: 500; }
.ab-tick { width: 24px; height: 24px; border-radius: 50%; background: var(--rouge-solid); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.ab-quote { position: relative; z-index: 1; display: flex; gap: 13px; align-items: flex-start; padding-top: 26px; border-top: 1px solid var(--line); }
.ab-quote p { color: rgba(247,241,232,.9); font-size: 14.5px; line-height: 1.5; }
.ab-quote b { color: var(--ink-3); font-weight: 700; font-size: 12.5px; }

.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 40px; background: var(--paper); }
.auth-card { width: 100%; max-width: 424px; }
.auth-back { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 26px; }
.auth-back:hover { color: var(--ink); }
.auth-tabs { display: flex; gap: 4px; background: var(--paper-2); border-radius: 999px; padding: 5px; margin-bottom: 28px; }
.auth-tab { flex: 1; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 14.5px; color: var(--ink-2); padding: 10px 18px; border-radius: 999px; transition: background .2s var(--ease), color .2s var(--ease); }
.auth-tab.on { background: var(--ink); color: var(--paper); }
.bb-field { display: block; margin-bottom: 16px; }
.bb-field > span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.bb-input { width: 100%; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15.5px; }
.bb-input::placeholder { color: var(--ink-3); }
.bb-input:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 3px var(--rouge-soft); }
.auth-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px; cursor: pointer; }
.auth-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--rouge); flex: none; }
.auth-check span { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.auth-or { position: relative; text-align: center; margin: 20px 0; }
.auth-or::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.auth-or span { position: relative; background: var(--paper); padding: 0 14px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.auth-fine { font-size: 14px; color: var(--ink-2); text-align: center; margin-top: 24px; }
.auth-swap { border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; color: var(--rouge-deep); }
.auth-swap:hover { color: var(--rouge); }
.auth-terms { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 16px; }

@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}

/* ============================================================
   Logo / monogram exploration board
   ============================================================ */
.lg-head { padding: 56px 0 30px; }
.lg-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.lg-id { position: absolute; top: 16px; left: 18px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--paper); background: var(--ink); border-radius: 7px; padding: 3px 9px; z-index: 2; }
.lg-id.rec { background: var(--rouge); }
.lg-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 210px; position: relative; }
.lg-stage { display: grid; place-items: center; padding: 30px; }
.lg-stage.paper { background: var(--paper); }
.lg-stage.ink { background: var(--ink); }
.lg-foot { padding: 20px 22px 22px; border-top: 1px solid var(--line); }
.lg-foot h3 { font-size: 17px; margin-bottom: 5px; }
.lg-foot p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.lg-icons { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.lg-icons .cap { font-size: 11px; color: var(--ink-3); font-weight: 600; margin-left: auto; }

/* Mark sizes / variants */
.bb-mark.xl  { width: 128px; height: 128px; border-radius: 32px; font-size: 66px; }
.bb-mark.lg2 { width: 92px;  height: 92px;  border-radius: 23px; font-size: 46px; }
.bb-mark.sm2 { width: 44px;  height: 44px;  border-radius: 12px; font-size: 22px; }
.bb-mark.xs2 { width: 28px;  height: 28px;  border-radius: 8px;  font-size: 15px; }
.bb-mark.ring { background: transparent; border: 2px solid currentColor; }
.bb-mark.paper-fill { background: var(--paper); color: var(--ink); }

/* Ampersand-led mark */
.mk-amp { font-family: var(--serif); font-style: italic; line-height: 1; }

/* Mirror B&B */
.mk-mirror { display: inline-flex; font-family: var(--serif); font-style: italic; line-height: 1; }
.mk-mirror span { display: block; }
.mk-mirror .a { color: var(--ink); }
.mk-mirror .b { color: var(--rouge); transform: scaleX(-1); margin-left: -0.30em; }

/* Dot-B: bold sans B with a rouge beauty-dot */
.mk-dot { position: relative; font-family: var(--sans); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.mk-dot .d { color: var(--rouge); }

/* Stacked lockup */
.mk-stack { display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* Favicon strip */
.fav-strip { display: flex; align-items: flex-end; gap: 16px; }

@media (max-width: 980px) { .lg-board { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .lg-board { grid-template-columns: 1fr; } }

/* ---------- A vs E head-to-head ---------- */
.ae-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ae-col { display: flex; flex-direction: column; gap: 16px; }
.ae-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.ae-title .k { font-family: var(--serif); font-size: 30px; color: var(--rouge); }
.ae-title h3 { font-size: 22px; }
.ae-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); position: relative; padding: 34px; display: grid; place-items: center; min-height: 180px; }
.ae-tile.ink { background: var(--ink); }
.ae-tile.rouge { background: var(--rouge); }
.ae-lbl { position: absolute; top: 12px; left: 14px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ae-tile.ink .ae-lbl, .ae-tile.rouge .ae-lbl { color: rgba(255,255,255,.6); }
.ae-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ae-icons { display: flex; align-items: flex-end; gap: 14px; }
.ae-clear { border: 1px dashed var(--line-2); border-radius: 12px; padding: 26px; display: inline-grid; place-items: center; }

/* Round-dot B (refined E) */
.mk-dotb { font-family: var(--sans); font-weight: 800; line-height: 1; letter-spacing: -0.03em; display: inline-flex; align-items: baseline; }
.mk-dotb .rd { display: inline-block; width: .17em; height: .17em; border-radius: 50%; background: var(--rouge); margin-left: .05em; }

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

/* Ampersand weight tweaks (paint-order keeps the stroke from muddying the counters) */
.mk-amp { paint-order: stroke fill; }
.mk-amp.b1 { -webkit-text-stroke: 0.6px currentColor; }
.mk-amp.b2 { -webkit-text-stroke: 1.1px currentColor; }
.mk-amp.b3 { -webkit-text-stroke: 1.7px currentColor; }
.amp-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.amp-cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; text-align: center; position: relative; }
.amp-cell.pick { border-color: var(--rouge); box-shadow: var(--shadow-rouge); }
.amp-cell .amp-lbl { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 18px; }
.amp-cell .amp-lbl b { color: var(--rouge); }
.amp-cell .amp-mini { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .amp-row { grid-template-columns: 1fr 1fr; } }

/* Ampersand + MUA concept board */
.idea-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.idea-cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; text-align: center; position: relative; }
.idea-cell.pick { border-color: var(--rouge); box-shadow: var(--shadow-rouge); }
.idea-stage { min-height: 156px; display: grid; place-items: center; }
.idea-name { font-weight: 700; font-size: 14.5px; margin-top: 14px; }
.idea-name b { color: var(--rouge); }
.idea-desc { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.idea-mini { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Concept: makeup swatch behind the & */
.amp-swatch { position: relative; display: inline-grid; place-items: center; line-height: 1; }
.amp-swatch .sw { position: absolute; z-index: 0; width: 1.5em; height: .66em; left: 50%; top: 54%; transform: translate(-50%,-50%) rotate(-11deg); border-radius: 62% 54% 52% 58% / 66% 60% 42% 46%; background: linear-gradient(95deg, rgba(149,117,205,0), var(--blush) 26%, var(--rouge-soft) 68%, rgba(149,117,205,0)); filter: blur(.4px); }
.amp-swatch .g { position: relative; z-index: 1; }
.bb-mark.clip { overflow: hidden; }

/* Concept: beauty spot */
.amp-spot { position: relative; display: inline-block; line-height: 1; }
.amp-spot .spot { position: absolute; top: .1em; right: -.02em; width: .13em; height: .13em; border-radius: 50%; background: var(--rouge); }

/* Concept: blended ombre fill */
.mk-amp.blend { background: linear-gradient(155deg, var(--rouge) 30%, #C1B6F2); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 0; }

@media (max-width: 820px) { .idea-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Peek-inside showcase ---------- */
.showcase { position: relative; background: var(--paper-2); border-block: 1px solid var(--line); overflow: hidden; }
.sc-layout { display: grid; grid-template-columns: minmax(270px, .82fr) 1.18fr; gap: 60px; align-items: center; }
.sc-intro .bb-eyebrow { color: var(--rouge); }
.sc-intro h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 54px); line-height: 1.02; margin-top: 16px; }
.sc-intro p { color: var(--ink-2); font-size: 18px; line-height: 1.6; margin-top: 20px; max-width: 40ch; }
.sc-ticks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sc-ticks li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.sc-ticks .tk { width: 26px; height: 26px; border-radius: 8px; background: var(--rouge-soft); color: var(--rouge-deep); display: grid; place-items: center; font-size: 13px; flex: none; }

/* Overlapping cluster */
.sc-cluster { position: relative; min-height: 500px; }
.sc-cluster .mock { position: absolute; }
.mock-inbox { width: 60%; left: 4%; top: 40px; z-index: 2; transform: rotate(-2deg); }
.mock-diary { width: 46%; right: 0; top: 0; z-index: 3; transform: rotate(3deg); }
.mock-quote { width: 50%; left: 20%; bottom: 0; z-index: 4; transform: rotate(-3deg); }

/* Generic mini app window */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.mock-bar .aw-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mock-bar .mb-title { margin-left: 9px; font-family: var(--serif); font-size: 16px; }
.mock-bar .mb-tag { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mock-body { padding: 16px; display: flex; flex-direction: column; gap: 11px; }

/* Inbox mock */
.im-banner { display: flex; align-items: center; gap: 10px; background: var(--rouge-soft); color: var(--rouge-deep); border-radius: 12px; padding: 11px 14px; font-size: 13px; font-weight: 600; }
.im-banner .im-ai { font-family: var(--serif); font-size: 15px; }
.im-row { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.im-row.hot { border-color: var(--rouge); box-shadow: 0 6px 20px rgba(161,30,48,.10); }
.im-av { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.im-txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.im-txt b { font-size: 13.5px; }
.im-txt span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-flag { margin-left: auto; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--rouge-solid); color: #fff; white-space: nowrap; }
.im-flag.mute { background: var(--paper-2); color: var(--ink-3); }

/* Right column stack */
.sc-col { display: flex; flex-direction: column; gap: 26px; }

/* Diary mock */
.dm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.dm-dow { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding-bottom: 2px; }
.dm-cell { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--paper-2); position: relative; }
.dm-cell.dim { color: var(--ink-3); opacity: .5; background: transparent; }
.dm-cell.wed { background: var(--rouge-solid); color: #fff; }
.dm-cell.trial { background: #E4F0E8; color: #2f6b45; }
.dm-cell.shoot { background: #EAE3F3; color: #5b3b8c; }
.dm-key { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.dm-key span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.dm-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Quote / deposit mock */
.qm-head { display: flex; align-items: baseline; justify-content: space-between; }
.qm-head .qm-ref { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.qm-head .qm-stamp { font-size: 11px; font-weight: 700; color: #2f6b45; background: #E4F0E8; padding: 4px 10px; border-radius: 999px; }
.qm-line { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--ink-2); padding: 8px 0; border-bottom: 1px dashed var(--line); }
.qm-line b { color: var(--ink); font-weight: 700; }
.qm-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; }
.qm-total .ql { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.qm-total .qv { font-family: var(--serif); font-size: 32px; color: var(--ink); line-height: 1; }
.qm-dep { display: flex; align-items: center; gap: 10px; background: var(--rouge-soft); border-radius: 12px; padding: 12px 14px; margin-top: 4px; }
.qm-dep .qd-l { font-size: 12.5px; font-weight: 600; color: var(--rouge-deep); }
.qm-dep .qd-v { margin-left: auto; font-family: var(--serif); font-size: 18px; color: var(--rouge-deep); }

/* Floating chips for showcase */
.sc-cluster .float-chip { z-index: 6; }
.sc-chip-1 { top: 12px; right: 6%; color: #2f6b45; }
.sc-chip-2 { bottom: 8%; left: -2%; color: var(--rouge-deep); }

@media (max-width: 940px) {
  .sc-layout { grid-template-columns: 1fr; gap: 40px; }
  .sc-cluster { min-height: 0; display: flex; flex-direction: column; gap: 20px; }
  .sc-cluster .mock { position: static; width: 100%; transform: none; }
  .sc-cluster .float-chip { display: none; }
}
