/*
 * Styles for the audionainternet labs landing page.
 *
 * Brand colors are sampled directly from the audionainternet.com.br brand
 * imagery (docs/research/Audionainternet.com/Imagens/sitecapa.png and
 * sitecapa_livro.png), not an independently designed palette — see
 * openspec/changes/add-labs-landing-page/design.md, Decision 2.
 */

@font-face {
  font-family: "Ubuntu";
  src: url("fonts/Ubuntu_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("fonts/Ubuntu_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* audionainternet brand palette (sampled from source imagery). */
  --brand-navy: #26235e;
  --brand-orange: #f15a29;
  --brand-green: #8cc63e;
  --brand-teal: #00a89d;

  --surface: #f9f9f9;
  --text: #1a1a1a;
  --text-on-navy: #ffffff;

  --max-width: 960px;
  --radius: 24px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Ubuntu", system-ui, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
  font-size: 18px;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

p {
  margin: 0 0 var(--space-md);
}

a {
  color: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  padding: var(--space-md) 0;
  background: var(--brand-navy);
  color: var(--text-on-navy);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-md);
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text-on-navy);
}

.logo-mark {
  display: flex;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-orange);
  align-items: center;
  justify-content: center;
  flex: none;
}

.logo-mark svg {
  width: 20px;
  height: 20px;
}

.logo-text strong {
  color: var(--brand-orange);
}

.site-nav a {
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.95rem;
}

/* Hero */

.hero {
  background: var(--brand-navy);
  color: var(--text-on-navy);
  padding: var(--space-xxl) 0;
  overflow: hidden;
}

.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl);
}

.hero-copy {
  flex: 1 1 340px;
}

.hero-copy h1 {
  color: var(--text-on-navy);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-green);
  margin: 0 0 var(--space-sm);
}

.hero-tagline {
  font-size: 1.15rem;
  opacity: 0.92;
  max-width: 46ch;
}

.hero-icons {
  flex: 1 1 260px;
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.hero-icon {
  width: 88px;
  height: 140px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon svg {
  width: 40px;
  height: 40px;
}

.hero-icon--orange {
  background: var(--brand-orange);
}

.hero-icon--green {
  background: var(--brand-green);
}

.hero-icon--teal {
  background: var(--brand-teal);
}

/* Sections */

section {
  padding: var(--space-xxl) 0;
}

.section-intro {
  max-width: 680px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.origin {
  background: #ffffff;
}

.origin .section-intro {
  text-align: left;
  max-width: 720px;
}

.origin h2 {
  text-align: center;
}

/* Products */

.products {
  background: var(--surface);
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  max-width: 480px;
  margin: 0 auto;
}

.product-card {
  background: #ffffff;
  border: 2px solid var(--brand-teal);
  border-radius: var(--radius);
  padding: var(--space-xl);
  text-align: center;
}

.product-card h3 {
  color: var(--brand-navy);
}

.product-card-badge {
  display: inline-block;
  padding: 2px var(--space-md);
  margin-bottom: var(--space-md);
  border-radius: 999px;
  background: var(--brand-green);
  color: var(--brand-navy);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Footer */

.site-footer {
  padding: var(--space-xl) 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text);
  background: #ffffff;
}

.site-footer a {
  text-decoration: underline;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-sm);
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: var(--space-xl) 0;
  }

  .hero-icon {
    width: 72px;
    height: 110px;
  }

  .hero-icon svg {
    width: 32px;
    height: 32px;
  }
}
