/* ============================================================
   Protocolo Caneta Inteligente — styles.css
   Tokens do design system: docs/design-system.mdx
   Mobile-first · breakpoints: 768px (tablet) e 1025px (desktop)
   ============================================================ */

:root {
  /* cores */
  --primary: #3E7A1C;
  --primary-dark: #2C5A12;
  --primary-medium: #4E8F1F;
  --accent-green: #57A32A;
  --secondary: #F1822E;
  --secondary-dark: #E8681C;
  --badge-olive: #5F7D1B;
  --background: #FFFFFF;
  --bg-soft: #FAF6EE;
  --bg-wash: #EFF6E3;
  --bg-card: #FFF8F3;
  --text: #161616;
  --text-soft: #4A4A4A;
  --text-inverse: #FFFFFF;
  --danger: #D9534F;

  /* gradientes */
  --grad-cta: linear-gradient(180deg, #F68B27 0%, #E8681C 100%);
  --grad-hero: linear-gradient(135deg, #FDF8EF 0%, #F3F7E8 45%, #E4EFD2 100%);
  --grad-band: linear-gradient(90deg, #4E8F1F 0%, #57A32A 100%);
  --grad-footer: linear-gradient(180deg, #2C5A12 0%, #234A0E 100%);

  /* tipografia */
  --font-display: 'Manrope', sans-serif;
  --font-body: 'Libre Franklin', sans-serif;
  --fs-h1: clamp(34px, 5vw, 56px);
  --fs-h2: clamp(24px, 3.2vw, 32px);
  --fs-h3: clamp(18px, 2vw, 22px);
  --fs-body: 16px;
  --fs-small: 13px;
  --fs-price: clamp(36px, 4vw, 42px);
  --lh-body: 1.5;

  /* forma e sombra */
  --radius-card: 24px;
  --radius-inner: 16px;
  --radius-btn: 50px;
  --radius-btn-alt: 10px;
  --shadow-card: 0 10px 30px -12px rgba(22, 22, 22, .18);
  --shadow-glow: 0 0 22px 0 rgba(241, 130, 46, .55);

  /* layout */
  --container: 1140px;
  --section-y: clamp(48px, 7vw, 80px);
  --gap-cards: 24px;
}

/* ---------- fontes (self-hosted, subsets latin/latin-ext) ---------- */
/* latin-ext */
@font-face {
  font-family: 'Libre Franklin';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/LibreFranklin-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Libre Franklin';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/LibreFranklin-400-italic-latin.woff2) format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/LibreFranklin-400-700-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Libre Franklin';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/LibreFranklin-400-700-normal-latin.woff2) format('woff2');
  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;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/Manrope-400-800-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/Manrope-400-800-normal-latin.woff2) format('woff2');
  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;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font: 400 var(--fs-body) / var(--lh-body) var(--font-body);
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: 20px; }
section { padding-block: var(--section-y); }

/* ---------- tipografia ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--primary); }
h1 { font-size: var(--fs-h1); font-weight: 800; line-height: .98; letter-spacing: -.03em; text-transform: uppercase; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.15; }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; }
.section-title { text-align: center; max-width: 760px; margin-inline: auto; }
.section-sub { text-align: center; max-width: 640px; margin: 14px auto 0; color: var(--text-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px;
  color: var(--text-inverse);
}
.eyebrow--orange { background: var(--secondary-dark); }
.eyebrow--olive { background: var(--badge-olive); }

/* ---------- botões ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase; text-decoration: none;
  text-align: center; line-height: 1.2;
  border-radius: var(--radius-btn);
  transition: transform .2s, box-shadow .2s, background-color .2s, filter .2s;
}
.btn--cta {
  background: var(--grad-cta);
  color: var(--text-inverse);
  font-size: clamp(17px, 2vw, 21px);
  padding: 19px 46px;
  box-shadow: var(--shadow-glow);
}
.btn--cta:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 0 30px 2px rgba(241, 130, 46, .6); }
.btn--plan {
  display: block; width: 100%;
  background: var(--primary-dark);
  color: var(--text-inverse);
  font-size: 15px; padding: 16px 20px;
}
.btn--plan:hover { background: var(--primary); transform: translateY(-2px); }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--primary-dark);
  color: var(--text-inverse);
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 12px 20px;
}

/* ---------- hero ---------- */
.hero { background: var(--grad-hero); padding-block: clamp(40px, 6vw, 72px); }
.hero__inner { display: flex; flex-direction: column; gap: 36px; align-items: center; }
.hero__content { width: 100%; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.hero__title em { font-style: normal; color: var(--secondary-dark); }
.hero__sub { margin-top: 20px; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; max-width: 34em; }
.hero__sub strong { color: var(--secondary-dark); }
.hero__quote {
  margin-top: 18px; padding: 14px 18px;
  border-left: 4px solid var(--secondary);
  background: rgba(255, 255, 255, .65);
  border-radius: 0 var(--radius-inner) var(--radius-inner) 0;
  color: var(--text-soft); font-size: 15px;
}
.hero__quote strong { color: var(--text); }
.hero__cta-row { margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__media { position: relative; width: min(100%, 460px); }
.hero__media img { border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.hero__seal {
  position: absolute; right: -8px; top: -18px;
  width: clamp(108px, 12vw, 136px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--secondary-dark);
  color: var(--text-inverse);
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(11px, 1.1vw, 13px); line-height: 1.25;
  padding: 12px;
  box-shadow: var(--shadow-card);
  transform: rotate(6deg);
}

/* ---------- seção dor ---------- */
.pain { background: var(--bg-wash); }
.pain__card {
  background: var(--background);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 4vw, 48px);
  max-width: 820px; margin-inline: auto;
  text-align: center;
}
.pain__list { margin-top: 24px; text-align: left; display: grid; gap: 14px; max-width: 620px; margin-inline: auto; }
.pain__list li { position: relative; padding-left: 34px; color: var(--text-soft); }
.pain__list .x {
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%; background: var(--danger); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; line-height: 1;
}
.pain__pill {
  display: inline-block; margin-top: 28px;
  background: var(--primary-medium); color: var(--text-inverse);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(15px, 1.8vw, 18px);
  padding: 14px 26px; border-radius: 999px;
}

/* ---------- listas com check ---------- */
.check-list { display: grid; gap: 0; }
.check-list li {
  position: relative; padding-left: 34px;
  padding-block: 13px;
  border-bottom: 1px solid rgba(22, 22, 22, .12);
}
.check-list li:last-child { border-bottom: 0; }
.check {
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent-green); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; line-height: 1;
}
.check-list li .check { top: 15px; }

/* ---------- o que é ---------- */
.about__grid { display: flex; flex-direction: column; gap: 36px; align-items: center; }
.about__text { width: 100%; max-width: 640px; }
.about__text h2 { margin-bottom: 14px; }
.about__text > p { color: var(--text-soft); margin-bottom: 20px; }
.about__learn { font-family: var(--font-display); font-weight: 700; color: var(--text); margin-bottom: 6px; }

/* ---------- pilares ---------- */
.pillars { background: var(--bg-soft); }
.pillars__grid { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: var(--gap-cards); }
.pillar {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px;
  display: flex; flex-direction: column;
}
.pillar img { border-radius: var(--radius-inner); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pillar h3 { margin-top: 18px; }
.pillar ul { margin-top: 10px; display: grid; gap: 8px; }
.pillar li { position: relative; padding-left: 30px; font-size: 15px; color: var(--text-soft); }
.pillar .check { width: 20px; height: 20px; font-size: 11px; top: 1px; }

/* ---------- indicado para ---------- */
.audience__grid { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
.audience__item { text-align: center; font-size: 14px; color: var(--text-soft); }
.audience__item strong { color: var(--text); }
.audience__icon {
  width: 62px; height: 62px; margin: 0 auto 10px;
  border: 2px solid var(--accent-green); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--primary); font-size: 26px;
}

/* ---------- prova social ---------- */
.proof { background: var(--bg-soft); }
.proof__mosaic {
  margin-top: 40px; position: relative;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.proof__mosaic img {
  border-radius: 12px; box-shadow: var(--shadow-card);
  width: 100%; aspect-ratio: 260 / 300; object-fit: cover;
}
.proof__mosaic img:nth-child(odd) { transform: rotate(-2deg); }
.proof__mosaic img:nth-child(even) { transform: rotate(2deg); }
.proof__band {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  background: var(--grad-band); color: var(--text-inverse);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(14px, 2vw, 19px); text-align: center;
  padding: 14px 26px; border-radius: 12px;
  box-shadow: var(--shadow-card);
  width: max-content; max-width: 92%;
  z-index: 2;
}
.proof__quotes { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: var(--gap-cards); }
.quote-card {
  background: var(--background);
  border-radius: var(--radius-inner);
  box-shadow: var(--shadow-card);
  padding: 24px;
  font-size: 15px; color: var(--text-soft);
}
.quote-card figcaption { margin-top: 14px; font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 14px; }

/* ---------- por que funciona ---------- */
.why__wrap { max-width: 720px; margin-inline: auto; }
.why__wrap h2 { text-align: center; }
.why__wrap .check-list { margin-top: 28px; }
.why__cta { text-align: center; margin-top: 36px; }

/* ---------- planos ---------- */
.plans { background: var(--bg-wash); }
.plans__wrap {
  background: var(--primary-medium);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-card);
}
.plans__wrap h2 { color: var(--text-inverse); text-align: center; }
.plans__sub { color: rgba(255, 255, 255, .9); text-align: center; margin-top: 10px; }
.plans__grid { margin-top: 36px; display: grid; grid-template-columns: 1fr; gap: 28px; align-items: stretch; max-width: 460px; margin-inline: auto; }
.plan {
  position: relative;
  background: var(--background);
  border-radius: var(--radius-inner);
  padding: 34px 26px 28px;
  text-align: center;
  display: flex; flex-direction: column;
}
.plan--featured { border: 3px solid var(--secondary); }
.plan__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text); }
.plan__tag { margin-top: 4px; font-size: 13px; color: var(--text-soft); }
.plan__price { margin-top: 16px; font-family: var(--font-display); font-weight: 800; font-size: var(--fs-price); line-height: 1; color: var(--text); }
.plan__price small { font-size: .45em; font-weight: 700; }
.plan__price .cents { font-size: .5em; }
.plan__once { margin-top: 6px; font-size: 13px; color: var(--text-soft); }
.plan__items { margin: 22px 0 26px; text-align: left; display: grid; gap: 10px; font-size: 15px; color: var(--text-soft); flex-grow: 1; }
.plan__items li { position: relative; padding-left: 30px; }
.plan__items .plus {
  position: absolute; left: 0; top: 0;
  width: 20px; text-align: center;
  color: var(--secondary-dark); font-weight: 800;
}
.plan__items .check { width: 20px; height: 20px; font-size: 11px; top: 1px; }
.upsell-teaser {
  max-width: 560px; margin: 26px auto 0;
  background: rgba(255, 255, 255, .12);
  border: 1.5px dashed rgba(255, 255, 255, .45);
  border-radius: var(--radius-inner);
  padding: 20px 24px;
  color: var(--text-inverse);
  font-size: 14px;
}
.upsell-teaser__title { font-family: var(--font-display); font-size: 15px; }
.upsell-teaser__price {
  display: inline-block; margin-left: 6px;
  background: rgba(255, 255, 255, .18);
  border-radius: 999px; padding: 2px 12px;
  font-weight: 800; font-size: 13px;
}
.upsell-teaser ul { margin-top: 10px; display: grid; gap: 5px; }
.upsell-teaser li { position: relative; padding-left: 16px; color: rgba(255, 255, 255, .92); }
.upsell-teaser li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .7);
}
.upsell-teaser__note { margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .75); }

.plans__assurance {
  margin-top: 30px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
  color: var(--text-inverse); font-size: 14px; font-weight: 600;
  font-family: var(--font-display);
}
.plans__assurance span { display: flex; align-items: center; gap: 8px; }

/* ---------- FAQ ---------- */
.faq__list { max-width: 760px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq__item {
  background: var(--bg-card);
  border-radius: var(--radius-inner);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 18px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-green); color: #fff;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 700;
  transition: transform .25s;
}
.faq__item[open] summary::after { content: "–"; transform: rotate(180deg); }
.faq__item p { padding: 0 22px 20px; color: var(--text-soft); font-size: 15px; }

/* ---------- CTA final ---------- */
.final-cta { background: var(--grad-footer); text-align: center; }
.final-cta h2 { color: var(--text-inverse); max-width: 640px; margin-inline: auto; }
.final-cta p { color: rgba(255, 255, 255, .85); margin: 16px auto 0; max-width: 520px; }
.final-cta .btn { margin-top: 30px; }

/* ---------- rodapé ---------- */
.footer { background: #1C3A0B; color: rgba(255, 255, 255, .75); font-size: var(--fs-small); padding-block: 40px; }
.footer__disclaimers { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; text-align: center; line-height: 1.6; }
.footer__legal { margin-top: 26px; text-align: center; color: rgba(255, 255, 255, .55); }

/* ---------- CTA sticky (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--grad-cta);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  text-align: center;
  box-shadow: 0 -6px 20px rgba(22, 22, 22, .25);
  transform: translateY(110%);
  transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta a {
  color: var(--text-inverse); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  text-transform: uppercase; letter-spacing: .03em;
  display: block;
}
body.has-sticky-cta { padding-bottom: 64px; }

/* accessibility */
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent-green); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   TABLET ≥ 768px
   ============================================================ */
@media (min-width: 768px) {
  .hero__inner { flex-direction: row; gap: 44px; }
  .hero__content { flex: 1 1 55%; }
  .hero__media { flex: 1 1 45%; }
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - var(--gap-cards) / 2); margin-inline: auto; width: 100%; }
  .audience__grid { grid-template-columns: repeat(3, 1fr); }
  .proof__mosaic { grid-template-columns: repeat(3, 1fr); }
  .proof__quotes { grid-template-columns: repeat(3, 1fr); }
  .about__grid { flex-direction: row; align-items: flex-start; }
  .about__text { max-width: none; flex: 1; }
}

/* ============================================================
   DESKTOP ≥ 1025px
   ============================================================ */
@media (min-width: 1025px) {
  .pillars__grid { grid-template-columns: repeat(3, 1fr); }
  .pillar:last-child:nth-child(odd) { grid-column: auto; max-width: none; }
  .audience__grid { grid-template-columns: repeat(4, 1fr); }
  .plan--featured { transform: scale(1.03); }
  .plan--featured:hover { transform: scale(1.04); }
  .sticky-cta { display: none; }
  body.has-sticky-cta { padding-bottom: 0; }
}
