/* =========================================================
   Cadmium landing page
   Layout, sections and motion modelled on subscrr.app.
   Palette is Cadmium green (ai-brain/projects/cadmium/design/system/tokens.css),
   type is Inter + Inter Tight (same pairing as the reference).
   ========================================================= */

:root {
  /* Brand (from ai-brain/projects/cadmium/design/system/tokens.css) */
  --brand: #006B3C;
  --brand-rgb: 0, 107, 60;
  --brand-hover: #005630;
  --brand-tint: rgba(0, 107, 60, .13);
  --butter: #FFEEAD;

  /* Landing surfaces (warm paper, like the reference) */
  --ink: #1a1712;
  --ink-2: #14141a;
  --muted: #7c766c;
  --bg: #f4f2ec;
  --bg-2: #eae6dc;
  --sage: #cfe3d6;
  --sage-ink: #0b4f2e;
  --panel: #e6f0ec;
  --card: #ffffff;
  --line: rgba(26, 23, 18, .1);
  --body-dim: rgba(20, 20, 22, .62);
  --prose: rgba(26, 23, 18, .82);

  /* Status colours (product tokens) */
  --new-bg: #e3f3fe;  --new-fg: #0b73b8;
  --doing-bg: #fff4e0; --doing-fg: #9a6400;
  --done-bg: #e6f0ec;  --done-fg: #006B3C;
  --low-bg: #ffe9e8;   --low-fg: #b03330;
  --fresh-high: #006B3C; --fresh-mid: #ffbc00; --fresh-low: #fd625e;

  --shadow-sm: 0 4px 16px -6px rgba(30, 28, 24, .16);
  --shadow: 0 26px 60px -28px rgba(38, 34, 28, .34);
  --shadow-lg: 0 50px 110px -40px rgba(38, 34, 28, .42);

  --nav-tint: rgba(255, 255, 255, .22);
  --nav-tint-scrolled: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .7);

  --wrap: 1320px;
  --pad: clamp(20px, 5vw, 84px);
  --r: 26px;
  --r-lg: 40px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --font: "Inter", -apple-system, "system-ui", "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, "system-ui", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Lenis (recommended base rules) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.i { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Background layers ---------- */
#gl {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -3; pointer-events: none;
  background: radial-gradient(90% 70% at 85% 5%, #fbf1cf 0%, transparent 60%), radial-gradient(70% 60% at 0% 40%, #dbeadf 0%, transparent 65%), var(--bg);
}
.bg-tint {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: var(--sage); opacity: 0;
}
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  mix-blend-mode: multiply; opacity: .35;
  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='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .1  0 0 0 0 .1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--bg); transition: opacity .8s var(--ease), visibility .8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__word {
  display: flex; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 9vw, 96px); letter-spacing: -.045em; color: var(--brand);
}
.loader__word span { display: inline-block; opacity: 0; }
html:not(.js) .loader { display: none; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
section { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--font); letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.eyebrow--light { color: rgba(255, 255, 255, .85); }
.h2 {
  font-weight: 500; letter-spacing: -.035em; line-height: 1.03;
  font-size: clamp(36px, 4.8vw, 76px);
}
.h2 em, .h1 em { font-style: normal; color: var(--brand); }
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--body-dim); max-width: 46ch; line-height: 1.55; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 84px); }
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.pad { padding-block: clamp(72px, 10vw, 150px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--font); letter-spacing: -.005em;
  transition: background .3s, color .3s, box-shadow .4s var(--ease);
  white-space: nowrap;
}
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -12px rgba(var(--brand-rgb), .7); }
.btn--brand:hover { background: var(--brand-hover); box-shadow: 0 16px 40px -12px rgba(var(--brand-rgb), .75); }
.btn--ghost { background: rgba(255, 255, 255, .55); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: #fff; }
.btn--white { background: #fff; color: var(--brand); }
.btn--white:hover { background: var(--butter); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Nav (liquid-glass pill) ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 80;
  display: flex; justify-content: center; padding-inline: var(--pad);
  pointer-events: none;
}
.nav__pill {
  position: relative; pointer-events: auto;
  width: 100%; max-width: 1100px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 10px 0 22px; border-radius: 999px;
  box-shadow: 0 10px 40px -18px rgba(38, 34, 28, .35);
}
.nav__glass {
  position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: var(--nav-tint);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  transition: background .4s;
}
.nav.scrolled .nav__glass { background: var(--nav-tint-scrolled); }
.nav__pill > *:not(.nav__glass):not(.nav__sheet) { position: relative; z-index: 1; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/1 var(--font-display); letter-spacing: -.04em; }
.logo__mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; color: #fff; }
.logo__mark svg { width: 18px; height: 18px; }
.nav__links { display: flex; gap: clamp(14px, 2.2vw, 32px); font-size: 14px; font-weight: 500; }
.nav__links a { color: rgba(26, 23, 18, .72); transition: color .25s; position: relative; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 50%; place-items: center; }
.nav__burger .i { width: 22px; height: 22px; }
.nav__sheet { display: none; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav__cta .btn { display: none; }
  .nav__sheet {
    display: block; position: absolute; top: 68px; left: 0; right: 0; pointer-events: none;
    padding: 12px; border-radius: 28px; background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-line); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top; visibility: hidden;
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s;
    z-index: 2;
  }
  .nav.open .nav__sheet { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .nav__sheet a { display: block; padding: 15px 16px; font-weight: 500; font-size: 18px; border-radius: 16px; }
  .nav__sheet a:hover { background: var(--panel); }
  .nav__sheet a.btn { display: flex; margin-top: 8px; width: 100%; color: #fff; font-size: 15px; padding: 0 26px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(120px, 15vh, 170px) 0 clamp(60px, 8vw, 110px); min-height: 100svh; display: flex; align-items: center; }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 90px); align-items: center; }
.h1 { font-weight: 500; letter-spacing: -.045em; line-height: 1.02; font-size: clamp(40px, 4.9vw, 78px); }
.h1 .hook { display: inline-block; margin-top: .28em; font-size: .46em; letter-spacing: -.03em; line-height: 1.15; }
.hero__copy { display: grid; gap: 30px; justify-items: start; }
.hero__copy .lede { max-width: 42ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.hero__note .i { color: var(--brand); }
.hero__device { position: relative; }
.floater { position: absolute; z-index: 3; }

@media (max-width: 900px) {
  .hero { min-height: 0; align-items: flex-start; }
  .hero__grid { grid-template-columns: 1fr; }
  .floater[style*="left"] { left: 10px !important; top: -34px !important; }
  .floater[style*="right"] { right: 10px !important; bottom: -30px !important; }
}

/* ---------- App window mock (used in hero and other sections) ---------- */
.win {
  background: var(--card); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(26, 23, 18, .06);
  font-size: 13px; color: #495057; text-align: left;
}
.win__bar { height: 42px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 600; font-size: 13px; }
.win__bar span:last-child { font-weight: 500; opacity: .85; font-size: 12px; }
.win__body { padding: 22px; background: #f5f6fa; display: grid; gap: 16px; }
.win__title { display: flex; justify-content: space-between; align-items: baseline; }
.win__title h4 { font-size: 22px; font-weight: 600; letter-spacing: -.015em; color: #2a3042; }
.win__title small { color: #5f6880; font-size: 12px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: #fff; border: 1px solid #e3e6ef; color: #6c757d; }
.pill--on { background: var(--brand); color: #fff; border-color: var(--brand); }
.tasks { background: #fff; border: 1px solid #eef0f5; border-radius: 12px; box-shadow: 0 1px 2px rgba(42, 48, 66, .05); overflow: hidden; }
.task { display: grid; grid-template-columns: 22px 1fr auto 68px; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #f4f5f9; transition: background .2s; cursor: pointer; }
.task:last-child { border-bottom: 0; }
.task:hover { background: #fafbfd; }
.task__check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #cbd1e0; display: grid; place-items: center; color: transparent; transition: all .3s var(--ease); }
.task__check .i { width: 13px; height: 13px; stroke-width: 3; }
.task.is-done .task__check { background: var(--brand); border-color: var(--brand); color: #fff; }
.task__name { font-weight: 500; color: #2a3042; font-size: 13.5px; line-height: 1.3; }
.task__meta { font-size: 11.5px; color: #5f6880; }
.task.is-done .task__name { text-decoration: line-through; text-decoration-color: rgba(42, 48, 66, .35); color: #5f6880; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge--new { background: var(--new-bg); color: var(--new-fg); }
.badge--doing { background: var(--doing-bg); color: var(--doing-fg); }
.badge--done { background: var(--done-bg); color: var(--done-fg); }
.badge--low { background: var(--low-bg); color: var(--low-fg); }
.fresh { height: 6px; border-radius: 99px; background: #f0f2f7; overflow: hidden; }
.fresh i { display: block; height: 100%; width: var(--v, 50%); border-radius: inherit; background: var(--fresh-high); transition: width 1.4s var(--ease), background .4s; }
.fresh[data-level="mid"] i { background: var(--fresh-mid); }
.fresh[data-level="low"] i { background: var(--fresh-low); }
.fresh-num { font: 600 11px/1 var(--font-display); color: #5f6880; text-align: right; margin-bottom: 5px; }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px 11px 12px; border-radius: 18px; background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; line-height: 1.25;
}
.chip__dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.chip__dot--warn { background: var(--doing-bg); color: var(--doing-fg); }
.chip__dot--ok { background: var(--done-bg); color: var(--done-fg); }
.chip small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

/* ---------- Work / Overview ---------- */
.work__panel {
  background: var(--panel); border-radius: var(--r-lg);
  padding: clamp(18px, 3.4vw, 54px); display: grid; gap: 20px;
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .08);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--card); border-radius: 20px; padding: 22px 22px 20px; box-shadow: var(--shadow-sm); display: grid; gap: 6px; }
.stat__label { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat__num { font: 600 clamp(36px, 4vw, 60px)/1 var(--font-display); letter-spacing: -.05em; color: var(--ink); }
.stat__num sup { font-size: .45em; vertical-align: top; margin-left: 2px; letter-spacing: 0; color: var(--brand); }
.stat--brand { background: var(--brand); color: #fff; }
.stat--brand .stat__label { color: rgba(255, 255, 255, .78); }
.stat--brand .stat__num, .stat--brand sup { color: #fff; }
.work__row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.box { background: var(--card); border-radius: 20px; padding: 26px 28px; box-shadow: var(--shadow-sm); }
.box h4 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: #2a3042; margin-bottom: 4px; }
.box p.sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.bars { display: flex; align-items: flex-end; gap: clamp(8px, 1.4vw, 20px); height: 210px; position: relative; padding-top: 10px; }
.bars__target { position: absolute; left: 0; right: 0; bottom: calc(210px * .72); border-top: 1.5px dashed rgba(var(--brand-rgb), .45); }
.bars__target span { position: absolute; right: 0; top: -22px; font-size: 11px; color: var(--brand); font-weight: 600; }
.bar { flex: 1; display: grid; align-items: end; justify-items: center; height: 100%; gap: 8px; grid-template-rows: 1fr auto; }
.bar__fill { width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #2f8f63, var(--brand)); height: var(--h, 40%); transform-origin: bottom; }
.bar__fill.mute { background: linear-gradient(180deg, #b7d3c3, #9dc2ad); }
.bar span { font-size: 11px; color: var(--muted); font-weight: 500; }
.people { display: grid; gap: 14px; }
.person { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--font); color: #fff; }
.person__track { height: 10px; border-radius: 99px; background: #f0f2f7; overflow: hidden; }
.person__track i { display: block; height: 100%; width: var(--w, 50%); border-radius: inherit; background: var(--brand); transform-origin: left; }
.person__name { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 500; color: #2a3042; margin-bottom: 6px; }
.person__name small { color: var(--muted); font-weight: 500; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .work__row { grid-template-columns: 1fr; }
}

/* ---------- Social proof (hidden until real proof exists) ---------- */
.proof { padding-block: clamp(28px, 4vw, 56px); border-block: 1px solid var(--line); background: rgba(255, 255, 255, .35); }
.proof[hidden] { display: none; }
.proof__label { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.proof__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px clamp(28px, 5vw, 64px); }
.proof__logos img { height: 28px; width: auto; opacity: .7; filter: grayscale(1); }

/* ---------- Reminders (also used for the recurring-tasks feature) ---------- */
.reminder__grid--flip .reminder__stage { order: 2; }
.reminder__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 6vw, 110px); align-items: center; }
.reminder__stage {
  position: relative; min-height: 520px; border-radius: var(--r-lg); background: var(--sage);
  overflow: hidden; display: grid; place-items: center; padding: 28px;
}
.reminder__stage::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 238, 173, .95), transparent 65%); left: -20%; top: -30%; }
.msgs { position: relative; display: grid; gap: 14px; width: min(420px, 100%); }
.msg { background: #fff; border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 8px; font-size: 14px; }
.msg__top { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.msg__top .dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--panel); color: var(--brand); }
.msg__top .dot .i { width: 15px; height: 15px; }
.msg__top time { margin-left: auto; font-weight: 500; }
.msg b { font-weight: 600; color: var(--ink); }
.msg--wa { background: #dff5e6; margin-left: 36px; }
.msg--wa .dot { background: #fff; }
.msg__meter { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.msg__meter .fresh { flex: 1; }
.reminder__copy { display: grid; gap: 28px; }
.ticks { display: grid; gap: 18px; margin-top: 4px; }
.ticks li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; font-size: 16px; color: var(--prose); }
.ticks .i { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--panel); color: var(--brand); stroke-width: 2.4; }
.ticks b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

@media (max-width: 900px) {
  .reminder__grid { grid-template-columns: 1fr; }
  .reminder__grid--flip .reminder__stage { order: 2; }
  .reminder__stage { min-height: 440px; order: 2; }
}

/* ---------- Mini rows (used inside cards) ---------- */
.mini { width: 100%; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); display: grid; gap: 10px; font-size: 12px; }
.mini__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #f5f6fa; font-weight: 500; color: #2a3042; }
.mini__row--on { background: var(--panel); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.mini__btn { background: var(--brand); color: #fff; text-align: center; padding: 9px; border-radius: 9px; font-weight: 600; }
.mini__field { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 9px; border: 1px solid #dfe3ec; color: #6c757d; }
.mini__av { display: flex; }
.mini__av span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; }
.mini__av span:first-child { margin-left: 0; }

/* ---------- AI ---------- */
.ai__stage { max-width: 860px; margin-inline: auto; background: var(--ink); color: #f4f2ec; border-radius: var(--r-lg); padding: clamp(20px, 3.4vw, 46px); box-shadow: var(--shadow-lg); display: grid; gap: 16px; position: relative; overflow: hidden; }
.ai__stage::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; background: radial-gradient(circle, rgba(var(--brand-rgb), .7), transparent 68%); pointer-events: none; }
.bubble { position: relative; max-width: 84%; padding: 16px 20px; border-radius: 22px; font-size: 15.5px; line-height: 1.5; }
.bubble--user { justify-self: end; background: #f4f2ec; color: var(--ink); border-bottom-right-radius: 6px; }
.bubble--ai { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12); border-bottom-left-radius: 6px; }
.bubble--ai .tool { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--font); padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .1); margin-bottom: 10px; color: var(--butter); }
.bubble--ai .tool .i { width: 14px; height: 14px; }
.pill-soon { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--butter); color: #5a4a00; font: 600 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- Registries (inventory / lost and found / vendors) ---------- */
.reg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reg--two { grid-template-columns: repeat(2, 1fr); }
.reg__card { background: var(--card); border-radius: var(--r); padding: 30px; display: grid; gap: 22px; align-content: start; box-shadow: var(--shadow-sm); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.reg__card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.reg__card--feature { background: var(--brand); color: #fff; }
.reg__card h3 { font: 500 30px/1.08 var(--font); letter-spacing: -.035em; }
.reg__card p { color: var(--body-dim); font-size: 15.5px; }
.reg__card--feature p { color: rgba(255, 255, 255, .8); }
.reg__art { border-radius: 18px; background: var(--bg); border: 1px solid var(--line); padding: 18px; display: grid; gap: 10px; min-height: 210px; align-content: center; }
.reg__card--feature .reg__art { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); }
.stock { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: #fff; color: #2a3042; box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 500; }
.stock__top { display: flex; justify-content: space-between; align-items: center; }
.stock .fresh { height: 8px; }
.arrow-down { justify-self: center; color: rgba(255, 255, 255, .8); }
.reg__card:not(.reg__card--feature) .arrow-down { color: var(--brand); }
.contact { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 500; color: #2a3042; }
.contact small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

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

/* ---------- Roles (pinned scroll sequence) ---------- */
.roles .h2 { font-size: clamp(36px, 4.4vw, 68px); }
.roles { min-height: 100svh; }
.roles__pin { min-height: 100svh; display: flex; align-items: center; padding-block: 90px 50px; }
.roles__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 110px); align-items: center; width: 100%; }
.roles__copy { display: grid; gap: 26px; }
.rolelist { display: grid; gap: 6px; margin-top: 10px; }
.role { display: grid; gap: 4px; padding: 18px 22px; border-radius: 20px; border: 1px solid transparent; cursor: pointer; transition: background .5s var(--ease), border-color .5s, opacity .5s; opacity: .45; text-align: left; }
.role.is-active { background: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .95); opacity: 1; box-shadow: var(--shadow-sm); }
.role h3 { font: 600 22px/1.1 var(--font-display); letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; }
.role h3 small { font: 600 11px var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: var(--panel); color: var(--brand); }
.role p { font-size: 15px; color: var(--body-dim); max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.role.is-active p { max-height: 120px; }
.roles__stage { position: relative; }
.rolewin .win__bar { transition: background .6s var(--ease); }
.rolewin[data-role="staff"] .win__bar, .rolewin[data-role="supervisor"] .win__bar { background: #6c757d; }
.rolewin[data-role="manager"] .win__bar { background: var(--brand); }
.caps { display: grid; gap: 8px; }
.cap { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 10px; background: #fff; border: 1px solid #eef0f5; font-weight: 500; color: #2a3042; transition: opacity .5s, background .5s; }
.cap .i { width: 16px; height: 16px; stroke-width: 2.6; }
.cap.yes .i { color: var(--brand); }
.cap.no { opacity: .45; }
.cap.no .i { color: #95a0c5; }
.roles__dots { display: flex; gap: 8px; margin-top: 24px; }
.roles__dots i { width: 32px; height: 4px; border-radius: 9px; background: rgba(26, 23, 18, .15); transition: background .4s, width .4s var(--ease); }
.roles__dots i.on { background: var(--brand); width: 56px; }

@media (max-width: 900px) {
  .roles, .roles__pin { min-height: 0; }
  .roles__grid { grid-template-columns: 1fr; }
  .role { opacity: 1; }
  .role p { max-height: 140px; }
  .roles__dots { display: none; }
}

/* ---------- Privacy ---------- */
.privacy__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pcard { background: var(--card); border-radius: var(--r); padding: 28px 26px 32px; display: grid; gap: 40px; align-content: space-between; min-height: 300px; box-shadow: var(--shadow-sm); transition: transform .7s var(--ease), box-shadow .7s var(--ease), background .4s; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard__ico { width: 52px; height: 52px; border-radius: 16px; background: var(--panel); color: var(--brand); display: grid; place-items: center; }
.pcard__ico .i { width: 26px; height: 26px; }
.pcard h3 { font: 500 26px/1.1 var(--font); letter-spacing: -.035em; margin-bottom: 10px; }
.pcard p { font-size: 15px; color: var(--body-dim); }
.pcard:nth-child(1) { background: var(--brand); color: #fff; }
.pcard:nth-child(1) p { color: rgba(255, 255, 255, .8); }
.pcard:nth-child(1) .pcard__ico { background: rgba(255, 255, 255, .16); color: #fff; }

@media (max-width: 800px) { .privacy__grid { grid-template-columns: 1fr; } .pcard { min-height: 0; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 980px; margin-inline: auto; }
.plans--solo { grid-template-columns: minmax(0, 520px); justify-content: center; }
.plan__fine { text-align: center; font-size: 13px; color: var(--muted); margin-top: -12px; }
.plan { background: var(--card); border-radius: var(--r-lg); padding: clamp(28px, 3vw, 44px); display: grid; gap: 26px; align-content: start; box-shadow: var(--shadow-sm); position: relative; }
.plan--pro { background: linear-gradient(180deg, #ffffff, #f2f8f4); box-shadow: var(--shadow), 0 0 0 2px var(--brand); }
.plan__tag { position: absolute; top: 22px; right: 22px; padding: 6px 12px; border-radius: 99px; background: var(--brand); color: #fff; font: 600 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.plan h3 { font: 600 22px/1.1 var(--font-display); letter-spacing: -.03em; }
.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__price b { font: 600 clamp(54px, 6vw, 84px)/1 var(--font-display); letter-spacing: -.06em; }
.plan__price span { color: var(--muted); font-size: 15px; }
.plan__desc { color: var(--body-dim); font-size: 15.5px; margin-top: -10px; }
.plan ul { display: grid; gap: 13px; padding-top: 22px; border-top: 1px solid var(--line); }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15.5px; }
.plan li .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--panel); color: var(--brand); stroke-width: 3; }
.pricing__note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 26px; }

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

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
.faq__head { position: sticky; top: 120px; display: grid; gap: 22px; }
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; text-align: left; font: 500 clamp(19px, 1.7vw, 24px)/1.25 var(--font); letter-spacing: -.02em; }
.acc__q .i { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); transition: transform .6s var(--ease), background .3s, color .3s; }
.acc__item.open .acc__q .i { transform: rotate(45deg); background: var(--brand); color: #fff; border-color: var(--brand); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.acc__item.open .acc__a { grid-template-rows: 1fr; }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 60px 28px 0; color: var(--body-dim); font-size: 16.5px; max-width: 60ch; }

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .acc__a p { padding-right: 0; }
}

/* ---------- CTA ---------- */
.cta { padding-bottom: clamp(60px, 8vw, 110px); }
.cta__panel {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--brand); color: #fff;
  padding: clamp(50px, 8vw, 130px) clamp(24px, 5vw, 80px); display: grid; gap: 30px; justify-items: center; text-align: center;
  box-shadow: 0 50px 110px -40px rgba(var(--brand-rgb), .6);
}
.cta__panel::before, .cta__panel::after { content: ""; position: absolute; border-radius: 50%; filter: blur(50px); pointer-events: none; }
.cta__panel::before { width: 620px; height: 620px; left: -160px; bottom: -340px; background: rgba(255, 238, 173, .55); }
.cta__panel::after { width: 560px; height: 560px; right: -140px; top: -300px; background: rgba(207, 227, 214, .5); }
.cta__panel > * { position: relative; z-index: 1; }
.cta__panel h2 { font-weight: 500; letter-spacing: -.04em; line-height: 1; font-size: clamp(38px, 5.6vw, 88px); }
.cta__panel p { color: rgba(255, 255, 255, .86); font-size: clamp(17px, 1.4vw, 20px); max-width: 40ch; }
.cta__form { width: 100%; max-width: 540px; margin-top: 8px; border-radius: 20px; overflow: hidden; background: #fff; }
.cta__form iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.cta__fine { font-size: 13px; color: rgba(255, 255, 255, .8); }

@media (max-width: 700px) {
  .cta__panel::before { width: 340px; height: 340px; left: -140px; bottom: -220px; }
  .cta__panel::after { width: 300px; height: 300px; right: -120px; top: -190px; }
}

/* ---------- Footer ---------- */
.footer { padding: 30px 0 46px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: center; padding-block: 34px; border-top: 1px solid var(--line); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: 14.5px; font-weight: 500; }
.footer__links a { color: rgba(26, 23, 18, .7); transition: color .2s; }
.footer__links a:hover { color: var(--brand); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; font-size: 13px; color: var(--muted); }
.footer__bottom nav { display: flex; gap: 22px; }
.footer__bottom a:hover { color: var(--ink); }

/* ---------- Scroll reveals (only armed when GSAP is ready) ---------- */
.gsap-ready [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); }

/* ---------- Confetti canvas (task closed celebration) ---------- */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 95; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
  .gsap-ready [data-reveal] { opacity: 1; transform: none; }
}
