/* ==========================================================================
   CaseHub — landing pública (neumórfica)
   Token layer mirrors static/brand-kit/tokens.css. Drop-in: replace these
   :root values with @import of the real tokens.css when wiring into the repo.
   Nothing here hardcodes a palette outside the Brand Kit values.
   ========================================================================== */

:root {
  /* Brand */
  --ch-brand-primary:   #008C4D;  /* green-dark  */
  --ch-brand-primary-2: #6FBE54;  /* green       */
  --ch-brand-secondary: #1E4890;  /* blue        */
  --ch-brand-secondary-2:#2552A8; /* blue-bright */
  --ch-brand-navy:      #001F3E;
  --ch-brand-highlight: #DBE64C;  /* pollen      */
  --ch-brand-ink:       #0B1426;
  --ch-brand-paper:     #FAFBF7;

  /* Neumorphic mineral base */
  --ch-neu-bg:             #E9ECE2;
  --ch-neu-surface:        #ECEEE6;
  --ch-neu-surface-raised: #F1F3EC;
  --ch-neu-surface-sunken: #E2E5DA;
  --ch-neu-shadow-light:   rgba(255,255,255,0.5);
  --ch-neu-shadow-dark:    rgba(151,161,134,0.45);

  /* Composite shadow recipes */
  --ch-neu-raised:
    -7px -7px 16px var(--ch-neu-shadow-light),
     7px  7px 18px var(--ch-neu-shadow-dark);
  --ch-neu-raised-tight:
    -4px -4px 9px var(--ch-neu-shadow-light),
     4px  4px 10px var(--ch-neu-shadow-dark);
  --ch-neu-raised-xs:
    -2px -2px 5px var(--ch-neu-shadow-light),
     2px  2px 6px var(--ch-neu-shadow-dark);
  --ch-neu-pressed:
    inset 5px 5px 11px var(--ch-neu-shadow-dark),
    inset -5px -5px 11px var(--ch-neu-shadow-light);
  --ch-neu-pressed-xs:
    inset 2px 2px 5px var(--ch-neu-shadow-dark),
    inset -2px -2px 5px var(--ch-neu-shadow-light);

  /* Radii — moderate, per Brand Kit */
  --ch-radius-sm:   8px;
  --ch-radius-md:  14px;
  --ch-radius-lg:  20px;
  --ch-radius-xl:  28px;
  --ch-radius-pill: 999px;

  /* Space */
  --ch-space-1: 4px;
  --ch-space-2: 8px;
  --ch-space-3: 12px;
  --ch-space-4: 16px;
  --ch-space-6: 24px;
  --ch-space-8: 32px;
  --ch-space-12: 48px;
  --ch-space-16: 64px;
  --ch-space-24: 96px;

  /* Motion — organic 150–220ms */
  --ch-motion-fast: 150ms;
  --ch-motion-base: 200ms;
  --ch-ease-organic: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Type */
  --ch-sans: "Maven Pro", -apple-system, system-ui, sans-serif;
  --ch-display: "Instrument Sans", "Maven Pro", sans-serif;
  --ch-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ch-neu-bg); }
body {
  margin: 0;
  font-family: var(--ch-sans);
  color: var(--ch-brand-ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* Subtle mineral grain so the base never reads as flat fill */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.38  0 0 0 0 0.30  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.05;
  mix-blend-mode: multiply;
}

/* ---- Logo (mask-recolored so brand color is guaranteed) ------------------ */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 30px; height: 32px; flex: none; display: block; }
.brand-word { height: 21px; width: auto; display: block; }
.dark-only { display: none; }
[data-theme="dark"] .light-only { display: none; }
[data-theme="dark"] .dark-only { display: block; }

/* ---- Neu utilities ------------------------------------------------------- */
.neu-raised { background: var(--ch-neu-surface); box-shadow: var(--ch-neu-raised); }
.neu-raised-sm { background: var(--ch-neu-surface); box-shadow: var(--ch-neu-raised-tight); }
.neu-raised-xs { background: var(--ch-neu-surface); box-shadow: var(--ch-neu-raised-xs); }
.neu-pressed { background: var(--ch-neu-surface-sunken); box-shadow: var(--ch-neu-pressed); }
.neu-pressed-xs { background: var(--ch-neu-surface-sunken); box-shadow: var(--ch-neu-pressed-xs); }

/* ---- Typography atoms ---------------------------------------------------- */
.eyebrow {
  font-family: var(--ch-mono);
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #00733F; font-weight: 600;
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ch-brand-primary); flex: none;
}
.eyebrow.blue { color: var(--ch-brand-secondary); }
.eyebrow.blue::before { background: var(--ch-brand-secondary); }

h1, h2, h3 { font-family: var(--ch-display); font-weight: 700; letter-spacing: -0.025em; color: var(--ch-brand-navy); margin: 0; }
.lead { color: var(--ch-graphite, #4a4f4a); font-size: 1.0625rem; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  font-family: var(--ch-sans); font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; border-radius: var(--ch-radius-pill);
  padding: 13px 24px; display: inline-flex; align-items: center; gap: 9px;
  transition: transform var(--ch-motion-fast) var(--ch-ease-organic),
              box-shadow var(--ch-motion-base) var(--ch-ease-organic);
  min-height: 46px;
  white-space: nowrap;
}
.btn-primary {
  color: var(--ch-brand-paper);
  background: linear-gradient(135deg, var(--ch-brand-primary-2), var(--ch-brand-primary) 70%);
  box-shadow: -5px -5px 12px var(--ch-neu-shadow-light),
               5px 5px 14px rgba(0,108,60,0.32);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: -5px -5px 12px var(--ch-neu-shadow-light), 6px 8px 18px rgba(0,108,60,0.4); }
.btn-primary:active { transform: translateY(0); box-shadow: inset 3px 3px 8px rgba(0,80,44,0.5), inset -3px -3px 8px rgba(255,255,255,0.18); }
.btn-ghost {
  color: var(--ch-brand-navy);
  background: var(--ch-neu-surface);
  box-shadow: var(--ch-neu-raised-tight);
}
.btn-ghost:hover { transform: translateY(-1px); }
.btn-ghost:active { box-shadow: var(--ch-neu-pressed-xs); transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }

/* ---- Chips / tags -------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: #3c4138;
  padding: 8px 14px; border-radius: var(--ch-radius-pill);
  background: var(--ch-neu-surface-sunken);
  box-shadow: var(--ch-neu-pressed-xs);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.chip-ic { width: 17px; height: 17px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.chip-ic svg { width: 17px; height: 17px; display: block; }
.chip-ic img { width: 17px; height: 17px; display: block; object-fit: contain; }
.ci-wa { color: #1FA463; }
.ci-drive { color: var(--ch-brand-secondary); }
.ci-docs { color: var(--ch-brand-secondary-2); }
.ci-cal { color: var(--ch-brand-primary); }
.ci-gmail { color: var(--ch-brand-secondary); }

/* ---- Layout shell -------------------------------------------------------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ===== NAV ================================================================ */
.nav-outer { position: sticky; top: 0; z-index: 40; padding: 16px 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px 8px 18px; border-radius: var(--ch-radius-pill);
  background: var(--ch-neu-surface); box-shadow: var(--ch-neu-raised-tight);
  backdrop-filter: blur(6px);
}
.nav-links { display: flex; align-items: center; gap: 1px; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: #41463d; padding: 8px 11px;
  border-radius: var(--ch-radius-pill); transition: color var(--ch-motion-fast), background var(--ch-motion-fast); white-space: nowrap;
}
.nav-links a:hover { color: var(--ch-brand-navy); background: var(--ch-neu-surface-sunken); box-shadow: var(--ch-neu-pressed-xs); }
.nav-right { display: flex; align-items: center; gap: 7px; }
.only-mobile { display: none; }
.nav-burger { display: none; width: 38px; height: 38px; flex: none; border: none; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border-radius: var(--ch-radius-pill); background: var(--ch-neu-surface); box-shadow: var(--ch-neu-raised-xs); }
.nav-burger span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--ch-brand-navy); transition: transform var(--ch-motion-fast) var(--ch-ease-organic), opacity var(--ch-motion-fast); }
.nav.nav-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav .btn-primary { padding: 10px 17px; min-height: 40px; font-size: 14px; }
.nav-login { font-size: 14px; font-weight: 600; color: var(--ch-brand-secondary); padding: 9px 12px; border-radius: var(--ch-radius-pill); white-space: nowrap; }
.nav-login:hover { background: var(--ch-neu-surface-sunken); box-shadow: var(--ch-neu-pressed-xs); }
.theme-toggle {
  width: 38px; height: 38px; flex: none; border: none; cursor: pointer;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ch-neu-surface-sunken); box-shadow: var(--ch-neu-pressed-xs);
  color: var(--ch-brand-secondary);
  transition: box-shadow var(--ch-motion-base) var(--ch-ease-organic), color var(--ch-motion-fast);
}
.theme-toggle:hover { box-shadow: var(--ch-neu-raised-xs); color: var(--ch-brand-navy); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
.nav-dev {
  font-family: var(--ch-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ch-brand-paper); padding: 9px 15px; border-radius: var(--ch-radius-pill);
  background: linear-gradient(180deg, var(--ch-brand-secondary) 0%, var(--ch-brand-navy) 100%);
  box-shadow: -3px -3px 8px var(--ch-neu-shadow-light), 4px 5px 13px rgba(0,31,62,0.34), inset 1px 1px 0 rgba(255,255,255,0.10);
  transition: transform var(--ch-motion-fast) var(--ch-ease-organic), box-shadow var(--ch-motion-base) var(--ch-ease-organic);
}
.nav-dev::before { content: "</>"; color: var(--ch-brand-highlight); margin-right: 7px; }
.nav-dev:hover { transform: translateY(-1px); box-shadow: -3px -3px 8px var(--ch-neu-shadow-light), 5px 7px 16px rgba(0,31,62,0.42), inset 1px 1px 0 rgba(255,255,255,0.12); }
.nav-dev:active { transform: translateY(0); box-shadow: inset 2px 2px 6px rgba(0,16,33,0.6), inset -2px -2px 6px rgba(255,255,255,0.10); }

/* ===== HERO =============================================================== */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(64px, 9vw, 116px); line-height: 0.92; margin: 18px 0 0;
  background: linear-gradient(120deg, var(--ch-brand-navy) 0%, var(--ch-brand-secondary) 60%, var(--ch-brand-primary) 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 19px; line-height: 1.55; color: #3d423a; max-width: 30ch; margin: 22px 0 0; }
.hero-sub strong { color: var(--ch-brand-navy); font-weight: 600; }
.hero-integrations { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 30px 0 0; }
.hero-login-note { font-size: 13.5px; color: #565c52; margin: 18px 0 0; }
.hero-login-note a { color: var(--ch-brand-secondary); font-weight: 600; border-bottom: 1px solid rgba(30,72,144,0.3); }

/* ---- Hero ambient gradient (grainy, fades to white on scroll) ----------- */
#hero-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 95% at 10% -8%, rgba(30,72,144,0.22) 0%, rgba(30,72,144,0) 54%),
    radial-gradient(115% 85% at 96% 4%, rgba(111,190,84,0.26) 0%, rgba(111,190,84,0) 50%),
    radial-gradient(90% 70% at 60% 0%, rgba(37,82,168,0.10) 0%, rgba(37,82,168,0) 60%),
    linear-gradient(180deg, rgba(111,190,84,0.10) 0%, rgba(255,255,255,0) 72%);
  transition: opacity .12s linear;
  will-change: opacity;
}
#hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.42; mix-blend-mode: multiply;
}
[data-theme="dark"] #hero-bg {
  background:
    radial-gradient(120% 95% at 10% -8%, rgba(37,82,168,0.40) 0%, rgba(37,82,168,0) 54%),
    radial-gradient(115% 85% at 96% 4%, rgba(111,190,84,0.30) 0%, rgba(111,190,84,0) 50%),
    linear-gradient(180deg, rgba(13,38,68,0.55) 0%, rgba(7,21,38,0) 72%);
}
[data-theme="dark"] #hero-bg::after { mix-blend-mode: screen; opacity: 0.10; }

/* ---- Hero dashboard mockup (synthetic data only) ------------------------- */
.mock {
  border-radius: var(--ch-radius-xl); padding: 18px;
  background: var(--ch-neu-surface); box-shadow: var(--ch-neu-raised);
  position: relative;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 4px 6px 14px; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ch-neu-surface-sunken); box-shadow: var(--ch-neu-pressed-xs); }
.mock-bar .mock-dot:nth-child(1) { background: #E0564A; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.mock-bar .mock-dot:nth-child(2) { background: #E8B84B; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.mock-bar .mock-dot:nth-child(3) { background: #5CB85C; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.mock-bar .mock-title { margin-left: 6px; font-family: var(--ch-mono); font-size: 11px; color: #565c52; letter-spacing: 0.04em; }
.mock-row { display: grid; gap: 12px; }
.mock-stats { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 14px; border-radius: var(--ch-radius-md); background: var(--ch-neu-surface-raised); box-shadow: var(--ch-neu-raised-tight); }
.stat .k { font-family: var(--ch-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #565c52; }
.stat .v { font-family: var(--ch-display); font-size: 27px; font-weight: 700; color: var(--ch-brand-navy); margin-top: 5px; line-height: 1; }
.stat .v small { font-size: 13px; font-weight: 600; color: var(--ch-brand-primary); }
.mock-panel { margin-top: 12px; padding: 14px; border-radius: var(--ch-radius-lg); background: var(--ch-neu-surface-sunken); box-shadow: var(--ch-neu-pressed); }
.mock-panel h4 { font-family: var(--ch-display); font-size: 13px; color: var(--ch-brand-navy); margin: 0 0 11px; display: flex; justify-content: space-between; align-items: center; }
.mock-panel h4 span { font-family: var(--ch-mono); font-size: 9.5px; color: var(--ch-brand-secondary); letter-spacing: 0.05em; }
.deadline { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--ch-radius-sm); background: var(--ch-neu-surface-raised); box-shadow: var(--ch-neu-raised-xs); margin-bottom: 8px; }
.deadline:last-child { margin-bottom: 0; }
.deadline .badge { width: 34px; height: 34px; flex: none; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--ch-mono); font-weight: 600; color: #fff; line-height: 1; }
.deadline .badge .d { font-size: 13px; }
.deadline .badge .m { font-size: 7px; letter-spacing: 0.08em; opacity: 0.85; }
.deadline .meta { flex: 1; min-width: 0; }
.deadline .meta .t { font-size: 12.5px; font-weight: 600; color: var(--ch-brand-navy); }
.deadline .meta .s { font-family: var(--ch-mono); font-size: 10px; color: #565c52; margin-top: 1px; }
.deadline .src { font-size: 9px; font-family: var(--ch-mono); padding: 3px 7px; border-radius: 999px; background: var(--ch-neu-surface-sunken); box-shadow: var(--ch-neu-pressed-xs); color: #565c52; }
.mock-foot { display: flex; gap: 8px; margin-top: 12px; }
.mini { flex: 1; padding: 10px 12px; border-radius: var(--ch-radius-md); background: var(--ch-neu-surface-raised); box-shadow: var(--ch-neu-raised-tight); display: flex; align-items: center; gap: 9px; }
.mini .ic { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.mini .ic svg { width: 14px; height: 14px; }
.mini .lab { font-size: 10px; font-family: var(--ch-mono); color: #565c52; letter-spacing: 0.04em; }
.mini .num { font-family: var(--ch-display); font-size: 16px; font-weight: 700; color: var(--ch-brand-navy); line-height: 1; }

/* ===== DEV SIDE TAB ======================================================= */
.dev-tab {
  position: fixed; top: 50%; right: 0; z-index: 45;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 16px 12px; min-height: 220px; min-width: 52px;
  border-radius: var(--ch-radius-md) 0 0 var(--ch-radius-md);
  background: linear-gradient(180deg, var(--ch-brand-secondary) 0%, var(--ch-brand-navy) 100%);
  color: var(--ch-brand-paper);
  box-shadow: -8px 0 22px rgba(0,31,62,0.28), inset 1px 1px 0 rgba(255,255,255,0.08);
  writing-mode: vertical-rl; text-orientation: mixed;
  transition: transform var(--ch-motion-base) var(--ch-ease-organic),
              opacity var(--ch-motion-base) var(--ch-ease-organic);
}
.dev-tab:hover { transform: translateY(-50%) translateX(-3px); }
.dev-tab.is-hidden { transform: translateY(-50%) translateX(110%); opacity: 0; pointer-events: none; }
.dev-tab .dt-label { font-size: 13px; font-weight: 500; line-height: 1.45; letter-spacing: 0.01em; max-height: 200px; }
.dev-tab .dt-label b { color: var(--ch-brand-highlight); font-weight: 600; }
.dev-tab .dt-icon {
  writing-mode: horizontal-tb; width: 28px; height: 28px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: rgba(255,255,255,0.08); color: var(--ch-brand-highlight);
  font-family: var(--ch-mono); font-size: 14px; font-weight: 600;
}

/* ===== SECTIONS =========================================================== */
.section { padding: 52px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 14px; line-height: 1.05; }
.section-head p { font-size: 17px; color: #4a4f46; margin: 14px 0 0; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
  padding: 26px; border-radius: var(--ch-radius-lg);
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(130% 140% at 12% 6%, #6FBE54 0%, #008C4D 34%, #1E4890 76%, #001F3E 118%);
  box-shadow: 6px 11px 26px rgba(0,31,62,0.26), inset 1px 1px 0 rgba(255,255,255,0.14);
  color: var(--ch-brand-paper);
  transition: transform var(--ch-motion-base) var(--ch-ease-organic);
}
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='170' height='170'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.05' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay; opacity: 0.5;
}
.feature > * { position: relative; z-index: 1; }
.feature:hover { transform: translateY(-3px); }
.feature .f-ic {
  width: 50px; height: 50px; border-radius: var(--ch-radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: #fff; background: rgba(255,255,255,0.15);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.32), inset -1px -1px 0 rgba(0,0,0,0.10);
}
.feature .f-ic svg { width: 23px; height: 23px; stroke: #fff; }
.feature h3 { font-size: 21px; color: #fff; }
.feature p { font-size: 15px; color: rgba(245,250,242,0.84); margin: 9px 0 0; }
.feature .f-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.feature .f-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(245,250,242,0.92); }
.feature .f-list li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: rgba(255,255,255,0.20);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

/* tinted icon helpers */
.ic-green { color: var(--ch-brand-primary); }
.ic-blue  { color: var(--ch-brand-secondary); }
.ic-navy  { color: var(--ch-brand-navy); }
.bg-green { background: var(--ch-brand-primary); }
/* WCAG AA: white text on the calendar badge needs a darker green (>=4.5:1) */
.deadline .badge.bg-green { background: #00733F; }
.bg-blue  { background: var(--ch-brand-secondary); }
.bg-navy  { background: var(--ch-brand-navy); }
.bg-pollen{ background: var(--ch-brand-highlight); }

/* Maestro — wide split card */
.maestro-inline { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.maestro-inline img { width: 0.95em; height: 0.95em; border-radius: 5px; box-shadow: var(--ch-neu-raised-xs); transform: translateY(0.04em); }
.maestro-eyebrow::before { display: none; }
.maestro-eyebrow { gap: 8px; }
.maestro-eyebrow img { width: 17px; height: 17px; border-radius: 5px; }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
  border-radius: var(--ch-radius-xl); background: var(--ch-neu-surface); box-shadow: var(--ch-neu-raised);
}
.split .s-copy {
  padding: 44px;
  background: linear-gradient(160deg, #0E2138 0%, #06101e 100%);
  color: #C5D2E0;
}
.split .s-copy h2 { color: #EAF1F8; }
.split .s-copy p { color: #9FB1C6 !important; }
.split .s-copy .maestro-eyebrow { color: var(--ch-brand-highlight); }
.split .s-copy .chip { background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09); color: #C5D2E0; }
.split .s-vis { padding: 32px; background: var(--ch-neu-surface-sunken); box-shadow: var(--ch-neu-pressed); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.maestro-msg { padding: 13px 15px; border-radius: var(--ch-radius-md); background: var(--ch-neu-surface-raised); box-shadow: var(--ch-neu-raised-tight); font-size: 13.5px; color: #3d423a; }
.maestro-msg.me { background: linear-gradient(135deg, var(--ch-brand-secondary), var(--ch-brand-navy)); color: var(--ch-brand-paper); margin-left: 32px; }
.maestro-msg .who { font-family: var(--ch-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; display: block; margin-bottom: 4px; }
.maestro-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.maestro-tags .chip { font-size: 11px; padding: 5px 11px; }
.maestro-turn { display: flex; gap: 10px; align-items: flex-start; }
.maestro-turn .maestro-av { width: 30px; height: 30px; border-radius: 50%; flex: none; margin-top: 2px; box-shadow: var(--ch-neu-raised-xs); }
.maestro-turn .maestro-msg { flex: 1; }
.maestro-turn .maestro-msg.me { margin-left: 0; flex: 1; }
.maestro-turn.mine { flex-direction: row-reverse; }

/* Acesso CTA band */
.cta-band {
  border-radius: var(--ch-radius-xl); padding: 52px; text-align: center;
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(125% 135% at 16% 6%, #6FBE54 0%, #008C4D 32%, #1E4890 74%, #001F3E 116%);
  box-shadow: 6px 11px 28px rgba(0,31,62,0.30), inset 1px 1px 0 rgba(255,255,255,0.14);
  color: var(--ch-brand-paper);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.05' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay; opacity: 0.5;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); color: var(--ch-brand-paper); }
.cta-band p { font-size: 17px; color: rgba(245,250,242,0.88); max-width: 52ch; margin: 16px auto 28px; }
.cta-band .eyebrow { color: var(--ch-brand-highlight); }
.cta-band .eyebrow::before { background: var(--ch-brand-highlight); }
.cta-band .hero-cta { justify-content: center; }
.cta-band .btn-primary { box-shadow: 0 9px 22px rgba(0,40,20,0.34); }
.cta-band .btn-ghost { box-shadow: 0 8px 18px rgba(0,31,62,0.22); }
.cta-band .btn-ghost { color: var(--ch-brand-navy); }

/* ===== FOOTER ============================================================= */
.foot { padding: 44px 0 56px; }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid rgba(0,31,62,0.10); }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h5 { font-family: var(--ch-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #565c52; margin: 0 0 14px; font-weight: 500; }
.foot-col a { display: block; font-size: 14px; color: #41463d; margin-bottom: 9px; }
.foot-col a:hover { color: var(--ch-brand-secondary); }
.foot-legal { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: #565c52; margin-top: 28px; }
.foot-by strong { color: var(--ch-brand-navy); font-weight: 600; }
.foot-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.foot-contact a, .foot-contact span { font-size: 13px; color: #5a5f55; }
.foot-contact a:hover { color: var(--ch-brand-secondary); }

/* ===== RESPONSIVE ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: clamp(56px, 16vw, 92px); }
  .hero-sub { max-width: none; }
  .split { grid-template-columns: 1fr; }
  .split .s-vis { order: -1; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .mock-stats { grid-template-columns: 1fr 1fr; }
  .cta-band, .split .s-copy { padding: 30px; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .dev-tab { display: none; }
  /* Hamburger nav */
  .nav-burger { display: flex; }
  .nav-right > .nav-dev, .nav-right > .nav-login, .nav-right > .btn-primary, .nav-right > .back { display: none; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 3px; padding: 12px;
    background: var(--ch-neu-surface); border-radius: var(--ch-radius-lg);
    box-shadow: var(--ch-neu-raised); z-index: 60;
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links a { width: 100%; padding: 13px 14px; font-size: 15px; border-radius: var(--ch-radius-md); }
  .nav-links .only-mobile { display: block; }
  .nav-links .mob-dev { font-family: var(--ch-mono); color: var(--ch-brand-secondary); }
  .nav-links .mob-cta { text-align: center; justify-content: center; margin-top: 6px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ===== DARK MODE ========================================================= */
[data-theme="dark"] {
  --ch-neu-bg:             #0A1A2E;
  --ch-neu-surface:        #0E2138;
  --ch-neu-surface-raised: #132A45;
  --ch-neu-surface-sunken: #081526;
  --ch-neu-shadow-light:   rgba(54,92,150,0.16);
  --ch-neu-shadow-dark:    rgba(0,5,13,0.62);
  --ch-brand-navy:         #EAF1F8;
  --ch-brand-ink:          #C5D2E0;
}
[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.06; }
[data-theme="dark"] .hero h1 {
  background: linear-gradient(120deg, #EAF1F8 0%, #6FBE54 72%, #2552A8 130%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .hero-sub { color: #9FB1C6; }
[data-theme="dark"] .hero-sub strong { color: #EAF1F8; }
[data-theme="dark"] .hero-login-note { color: #7f93aa; }
[data-theme="dark"] .hero-login-note a { color: var(--ch-brand-highlight); border-bottom-color: rgba(219,230,76,0.35); }
[data-theme="dark"] .nav-links a { color: #9FB1C6; }
[data-theme="dark"] .nav-links a:hover { color: #EAF1F8; }
[data-theme="dark"] .nav-login { color: var(--ch-brand-highlight); }
[data-theme="dark"] .nav-dev { background: linear-gradient(180deg, #1E4890 0%, #04101e 100%); color: #EAF1F8; }
[data-theme="dark"] .chip { color: #B9C7D8; }
[data-theme="dark"] .section-head p { color: #9FB1C6; }
[data-theme="dark"] .feature p,
[data-theme="dark"] .feature .f-list li { color: rgba(245,250,242,0.88); }
[data-theme="dark"] .maestro-msg { color: #C5D2E0; }
[data-theme="dark"] .maestro-msg.me { background: linear-gradient(135deg, #1E4890, #04101e); color: #EAF1F8; }
[data-theme="dark"] .cta-band p { color: rgba(245,250,242,0.88); }
[data-theme="dark"] .foot-col h5 { color: #6f8198; }
[data-theme="dark"] .foot-col a { color: #9FB1C6; }
[data-theme="dark"] .foot-col a:hover { color: var(--ch-brand-highlight); }
[data-theme="dark"] .foot-legal { color: #6f8198; }
[data-theme="dark"] .foot-contact a, [data-theme="dark"] .foot-contact span { color: #9FB1C6; }
[data-theme="dark"] .foot-inner { border-top-color: rgba(120,150,190,0.16); }
[data-theme="dark"] .foot > .wrap > .foot-inner > div > p { color: #7f93aa; }
[data-theme="dark"] .dev-tab { background: linear-gradient(180deg, #1E4890 0%, #04101e 100%); }
[data-theme="dark"] .eyebrow.blue { color: #6CA0E8; }
[data-theme="dark"] .eyebrow.blue::before { background: #6CA0E8; }
html { transition: background var(--ch-motion-base) var(--ch-ease-organic); }
.nav, .feature, .mock, .split, .cta-band, .chip, .btn-ghost, .theme-toggle, .nav-dev {
  transition: background var(--ch-motion-base) var(--ch-ease-organic),
              box-shadow var(--ch-motion-base) var(--ch-ease-organic),
              color var(--ch-motion-base) var(--ch-ease-organic);
}


/* ===== SCROLL REVEAL (shared by landing.html + dev.html) ==================
   Centralized here so the page templates stay clean. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ch-ease-organic), transform .6s var(--ch-ease-organic); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
