/* Landing page (home.html, served at /): static, no React. Colours are the
   app's theme tokens (app/src/styles.css). Header, footer and buttons first,
   then the page sections. */

.ld-shell { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.ld-header a, .ld-footer a { text-decoration: none; }
.ld-page { min-height: 60vh; padding: 48px 0 72px; }

/* Buttons */
.ld-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius); font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; border: 1.5px solid transparent; transition: background .15s, border-color .15s; }
.ld-btn-lg { padding: 18px 24px; font-size: 16px; }
.ld-btn-block { width: 100%; padding: 18px; font-size: 16px; }
.ld-btn-primary { background: var(--primary); color: var(--on-primary); }
.ld-btn-primary:hover { background: var(--primary-deep); }
.ld-btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.ld-btn-ghost:hover { border-color: var(--ink); }
.ld-btn-light { background: var(--page); color: var(--ink); }
.ld-btn-light:hover { background: var(--surface); }
.ld-link { color: var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap; }

/* Header */
.ld-header { position: sticky; top: 0; z-index: 10; background: var(--primary); color: var(--on-primary); }
/* Coloured header: white text and logo, a white button. */
.ld-header .ld-brand-name, .ld-header .ld-brand-name span { color: var(--on-primary); }
.ld-header .ld-brand-mark { background: var(--on-primary); color: var(--primary); }
.ld-header .ld-nav a, .ld-header .ld-link { color: color-mix(in srgb, var(--on-primary) 85%, transparent); }
.ld-header .ld-nav a:hover, .ld-header .ld-link:hover { color: var(--on-primary); }
.ld-header .ld-btn-primary { background: var(--on-primary); color: var(--primary); }
.ld-header .ld-btn-primary:hover { background: var(--primary-tint); }
.ld-header-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.ld-brand { display: inline-flex; align-items: center; gap: 10px; }
.ld-logo { height: 36px; width: auto; max-width: 200px; object-fit: contain; }
.ld-brand-text { display: inline-flex; align-items: center; gap: 10px; }
.ld-footer .ld-logo { height: 40px; }
.ld-brand-mark { width: 30px; height: 30px; border-radius: var(--radius); background: var(--primary); color: var(--on-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.ld-brand-name { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.ld-brand-name span { color: var(--primary); }
.ld-nav { display: flex; gap: 22px; margin-left: 8px; }
.ld-nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.ld-nav a:hover { color: var(--ink); }
.ld-header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }

/* Footer */
.ld-footer { background: var(--chrome); color: var(--chrome-text); padding: 56px 0 0; }
.ld-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.ld-footer .ld-brand-name span { color: var(--ochre); }
.ld-footer-tagline { color: color-mix(in srgb, var(--chrome-text) 70%, transparent); font-size: 14.5px; margin: 14px 0 18px; max-width: 320px; }
.ld-social { display: flex; gap: 10px; }
.ld-social a { width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--chrome-text) 20%, transparent); display: inline-flex; align-items: center; justify-content: center; color: var(--chrome-text); }
.ld-social a:hover { background: color-mix(in srgb, var(--chrome-text) 10%, transparent); }
/* WhatsApp is a recognised brand mark — tinting it on hover makes it findable
   in the row without shouting on first paint. Shared by landing.css, which
   imports this file. */
.ld-social a.ld-wa-icon:hover { background: #25D366; border-color: #25D366; color: #0b3a1c; }
.ld-footer-col a.ld-wa-link { display: inline-flex; align-items: center; gap: 6px; }
.ld-footer-col { display: flex; flex-direction: column; gap: 10px; }
.ld-footer-col h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: color-mix(in srgb, var(--chrome-text) 55%, transparent); }
.ld-footer-col a { color: color-mix(in srgb, var(--chrome-text) 85%, transparent); font-size: 14.5px; }
.ld-footer-col a:hover { color: var(--chrome-text); }
.ld-footer-bottom { margin-top: 44px; padding: 18px 24px; border-top: 1px solid color-mix(in srgb, var(--chrome-text) 12%, transparent); text-align: center; font-size: 13px; color: color-mix(in srgb, var(--chrome-text) 55%, transparent); }

/* Responsive */
@media (max-width: 900px) {
  .ld-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  /* Header: logo + "Log in" only — the sign-up CTA lives in the page body. */
  .ld-nav { display: none; }
  .ld-header-inner { padding: 12px 18px; gap: 12px; }
  .ld-header-actions .ld-btn { display: none; }
  .ld-shell { padding-left: 18px; padding-right: 18px; }
  /* Footer: single centred column. */
  .ld-footer-grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .ld-footer-brand { display: flex; flex-direction: column; align-items: center; }
  .ld-social { justify-content: center; }
  .ld-footer-col { align-items: center; }
}

:root {
  /* The app's theme (app/src/styles.css): light by default, dark when the
     visitor chose it in the app (app_theme), set before paint in landing.html. */
  --ink: #1f2937;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --page: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --border: #d9dce1;
  --primary: #8e54e9;
  --primary-deep: #7442c9;
  --primary-tint: #efe9fb;
  --on-primary: #ffffff;
  --ochre: #8e54e9;
  --chrome: #2c2e3e;
  --chrome-text: #ffffff;
  --sage: var(--primary);
  --radius: 10px;
  --shadow-card: 0 6px 18px rgb(16 24 40 / 0.06);
  --shadow-feature: 0 8px 24px rgb(16 24 40 / 0.12), 0 2px 6px rgb(16 24 40 / 0.06);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #e8eaed;
  --ink-2: #c4c8ce;
  --ink-3: #9ba1a9;
  --page: #111316;
  --surface: #181b1f;
  --surface-2: #22262b;
  --border: #2c3036;
  --primary: #a67cf0;
  --primary-deep: #8e54e9;
  --primary-tint: #2e2445;
  --ochre: #a67cf0;
  --chrome: #1d1e29;
  --shadow-card: 0 6px 18px rgb(0 0 0 / 0.35);
  --shadow-feature: 0 8px 24px rgb(0 0 0 / 0.45), 0 2px 6px rgb(0 0 0 / 0.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body.ld {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Type */
.ld-h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 14px; }
.ld-h3 { font-family: var(--display); font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.ld-copy { color: var(--ink-2); font-size: 15.5px; margin: 0 0 16px; }
.ld-center { text-align: center; }
.ld-fine { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; margin: 14px 0 0; }
.ld-fine svg { flex: none; color: var(--primary); }

/* Hero */
.ld-hero { position: relative; overflow: hidden; padding: 72px 0 0; }
.ld-hero-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ld-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--chrome); color: var(--chrome-text); border-radius: var(--radius); padding: 9px 15px; font-size: 12px; font-weight: 500; margin-bottom: 26px; }
.ld-title { font-family: var(--display); font-size: clamp(56px, 9vw, 112px); line-height: 0.92; font-weight: 700; letter-spacing: -0.04em; margin: 0 0 44px; }
.ld-eyebrow { display: block; font-family: 'DM Sans', system-ui, sans-serif; font-size: clamp(22px, 2.8vw, 32px); font-weight: 500; letter-spacing: 0; line-height: 1.3; color: var(--ink-2); margin: 0 0 16px; }
.ld-title .hl { color: var(--primary); }
.ld-hero-media { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.ld-hero-media img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow-feature); }

/* Start */
.ld-start { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 0; }
.ld-start-inner { max-width: 620px; }
.ld-start .ld-copy { margin-bottom: 24px; }
.ld-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-card); }

/* Trust */
.ld-trust { padding: 72px 0; }
.ld-trust .ld-h2 { margin-bottom: 34px; }
.ld-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ld-icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--primary-tint); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.ld-trust .ld-copy { margin-bottom: 0; }

/* Purpose */
.ld-purpose { padding: 0 0 72px; }
.ld-purpose-panel { background: var(--primary); color: var(--on-primary); border-radius: var(--radius); padding: 48px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; overflow: hidden; }
.ld-purpose-text .ld-h2 { color: var(--on-primary); }
.ld-purpose-list { list-style: none; padding: 0; margin: 0 0 28px; font-family: var(--display); font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.ld-purpose-list li { padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--on-primary) 25%, transparent); }
.ld-purpose-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--on-primary) 25%, transparent); }
.ld-purpose-media img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); }

/* Responsive */
@media (max-width: 900px) {
  .ld-purpose-panel { grid-template-columns: 1fr; }
  .ld-trust-grid { grid-template-columns: 1fr; }
  .ld-purpose-panel { padding: 32px 24px; }
  .ld-purpose-media img { max-height: 360px; }
}
@media (max-width: 640px) {
  /* Everything centred on phones. */
  main { text-align: center; }
  .ld-hero { padding-top: 44px; }
  .ld-hero-inner, .ld-hero-media { padding-left: 18px; padding-right: 18px; }
  .ld-start-inner { margin: 0 auto; }
  .ld-start-inner > .ld-btn { width: 100%; }
  .ld-fine { justify-content: center; }
  .ld-start, .ld-trust { padding: 48px 0; }
  .ld-card { display: flex; flex-direction: column; align-items: center; }
  .ld-purpose { padding-bottom: 48px; }
  .ld-purpose-list li { text-align: center; }
}


/* Cookie banner and preferences dialog (home/consent.js): the app's
   (app/src/styles.css "Cookie consent"), with this page's colour names. */
.ck-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding: 0.9rem 1.25rem calc(0.9rem + env(safe-area-inset-bottom, 0px)); background: var(--surface); color: var(--ink); border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgb(0 0 0 / 0.08); }
.ck-banner-text { display: flex; align-items: flex-start; gap: 0.6rem; flex: 1 1 360px; min-width: 0; }
.ck-banner-text p { margin: 0; font-size: 0.92rem; line-height: 1.45; }
.ck-banner a, .ck-dialog a { color: var(--primary); }
.ck-icon { flex: none; margin-top: 0.1rem; color: var(--primary); }
.ck-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.ck-btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 6px; border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); cursor: pointer; }
.ck-btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.ck-link { font: inherit; background: none; border: 0; padding: 0; color: var(--primary); text-decoration: underline; cursor: pointer; }
.ck-dialog { width: min(440px, calc(100vw - 2rem)); padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-feature); }
.ck-dialog::backdrop { background: rgb(0 0 0 / 0.45); }
.ck-dialog-body { padding: 1.5rem; }
.ck-dialog h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.ck-muted { color: var(--ink-3); margin-top: 0; }
.ck-cat { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--border); cursor: pointer; }
.ck-cat p { margin: 0.15rem 0 0; font-size: 0.88rem; }
.ck-always { flex: none; color: #16a34a; font-size: 0.85rem; font-weight: 600; }
:root[data-theme="dark"] .ck-always { color: #4ade80; }
.ck-switch { appearance: none; flex: none; position: relative; width: 40px; height: 22px; margin: 0; border-radius: var(--radius); background: var(--border); cursor: pointer; transition: background 0.15s; }
.ck-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: var(--radius); background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); transition: transform 0.15s; }
.ck-switch:checked { background: var(--primary); }
.ck-switch:checked::after { transform: translateX(18px); }
.ck-actions { display: flex; justify-content: flex-end; align-items: center; gap: 0.5rem; margin-top: 1.25rem; }
@media (max-width: 639px) {
  .ck-banner-actions { width: 100%; justify-content: center; }
}
/* Phones: the dialog's buttons stacked, Save on top. */
@media (max-width: 600px) {
  .ck-actions { flex-direction: column-reverse; align-items: stretch; }
  .ck-actions .ck-btn { min-height: 44px; }
  .ck-actions .ck-link { align-self: center; padding: 8px; }
}
