/* ghostavo.com/ghostcite, in Shepherd (brand/SHEPHERD.md; the canvas boards win when they disagree).
   Papel ground everywhere; moldura for the L frame; casca only on the corner rind and the footer band;
   polpa is the brand field and the one primary action. Unbounded for the wordmark and titles, Inter for
   text and big numbers, Plex Mono for data. Corners of 4, thin lines instead of boxes.
   Charts: context in neutro 76, the subject in folha, one caroço highlight per chart.
   No inline styles: the site CSP is style-src 'self'. */

@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(fonts/unbounded-latin.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-400.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-500.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-600.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-500-latin.woff2) format('woff2'); }

:root {
  --papel: #F6F6ED;        /* every page ground */
  --moldura: #E8E9DE;      /* the L, quiet panels */
  --folha: #FCFCF7;        /* cards on papel */
  --polpa: #C9DD76;        /* the brand field, the one primary action */
  --polpa-hover: #9DC14B;
  --polpa-93: #E6EEB9;     /* selected, positive chips */
  --polpa-97: #F5F8E1;
  --casca: #34582C;        /* the rind, the footer band */
  --caroco: #C3773E;       /* the one highlight; never text */
  --caroco-97: #FEF3E7;
  --caroco-93: #FDE3C9;
  --caroco-42: #733C1A;    /* caroço as text, on its own wash */
  --link: #4D7630;         /* folha: links, the subject in a chart */
  --tinta: #1A2213;        /* all text */
  --apoio: #545B4C;        /* secondary text */
  --neutro-76: #B0B3A6;    /* context in charts */
  --neutro-86: #D1D2C6;    /* chart baseline */
  --line: rgba(26, 34, 19, .14);
  --line-strong: rgba(26, 34, 19, .28);
  --erro: #C13D34;

  --display: 'Unbounded', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 4px;
  --corner: 28px;
  --gutter: clamp(0px, 3vw, 40px);
  --band: 68px;
  --measure: 60ch;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--band) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--moldura); color: var(--tinta); font: 400 1.0625rem/1.55 var(--body); }
a { color: var(--link); font-weight: 600; text-underline-offset: 3px; }
a:hover { color: #335825; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
[hidden] { display: none !important; }

/* the band: the top of the L, in moldura, with the ghostcite box on polpa */
.band {
  position: sticky; top: 0; z-index: 20; height: var(--band); background: var(--moldura);
  display: flex; align-items: center; gap: 1.2rem;
  padding-left: max(16px, calc(var(--gutter) + 4px), env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.lockup { display: inline-flex; align-items: center; gap: 10px; background: var(--polpa); color: var(--tinta); text-decoration: none; padding: 8px 14px 8px 10px; }
.lockup:hover { color: var(--tinta); }
.lockup img { width: 26px; height: 26px; }
.lockup b { font: 800 19px/1 var(--display); letter-spacing: -.045em; }
.byline { font: 400 12px/1 var(--mono); color: var(--apoio); }
.band nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.band nav a { font: 500 .9rem/1 var(--body); color: var(--tinta); text-decoration: none; }
.band nav a:hover { text-decoration: underline; }
.band nav a.go { background: var(--polpa); padding: .75rem 1rem; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.band nav a.go:hover { background: var(--polpa-hover); }
@media (max-width: 760px) { .band nav a:not(.go), .byline { display: none; } }

/* the page: papel inside the L; the arc's rind is casca */
.sheet { position: relative; margin-left: var(--gutter); background: var(--papel); border-top-left-radius: var(--corner); }
.sheet::before {
  content: ""; position: absolute; left: 0; top: 0; width: var(--corner); height: var(--corner);
  border-top-left-radius: var(--corner); border-top: 3px solid var(--casca); border-left: 3px solid var(--casca);
  pointer-events: none;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

section { padding-block: clamp(3rem, 7vw, 5rem); }
section + section { border-top: 1px solid var(--line); }
h1, h2, h3 { margin: 0; color: var(--tinta); text-wrap: balance; }
h1 { font: 800 clamp(2.3rem, 6.4vw, 4.4rem)/.98 var(--display); letter-spacing: -.045em; max-width: 14ch; }
h2 { font: 700 clamp(1.5rem, 3.4vw, 2.3rem)/1.06 var(--display); letter-spacing: -.035em; max-width: 24ch; margin-bottom: 1.4rem; }
h3 { font: 600 1.05rem/1.35 var(--body); }
p { margin: 0 0 1rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
.label { display: block; font: 500 .7rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--apoio); margin-bottom: .6rem; }
.small { font-size: .84rem; color: var(--apoio); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem; border-radius: var(--r); border: 0; cursor: pointer; font: 600 .95rem/1 var(--body); text-decoration: none; white-space: nowrap; color: var(--tinta); }
.btn.go { background: var(--polpa); }
.btn.go:hover { background: var(--polpa-hover); }
.btn.line { background: var(--folha); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 500; }
.btn.line:hover { background: var(--polpa-97); }
.btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--erro); font-weight: 500; margin-top: 1rem; }

/* hero: the tool is the hero; on wide screens the example result sits beside it */
.hero { padding-top: clamp(3.5rem, 9vw, 6.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-grid:has(> #example[hidden]) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); }
.scanner { margin-top: 1.8rem; max-width: 44rem; }
.scanner form { display: flex; gap: .5rem; background: var(--folha); border-radius: var(--r); padding: .35rem; box-shadow: inset 0 0 0 1px var(--line-strong); }
.scanner input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 1.1rem/1.2 var(--body); color: var(--tinta); padding: .75rem .9rem; }
.scanner input:focus { outline: none; }
.scanner form:focus-within { box-shadow: inset 0 0 0 1px var(--link), 0 0 0 3px rgba(201, 221, 118, .7); }
@media (max-width: 520px) { .scanner form { flex-direction: column; } }

/* under the headline: one line of promise, the box, one small line on what the research is */
.hero .promise { margin: 1rem 0 0; max-width: 40ch; font-size: clamp(1.05rem, 2vw, 1.2rem); line-height: 1.45; color: var(--apoio); }
.hero .note { margin: .85rem 0 0; max-width: 44rem; font-size: .8rem; line-height: 1.5; color: var(--apoio); }

/* the example result: the same parts a real result has, labelled as an illustration */
.result { margin: 0; padding: 0; background: var(--folha); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -24px rgba(26, 34, 19, .28); border-radius: var(--r); overflow: hidden; }
.result figcaption { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); font: 500 .68rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--apoio); }
.result .tag { background: var(--moldura); color: var(--tinta); padding: .28rem .45rem; border-radius: 2px; letter-spacing: .06em; }
.result dl { margin: 0; }
.result .row { display: grid; grid-template-columns: 8.2rem minmax(0, 1fr); gap: .3rem 1rem; align-items: baseline; padding: .85rem 1.1rem; }
.result .row + .row { border-top: 1px solid var(--line); }
.result dt { font: 500 .7rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--apoio); }
.result dd { margin: 0; font-size: .95rem; line-height: 1.4; }
.result .ask q { font-weight: 600; font-size: 1.02rem; line-height: 1.35; quotes: "\201C" "\201D"; }
.result .you { background: var(--caroco-97); }
.result .flag { display: inline-flex; align-items: center; gap: .45rem; font: 600 .9rem/1 var(--body); color: var(--caroco-42); background: var(--caroco-93); padding: .4rem .6rem; border-radius: 2px; }
.result .flag::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--caroco); }
@media (max-width: 560px) {
  .result .row { grid-template-columns: minmax(0, 1fr); padding: .75rem .95rem; }
  .result figcaption { padding: .7rem .95rem; }
}
/* the one authored moment: the rows arrive in reading order and the verdict lands last */
.js .result .row { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.js .result .row:nth-child(2) { animation-delay: .1s; }
.js .result .row:nth-child(3) { animation-delay: .2s; }
.js .result .row:nth-child(4) { animation-delay: .3s; }
.js .result .flag { animation: land-flag .5s cubic-bezier(.2, .8, .2, 1) .75s both; }
@keyframes land-flag { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* tiles: flat cards on papel, thin line, no rounding */
.tile { background: var(--folha); box-shadow: inset 0 0 0 1px var(--line); padding: 1.2rem 1.3rem; display: grid; gap: .45rem; align-content: start; min-width: 0; }

/* live: in context while it works */
.live { margin-top: 2rem; display: grid; gap: 1rem; max-width: 60rem; }
.live-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.chip { font: 600 .9rem/1 var(--body); background: var(--polpa); color: var(--tinta); padding: .5rem .75rem; border-radius: 2px; }
.status { font: 400 .8rem/1.3 var(--mono); color: var(--apoio); }
.live-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 760px) { .live-grid { grid-template-columns: 1fr; } }
.ticker { background: var(--folha); box-shadow: inset 0 0 0 1px var(--line); padding: 1.3rem 1.4rem; display: grid; gap: .6rem; align-content: start; min-height: 9.5rem; }
.ticker .label { margin: 0; }
.ticker q { font: 600 clamp(1.1rem, 2.2vw, 1.35rem)/1.35 var(--body); quotes: "“" "”"; min-height: 2.7em; }
.dots { display: inline-flex; gap: .3rem; }
.dots i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--link); animation: blink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.landed { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.landed li { display: flex; gap: .6rem; align-items: baseline; font-size: .92rem; animation: land .35s ease both; }
.landed li b, .qs li > span:first-child { font: 500 .68rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: .32rem .45rem; border-radius: 2px; flex: none; }
.landed li.yes b, .qs li.yes > span:first-child { background: var(--polpa-93); color: var(--casca); }
.landed li.no b, .qs li.no > span:first-child { background: var(--caroco-93); color: var(--caroco-42); }
@keyframes land { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fix { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.fix .small { flex: 1 1 100%; }
.fix label { flex: 1 1 100%; font-size: .85rem; }
.fix input { flex-basis: 100% !important; width: 100%; }
.qs details { grid-column: 2; min-width: 0; font-size: .9rem; }
.qs summary { cursor: pointer; text-decoration: underline; }
.research-answer { white-space: pre-wrap; overflow-wrap: anywhere; }
.fix input { flex: 1 1 14rem; min-width: 0; border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: var(--r); padding: .7rem .8rem; font: 400 1rem/1.2 var(--body); background: var(--folha); color: var(--tinta); }

/* demand: the number in tinta, the line in folha, the last month the one highlight */
.demand b { font: 600 clamp(1.9rem, 4vw, 2.6rem)/1 var(--body); letter-spacing: -.03em; color: var(--tinta); font-variant-numeric: tabular-nums; }
.demand svg { width: 100%; height: 64px; display: block; overflow: visible; touch-action: pan-y; }
.spark-area { fill: rgba(77, 118, 48, .10); }
.spark-line { fill: none; stroke: var(--link); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* board: the result as a dashboard */
.board { margin-top: 2rem; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.board .diag { grid-column: span 7; }
.board #board-demand { grid-column: span 5; }
.board .rivals { grid-column: span 5; }
.board .qs { grid-column: span 7; }
.board .act { grid-column: 1 / -1; }
.board.nodemand .diag { grid-column: 1 / -1; }
@media (max-width: 860px) { .board > * { grid-column: 1 / -1 !important; } }
.diag { background: var(--polpa); box-shadow: none; }
.diag b { font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.02 var(--display); letter-spacing: -.035em; }
.diag span:last-child { font-size: 1.05rem; max-width: 40ch; }
.rivals ol { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.rivals li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .8rem; align-items: center; font-size: .95rem; }
.rivals li i { grid-column: 1 / -1; height: 8px; background: var(--moldura); position: relative; overflow: hidden; }
.rivals li i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--neutro-76); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.rivals li.top i::after { background: var(--caroco); }
.rivals li.you { font-weight: 600; }
.rivals li.you i::after { background: var(--link); }
.rivals li span:last-child { font: 400 .78rem/1 var(--mono); color: var(--apoio); font-variant-numeric: tabular-nums; }
.qs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.qs li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .15rem .7rem; align-items: start; }
.qs li > span:first-child { margin-top: .1rem; }
.qs q { font-size: .98rem; quotes: "“" "”"; }
.qs small { grid-column: 2; font-size: .8rem; color: var(--apoio); }
.qs .method { margin: .9rem 0 0; font: 400 .75rem/1.45 var(--mono); color: var(--apoio); }
.qs .method:empty { display: none; }
.act { background: var(--folha); box-shadow: inset 0 0 0 1px var(--line); padding: 1.1rem 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.act b { font: 700 1.15rem/1.2 var(--display); letter-spacing: -.03em; flex: 1 1 100%; }
.act input, .act select { flex: 1 1 16rem; min-width: 0; border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: var(--r); padding: .75rem .8rem; font: 400 1rem/1.2 var(--body); background: var(--papel); color: var(--tinta); }
.act select { flex-basis: 12rem; }
.act .small { flex: 1 1 100%; }
.act .small:empty { display: none; }
.again { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: .5rem; border: 0; cursor: pointer; background: var(--folha); color: var(--tinta); font: 500 .95rem/1 var(--body); padding: .75rem 1rem; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-strong); }
.again:hover { background: var(--polpa-97); }
.again svg { transition: transform .4s ease; color: var(--link); }
.again:hover svg { transform: rotate(-200deg); }

/* the market: titles state the conclusion; the chart scrubs by pointer, finger or arrow keys */
.opp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px) { .opp { grid-template-columns: 1fr; } }
figure { margin: 0; background: var(--folha); box-shadow: inset 0 0 0 1px var(--line); padding: 1.2rem 1.2rem .9rem; }
figcaption { font: 400 .76rem/1.4 var(--mono); color: var(--apoio); margin-top: .6rem; }
.chart { position: relative; }
.tabs { display: inline-flex; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-strong); overflow: hidden; margin-bottom: .9rem; }
.tabs button { border: 0; background: var(--folha); font: 500 .85rem/1 var(--body); color: var(--tinta); padding: .6rem .9rem; cursor: pointer; }
.tabs button + button { box-shadow: inset 1px 0 0 var(--line-strong); }
.tabs button[aria-selected="true"] { background: var(--polpa); font-weight: 600; }
.readout { display: grid; align-content: start; gap: .35rem; height: 3.2rem; margin-bottom: .3rem; overflow: hidden; }
.readout b { font: 600 1.7rem/1 var(--body); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout span { font: 400 .78rem/1.3 var(--mono); color: var(--apoio); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .readout { height: 4.25rem; } .readout span { white-space: normal; } }
.plot svg { display: block; width: 100%; height: auto; touch-action: pan-y; cursor: crosshair; }
.plot svg:focus-visible { outline-offset: 4px; }
.ch-grid { stroke: var(--moldura); stroke-width: 1; }
.ch-base { stroke: var(--neutro-86); stroke-width: 1; }
.ch-axis, .ch-year, .c-note { fill: var(--apoio); font: 400 11px var(--mono); }
.ch-val { fill: var(--tinta); font: 500 12px var(--mono); }
.c-area { fill: rgba(77, 118, 48, .10); }
.c-line { fill: none; stroke: var(--link); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-fore { fill: none; stroke: var(--link); stroke-width: 2; stroke-dasharray: 1 6; stroke-linecap: round; }
.c-dot { fill: var(--link); stroke: var(--folha); stroke-width: 2; }
.c-hl { fill: var(--caroco); stroke: var(--folha); stroke-width: 2; }
.c-leader { stroke: var(--apoio); stroke-width: 1; }
.c-cursor { stroke: var(--tinta); stroke-width: 1; opacity: .3; }
.c-scrub { fill: var(--folha); stroke: var(--tinta); stroke-width: 1.5; }
.c-bar { fill: var(--link); }
.c-bar.on { fill: #335825; }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.3rem; }
.facts li { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
.facts b { font: 600 1.7rem/1 var(--body); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts span { color: var(--apoio); }

/* the calculator, folded */
.calc-wrap { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.calc-wrap summary { cursor: pointer; font: 600 1rem/1.4 var(--body); color: var(--link); list-style: none; }
.calc-wrap summary::-webkit-details-marker { display: none; }
.calc-wrap summary::before { content: "+ "; font-family: var(--mono); }
.calc-wrap[open] summary::before { content: "− "; }
.calc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: 1.4rem; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.calc form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font: 600 .9rem/1.3 var(--body); }
.field input, .field select { font: 400 1rem/1.4 var(--body); color: var(--tinta); background: var(--folha); border: 0; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: var(--r); padding: .65rem .75rem; width: 100%; min-width: 0; font-variant-numeric: tabular-nums; }
.field input:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--link), 0 0 0 3px rgba(201, 221, 118, .7); }
.money { position: relative; }
.money input { padding-left: 2.3rem; }
.money::before { content: "A$"; position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); font: 400 .85rem/1 var(--mono); color: var(--apoio); }
.out { display: grid; gap: 1px; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.out > div { background: var(--folha); padding: 1rem 1.2rem; display: grid; gap: .2rem; }
.out .big { font: 600 1.45rem/1.15 var(--body); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.out .sub { font-size: .84rem; color: var(--apoio); }
.out .say { background: var(--polpa-97); font-weight: 500; }
.out .say.warn { background: var(--caroco-93); }
.range { height: 10px; background: var(--moldura); position: relative; margin-top: .4rem; }
.range i { position: absolute; top: 0; bottom: 0; background: var(--link); }
.range b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--tinta); }
.range-axis { display: flex; justify-content: space-between; font: 400 .7rem/1 var(--mono); color: var(--apoio); margin-top: .3rem; }

/* how it works: one strip, Check → Fix → Test again, on a single rule with a node per step */
#how h2 { margin-bottom: 2.6rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--line-strong); }
.steps li { position: relative; padding-top: 1.6rem; }
.steps li::before { content: ""; position: absolute; left: 0; top: -.5rem; width: 1rem; height: 1rem; border-radius: 0 0 0 100%; background: var(--polpa); box-shadow: inset 0 0 0 2px var(--casca); }
.steps .step { display: flex; align-items: center; gap: .6rem; font: 700 clamp(1.15rem, 2.2vw, 1.4rem)/1.1 var(--display); letter-spacing: -.03em; }
.steps em { font: 500 .66rem/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; background: var(--polpa); padding: .3rem .4rem; border-radius: 2px; }
.steps p { margin: .7rem 0 0; max-width: 32ch; color: var(--apoio); }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--line-strong); gap: 1.8rem; margin-left: .5rem; }
  .steps li { padding: 0 0 0 1.4rem; }
  .steps li::before { left: -.5rem; top: .2rem; }
}
.fine { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; gap: .5rem; max-width: 68ch; font-size: .88rem; line-height: 1.5; color: var(--apoio); }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.ways { margin: 1.4rem 0 0; max-width: none; font-size: .8rem; color: var(--apoio); }

/* who runs it: the portrait keeps the brand's one curved corner, cropped from the top so the hair fits */
.close { padding-block: clamp(2.5rem, 6vw, 4rem); }
.close .who { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1.6rem; align-items: center; }
.close .who img { display: block; width: 112px; height: 112px; object-fit: cover; object-position: 50% 0; border-radius: 0 0 0 100%; background: var(--moldura); }
@media (max-width: 520px) { .close .who { grid-template-columns: 88px minmax(0, 1fr); gap: 1.1rem; } .close .who img { width: 88px; height: 88px; } }
.close h2 { margin-bottom: .35rem; font-size: clamp(1.35rem, 3vw, 1.9rem); }
.close p { color: var(--apoio); margin: 0; }
.close .line { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin-top: 1.1rem; align-items: center; }
.close .line a:not(.btn) { font: 500 .95rem/1.3 var(--body); }

/* the footer: one quiet line on the page itself */
.foot { border-top: 1px solid var(--line); }
.foot p { max-width: var(--wrap); margin: 0 auto; padding-block: 1.3rem 1.8rem; font-size: .76rem; line-height: 1.5; color: #666B5E; }
.foot a { color: inherit; font-weight: 500; }
.foot a:hover { color: var(--tinta); }

/* motion: things arrive and settle, then stay still. ghostcite.js sets .js on <html> and only adds the
   chart classes when motion is allowed; the reduced-motion rule near the top switches the rest off. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.board > * { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
.rivals li { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
.rivals li i::after { transition-delay: calc(var(--d, 0ms) + 250ms); }
/* the market chart: the line draws itself, the area and the forecast follow, the bars grow */
.c-line.draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 1.5s cubic-bezier(.45, .05, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.c-area.draw { opacity: 0; animation: fade .9s ease .8s forwards; }
.c-fore.draw, .c-dot.draw, .c-note.draw { opacity: 0; animation: fade .6s ease 1.4s forwards; }
.c-hl.draw, .c-leader.draw, .ch-val.draw { opacity: 0; animation: fade .5s ease var(--d, 1.3s) forwards; }
@keyframes fade { to { opacity: 1; } }
.c-bar.draw { transform-box: fill-box; transform-origin: bottom; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* the one live point keeps a slow pulse, so the chart reads as live without moving anything else */
.c-pulse { fill: none; stroke: var(--caroco); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; pointer-events: none; animation: pulse 2.6s ease-out 1.8s infinite; opacity: 0; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.4); opacity: 0; } }
/* cards lift a little under the pointer */
.board .tile { transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, background .2s ease; }
.board .tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), 0 12px 28px rgba(26, 34, 19, .08); }
.board .diag:hover { box-shadow: 0 12px 28px rgba(26, 34, 19, .10); }
.btn.go, .band nav a.go { transition: background .2s ease, transform .2s ease; }
.btn.go:hover, .band nav a.go:hover { transform: translateY(-1px); }

/* ready for AI shoppers: the score on the left, one cell per check on the right (--n is set by the script) */
.board .agent { grid-column: 1 / -1; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); column-gap: 2rem; }
.agent > .label, .agent > b, #agent-line { grid-column: 1; }
.agent > b { font: 600 2.2rem/1 var(--body); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
#agent-line { color: var(--apoio); max-width: 30ch; }
.agent ul { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 1px; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); align-self: start; }
.agent li { background: var(--papel); padding: .8rem .85rem .9rem; display: grid; gap: .55rem; align-content: start; font-size: .9rem; line-height: 1.35; }
.agent li > span:first-child { justify-self: start; font: 500 .66rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: .32rem .45rem; border-radius: 2px; }
.agent li.yes > span:first-child { background: var(--polpa-93); color: var(--casca); }
.agent li.no > span:first-child { background: var(--caroco-93); color: var(--caroco-42); }
@media (max-width: 1080px) { .board .agent { grid-template-columns: 1fr; } .agent ul { grid-column: 1; grid-row: auto; margin-top: .6rem; } }
@media (max-width: 620px) { .agent ul { grid-template-columns: 1fr; } .agent li { grid-template-columns: 3.4rem minmax(0, 1fr); align-items: baseline; gap: .7rem; } }

/* the privacy page: one reading column on the same sheet */
.doc { padding-block: clamp(3rem, 8vw, 5rem); }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.2rem; }
.doc h2 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin: 2.4rem 0 .7rem; }
.doc p { max-width: 64ch; }
.doc .lede { font-size: 1.1rem; color: var(--apoio); }
.doc .more { margin-top: 2.4rem; font-size: .9rem; color: var(--apoio); }

/* who Ghostcite is, in one line under the headline, and what it does, with a link per service */
.hero .entity { margin: 1.1rem 0 0; max-width: 54ch; font-size: .98rem; line-height: 1.5; color: var(--tinta); }
.hero .entity + .promise { margin-top: .7rem; }
.does { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 760px) { .does { grid-template-columns: minmax(0, 1fr); } }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.services li { background: var(--folha); padding: 1.1rem 1.2rem; display: grid; gap: .35rem; }
.services a { font: 700 1.1rem/1.2 var(--display); letter-spacing: -.03em; color: var(--tinta); text-decoration: none; }
.services a::after { content: " →"; font-family: var(--body); color: var(--link); }
.services a:hover { text-decoration: underline; }
.services span { font-size: .92rem; color: var(--apoio); }

/* buyers' questions: one rule per question, the answer folded under it */
.faq { max-width: 68ch; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; gap: .8rem; padding: 1rem 0; font: 600 1.02rem/1.4 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; flex: none; width: 1rem; font: 500 1rem/1.4 var(--mono); color: var(--link); }
.faq details[open] summary::before { content: "−"; }
.faq summary:hover { color: var(--link); }
.faq details p { margin: -.3rem 0 1.1rem 1.8rem; color: var(--apoio); }

/* a service page: the privacy page's reading column, with a short list and the actions */
.doc ul { margin: 0 0 1rem; padding-left: 1.2rem; max-width: 64ch; }
.doc li + li { margin-top: .45rem; }
.doc .cta { margin-top: 2.2rem; }
