/*
 * Shared styles for the Volto Já! landing page (pt-BR and en-US).
 *
 * Every color below is copied verbatim from the app's own theme data
 * (app/src/features/themes/data/cloud.ts and sun.ts), not an
 * independently designed palette — see design.md, "Reuse the theme's
 * real palette/shape data directly".
 */

@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 {
  /* Cloud theme (app/src/features/themes/data/cloud.ts) — the page's
     primary visual identity. */
  --cloud-bg: #54b0e4;
  --cloud-overlay: #f9f400;
  --cloud-accent: #b3007c;
  --cloud-shape-fill: #f9f9f9;

  /* Sun theme (app/src/features/themes/data/sun.ts) — used only within
     the dedicated Sun section below. */
  --sun-bg: #00aabd;
  --sun-overlay: #e97117;
  --sun-accent: #ee9c00;
  --sun-on-overlay: #ffffff;

  /* Neutral tokens, matching app/src/shared/design-system/tokens/color.ts */
  --surface: #f9f9f9;
  --text: #1a1a1a;

  --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);
}

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;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.logo svg {
  width: 32px;
  height: 32px;
}

.lang-switch a {
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
}

/* Hero */

.hero {
  background: var(--cloud-bg);
  color: #ffffff;
  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 320px;
}

.hero-copy h1 {
  color: #ffffff;
}

.hero-tagline {
  font-size: 1.25rem;
  opacity: 0.95;
}

.hero-shape {
  flex: 1 1 260px;
  display: flex;
  justify-content: center;
}

.hero-shape svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.status-note {
  display: inline-block;
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.95rem;
}

/* Sections */

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

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

/* How it works */

.how-it-works ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.how-it-works li {
  background: #ffffff;
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.how-it-works li strong {
  display: block;
  color: var(--cloud-accent);
  margin-bottom: var(--space-sm);
}

/* Themes */

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

.theme-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.theme-card {
  border-radius: var(--radius);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.theme-card svg {
  width: 120px;
  height: 120px;
}

.theme-card--cloud {
  background: var(--cloud-bg);
  color: #ffffff;
}

.theme-card--cloud .theme-card-badge {
  background: var(--cloud-overlay);
  color: var(--cloud-accent);
}

.theme-card--sun {
  background: var(--sun-bg);
  color: var(--sun-on-overlay);
}

.theme-card--sun .theme-card-badge {
  background: var(--sun-overlay);
  color: var(--sun-on-overlay);
}

.theme-card-badge {
  display: inline-block;
  padding: 2px var(--space-md);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Trust / privacy */

.trust {
  background: var(--cloud-overlay);
  color: var(--cloud-accent);
}

.trust .section-intro {
  color: var(--cloud-accent);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.trust-item {
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.trust-item strong {
  display: block;
  margin-bottom: var(--space-sm);
}

.trust-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

.trust-cta a {
  display: inline-block;
  background: var(--cloud-accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: var(--space-md) var(--space-xl);
  border-radius: 999px;
}

/* Footer */

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

.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;
  }
}
