/* Bambuu landing page — tokens and specs from design handoff (docs/specs/landing-page-design.md) */

:root {
  /* Color — brand */
  --green-50: #F3F9EA;
  --green-100: #E4F1CE;
  --green-300: #B4DB78;
  --green-400: #9DCF54;
  --green-500: #8CC63F;
  --green-600: #6FA82B;
  --green-700: #557F22;
  --green-800: #3E5C1D;

  /* Color — action & accent */
  --action: #F68A3C;
  --action-hover: #EC7826;
  --orange-50: #FEF3E8;
  --orange-500: #EC7826;
  --magenta-50: #F8ECF8;   /* derived soft tint (not in handoff token table) */
  --magenta-300: #C066BD;
  --magenta-500: #91268F;

  /* Color — neutrals */
  --white: #FFFFFF;
  --paper: #FAFBF6;
  --surface-subtle: #F6F7F1;
  --border: #DEE2D5;
  --border-strong: #C6CCB9;
  --border-brand: #B4DB78;
  --text-faint: #A4AC95;
  --text-muted: #7E866F;
  --text-body: #434A38;
  --text-strong: #1A1E14;

  /* Type */
  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Grotesk", ui-monospace, Menlo, monospace;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows (ink-tinted) */
  --shadow-xs: 0 1px 2px rgba(26,30,20,.06);
  --shadow-sm: 0 1px 3px rgba(26,30,20,.08), 0 1px 2px rgba(26,30,20,.04);
  --shadow-md: 0 6px 16px rgba(26,30,20,.08), 0 2px 4px rgba(26,30,20,.04);
  --shadow-lg: 0 16px 40px rgba(26,30,20,.10), 0 4px 10px rgba(26,30,20,.05);
  --shadow-action: 0 10px 24px rgba(246,138,60,.32);
  --shadow-brand: 0 10px 24px rgba(140,198,63,.30);

  /* Motion */
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 360ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

/* ---------- Base ---------- */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }

/* ---------- Shared bits ---------- */

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-subtle { background: var(--surface-subtle); border-top: 1px solid var(--border); }

.section-head { max-width: 640px; display: flex; flex-direction: column; gap: 16px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-700);
}

h2 { font-size: 2.375rem; font-weight: 800; line-height: 1.1; }

.lead { font-size: 1.25rem; font-weight: 500; color: var(--text-body); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { padding: 0.95rem 2rem; font-size: 1.125rem; }

.btn-primary {
  background: var(--action);
  color: #fff;
  box-shadow: var(--shadow-action);
}
.btn-primary:hover { background: var(--action-hover); }

.btn-secondary {
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  color: var(--text-strong);
}
.btn-secondary:hover { border-color: var(--green-400); color: var(--green-700); }

.link-brand { color: var(--green-700); font-weight: 600; transition: color var(--dur-fast) var(--ease-out); }
.link-brand:hover { color: var(--green-600); }

/* Icon tiles used by service cards + steps */
.card-tile {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
}
.tone-brand  { background: var(--green-50);   color: var(--green-600); }
.tone-accent { background: var(--magenta-50); color: var(--magenta-500); }
.tone-action { background: var(--orange-50);  color: var(--orange-500); }
.tone-brand-fg  li .icon { color: var(--green-600); }
.tone-accent-fg li .icon { color: var(--magenta-500); }
.tone-action-fg li .icon { color: var(--orange-500); }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  height: 76px;
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-logo img { height: 30px; width: auto; }

@media (max-width: 480px) {
  .nav .btn { padding: 0.55rem 1rem; font-size: 0.875rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 820px; max-height: 820px;
  background: radial-gradient(circle at 60% 40%, rgba(140,198,63,0.16), rgba(140,198,63,0.04) 45%, transparent 68%);
  filter: blur(6px);
}
.hero-bg::before {
  /* dot grid, top-right */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--green-300) 1.4px, transparent 1.6px);
  background-size: 26px 26px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(circle at 80% 20%, black, transparent 55%);
  mask-image: radial-gradient(circle at 80% 20%, black, transparent 55%);
}
.hero-bg::after {
  /* diagonal hairlines, top-left */
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(140,198,63,0.10) 22px 23px);
  -webkit-mask-image: linear-gradient(135deg, black, transparent 40%);
  mask-image: linear-gradient(135deg, black, transparent 40%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.hero-text {
  flex: 1 1 460px; max-width: 620px;
  display: flex; flex-direction: column; gap: 24px;
}

.eyebrow-chip {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-100);
  color: var(--green-800);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
}
.eyebrow-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-600); }

h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  text-wrap: balance;
}
h1 .accent { color: var(--green-600); }

.hero-sub {
  font-size: 1.25rem; font-weight: 500;
  line-height: 1.55;
  max-width: 56ch;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.reassurance {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.reassurance span { display: inline-flex; align-items: center; gap: 8px; }
.reassurance .icon { color: var(--green-600); }

/* Hero visual — workflow diagram */

.hero-visual { position: relative; flex: 1 1 380px; max-width: 440px; }

.workflow-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}

.workflow-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
}
.live-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }

.node {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}
.node-ai {
  border: 1.5px solid var(--border-brand);
  background: var(--green-50);
  box-shadow: var(--shadow-sm);
}
.node-tile {
  width: 42px; height: 42px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--green-600);
}
.node-tile-ai {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.node-text { display: flex; flex-direction: column; gap: 2px; }
.node-title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text-strong); }
.node-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.node-sub-ai { color: var(--green-700); }

.connector {
  width: 2px; height: 16px;
  margin: 6px auto;
  background: linear-gradient(var(--green-400), var(--border-strong));
}

.float-chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.55rem 0.8rem;
}
.float-chip-tr { top: -30px; right: -4px; }
.float-chip-bl { bottom: -16px; left: -6px; }
.chip-tile {
  width: 30px; height: 30px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.chip-tile .icon { width: 17px; height: 17px; }
.chip-tile-green { background: var(--green-50); color: var(--green-600); }
.chip-tile-orange { background: var(--orange-50); color: var(--orange-500); }
.chip-text { display: flex; flex-direction: column; }
.chip-num { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; color: var(--text-strong); line-height: 1.1; }
.chip-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ---------- Card grids (services + results) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card h3 { font-size: 1.5rem; font-weight: 700; }

.benefit-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.benefit-list li { display: flex; align-items: flex-start; gap: 10px; }
.benefit-list li .icon { margin-top: 4px; }

/* ---------- How It Works ---------- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.step { display: flex; flex-direction: column; gap: 16px; }
.step-head { display: flex; align-items: center; gap: 14px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}
.step h3 { font-size: 1.5rem; font-weight: 700; }

/* ---------- Results (dark) ---------- */

.section-dark { background: var(--text-strong); color: #C6CCB9; }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: var(--text-faint); }
.eyebrow-on-dark { color: var(--green-400); }

.case-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
}
.case-card p { color: var(--text-faint); }
.case-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; }
.case-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-400);
  border: 1px solid rgba(157,207,84,0.4);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
  white-space: nowrap;
}
.case-tag-magenta { color: var(--magenta-300); border-color: rgba(192,102,189,0.4); }

.case-stats {
  display: flex; gap: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 2.375rem; line-height: 1; color: var(--green-400); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* ---------- Trust strip ---------- */

.trust { background: var(--white); border-bottom: 1px solid var(--border); padding-block: 40px; }
.trust-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 24px 48px;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}
.trust-item { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--text-body); }
.trust-tile {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-50);
  color: var(--green-600);
}

/* ---------- Email capture ---------- */

.capture-inner {
  max-width: 760px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.capture-title { font-size: 3rem; }
.capture-alt { font-size: 0.9375rem; color: var(--text-muted); margin-top: 8px; }

/* Kit (ConvertKit) injected form — best-effort overrides toward the pill spec.
   Kit renders its own markup from the script embed; these target its standard
   formkit-* classes. Verify against the live embed and adjust. */
.kit-embed { width: 100%; max-width: 520px; margin-top: 8px; }
.kit-embed .formkit-form[data-uid] {
  background: var(--white) !important;
  border: 1.5px solid var(--border-strong) !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: var(--shadow-xs) !important;
  max-width: 520px !important;
}
.kit-embed .formkit-form[data-uid] .formkit-input {
  font-family: var(--font-body) !important;
  color: var(--text-strong) !important;
}
.kit-embed .formkit-form[data-uid] .formkit-submit {
  background: var(--action) !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
}
.kit-embed .formkit-form[data-uid] .formkit-submit:hover { background: var(--action-hover) !important; }
.kit-embed .formkit-powered-by-convertkit-container { display: none !important; }

input:focus-visible, button:focus-visible, a:focus-visible {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(140,198,63,0.18);
}

/* ---------- Footer ---------- */

.footer { background: var(--white); border-top: 1px solid var(--border); }
.footer-inner {
  padding-top: 48px; padding-bottom: 32px;
  display: flex; flex-direction: column; gap: 32px;
}
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-top img { height: 28px; width: auto; }
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { font-weight: 600; color: var(--text-body); transition: color var(--dur-fast) var(--ease-out); }
.footer-nav a:hover { color: var(--green-700); }
.footer-divider { height: 1px; background: var(--border); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 0.875rem; color: var(--text-muted);
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
