/* Página de apresentação do RoçaMap.
   Cores tiradas do campo: céu de manhã cedo, capim, palha e papel. */
@font-face { font-family: 'Bricolage'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../vendor/fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Bricolage'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../vendor/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Work Sans'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../vendor/fonts/work-sans-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --night: #0c3033;      /* céu antes do sol */
  --canopy: #12331c;     /* capim da frente, sombra */
  --leaf: #2f6b34;       /* folha */
  --fresh: #7fae4c;      /* corte fresco */
  --straw: #e9cb55;      /* palha, sol baixo */
  --paper: #f3f5ea;      /* papel do relatório */
  --ink: #14241a;
  --ink-soft: #46584b;
  --display: 'Bricolage', 'Work Sans', system-ui, sans-serif;
  --body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--canopy); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; }
:focus-visible { outline: 3px solid var(--straw); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-family: var(--display); font-weight: 650; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; max-width: 36em; }
.lede.dark { color: var(--ink-soft); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-straw { background: var(--straw); color: #2a2205; }
.btn-straw:hover { background: #f3d967; }
.btn-line { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-ghost { min-height: 42px; padding: .5rem 1.1rem; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-leaf { background: var(--leaf); color: #fff; }
.btn-leaf:hover { background: #26592b; }

/* Cabeçalho */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem; padding: .75rem max(1.25rem, env(safe-area-inset-left)) .75rem max(1.25rem, env(safe-area-inset-right)); color: #fff; transition: background .25s, box-shadow .25s; }
.nav.solid { background: rgba(12, 48, 51, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 750; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; fill: none; stroke: var(--straw); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; font-size: .9375rem; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: .88; padding: .5rem 0; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* Campo */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(180deg, #0a2a30 0%, #10403f 26%, #1e5d4c 48%, #4f8f5f 68%, #b9c97a 84%, #f0de96 100%); }
.sun { position: absolute; left: 68%; bottom: 20%; width: 150vmax; height: 150vmax; translate: -50% 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(255,244,196,.95) 0, rgba(250,226,140,.55) 5%, rgba(240,214,120,.22) 16%, rgba(240,214,120,0) 36%); }
.hero-copy { width: min(1120px, 100% - 2.5rem); margin-inline: auto; padding-top: clamp(6.5rem, 15vh, 10rem); padding-bottom: 38vh; }
.hero h1 { font-size: clamp(2.35rem, 6.4vw, 5.25rem); max-width: 14.5em; text-shadow: 0 2px 24px rgba(6, 30, 32, .35); }
.hero .lede { margin-top: 1.5rem; color: rgba(255,255,255,.92); text-shadow: 0 1px 14px rgba(6, 30, 32, .45); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-note { margin-top: 1rem; font-size: .875rem; color: rgba(255,255,255,.8); }
.hero-note a { color: #fff; font-weight: 600; }
.field { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 44vh; min-height: 230px; touch-action: pan-y; cursor: crosshair;
  background: linear-gradient(180deg, rgba(18,51,28,0) 50%, rgba(18,51,28,.8) 90%, #12331c 100%); }
.field-tip { position: absolute; right: 1.25rem; bottom: 1rem; z-index: 2; font-size: .8125rem; font-weight: 600; color: #f6efc6; background: rgba(10, 36, 22, .55); padding: .3rem .75rem; border-radius: 999px; pointer-events: none; backdrop-filter: blur(4px); }

/* Como funciona */
.how { background: var(--canopy); color: #eef3e2; padding: clamp(4rem, 9vw, 7.5rem) 0; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.steps { margin-top: 2.5rem; counter-reset: step; display: grid; gap: .5rem; }
.steps li { counter-increment: step; position: relative; padding: 1.1rem 1.25rem 1.1rem 4.25rem; border-radius: 1.25rem; opacity: .55; transition: opacity .3s, background .3s; }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-weight: 700; font-size: 1.125rem; border: 2px solid rgba(238,243,226,.45); }
.steps li.on { opacity: 1; background: rgba(255,255,255,.07); }
.steps li.on::before { background: var(--straw); border-color: var(--straw); color: #2a2205; }
.steps p { margin-top: .35rem; color: rgba(238,243,226,.82); font-size: 1rem; max-width: 34em; }

/* Celular da demonstração */
.phone { justify-self: center; width: min(340px, 100%); border-radius: 2.4rem; padding: .7rem; background: #07170e; box-shadow: 0 0 0 1.5px rgba(255,255,255,.14), 0 40px 80px -30px rgba(0,0,0,.7); }
.phone-top { display: flex; justify-content: space-between; align-items: flex-end; padding: .9rem 1.1rem .8rem; background: #0f5a47; color: #fff; border-radius: 1.8rem 1.8rem 0 0; }
.phone-top small { display: block; font-size: .6875rem; opacity: .8; font-weight: 500; }
.phone-top b { font-family: var(--display); font-size: 1.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.phone-top .right { text-align: right; }
.phone-top .right b { font-size: 1.05rem; }
.phone-map { position: relative; aspect-ratio: 300 / 420; border-radius: 0 0 1.8rem 1.8rem; overflow: hidden; container-type: size; background: #5e7f45; }
.demo-map { width: 100%; height: 100%; }
#d-poly { fill: rgba(233, 203, 85, .0); stroke: none; transition: fill .5s; }
#d-poly.closed { fill: rgba(233, 203, 85, .38); stroke: #f6e27a; stroke-width: 2.5; stroke-linejoin: round; }
#d-line { fill: none; stroke: #f6e27a; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
#d-dots circle { fill: #fff; stroke: #0f5a47; stroke-width: 2.5; }
#d-labels rect { fill: rgba(7, 23, 14, .82); }
#d-labels text { fill: #fff; font: 600 9.5px var(--body); text-anchor: middle; }
.finger { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255,255,255,.35); border: 2px solid rgba(255,255,255,.9); opacity: 0; transition: transform .55s cubic-bezier(.5,0,.2,1), opacity .3s, scale .15s; pointer-events: none; }
.finger.on { opacity: 1; }
.finger.tap { scale: .7; background: rgba(255,255,255,.7); }
.phone-hint { position: absolute; left: 50%; top: .75rem; translate: -50% 0; background: rgba(7, 23, 14, .78); color: #fff; font-size: .75rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; }
.sheet { position: absolute; left: .6rem; right: .6rem; bottom: .6rem; background: #fff; color: var(--ink); border-radius: 1.1rem; padding: .8rem 1rem; display: grid; translate: 0 140%; transition: translate .5s cubic-bezier(.2,.8,.2,1); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.sheet.on { translate: 0 0; }
.sheet b { font-family: var(--display); font-size: 1rem; }
.sheet span { font-size: .8125rem; color: var(--ink-soft); }
.doc { position: absolute; inset: 0; background: rgba(7, 23, 14, .72); display: grid; align-content: center; justify-items: center; gap: .9rem; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.doc.on { opacity: 1; visibility: visible; }
.doc-page { width: 72%; background: #fff; color: var(--ink); border-radius: .5rem; padding: .8rem; box-shadow: 0 18px 40px rgba(0,0,0,.45); translate: 0 24px; rotate: -2deg; transition: translate .6s cubic-bezier(.2,.8,.2,1); }
.doc.on .doc-page { translate: 0 0; }
.doc-head { display: flex; gap: .5rem; align-items: center; padding-bottom: .5rem; border-bottom: 2px solid var(--leaf); }
.doc-head i { width: 18px; height: 18px; border-radius: 50%; background: var(--leaf); flex: none; }
.doc-head b { display: block; font-size: .6875rem; line-height: 1.2; }
.doc-head span { font-size: .5625rem; color: var(--ink-soft); }
.doc-map { height: 64px; margin: .55rem 0; border-radius: .3rem; background: linear-gradient(135deg, #6c8c4e, #557640); position: relative; overflow: hidden; }
.doc-map::after { content: ''; position: absolute; inset: 14px 26px 12px 22px; background: rgba(233,203,85,.55); border: 1.5px solid #f6e27a; clip-path: polygon(8% 18%, 78% 4%, 96% 62%, 52% 96%, 10% 78%); }
.doc-row { display: flex; justify-content: space-between; font-size: .6875rem; padding: .3rem 0; border-bottom: 1px solid #e3e8d8; }
.doc-lines { display: grid; gap: .3rem; margin-top: .5rem; }
.doc-lines i { height: 5px; border-radius: 3px; background: #e3e8d8; }
.doc-lines i:nth-child(2) { width: 82%; } .doc-lines i:nth-child(3) { width: 58%; }
.doc-send { background: var(--straw); color: #2a2205; font-weight: 650; font-size: .8125rem; padding: .5rem 1rem; border-radius: 999px; }

/* Vídeo */
.learn { background: #e4ebd3; padding: clamp(4rem, 9vw, 7rem) 0; }
.learn-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.learn-video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 1.75rem; background: #12331c; box-shadow: 0 30px 60px -30px rgba(20, 36, 26, .55); }
.learn .lede { margin-top: 1.25rem; }
.learn-list { margin-top: 1.75rem; }
.learn-list li { display: grid; gap: .15rem; padding: .9rem 0; border-top: 1px solid #c3cfab; }
.learn-list b { font-family: var(--display); font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
.learn-list span { color: var(--ink-soft); }

/* O documento */
.docsec { background: var(--paper); padding: clamp(4rem, 9vw, 7.5rem) 0; }
.docsec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.docsec-text .lede { margin-top: 1.25rem; }
.facts { margin-top: 2rem; display: grid; }
.facts > div { padding: 1rem 0; border-top: 1px solid #d5dcc4; }
.facts dt { font-family: var(--display); font-weight: 650; font-size: 1.125rem; letter-spacing: -0.01em; }
.facts dd { color: var(--ink-soft); margin-top: .2rem; font-size: 1rem; }
.paper { background: #fff; border-radius: .5rem; padding: clamp(1rem, 2.5vw, 1.75rem); box-shadow: 0 1px 0 #d5dcc4, 0 30px 60px -30px rgba(20, 36, 26, .35); rotate: -1.2deg; font-size: .8125rem; }
.paper-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; padding-bottom: .9rem; border-bottom: 3px solid var(--leaf); }
.paper-logo { font-size: .6875rem; color: #8a9684; border: 1.5px dashed #c5cdb6; border-radius: .4rem; padding: .55rem .4rem; text-align: center; max-width: 6.5rem; }
.paper-logo:last-child { justify-self: end; }
.paper-title { text-align: center; }
.paper-title b { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--leaf); letter-spacing: -0.02em; }
.paper-title span { font-weight: 600; font-size: .75rem; }
.paper-sum { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 0; align-items: end; }
.paper-sum small { display: block; color: #7a8875; font-size: .6875rem; font-weight: 600; }
.paper-sum b { font-size: .9375rem; }
.paper-area { text-align: right; background: #eaf3df; border-radius: .5rem; padding: .6rem .8rem; }
.paper-area b { font-family: var(--display); font-size: 1.6rem; color: #1f4d2a; letter-spacing: -0.02em; line-height: 1.1; display: block; }
.paper-area b span { font-size: .8125rem; }
.paper-area em { font-style: normal; font-size: .6875rem; color: #46584b; }
.paper-table { width: 100%; border-collapse: collapse; }
.paper-table th { text-align: left; font-size: .6875rem; color: #7a8875; font-weight: 600; padding: .4rem .3rem; border-bottom: 1px solid #d5dcc4; }
.paper-table td { padding: .55rem .3rem; border-bottom: 1px solid #edf0e4; vertical-align: top; }
.paper-table th:nth-child(n+3), .paper-table td:nth-child(n+3) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.paper-table td:last-child { font-weight: 700; }
.paper-table i, .paper-table u, .paper-table s { font-style: normal; text-decoration: none; display: inline-block; font-size: .625rem; font-weight: 600; padding: .05rem .4rem; border-radius: 999px; margin-left: .15rem; }
.paper-table i { background: #e1efd2; color: #26592b; }
.paper-table u { background: #fdf3c8; color: #6b5606; }
.paper-table s { background: #fbe3d6; color: #8a3b12; }
.paper-next { margin-top: .9rem; padding: .6rem .8rem; background: #f6f8ef; border-left: 3px solid var(--straw); border-radius: 0 .4rem .4rem 0; font-size: .75rem; }

/* Depois da medição */
.after { background: #e4ebd3; padding: clamp(4rem, 9vw, 7rem) 0; }
.after-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.5rem; align-items: start; }
.after-main h3 { margin-top: 1.25rem; font-size: 1.4rem; }
.after-main p, .after-list p { color: var(--ink-soft); margin-top: .3rem; }
.after-list { display: grid; }
.after-list li { padding: 1.1rem 0; border-top: 1px solid #c3cfab; }
.after-list li:first-child { border-top: 0; padding-top: 0; }
.mini-dash { background: #fff; border-radius: 1.25rem; padding: 1.1rem; box-shadow: 0 24px 50px -30px rgba(20, 36, 26, .4); }
.md-kpis { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: .6rem; }
.md-kpi { background: #f3f5ea; border-radius: .9rem; padding: .7rem .85rem; }
.md-kpi small { display: block; font-size: .6875rem; font-weight: 600; color: #6c7a66; }
.md-kpi b { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.md-kpi.main { background: var(--leaf); color: #fff; }
.md-kpi.main small { color: #d6e8c4; }
.md-bars { display: flex; align-items: flex-end; gap: 5px; height: 110px; margin-top: 1rem; border-bottom: 1px solid #d5dcc4; }
.md-bars i { flex: 1; height: var(--h); min-height: 0; background: var(--fresh); border-radius: 4px 4px 0 0; }
.md-bars i.today { background: #1f4d2a; }

/* Para quem */
.who { background: var(--paper); padding: clamp(4rem, 9vw, 7rem) 0; }
.who-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4rem); }
.who-list li { display: grid; gap: .2rem; padding: 1.15rem 0; border-top: 1px solid #d5dcc4; }
.who-list li:last-child { border-bottom: 1px solid #d5dcc4; }
.who-list b { font-family: var(--display); font-size: 1.3rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; }
.who-list span { color: var(--ink-soft); }

/* Dados */
.trust { background: var(--night); color: #e8f1ea; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.trust-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: 2rem; }
.trust-cols p { color: rgba(232,241,234,.8); font-size: 1rem; }
.trust-cols b { display: block; color: #fff; font-family: var(--display); font-size: 1.15rem; font-weight: 650; line-height: 1.25; margin-bottom: .4rem; }
.trust-links { margin-top: 2rem; display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: .9375rem; }
.trust-links a { color: var(--straw); text-underline-offset: 4px; }

/* Treinamento */
.train { background: var(--paper); padding: clamp(4rem, 9vw, 7rem) 0; }
.train-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.train .lede { margin-top: 1.25rem; }
.train-card { background: #fff; border-radius: 1.5rem; padding: 1.75rem; display: grid; gap: 1.1rem; box-shadow: 0 1px 0 #d5dcc4; }
.train-card .btn { word-break: break-word; }

/* Chamada final */
.final { position: relative; overflow: hidden; color: #fff; isolation: isolate; text-align: center; min-height: 78svh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0a2a30 0%, #174f47 40%, #5d9a62 72%, #e6d88d 100%); }
.final-copy { width: min(820px, 100% - 2.5rem); margin-inline: auto; padding: clamp(4rem, 10vh, 7rem) 0 36vh; }
.final h2 { font-size: clamp(2rem, 5vw, 3.75rem); text-shadow: 0 2px 24px rgba(6, 30, 32, .35); }
.final .btn { margin-top: 2rem; }
.final .field { height: 36vh; min-height: 200px; }

.foot { background: var(--canopy); color: rgba(238,243,226,.75); font-size: .875rem; padding: 1.75rem max(1.25rem, env(safe-area-inset-left)) calc(1.75rem + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.foot p:last-child { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn-ghost { margin-left: auto; }
  .how-grid, .docsec-grid, .after-grid, .who-grid, .train-grid, .learn-grid { grid-template-columns: minmax(0, 1fr); }
  .learn-video { max-width: 320px; margin-inline: auto; }
  .trust-cols { grid-template-columns: minmax(0, 1fr); }
  .docsec-grid .paper { order: 2; }
  .hero-copy { padding-bottom: 34vh; }
  .field { height: 36vh; }
  .field-tip { left: 50%; right: auto; translate: -50% 0; white-space: nowrap; }
  .paper { rotate: 0deg; }
  .steps li { padding-left: 3.75rem; }
  .steps li::before { left: .8rem; }
}
@media (max-width: 420px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .md-kpis { grid-template-columns: 1fr 1fr; }
  .md-kpi.main { grid-column: 1 / -1; }
  .paper-logo { display: none; }
  .paper-head { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
