/* Self-hosted (no Google Fonts CDN calls — avoids sending visitor IPs to Google) */
@font-face {
  font-family: 'Caprasimo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/caprasimo-latin-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/figtree-latin-variable.woff2') format('woff2');
}

:root {
  color-scheme: light;

  /* Design tokens mirrored from client/tailwind.config.js + client/src/index.css
     so the marketing page reads as the same product, not a lookalike. */
  --font-heading: 'Caprasimo', system-ui, sans-serif;
  --font-body: 'Figtree', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;

  --bg: #f5ead8;
  --surface: #ebddc5;
  --ink: #201e1d;

  --accent-100: #fff2eb;
  --accent-200: #ffe1d0;
  --accent-300: #ffc6a5;
  --accent-400: #f6a06b;
  --accent-500: #d67f48;
  --accent-600: #b2622d;
  --accent-700: #8c491a;
  --accent-800: #643312;
  --accent-900: #402310;

  --sage-100: #f0fae1;
  --sage-200: #e1eecc;
  --sage-300: #ccdbb2;
  --sage-400: #aebf92;
  --sage-500: #8fa073;
  --sage-600: #728157;
  --sage-700: #56633f;
  --sage-800: #3d472b;

  --sand-100: #f9f4ed;
  --sand-200: #eee7db;
  --sand-300: #dcd3c4;
  --sand-400: #c0b6a5;
  --sand-700: #645c50;
  --sand-800: #474238;

  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at top, rgba(140, 73, 26, 0.08), transparent 36%),
    linear-gradient(180deg, #fdf6f1 0%, var(--bg) 100%);
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
}

.page-shell {
  width: min(100%, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

@media (min-width: 640px) {
  .page-shell {
    width: min(1120px, calc(100% - 2rem));
    padding: 2rem 0 4rem;
  }
}

.site-header,
.section-panel,
.cta-panel,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header {
  flex-wrap: wrap;
  row-gap: 1rem;
  margin-bottom: 2.25rem;
  padding: 1.4rem;
  justify-content: flex-start;
}

@media (min-width: 640px) {
  .site-header {
    padding: 0;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* Mobile: claims a full line, forcing the lang switch onto its own line
     beneath it instead of the two fighting for space in one row. */
  flex: 1 1 100%;
}

@media (min-width: 900px) {
  .brand {
    flex: 0 1 auto;
  }
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(140, 73, 26, 0.16);
}

.lang-switch button,
.lang-switch a {
  border: none;
  background: transparent;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sand-700);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.lang-switch button:hover,
.lang-switch a:hover {
  color: var(--accent-700);
}

.lang-switch button.is-active,
.lang-switch a.is-active {
  background: var(--accent-700);
  color: white;
}

.eyebrow {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-700);
}

.brand-name,
.hero-section h1,
.section-heading h2,
.cta-panel h2 {
  margin: 0;
}

.brand-name {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  font-family: var(--font-heading);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  font-weight: 700;
  font-family: var(--font-body);
  border-radius: 9999px;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent-700);
  color: white;
  box-shadow: 0 18px 40px rgba(140, 73, 26, 0.15);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(140, 73, 26, 0.16);
  color: var(--ink);
}

.button-large {
  min-width: 220px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

@media (min-width: 900px) {
  .hero-section {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
    margin-bottom: 3.5rem;
  }
}

.hero-section h1 {
  font-size: clamp(2rem, 8vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

@media (min-width: 900px) {
  .hero-section h1 {
    font-size: clamp(2.6rem, 3.2vw, 4.2rem);
    line-height: 1.05;
  }
}

.hero-copy {
  max-width: 45rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4f453c;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sand-700);
}

.hero-note-icon {
  flex-shrink: 0;
  color: var(--accent-700);
  font-weight: 700;
}

/* ---- Phone-frame shell used by every app mockup ---- */

.phone-frame {
  border-radius: 32px;
  background: white;
  box-shadow: 0 40px 80px rgba(47, 35, 24, 0.12);
  padding: 1.4rem;
}

@media (min-width: 640px) {
  .phone-frame {
    padding: 1.25rem;
  }
}

.phone-frame--compact {
  align-self: center;
}

/* ---- Today-list mockup (hero) ---- */

.mock-today-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-700);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

.mock-today-body {
  display: grid;
  gap: 0.7rem;
}

.mock-task {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border-left: 4px solid var(--accent-300);
  background: var(--surface);
}

.mock-task--xs {
  border-left-color: var(--accent-200);
}
.mock-task--s {
  border-left-color: var(--accent-300);
}
.mock-task--m {
  border-left-color: var(--accent-400);
}
.mock-task--l {
  border-left-color: var(--accent-500);
}
.mock-task--xl {
  border-left-color: var(--accent-600);
}
.mock-task--xxl {
  border-left-color: var(--accent-700);
}

.mock-task--done {
  opacity: 0.75;
}

.mock-task--done .mock-task-title {
  text-decoration: line-through;
}

.mock-task-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.mock-task-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.25;
}

.chestnut-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  border-radius: 9999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent-100);
  color: var(--accent-800);
}

.chestnut-pill i {
  font-style: normal;
  opacity: 0.6;
}

.chestnut-pill--sage {
  background: var(--sage-100);
  color: var(--sage-800);
}

.mock-status {
  font-size: 0.78rem;
  font-weight: 600;
}

.mock-status--claimed {
  color: var(--accent-700);
}

.mock-status--open {
  color: var(--sand-700);
}

.mock-status--done {
  color: var(--sage-700);
}

.mock-today-footer {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sand-200);
  color: #676054;
  font-weight: 600;
  padding-left: 0.25rem;
}

/* ---- Hero screens carousel ---- */

/* Standalone class (not the shared .phone-frame — every property here
   overrides it anyway) for just the hero's dark device bezel. The carousel
   controls (arrows/dots) are a sibling outside this element, not a child of
   it, so they render below the phone shape instead of inside it. */
.phone-device {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin-inline: auto;
  padding: 0.625rem; /* 10px thin bezel, uniform on all sides */
  background: var(--ink);
  border-radius: 40px;
  box-shadow: 0 24px 48px rgba(32, 20, 10, 0.22);
}

/* Minimal punch-hole camera dot — the only added "device" detail; a notch
   or side buttons need more bezel thickness than 10px to read as intentional. */
.phone-device::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 1;
}

.phone-carousel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.phone-carousel-viewport {
  overflow: hidden;
  border-radius: 30px; /* 40px outer − 10px bezel = concentric ring */
  touch-action: pan-y;
  cursor: grab;
}

.phone-carousel-viewport.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.phone-carousel-track {
  display: flex;
  transition: transform 500ms ease;
}

.phone-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.phone-carousel-slide img {
  width: 100%; /* fills the viewport edge-to-edge — no dead-space gutter */
  height: auto;
  display: block;
  /* no border-radius here: the viewport's overflow:hidden + radius above is
     the single source of corner-clipping truth, avoiding radius mismatch */
}

.mock-progress {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.5rem;
}

.mock-progress .mock-jar-bar {
  margin-top: 0.2rem;
}

.mock-progress .status-badge {
  align-self: flex-start;
}

.phone-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; /* 44px tap target, unchanged */
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--accent-700);
  opacity: 0.6;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  opacity: 1;
  background: rgba(140, 73, 26, 0.08);
}

.carousel-arrow:active {
  transform: scale(0.94);
}

.carousel-dots {
  display: flex;
  gap: 0.4rem;
}

.carousel-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem; /* 24px tap target — WCAG 2.2 AA 2.5.8 floor; arrows +
                    swipe are the equivalent-function alternative that
                    justifies not holding these to the usual 44px rule */
  height: 1.5rem;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.carousel-dot::after {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--sand-300);
  transition: background-color 150ms ease, width 150ms ease;
}

.carousel-dot:hover::after {
  background: var(--accent-400);
}

.carousel-dot.is-active::after {
  width: 1.1rem;
  background: var(--accent-700);
}

@media (prefers-reduced-motion: reduce) {
  .phone-carousel-track {
    transition: none;
  }
}

/* ---- Quick Add mockup (hero) ---- */

.mock-quickadd {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.5rem;
}

.mock-quickadd-subtitle {
  margin: -0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--sand-700);
}

.mock-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mock-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 9999px;
  border: 1px solid var(--sand-300);
  background: white;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---- Create To-Do mockup (hero) ---- */

.mock-create {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.5rem;
}

.mock-create-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

.mock-create-back {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent-700);
}

.mock-create-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.mock-create-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sand-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: -0.4rem;
}

.mock-create-input {
  border: 1px solid var(--sand-300);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  color: var(--ink);
  background: white;
}

.mock-create-size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mock-create-size-grid .size-chip {
  justify-content: center;
}

.size-chip--selected {
  box-shadow: 0 0 0 2px var(--accent-700);
}

.mock-create-assignees {
  display: grid;
  gap: 0.5rem;
}

.mock-create-assignee {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--sand-300);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.mock-create-assignee .lb-avatar {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 0.72rem;
}

.mock-create-assignee--selected {
  border-color: var(--accent-700);
  background: var(--accent-100);
}

/* ---- Leaderboard-with-bars variant (hero season ranking, distinct from the
   all-time Golden Book mockup further down the page: numbered rank + crown
   instead of medals, and an inline jar bar per row). ---- */

.mock-leaderboard-list--bars li {
  grid-template-columns: 1.4rem 2.1rem 1fr;
  grid-template-rows: auto;
}

.mock-leaderboard-list--bars .lb-rank,
.mock-leaderboard-list--bars .lb-avatar {
  grid-row: 1;
}

.mock-leaderboard-list--bars .lb-main {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lb-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 0.5rem;
}

.mock-jar-bar--sm {
  height: 0.5rem;
}

.mock-leaderboard-list--bars .mock-jar-caption {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
}

/* ---- Weekly trend mockup (hero) ---- */

.mock-trend {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.5rem;
}

.mock-trend-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  align-self: flex-start;
  padding: 0.25rem;
  border-radius: 10px;
  background: var(--sand-100);
}

.mock-trend-tab {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sand-700);
}

.mock-trend-tab.is-active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.mock-trend-label {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.mock-trend-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
  height: 9rem;
  padding: 1.6rem 0.4rem 0;
  border-bottom: 1px solid var(--sand-200);
}

.mock-trend-bar-col {
  display: flex;
  flex: 1;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.mock-trend-avatar {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
}

.mock-trend-bar {
  width: 100%;
  max-width: 1.7rem;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.35rem;
}

.mock-trend-value {
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}

/* ---- Profile mockup (hero) ---- */

.mock-profile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem;
}

.mock-profile-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mock-profile-avatar {
  width: 3rem;
  height: 3rem;
  font-size: 1.1rem;
}

.mock-profile-name {
  margin: 0 0 0.3rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.mock-profile-total {
  margin: 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.1;
}

.mock-profile-total-label {
  margin: -0.3rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--sand-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mock-profile-section {
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: var(--surface);
}

.mock-profile-section-label {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sand-700);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mock-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---- Shared two-column "copy + mockup" section layout ---- */

.section-split {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 900px) {
  .section-split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }

  .section-split--reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .section-split--reverse .phone-frame {
    order: -1;
  }
}

.section-split p {
  color: #4f453c;
  line-height: 1.8;
}

.fine-print {
  font-size: 0.9rem;
  color: var(--sand-700);
}

/* ---- T-shirt size chip row ---- */

.size-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 1rem;
}

.size-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-900);
}

.size-chip i {
  font-style: normal;
  opacity: 0.55;
}

.size-chip--xs {
  background: var(--accent-100);
}
.size-chip--s {
  background: var(--accent-200);
}
.size-chip--m {
  background: var(--accent-300);
}
.size-chip--l {
  background: var(--accent-400);
  color: white;
}
.size-chip--xl {
  background: var(--accent-600);
  color: white;
}
.size-chip--xxl {
  background: var(--accent-700);
  color: white;
}

/* ---- Jar-progress mockup ---- */

.mock-jar-card {
  padding: 0.5rem;
}

.mock-jar-label {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mock-jar-bar {
  width: 100%;
  height: 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(160, 145, 120, 0.4);
  background: var(--sand-200);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.mock-jar-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent-500), var(--accent-700));
}

.mock-jar-pips {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.pip {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
}

.pip--filled {
  background: var(--accent-500);
}

.pip--partial {
  border: 2px solid var(--accent-400);
}

.pip--empty {
  border: 1px solid var(--sand-400);
}

.mock-jar-caption {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: #676054;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-badge--sm {
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
}

.status-badge--rookie {
  background: var(--sand-100);
  color: var(--sand-700);
  border: 1px solid var(--sand-200);
}

.status-badge--grinder {
  background: var(--sand-200);
  color: var(--sand-800);
}

.status-badge--rising-star {
  background: var(--accent-100);
  color: var(--accent-800);
}

.status-badge--all-star {
  background: var(--accent-200);
  color: var(--accent-900);
}

.status-badge--elite {
  background: var(--accent-700);
  color: var(--accent-100);
}

.status-badge--legend {
  background: var(--accent-400);
  color: var(--accent-900);
  box-shadow: 0 0 0 2px var(--accent-600);
}

.status-badge--goat {
  color: var(--accent-900);
  padding: 0.5rem 1.05rem;
  font-size: 0.92rem;
  box-shadow: 0 0 0 2px var(--accent-300), 0 8px 18px rgba(214, 127, 72, 0.45);
  background: linear-gradient(120deg, var(--accent-400), var(--accent-200), var(--accent-500));
  background-size: 200% 200%;
  animation: goat-shimmer 2.5s ease-in-out infinite;
}

@keyframes goat-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-badge--goat {
    animation: none;
  }
}

/* ---- Golden Book leaderboard mockup ---- */

.mock-leaderboard {
  padding: 0.5rem;
}

.mock-leaderboard-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.mock-leaderboard-subtitle {
  margin: 0.2rem 0 1.2rem;
  font-size: 0.85rem;
  color: var(--sand-700);
}

.mock-leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.mock-leaderboard-list li {
  display: grid;
  grid-template-columns: 1.2rem 1.8rem 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.2rem 0.7rem;
  padding: 0.6rem 0.7rem;
  border-radius: 14px;
  background: var(--surface);
}

.lb-rank {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-weight: 700;
  color: var(--accent-700);
  font-size: 0.9rem;
}

.lb-avatar {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}

.lb-name {
  grid-column: 3;
  grid-row: 1;
  font-weight: 600;
  font-size: 0.9rem;
}

.mock-leaderboard-list li .status-badge {
  grid-column: 3;
  grid-row: 2;
  justify-self: start;
}

.lb-total {
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-800);
  white-space: nowrap;
}

.section-panel {
  flex-direction: column;
  align-items: stretch;
  padding: 1.4rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 40px rgba(47, 35, 24, 0.08);
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .section-panel {
    padding: 2.5rem 2rem;
  }
}

/* ---- Legal pages (Impressum / Datenschutzerklärung) ---- */

.legal-panel {
  max-width: 46rem;
  margin: 0 auto;
  color: #4f453c;
  line-height: 1.75;
}

.legal-panel h1 {
  font-size: clamp(1.9rem, 2.3vw, 2.5rem);
  margin: 0 0 1.5rem;
}

.legal-panel h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.legal-panel h3 {
  font-size: 1rem;
  margin: 1.4rem 0 0.5rem;
  color: var(--accent-700);
}

.legal-panel p,
.legal-panel ul {
  margin: 0 0 1rem;
}

.legal-panel ul {
  padding-left: 1.4rem;
}

.legal-panel li {
  margin-bottom: 0.4rem;
}

.legal-panel a {
  color: var(--accent-700);
}

.legal-panel code {
  background: var(--sand-100);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.92em;
}

.legal-notice-box {
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: var(--accent-100);
  border: 1px solid var(--accent-300);
  color: var(--accent-900);
  font-size: 0.95rem;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.cta-panel h2 {
  font-size: clamp(1.9rem, 2.3vw, 2.5rem);
  line-height: 1.15;
  margin: 0.8rem 0 0;
}

.section-split h2 {
  font-size: clamp(1.9rem, 2.3vw, 2.5rem);
  line-height: 1.15;
  margin: 0.8rem 0 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
  }
}

.feature-card {
  padding: 1.5rem;
  border-radius: 24px;
  background: #fff7ea;
}

.feature-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: #53473b;
  line-height: 1.7;
}

.section-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 900px) {
  .section-visual {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.section-visual p,
.section-visual ul {
  max-width: 40rem;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.benefits-list li {
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.7;
}

.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-700);
}

/* ---- FAQ accordion ---- */

.faq-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.faq-list details {
  background: var(--surface);
  border-radius: 16px;
  padding: 1rem 1.25rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary h3 {
  margin: 0;
  font-size: 1.05rem;
}

.faq-list summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--accent-700);
}

.faq-list details[open] summary::after {
  content: '\2212';
}

.faq-list details p {
  margin: 0.85rem 0 0;
  color: #4f453c;
  line-height: 1.7;
}

.cta-panel {
  text-align: center;
}

.cta-panel p {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: #5f5347;
  line-height: 1.8;
}

.site-footer {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  color: #5f5347;
  font-size: 0.95rem;
}

.footer-legal-links {
  margin: 0;
}

.footer-legal-links a {
  color: var(--accent-700);
  text-decoration: none;
  font-weight: 600;
}

.footer-legal-links a:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .mock-leaderboard-list li {
    grid-template-columns: 1.2rem 2rem 1fr auto;
  }
}
