.home {
  --ink: #102b29;
  --paper: #f7f9f5;
  --hero-paper: #f9faf7;
  --sage-soft: #edf3eb;
  --sage-line: #d4e0d5;
  --forest: #0d302c;
  --mint: #c6f69e;
  --primary: #17584d;
  --primary-hover: #104639;
  --text: var(--ink);
  --muted: #4b635d;
  --container: 1200px;
  color: var(--ink);
  background: var(--paper);
}

.home :focus-visible {
  outline: 3px solid #238578;
  outline-offset: 4px;
}

.home section[id], .home main { scroll-margin-top: 90px; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  background: white;
  border-radius: 8px;
}

.skip-link:focus { transform: none; }

.home .header {
  background: var(--hero-paper);
  border-bottom-color: rgba(24, 54, 42, .07);
}
.home .header-cta, .home .cta-button {
  min-height: 46px;
  border-radius: 999px;
  box-shadow: none;
  gap: 9px;
}

.home .header-cta {
  border-color: #c9d7cf;
  color: var(--primary);
  background: transparent;
}
.home .header-cta:hover { background: #eaf0e9; }
.home .header-link { display: inline-flex; align-items: center; min-height: 44px; }
.home .nav-toggle { min-width: 44px; min-height: 44px; }

.home-hero {
  padding: clamp(32px, 4.8vw, 68px) 0 clamp(42px, 6vw, 86px);
  background:
    radial-gradient(ellipse at 50% 64%, #e8efe6 0%, transparent 70%),
    linear-gradient(var(--hero-paper), var(--paper));
}

.home-intro { text-align: center; }

.home .eyebrow {
  color: var(--primary);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.home h1 {
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-weight: 750;
  letter-spacing: -.065em;
  line-height: .97;
  margin-bottom: 18px;
  text-wrap: balance;
}

.home h1 em { color: #386658; font-style: normal; }
.home-hero .hero-subtitle { color: var(--muted); max-width: 56ch; margin-inline: auto; }
.home-hero .cta-note { color: var(--muted); }
.home-actions { display: flex; align-items: center; justify-content: center; gap: 10px 22px; flex-wrap: wrap; }

.home-hero .cta-button {
  box-shadow: 0 6px 16px rgba(23, 88, 77, .15);
}
.home-hero .cta-button:hover { box-shadow: 0 8px 20px rgba(23, 88, 77, .2); }

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.demo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  max-width: 1050px;
  margin: clamp(24px, 4vw, 52px) auto 0;
  padding: clamp(10px, 1.5vw, 20px);
  border: 1px solid #d4e0d5;
  border-radius: clamp(24px, 3vw, 38px);
  background: linear-gradient(135deg, #f2f6f1, #e3ece1);
  box-shadow: 0 24px 54px -40px rgba(16, 43, 41, .42);
}

.demo-visual {
  position: relative;
  isolation: isolate;
  overflow: clip;
  aspect-ratio: 1.36;
  border-radius: clamp(16px, 2.4vw, 28px);
  background: #d9e5d9;
}

.demo-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
}

.demo-photo.is-current { opacity: 1; }
.demo-photo[data-scene="resumo"] { object-position: center 31%; }

.home-demo {
  min-width: 0;
  margin-right: clamp(0px, 1vw, 14px);
  border: 1px solid #d5e1d7;
  border-radius: 20px;
  color: var(--ink);
  background: #f5f8f3;
  box-shadow: 0 14px 30px -12px rgba(16, 43, 41, .23);
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px 20px 0 0;
  border-bottom: 1px solid #dce8dc;
  background: #fff;
}

.demo-header img { object-fit: contain; }
.demo-header small { display: block; color: var(--muted); }
.demo-thread { display: grid; gap: 10px; padding: 12px; }
.demo-sent, .demo-reply { width: fit-content; max-width: 100%; padding: 10px 14px; }
.demo-sent { justify-self: end; background: #e1eedc; border-radius: 14px 14px 3px 14px; }
.demo-reply {
  display: grid;
  align-content: center;
  min-height: 116px;
  border: 1px solid #dce8dc;
  border-radius: 14px 14px 14px 3px;
  background: white;
}

.demo-reply-label { font-size: .82rem; font-weight: 750; }
.demo-value { font-size: clamp(1.65rem, 4vw, 2.25rem); letter-spacing: -.045em; }
.demo-detail { color: var(--muted); font-size: .85rem; }
.demo-controls {
  padding: 0 12px 12px;
}
.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 750;
}
.demo-playback:not([hidden]) {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
}
.demo-playback:hover { background: #e4f3dc; }
.demo-playback svg { width: 18px; height: 18px; }
.demo-playback[data-playing="true"] .demo-play-icon,
.demo-playback[data-playing="false"] .demo-pause-icon { display: none; }

.demo-options, .panel-options:not([hidden]) { display: flex; flex-wrap: wrap; gap: 6px; }
.panel-options:not([hidden]) { margin: 20px 0 10px; }

.demo-options button, .panel-options button {
  min-height: 44px;
  padding: 6px 11px;
  border: 1px solid #b5cdc0;
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.demo-options button[aria-pressed="true"], .panel-options button[aria-pressed="true"] { background: var(--forest); color: white; }
.demo-options button:hover, .panel-options button:hover { border-color: var(--primary); }

.home main h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.home .how-it-works, .panel-showcase, .home .plans, .home .seo-faq, .home .guides {
  padding: clamp(48px, 7vw, 94px) 0;
}

.home .how-it-works .eyebrow, .home .content-narrow > .eyebrow { text-align: center; }

.home .steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.home .step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  padding: 12px;
  border: 1px solid #dae5db;
  border-radius: 22px;
  background: #fff;
}

.step-photo {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 1.55;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
}
.home .step-body { padding: 0 8px 10px 0; }
.home .step-num { margin-left: 8px; background: var(--sage-soft); color: var(--primary); }
.home .step-body strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 1.15rem; }

.panel-showcase {
  background: linear-gradient(135deg, var(--hero-paper), var(--sage-soft));
  border-block: 1px solid var(--sage-line);
}
.panel-layout { display: grid; grid-template-columns: .85fr 1.4fr; align-items: center; gap: clamp(24px, 5vw, 70px); }
.panel-copy > p:not(.eyebrow) { color: var(--muted); margin: 18px 0 8px; }
.panel-layout img {
  border: 1px solid #bbd0c3;
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(16, 43, 41, .12);
}

.panel-frame {
  position: relative;
  padding: 0 9% 5% 0;
}
.panel-screen {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: top;
  background: #fff;
}
.panel-mobile {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 21%;
  height: auto;
}
.panel-layout figcaption { margin-top: 10px; color: var(--muted); font-size: .85rem; }

.home .security-section { padding: clamp(24px, 4vw, 48px) 0 0; }
.home .security-note {
  max-width: 1000px;
  padding: 20px clamp(16px, 4vw, 32px);
  border: 1px solid var(--sage-line);
  border-radius: 20px;
  background: var(--sage-soft);
  color: var(--muted);
}
.security-title {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.home .plans {
  background: radial-gradient(ellipse at 50% 58%, var(--sage-soft), transparent 72%);
}

.home .plans-grid, .home .plan-details {
  max-width: 1000px;
  margin-inline: auto;
}
.home .plans-grid { margin-top: 36px; }

.home .plan-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(20px, 3.2vw, 38px);
  border: 1px solid var(--sage-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 40px -34px rgba(16, 43, 41, .42);
}

.home .plan-featured {
  border-color: #afc7b6;
  background: linear-gradient(150deg, #f8fbf6, #e7f0e5);
}

.home .plan-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sage-line);
}

.home .plan-name {
  padding: 4px 12px;
  border: 1px solid var(--sage-line);
  border-radius: 999px;
  color: var(--primary);
  background: var(--hero-paper);
  font-size: .92rem;
  letter-spacing: 0;
}
.home .plan-featured .plan-name { background: #dfede0; border-color: #c6dac9; }

.home .plan-price {
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 3.55rem);
  line-height: 1;
  letter-spacing: -.06em;
}
.home .plan-price small { color: var(--muted); font-size: .94rem; letter-spacing: 0; }

.home .plan-price-secondary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 9px;
  min-height: 25px;
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
}

.plan-saving {
  padding: 3px 8px;
  border-radius: 999px;
  background: #dcebdd;
  color: var(--primary);
  font-size: .76rem;
  font-weight: 750;
}

.home .plan-list { font-size: .97rem; color: var(--ink); gap: 12px; }
.home .plan-list li { padding-left: 23px; }
.home .plan-list li::before { content: '✓'; color: var(--primary); font-weight: 800; }
.home .plan-list a { text-decoration: underline; text-underline-offset: 3px; }
.home .plan-action { margin-top: auto; text-align: center; }
.home .plan-card:not(.plan-featured) .plan-action {
  border-color: #b9cfc0;
  background: var(--hero-paper);
  color: var(--primary);
}
.home .plan-card:not(.plan-featured) .plan-action:hover { background: var(--sage-soft); }

.plan-details {
  margin-top: 18px;
  border: 1px solid var(--sage-line);
  border-radius: 18px;
  background: var(--hero-paper);
}
.plan-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: inherit;
  list-style: none;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}
.plan-details summary::-webkit-details-marker { display: none; }
.plan-details summary::after { content: '+' / ''; font-size: 1.25rem; line-height: 1; }
.plan-details[open] summary::after { content: '−' / ''; }
.home .plan-details .plans-compare { margin-top: 0; padding: 0 10px 10px; }
.home .compare-table { box-shadow: none; }
.home .compare-table thead th, .home .compare-table tbody tr:hover { background: var(--sage-soft); }

.home .seo-faq { background: var(--hero-paper); border-block: 1px solid var(--sage-line); }
.home .faq-list { margin-top: 30px; gap: 8px; }
.home details.faq-item {
  overflow: visible;
  border: 1px solid var(--sage-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
.home details.faq-item summary { min-height: 48px; border-radius: inherit; font-size: 1rem; }
.home details.faq-item summary::after { color: var(--primary); }
.home details.faq-item[open] > summary { border-bottom-color: var(--sage-line); }
.home details.faq-item > p { color: var(--muted); }

.home .guides-grid { margin-top: 30px; }
.home .guide-card {
  min-height: 0;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid var(--sage-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}
.home .guide-card:hover { border-color: #afc7b6; background: var(--hero-paper); transform: none; }
.home .guide-card span { color: var(--primary); }
.home .guide-card p { color: var(--muted); }

.home .footer { padding: 36px 0; background: var(--sage-soft); border-top-color: var(--sage-line); }
.home .footer-link { color: var(--primary); }
.home .footer-nav a, .home .footer-legal { color: var(--muted); }
.home .footer-link:hover, .home .footer-nav a:hover { color: var(--primary-hover); text-decoration: underline; }

@media (max-width: 900px) {
  .panel-layout { grid-template-columns: minmax(0, 1fr); }
  .home .header-nav { max-height: calc(100dvh - 74px); overflow-y: auto; border-radius: 0 0 16px 16px; }
}

@media (max-width: 740px) {
  .demo-stage { grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 520px; }
  .demo-visual { aspect-ratio: 1.72; }
  .home-demo { margin-right: 0; }
}

@media (max-width: 600px) {
  .home .steps { grid-template-columns: minmax(0, 1fr); }
  .home .compare-table { table-layout: fixed; overflow-wrap: anywhere; }
  .home .compare-table th, .home .compare-table td { padding-inline: 6px; }
  .home .compare-table th:first-child { width: 29%; }
  .home .compare-table th:nth-child(2) { width: 28%; }
  .home-actions { gap: 6px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.home) { scroll-behavior: auto; }
  .home .cta-button, .home .nav-toggle span, .home .guide-card { transition: none; }
  .home .cta-button:hover { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .demo-photo {
    transform: scale(1.055);
    transition: opacity 560ms ease, transform 1.25s cubic-bezier(.16, 1, .3, 1);
  }
  .demo-photo.is-current { transform: scale(1); }

  .step-photo.in-view, .panel-frame.in-view .panel-screen, .panel-frame.in-view .panel-mobile {
    animation: home-rise 620ms cubic-bezier(.16, 1, .3, 1) both;
  }

  .panel-frame.in-view .panel-mobile { animation-delay: 140ms; }
}

@keyframes home-rise {
  from { opacity: .55; transform: translateY(24px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes phone-rise {
  from { opacity: .5; transform: translateY(40px) rotate(5deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .step, .panel-frame { view-timeline: --showcase block; }
    .step-photo, .panel-screen, .panel-mobile {
      animation: home-rise linear both;
      animation-timeline: --showcase;
      animation-range: entry 5% entry 85%;
    }
    .panel-mobile {
      animation-name: phone-rise;
      animation-range: entry 22% entry 100%;
    }
    .step:nth-child(2) .step-photo { animation-range: entry 15% entry 90%; }
    .step:nth-child(3) .step-photo { animation-range: entry 24% entry 96%; }
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .home .plan-card:not(:focus-within) {
      animation: plan-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 38%;
    }
  }
}

@keyframes plan-rise {
  from { opacity: .85; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
