/* Foundry Digital AI brand layer, v2: Option C colour blocks (2026-11-23)
   Source of truth: Foundry Digital AI/brand/melautomates-brand-guide.md
   Loads LAST on every inner page, after base.css, site.css and v2-theme.css,
   and remaps the old tokens so older component CSS picks up the look.

   Colours: ink #1E2B35, sky #8CCBF2, sunshine #F9DF6B, sage #A8C49A,
   sand #F3EDE1, white, mist #E6EEF3 (body text on ink only).
   Type: Fraunces ExtraBold 800 headlines, key phrase <em> Italic 500; DM Sans. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,800;1,9..144,500;1,9..144,800&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --c-ink: #1E2B35;
  --c-sky: #8CCBF2;
  --c-sun: #F9DF6B;
  --c-sage: #A8C49A;
  --c-sand: #F3EDE1;
  --c-mist: #E6EEF3;
  --c-gap: 14px;
  --c-r: 32px;

  /* Old tokens remapped */
  --sky: #1E2B35;
  --sky-50: #F3EDE1;
  --sky-100: #8CCBF2;
  --sky-200: #8CCBF2;
  --sky-600: #1E2B35;
  --sky-700: #1E2B35;
  --sky-900: #1E2B35;
  --aqua: #F9DF6B;
  --aqua-50: #F3EDE1;
  --aqua-100: #F9DF6B;
  --aqua-600: #1E2B35;
  --aqua-700: #1E2B35;
  --navy: #1E2B35;
  --ink: #1E2B35;
  --white: #FFFFFF;
  --mist: #F3EDE1;
  --muted: #4F5D68;
  --border: rgba(30,43,53,.14);
  --border-strong: #1E2B35;
  --shadow-sky: none;
  --shadow-lg: none;
  --glow-navy: #1E2B35;
  --r-xl: 20px;
  --r-2xl: 32px;
  --island-w: calc(100% - 48px);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Sans', system-ui, sans-serif;
}

html, body, body.mesh-on { background: #FFFFFF; }
body { font-family: var(--font-body); color: var(--c-ink); }
a { color: var(--c-ink); }

/* Headlines: Fraunces ExtraBold, tight, one italic key phrase */
h1, h2, .h1, .h2, .page-hero h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: .96;
}
h1, .h1, .page-hero h1 { letter-spacing: -0.045em; line-height: .92; }
h1 em, h2 em, .h1 em, .h2 em { font-style: italic; font-weight: 500; }
h3, .h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }

/* Labels */
.eyebrow, .page-hero .eyebrow, .opB .eyebrow, .amt, .label-mono, .tag, .kicker {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; font-size: 13px; color: var(--c-ink);
}

/* Page hero: a sky tile */
.page-hero, body.mesh-on .page-hero {
  background: var(--c-sky); width: var(--island-w); margin: 0 auto var(--c-gap); border-radius: var(--c-r);
}
.page-hero h1 { color: var(--c-ink); max-width: 16ch; }
.page-hero h1 em { background: none; }
.page-hero .eyebrow, .page-hero .sub, .page-hero p { color: var(--c-ink); }
.page-hero .btn-ghost { border: 2px solid var(--c-ink); color: var(--c-ink); background: transparent; }
.page-hero .btn-ghost:hover { background: var(--c-ink); color: #FFFFFF; }

/* Buttons: one style, ink pill. On the ink tile it flips to sunshine. */
.btn { border-radius: 999px; font-family: var(--font-body); font-weight: 700; }
.btn-primary, .btn-sky, .btn.primary {
  background: var(--c-ink) !important; color: #FFFFFF !important; border-color: var(--c-ink) !important; box-shadow: none !important;
}
.btn-primary:hover, .btn-sky:hover, .btn.primary:hover { background: #2C3E4B !important; }
.btn-ghost { border: 2px solid var(--c-ink); color: var(--c-ink); }
.plan-card .btn-primary, .ink-tile .btn-primary {
  background: var(--c-sun) !important; color: var(--c-ink) !important; border-color: var(--c-sun) !important;
}

/* Text logo */
.brand-word { display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; color: var(--c-ink); white-space: nowrap; }
.brand-word b { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.brand-word i { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: 26px; letter-spacing: -0.02em; }

/* Nav: plain white bar */
.nav { background: rgba(255,255,255,.96); border-bottom: 0; box-shadow: none; }
.nav-links a:not(.btn) { color: var(--c-ink); font-weight: 700; }

/* Bands become sand tiles; the pedigree strip becomes a sage tile */
.sec.band, body.mesh-on .sec.band { background: var(--c-sand); width: var(--island-w); border-radius: var(--c-r); }
.pedigree, body.mesh-on .pedigree { background: var(--c-sage); border-radius: var(--c-r); }

/* Cards: white with a 2px ink outline; inside a sand tile, plain white */
.card, .svc-card, .term-card, .menu-item, .extra-card, .price-card, .plan, .tier {
  background: #FFFFFF; border: 2px solid var(--c-ink); border-radius: 20px; box-shadow: none !important;
}
.sec.band .card, .sec.band .svc-card, .sec.band .term-card, .sec.band .menu-item, .sec.band .extra-card { border-color: transparent; }

/* Dark tiles */
.plan-card { background: var(--c-ink); color: #FFFFFF; border-radius: var(--c-r); box-shadow: none; }
.plan-card p, .plan-card li { color: var(--c-mist); }
.plan-card .pl, .plan-card em { color: var(--c-sun); }

/* Closing call to action: a sunshine tile with ink text */
.ctaB, body.mesh-on .ctaB, .opB, body.mesh-on .opB {
  background: var(--c-sun); color: var(--c-ink); width: var(--island-w); border-radius: var(--c-r);
}
.ctaB h2, .opB h2, .ctaB p, .opB p, .ctaB .eyebrow, .opB .eyebrow, .ctaB a:not(.btn), .opB a:not(.btn) { color: var(--c-ink) !important; }
.ctaB h2 em, .opB h2 em { color: var(--c-ink); }

/* Footer: white, quiet */
.footer, body.mesh-on .footer { background: #FFFFFF; color: var(--c-ink); border-top: 2px solid var(--c-ink); }
.footer a, .footer p, .footer span, .footer .tagline, .footer a.fl, .footer .fl, .footer .footer-bottom, .footer .footer-bottom a { color: var(--c-ink); }
.footer h4, .footer .eyebrow, .footer .col-h { color: var(--c-ink); }

/* Fade-up on scroll (js/reveal.js adds .rv, then .rv-in when in view) */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rv-d, 0s); }
  .rv.rv-in { opacity: 1; transform: none; }
}

/* Phones */
@media (max-width: 768px) {
  :root { --c-r: 24px; --island-w: calc(100% - 24px); }
  .plan-card { padding: 32px 22px; min-width: 0; }
  .btn { white-space: normal; text-align: center; }
  .page-hero .btn, .ctaB .btn, .plan-card .btn { max-width: 100%; }
  .brand-word b, .brand-word i { font-size: 21px; }
  .footer, .footer * { min-width: 0; overflow-wrap: anywhere; }
  .footer .wrap > * { max-width: 100%; }
}

/* Small print inside the sunshine closing tile */
.ctaB .wa, .ctaB .wa b, .opB .wa, .opB .wa b { color: var(--c-ink) !important; }
