/* ============================================================
   Maneiro — Design System  (brand-aligned, light, 8px grid)
   Palette/typography/tokens per Maneiro Brand Guidelines v1.0.
   Product UI: Inter.  Display serif: Spectral.  Letters: Georgia.
   CANONICAL brand teal #9DCAC4 (Henry + Lidia confirmed) — soft sage-teal.
   White text never sits on raw brand teal; contrast comes from --teal-deep/-dark.
   Background #f6f8ff.
   ============================================================ */

:root {
  /* Brand teal system — keyed off canonical #9DCAC4 (soft sage-teal).
     Brand hue is light; anything carrying white text / small text on white
     uses the darker, contrast-safe shades (-deep for fills, -dark for text). */
  --teal:        #9dcac4;   /* CANONICAL brand teal — accents, borders, rings, soft identity */
  --teal-mid:    #7fb8b0;   /* mid step — gradients, avatar blends */
  --teal-deep:   #3f7a72;   /* contrast-safe FILL: primary buttons w/ white text (4.95:1) */
  --teal-hover:  #356b64;   /* button/link hover (6.11:1 on white) */
  --teal-dark:   #2c5953;   /* text/links/headings on white + dark-on-soft (7.89:1) */
  --teal-soft:   #eaf4f2;   /* tinted surface fill */
  --teal-softer: #f3f9f8;   /* faintest tint fill */
  --teal-glow:   rgba(157,202,196,.30);
  --teal-line:   #cfe6e1;

  /* Ink / neutrals */
  --ink:         #0f2e2a;   /* near-black with teal undertone */
  --text:        #14322e;
  --text-2:      #3f5a55;
  --muted:       #6b7d79;
  --muted-2:     #93a39f;
  --line:        #e3eaf2;
  --line-2:      #eef2f7;

  /* Surfaces */
  --bg:          #f6f8ff;   /* brand background */
  --bg-soft:     #fbfcff;
  --surface:     #ffffff;
  --surface-2:   #f3f6fb;

  /* Semantic */
  --green:       #3f7a72;
  --amber:       #d98a00;
  --amber-soft:  #fdf3e2;
  --red:         #dc4f43;
  --red-soft:    #fdecea;
  --blue:        #2f6df0;
  --blue-soft:   #eaf1fe;
  --violet:      #7c5cff;
  --violet-soft: #efeaff;

  /* Depth (brand shadows) */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 4px 12px -2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow-lg: 0 12px 24px -8px rgba(15,23,42,.10), 0 4px 10px -4px rgba(15,23,42,.05);
  --shadow-xl: 0 28px 60px -20px rgba(15,23,42,.18), 0 10px 24px -12px rgba(15,23,42,.10);

  /* Radius (brand) */
  --r-xs: 4px; --r-sm: 8px; --r-btn: 10px; --r: 12px; --r-lg: 16px; --r-xl: 22px; --pill: 9999px;

  /* Motion (brand) */
  --ease: cubic-bezier(.2,0,.38,.9);
  --fast: 120ms; --base: 180ms;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.5; font-size: 14px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--teal-glow); }

/* ---------- Type ---------- */
.display { font-family: var(--font-display); font-size: clamp(38px,5.8vw,72px); line-height:1.06; letter-spacing:-.02em; font-weight:600; color: var(--teal-dark); }
.h1 { font-family: var(--font-display); font-size: clamp(30px,4vw,48px); line-height:1.1; letter-spacing:-.018em; font-weight:600; color: var(--teal-dark); }
.h2 { font-family: var(--font-display); font-size: clamp(24px,3vw,38px); line-height:1.14; letter-spacing:-.015em; font-weight:600; color: var(--teal-dark); }
.h3 { font-size: 20px; line-height:1.25; letter-spacing:-.01em; font-weight:600; color: var(--teal-dark); }
.lead { font-size: clamp(17px,1.9vw,20px); line-height:1.5; color: var(--text-2); font-weight:400; }
.eyebrow { font-family: var(--font-display); font-size: 12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color: var(--teal-dark); }
.muted { color: var(--muted); }
.center { text-align:center; }
.grad-text { background: linear-gradient(100deg, var(--teal-deep), var(--teal-dark)); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* ---------- Buttons ---------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 18px;
  border-radius: 10px; font-size:13px; font-weight:600;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease, border-color 120ms ease; white-space:nowrap; cursor:pointer; }
.btn svg { width:16px; height:16px; stroke:currentColor; stroke-width:2; fill:none; }
.btn-primary { background: linear-gradient(180deg, rgba(156,208,197,1), rgba(118,185,173,1)); color:#fff; border:1px solid rgba(0,0,0,.06); box-shadow: 0 6px 18px rgba(156,208,197,.30); }
.btn-primary:hover { background: linear-gradient(180deg, rgba(156,208,197,1), rgba(118,185,173,1)); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(156,208,197,.35); }
.btn-primary:active { background: #0d9488; }
.btn-primary:disabled { opacity:.5; cursor:not-allowed; }
.btn-primary:focus-visible { outline:2px solid var(--teal-deep); outline-offset:2px; }
.btn-dark { background: var(--teal-dark); color:#fff; }
.btn-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--teal-soft); color: var(--teal-dark); }
.btn-ghost:hover { background: var(--teal-line); }
.btn-outline { background: var(--surface); border:1px solid var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--teal-line); background: var(--teal-softer); color: var(--teal-dark); }
.btn-sm { padding:8px 14px; font-size:13px; }
.btn-lg { padding:14px 28px; font-size:16px; }
.btn-link { color: var(--teal-dark); font-weight:600; display:inline-flex; align-items:center; gap:5px; }
.btn-link:hover { color: var(--teal-hover); }
.btn-block { width:100%; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin:0 auto; padding:0 24px; }
.section { padding: clamp(56px,9vw,112px) 0; }
.section-sm { padding: clamp(36px,6vw,64px) 0; }
.soft { background: var(--bg-soft); }
.tint { background: linear-gradient(180deg, var(--teal-softer), var(--bg)); }
.grid { display:grid; gap:24px; }
.cols-2 { grid-template-columns: repeat(2,1fr);} .cols-3 { grid-template-columns: repeat(3,1fr);} .cols-4 { grid-template-columns: repeat(4,1fr);}
@media (max-width:920px){ .cols-3,.cols-4 { grid-template-columns: repeat(2,1fr);} }
@media (max-width:720px){ .cols-2,.cols-3,.cols-4 { grid-template-columns:1fr;} }

/* ---------- Cards ---------- */
.card { background: var(--surface); border:1px solid var(--line); border-radius: var(--r-lg); padding:26px; }
.card-soft { background: var(--surface); border:1px solid var(--line-2); border-radius: var(--r-lg); padding:26px; box-shadow: var(--shadow-sm); }
.card-hover { transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease), border-color var(--base); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-line); }

.pill { display:inline-flex; align-items:center; gap:7px; height:28px; padding:0 12px; border-radius: var(--pill);
  background: var(--surface-2); color: var(--text-2); font-size:12px; font-weight:600; }
.pill.teal { background: var(--teal-soft); color: var(--teal-dark); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill .dot { width:7px; height:7px; border-radius:50%; background: currentColor; }

.feat-ico { width:46px; height:46px; border-radius:13px; display:flex; align-items:center; justify-content:center;
  background: var(--teal-soft); color: var(--teal-deep); margin-bottom:18px; }
.feat-ico svg { width:24px; height:24px; stroke:currentColor; stroke-width:1.8; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.feat-ico.violet { background: var(--violet-soft); color: var(--violet);} .feat-ico.blue { background: var(--blue-soft); color: var(--blue);} .feat-ico.amber { background: var(--amber-soft); color: var(--amber);}

/* Wordmark — lowercase teal per brand (no dot, no ".ai") */
.wordmark { font-family: var(--font-display); font-weight:600; font-size:22px; letter-spacing:-.02em; color: var(--teal-dark); }
.wordmark.on-dark { color:#fff; }

.ico { width:20px; height:20px; stroke:currentColor; stroke-width:1.8; fill:none; stroke-linecap:round; stroke-linejoin:round; }
