/* ==========================================================================
   iPlugin — a growing collection of small tools for ChatGPT
   1. Tokens          6. Collection
   2. Base            7. Spotlight
   3. Header          8. How it works
   4. Buttons         9. CTA + related
   5. Hero           10. Footer, policies, dialog, motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --paper: #f7f7ef;
  --paper-2: #f1f3e7;
  --white: #fffefa;
  --ink: #1d3a2f;
  --ink-soft: #3f5548;
  --muted: #66735f;
  --line: #dde1d3;
  --line-soft: #eaecdf;
  --lime: #daef9f;
  --lime-soft: #eef5d6;
  --green: #203b31;
  --green-deep: #15302a;
  --coral: #c96442;
  --amber-bg: #f8eed6;
  --amber-ink: #855f1c;
  --radius: 20px;
  --radius-sm: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-card: 0 1px 2px #203b310a, 0 18px 40px -34px #203b3155;
  --shadow-panel: 0 2px 6px #203b310d, 0 34px 70px -42px #203b3166;
}

/* 2. Base ------------------------------------------------------------------ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a, input, summary { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--lime); }

:focus-visible {
  outline: 3px solid #86ac60;
  outline-offset: 4px;
  border-radius: 4px;
}

.wrap {
  width: min(1280px, calc(100% - 112px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--green);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.hero .eyebrow,
.section .eyebrow,
.how-section .eyebrow { color: #5f6d58; }

.dot {
  width: 7px;
  height: 7px;
  background: #77a064;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px #e6eddc;
  flex: none;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.status-available { background: #6f9e5b; }
.status-review { background: #cf9c3d; }
.status-soon { background: #b3bcae; }

/* 3. Header ---------------------------------------------------------------- */
.site-header {
  --header-h: 76px;
  position: sticky;
  top: 0;
  z-index: 80;
  background: #f7f7efe8;
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--paper); }
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 24px;
  letter-spacing: -1.1px;
  white-space: nowrap;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-dot { color: #91a46e; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
}

.nav-link {
  color: #5f6b5c;
  padding: 10px 0;
  transition: color .18s;
}
.nav-link:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #f7f9ee;
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 11px 18px;
  font-size: 12.5px;
  white-space: nowrap;
  transition: background .18s, transform .18s;
}
.nav-cta:hover { background: var(--green-deep); transform: translateY(-1px); }
.nav-cta span { font-size: 11px; opacity: .8; }

/* Products menu */
.nav-products { position: relative; }

.nav-products-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 10px 2px;
  font-size: 13px;
  color: #5f6b5c;
  transition: color .18s;
}
.nav-products-toggle:hover,
.nav-products-toggle[aria-expanded="true"] { color: var(--ink); }

.nav-chevron {
  width: 9px;
  height: 6px;
  transition: transform .2s;
}
.nav-products-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.products-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  width: min(780px, calc(100vw - 56px));
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-products:hover .products-menu,
.nav-products:focus-within .products-menu,
.nav-products.is-open .products-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr .92fr;
  gap: 16px;
}

.menu-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6f7a68;
  margin: 0 0 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  transition: background .16s;
}
.menu-item:hover { background: #f2f4e8; }

.icon { flex: none; }
img.menu-icon, img.icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.menu-item-text { min-width: 0; }

.menu-item-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 560;
  color: var(--ink);
  line-height: 1.3;
}

.menu-item-meta {
  display: block;
  font-size: 10.5px;
  color: #6f7a68;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-promo {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-promo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 14px;
  border-radius: 14px;
  background: var(--lime-soft);
  border: 1px solid #e2e9cf;
  transition: border-color .16s, background .16s;
}
.menu-promo-card:hover { border-color: #c8d5af; background: #edf4d4; }
.menu-promo-card .menu-promo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}
.menu-promo-name { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.menu-promo-meta { font-size: 10.5px; line-height: 1.55; color: #6d7a60; }
.menu-promo-card .chip { margin-left: 0; }

.menu-all {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: #4c6b3c;
}
.menu-all span { font-size: 10px; }

.menu-legend { display: inline-flex; align-items: center; gap: 5px; }
.menu-legend .status-dot { margin-left: 8px; }
.menu-legend .status-dot:first-child { margin-left: 0; }

.menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 11px 4px 0;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #6f7a68;
}

/* Mobile menu */
.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  list-style: none;
  width: 46px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #cdd5c3;
  border-radius: 99px;
  background: var(--white);
  cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.burger { display: grid; gap: 4px; }
.burger i { display: block; width: 15px; height: 1.5px; background: var(--ink); border-radius: 2px; }
.mobile-menu[open] .burger i:first-child { transform: translateY(2.75px) rotate(45deg); }
.mobile-menu[open] .burger i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.mobile-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  min-height: calc(100dvh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 18px 20px 30px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px #203b3140;
}
.mobile-panel .menu-label { margin: 18px 0 8px; }
.mobile-panel .menu-label:first-child { margin-top: 0; }

.mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-link .mobile-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.mobile-link b { font-size: 14px; font-weight: 560; }
.mobile-link small { font-size: 10.5px; color: #6f7a68; }
.mobile-link-plain { border-bottom: 1px solid var(--line-soft); }
.mobile-link .icon { width: 30px; height: 30px; border-radius: 8px; }
.mobile-cta { justify-content: center; margin-top: 20px; width: 100%; }
.mobile-legend {
  display: flex;
  gap: 16px;
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3px;
  color: #6d7766;
}
.mobile-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* 4. Buttons --------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--green);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 14px 22px;
  font-size: 13.5px;
  transition: background .18s, transform .18s, box-shadow .18s;
}
.button:hover { background: var(--green-deep); transform: translateY(-2px); }
.button span { font-size: 12px; opacity: .85; }
.button.light { background: var(--lime); color: var(--ink); }
.button.light:hover { background: #e6f7b4; }

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #b6bfb0;
  background: none;
  padding: 10px 0;
  font-size: 12.5px;
  color: var(--ink);
  transition: border-color .18s, color .18s;
}
.text-button:hover { border-color: var(--ink); }

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 4.6vw, 68px);
  align-items: center;
  padding: clamp(42px, 5.4vw, 78px) 0 clamp(34px, 4vw, 56px);
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(43px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -3px;
  font-weight: 520;
}
.hero h1 em {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -2.4px;
}
.hero h1 em:after {
  content: "";
  position: absolute;
  left: -2px;
  right: -6px;
  bottom: 6px;
  height: 14px;
  background: var(--lime);
  z-index: -1;
  transform: rotate(-1.4deg);
}

.hero-lede {
  max-width: 430px;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.hero-lede b { font-weight: 600; color: var(--ink-soft); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 20px 0 0;
  font-size: 11px;
  color: #66735f;
}
.hero-note svg { width: 12px; height: 12px; flex: none; }

/* Collection wall */
.hero-wall {
  position: relative;
  padding: 14px;
  background:
    radial-gradient(#ccd5bb 1px, transparent 1px) 0 0 / 16px 16px,
    var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 3px 10px #203b310d, 0 40px 80px -48px #203b3173;
}

.wall-bar,
.wall-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #6d7766;
}
.wall-bar { margin-bottom: 11px; }
.wall-count {
  background: var(--lime);
  color: #3c4f2e;
  padding: 2px 7px;
  border-radius: 99px;
  font-size: 9px;
  letter-spacing: .8px;
}
.wall-foot { margin-top: 11px; text-transform: none; letter-spacing: .2px; font-size: 9.5px; }

.wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.wall-tile {
  display: block;
  border-radius: 11px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #e1e6d6;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.wall-tile:hover {
  transform: translateY(-2px);
  border-color: #c3cfae;
  box-shadow: 0 10px 22px -16px #203b3173;
}
.wall-art { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.wall-art .art-svg { transition: transform .45s ease; }
.wall-tile:hover .wall-art .art-svg { transform: scale(1.04); }
.wall-name {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  font-size: 10px;
  color: #3f5548;
  font-weight: 500;
}

.wall-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  border: 1px dashed #c9d2ba;
  background: #f4f6ea;
  color: #6f7a68;
  aspect-ratio: auto;
  min-height: 100%;
}
.wall-more:hover { background: #eff3e2; color: var(--ink); }
.wall-more-plus {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #c9d2ba;
  font-size: 13px;
  font-weight: 300;
  color: #7f8d70;
}
.wall-more-text {
  font-family: var(--font-mono);
  font-size: 8.5px;
  line-height: 1.5;
  letter-spacing: .3px;
  text-transform: uppercase;
}

/* 6. Intro strip ----------------------------------------------------------- */
.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.intro-strip p { margin: 0; }
.intro-values { display: flex; gap: 30px; }
.intro-values span { display: flex; align-items: center; gap: 8px; }
.tiny-mark {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #c5cebc;
  border-radius: 50%;
  font-size: 9px;
  color: #5d7351;
  flex: none;
}

/* Collection --------------------------------------------------------------- */
.section { padding: clamp(54px, 6.6vw, 92px) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  margin: 16px 0 30px;
}
.section h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -1.7px;
  font-weight: 520;
  max-width: 17ch;
}
.section h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -1.4px;
}
.section-lede {
  max-width: 330px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid #d3dac7;
  border-radius: 99px;
  background: transparent;
  font-size: 11.5px;
  color: #5f6b5c;
  transition: background .16s, color .16s, border-color .16s;
}
.filter:hover { border-color: #b7c3a8; color: var(--ink); }
.filter span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #6f7a68;
}
.filter[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: #f6f8ed;
}
.filter[aria-pressed="true"] span { color: #b9cda0; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: #cdd6bd;
  box-shadow: 0 26px 48px -40px #203b3180;
}
.tool-card[hidden] { display: none; }

.tool-plate {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}
.tool-plate .art-svg { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.tool-card:hover .tool-plate .art-svg { transform: scale(1.035); }

.tool-plate-chip {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 8px;
  border-radius: 99px;
  background: #10291ecc;
  color: #f4f7ec;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.tool-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 15px 18px 16px;
}

.tool-title-row { display: flex; align-items: center; gap: 9px; }
.tool-title-row .icon { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.tool-name { margin: 0; font-size: 17px; font-weight: 560; letter-spacing: -.3px; }
.tool-name a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.chip {
  margin-left: auto;
  padding: 3.5px 7px;
  border-radius: 5px;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: .7px;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip-review { background: var(--amber-bg); color: var(--amber-ink); }
.chip-available { background: #e3efd7; color: #3a6533; }
.chip-soon { background: #eceee5; color: #6d7768; }

.tool-blurb {
  margin: 0;
  flex: 1;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.tool-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.tool-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3px;
  color: #6d7766;
}
.tool-arrow {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #c7d0b8;
  border-radius: 50%;
  font-size: 10px;
  color: #5d7351;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.tool-card:hover .tool-arrow {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: rotate(45deg);
}

.tool-card-more {
  border: 1.5px dashed #cbd4bc;
  background: #f4f6ea;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tool-card-more:hover { transform: none; box-shadow: none; border-color: #b9c5a6; }
.tool-more-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 26px;
  max-width: 300px;
}
.more-orbit {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px dashed #b9c5a6;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 250;
  color: #8b9b79;
  margin-bottom: 4px;
}
.tool-more-inner h3 { margin: 0; font-size: 16px; font-weight: 540; }
.tool-more-inner p { margin: 0; font-size: 12px; line-height: 1.75; color: var(--muted); }
.tool-more-inner .text-button { margin-top: 4px; font-size: 11.5px; }

/* 7. Spotlight ------------------------------------------------------------- */
.spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: clamp(24px, 3.4vw, 52px);
  align-items: center;
  margin: clamp(18px, 2.6vw, 34px) 0;
  padding: clamp(26px, 3.6vw, 48px);
  background: var(--green);
  color: #f3f6e8;
  border-radius: 28px;
  overflow: hidden;
}
.spotlight:after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: 8%;
  top: -260px;
  border: 1px solid #ffffff14;
  border-radius: 50%;
  box-shadow: 0 0 0 60px #ffffff05, 0 0 0 140px #ffffff03;
  pointer-events: none;
}
.spotlight-copy { position: relative; z-index: 1; }
.spotlight .eyebrow { color: #b8cda0; }
.spotlight h2 {
  margin: 16px 0 14px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -1.4px;
  font-weight: 500;
}
.spotlight h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
}
.spotlight-copy > p {
  margin: 0;
  max-width: 380px;
  font-size: 12.5px;
  line-height: 1.85;
  color: #c3cfb8;
}

.spotlight-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  max-width: 360px;
}
.spotlight-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 9px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #d5ddca;
}
.spotlight-list li:before {
  content: "↗";
  color: var(--lime);
  font-size: 10px;
  line-height: 1.8;
}

.spotlight-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.spotlight .text-button {
  color: #dfe7d3;
  border-color: #ffffff33;
}
.spotlight .text-button:hover { border-color: var(--lime); }

/* Offshoot demo (shared with the product story) */
.hero-demo { position: relative; z-index: 1; }
.demo-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9decf;
  border-radius: 18px;
  background: #eeefe5;
  box-shadow: 0 24px 60px -32px #06130d99;
  transform: rotate(.8deg);
}
.demo-top {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #f7f8f0;
  border-bottom: 1px solid #dce0d2;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #747e6d;
}
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #cbd2bf; }

.demo-body {
  position: relative;
  height: 400px;
  background-image: radial-gradient(#cbd2be .8px, transparent .8px);
  background-size: 18px 18px;
}
.connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.connections path { fill: none; stroke: #b7c5a8; stroke-width: 1.5; }
.connections .selected-line { stroke: #718963; stroke-width: 2; }

.node {
  position: absolute;
  color: var(--ink);
  padding: 13px 15px;
  background: #fffefa;
  border: 1px solid #dce0d2;
  border-radius: 11px;
  box-shadow: 0 5px 12px -8px #233d3030;
  text-align: left;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.node:hover { transform: translateY(-2px); border-color: #8fa078; box-shadow: 0 8px 16px -8px #233d3040; }
.node.root { top: 30px; left: 28%; width: 47%; z-index: 2; }
.node-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .4px;
  color: #6f7a68;
}
.node.root .node-label { color: #7c8971; }
.node h3 { margin: 0 0 5px; font-size: 12.5px; line-height: 1.4; font-weight: 600; }
.node p { margin: 0; font-size: 10px; line-height: 1.6; color: #6f7a68; }
.node.branch-one { left: 4%; top: 158px; width: 42%; min-height: 112px; }
.node.branch-two { right: 4%; top: 158px; width: 42%; min-height: 112px; }
.node.selected { border: 1.5px solid #708960; box-shadow: 0 0 0 4px #dce8cf8c; }
.node-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 7px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eaf1dd;
  color: #71845a;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: .3px;
}
.node-tag.peach { background: #f8e9de; color: #a17a5d; }
.node-corner { position: absolute; right: 12px; top: 12px; font-size: 9px; color: #bcc4b1; }
.node.result {
  left: 34%;
  top: 300px;
  width: 62%;
  padding: 13px 15px;
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.node.result p { color: #ccd7c3; }
.node.result .node-label { color: #b8cf9c; }
.result-status {
  position: absolute;
  right: 13px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.demo-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  background: #f7f8f0;
  border-top: 1px solid #dce0d2;
  font-size: 9px;
  color: #69775f;
}
.demo-tabs { display: flex; gap: 3px; }
.demo-tab {
  border: 0;
  border-radius: 5px;
  padding: 5px 7px;
  background: transparent;
  font-size: 9px;
  color: #6f7a68;
  white-space: nowrap;
}
.demo-tab.active { background: #e4ebd6; color: #435b35; }
.demo-bottom > span { font-size: 8.5px; }
.demo-footnote {
  margin: 12px 0 0;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: .2px;
  color: #a9b6a0;
}

/* 8. How it works ---------------------------------------------------------- */
.how-section { padding: clamp(36px, 5vw, 72px) 0 clamp(20px, 3vw, 40px); }
.how-box {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 60px);
  padding-top: clamp(26px, 3.4vw, 46px);
  border-top: 1px solid var(--line);
}
.how-box h2 {
  margin: 14px 0 0;
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 520;
}
.how-box h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.step-num {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: #9da98d;
}
.step h3 { margin: 0 0 8px; font-size: 13.5px; font-weight: 560; }
.step p { margin: 0; font-size: 11.5px; line-height: 1.8; color: var(--muted); }
.step a { color: #4c6b3c; border-bottom: 1px solid #b7c4a6; }

.how-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #eef1e2;
  font-size: 11px;
  line-height: 1.7;
  color: #5f6b5c;
}
.how-note .status-dot { margin-top: 1px; }

/* 9. CTA + related --------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: clamp(24px, 3.4vw, 48px) 0 clamp(40px, 5vw, 64px);
  padding: clamp(28px, 3.6vw, 46px) clamp(26px, 3.8vw, 52px);
  background: var(--green);
  color: #f5f7eb;
  border-radius: 24px;
}
.cta h2 {
  margin: 10px 0 6px;
  font-size: clamp(25px, 2.6vw, 31px);
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 500;
}
.cta h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--lime); }
.cta .eyebrow { color: #b3c59d; font-size: 9px; }
.cta p { margin: 0; max-width: 380px; font-size: 11.5px; line-height: 1.75; color: #bccbb2; }
.cta .button { position: relative; z-index: 2; flex: none; }

/* Collection bar on product pages */
.collection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0 0;
  font-size: 11px;
  color: #66735f;
}
.collection-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4c6b3c;
  border-bottom: 1px solid #c3cdb4;
  padding-bottom: 2px;
}
.collection-back:hover { border-color: #4c6b3c; }
.collection-meta { display: inline-flex; align-items: center; gap: 9px; }
.collection-note {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .4px;
  color: #6f7a68;
}
.collection-bar .chip { margin-left: 0; }

/* Related tools */
.related {
  margin-top: clamp(40px, 5.4vw, 76px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.related-head h2 { margin: 0; font-size: 15px; font-weight: 550; letter-spacing: -.2px; }
.related-head a {
  font-size: 11px;
  color: #5d7150;
  border-bottom: 1px solid #c3cdb4;
  padding-bottom: 2px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.related-card:hover {
  border-color: #c7d2b7;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -26px #203b3166;
}
.related-card .icon { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.related-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.related-text b { font-size: 13px; font-weight: 550; }
.related-text small { font-size: 10.5px; color: #6d7766; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-arrow { font-size: 10px; color: #a8b19a; }
.related-card:hover .related-arrow { color: var(--ink); }

/* 10. Footer --------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(36px, 5vw, 64px);
  padding: clamp(30px, 4vw, 46px) 0 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(#f7f7ef, #f2f4e6);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr .95fr .85fr;
  gap: clamp(22px, 3vw, 46px);
}
.footer-main.footer-main-3 { grid-template-columns: 1.6fr 1fr .95fr; }
.brand-footer { font-size: 22px; gap: 9px; }
.brand-footer svg { width: 27px; height: 27px; }
.footer-note { margin: 14px 0 0; font-size: 11.5px; line-height: 1.8; color: #66735f; }
.footer-stats {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .3px;
  color: #6d7766;
}
.footer-col h2 {
  margin: 0 0 11px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6f7a68;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #5f6b5c;
  transition: color .16s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #6f7a68;
}
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--ink); }
.footer-bottom span:last-child { font-family: var(--font-mono); letter-spacing: .5px; }

/* Policies ---------------------------------------------------------------- */
.policy-hero { padding: 52px 0 42px; border-bottom: 1px solid var(--line); }
.breadcrumb {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  font-size: 11px;
  color: #66735f;
}
.breadcrumb a { color: #5d7150; }
.policy-hero h1 {
  margin: 14px 0 15px;
  font-size: clamp(38px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.1;
}
.policy-hero > p { max-width: 640px; margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.policy-meta { display: flex; gap: 22px; margin-top: 24px; font-size: 10px; color: #66735f; }
.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  padding: 50px 0 84px;
}
.policy-aside { position: sticky; top: 36px; align-self: start; }
.policy-aside .eyebrow { margin-bottom: 16px; font-size: 9px; color: #66735f; }
.policy-aside a { display: block; padding: 8px 0; font-size: 11.5px; color: #6b7765; }
.policy-aside a:hover { color: var(--ink); }
.policy-content { max-width: 735px; }
.policy-content section { margin: 0 0 34px; scroll-margin-top: 30px; }
.policy-content h2 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -.4px;
}
.policy-content p,
.policy-content li { font-size: 12.5px; line-height: 2; color: var(--muted); }
.policy-content ul,
.policy-content ol { padding-left: 20px; }
.policy-content li { padding: 2px 0; }
.policy-content a { color: #4c6b3c; border-bottom: 1px solid #a7b493; }
.policy-content strong { font-weight: 550; color: #4a6140; }
.policy-callout {
  margin-bottom: 30px;
  padding: 16px 20px;
  border: 1px solid #d7e1c9;
  border-radius: 12px;
  background: #eaf0de;
  font-size: 12px;
  line-height: 1.9;
  color: #677b56;
}
.policy-table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  font-size: 11px;
  color: var(--muted);
}
.policy-table td,
.policy-table th {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
}
.policy-table th { font-weight: 500; color: #516848; }

/* Dialog ------------------------------------------------------------------ */
.modal {
  width: min(530px, calc(100% - 32px));
  padding: 34px;
  border: 1px solid #dbe1d1;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px #102e3326;
}
.modal::backdrop { background: #10291e66; backdrop-filter: blur(5px); }
.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: #849275;
}
.modal h2 { margin: 12px 0; font-size: 25px; font-weight: 550; }
.modal > p, .modal li { font-size: 12.5px; line-height: 1.9; color: #7e8874; }
.modal ol { padding-left: 20px; }
.endpoint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 21px;
  padding: 10px 12px;
  border: 1px solid #ccd6bd;
  border-radius: 9px;
  background: #edf0e3;
}
.endpoint code { flex: 1; font-size: 11px; overflow-wrap: anywhere; }
.copy-button {
  min-width: 48px;
  padding: 7px 10px;
  border: 1px solid #d4ddc5;
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
}
.modal-note { font-size: 11px !important; margin-bottom: 0; padding-top: 15px; border-top: 1px solid var(--line); }

/* 11. Motion & responsive -------------------------------------------------- */
.reveal { animation: fadeup .7s ease both; }

@keyframes fadeup {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .wrap { width: calc(100% - 72px); }
  .nav { gap: 20px; }
  .brand { font-size: 22px; }
  .hero h1 { letter-spacing: -2.4px; }
  .products-menu { width: min(720px, calc(100vw - 48px)); }
  .menu-grid { grid-template-columns: 1.05fr .95fr .9fr; gap: 12px; }
  .tool-grid { gap: 14px; }
}

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: 620px; }
  .hero-wall { max-width: 560px; margin-inline: auto; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight-copy > p, .spotlight-list { max-width: 520px; }
  .how-box { grid-template-columns: 1fr; gap: 26px; }
  .footer-main,
  .footer-main.footer-main-3 { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .mobile-menu { display: block; }
  .site-header { --header-h: 64px; }
  .header-inner { gap: 16px; }
  .brand { font-size: 21px; }
  .brand svg { width: 27px; height: 27px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .hero { padding: 32px 0 26px; }
  .hero h1 { font-size: 43px; letter-spacing: -2.2px; margin: 18px 0 16px; }
  .hero h1 em:after { bottom: 4px; height: 11px; }
  .hero-lede { font-size: 14px; }
  .hero-actions { margin-top: 24px; gap: 16px; }
  .hero-note { font-size: 10px; }
  .hero-wall { padding: 11px; border-radius: 20px; }
  .wall-grid { gap: 7px; }
  .wall-name { font-size: 9px; padding: 5px 6px; }
  .wall-more-text { font-size: 7.5px; }
  .wall-bar, .wall-foot { font-size: 8px; }
  .intro-strip { display: block; padding: 18px 0; }
  .intro-strip > p { margin-bottom: 14px; font-size: 11px; }
  .intro-values { flex-wrap: wrap; gap: 10px 18px; font-size: 9.5px; }
  .section { padding: 44px 0; }
  .section-head { display: block; margin: 14px 0 22px; }
  .section h2 { font-size: 30px; letter-spacing: -1.1px; }
  .section-lede { margin-top: 12px; font-size: 12px; }
  .tool-grid { grid-template-columns: 1fr; gap: 14px; }
  .tool-card-more { min-height: 220px; }
  .spotlight { padding: 22px; border-radius: 22px; }
  .demo-body { height: 380px; }
  .demo-tab { font-size: 8px; padding: 5px 6px; }
  .demo-bottom > span { font-size: 8px; }
  .demo-footnote { font-size: 9px; }
  .how-box { padding-top: 30px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .step-num { font-size: 21px; margin-bottom: 8px; }
  .how-note { margin-top: 18px; font-size: 10.5px; }
  .cta { display: block; padding: 26px 24px; border-radius: 20px; }
  .cta .button { margin-top: 18px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; line-height: 1.9; }
  .footer-bottom span:last-child { display: block; margin-top: 6px; }
  .collection-bar { display: block; padding-top: 14px; }
  .collection-note { display: block; margin-top: 6px; }
  .policy-hero { padding: 34px 0 28px; }
  .policy-hero h1 { font-size: 37px; letter-spacing: -1.4px; }
  .policy-layout { grid-template-columns: 1fr; gap: 26px; padding: 26px 0 56px; }
  .policy-aside {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .policy-aside .eyebrow { display: none; }
  .policy-aside a { font-size: 10px; padding: 3px 0; }
  .policy-content h2 { font-size: 17px; }
  .policy-content p, .policy-content li { font-size: 12px; }
  .modal { padding: 28px 22px; }
  .modal h2 { font-size: 22px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 38px; }
  .button { padding: 13px 18px; font-size: 12.5px; }
  .wall-name { font-size: 8.5px; }
  .tool-title-row { gap: 8px; }
  .tool-name { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Offshoot mark (the app icon, drawn inline so the static allowlist stays unchanged) */
.offshoot-mark {
  display: inline-block;
  flex: none;
  border-radius: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128' viewBox='0 0 128 128'%3E%3Crect width='128' height='128' rx='30' fill='%23202020'/%3E%3Cpath d='M63 98V70M63 77 37 56M63 73 89 51' fill='none' stroke='%23a3a3a3' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M25 25h29a8 8 0 0 1 8 8v19a8 8 0 0 1-8 8h-9L32 70V60h-7a8 8 0 0 1-8-8V33a8 8 0 0 1 8-8Z' fill='%23ffffff'/%3E%3Cpath d='M82 24h20a8 8 0 0 1 8 8v15a8 8 0 0 1-8 8H87L76 64V53a8 8 0 0 1-7-8V32a8 8 0 0 1 8-8Z' fill='%23d4d4d4'/%3E%3Ccircle cx='63' cy='98' r='8' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.menu-item .icon { width: 28px; height: 28px; border-radius: 8px; display: block; }

/* Mobile: the canvas example becomes a readable vertical story instead of a
   shrunken canvas. */
@media (max-width: 760px) {
  .demo-shell { transform: none; }
  .connections { display: none; }
  .demo-body {
    height: auto;
    display: grid;
    gap: 9px;
    padding: 12px;
  }
  .node,
  .node.root,
  .node.branch-one,
  .node.branch-two,
  .node.result {
    position: static;
    width: auto;
    min-height: 0;
    left: auto;
    right: auto;
    top: auto;
    padding: 11px 12px;
  }
  .node h3 { font-size: 12px; }
  .node p { font-size: 9.5px; }
  .demo-bottom { flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
  .demo-bottom > span { display: none; }
  .demo-footnote { max-width: 280px; margin: 10px auto 0; }
  .how-note { align-items: flex-start; }
  .how-note .status-dot { margin-top: 6px; }
}

/* Support hub ------------------------------------------------------------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 6px;
}
.support-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: border-color .16s, transform .16s;
}
.support-card:hover { border-color: #c7d2b7; transform: translateY(-1px); }
.support-card .icon { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: none; }
.support-card b { display: block; font-size: 12.5px; font-weight: 560; color: var(--ink); line-height: 1.4; }
.support-card small { display: block; font-size: 10px; color: #6d7766; }
.support-arrow { margin-left: auto; font-size: 10px; color: #a8b19a; }
@media (max-width: 760px) {
  .support-grid { grid-template-columns: 1fr; }
}

/* Keep the pointer inside the menu while crossing the gap below the toggle. */
.products-menu:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}
