/* FamilySpeak website: home, privacy, terms, support. Fonts are hosted here, not by Google. */
@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(fonts/Fredoka_600SemiBold.ttf) format('truetype'); }
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url(fonts/Fredoka_700Bold.ttf) format('truetype'); }
@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url(fonts/Nunito_600SemiBold.ttf) format('truetype'); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(fonts/Nunito_800ExtraBold.ttf) format('truetype'); }

:root {
  color-scheme: light;
  --bg: #FFF7E6;
  --surface: #FFFFFF;
  --border: #F0E2C4;
  --text: #2B2D42;
  --soft: #5E6273;
  --coral: #FF6B4A;
  --coral-dark: #C9472A;
  --teal: #2EC4B6;
  --teal-dark: #13877C;
  --purple: #7B61FF;
  --sun-soft: #FFF2C2;
  --leaf-soft: #E3F9E9;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 600 18px/1.55 Nunito, -apple-system, system-ui, 'Segoe UI', sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--coral-dark); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Header and footer */
.top { padding: 14px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--coral); font: 700 26px Fredoka, sans-serif; }
.logo img { width: 40px; height: 40px; border-radius: 10px; }
.logo b { font-weight: inherit; }
.logo span { color: var(--teal); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 16px; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--coral-dark); text-decoration: underline; }

.foot { margin-top: 56px; padding: 28px 0 40px; border-top: 2px solid var(--border); font-size: 15px; color: var(--soft); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* Type */
h1, h2, h3 { font-family: Fredoka, sans-serif; line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 7vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 4.5vw, 32px); font-weight: 700; margin-top: 8px; }
h3 { font-size: 21px; font-weight: 600; }
p { margin: 0 0 14px; }
.soft { color: var(--soft); }
.lead { font-size: clamp(19px, 3vw, 22px); color: var(--soft); max-width: 640px; }

/* Home */
.hero { padding: 28px 0 12px; }
.hero h1 em { font-style: normal; color: var(--coral); }
.bubbles { font-size: 42px; letter-spacing: 6px; margin-bottom: 8px; }
.cta { display: inline-block; margin-top: 10px; padding: 14px 24px; border-radius: 999px; background: var(--coral); border-bottom: 4px solid var(--coral-dark); color: #fff; text-decoration: none; font: 700 19px Fredoka, sans-serif; }
.cta:hover { color: #fff; filter: brightness(1.05); }

section { padding: 28px 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card .tag { display: inline-block; font-size: 14px; padding: 2px 12px; border-radius: 999px; background: var(--sun-soft); margin-bottom: 8px; }
.card.habla { border-color: #FFD3C7; }
.card.pale { border-color: #BDEDE8; }
.card h3 .lang { display: block; font: 600 16px Nunito, sans-serif; color: var(--soft); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { position: relative; padding: 16px 16px 16px 64px; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font: 700 18px Fredoka, sans-serif; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li::before { content: '✓'; color: var(--teal-dark); font-weight: 800; margin-right: 10px; }
.join { background: var(--leaf-soft); border: 2px solid #BFEACB; border-radius: var(--radius); padding: 22px; }
.join .other { margin-top: 14px; font-size: 16px; }

/* Policy pages */
.doc { padding: 12px 0 0; }
.draft { background: var(--sun-soft); border: 2px dashed #E9B949; border-radius: 14px; padding: 12px 16px; font-size: 16px; margin: 0 0 20px; }
.doc h2 { font-size: 25px; margin-top: 30px; }
.doc h3 { margin-top: 20px; }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc .updated { color: var(--soft); font-size: 16px; }
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: #FFF0D6; font-weight: 800; }
details { background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 800; }
details[open] summary { margin-bottom: 8px; }
