/* ═══════════════════════════════════════════════════════════════════════
   Statura — landing "instrumento de medição"
   Dark verde-profundo · Bricolage Grotesque + Instrument Sans + IBM Plex Mono
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #050d0a;
  --bg-2: #081410;
  --ink: #eef6f1;
  --ink-dim: #9db4a9;
  --ink-faint: #5d7168;
  --emerald: #10b981;
  --teal: #2dd4bf;
  --lime: #a3e635;
  --line: rgba(45, 212, 191, 0.14);
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Instrument Sans", sans-serif;
  --ruler-w: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--emerald); color: var(--bg); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--ink-faint); }

/* grain sutil por cima de tudo */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 60;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-4%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-2%, -4%); }
}

/* ═══ régua lateral que mede o scroll ═══ */
.ruler {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--ruler-w);
  border-right: 1px solid var(--line);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(6px);
}
.ruler__ticks {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(to bottom,
      transparent 0, transparent 9px,
      rgba(45, 212, 191, 0.28) 9px, rgba(45, 212, 191, 0.28) 10px),
    repeating-linear-gradient(to bottom,
      transparent 0, transparent 49px,
      rgba(45, 212, 191, 0.5) 49px, rgba(45, 212, 191, 0.5) 50px);
  background-size: 12px 10px, 22px 50px;
  background-repeat: repeat-y;
  background-position: right top;
}
.ruler__cursor {
  position: absolute; left: 0; right: -1px;
  top: 0;
  border-top: 2px solid var(--lime);
  padding: 4px 6px 0 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--lime);
  transition: top 80ms linear;
  white-space: nowrap;
}
.ruler__cursor em { font-style: normal; opacity: 0.65; margin-left: 1px; }

/* ═══ nav ═══ */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  padding: 18px clamp(20px, 5vw, 64px) 18px calc(var(--ruler-w) + clamp(16px, 3vw, 40px));
  background: linear-gradient(to bottom, rgba(5, 13, 10, 0.92), rgba(5, 13, 10, 0.65) 75%, transparent);
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 0.92rem; color: var(--ink-dim); }
.nav__links a { transition: color 160ms; }
.nav__links a:hover { color: var(--teal); }

/* ═══ botões ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px;
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.3, 1.4), box-shadow 180ms, background 180ms, color 180ms;
  will-change: transform;
}
.btn__arrow { transition: transform 180ms; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary {
  background: linear-gradient(120deg, var(--emerald), var(--teal));
  color: #04120c;
  box-shadow: 0 8px 32px -8px rgba(16, 185, 129, 0.55);
}
.btn--primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 44px -10px rgba(16, 185, 129, 0.7); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--outline { border: 1.5px solid var(--emerald); color: var(--emerald); }
.btn--outline:hover { background: var(--emerald); color: #04120c; transform: translateY(-2px); }
.btn--lg { font-size: 1.15rem; padding: 18px 36px; }

/* ═══ hero ═══ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding: clamp(30px, 6vh, 80px) clamp(20px, 5vw, 64px) 60px calc(var(--ruler-w) + clamp(16px, 3vw, 40px));
  min-height: 88vh;
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 720px 460px at 18% 22%, rgba(16, 185, 129, 0.16), transparent 65%),
    radial-gradient(ellipse 560px 560px at 82% 68%, rgba(45, 212, 191, 0.12), transparent 60%);
}
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--teal);
}
.tick { display: inline-block; width: 34px; height: 1px; background: var(--teal); position: relative; }
.tick::after { content: ""; position: absolute; right: 0; top: -3px; height: 7px; width: 1px; background: var(--teal); }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(3rem, 8.2vw, 6.6rem);
  font-weight: 750;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 22px 0 24px;
}
.hero h1 em {
  background: linear-gradient(115deg, var(--emerald) 10%, var(--lime) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lede { max-width: 46ch; color: var(--ink-dim); font-size: 1.12rem; }

.hero__actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; flex-wrap: wrap; }
.stores { display: flex; flex-direction: column; line-height: 1.35; }
.stores__soon { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-faint); }
.stores__badges { font-size: 0.9rem; color: var(--ink-dim); }

.hero__proof { display: flex; gap: clamp(20px, 3vw, 44px); margin-top: 48px; }
.hero__proof div { border-left: 1px solid var(--line); padding-left: 16px; }
.hero__proof dt { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.hero__proof dd { font-size: 0.82rem; color: var(--ink-faint); }

/* device + callouts blueprint */
.hero__device { position: relative; justify-self: center; }
.phone {
  width: min(340px, 78vw);
  border-radius: 44px;
  border: 1px solid rgba(45, 212, 191, 0.25);
  outline: 8px solid #0d1b16;
  background: #0d1b16;
  overflow: hidden;
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.8),
    0 0 80px -20px rgba(16, 185, 129, 0.25);
  transform: rotate(1.5deg);
}
.phone--sm { width: min(300px, 74vw); transform: rotate(-1.2deg); outline-width: 7px; border-radius: 38px; }
.feature--flip .phone--sm { transform: rotate(1.2deg); }
.phone img { width: 100%; }

.spec { position: absolute; display: flex; align-items: center; font-family: var(--mono); font-size: 0.66rem; color: var(--teal); white-space: nowrap; }
.spec__line { display: inline-block; height: 1px; width: 54px; background: var(--teal); margin: 0 8px; position: relative; }
.spec__line::before { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); top: -2px; }
.spec--tl { top: 13%; right: calc(100% - 26px); flex-direction: row; }
.spec--tl .spec__line::before { right: -2px; }
.spec--r { top: 40%; left: calc(100% - 22px); }
.spec--r .spec__line::before { left: -2px; }
.spec--bl { bottom: 20%; right: calc(100% - 30px); }
.spec--bl .spec__line::before { right: -2px; }

/* ═══ marquee fita métrica ═══ */
.tape {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    repeating-linear-gradient(to right,
      transparent 0, transparent 19px,
      rgba(45, 212, 191, 0.25) 19px, rgba(45, 212, 191, 0.25) 20px),
    var(--bg-2);
  padding: 0 0 0 var(--ruler-w);
}
.tape__track {
  display: flex; gap: 56px; width: max-content;
  padding: 16px 0;
  animation: tape 36s linear infinite;
}
.tape__track span {
  font-family: var(--display); font-weight: 650; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-faint);
}
.tape__track span:nth-child(3n) { color: var(--emerald); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ═══ features ═══ */
.features { padding: clamp(60px, 10vh, 130px) clamp(20px, 5vw, 64px) 20px calc(var(--ruler-w) + clamp(16px, 3vw, 40px)); }
.feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(44px, 8vh, 90px) 0;
  border-bottom: 1px dashed var(--line);
}
.feature:last-child { border-bottom: 0; }
.feature--flip .feature__meta { order: 2; }
.feature--flip .feature__shot { order: 1; justify-self: start; }
.feature__shot { justify-self: end; }
.feature__num {
  font-family: var(--mono); font-size: 0.8rem; color: var(--lime);
  display: inline-block; margin-bottom: 14px;
}
.feature__num::after { content: " ———"; color: var(--ink-faint); letter-spacing: -2px; }
.feature h2 {
  font-family: var(--display); font-weight: 720;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.02; letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.feature p { color: var(--ink-dim); max-width: 44ch; }
.feature__note { margin-top: 16px; color: var(--teal) !important; }

/* ═══ stats ═══ */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin: 40px 0;
  padding-left: var(--ruler-w);
  background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { background: var(--bg-2); padding: clamp(28px, 4vw, 48px); text-align: center; }
.stat strong {
  display: block;
  font-family: var(--display); font-weight: 750;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--emerald), var(--teal));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat span { font-size: 0.86rem; color: var(--ink-faint); }

/* ═══ pro ═══ */
.pro { padding: clamp(70px, 12vh, 140px) clamp(20px, 5vw, 64px) clamp(70px, 12vh, 140px) calc(var(--ruler-w) + clamp(16px, 3vw, 40px)); }
.pro__inner {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(ellipse 500px 300px at 85% 15%, rgba(163, 230, 53, 0.07), transparent 60%),
    var(--bg-2);
}
.pro h2 {
  font-family: var(--display); font-weight: 730;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.03; letter-spacing: -0.03em;
  margin: 18px 0;
}
.pro h2 em { color: var(--lime); }
.pro .lede { margin-bottom: 30px; }

/* ═══ pricing ═══ */
.pricing { padding: 20px clamp(20px, 5vw, 64px) clamp(70px, 10vh, 120px) calc(var(--ruler-w) + clamp(16px, 3vw, 40px)); }
.pricing__title {
  font-family: var(--display); font-weight: 750;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -0.03em;
  text-align: center;
}
.pricing__title em {
  background: linear-gradient(115deg, var(--emerald), var(--lime));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.pricing__sub { text-align: center; color: var(--ink-faint); margin: 10px 0 44px; }
.pricing__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 400px));
  gap: 22px; justify-content: center; align-items: stretch;
}
.plan {
  border: 1px solid var(--line); border-radius: 24px;
  padding: 34px 30px;
  background: var(--bg-2);
  display: flex; flex-direction: column;
}
.plan h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 650; color: var(--ink-dim); }
.plan__price {
  font-family: var(--display); font-weight: 780;
  font-size: 3rem; letter-spacing: -0.03em; margin: 8px 0 20px;
}
.plan__price span { font-size: 1.1rem; font-weight: 500; color: var(--ink-faint); }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.plan li { padding-left: 26px; position: relative; font-size: 0.96rem; color: var(--ink-dim); }
.plan li::before { content: "—"; position: absolute; left: 0; color: var(--emerald); }
.plan li strong { color: var(--ink); }
.plan__foot { margin: auto 0 18px; }
.plan--premium {
  position: relative;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(135deg, var(--emerald), var(--teal), var(--lime)) border-box;
  box-shadow: 0 24px 70px -30px rgba(16, 185, 129, 0.45);
}
.plan__flag {
  position: absolute; top: -13px; right: 26px;
  font-family: var(--mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.14em;
  background: linear-gradient(120deg, var(--emerald), var(--teal));
  color: #04120c; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.plan--premium .plan__price {
  background: linear-gradient(120deg, var(--emerald), var(--teal));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ═══ faq ═══ */
.faq { padding: 20px clamp(20px, 5vw, 64px) clamp(60px, 8vh, 100px) calc(var(--ruler-w) + clamp(16px, 3vw, 40px)); }
.faq__title {
  font-family: var(--display); font-weight: 750;
  font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.03em;
  margin-bottom: 34px;
}
.faq__title em {
  background: linear-gradient(115deg, var(--emerald), var(--lime));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.faq__list { max-width: 760px; display: grid; gap: 2px; }
.faq details {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-2); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  font-family: var(--display); font-weight: 620; font-size: 1.05rem;
  transition: color 160ms;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto;
  font-family: var(--mono); color: var(--emerald); font-size: 1.2rem;
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--teal); }
.faq summary .mono { color: var(--lime); }
.faq details p { padding: 0 22px 20px 60px; color: var(--ink-dim); font-size: 0.96rem; max-width: 62ch; }

/* ═══ cta final ═══ */
.cta {
  position: relative; text-align: center;
  padding: clamp(80px, 14vh, 160px) clamp(20px, 5vw, 64px);
  padding-left: calc(var(--ruler-w) + clamp(16px, 3vw, 40px));
  overflow: hidden;
}
.cta__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 640px 380px at 50% 100%, rgba(16, 185, 129, 0.2), transparent 65%);
}
.cta h2 {
  font-family: var(--display); font-weight: 750;
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  line-height: 1.04; letter-spacing: -0.03em;
  margin-bottom: 36px;
}
.cta h2 em {
  background: linear-gradient(115deg, var(--emerald), var(--lime));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.cta__hint { margin-top: 18px; }

/* ═══ footer ═══ */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px clamp(20px, 5vw, 64px) 46px calc(var(--ruler-w) + clamp(16px, 3vw, 40px));
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px;
  background: var(--bg-2);
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; }
.footer__brand em { font-family: var(--body); font-weight: 400; font-size: 0.85rem; color: var(--ink-faint); }
.footer__links { display: flex; gap: 24px; font-size: 0.9rem; color: var(--ink-dim); margin-left: auto; }
.footer__links a:hover { color: var(--teal); }
.footer__legal { flex-basis: 100%; }

/* ═══ reveals ═══ */
.reveal { opacity: 0; transform: translateY(26px); animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.d1 { animation-delay: 0.08s; } .d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.3s; } .d4 { animation-delay: 0.42s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.io-hidden { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.io-shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .io-hidden { opacity: 1; transform: none; animation: none; transition: none; }
  .tape__track { animation: none; }
  .grain { animation: none; }
  html { scroll-behavior: auto; }
}

/* ═══ responsivo ═══ */
@media (max-width: 900px) {
  :root { --ruler-w: 0px; }
  .ruler { display: none; }
  .nav { padding-left: 20px; }
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 20px; }
  .hero__device { margin-top: 30px; }
  .spec--tl, .spec--bl { right: auto; left: -8px; }
  .spec--r { left: auto; right: -8px; }
  .spec__label { max-width: 130px; white-space: normal; line-height: 1.3; }
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__meta { order: 1; }
  .feature--flip .feature__shot { order: 2; }
  .feature__shot { justify-self: center !important; }
  .stats { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: minmax(0, 420px); }
  .footer__links { margin-left: 0; }
}
