:root {
  --bg: #f2f4ef;
  --surface: #e4e9e0;
  --surface-2: #d6ded1;
  --paper: #fbfcf9;
  --ink: #10201a;
  --muted: #4b5b51;
  --accent: #2e7d32;
  --accent-ink: #ffffff;
  --leaf: #8bc34a;
  --deep: #0e1a14;
  --deep-2: #17271e;
  --deep-3: #213328;
  --on-deep: #e9efe6;
  --on-deep-muted: #a9b9ad;

  --display: "Libre Franklin", system-ui, sans-serif;
  --text: "Source Serif 4", Georgia, serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --m: clamp(20px, 3vw, 40px);
  --gap: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--text);
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--leaf); color: var(--deep); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: var(--m); top: -60px; z-index: 10; background: var(--leaf); color: var(--deep); padding: 10px 14px; font-family: var(--display); }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--m); }
.soft { color: var(--muted); }
.h2 {
  font: 700 var(--step-head)/1.02 var(--display);
  letter-spacing: -0.035em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink);
  font: 500 16px/1 var(--display); text-decoration: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: #256a29; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-light { background: var(--on-deep); color: var(--deep); }
.btn-light:hover { background: #ffffff; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  background: var(--deep); color: var(--on-deep);
}
.hero-left {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px var(--m) 56px;
}
.hero-mark {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font: 700 20px/1 var(--display); letter-spacing: -0.02em;
}
.hero-mark img { width: 44px; }
.hero-copy { max-width: 600px; }
.hero-title {
  font: 700 clamp(28px, 2.6vw, 40px)/1.08 var(--display);
  letter-spacing: -0.03em;
}
.hero-title .line { display: block; overflow: clip; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-sub {
  margin-top: 36px; max-width: 46ch;
  font-size: var(--step-body); color: var(--on-deep-muted);
}
.hero-copy .btn { margin-top: 36px; }

.hero-right {
  position: relative;
  display: grid; place-items: center;
  background: var(--deep-2);
  padding: 96px var(--m) 56px;
}
.hero-link {
  position: absolute; top: 40px; right: var(--m);
  font: 500 15px/1 var(--display); text-decoration: none; color: var(--on-deep);
  padding: 6px 0; border-bottom: 2px solid transparent;
  transition: border-color .2s var(--ease);
}
.hero-link:hover { border-color: var(--leaf); }

/* fingerprint tool (product fragment) */
.fp {
  width: min(480px, 100%);
  background: var(--deep-3);
  border: 1px solid #2f4537; /* taste-skill-ignore: dentro de fragmento data-ui ou anel de foco */
  border-radius: 10px;
  padding: 22px;
  font-family: var(--display);
  font-size: 14px; line-height: 1.45;
  color: var(--on-deep);
}
.fp-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.fp-title { font-weight: 700; font-size: 15px; }
.fp-algo { color: var(--leaf); font-weight: 500; font-size: 13px; }
.fp-drop {
  display: block; cursor: pointer;
  border: 1px dashed #4b6656; border-radius: 8px;
  padding: 18px 16px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.fp-drop:hover, .fp-drop.is-over, .fp-drop:focus-within { border-color: var(--leaf); background: #1b2c22; }
.fp-drop-main { display: block; font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.fp-drop-hint { display: block; margin-top: 6px; color: var(--on-deep-muted); font-size: 13px; }
.fp-label { display: block; margin: 16px 0 6px; color: var(--on-deep-muted); font-size: 13px; }
.fp-text {
  width: 100%; resize: vertical;
  background: #122019; color: var(--on-deep);
  border: 1px solid #2f4537; border-radius: 6px; /* taste-skill-ignore: dentro de fragmento data-ui ou anel de foco */
  padding: 10px 12px; font: 400 15px/1.4 var(--display);
}
.fp-text:focus { outline: 2px solid var(--leaf); outline-offset: 0; border-color: transparent; }
.fp-out { margin-top: 16px; padding: 14px; background: #0b150f; border-radius: 6px; }
.fp-out-label { display: block; color: var(--on-deep-muted); font-size: 13px; margin-bottom: 6px; }
.fp-hash {
  display: block; font-size: 15px; font-weight: 500; letter-spacing: .04em;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--leaf);
}
.fp-hash .diff { color: #ffffff; background: #2e5a33; }
.fp-note { margin-top: 12px; color: var(--on-deep-muted); font-size: 13px; }

/* ---------- Intro ---------- */
.intro { padding-top: 112px; padding-bottom: 96px; }
.lead {
  font: 400 clamp(22px, 2.2vw, 32px)/1.25 var(--text);
  max-width: 34em;
}
.cols {
  margin-top: 72px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  align-items: start;
}
.cols p { font-size: 16px; line-height: 1.5; color: var(--ink); }
.cols b { color: var(--ink); font-weight: 600; }

.canopy { margin: 0; }
.frame { overflow: clip; }
.canopy img { width: 100%; height: min(86svh, 900px); object-fit: cover; }
.canopy figcaption, .sat figcaption { max-width: 75ch; padding-top: 14px; font-size: var(--step-small); color: var(--muted); }

/* ---------- Como funciona ---------- */
.how {
  display: grid; grid-template-columns: 3fr 9fr; gap: 0 clamp(24px, 4vw, 64px);
  padding-top: var(--gap);
}
.how-side { display: flex; flex-direction: column; gap: 28px; align-self: start; position: sticky; top: 24px; }
.how-side figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.how-main { max-width: 820px; }
.xchg { margin-top: 88px; max-width: 600px; }
.xchg:first-of-type { margin-top: 56px; }
.xchg-say { font: 500 20px/1.35 var(--display); letter-spacing: -0.01em; }
.call, .resp { font-family: var(--display); font-size: 14px; line-height: 1.45; }
.call {
  margin-top: 16px; background: var(--surface); border-radius: 8px; padding: 20px;
}
.call-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.files li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; background: var(--paper); border-radius: 6px; }
.files li + li { margin-top: 6px; }
.files li span:last-child { color: var(--muted); white-space: nowrap; }
.resp {
  margin: 16px 0 0 56px;
  background: var(--paper); border: 1px solid var(--surface-2); border-radius: 8px; padding: 18px 20px; /* taste-skill-ignore: dentro de fragmento data-ui ou anel de foco */
}
.resp-title { display: block; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.checks li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; }
.ok { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: translateY(1px); }
.form div, .lot div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.form div + div, .lot div + div { border-top: 1px solid var(--surface-2); /* taste-skill-ignore: dentro de fragmento data-ui ou anel de foco */ }
.form dt, .lot-k { color: var(--muted); }
.form dd, .lot-v { font-weight: 500; text-align: right; }
.pill-ok { display: inline-block; padding: 2px 10px; border-radius: 99px; background: #dcebd5; color: #1f5a23; font-size: 13px; }
.resp-note { margin-top: 12px; color: var(--muted); font-size: 14px; }
.search { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--paper); border-radius: 6px; padding: 8px 8px 8px 14px; }
.search-go { background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 4px; font-weight: 500; }
.resp-wide { width: calc(100% + 220px); max-width: calc(100vw - 2 * var(--m)); }
.verify-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 10px 0; }
.verify-row + .verify-row { border-top: 1px solid var(--surface-2); /* taste-skill-ignore: dentro de fragmento data-ui ou anel de foco */ }
.verify-row span { color: var(--muted); }
.verify-row b { font-weight: 500; }
.verify-row .pending { color: var(--muted); font-weight: 400; }

/* ---------- Documentos ---------- */
.docs {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px);
  margin-top: var(--gap); padding-inline: var(--m);
}
.docs-index { align-self: center; }
.docs-tabs { display: flex; flex-direction: column; align-items: flex-start; }
.docs-tabs button {
  background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left;
  font: 700 clamp(32px, 3.6vw, 60px)/1.08 var(--display); letter-spacing: -0.035em;
  color: #727f76;
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.docs-tabs button:hover { color: var(--muted); transform: translateX(6px); }
.docs-tabs button[aria-selected="true"] { color: var(--ink); }
.docs-note { margin-top: 28px; font-size: 16px; color: var(--muted); max-width: 30em; }
.docs-stage {
  position: relative; overflow: clip;
  height: min(88svh, 700px); min-height: 600px;
  background: var(--surface);
}
.sheet {
  position: absolute; left: 64px; top: 72px;
  width: 560px; min-height: 760px;
  background: var(--paper);
  padding: 44px 44px 56px;
  font-family: var(--display); font-size: 14px; line-height: 1.45;
}
.sheet-top { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.sheet-top img { width: 32px; }
.sheet-tag { margin-left: auto; font-weight: 500; font-size: 13px; color: #8a5a00; background: #fbefd2; padding: 2px 10px; border-radius: 4px; }
.sheet-h { margin-top: 40px; font: 700 28px/1.1 var(--display); letter-spacing: -0.02em; }
.sheet-sub { margin-top: 8px; color: var(--muted); }
.sheet-t { width: 100%; margin-top: 28px; border-collapse: collapse; }
.sheet-t th, .sheet-t td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--surface-2); vertical-align: top; }
.sheet-t th { color: var(--muted); font-weight: 400; padding-right: 16px; }
.sheet-t td { font-weight: 500; }
.sheet-t thead th { font-size: 13px; }
.sheet-num td:nth-child(n+3), .sheet-num th:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.sheet-proof { display: flex; gap: 18px; margin-top: 32px; align-items: flex-start; }
.sheet-proof p, .sheet-foot { color: var(--muted); }
.sheet-foot { margin-top: 24px; }
.qr { flex: none; width: 76px; height: 76px; background: var(--surface); border: 1px dashed #9aa79e; border-radius: 4px; }

/* ---------- Roteiro ---------- */
.road { padding-top: var(--gap); }
.road-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.road-body { display: grid; grid-template-columns: 170px 1fr; gap: 40px; margin-top: 56px; }
.road-tabs { display: flex; flex-direction: column; gap: 6px; }
.road-tabs button {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 64px; padding: 0 16px; text-align: left; cursor: pointer;
  border: 0; background: var(--surface);
  font-family: var(--display);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.road-tabs button b { font-size: 16px; font-weight: 700; }
.road-tabs button span { font-size: 13px; color: var(--muted); }
.road-tabs button:hover { background: var(--surface-2); }
.road-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.road-tabs button[aria-selected="true"] span { color: #b9c6bd; }
.bands { display: flex; flex-direction: column; gap: 4px; }
.bands li {
  display: grid; grid-template-columns: 140px 1fr; align-items: center;
  min-height: 76px; padding: 12px 20px;
  background: var(--surface);
  font-family: var(--display);
}
.bands li:nth-child(even) { background: var(--surface-2); }
.when { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.what b { display: block; font-size: 18px; font-weight: 500; }
.what small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

.sat { margin-top: var(--gap); }
.sat video { width: 100%; height: min(70svh, 760px); object-fit: cover; background: var(--deep); }

/* ---------- Carta ---------- */
.letter {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: var(--gap) var(--m) 0;
}
.letter-col { max-width: 540px; justify-self: center; }
.letter-mark { width: 44px; margin-bottom: 28px; }
.letter-col p { font-size: 17px; line-height: 1.6; }
.letter-col p + p { margin-top: 1.1em; }
.letter mark { background: #dcebc5; color: inherit; padding: 0 .15em; }
.sign { margin-top: 2em !important; font: italic 400 22px/1.2 var(--text); }
.sign span { display: block; margin-top: 6px; font: 400 14px/1.4 var(--display); color: var(--muted); font-style: normal; }
.letter-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.letter-pic figcaption, .contact-pic figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }

/* ---------- Contato ---------- */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding-top: var(--gap); padding-bottom: 160px;
}
.contact-col { max-width: 560px; justify-self: center; width: 100%; }
.contact-prompt { font: 500 clamp(21px, 2vw, 28px)/1.25 var(--display); letter-spacing: -0.015em; max-width: 22em; }
.contact-prompt .soft { display: block; }
.field { position: relative; margin-top: 28px; }
.field input {
  width: 100%; height: 64px; padding: 0 68px 0 20px;
  background: var(--paper); border: 0; border-radius: 0;
  font: 400 17px/1 var(--display); color: var(--ink);
}
.field input::placeholder { color: #7d8b81; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); /* taste-skill-ignore: dentro de fragmento data-ui ou anel de foco */ }
.field button {
  position: absolute; right: 10px; top: 10px;
  width: 44px; height: 44px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.field button:hover { background: #256a29; transform: translateX(2px); }
.field button:active { transform: scale(.94); }
.field-next { margin-top: 16px; font-size: 14px; color: var(--muted); }
.rows { margin-top: 72px; font-family: var(--display); font-size: 15px; }
.rows div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 6px 0; }
.rows dt { color: var(--muted); }
.rows a { text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.rows a:hover { color: var(--accent); }
.contact-pic img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

/* ---------- Rodapé ---------- */
.foot {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px;
  padding: 10px; background: var(--bg);
  font-family: var(--display);
}
.tile { background: var(--surface); padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.t-state { grid-column: 1 / 5; }
.t-state p { font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; max-width: 18em; }
.t-state small { font-size: 13px; color: var(--muted); }
.t-nav { grid-column: 5 / 8; justify-content: flex-start; }
.t-nav li + li { margin-top: 8px; }
.t-nav a { font-size: 16px; text-decoration: none; }
.t-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.t-time { grid-column: 8 / 10; }
.t-time p:first-child { font-size: 18px; font-weight: 500; }
.clock { font-size: 15px; color: var(--muted); }
.clock span { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 500; }
.t-mail { grid-column: 10 / 13; justify-content: flex-end; }
.t-mail a { font-size: 20px; text-decoration: none; overflow-wrap: anywhere; }
.t-mail a:hover { color: var(--accent); }
.t-word { grid-column: 1 / 9; min-height: 320px; background: var(--deep); color: var(--on-deep); justify-content: center; align-items: center; overflow: clip; }
.t-word span { font: 700 9vw/1 var(--display); letter-spacing: -0.05em; }
.t-cta {
  grid-column: 9 / 13; min-height: 320px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-size: 28px; font-weight: 500; letter-spacing: -0.015em;
  transition: background-color .2s var(--ease);
}
.t-cta svg { align-self: flex-end; transition: transform .3s var(--ease); }
.t-cta:hover { background: #256a29; }
.t-cta:hover svg { transform: translate(6px, -6px); }
.credits { max-width: 110ch; grid-column: 1 / -1; padding: 16px 14px 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- Telefone e tablet ---------- */
@media (max-width: 960px) {
  .cols { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .how { grid-template-columns: 1fr; }
  .how-side { position: static; flex-direction: row; order: 2; margin-top: 72px; }
  .how-side figure { flex: 1; }
  .resp-wide { width: 100%; }
  .docs { grid-template-columns: 1fr; }
  .docs-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 24px; padding-bottom: 6px; }
  .docs-tabs button { flex: none; scroll-snap-align: start; font-size: 22px; letter-spacing: -0.02em; }
  .docs-stage { height: 70svh; min-height: 560px; margin-inline: calc(-1 * var(--m)); }
  .sheet { left: 16px; top: 16px; }
  .letter, .contact { grid-template-columns: 1fr; }
  .letter-pic { max-width: 560px; justify-self: center; width: 100%; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { order: -1; min-height: 58svh; padding: 88px var(--m) 32px; }
  .hero-mark { position: absolute; top: 24px; left: var(--m); z-index: 2; }
  .hero-left { padding-top: 48px; }
}
@media (max-width: 720px) {
  .hero-right { order: -1; min-height: 58svh; padding: 88px 20px 32px; }
  .hero-left { padding: 40px 20px 48px; }
  .hero-mark { position: absolute; top: 24px; left: 20px; z-index: 2; }
  .hero-link { top: 30px; right: 20px; }
  .hero-title { font-size: clamp(21px, 5.6vw, 30px); }
  .hero-sub { margin-top: 24px; font-size: 16px; }
  .hero-copy .btn { margin-top: 28px; }
  .intro { padding-top: 80px; }
  .lead { font-size: 20px; }
  .cols { grid-template-columns: 1fr; row-gap: 28px; }
  .canopy img { height: 60svh; }
  .xchg { margin-top: 64px; }
  .resp { margin-left: 0; margin-top: 24px; }
  .verify-row { grid-template-columns: 1fr; gap: 2px; }
  .files li { flex-direction: column; gap: 2px; }
  .road-head { flex-direction: column; align-items: stretch; }
  .road-body { grid-template-columns: 1fr; gap: 16px; }
  .road-tabs { flex-direction: row; position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 6px 0; }
  .road-tabs button { flex: 1; padding: 0 10px; }
  .bands li { grid-template-columns: 1fr; padding: 16px; gap: 4px; }
  .sat video { height: 50svh; }
  .letter-col p { font-size: 16px; }
  .contact { padding-bottom: 96px; }
  .field input { height: 60px; }
  .field button { top: 8px; right: 8px; }
  .rows div { grid-template-columns: 1fr; gap: 0; padding: 10px 0; }
  .foot { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .tile { padding: 20px; min-height: 160px; }
  .t-word { grid-column: 1 / -1; order: -2; min-height: 160px; }
  .t-word span { font-size: 15vw; }
  .t-cta { grid-column: 1 / -1; order: -1; min-height: 160px; font-size: 24px; }
  .t-nav { grid-column: 1 / 2; }
  .t-mail { grid-column: 2 / 3; }
  .t-mail a { font-size: 16px; }
  .t-time { grid-column: 1 / 2; }
  .t-state { grid-column: 2 / 3; }
  .t-state p { font-size: 18px; }
}

/* ---------- Movimento: estados escondidos só com JS e sem redução ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-title .line > span { transform: translateY(110%); }
  html.js .hero-sub, html.js .hero-copy .btn { opacity: 0; transform: translateY(16px); }
  html.js [data-rise] { opacity: 0; transform: translateY(24px); }
}

/* itens de grid não podem esticar a coluna além da tela */
.how > *, .docs > *, .road-body > *, .letter > *, .contact > * { min-width: 0; }
.docs-tabs { padding-block: 4px; }
