/* Coachlog landing page. Colours and the title font are copied from the app (app/src/ui/tokens.ts, direction E),
   not imported: this folder is published on its own. Light and dark follow the visitor's system setting. */
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  --background: #f5f3ee;
  --surface: #fffefb;
  --text: #0c1530;
  --muted: #5a6480;
  --border: #85837a;
  --soft: #e2e0d8;
  --primary: #0c1530;
  --on-primary: #c6ff3d;
  --highlight: #dff5a6;
  --on-highlight: #26340a;
  --shadow: 0 10px 30px rgba(12, 21, 48, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0e1c;
    --surface: #121a33;
    --text: #eef1fa;
    --muted: #98a2c0;
    --border: #5d6a97;
    --soft: #232d50;
    --primary: #c6ff3d;
    --on-primary: #0c1530;
    --highlight: #2f3d0e;
    --on-highlight: #dcf79a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: inherit; }

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

h1, h2, .brand {
  font-family: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 9vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 6vw, 2.7rem); margin-bottom: 20px; }
h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 8px; }

p { margin: 0 0 14px; }

.muted { color: var(--muted); }

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.7rem;
  text-decoration: none;
}

.brand img { width: 36px; height: 36px; border-radius: 9px; }

.lang { display: flex; flex-wrap: wrap; gap: 6px; }

.lang a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
}

.lang a[aria-current="page"] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

@media (max-width: 420px) {
  .lang a { padding: 6px 10px; font-size: 0.85rem; }
}

/* Hero */
.hero .wrap {
  display: grid;
  gap: 32px;
  padding-top: 24px;
  padding-bottom: 48px;
}

.lead { font-size: 1.15rem; max-width: 36em; margin-top: 18px; }

.notice {
  background: var(--highlight);
  color: var(--on-highlight);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 22px 0;
  max-width: 36em;
}

.button {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 14px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.button:focus-visible, .lang a:focus-visible, a:focus-visible {
  outline: 3px solid var(--border);
  outline-offset: 3px;
}

.small { font-size: 0.95rem; margin-top: 12px; }

/* Screenshots */
.shot {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  border-radius: 34px;
  border: 1px solid var(--soft);
  box-shadow: var(--shadow);
  background: var(--surface);
}

/* Features */
.features { padding: 24px 0 8px; }

.feature {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--soft);
}

.feature p:last-child { margin-bottom: 0; }

.demo-note { margin: 4px 0 0; padding-bottom: 28px; font-size: 0.9rem; color: var(--muted); }

/* Plain sections */
.band { padding: 40px 0; border-top: 1px solid var(--soft); }
.band ul { margin: 0; padding-left: 1.2em; }
.band li { margin-bottom: 8px; }
.band .cols { display: grid; gap: 24px; }

.cta { text-align: center; padding: 48px 0; border-top: 1px solid var(--soft); }
.cta p { max-width: 32em; margin-left: auto; margin-right: auto; }

footer { padding: 28px 0 48px; border-top: 1px solid var(--soft); color: var(--muted); font-size: 0.95rem; }

/* Language chooser (index.html) */
.chooser { min-height: 100vh; display: grid; place-content: center; gap: 28px; text-align: center; padding: 24px 16px; }
.brand-large { justify-content: center; font-size: 3rem; }
.brand-large img { width: 56px; height: 56px; border-radius: 14px; }
.chooser .choices { display: grid; gap: 12px; }
.chooser .button { min-width: 220px; }

/* Wider screens */
@media (min-width: 800px) {
  body { font-size: 18px; }
  .hero .wrap { grid-template-columns: 1.3fr 1fr; align-items: center; padding-top: 40px; padding-bottom: 72px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; padding: 44px 0; }
  .feature:nth-child(even) .shot { order: -1; }
  .band .cols { grid-template-columns: 1fr 1fr; gap: 56px; }
  .shot { max-width: 320px; }
}
