/* Styles for the home page and its Portuguese version (pt-br/index.html). */

/* ─── tokens ─────────────────────────────────────────────────── */
:root {
  --ink:          #26215C;
  --ink-8:        rgba(38,33,92,.08);
  --ink-14:       rgba(38,33,92,.14);
  --ink-20:       rgba(38,33,92,.20);
  --paper:        #F1EFE8;
  --paper-warm:   #EAE7DE;
  --silk:         #EEEDFE;
  --accent:       #534AB7;
  --thread:       #AFA9EC;
  --void:         #1A1835;
  --text:         #2C2C2A;
  --muted:        #5F5E5A;
  --faint:        #888780;
  --success:      #3B6D11;
  --success-bg:   rgba(59,109,17,.08);
  --success-border: rgba(59,109,17,.18);
  --staff:        1px solid rgba(38,33,92,.10);
  --r-sm:         6px;
  --r-md:         10px;
  --r-lg:         16px;
  --w:            1100px;
  --gutter:       48px;
}

/* ─── reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── layout ─────────────────────────────────────────────────── */
.wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── staff line — the signature element ─────────────────────── */
/* Thin rules across the full page, like a musical score */
.staff {
  border: none;
  border-top: var(--staff);
  width: 100%;
}

/* ─── nav ────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(241,239,232,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--staff);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.wordmark-icon img { display: block; width: 32px; height: 32px; }
.wordmark-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 140ms;
}
.nav-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 140ms, color 140ms, transform 80ms, border-color 140ms;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--silk);
  border-radius: var(--r-sm);
  padding: 9px 18px;
  font-size: 13px;
}
.btn-primary:hover { background: var(--accent); }
.btn-primary-lg {
  background: var(--ink);
  color: var(--silk);
  border-radius: var(--r-sm);
  padding: 14px 28px;
  font-size: 15px;
}
.btn-primary-lg:hover { background: var(--accent); }
/* On the dark closing section the ink button disappears into the background. */
.dark-section .btn-primary-lg { background: var(--silk); color: var(--ink); }
.dark-section .btn-primary-lg:hover { background: white; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--ink-14);
  border-radius: var(--r-sm);
  padding: 14px 28px;
  font-size: 15px;
}
.btn-ghost:hover { border-color: var(--thread); color: var(--ink); }

/* ─── hero ───────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}
.eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 28px;
}
.display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -.025em;
  line-height: 1.08;
}
.hero-headline {
  font-size: clamp(52px, 6.5vw, 88px);
  max-width: 820px;
  margin: 0 auto 28px;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 44px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--faint);
}

/* ─── app panel (CSS replica) ────────────────────────────────── */
.panel-wrap {
  margin: 64px auto 0;
  max-width: 640px;
  perspective: 1200px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease 300ms, transform 700ms ease 300ms;
}
.panel-wrap.in { opacity: 1; transform: translateY(0); }
.panel {
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  border: 1px solid var(--ink-14);
  box-shadow:
    0 2px 8px var(--ink-8),
    0 16px 48px rgba(38,33,92,.12),
    0 0 0 .5px var(--ink-8) inset;
  overflow: hidden;
  text-align: left;
}
.panel-titlebar {
  height: 38px;
  background: rgba(246,245,241,.95);
  border-bottom: 1px solid var(--ink-8);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 0;
}
.lights {
  display: flex;
  gap: 6px;
  margin-right: 14px;
}
.light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.l-red    { background: #FF5F57; }
.l-yellow { background: #FEBC2E; }
.l-green  { background: #28C840; }
.panel-label {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--faint);
  margin-right: 60px; /* balance for lights */
}
.panel-body {
  padding: 20px 18px 18px;
}
.prompt-field {
  background: var(--paper);
  border: 1px solid var(--ink-14);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 64px;
}
.sparkle {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1;
}
.tw-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
}
.caret {
  display: inline-block;
  width: 2px;
  height: .9em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 1px;
  border-radius: 1px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.wf-preview {
  margin-top: 14px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 500ms ease, max-height 600ms ease;
}
.wf-preview.open {
  opacity: 1;
  max-height: 200px;
}
.wf-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: var(--paper);
  border-radius: 6px;
  margin-bottom: 5px;
}
.wf-badge {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.badge-clip { background: var(--ink-8); color: var(--ink); }
.badge-ai   { background: rgba(83,74,183,.12); color: var(--accent); }
.badge-out  { background: rgba(59,109,17,.10); color: var(--success); }
.wf-step-text { font-size: 12.5px; color: var(--text); line-height: 1.3; }
.wf-step-text code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  background: var(--ink-8);
  color: var(--accent);
  padding: 1px 4px;
  border-radius: 3px;
}
.done-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 12px;
  color: var(--success);
  font-weight: 500;
}

/* ─── section scaffold ───────────────────────────────────────── */
.section { padding: 80px 0; }
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(32px, 3.8vw, 52px);
  margin-bottom: 48px;
}

/* ─── how it works ───────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink-14);
  border-radius: var(--r-md);
  overflow: hidden;
  /* The 1px gaps between columns encode the staff-line idea in 3D */
  gap: 1px;
  background: var(--ink-14);
}
.how-cell {
  background: var(--paper);
  padding: 36px 30px;
  transition: background 200ms;
}
.how-cell:hover { background: rgba(238,237,254,.35); }
.how-numeral {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 44px;
  font-weight: 400;
  color: var(--ink);
  opacity: .16;
  line-height: 1;
  margin-bottom: 18px;
  user-select: none;
}
.how-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.how-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── examples ───────────────────────────────────────────────── */
.ex-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ex-card {
  background: #fff;
  border: 1px solid var(--ink-8);
  border-radius: var(--r-md);
  padding: 26px 24px;
  transition: border-color 200ms, box-shadow 200ms;
  display: flex;
  flex-direction: column;
}
.ex-card:hover {
  border-color: var(--thread);
  box-shadow: 0 6px 24px var(--ink-8);
}
.ex-trigger {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ex-desc {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
  flex: 1;
  margin-bottom: 18px;
}
.ex-then {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--ink-8);
  padding-top: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.ex-arrow {
  color: var(--accent);
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1.5;
}

/* ─── differentiators ────────────────────────────────────────── */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 80px;
}
.diff-rule {
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  margin-bottom: 18px;
}
.diff-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.diff-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── integrations ───────────────────────────────────────────── */
.int-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.int-pill {
  background: #fff;
  border: 1px solid var(--ink-8);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: border-color 150ms, color 150ms;
}
.int-pill:hover { border-color: var(--thread); color: var(--ink); }

/* ─── pricing ────────────────────────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--ink-8);
  border-radius: var(--r-md);
  padding: 28px 24px;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.price-plan {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.price-card.featured .price-plan { color: var(--accent); }
.price-amount {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.price-period {
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 20px;
}
.price-features {
  list-style: none;
  margin-bottom: 24px;
}
.price-features li {
  font-size: 13.5px;
  color: var(--muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--ink-8);
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.price-features li::before {
  content: '—';
  color: var(--thread);
  font-size: 11px;
  flex-shrink: 0;
}

/* ─── dark CTA section ───────────────────────────────────────── */
.dark-section {
  background: var(--void);
  padding: 100px 0;
  text-align: center;
}
.dark-section .section-label { color: rgba(175,169,236,.5); }
.dark-section .display { color: var(--silk); }
.dark-section .hero-sub { color: rgba(238,237,254,.55); }
.dark-btn-primary {
  background: var(--silk);
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 14px 28px;
  font-size: 15px;
}
.dark-btn-primary:hover { background: #fff; }
.dark-btn-ghost {
  background: transparent;
  color: rgba(238,237,254,.6);
  border: 1px solid rgba(175,169,236,.28);
  border-radius: var(--r-sm);
  padding: 14px 28px;
  font-size: 15px;
}
.dark-btn-ghost:hover {
  border-color: var(--thread);
  color: var(--silk);
}


.dark-note {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(238,237,254,.22);
}

/* ─── links to deeper pages under a section ────────────────────── */
.more-link {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}
.more-link a { color: var(--accent); }
.more-link a:hover { text-decoration: underline; }

/* ─── footer ─────────────────────────────────────────────────── */
footer {
  background: var(--void);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 44px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
}
.footer-mark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: rgba(238,237,254,.55);
}
.footer-tag {
  font-size: 13px;
  color: rgba(238,237,254,.3);
  margin-top: 6px;
  max-width: 220px;
  line-height: 1.5;
}
.footer-col h2 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(238,237,254,.3);
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a {
  font-size: 13px;
  color: rgba(238,237,254,.5);
  transition: color 140ms;
}
.footer-col a:hover { color: rgba(238,237,254,.85); }
.footer-copy {
  font-size: 12px;
  color: rgba(238,237,254,.22);
  margin-top: 32px;
}

/* ─── scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 550ms ease, transform 550ms ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }
.reveal-d4 { transition-delay: 320ms; }

/* ─── demo ───────────────────────────────────────────────────── */
.demo-section { padding: 0 0 80px; }
.demo-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--ink-14);
  box-shadow: 0 2px 8px var(--ink-8), 0 24px 64px rgba(38,33,92,.14);
  background: #FBFBFE;
  aspect-ratio: 16 / 9;
}
.demo-video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.demo-video:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ─── before / after ────────────────────────────────────────── */
.ba-row {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: start;
  margin-bottom: 16px;
}
.ba-row:last-child { margin-bottom: 0; }
.ba-col {
  background: #fff;
  border: 1px solid var(--ink-8);
  border-radius: var(--r-md);
  padding: 22px 20px;
}
.ba-head {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ba-before .ba-head { color: var(--faint); }
.ba-after  .ba-head { color: var(--success); }
.ba-steps {
  list-style: none;
}
.ba-step {
  font-size: 13.5px;
  padding: 6px 0;
  border-bottom: 1px solid var(--ink-8);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.ba-step:last-child { border-bottom: none; padding-bottom: 0; }
.ba-before .ba-step { color: var(--muted); }
.ba-after  .ba-step { color: var(--text); }
.ba-step-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.ba-before .ba-step-dot { background: var(--faint); }
.ba-after  .ba-step-dot { background: var(--success); }
.ba-task-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.ba-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
}
.ba-vs {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper-warm);
  border: 1px solid var(--ink-8);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: .05em;
}
.ba-saving {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: var(--success-bg);
  border-radius: 5px;
}

/* ─── personas ───────────────────────────────────────────── */
.personas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.p-card {
  background: #fff;
  border: 1px solid var(--ink-8);
  border-radius: var(--r-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.p-role-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--silk);
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}
.p-automation {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}
.p-result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--ink-8);
  line-height: 1.5;
}
.p-arrow { color: var(--accent); font-weight: 600; flex-shrink: 0; }

/* ─── privacy ────────────────────────────────────────────────── */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--ink-14);
  border: 1px solid var(--ink-14);
  border-radius: var(--r-md);
  overflow: hidden;
}
.privacy-cell {
  background: var(--paper);
  padding: 36px 28px;
}
.privacy-icon {
  width: 40px;
  height: 40px;
  background: var(--silk);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.privacy-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.privacy-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── faq ────────────────────────────────────────────────────── */
.faq-list {
  max-width: 660px;
  margin: 0 auto;
}
.faq-list details {
  border-bottom: 1px solid var(--ink-8);
}
.faq-list details:first-child {
  border-top: 1px solid var(--ink-8);
}
.faq-list summary {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-toggle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--ink-14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--thread);
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  transition: transform 200ms ease, background 150ms;
}
details[open] .faq-toggle {
  transform: rotate(45deg);
  background: var(--silk);
}
.faq-answer {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  padding-bottom: 22px;
  max-width: 560px;
}

/* ─── responsive ─────────────────────────────────────────────── */
@media (max-width: 820px) {
  :root { --gutter: 22px; }
  .how-grid          { grid-template-columns: 1fr; }
  .ex-grid           { grid-template-columns: 1fr; }
  .diff-grid         { grid-template-columns: 1fr; gap: 36px; }
  .price-grid        { grid-template-columns: 1fr; }
  .ba-row            { grid-template-columns: 1fr; }
  .ba-separator      { display: none; }
  .personas-grid { grid-template-columns: 1fr; }
  .privacy-grid      { grid-template-columns: 1fr; }
  .hero          { padding: 64px 0 56px; }
  .nav-links     { display: none; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .panel-wrap { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
  .wf-preview { transition: none; }
}
