/* ==========================================================================
   Northum — Design tokens
   Brand anchors: navy, white, matte gold. Everything else is derived.
   ========================================================================== */
:root {
  --navy: #0F172A;        /* anchor — structure, authority */
  --navy-deep: #0B121F;   /* layered panels within navy sections */
  --white: #FFFFFF;       /* anchor — base */
  --paper: #F6F7FA;       /* cool off-white, alternating section bg (not cream) */
  --gold: #C8A24A;        /* anchor — surgical accent only */
  --gold-soft: #DCC583;

  --ink: #0F172A;
  --slate: #57616F;       /* body copy on light */
  --slate-soft: #8791A0;
  --line: #E1E4EA;

  --font-display: 'IBM Plex Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 6px;
  --radius-lg: 8px;

  --container: 1120px;
  --section-pad: 128px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Visible keyboard focus everywhere, always — not gated behind reduced motion */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   Signature — the Measure Line
   A fixed vertical rail, ambient and quiet, tracking scroll position.
   Desktop only; hidden entirely when motion is reduced (its whole point
   is scroll-linked movement).
   ========================================================================== */
.measure-rail {
  display: none;
}

@media (min-width: 1140px) {
  .measure-rail {
    display: block;
    position: fixed;
    left: 40px;
    top: 110px;
    bottom: 110px;
    width: 1px;
    background: var(--line);
    z-index: 60;
    pointer-events: none;
  }

  .measure-rail__tick {
    position: absolute;
    left: -4px;
    top: 0;
    width: 9px;
    height: 2px;
    background: var(--gold);
  }
}

@media (prefers-reduced-motion: reduce) {
  .measure-rail { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease-out), background 0.15s ease, border-color 0.15s ease;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
}

.btn--gold:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
}

.btn--large {
  font-size: 16px;
  padding: 16px 36px;
}

.btn--header {
  font-size: 14px;
  padding: 10px 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--white);
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.header.is-scrolled .logo { color: var(--navy); }

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--white); }

.header.is-scrolled .nav a { color: var(--slate); }
.header.is-scrolled .nav a:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.25s ease;
}

.header.is-scrolled .nav-toggle span { background: var(--navy); }

/* ==========================================================================
   Hero
   Choreographed load-in: headline settles, the measure-tick draws under
   "conversa", then subhead and CTA follow. One orchestrated moment.
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy);
  padding: 176px 0 128px;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  max-width: 760px;
}

.hero__headline,
.hero__subhead,
.hero__cta {
  opacity: 1;
  transform: none;
}

.hero__headline {
  font-size: clamp(32px, 4.4vw, 52px);
  color: var(--white);
}

.hero__accent {
  position: relative;
  white-space: nowrap;
}

.hero__tick {
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 3px;
  width: 100%;
  background: var(--gold);
  font-style: normal;
}

.hero__subhead {
  display: block;
  margin-top: 28px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.68);
  max-width: 560px;
}

.hero__cta {
  margin-top: 40px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__headline {
    opacity: 0;
    transform: translateY(16px);
    animation: heroRise 0.7s var(--ease-out) 0.05s forwards;
  }

  .hero__subhead {
    opacity: 0;
    transform: translateY(16px);
    animation: heroRise 0.6s var(--ease-out) 0.55s forwards;
  }

  .hero__cta {
    opacity: 0;
    transform: translateY(16px);
    animation: heroRise 0.6s var(--ease-out) 0.7s forwards;
  }

  .hero__tick {
    width: 0;
    animation: tickDraw 0.7s var(--ease-out) 0.5s forwards;
  }
}

@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tickDraw {
  to { width: 100%; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: var(--section-pad) 0;
}

.section--muted {
  background: var(--paper);
}

.eyebrow {
  position: relative;
  display: inline-block;
  padding-left: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--gold);
  transform: translateY(-50%);
}

.section h2 {
  font-size: clamp(26px, 3vw, 36px);
  max-width: 760px;
}

.section__lead {
  margin-top: 20px;
  font-size: 17px;
  color: var(--slate);
  max-width: 640px;
}

/* ==========================================================================
   Comparison (Problema)
   ========================================================================== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}

.compare__card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--white);
}

.compare__card--highlight {
  border-color: var(--gold);
  background: var(--navy);
}

.compare__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--ink);
}

.compare__card--highlight .compare__label { color: var(--white); }

.compare__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--slate);
}

.compare__list li:last-child { margin-bottom: 0; }

.compare__list--bad li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--slate-soft);
}

.compare__list--good li {
  color: rgba(255, 255, 255, 0.78);
}

.compare__list--good li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ==========================================================================
   Dashboard mock
   Each metric locks into a corner-bracket frame and counts up from zero
   as the block enters view — the raw-signal-to-structured-data motif.
   ========================================================================== */
.dashboard-mock {
  margin-top: 56px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(200, 162, 74, 0.25);
}

.dashboard-mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.dot--gold { background: var(--gold); }

.dashboard-mock__title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.dashboard-mock__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric {
  position: relative;
  padding: 34px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.metric:last-child { border-right: none; }

.metric::before,
.metric::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 1;
}

.metric::before {
  top: 10px;
  left: 10px;
  border-top: 1.5px solid var(--gold);
  border-left: 1.5px solid var(--gold);
}

.metric::after {
  bottom: 10px;
  right: 10px;
  border-bottom: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
}

.metric__value {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 32px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.metric__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

@media (prefers-reduced-motion: no-preference) {
  .metric::before,
  .metric::after {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
  }

  .metric::before { transform: translate(5px, 5px); }
  .metric::after { transform: translate(-5px, -5px); }

  .dashboard-mock.is-visible .metric::before,
  .dashboard-mock.is-visible .metric::after {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* ==========================================================================
   Steps (Metodologia) — a genuine ordered sequence, numbering earns its keep
   ========================================================================== */
.steps {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.step {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.step__number {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 20px;
  color: var(--gold);
  margin-bottom: 16px;
}

.step__title {
  font-size: 17px;
  margin-bottom: 10px;
}

.step__text {
  font-size: 14px;
  color: var(--slate);
}

/* ==========================================================================
   Offer cards
   ========================================================================== */
.offer-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.offer-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.offer-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-soft);
}

.offer-card--highlight {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
}

.offer-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200, 162, 74, 0.1);
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.offer-card__title {
  font-size: 22px;
  margin-bottom: 24px;
}

.offer-card__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--slate);
}

.offer-card__list li:last-child { margin-bottom: 0; }

.offer-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.offer-cta {
  margin-top: 48px;
  text-align: center;
}

/* ==========================================================================
   Guarantee
   ========================================================================== */
.guarantee {
  position: relative;
  background: var(--navy);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.guarantee__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.guarantee__text {
  font-size: 19px;
  color: var(--white);
  line-height: 1.55;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  margin-top: 48px;
  max-width: 720px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--gold);
  font-weight: 500;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--slate);
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  background: var(--navy);
  padding: 136px 0;
  text-align: center;
}

.cta-final__inner h2 {
  color: var(--white);
  font-size: clamp(28px, 3.6vw, 42px);
}

.cta-final__inner p {
  margin-top: 16px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.68);
}

.cta-final .btn { margin-top: 40px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--white);
  padding: 40px 0 28px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.logo--footer {
  color: var(--navy);
  font-size: 16px;
}

.footer__inner a {
  font-size: 14px;
  color: var(--slate);
  transition: color 0.15s ease;
}

.footer__inner a:hover { color: var(--navy); }

.footer__copy {
  margin: 20px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-soft);
}

/* ==========================================================================
   Scroll reveal (below-fold sections)
   ========================================================================== */
.reveal { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  :root { --section-pad: 84px; }

  .nav { display: none; }

  .nav-toggle { display: flex; }

  .header__inner { position: relative; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 18px;
  }

  .nav.is-open a { color: var(--slate); }
  .nav.is-open a:hover { color: var(--navy); }

  .btn--header { display: none; }

  .hero { padding: 148px 0 92px; }

  .compare { grid-template-columns: 1fr; }

  .dashboard-mock__grid { grid-template-columns: 1fr 1fr; }

  .metric:nth-child(2) { border-right: none; }

  .metric { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

  .steps { grid-template-columns: 1fr 1fr; }

  .offer-grid { grid-template-columns: 1fr; }

  .guarantee { padding: 36px 24px; }

  .cta-final { padding: 96px 0; }

  .footer__inner { justify-content: center; text-align: center; }
}

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

  .dashboard-mock__grid { grid-template-columns: 1fr 1fr; }

  .btn--large { width: 100%; }
}
