/* ===== Cuentino landing — design tokens mirror the iOS app's Theme ===== */
:root {
  --green:      #9FE870;  /* friendly green   */
  --green-deep: #8ADb57;  /* hover            */
  --ink:        #163300;  /* dark forest ink  */
  --ink-70:     rgba(22, 51, 0, 0.70);
  --ink-55:     rgba(22, 51, 0, 0.55);
  --ink-08:     rgba(22, 51, 0, 0.08);
  --canvas:     #FAFBFA;  /* light background */
  --field:      #F0F2F0;  /* soft fill        */
  --white:      #ffffff;
  --radius:     20px;
  --radius-lg:  28px;
  --shadow:     0 18px 40px -24px rgba(22, 51, 0, 0.45);
  --shadow-sm:  0 8px 24px -16px rgba(22, 51, 0, 0.40);
  --maxw:       1080px;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
          "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
section { padding: 88px 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--green); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink-08); }
.btn-ghost:hover { background: var(--field); }
.btn-dark { background: var(--ink); color: var(--green); }
.btn-dark:hover { filter: brightness(1.15); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px 24px;
  background: rgba(250, 251, 250, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--ink); color: var(--green); font-weight: 800;
}
.nav-links { margin-left: auto; display: flex; gap: 28px; font-weight: 600; color: var(--ink-70); }
.nav-links a:hover { color: var(--ink); }
.nav .btn-primary { box-shadow: none; }

@media (max-width: 720px) { .nav-links { display: none; } }

/* ===== Hero ===== */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-top: 64px;
}
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-55);
  background: var(--field); padding: 6px 12px; border-radius: 999px;
}
.eyebrow.on-dark { color: var(--ink); background: var(--green); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); font-weight: 800; margin: 20px 0 18px; }
.lede { font-size: 1.18rem; color: var(--ink-70); max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 16px; }
.hero-note { font-size: .92rem; color: var(--ink-55); }

/* Phone mockup */
.hero-art { display: grid; place-items: center; }
.phone {
  position: relative; width: 300px; height: 600px;
  background: var(--ink); border-radius: 46px; padding: 14px;
  box-shadow: var(--shadow);
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 130px; height: 26px; background: var(--ink); border-radius: 0 0 16px 16px; z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%; background: var(--canvas);
  border-radius: 34px; padding: 40px 18px 18px; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
}
.screen-header { text-align: center; }
.screen-title { font-weight: 800; font-size: 1.05rem; }
.mic-card {
  background: var(--field); border-radius: var(--radius); padding: 16px;
  border: 1px solid var(--ink-08);
}
.mic-transcript { font-size: .92rem; color: var(--ink); }
.mic-transcript b { color: var(--ink); }
.listening {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: .78rem; font-weight: 600; color: var(--ink-55);
}
.listening .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green-deep);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.arrow { text-align: center; font-size: 1.3rem; color: var(--green-deep); font-weight: 800; }
.invoice-card {
  background: var(--white); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--ink-08);
  display: flex; flex-direction: column; gap: 9px;
}
.inv-row, .inv-line { display: flex; justify-content: space-between; align-items: baseline; }
.inv-label { font-weight: 800; letter-spacing: .12em; font-size: .72rem; color: var(--ink-55); }
.inv-num { font-weight: 700; font-size: .85rem; color: var(--ink-55); }
.inv-to { font-weight: 800; font-size: 1.05rem; margin-bottom: 4px; }
.inv-line { font-size: .88rem; }
.inv-line.muted { color: var(--ink-55); }
.inv-line.inv-total {
  font-weight: 800; font-size: 1.05rem;
  border-top: 1.5px solid var(--ink-08); padding-top: 9px; margin-top: 2px;
}
.inv-due {
  align-self: flex-start; margin-top: 6px;
  background: var(--green); color: var(--ink);
  font-weight: 700; font-size: .74rem; padding: 4px 10px; border-radius: 999px;
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .lede { max-width: none; margin: 0 auto; }
  .hero-cta { justify-content: center; }
}

/* ===== AI band ===== */
.band { background: var(--ink); color: var(--canvas); }
.band-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.band h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin: 16px 0; color: var(--white); }
.band p { font-size: 1.12rem; color: rgba(250, 251, 250, 0.72); }

/* ===== Section heads ===== */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; }
.section-head p { margin-top: 12px; font-size: 1.1rem; color: var(--ink-70); }

/* ===== Features grid ===== */
.features { max-width: var(--maxw); margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--ink-08);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 15px; background: var(--field);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--ink-70); }

@media (max-width: 880px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* ===== How it works ===== */
.how { max-width: var(--maxw); margin: 0 auto; }
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  counter-reset: step;
}
.steps li {
  background: var(--field); border-radius: var(--radius-lg); padding: 28px;
  position: relative;
}
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--green); color: var(--ink); font-weight: 800; font-size: 1.1rem;
  margin-bottom: 16px;
}
.steps h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.steps p { color: var(--ink-70); }

@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ===== CTA ===== */
.cta { }
.cta-inner {
  max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(135deg, var(--green) 0%, #c4f29e 100%);
  border-radius: var(--radius-lg); padding: 64px 32px; text-align: center;
}
.cta-inner h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
.cta-inner > p { margin: 14px 0 28px; font-size: 1.15rem; color: var(--ink-70); }
.cta-soon { margin-top: 16px; font-size: .9rem; color: var(--ink-55); }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details {
  background: var(--white); border: 1px solid var(--ink-08);
  border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm);
}
summary {
  font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--green-deep); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; color: var(--ink-70); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: var(--canvas); padding: 56px 24px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
}
.footer .brand { color: var(--canvas); }
.footer-links { display: flex; gap: 24px; margin-left: auto; font-weight: 600; color: rgba(250,251,250,.72); }
.footer-links a:hover { color: var(--green); }
.copyright { width: 100%; font-size: .88rem; color: rgba(250,251,250,.5); }

@media (max-width: 560px) {
  section { padding: 64px 20px; }
  .footer-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
