/* Lexy site: the app icon's dusk sky and the app's coral accent */
:root {
  --bg: #F7F4F0;
  --surface: #FFFFFF;
  --sunken: #F1ECE6;
  --text: #263238;
  --text-2: #5F6B72;
  --border: #E6DFD7;
  --heading: #263238;
  --link: #D84F28;
  --accent: #FF7043;
  --accent-tint: #FFE9DF;
  --sky-1: #2C6F8A;
  --sky-2: #6E98A6;
  --sky-3: #E3A468;
  --paper: #FFFDF9;
  --shadow: 0 18px 50px rgba(38, 50, 56, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121619;
    --surface: #1B2125;
    --sunken: #232B30;
    --text: #EEF1F2;
    --text-2: #A9B4BA;
    --border: #2C363C;
    --heading: #EEF1F2;
    --link: #FF9A76;
    --accent-tint: rgba(255, 112, 67, 0.14);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  }
}

* { 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;
}

/* ---------- Sky band ---------- */
.band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(175deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
  color: var(--paper);
  padding: 22px 20px 110px;
}
.band::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  right: -120px; bottom: -220px;
  border-radius: 50%;
  background: rgba(255, 196, 140, 0.35);
  pointer-events: none;
}

.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: 'Pacifico', cursive; font-size: 24px; }
.top-links { display: flex; gap: 18px; font-size: 14px; font-weight: 500; }
.top-links a { color: rgba(255, 253, 249, 0.82); 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: rgba(255, 253, 249, 0.85);
}
.band h1 {
  margin-top: 10px;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--paper);
}

/* ---------- 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-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  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; 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: 3px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

strong { font-weight: 650; }

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

/* ---------- 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;
}

.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(--accent-tint);
  padding: 5px 12px;
  border-radius: 999px;
}
.toc a:hover { background: var(--accent); color: #fff; }

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

.contact-box {
  background: linear-gradient(160deg, var(--sky-1), var(--sky-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 a, .contact-box strong { 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(44, 111, 138, 0.3); margin-bottom: 18px; }
.hero h1 { font-family: 'Pacifico', cursive; font-weight: 400; font-size: 46px; color: var(--heading); line-height: 1.2; 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(300px, 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); }

table.plans { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; }
.plans th, .plans td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.plans th { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-2); }

/* 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(--accent-tint);
  color: var(--link);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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