/* TalkMaxxing website: same colours and font as the app. */
:root {
  --sunny: #ffc93c;
  --sunny-dark: #e0a800;
  --sunny-light: #fff4d1;
  --navy: #1b2340;
  --navy-muted: #5b6380;
  --ink: #1b2340;
  --teal: #1f8a85;
  --coral: #e5484d;
  --background: #fffbf0;
  --surface: #ffffff;
  --border: #ece4cc;
  --edge: #d9cfb2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sunny-light: #3b3524;
    --navy: #eef1fa;
    --navy-muted: #9aa4c7;
    --teal: #2bb3ac;
    --coral: #ff6b6f;
    --background: #0b1226;
    --surface: #151e3d;
    --border: #24305a;
    --edge: #070c1a;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--background);
}

a { color: var(--teal); font-weight: 800; }

h1, h2, h3 { font-weight: 900; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
h2 { font-size: 1.5rem; margin-top: 2em; }
h3 { font-size: 1.15rem; margin-top: 1.5em; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 2px solid var(--border); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.3rem;
}
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--navy-muted); text-decoration: none; font-size: 1rem; }
.site-nav a:hover { color: var(--navy); }

/* Home page hero */
.hero {
  background: var(--sunny);
  color: var(--ink);
  padding: 56px 0 64px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 32px;
}
.hero p { font-size: 1.25rem; max-width: 34ch; }
.hero img { width: 100%; max-width: 260px; justify-self: center; animation: float 2.8s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-10px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero img { animation: none; } }

.pill {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  border-radius: 16px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 5px 0 #070c1a;
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 48px 0;
}
.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 5px 0 var(--edge);
  padding: 20px;
}
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--navy-muted); }
.card .emoji { font-size: 2rem; display: block; margin-bottom: 8px; }

/* Long text pages (privacy, terms…) */
.doc { max-width: 720px; padding-top: 40px; padding-bottom: 64px; }
.doc .updated { color: var(--navy-muted); margin-top: 0; }
.doc li { margin-bottom: 0.4em; }
.callout {
  background: var(--sunny-light);
  border: 2px solid var(--sunny);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 24px 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid var(--border); }
th { font-weight: 900; }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer { border-top: 2px solid var(--border); padding: 28px 0 40px; color: var(--navy-muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--navy-muted); }

@media (max-width: 720px) {
  .hero { padding: 36px 0 44px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero img { max-width: 170px; grid-row: 1; }
  .features { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}
