/* Linguana site: same forest palette and type as the app */
:root {
  --bg: #F8F6EF;
  --surface: #FFFFFF;
  --sunken: #EFEADC;
  --text: #1D2A24;
  --text-2: #5B6660;
  --border: #E4DFD2;
  --heading: #0F3D2E;
  --link: #2F6B40;
  --leaf: #6BAF7A;
  --leaf-tint: #E3EFE2;
  --sun: #FFB27A;
  --sun-tint: #FFF0E3;
  --band-1: #1F5A43;
  --band-2: #0F3D2E;
  --band-3: #0A2C21;
  --paper: #F8F6EF;
  --shadow: 0 18px 50px rgba(15, 61, 46, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1A15;
    --surface: #15241D;
    --sunken: #1C2E25;
    --text: #F3EFE4;
    --text-2: #B4BDB5;
    --border: #26392F;
    --heading: #F3EFE4;
    --link: #93C79E;
    --leaf-tint: rgba(107, 175, 122, 0.14);
    --sun-tint: rgba(255, 178, 122, 0.12);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Forest band ---------- */
.band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--band-1) 0%, var(--band-2) 55%, var(--band-3) 100%);
  color: var(--paper);
  padding: 22px 20px 110px;
}
.band::before, .band::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.band::before { width: 420px; height: 420px; right: -140px; top: -180px; background: rgba(107, 175, 122, 0.20); }
.band::after { width: 300px; height: 300px; left: -120px; bottom: -190px; background: rgba(255, 178, 122, 0.14); }

.band-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }

.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); }
.brand span { font-family: 'Noto Serif', Georgia, serif; font-size: 22px; letter-spacing: -0.3px; }
.top-links { display: flex; gap: 18px; font-size: 14px; font-weight: 500; }
.top-links a { color: rgba(248, 246, 239, 0.8); text-decoration: none; }
.top-links a:hover, .top-links a[aria-current] { color: var(--paper); }

.eyebrow {
  margin-top: 56px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--leaf);
}
.band h1 {
  margin-top: 10px;
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--paper);
}
.band h1 em { font-style: italic; }
.band .lede { margin-top: 14px; max-width: 620px; font-size: 17px; color: rgba(248, 246, 239, 0.76); }

/* ---------- Content card ---------- */
main.container {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: -72px auto 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 44px 52px 36px;
}

h2 {
  font-family: 'Noto Serif', Georgia, serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--heading);
  margin: 40px 0 14px;
  scroll-margin-top: 20px;
}
.section:first-of-type h2, section:first-of-type h2 { margin-top: 8px; }

h3 {
  font-size: 16.5px;
  font-weight: 650;
  color: var(--text);
  margin: 26px 0 8px;
  scroll-margin-top: 20px;
}

p { margin-bottom: 14px; }

ul, ol { margin: 0 0 16px; padding-left: 0; list-style: none; }
li { position: relative; padding-left: 22px; margin-bottom: 8px; }
li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--leaf);
  border-radius: 9px 1px 9px 1px; /* the app's leaf shape */
}

strong { font-weight: 650; color: var(--text); }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

/* ---------- Privacy policy pieces ---------- */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--text-2);
  padding: 14px 18px;
  background: var(--sunken);
  border-radius: 16px;
  margin-bottom: 22px;
}
.meta br { display: none; }

.toc {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px 12px;
  margin-bottom: 8px;
}
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; }
.toc ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.toc li { padding: 0; margin: 0; }
.toc li::before { display: none; }
.toc a {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  background: var(--leaf-tint);
  padding: 5px 12px;
  border-radius: 999px;
}
.toc a:hover { background: var(--leaf); color: #fff; }

.highlight {
  background: var(--sun-tint);
  border-left: 4px solid var(--sun);
  border-radius: 4px 16px 16px 4px;
  padding: 14px 18px;
  margin: 14px 0 18px;
}
.highlight p { margin: 0; }

.contact-box {
  background: linear-gradient(150deg, var(--band-1), var(--band-2));
  color: var(--paper);
  border-radius: 22px;
  padding: 24px 26px 10px;
  margin: 36px 0 8px;
}
.contact-box h2 { color: var(--paper); margin-top: 0; }
.contact-box strong { color: var(--paper); }
.contact-box a { color: var(--paper); }

.footer {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
}
.footer p { margin-bottom: 6px; }
.footer a { margin: 0 8px; }

/* ---------- Home page pieces ---------- */
.hero { text-align: center; padding-bottom: 8px; }
.hero img { width: 112px; height: 112px; border-radius: 28px; box-shadow: 0 12px 30px rgba(15, 61, 46, 0.25); margin-bottom: 18px; }
.hero h1 { font-family: 'Noto Serif', Georgia, serif; font-weight: 400; font-size: 44px; letter-spacing: -1px; color: var(--heading); line-height: 1.1; margin-bottom: 10px; }
.tagline { font-size: 18px; color: var(--text-2); max-width: 620px; margin: 0 auto; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feature { background: var(--sunken); border-radius: 18px; padding: 18px 20px; }
.feature h3 { margin-top: 0; }
.feature p { margin-bottom: 0; color: var(--text-2); }

.languages { display: flex; flex-wrap: wrap; gap: 8px; }
.languages li { padding: 5px 13px; margin: 0; background: var(--leaf-tint); border-radius: 999px; font-size: 14.5px; font-weight: 500; }
.languages li::before { display: none; }

.page-foot { max-width: 880px; margin: 0 auto; padding: 26px 20px 40px; text-align: center; font-size: 13px; color: var(--text-2); }

@media (max-width: 720px) {
  .band { padding-bottom: 96px; }
  .top-links { gap: 14px; }
  main.container { margin: -64px 12px 40px; padding: 28px 22px 26px; border-radius: 24px; }
  h2 { font-size: 23px; }
  .hero h1 { font-size: 36px; }
}

@media print {
  .band, .toc, .top-links { display: none; }
  main.container { margin: 0; box-shadow: none; border: none; }
}

/* Numbered steps (account deletion) */
ol.steps { counter-reset: step; }
ol.steps li { padding-left: 36px; margin-bottom: 12px; }
ol.steps li::before {
  content: counter(step);
  counter-increment: step;
  top: 0.1em;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--leaf-tint);
  color: var(--heading);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
