@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@600;700&family=Red+Hat+Text:wght@400;500;600;700&display=swap");
@import url("./tokens.css");

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Anchor scroll offset so sticky header doesn't overlap the target */
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font-text);
  font-size: var(--fs-body);
  color: var(--text-primary);
  background: var(--lastro-white);
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: inherit;
  /* Prettier line breaks on multi-line headings */
  text-wrap: balance;
}
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* Focus rings — visible only on keyboard nav */
:focus-visible {
  outline: 2px solid var(--accent-teal-bright, #5EE6DE);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Visually hidden but available to screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-link — appears on focus, top-left */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--lastro-navy);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  transform: translateY(-200%);
  transition: transform 150ms ease-out;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--accent-teal-bright, #5EE6DE);
  outline-offset: 3px;
}

/* Touch targets — every CTA gets a minimum hit area */
.cta { min-height: 44px; }

/* ─── Page wrapper ─────────────────────────────────────── */
.page {
  width: 100%;
  background: var(--lastro-navy);
}

/* Inner wrappers center content at the design max-width while
   each section background still extends edge-to-edge. */
.header__inner,
.hero__inner,
.about__inner,
.profile__inner,
.process__inner,
.footer__inner {
  max-width: var(--maxw-page);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ════════════════════════════════════════════════════════
   01 — HEADER
   ════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lastro-navy);
  border: 1px solid var(--border-header);
  padding: 20px var(--pad-section-s);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header__logo {
  width: 119px;
  height: var(--h-logo-header);
  display: block;
  flex-shrink: 0;
}
.header__spacer { flex: 1 0 0; min-width: 1px; }


/* ════════════════════════════════════════════════════════
   CTAs (shared)
   ════════════════════════════════════════════════════════ */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-button);
  font-family: var(--font-text);
  font-weight: 600;
  white-space: nowrap;
  transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta:active { transform: translateY(0); filter: brightness(0.96); }

.cta--primary {
  background: var(--accent-teal);
  color: var(--lastro-white);
  font-size: var(--fs-meta);
  padding: 12px 22px;
  width: var(--w-cta-sm);
}
.cta--primary:hover { box-shadow: 0 8px 24px rgba(0, 178, 169, 0.28); }

.cta--light {
  background: var(--lastro-white);
  color: var(--text-deep-navy);
  font-size: var(--fs-cta-lg);
  padding: 16px 28px;
  width: var(--w-cta-lg);
}
.cta--light:hover { box-shadow: 0 12px 32px rgba(255, 255, 255, 0.12); }

/* ════════════════════════════════════════════════════════
   02 — HERO
   ════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(180deg, var(--lastro-navy) 48.883%, var(--accent-teal) 151.09%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--pad-section-m) var(--pad-section-s);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-stack-md);
  align-items: center;
  width: 100%;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--gap-stack-sm);
  align-items: center;
  text-align: center;
  width: 100%;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  color: var(--lastro-white);
  max-width: 100%;
}
.hero__subtitle {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--text-on-dark-72);
  max-width: var(--w-hero-copy);
}

/* ════════════════════════════════════════════════════════
   03 — ABOUT
   ════════════════════════════════════════════════════════ */
.about {
  background: var(--lastro-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--pad-section-l);
}
.about__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.about__row {
  display: flex;
  gap: var(--gap-row);
  align-items: flex-start;
  width: 100%;
}
.about__head {
  width: var(--w-section-head);
  flex-shrink: 0;
}
.about__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  color: var(--text-deep-navy);
}
.about__right {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-section);
}
.about__copy {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: var(--lh-body); /* simulates the empty <p> spacer in Figma */
}

/* Inline brand-link for "Lais" mentions */
.lais-link {
  color: var(--accent-teal);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 180ms ease, background-size 220ms ease;
}
.lais-link:hover {
  color: var(--accent-teal-bright);
  background-size: 100% 2px;
}

/* Stats grid */
.stats {
  display: flex;
  gap: var(--gap-stats);
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stat {
  flex: 1 0 0;
  min-width: 0;
  background: var(--accent-teal-10);
  border: 1px solid var(--border-light);
  border-radius: var(--r-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat__number {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}
.stat__number-main {
  font-size: var(--fs-stat);
  letter-spacing: var(--ls-stat);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.stat__number-suffix {
  font-size: var(--fs-stat-suffix);
  color: var(--accent-teal);
}
.stat__label {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: var(--fs-meta);
  color: var(--text-secondary);
  opacity: var(--opacity-78);
}

/* ════════════════════════════════════════════════════════
   04 — PROFILE
   ════════════════════════════════════════════════════════ */
.profile {
  background: var(--lastro-navy-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--pad-section-l);
}
.profile__inner {
  display: flex;
  gap: var(--gap-row-2);
  align-items: stretch;
  width: 100%;
}
.profile__left {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-stack-lg);
}
.profile__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  color: var(--lastro-white);
  max-width: 496px;
}
.profile__copy {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-body-lg-2);
  line-height: var(--lh-body-lg-2);
  color: var(--text-on-dark-75);
  display: flex;
  flex-direction: column;
  gap: var(--lh-body-lg-2);
}

/* Requirements card — animated gradient glow border */
@property --req-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: true;
}
.req {
  position: relative;
  isolation: isolate;
  flex: 1 0 0;
  min-width: 0;
  background: var(--lastro-card-dark);
  border-radius: var(--r-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  justify-content: center;
  --req-angle: 0deg;
  animation: reqAngleSpin 4s linear infinite;
}
/* Stroke ring — conic gradient angle rotates via @property
   Full-perimeter multi-color cycle (Lastro purple ↔ teal). */
.req::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;                           /* stroke thickness */
  background: conic-gradient(
    from var(--req-angle),
    transparent             0deg,
    rgba(94, 230, 222, 1)  90deg,
    rgba(0, 178, 169, 1)  180deg,
    transparent           270deg,
    transparent           360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
@keyframes reqAngleSpin {
  to { --req-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .req { animation: none; }
}
.req__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  color: var(--lastro-white);
  text-transform: uppercase;
}
.req__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-stack-xs);
}
.req__item {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-list);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-body-sm);
  line-height: 1.55;
  color: var(--text-on-dark);
}
.req__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════
   05 — COMO FUNCIONA
   ════════════════════════════════════════════════════════ */
.process {
  background: linear-gradient(180deg, var(--lastro-navy-2) 0%, #0c0920 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap-stack-md);
  padding: 0 var(--pad-section-l) var(--pad-section-l);
}
.process__inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: flex-start;
  width: 100%;
}
.process__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2-tight);
  line-height: var(--lh-h2t);
  letter-spacing: var(--ls-h2t);
  color: var(--lastro-white);
  width: 100%;
}
.timeline {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
  padding: 28px 0;
  border-top: 1px solid var(--border-divider);
}
.step:first-child {
  border-top: 0;
  padding: 8px 0 28px;
}
.step__num {
  width: 40px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-step-num);
  line-height: 1;
  color: var(--accent-teal-bright);
}
.step__body {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step__body--lg { gap: 24px; }
.step__pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--accent-teal-14);
  border: 1px solid var(--accent-teal-25);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-pill);
  letter-spacing: var(--ls-pill);
  color: var(--accent-teal-bright);
  text-transform: uppercase;
  white-space: nowrap;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  color: var(--lastro-white);
}
.step__copy {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-step-body);
  line-height: var(--lh-step);
  color: var(--text-on-dark);
  opacity: var(--opacity-82);
}
.step__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.perk {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-step-body);
  line-height: 1.55;
  color: var(--text-on-dark);
  opacity: var(--opacity-82);
}
.perk__bullet {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  margin-top: 0.6em;
}

/* Apply link inline */
.apply-link {
  color: var(--accent-teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 1;
  transition: color 180ms ease;
}
.apply-link:hover { color: var(--accent-teal-bright); }

/* Process CTA + contact */
.process__cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-meta);
  color: var(--text-on-dark-60);
  text-align: center;
}
.contact__label { color: var(--lastro-white); }
.contact__email {
  font-weight: 700;
  color: var(--accent-teal);
  transition: color 180ms ease;
}
.contact__email:hover { color: var(--accent-teal-bright); text-decoration: underline; }

/* ════════════════════════════════════════════════════════
   07 — FOOTER
   ════════════════════════════════════════════════════════ */
.footer {
  background: var(--lastro-footer-dark);
  border-top: 1px solid var(--border-footer);
  padding: 32px var(--pad-section-l);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}
.footer__logo {
  width: 91px;
  height: var(--h-logo-footer);
  flex-shrink: 0;
}
.footer__copy {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-footer);
  color: var(--text-on-dark-50);
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1279px)
   ════════════════════════════════════════════════════════ */
@media (max-width: 1279px) {
  :root {
    --fs-h1: 56px;
    --ls-h1: -1.6px;
    --fs-h2: 40px;
    --lh-h2: 1.1;
    --ls-h2: -1px;
    --fs-h2-tight: 40px;
    --pad-section-l: 64px;
    --pad-section-m: 64px;
    --pad-section-s: 40px;
    --gap-section: 56px;
    --gap-row: 48px;
    --gap-row-2: 48px;
  }
  .hero__title { font-size: var(--fs-h1); }
  .hero__subtitle { width: auto; max-width: 640px; }
  .about__row { flex-direction: column; gap: 32px; }
  .about__head { width: 100%; }
  .profile__inner { flex-direction: column; gap: 40px; }
  .process__inner { gap: 40px; }
  .process__title { width: 100%; max-width: 100%; font-size: var(--fs-h2-tight); }
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 767px)
   ════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  :root {
    --fs-h1: 36px;
    --ls-h1: -1px;
    --fs-h2: 30px;
    --lh-h2: 1.15;
    --ls-h2: -0.6px;
    --fs-h2-tight: 30px;
    --fs-h3: 18px;
    --fs-stat: 36px;
    --fs-stat-suffix: 24px;
    --fs-step-num: 44px;
    --fs-body-lg: 16px;
    --lh-body-lg: 24px;
    --fs-body-lg-2: 16px;
    --lh-body-lg-2: 24px;
    --fs-body: 15px;
    --lh-body: 23px;
    --pad-section-l: 24px;
    --pad-section-m: 56px;
    --pad-section-s: 20px;
    --gap-section: 40px;
    --gap-stack-md: 28px;
    --gap-stack-sm: 20px;
    --gap-stack-lg: 32px;
  }
  .header { padding: 16px var(--pad-section-s); gap: 12px; }
  .header__logo { width: 92px; height: 19.4px; }
  /* Mobile-specific tweaks ─────────────────────────────────── */
  .about__title br { display: none; }     /* keep "Sobre a Lastro" on one line */
  .hero    { padding: 80px var(--pad-section-s); }
  .about   { padding: 80px var(--pad-section-s); }
  .profile { padding: 80px var(--pad-section-s); }
  .process { padding: 80px var(--pad-section-s); }
  .cta--primary {
    width: auto;
    padding: 10px 14px;
    font-size: 13px;
  }
  .cta--light {
    width: 100%;
    max-width: 320px;
  }
  .hero__subtitle { max-width: 100%; }
  .stats { flex-direction: column; }
  .stat { padding: 22px 20px; }
  .req { padding: 28px 24px; gap: 24px; }
  .req__heading { font-size: 16px; letter-spacing: 1.28px; }
  .step { gap: 18px; padding: 24px 0; }
  .step__num { width: 32px; }
  .step__pill { font-size: 10px; }
  .step__title { white-space: normal; }
  .footer { padding: 24px var(--pad-section-s); }
  .footer__inner { flex-direction: column; gap: 12px; align-items: center; text-align: center; }
  .footer__copy { white-space: normal; }
}

@media (max-width: 380px) {
  :root {
    --fs-h1: 30px;
    --fs-h2: 26px;
    --fs-h2-tight: 26px;
  }
}
