:root {
  --bg: #eef0e7;
  --card: #fffdf6;
  --ink: #182a21;
  --muted: #526359;
  --line: #d6ddd0;
  --accent: #245942;
  --accent-ink: #fffdf6;
  --accent-soft: #e1ecdf;
  --hot: #c2410c;
  --hot-soft: #fdebdf;
  --warm: #a16207;
  --warm-soft: #fbf1d3;
  --cool: #4b6054;
  --cool-soft: #e8eee6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 22, 28, .05), 0 6px 20px rgba(20, 22, 28, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  position: relative; isolation: isolate; min-height: 100vh;
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url('/cartoon-jungle.jpg') center / cover no-repeat;
  opacity: .10;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; max-width: 1080px; margin: 0 auto;
}
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
nav a:hover { color: var(--ink); }
nav a.active { color: var(--ink); background: var(--cool-soft); }
.credits { font-size: .8rem; color: var(--muted); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }

main { max-width: 1080px; margin: 0 auto; padding: 8px 20px 80px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1 1 200px; }
.between { justify-content: space-between; }

label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 1px solid #c5d1c3; border-radius: 9px; padding: 11px 12px;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(31, 111, 74, .35); outline-offset: 1px; }
button {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 9px; padding: 11px 18px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
}
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .55; cursor: default; filter: none; }
button.ghost { background: transparent; color: var(--ink); border-color: #c5d1c3; }
button.small { padding: 7px 12px; font-size: .875rem; }
button.link { background: none; border: 0; color: var(--accent); padding: 0; font-weight: 600; }
.error { color: #b42318; font-size: .9rem; min-height: 1.3em; margin: 0; }
.notice { background: var(--warm-soft); border: 1px solid #ecd9a0; color: #5f4706; border-radius: 9px; padding: 10px 14px; font-size: .9rem; }

.notice.info { background: var(--accent-soft); border-color: #bfdccc; color: #174f35; margin-bottom: 12px; }

/* landing */
.landing .top, .landing main { max-width: 1200px; }
.landing .top {
  position: sticky; top: 12px; z-index: 2;
  width: calc(100% - 40px); max-width: 1040px;
  margin-block: 12px 0; padding: 7px 10px 7px 15px;
  border: 1px solid #cdd7c8; border-radius: 999px;
  background: #f5f5eb;
  box-shadow: inset 0 1px 0 #fff, 0 6px 24px #14291b16;
}
.landing .brand { font-size: 1.075rem; letter-spacing: -.025em; }
.landing nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding-inline: 18px; color: var(--ink); border-radius: 999px;
  background: #dce9da8c; box-shadow: inset 0 1px 0 #fffdf6a6;
}
.landing nav a:hover { background: #d4e5d2; }
.landing main { max-width: 1080px; }
.hero { text-align: center; padding: clamp(64px, 9vw, 122px) 12px clamp(48px, 7vw, 86px); }
.hero h1 {
  max-width: 12ch; margin: 0 auto; font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 570; line-height: 1; letter-spacing: -.065em; text-wrap: balance;
  color: #19392a;
}
.hero p.lead {
  margin: 1.5rem auto 0; max-width: 43ch; font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.5; text-wrap: pretty; color: var(--muted);
}
.hero-action {
  margin-top: 1.5rem; min-height: 48px; border-radius: 999px; padding-inline: 26px;
  background: #26583d; border-color: #48795a;
  box-shadow: inset 0 1px 1px #fffdf666, inset 0 -2px 4px #0a271d40, 0 5px 16px #1c462b36;
}
@supports (backdrop-filter: blur(1px)) {
  @media (prefers-reduced-transparency: no-preference) and (prefers-contrast: no-preference) {
    .landing .top {
      background: linear-gradient(160deg, #fffdf4da, #eaf1e1bc 56%, #e2ecdcba);
      border-color: #fffdf6d9;
      backdrop-filter: blur(18px) saturate(150%);
      box-shadow: inset 0 1px 1px #fff, inset 0 -1px 2px #b8c8b78c, 0 8px 28px #14291b24;
    }
    .hero-action {
      background: linear-gradient(160deg, #407452ed, #1d4d35f5 64%, #255b41ef);
      backdrop-filter: blur(12px) saturate(140%);
    }
  }
}
.lead-preview {
  max-width: 760px; margin: 0 auto clamp(40px, 7vw, 82px);
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 16px 42px #17291a0c;
}
.lead-preview-heading {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: clamp(20px, 4vw, 36px); list-style: none; cursor: pointer; border-radius: 19px;
}
.lead-preview-heading::-webkit-details-marker { display: none; }
.lead-preview-heading:hover { background: #f7f8f0; }
.lead-preview-heading:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lead-preview-label { display: block; margin-bottom: 8px; font-size: .8rem; font-weight: 650; color: var(--accent); }
.lead-preview-title {
  display: block; margin-bottom: 4px; font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 650; line-height: 1.15; letter-spacing: -.035em;
}
.lead-preview-action {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--accent);
  background: var(--card); font-size: .85rem; font-weight: 600;
}
.lead-preview-action::after {
  content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.lead-preview[open] .lead-preview-action::after { transform: translateY(2px) rotate(225deg); }
.lead-preview-close, .lead-preview[open] .lead-preview-open { display: none; }
.lead-preview[open] .lead-preview-close { display: inline; }
.lead-preview-detail {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 1px;
  border-top: 1px solid var(--line); background: var(--line);
  border-radius: 0 0 19px 19px; overflow: hidden;
}
.lead-preview-detail > div { padding: clamp(20px, 4vw, 36px); background: #f2f4eb; }
.lead-preview-detail p { margin: 0; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  @supports selector(details::details-content) and (interpolate-size: allow-keywords) {
    .lead-preview { interpolate-size: allow-keywords; }
    .lead-preview::details-content {
      block-size: 0;
      overflow: clip;
      opacity: 0;
      transition: block-size 240ms ease, opacity 180ms ease, content-visibility 240ms allow-discrete;
    }
    .lead-preview[open]::details-content { block-size: auto; opacity: 1; }
  }
}
@media (max-width: 600px) {
  .lead-preview-detail { grid-template-columns: 1fr; }
}
.signup-stage {
  display: grid; place-items: center;
  padding: clamp(20px, 5vw, 64px);
  border-radius: 24px; background: #162c21;
}
.auth-card {
  width: 100%; max-width: 390px; justify-self: center; padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid #fffdf3; border-radius: 24px; color: var(--ink);
  background: #f5f3e9; box-shadow: 0 18px 46px #06110a70;
}
.auth-card input { background: #fffdf6; border-color: #cbcebe; scroll-margin-top: 84px; }
.auth-card .error:empty { display: none; }
.auth-card .tabs { background: #e4e8dc; border-radius: 12px; padding: 4px; margin-bottom: 0; }
.auth-card .tabs button { flex: 1; min-height: 44px; padding-inline: 6px; font-size: .875rem; }
.auth-card .tabs button.on { background: #fffdf5; box-shadow: 0 1px 4px #17291a22; }
.auth-card button[type="submit"] { min-height: 48px; }
.landing-mascot { display: block; position: relative; width: 32px; }
.landing-mascot img { display: block; width: 100%; height: auto; }
.mascot-eye { display: none; }
@media (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* Align the animated eye with the cream area inside the original lens. */
  .mascot-eye {
    display: block; position: absolute; pointer-events: none;
    left: 44.1%; top: 36.8%; width: 24.7%; height: 25%;
    border-radius: 50%; background: radial-gradient(ellipse at 50% 48%, #fff0d5, #f5dcad);
  }
  .mascot-pupil {
    position: absolute; border-radius: 50%; background: #07360d;
    left: 20%; top: 21%;
    width: 60%; height: 63%;
    transform: translate(var(--look-x, 0%), var(--look-y, 0%));
    transition: transform 85ms ease-out;
  }
  .mascot-pupil::after {
    content: ""; position: absolute; width: 31%; aspect-ratio: 1;
    top: 12%; right: 16%; border-radius: 50%; background: white;
  }
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 4vw, 60px); margin: 44px 0 60px; }
.steps > div { border-top: 1px solid #acb5a2; padding-top: 17px; }
.steps h3 { font-size: 1.15rem; }
.steps p { max-width: 31ch; margin: 0; }
.landing-pricing { font-size: clamp(1.8rem, 4vw, 2.75rem); letter-spacing: -.045em; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry 0% entry 100%) {
    /* Tie the reveal to scroll progress so reversing direction reverses the motion. */
    .signup-stage, .steps > div, .pricing-section {
      animation: landing-reveal 1ms ease-in-out both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    @keyframes landing-reveal {
      from { opacity: .72; transform: translateY(22px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan .price { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; }
.plan ul { padding-left: 18px; margin: 10px 0 16px; color: var(--muted); }
.plan.current { border-color: var(--accent); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs button { background: transparent; color: var(--muted); border-color: transparent; padding: 7px 12px; }
.tabs button.on { background: var(--cool-soft); color: var(--ink); }

/* results */
.results { list-style: none; margin: 0; padding: 0; }
.result {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 4px; border-top: 1px solid var(--line);
}
.result:first-child { border-top: 0; }
.score { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; }
.score.hot { background: var(--hot-soft); color: var(--hot); }
.score.warm { background: var(--warm-soft); color: var(--warm); }
.score.cool { background: var(--cool-soft); color: var(--cool); }
.result .name { font-weight: 600; }
.result .meta { color: var(--muted); font-size: .875rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--cool-soft); color: var(--cool); }
.tag.hot { background: var(--hot-soft); color: var(--hot); }
.tag.ok { background: var(--accent-soft); color: var(--accent); }

.chipbox { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #fff; border: 1px solid #c5d1c3; border-radius: 9px; padding: 6px 8px; min-height: 46px; cursor: text; }
.chipbox:focus-within { outline: 3px solid rgba(31, 111, 74, .35); outline-offset: 1px; }
.chipbox input { border: 0; padding: 5px 4px; flex: 1 1 140px; min-width: 120px; outline: none; background: transparent; }
.chips { display: contents; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .875rem; padding: 4px 4px 4px 10px; border-radius: 999px; }
.chip button { background: none; border: 0; color: inherit; padding: 0 6px; font-size: 1.05rem; line-height: 1; }
.ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.idea { background: transparent; color: var(--muted); border: 1px dashed #c5d1c3; padding: 3px 10px; font-size: .8rem; font-weight: 500; border-radius: 999px; }
.idea:hover { color: var(--ink); border-style: solid; filter: none; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 12px; margin-bottom: 6px; background: #f0f4eb; border: 1px solid var(--line); border-radius: 9px; }
.filter { margin: 0; font-size: .78rem; font-weight: 600; color: var(--muted); }
.filter > span { display: block; margin-bottom: 3px; }
.filter select { width: auto; padding: 7px 8px; font-size: .875rem; font-weight: 400; color: var(--ink); }
.filter.check { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 8px; color: var(--ink); font-weight: 500; font-size: .875rem; }
.filter.check > span { margin: 0; }
.filter.check input { width: auto; }
.filters .link { padding-bottom: 9px; }

.result { grid-template-columns: 58px 1fr auto; }
.results.selecting .result { grid-template-columns: 22px 58px 1fr auto; }
.results.selecting .detail { grid-column: 3 / -1; }
.result.open { background: #f0f4eb; border-radius: 9px; padding-left: 8px; padding-right: 8px; }
.pick { margin: 0; display: grid; place-items: center; cursor: pointer; }
.pick input, .listhead input { width: 17px; height: 17px; accent-color: var(--accent); }
.rowmain { background: none; border: 0; color: inherit; text-align: left; padding: 0; font-weight: 400; width: 100%; display: block; }
.rowmain:hover { filter: none; }
.rowmain:hover .name { text-decoration: underline; }
.rowmain span.name, .rowmain span.meta { display: block; }
.act { display: flex; align-items: center; gap: 6px; }
.star { background: none; border: 0; color: #b8b5aa; font-size: 1.35rem; line-height: 1; padding: 4px 6px; }
.star.on { color: #d19a06; }
.star:hover { filter: none; color: #d19a06; }
.detail { grid-column: 2 / -1; display: grid; gap: 12px; padding: 4px 0 6px; border-top: 1px dashed var(--line); padding-top: 12px; }
.plist { margin: 0; padding-left: 18px; }
.plist li { margin: 2px 0; }
.listhead { padding: 4px 4px 8px; }
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 6px; background: var(--accent-soft); border: 1px solid #bfdccc; border-radius: 9px; position: sticky; top: 8px; z-index: 2; }
.history { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.history:empty { display: none; }
.idea.past { border-style: solid; }
.morebox { display: grid; gap: 12px; margin-top: 14px; padding: 16px; background: #f0f4eb; border: 1px dashed #c5d1c3; border-radius: 9px; }
button.danger { background: #b42318; border-color: #b42318; color: #fff; }
button.link.danger { background: none; color: #b42318; }

/* lead status colours: one colour per stage, used on chips, group headers, rows and selects */
.st-not_contacted { --st: #64748b; --st-soft: #e8eee6; }
.st-sent { --st: #1d4ed8; --st-soft: #e0e9fd; }
.st-replied { --st: #b45309; --st-soft: #fdf0d5; }
.st-call_booked { --st: #7c3aed; --st-soft: #ede5fd; }
.st-client { --st: #15803d; --st-soft: #dcf3e3; }
.st-dead { --st: #b42318; --st-soft: #fbe4e1; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--st, var(--muted)); margin-right: 7px; }
.tag.st { background: var(--st-soft); color: var(--st); }
.tag.new { background: var(--accent); color: #fff; }
.statusbar { display: flex; flex-wrap: wrap; gap: 8px; }
.statuschip { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .875rem; font-weight: 500; }
.statuschip b { color: var(--muted); font-weight: 600; }
.statuschip.on { background: var(--st-soft, var(--cool-soft)); border-color: var(--st, var(--ink)); }
.statuschip:hover { filter: none; border-color: var(--st, var(--ink)); }
.group { padding: 0; overflow: hidden; border-top: 4px solid var(--st); }
.grouphead { margin: 0; padding: 12px 16px; background: var(--st-soft); font-size: 1rem; }
.group table { margin: 0; }
.st-row td:first-child { border-left: 4px solid var(--st); }
.st-select { border-color: var(--st); background: var(--st-soft); color: var(--st); font-weight: 600; }
.note { color: var(--muted); font-style: italic; }
td.right { text-align: right; white-space: nowrap; }
input[type=search] { max-width: 480px; }

/* lead */
.lead-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; align-items: start; }
.problem { padding: 12px 0; border-top: 1px solid var(--line); }
.problem:first-of-type { border-top: 0; padding-top: 0; }
.problem strong { display: block; }
.pitch { white-space: pre-wrap; background: #f0f4eb; border: 1px solid var(--line); border-radius: 9px; padding: 14px; font-size: .95rem; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .93rem; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }

table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; }
td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
td select { padding: 6px 8px; width: auto; }
.table-wrap { overflow-x: auto; }
.meter { height: 8px; background: var(--cool-soft); border-radius: 999px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.spinner { width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--muted); padding: 36px 10px; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: .9rem; transition: all .2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .lead-grid, .steps, .plans { grid-template-columns: 1fr; }
  .steps { margin-block: 32px 44px; }
  .result { grid-template-columns: 44px 1fr; }
  .results.selecting .result { grid-template-columns: 22px 44px 1fr; }
  .result .act { grid-column: 1 / -1; }
  .results.selecting .result .act { grid-column: 2 / -1; }
  .results.selecting .detail { grid-column: 1 / -1; }
  .toolbar .grow { display: none; }
  .result .act button:not(.star) { flex: 1; }
  .detail { grid-column: 1 / -1; }
  .score { width: 44px; height: 44px; font-size: .95rem; }
  nav a { padding: 8px 9px; }
  .top { flex-direction: column; align-items: flex-start; }
  .landing .top { flex-direction: row; align-items: center; }
}

/* Signed-in workspace */
body:not(.landing) .top {
  max-width: none;
  padding: 14px max(20px, calc((100% - 1080px) / 2));
  background: #142e23;
  border-bottom: 1px solid #31513e;
}
body:not(.landing) .brand { color: #fcf5e5; }
body:not(.landing) nav { gap: 5px; }
body:not(.landing) nav a { color: #d0ded0; }
body:not(.landing) nav a:hover,
body:not(.landing) nav a.active { color: #fffdf2; background: #345644; }
body:not(.landing) .credits { color: #e0eacb; border-color: #587662; }
body:not(.landing) main { max-width: 1120px; padding-top: clamp(26px, 5vw, 54px); }
.page-title, .workspace-heading h1 {
  margin: 0; color: #19392b;
  font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 620; letter-spacing: -.06em;
}
.workspace-heading {
  padding: clamp(24px, 4.5vw, 48px); border-radius: 22px;
  background: linear-gradient(115deg, #163327, #2d503a);
}
.workspace-heading h1 { color: #fcf5e5; }
.workspace-heading p { margin: 10px 0 0; color: #d9e5d1; }
.search-form { padding: clamp(18px, 3vw, 30px); }
.search-form .chipbox { background: #f6f8f0; }
.card { border-radius: 16px; }
.result.open, .filters, .morebox, .pitch { background: #eef3e8; }
.result .name { color: #204c37; }
.score.hot { background: #dbe9d7; color: #21533a; }
.score.warm { background: #f4e8cb; color: #78501a; }
.pitch-card { border-color: #afc5ae; }
.pitch { border-left: 3px solid #7d9c78; padding: 18px; }
.st-not_contacted { --st: #54665c; --st-soft: #e9eee7; }
.st-sent { --st: #2e6670; --st-soft: #e0efed; }
.st-replied { --st: #88571c; --st-soft: #f6edd6; }
.st-call_booked { --st: #655283; --st-soft: #ede8f3; }
.st-client { --st: #286047; --st-soft: #e0edde; }
.st-dead { --st: #963f37; --st-soft: #f5e7e2; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .workspace-heading { animation: interface-enter 280ms ease-out both; }
  nav a, button { transition: background-color 150ms ease, filter 150ms ease, transform 150ms ease; }
  button:enabled:active { transform: scale(.98); }
  @keyframes interface-enter {
    from { opacity: .82; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Forest green frames the main actions, with warm paper for reading and editing. */
.landing .hero {
  margin: 12px 0 clamp(22px, 4vw, 44px);
  border-radius: 24px;
  background: #142e23;
}
.landing .hero h1, .workspace-heading h1, .page-title {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.045em;
}
.landing .hero h1 { color: #fff4d9; }
.landing .hero p.lead { color: #d8e3cd; }
.landing .hero-action {
  background: #e9dfb9;
  border-color: #e9dfb9;
  color: #1b3528;
  box-shadow: none;
}
.search-form { border-color: #b6c7b3; }
.search-form button[type="submit"] { min-height: 46px; }
@media (max-width: 760px) {
  .landing .hero { border-radius: 18px; }
  body:not(.landing) nav { width: 100%; }
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.hero-actions .hero-action { margin-top: 0; }
.hero-demo {
  min-height: 48px; border-radius: 999px;
  color: #fff4d9; background: #ffffff0a; border-color: #adc0a27d;
}
.hero-demo:focus-visible { outline-color: #e9dfb9; }
.lead-preview { scroll-margin-top: 90px; }
.landing .hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at center, #0a2117d9 0%, #0a2117a0 47%, #0a211729 100%),
    url('/cartoon-jungle.jpg') center 43% / cover no-repeat #142e23;
}
.hero-swing {
  position: absolute; top: -4px; right: clamp(-12px, 1.5vw, 26px);
  width: clamp(145px, 23vw, 272px); pointer-events: none;
  transform-origin: 51% 0;
  filter: drop-shadow(0 9px 14px #07170eb3);
}
.hero-swing img { display: block; width: 100%; height: auto; }
.hero-copy { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .hero-swing { animation: vine-swing 4.8s ease-in-out 1 both; }
  @keyframes vine-swing {
    0% { transform: rotate(-12deg); }
    37% { transform: rotate(10deg); }
    70% { transform: rotate(-4deg); }
    100% { transform: rotate(0); }
  }
}
@media (max-width: 1000px) {
  .landing .hero { padding-top: clamp(132px, 19vw, 186px); }
  .hero-swing { top: -4px; right: calc(50% - 72px); width: 144px; }
}

/* list controls: one quiet row; filters and tick boxes appear on request */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.toolbar .grow { flex: 1 1 0; }
.toolbar .sortsel { width: auto; padding: 7px 10px; font-size: .875rem; border-radius: 9px; }
.toolbar button.has-active { border-color: var(--accent); color: var(--accent); }
.filters[hidden] { display: none; }
.filters { margin-bottom: 10px; }
.bulkbar .filter.check { padding-bottom: 0; }
.tuck { margin-top: 8px; }
.tuck > summary { cursor: pointer; color: var(--muted); font-size: .8rem; font-weight: 600; width: fit-content; }
.tuck > summary:hover { color: var(--ink); }
.tuck[open] > summary { margin-bottom: 6px; }
.tuck .ideas { margin-top: 0; }
.history { display: block; }

/* confirm-your-email bar */
.verify-bar { max-width: 1040px; width: calc(100% - 40px); margin: 14px auto 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.verify-bar span { flex: 1 1 260px; }

/* usage menu in the top bar */
.usage { position: relative; margin-left: 6px; }
.usage-trigger {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 7px 12px 7px 10px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .84rem; font-weight: 600; letter-spacing: 0;
  color: #f4eed6; background: #1f4533; border: 1.5px solid #587662; box-shadow: none;
}
.usage-trigger:hover, .usage-trigger[aria-expanded="true"] { background: #2b5a43; border-color: #8fb08d; filter: none; transform: none; }
.usage-trigger:focus-visible, .usage-panel button:focus-visible, .usage-foot:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; }
.usage-icon { display: inline-flex; color: #8fd07e; }
.usage-caret { font-size: .7rem; opacity: .8; }
.usage-trigger.is-low { border-color: #f2c14e; }
.usage-trigger.is-low .usage-icon { color: #f2c14e; }
.usage-trigger.is-out { background: #5a2a14; border-color: #f08a4b; }
.usage-trigger.is-out .usage-icon { color: #f8a36c; }

.usage-panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 30; width: 344px; max-width: calc(100vw - 24px);
  background: var(--card); color: var(--ink); text-align: left;
  border: 2px solid #142e23; border-radius: 20px; overflow: hidden auto; max-height: calc(100vh - 96px); overscroll-behavior: contain;
  box-shadow: 0 5px 0 #0d2118, 0 22px 44px rgba(8, 28, 18, .38);
}
.usage-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px 15px; color: #fcf5e5;
  background:
    radial-gradient(120px 70px at 92% 0%, rgba(143, 208, 126, .28), transparent 70%),
    radial-gradient(90px 60px at 0% 100%, rgba(242, 193, 78, .16), transparent 70%),
    linear-gradient(120deg, #142e23, #2d5a41);
  border-bottom: 2px solid #142e23;
}
.usage-head p { margin: 0; }
.usage-kicker { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #b9d3b0; }
.usage-plan { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.7rem; font-weight: 620; letter-spacing: -.04em; line-height: 1.1; }
.usage-reset { font-size: .78rem; color: #d3e2cc; margin-top: 3px !important; }
.usage-head img { flex: none; border-radius: 50%; background: #fcf5e5; border: 2px solid #142e23; box-shadow: 0 3px 0 #0d2118; transform: rotate(6deg); }

.usage-body { padding: 16px 18px 14px; display: grid; gap: 14px; }
.usage-row-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .86rem; }
.usage-row-head span, .usage-row-foot { color: var(--muted); font-size: .8rem; }
.usage-bar { height: 13px; margin: 6px 0 5px; background: #e5ecd9; border: 1.5px solid #142e23; border-radius: 999px; overflow: hidden; }
.usage-bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3c8a5b, #86cc70); }
.usage-bar.is-low > i { background: linear-gradient(90deg, #e0a52a, #f6d36b); }
.usage-bar.is-out > i { background: linear-gradient(90deg, #c2410c, #f08a4b); }
.usage-row-foot { display: flex; justify-content: space-between; gap: 8px; }
.usage-extra { color: #1d5a3c; font-weight: 600; background: var(--accent-soft); padding: 1px 8px; border-radius: 999px; }
.usage-note { margin: 0; font-size: .78rem; color: var(--muted); }

.usage-actions { display: grid; gap: 9px; margin-top: 2px; }
.usage-cta, .usage-more {
  width: 100%; padding: 11px 14px; border-radius: 13px; cursor: pointer; font: inherit; font-weight: 700; font-size: .93rem;
  border: 2px solid #142e23; box-shadow: 0 3px 0 #142e23;
}
.usage-cta { background: #f2c14e; color: #142e23; }
.usage-cta:hover { background: #f7cf68; filter: none; }
.usage-more { background: #fffdf6; color: #142e23; }
.usage-more:hover { background: #eef4e6; filter: none; }
.usage-cta:active, .usage-more:active { transform: translateY(2px); box-shadow: 0 1px 0 #142e23; }

.usage-packs { display: grid; gap: 10px; padding: 12px; margin-top: -2px; background: #f1f5e8; border: 1.5px dashed #9db39a; border-radius: 14px; }
.usage-group { display: grid; gap: 6px; }
.usage-group p { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #4b6054; }
.usage-pack {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%;
  padding: 8px 8px 8px 12px; border-radius: 11px; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 600; text-align: left;
  background: #fffdf6; color: #142e23; border: 1.5px solid #142e23; box-shadow: 0 2px 0 #142e23;
}
.usage-pack b { flex: none; padding: 3px 10px; border-radius: 999px; background: #dff0d6; border: 1.5px solid #142e23; font-size: .82rem; }
.usage-pack:hover:not(:disabled) { background: #fff7d9; filter: none; }
.usage-pack:hover:not(:disabled) b { background: #f2c14e; }
.usage-pack:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 #142e23; }
.usage-pack:disabled { opacity: .55; cursor: not-allowed; }
.usage-pack.busy { opacity: .7; cursor: progress; }

.usage-foot { display: block; padding: 11px 18px; text-align: center; font-size: .84rem; font-weight: 600; color: #1d5a3c !important; background: #f4f1e2 !important; border-top: 1.5px solid #d9dccb; border-radius: 0 !important; text-decoration: none; }
.usage-foot:hover { background: #ebe7d2 !important; text-decoration: underline; }

@media (max-width: 640px) {
  .usage { margin-left: 0; }
  .usage-panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: calc(100vh - 24px); overflow-y: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .usage-panel { animation: usage-pop 160ms ease-out; transform-origin: top right; }
  @keyframes usage-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
}

/* monthly / yearly switch above the plan cards */
.plan-area { display: grid; gap: 14px; }
.bill-toggle { justify-self: center; display: inline-flex; gap: 4px; padding: 4px; background: #e3ead9; border: 2px solid #142e23; border-radius: 999px; box-shadow: 0 3px 0 #142e23; }
.bill-toggle button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: #24402f; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; box-shadow: none; }
.bill-toggle button:hover { background: #d3dfc8; filter: none; transform: none; }
.bill-toggle button.on { background: #142e23; color: #fcf5e5; }
.bill-toggle .save { padding: 2px 9px; border-radius: 999px; background: #f2c14e; color: #142e23; font-size: .74rem; font-weight: 800; }
.bill-toggle button:focus-visible { outline: 3px solid #f2c14e; outline-offset: 2px; }
.plan .billed { margin: 2px 0 0; font-size: .82rem; color: #1d5a3c; font-weight: 600; }

/* dashboard */
.dash-hero { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-end; justify-content: space-between; padding: clamp(22px, 3.5vw, 36px); }
.dash-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.dash-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-tile { min-width: 104px; padding: 10px 14px; border-radius: 14px; background: rgba(252, 245, 229, .09); border: 1.5px solid rgba(252, 245, 229, .22); color: #fcf5e5; }
.dash-tile b { display: block; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.9rem; font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
.dash-tile span { font-size: .78rem; color: #cfe0c8; }

.dash { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash > * { margin: 0 !important; }
.dash-panel { padding: 18px 20px 20px; }
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dash-head h2 { margin: 0; font-size: 1.12rem; letter-spacing: -.01em; }
.dash-more { font-size: .86rem; font-weight: 600; white-space: nowrap; }
.dash-sub { margin: -4px 0 12px; font-size: .9rem; color: var(--muted); }
.dash-quick { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.dash-quick .chipbox { background: #f6f8f0; }
.dash-quick button[type="submit"] { height: 44px; }
.dash-recent { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; }
.dash-recent:empty { display: none; }
.dash-label { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #4b6054; margin-right: 4px; }
.dash-usage { display: grid; gap: 12px; }
.dash-usage .dash-head { margin-bottom: 0; }
.dash-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 2px; }
.dash-actions > :only-child { grid-column: 1 / -1; }
.dash-stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.dash-stage { display: grid; gap: 2px; padding: 9px 6px 8px; text-align: center; border-radius: 12px; cursor: pointer; font: inherit; background: var(--st-soft, var(--cool-soft)); color: var(--ink); border: 1.5px solid transparent; box-shadow: none; }
.dash-stage:hover { border-color: var(--st, var(--ink)); filter: none; }
.dash-stage b { font-size: 1.3rem; line-height: 1.1; color: var(--st, var(--ink)); }
.dash-stage span { font-size: .72rem; color: var(--muted); line-height: 1.25; }
.dash-stage .dot { width: 7px; height: 7px; margin-right: 5px; vertical-align: 1px; }
.dash-list .tag { flex: none; white-space: nowrap; }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.dash-list li:first-child { border-top: 0; }
.dash-list .score { flex: none; width: 38px; height: 38px; font-size: .86rem; }
.dash-item { flex: 1 1 auto; min-width: 0; display: grid; }
.dash-item a { font-weight: 600; text-decoration: none; color: #204c37; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-item a:hover { text-decoration: underline; }
.dash-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-empty { margin: 0; padding: 14px; border-radius: 12px; background: #f1f5e8; border: 1.5px dashed #b4c6b0; color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* footer links, legal pages, and the standalone password cards */
.site-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 28px 20px 34px; font-size: .86rem; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.landing .site-foot a { color: #46584c; }
.solo { max-width: 440px; margin: clamp(10px, 6vh, 70px) auto 0; }
.solo .auth-card { padding: 26px; }
.legal-page .top nav a { color: #d0ded0; }
.legal-page .top nav a:hover { color: #fffdf2; background: #345644; }
body.legal-page main.legal { max-width: 780px; margin: 28px auto 60px; padding: clamp(22px, 4vw, 44px); line-height: 1.6; }
.legal h1 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-weight: 400; font-size: clamp(1.9rem, 4.5vw, 2.7rem); letter-spacing: -.04em; margin: 0 0 4px; color: #19392b; }
.legal h2 { font-size: 1.1rem; margin: 26px 0 6px; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal .updated { color: var(--muted); font-size: .88rem; margin-bottom: 18px; }

/* "I am 18 or older" tick box on the sign-up card */
.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; line-height: 1.45; cursor: pointer; }
.agree[hidden] { display: none; }
.agree input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #245942; }

/* invite friends */
.dash-col { display: grid; gap: 16px; }
.dash-col > * { margin: 0 !important; }
.invite-link { display: flex; gap: 8px; }
.invite-link input { flex: 1 1 auto; min-width: 0; font-size: .86rem; background: #f6f8f0; }
.invite-link button { flex: none; }
.invite-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.invite-stat { padding: 9px 6px; text-align: center; border-radius: 12px; background: #f1f5e8; }
.invite-stat b { display: block; font-size: 1.25rem; line-height: 1.1; color: #1d5a3c; }
.invite-stat span { font-size: .72rem; color: var(--muted); }
/* sign-in and account */
.security > form { margin-top: 12px; max-width: 420px; }
.security + .security { margin-top: 4px; }
button.danger { background: #b3391c; color: #fff; border-color: #8f2a12; }
button.danger:hover { background: #9c2f15; filter: none; }
/* owner numbers */
.num-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.num-tile { padding: 16px 18px; display: grid; gap: 2px; }
.num-tile b { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.9rem; font-weight: 500; letter-spacing: -.03em; color: #19392b; line-height: 1.1; }
.num-tile span { font-size: .86rem; font-weight: 600; }
.num-tile small { font-size: .76rem; color: var(--muted); }

/* cancel subscription */
#cancel-box:empty { display: none; }
.cancel-flow { border: 2px solid #142e23; box-shadow: 0 4px 0 #142e23; max-width: 640px; }
.cancel-reasons { display: grid; gap: 6px; }
.cancel-reason { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 11px; font-weight: 500; cursor: pointer; background: #fffdf6; }
.cancel-reason:hover { border-color: #8fb08d; }
.cancel-reason:has(input:checked) { border-color: #245942; background: var(--accent-soft); }
.cancel-reason input { width: 17px; height: 17px; margin: 0; accent-color: #245942; }
.cancel-flow textarea { width: 100%; resize: vertical; }
.cancel-flow .usage-cta, .cancel-flow .usage-more { width: auto; }
.cancel-points { margin: 0; padding-left: 20px; }
.cancel-points li + li { margin-top: 6px; }

.invite-stats.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.invite-body > * + * { margin-top: 12px; }
.invite-table td, .invite-table th { white-space: nowrap; }
@media (max-width: 700px) { .invite-stats.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* referral bonus ladders */
.ladders { display: grid; gap: 14px; }
.ladder .meter { margin: 6px 0 8px; }
.ladder-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.ladder-step { display: grid; gap: 1px; padding: 8px 10px; border-radius: 11px; border: 1.5px dashed #b4c6b0; background: #fbfaf1; color: var(--muted); }
.ladder-step b { font-size: .8rem; color: var(--ink); }
.ladder-step span { font-size: .78rem; }
.ladder-step.next { border-style: solid; border-color: #142e23; background: #fff7d9; color: #5f4706; box-shadow: 0 2px 0 #142e23; }
.ladder-step.reached { border-style: solid; border-color: #8fb08d; background: var(--accent-soft); color: #1d5a3c; }
.ladder-step.reached b { color: #1d5a3c; }

/* cards on the Account page that open when their title is clicked */
.fold { padding: 0; }
.fold > summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; border-radius: 16px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover { background: #f6f8f0; }
.fold > summary:focus-visible { outline: 3px solid #f2c14e; outline-offset: -3px; }
.fold-title { font-weight: 700; font-size: 1.05rem; }
.fold-hint { flex: 1 1 auto; text-align: right; color: var(--muted); font-size: .86rem; }
.fold-caret { color: var(--muted); transition: transform 150ms ease; }
.fold[open] > summary { border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; }
.fold[open] .fold-caret { transform: rotate(180deg); }
.fold-body { padding: 18px 20px 20px; }
@media (max-width: 560px) { .fold-hint { display: none; } }

/* owner cost table */
.cost-table td.right, .cost-table th.right { text-align: right; white-space: nowrap; }
.cost-table tfoot td { border-top: 2px solid var(--line); padding-top: 12px; }

/* contact page */
.contact-box { margin: 18px 0 24px; padding: 20px; border: 2px solid #142e23; border-radius: 16px; background: #f6f8f0; box-shadow: 0 4px 0 #142e23; }
.contact-label { margin: 0 0 2px !important; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #4b6054; }
.contact-email { margin: 0 0 14px !important; font-size: clamp(1.25rem, 4vw, 1.7rem); font-weight: 700; color: #19392b; user-select: all; overflow-wrap: anywhere; }
.contact-box a { text-decoration: none; }
.contact-box .small { margin: 10px 0 0 !important; min-height: 1.2em; }
/* suggestion box */
.site-foot .foot-link { background: none; border: 0; padding: 0; font: inherit; font-size: .86rem; color: var(--muted); cursor: pointer; box-shadow: none; }
.site-foot .foot-link:hover { color: var(--ink); text-decoration: underline; filter: none; }
.feedback-fab { position: fixed; right: 20px; bottom: 20px; z-index: 20; padding: 12px 22px; border-radius: 999px; font-size: 1rem; font-weight: 700;
  background: #f2c14e; color: #142e23; border: 2px solid #142e23; box-shadow: 0 3px 0 #142e23; }
.feedback-fab:hover { background: #f7cf68; filter: none; }
.feedback-box { width: min(480px, calc(100vw - 24px)); padding: 22px; border: 2px solid #142e23; border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: 0 5px 0 #0d2118, 0 22px 44px rgba(8, 28, 18, .38); }
.feedback-box::backdrop { background: rgba(13, 33, 24, .55); }
.feedback-box textarea { width: 100%; resize: vertical; }
.feedback-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback-list { list-style: none; margin: 0; padding: 0; }
.feedback-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.feedback-list li:first-child { border-top: 0; padding-top: 0; }
.feedback-list p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { .feedback-fab { right: 12px; bottom: 12px; padding: 9px 15px; font-size: .9rem; } }

/* profile: describe what you offer */
#pabout { width: 100%; resize: vertical; min-height: 110px; }
.about-foot { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; margin-top: 6px; }
.about-foot span { white-space: nowrap; }

/* lead page: rewrite the pitch */
.rewrite { border-top: 1px dashed rgba(22, 48, 42, .18); padding-top: 12px; display: grid; gap: 8px; }
.rewrite:empty { display: none; }
.rewrite-head { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.rewrite-styles { display: flex; gap: 8px; flex-wrap: wrap; }

/* pages for search visitors, and the home text search engines read before the app starts */
.seo-static { max-width: 760px; margin: 40px auto; padding: 0 20px; line-height: 1.6; }
.seo-static h1 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; }
.seo-page .seo-lead { font-size: 1.12rem; }
.seo-page h3 { font-size: 1rem; margin: 18px 0 4px; }
.seo-page ol { padding-left: 22px; margin: 0 0 12px; }
.seo-page ol li + li { margin-top: 8px; }
.seo-cta { display: inline-block; padding: 11px 18px; border-radius: 10px; background: #1f6f4a; color: #fffdf2; font-weight: 700; text-decoration: none; margin-right: 10px; }
.seo-cta:hover { background: #185a3c; }
.seo-links a, .foot-for a { white-space: nowrap; }
.foot-for { flex-basis: 100%; min-width: 0; text-align: center; font-size: .85rem; opacity: .85; }
.foot-for a { display: inline-block; margin: 0 6px; }
.seo-page .site-foot { margin-top: 0; }
body:not(.landing) .foot-for { display: none; }

/* a small 'find more' above the results, as well as the full one below */
.more-top { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: -2px 0 10px; }

/* Big screens: scale the whole interface up instead of leaving it small in the middle.
   Width is in CSS pixels, so a laptop set to 125% or 150% display scaling is unaffected. */
:root { --zoom: 1; }
@media (min-width: 1600px) { :root { --zoom: 1.12; } }
@media (min-width: 1760px) { :root { --zoom: 1.22; } }
@media (min-width: 1900px) { :root { --zoom: 1.32; } }
@media (min-width: 2200px) { :root { --zoom: 1.5; } }
@media (min-width: 2500px) { :root { --zoom: 1.7; } }
@media (min-width: 3000px) { :root { --zoom: 2; } }
@media (min-width: 3600px) { :root { --zoom: 2.4; } }
body { zoom: var(--zoom); min-height: calc(100vh / var(--zoom)); }

/* owners' Numbers page: period switch, charts, sources */
.range-toggle { margin: 0; }
.num-now { margin: 26px 0 0; font-size: 1.3rem; }
.num-delta { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }
.chart-wrap { position: relative; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-grid.zero { stroke: #9aa89e; }
.chart-tick { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.chart-bar { transition: opacity .12s; }
.chart-bar.dim { opacity: .45; }
.chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { stroke: var(--card); stroke-width: 2; }
.chart-hot { fill: rgba(36, 89, 66, .07); }
.chart-hit { fill: transparent; cursor: default; outline: none; }
.chart-hit:focus-visible { stroke: var(--accent); stroke-width: 2; }
.chart-tip { position: absolute; top: 6px; z-index: 5; min-width: 150px; padding: 9px 11px; border-radius: 10px; background: #142e23; color: #fffdf6; font-size: .82rem; pointer-events: none; box-shadow: 0 8px 22px rgba(8, 28, 18, .28); }
.chart-tip-when { opacity: .75; margin-bottom: 4px; }
.chart-tip-row { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.chart-tip-row i { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.chart-tip-row i.none { background: transparent; }
.chart-tip-row b { font-variant-numeric: tabular-nums; }
.chart-tip-row span { opacity: .8; }
.chart-legend { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .key-bar { width: 11px; height: 11px; border-radius: 3px; }
.chart-legend .key-line { width: 16px; height: 3px; border-radius: 2px; }
.chart-empty { position: absolute; inset: 40% 0 auto; text-align: center; color: var(--muted); margin: 0; pointer-events: none; }
#chart-activity .statusbar { margin-bottom: 8px; }
.src-list { display: grid; gap: 8px; }
.src-row { display: grid; grid-template-columns: minmax(120px, 1.1fr) 2fr auto auto; gap: 12px; align-items: center; font-size: .92rem; }
.src-bar { height: 10px; border-radius: 6px; background: var(--cool-soft); overflow: hidden; }
.src-bar i { display: block; height: 100%; border-radius: 6px; background: #2a78d6; }
.src-num { color: var(--muted); white-space: nowrap; font-size: .84rem; }
.src-num b { color: var(--ink); font-variant-numeric: tabular-nums; }
#analytics-table > summary { cursor: pointer; font-weight: 600; }
#analytics-table[open] > summary { margin-bottom: 12px; }
@media (max-width: 640px) { .src-row { grid-template-columns: 1fr auto; } .src-bar { grid-column: 1 / -1; order: 3; } }
@media (max-width: 640px) {
  .range-toggle { max-width: 100%; overflow-x: auto; }
  .range-toggle button { padding: 8px 10px; font-size: .82rem; white-space: nowrap; }
}
/* upgrade pop-up for Free accounts after logging in */
.upgrade-box { width: min(720px, calc(100vw - 24px)); max-height: calc(100vh / var(--zoom) - 32px); overflow: auto; }
.upgrade-box .plans.plans-few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .upgrade-box .plans.plans-few { grid-template-columns: 1fr; } }
.upgrade-box .plan-area { margin-bottom: 6px; }

.seg-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.seg-label { font-size: .8rem; color: var(--muted); margin-right: 2px; }
.seg .statuschip { padding: 4px 11px; font-size: .82rem; }
.chart-end { fill: var(--ink); font-size: 11.5px; font-weight: 600; paint-order: stroke; stroke: var(--card); stroke-width: 4px; }

/* Numbers page as a compact dashboard: headline row, two charts side by side, the rest folded away */
.num-page.stack > * + * { margin-top: 12px; }
.num-page .stack > * + * { margin-top: 12px; }
.num-grid.compact { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.num-grid.compact .num-tile { padding: 11px 13px; }
.num-grid.compact .num-tile b { font-size: 1.45rem; }
.num-grid.compact .num-tile span { font-size: .8rem; }
.num-grid.compact .num-delta, .num-grid.compact .num-tile small { font-size: .7rem; margin-top: 2px; }
.num-fold .num-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chart-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.chart-pair .dash-panel { padding: 14px 16px 12px; }
.chart-pair .chart-tick { font-size: 15px; }
.chart-pair .seg-row { gap: 6px 14px; }
.chart-pair .statusbar { gap: 6px; }
.num-now { margin: 18px 0 0; font-size: 1.05rem; }
.num-fold > summary { padding: 11px 16px; }
.num-fold .fold-title { font-size: .98rem; }
@media (max-width: 1000px) { .chart-pair { grid-template-columns: 1fr; } .chart-pair .chart-tick { font-size: 11.5px; } .num-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .num-grid.compact, .num-fold .num-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Numbers page, tighter: one screen of headline numbers and charts, details behind a row of tabs */
.num-title { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
body:not(.landing) main:has(.num-page) { padding-top: 18px; padding-bottom: 40px; }
.num-page.stack > * + * { margin-top: 10px; }
.num-bar .range-toggle button { padding: 6px 13px; font-size: .86rem; }
.num-grid.compact .num-tile { padding: 9px 12px; }
.num-grid.compact .num-tile b { font-size: 1.3rem; }
.num-grid.compact.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chart-pair .dash-panel { padding: 11px 14px 8px; }
.chart-pair .dash-head { margin-bottom: 6px; }
.chart-pair .dash-head h2 { font-size: 1rem; margin: 0; }
.chart-pair .seg-row { margin-bottom: 4px; }
.chart-pair .seg .statuschip, .chart-pair .statusbar .statuschip { padding: 3px 9px; font-size: .78rem; }
.num-tabs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.num-tab { display: grid; gap: 1px; justify-items: start; text-align: left; padding: 8px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: none; font-weight: 600; font-size: .82rem; line-height: 1.25; cursor: pointer; min-width: 0; }
.num-tab span, .num-tab small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num-tab small { color: var(--muted); font-weight: 500; font-size: .74rem; }
.num-tab:hover { background: #f6f8f0; filter: none; }
.num-tab.on { background: #142e23; border-color: #142e23; color: #fffdf6; }
.num-tab.on small { color: #cfe0d2; }
.num-panel { padding: 14px 16px; }
.num-panel-head { margin-bottom: 8px; }
.num-panel-head h2 { font-size: 1.05rem; margin: 0; }
.num-panel-body { max-height: 340px; overflow: auto; }
@media (max-width: 1100px) { .num-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 640px) { .num-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .num-grid.compact.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .num-panel-body { max-height: none; } }
.chart-pair { align-items: stretch; }

/* Signed-in page menu: logo + "Menu" opens one bubble; the bar keeps only that and the usage chip */
body.has-menu .top .brand { display: none; }
body.has-menu .top nav { flex: 1; flex-wrap: nowrap; gap: 12px; min-width: 0; }
body.has-menu .usage { margin-left: auto; }
.menu { position: relative; }
.menu-btn { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 6px; border-radius: 999px; border: 1px solid rgba(255, 253, 242, .22); background: rgba(255, 253, 242, .08); color: #fffdf2; font-weight: 700; font-size: .98rem; box-shadow: none; cursor: pointer; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: rgba(255, 253, 242, .16); filter: none; }
.menu-btn img { border-radius: 50%; display: block; }
.menu-caret { font-size: .7rem; opacity: .8; transition: transform .16s ease; }
.menu-btn[aria-expanded="true"] .menu-caret { transform: rotate(180deg); }
.menu-here { color: #cfe0d2; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-bubble { position: absolute; left: 0; top: calc(100% + 10px); z-index: 40; min-width: 216px; padding: 8px; border-radius: 18px; background: var(--card); border: 2px solid #142e23; box-shadow: 0 5px 0 #0d2118, 0 20px 40px rgba(8, 28, 18, .32); display: grid; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px) scale(.96); transform-origin: 24px 0; transition: opacity .14s ease, transform .18s cubic-bezier(.2, .9, .3, 1.2), visibility 0s linear .18s; }
.menu-bubble.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .14s ease, transform .18s cubic-bezier(.2, .9, .3, 1.2), visibility 0s; }
.menu-bubble::before { content: ""; position: absolute; left: 22px; top: -8px; width: 13px; height: 13px; background: var(--card); border-left: 2px solid #142e23; border-top: 2px solid #142e23; transform: rotate(45deg); }
.menu-brand { padding: 6px 12px 4px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
body.has-menu .top nav .menu-bubble a { display: block; padding: 9px 12px; border-radius: 11px; color: var(--ink); font-weight: 600; font-size: .96rem; text-decoration: none; background: none; }
body.has-menu .top nav .menu-bubble a:hover, body.has-menu .top nav .menu-bubble a:focus-visible { background: var(--accent-soft); color: var(--ink); outline: none; }
body.has-menu .top nav .menu-bubble a.active { background: #142e23; color: #fffdf6; }
@media (prefers-reduced-motion: reduce) { .menu-bubble, .menu-bubble.open, .menu-caret { transition: none; transform: none; } }
@media (max-width: 480px) { .menu-here { display: none; } }
