/* =========================================================
   PORTLAND Language Knowhow — Landing page
   Paleta: ciano (marca) + amarelo-ouro (CTA) + tinta/off-white
   ========================================================= */

:root {
  --ink: #12161a;
  --ink-soft: #48535c;
  --paper: #fbfaf7;
  --paper-2: #ffffff;
  --tint: #f0f7f8;

  --brand: #12c7de;
  --brand-strong: #0bb0c6;
  --brand-deep: #0c2e35;

  --gold: #f5a800;
  --gold-strong: #e39b00;

  --line: rgba(18, 22, 26, 0.14);
  --line-soft: rgba(18, 22, 26, 0.08);
  --shadow: 0 1px 2px rgba(18, 22, 26, 0.04), 0 12px 32px rgba(18, 22, 26, 0.07);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1140px;
  --pad: clamp(1.15rem, 4vw, 2rem);

  --font-head: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* rede de segurança: nunca rola na horizontal */
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-weight: 800;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-strong); }

em { font-style: italic; }

:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container.narrow { max-width: 760px; }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--btn-bg);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover {
  background: var(--gold-strong);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--ink); color: #fff; transform: none; box-shadow: none; }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.92rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.12rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(18, 22, 26, 0.06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

/* ---------- Logo ---------- */
.logo { text-decoration: none; display: inline-block; }
.logo__box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--brand);
  border: 3px solid var(--ink);
  padding: 0.4rem 0.9rem 0.5rem;
  line-height: 1;
}
.logo__name {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-size: 1.05rem;
}
.logo__sub {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
  font-size: 0.62rem;
  margin-top: 0.15rem;
}
.logo--onCover .logo__name { font-size: 1.5rem; }
.logo--onCover .logo__sub { font-size: 0.82rem; }
.logo--onDark .logo__box { border-color: #fff; }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
}
.nav ul a:hover { color: var(--brand-strong); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(18, 199, 222, 0.16), transparent 60%),
    radial-gradient(40rem 24rem at 0% 10%, rgba(245, 168, 0, 0.10), transparent 55%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 7vw, 4rem);
  margin-bottom: 0.6rem;
  overflow-wrap: break-word;
}
.hero h1 em {
  font-style: italic;
  color: var(--brand-strong);
}
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 34ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0 1.4rem;
}

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-strong);
  margin-bottom: 0.8rem;
}

/* chips */
.chip-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
}

/* Hero card / cover */
.hero__card { display: flex; justify-content: center; }
.cover {
  position: relative;
  width: min(100%, 340px);
  background: var(--gold);
  border: 4px solid var(--ink);
  border-radius: 6px;
  padding: 1.8rem 1.5rem 2rem;
  text-align: center;
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-1.5deg);
}
.cover > * { position: relative; }
.cover__kicker {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0;
}
.cover__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.05;
  margin: 0.2rem 0 0.3rem;
}
.cover__sub {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  margin: 0 0 1rem;
}
.cover__by {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.cover .logo--onCover { margin-bottom: 1rem; }
.cover__list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  display: inline-block;
}
.cover__list li {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  padding-left: 0.95rem;
  position: relative;
  margin-bottom: 0.3rem;
}
.cover__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--ink);
}

/* ---------- Seções ---------- */
.section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.section--tint {
  background: var(--tint);
  border-block: 1px solid var(--line-soft);
}
.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section__head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  overflow-wrap: break-word;
}
.section__intro {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 1.25rem;
}
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.2rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

.card__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.95rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  background: var(--brand-strong);
  border-radius: 999px;
}

.card--bonus { border-color: var(--brand); border-width: 2px; }
.card__badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--brand);
  color: var(--ink);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

/* ---------- Shift (de -> para) ---------- */
.shift {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}
.shift__col {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.shift__col--to {
  border-color: var(--brand);
  border-width: 2px;
  background: color-mix(in srgb, var(--brand) 8%, var(--paper-2));
}
.shift__label {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}
.shift__col--to .shift__label { color: var(--brand-deep); }
.shift__col ul { margin: 0; padding-left: 1.1rem; }
.shift__col li { margin-bottom: 0.5rem; color: var(--ink-soft); }
.shift__col--to li { color: var(--ink); }
.shift__arrow {
  align-self: center;
  font-size: 2rem;
  color: var(--brand-strong);
  font-weight: 700;
}

/* ---------- Stats ---------- */
.stats {
  list-style: none;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.stats li {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
}
.stats strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--brand-strong);
  line-height: 1;
}
.stats span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* ---------- Blocks ---------- */
.block { margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.block:last-child { margin-bottom: 0; }
.block__title {
  font-size: 1.35rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1rem;
}
.block__hint {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* ---------- Modules / accordion ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.module {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.module > summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2.6rem 1rem 1.1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  position: relative;
}
.module > summary::-webkit-details-marker { display: none; }
.module > summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--brand-strong);
  line-height: 1;
  transition: transform 0.2s ease;
}
.module[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.module[open] > summary { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.module > p {
  padding: 0 1.1rem 1.1rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.module__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-strong);
  margin-right: 0.5rem;
}
.module__meta {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Tags (dinâmicas) ---------- */
.tags {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tag {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.tag b { font-family: var(--font-head); font-weight: 700; }
.tag span { color: var(--ink-soft); font-size: 0.78rem; }

/* ---------- Reference list ---------- */
.reflist {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ref;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
}
.reflist li {
  counter-increment: ref;
  position: relative;
  padding: 0.7rem 0 0.7rem 3rem;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 500;
}
.reflist li::before {
  content: counter(ref, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.65rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--brand-strong);
}

/* ---------- CTA final ---------- */
.cta {
  background:
    linear-gradient(180deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: var(--ink);
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-block: 4px solid var(--ink);
}
.cta__inner { max-width: 44rem; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.cta p {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  margin-bottom: 1.8rem;
}
.cta__formats {
  margin-top: 1.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq .module > summary { font-size: 1.02rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.82);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer__tag {
  margin-top: 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
}
.footer__nav {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.footer__nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.94rem;
}
.footer__nav a:hover { color: var(--brand); }
.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  /* capa vem depois do texto no empilhamento mobile */
  .hero__card { margin-top: 0.5rem; padding-inline: 8px; }
  .cover { transform: rotate(-1.5deg); box-shadow: 8px 8px 0 var(--ink); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 78px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(18, 22, 26, 0.12);
    padding: 1rem var(--pad) 1.4rem;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.25s ease;
  }
  body.nav-open .nav { clip-path: inset(0 0 0 0); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul li { border-bottom: 1px solid var(--line-soft); }
  .nav ul a { display: block; padding: 0.85rem 0; }
  .nav .btn { margin-top: 0.9rem; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 680px) {
  .cards--2, .cards--3 { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .reflist { grid-template-columns: 1fr; }
  .shift { display: flex; flex-direction: column; }
  .shift__arrow {
    align-self: center;
    transform: rotate(90deg);
    margin: 0.1rem 0;
    font-size: 1.6rem;
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .btn { box-shadow: 3px 3px 0 var(--ink); }
}

/* ---- Celular ---- */
@media (max-width: 520px) {
  .hero { padding-block: 2rem 2.5rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .cover {
    width: min(100%, 300px);
    transform: rotate(-1.5deg);
    box-shadow: 7px 7px 0 var(--ink);
  }
  .section__head { margin-bottom: 2rem; }
  .block__title { font-size: 1.2rem; }
  .cta__inner p { font-size: 1rem; }
}

@media (max-width: 380px) {
  :root { --pad: 1rem; }
  .stats strong { font-size: 1.45rem; }
  .stats span { font-size: 0.78rem; }
  .tag { font-size: 0.8rem; }
  .btn { padding: 0.85rem 1.2rem; font-size: 0.95rem; }
  .btn--lg { padding: 0.95rem 1.4rem; font-size: 1.02rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
