/* Paper & Bytes — landing estática · paleta oficial */
:root {
  --navy: #1B365D;
  --navy-deep: #12243F;
  --teal: #0E7C7B;
  --teal-dark: #0A5E5D;
  --gold: #E9C46A;
  --orange: #F4A261;
  --bg: #FFFFFF;
  --bg-soft: #F6F9FC;
  --text: #1B365D;
  --muted: #3D4F66;
  --line: #D5E0EB;
  --shadow: 0 12px 32px rgba(27, 54, 93, 0.08);
  --shadow-hover: 0 16px 40px rgba(27, 54, 93, 0.14);
  --radius: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 70rem;
  --header-h: 5.25rem;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100%;
}

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

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo,
.footer-logo {
  /* The official logo is a 1024² PNG with generous transparent padding.
     Crop to the content box (768×563) so the mark reads clearly in the header. */
  width: 6.1rem;
  height: 4.5rem;
  object-fit: cover;
  object-position: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-email {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.header-email:hover {
  color: var(--teal);
  text-decoration: underline;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}

.lang-sep {
  color: var(--muted);
  font-weight: 600;
  user-select: none;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 2.25rem;
  min-width: 2.5rem;
}

.lang-btn:hover {
  color: var(--navy);
}

.lang-btn.is-active {
  background: var(--navy);
  color: #fff;
}

/* ----- Hero ----- */
.hero {
  background:
    radial-gradient(60rem 22rem at 92% -10%, rgba(14, 124, 123, 0.10), transparent 62%),
    radial-gradient(36rem 18rem at 0% 110%, rgba(233, 196, 106, 0.16), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 3.25rem 0 3.75rem;
}

.hero-inner {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.35rem;
  padding: 0;
}

.hero-badges li {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 0.9rem;
  color: var(--navy);
  font-size: clamp(1.85rem, 4.4vw, 3.05rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 750;
  text-wrap: balance;
}

.hero-sub {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.05rem;
  padding: 0.7rem 1.25rem;
  border-radius: 0.7rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  color: var(--navy);
}

.btn-block {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ----- Products ----- */
.products {
  padding: 3.5rem 0 1.5rem;
  background: var(--bg);
}

.products h2,
.features h2 {
  margin: 0 0 0.45rem;
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section-lead {
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--muted);
  max-width: 36rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem 1.45rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.card-featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow), 0 0 0 4px rgba(14, 124, 123, 0.08);
  position: relative;
}

.card-featured::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 0;
  height: 5px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

.card-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.card-kicker-featured {
  color: var(--navy);
}

.card-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.card-price {
  margin: 0;
  font-weight: 700;
  color: var(--teal-dark);
}

.card-body {
  margin: 0 0 0.5rem;
  color: var(--muted);
  flex: 1 1 auto;
}

/* ----- Features ----- */
.features {
  padding: 2.5rem 0 4rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.25rem;
}

.feature-icon {
  display: flex;
  gap: 0.32rem;
  margin-bottom: 0.85rem;
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.16rem;
}

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

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--navy);
  color: #F6F9FC;
  padding: 2.5rem 0 2.25rem;
}

.footer-inner {
  text-align: center;
}

.footer-logo {
  width: 7.2rem;
  height: 5.25rem;
  margin: 0 auto 1.1rem;
  /* The official logo is navy-on-transparent; invert so it reads on the navy footer. */
  filter: brightness(0) invert(1);
}

.footer-links {
  margin: 0 0 0.7rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.55rem;
}

.site-footer a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-dot {
  color: rgba(246, 249, 252, 0.55);
}

.footer-license,
.footer-copy {
  margin: 0 auto 0.4rem;
  max-width: 38rem;
  color: rgba(246, 249, 252, 0.86);
  font-size: 0.95rem;
}

.footer-copy {
  margin-top: 0.85rem;
  color: rgba(246, 249, 252, 0.78);
}

/* ----- Responsive ----- */
@media (max-width: 40rem) {
  .wrap {
    width: min(100% - 1.5rem, var(--wrap));
  }

  .header-inner {
    min-height: 4.6rem;
    gap: 0.65rem;
  }

  .brand-logo {
    width: 5.2rem;
    height: 3.8rem;
  }

  .header-email {
    font-size: 0.8rem;
  }

  .hero {
    padding: 2.25rem 0 2.6rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .products,
  .features {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 48rem) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }

  .hero {
    padding: 4.25rem 0 4.75rem;
  }
}

@media (min-width: 90rem) {
  .wrap {
    width: min(100% - 3rem, var(--wrap));
  }
}
