/* Trocadim AI — identidade: Floresta, Limão, Menta, Alerta; Plus Jakarta Sans. */
:root {
  --forest: #0F3D2E;
  --forest-2: #164E3B;
  --lime: #C6F432;
  --mint: #EAF5EE;
  --alert: #E5484D;
  --ink: #12261E;
  --muted: #4E6A5E;
  --line: #D3E4DA;
  --paper: #FBFDFB;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 17px; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; background: var(--lime); color: var(--forest); font-weight: 700; text-decoration: none; border: 0; border-radius: 999px; padding: .85em 1.5em; font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 61, 46, .18); }
.btn:focus-visible, .link:focus-visible, input:focus-visible, .plan:focus-within, summary:focus-visible, .copy:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.btn--small { padding: .65em 1.4em; font-size: 1rem; }
.btn--wide { width: 100%; }
.btn--ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 2px var(--forest); }
.btn[disabled] { opacity: .6; cursor: wait; }
.link { font-weight: 600; color: var(--forest); text-underline-offset: 4px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 253, 251, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.coin { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--forest); font-weight: 800; font-size: 1.45rem; box-shadow: inset 0 0 0 3px var(--lime), inset 0 0 0 4px rgba(15, 61, 46, .35); }
.coin--sm { width: 26px; height: 26px; font-size: .9rem; }
.wordmark { font-weight: 800; font-size: 1.55rem; letter-spacing: -.03em; color: var(--forest); }
.wordmark b { font-weight: 800; background: var(--lime); padding: 0 .25em; border-radius: 6px; }
.wordmark--light { color: var(--mint); }
.wordmark--light b { color: var(--forest); }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 1.05rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--forest); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { background: var(--forest); color: var(--mint); padding: 48px 0 64px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.hero__copy { padding-top: 24px; }
.hero h1 { color: #fff; }
.mark { color: var(--forest); background: var(--lime); padding: 0 .18em; border-radius: 10px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--lime); }
.lead { font-size: 1.15rem; color: #CFE6D8; max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.hero .link { color: var(--lime); }
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; } .hero { padding: 48px 0 64px; } }

/* Phone mockups: two small phones, the front one overlapping the back one */
.devices { --w: 210px; position: relative; justify-self: center; width: calc(var(--w) * 1.82); height: calc(var(--w) * 19.5 / 9 + 48px); max-width: 100%; }
.device { position: absolute; width: var(--w); aspect-ratio: 9 / 19.5; padding: 8px; border-radius: 38px; background: linear-gradient(145deg, #1d2a24, #05100b); box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .08), inset 0 0 0 7px #0a1712; }
.device--back { right: 0; top: 0; transform: rotate(4deg); opacity: .96; }
.device--front { left: 0; top: 48px; transform: rotate(-3deg); z-index: 2; }
.device__screen { position: relative; height: 100%; border-radius: 31px; overflow: hidden; display: flex; flex-direction: column; background: #EFE7DD; }
.device__island { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 66px; height: 19px; border-radius: 14px; background: #000; z-index: 2; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 9px 18px 4px; font-size: .6rem; font-weight: 700; color: #fff; background: var(--forest); }
.status__icons { display: flex; gap: 3px; align-items: flex-end; }
.status__icons i { display: block; width: 3px; background: #fff; border-radius: 1px; }
.status__icons i:nth-child(1) { height: 4px; }
.status__icons i:nth-child(2) { height: 7px; }
.status__icons i:nth-child(3) { width: 13px; height: 7px; border-radius: 2px; background: transparent; box-shadow: inset 0 0 0 1.2px #fff; }
.wa-head { display: flex; align-items: center; gap: 7px; padding: 4px 10px 7px; background: var(--forest); color: #fff; }
.wa-back { font-size: 1.2rem; line-height: 1; color: var(--lime); }
.wa-head .coin--sm { width: 22px; height: 22px; font-size: .72rem; }
.wa-title { display: flex; flex-direction: column; font-weight: 700; font-size: .72rem; line-height: 1.2; }
.wa-title small { color: var(--lime); font-weight: 500; font-size: .56rem; }
.chat { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 8px 7px 6px; color: var(--ink); font-size: .6rem; background-color: #EFE7DD; background-image: radial-gradient(rgba(15, 61, 46, .06) 1px, transparent 1px); background-size: 12px 12px; }
.msg { margin: 0; padding: 5px 7px 4px; border-radius: 7px; max-width: 86%; line-height: 1.38; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); flex-shrink: 0; }
.msg p { margin: 0; }
.msg--me { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 2px; }
.msg--bot { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.meta { display: block; text-align: right; font-size: .5rem; color: #6b7c74; margin-top: 1px; }
.meta b { color: #53bdeb; font-weight: 700; letter-spacing: -.12em; }
.msg__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 4px; }
.msg__buttons span { text-align: center; padding: 3px; border-radius: 5px; background: var(--mint); color: var(--forest); font-weight: 600; font-size: .55rem; }
.wa-input { display: flex; align-items: center; gap: 6px; margin: 0 7px 13px; padding: 6px 9px; border-radius: 999px; background: #fff; color: #8a9a92; font-size: .6rem; }
.wa-input span { flex: 1; }
.wa-input i { font-style: normal; width: 22px; height: 22px; margin: -3px -4px -3px 0; border-radius: 50%; display: grid; place-items: center; background: var(--forest); font-size: .6rem; }
@media (max-width: 880px) { .devices { --w: 200px; } }
@media (max-width: 420px) { .devices { --w: 170px; } }

/* Sections */
.section { padding: 84px 0; }
.section--mint { background: var(--mint); }
.sub { color: var(--muted); margin-top: -.3em; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: s; position: relative; padding-top: 56px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: var(--lime); display: grid; place-items: center; font-weight: 800; }
.steps p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Features carousel: scroll-snap, swipe on touch, arrows on desktop */
.carousel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.carousel__head h2 { margin: 0; }
.eyebrow--dark { color: var(--forest); margin-bottom: .4em; }
.carousel__nav { display: flex; gap: 10px; flex-shrink: 0; }
.carousel__btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--forest); background: transparent; color: var(--forest); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .15s ease, color .15s ease; }
.carousel__btn:hover { background: var(--forest); color: var(--lime); }
.carousel__btn:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.carousel__btn[disabled] { opacity: .3; cursor: default; background: transparent; color: var(--forest); }
.carousel { list-style: none; margin: 0; padding: 4px 2px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 18px) / 3); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel { cursor: grab; user-select: none; -webkit-user-select: none; }
.carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.feat { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); min-height: 230px; }
.feat h3 { margin: 6px 0 0; }
.feat p { margin: 0; color: var(--muted); }
.feat__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--forest); }
.feat__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat--lime { background: var(--lime); border-color: var(--lime); }
.feat--lime p { color: #2B4A3C; }
.feat--lime .feat__icon { background: var(--forest); color: var(--lime); }
.feat--sage { background: #CFE6D7; border-color: #CFE6D7; }
.feat--sage p { color: #33503F; }
.feat--sage .feat__icon { background: #fff; color: var(--forest); }
.feat--dark { background: var(--forest); border-color: var(--forest); color: #fff; }
.feat--dark p { color: #CFE6D8; }
.feat--dark .feat__icon { background: rgba(198, 244, 50, .14); color: var(--lime); }
.feat--ai .feat__icon { background: var(--lime); color: var(--forest); }
.feat--dark .feat__tag--soon { color: #CFE6D8; box-shadow: inset 0 0 0 1.5px rgba(207, 230, 216, .45); }
.feat--lime .feat__tag--soon { color: var(--forest); box-shadow: inset 0 0 0 1.5px rgba(31, 61, 46, .35); }
.feat__tag { position: absolute; top: 18px; right: 18px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--lime); color: var(--forest); }
.feat__tag--soon { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); letter-spacing: .04em; text-transform: none; font-weight: 700; }
@media (max-width: 900px) { .carousel { grid-auto-columns: calc((100% - 18px) / 2); } }
@media (max-width: 600px) { .carousel { grid-auto-columns: 82%; } .carousel__nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .carousel { scroll-behavior: auto; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0 40px; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 24px; border-radius: var(--radius); border: 2px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.plan:hover { transform: translateY(-2px); }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:has(input:checked) { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(198, 244, 50, .55); }
.plan__name { font-weight: 700; color: var(--muted); }
.plan__price { display: flex; align-items: baseline; gap: 3px; margin-top: 2px; font-size: 2.6rem; line-height: 1.05; font-weight: 800; color: var(--forest); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.plan__price small { font-size: .95rem; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.plan__price small:first-child { align-self: flex-start; margin-top: .45em; color: var(--forest); }
.plan__full { color: var(--muted); font-size: .92rem; }
.plan__save { align-self: flex-start; margin-top: 6px; font-size: .78rem; font-weight: 800; color: var(--forest); background: rgba(198, 244, 50, .55); padding: 2px 9px; border-radius: 999px; }
.plan__tag { position: absolute; top: -12px; right: 18px; background: var(--lime); color: var(--forest); font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }

.signup, .done { max-width: 640px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
.fields { align-items: end; }
.fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.field__label { display: block; line-height: 1.3; }
.fields input { width: 100%; }
.fields small { color: var(--muted); font-weight: 500; }
input { font: inherit; padding: .7em .85em; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); min-width: 0; }
input[aria-invalid="true"] { border-color: var(--alert); }
.pay { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.pay legend { font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.pay__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 600px) { .pay__options { grid-template-columns: 1fr; } }
.pay__opt { position: relative; display: flex; cursor: pointer; }
.pay__opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay__opt span { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease; }
.pay__opt b { font-size: .95rem; color: var(--forest); }
.pay__opt small { font-size: .78rem; color: var(--muted); }
.pay__opt input:checked + span { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(198, 244, 50, .55); }
.pay__opt input:focus-visible + span { outline: 3px solid var(--forest); outline-offset: 2px; }
.hint { color: var(--muted); font-size: .9rem; margin: 14px 0; }
.error { color: var(--alert); font-weight: 600; }

.code { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--forest); color: var(--lime); border-radius: 12px; padding: 16px 18px; margin: 10px 0 20px; font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.copy { font: inherit; font-size: .85rem; font-weight: 700; background: var(--lime); color: var(--forest); border: 0; border-radius: 999px; padding: .45em 1em; cursor: pointer; }
.done__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--forest); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.foot { background: var(--forest); color: #A9C7B7; padding: 28px 0; font-size: .9rem; }
.foot__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot .wordmark { font-size: 1.2rem; }
