/* Thai Reading Trainer — landing (aanwai.com). Zero JS, zero zewnętrznych hostów.
   Paleta i fonty = aplikacja (frontend/src/app/globals.css, frontend/src/fonts). */

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Sarabun";
  src: url("fonts/sarabun-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Sarabun";
  src: url("fonts/sarabun-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --background: #ffffff;
  --foreground: #171717;
  --muted: #5b5b66;
  --card: #fafafa;
  --border: rgba(23, 23, 23, 0.1);
  --accent: #4f46e5;
  --accent-foreground: #ffffff;
  --accent-soft: #eef0fe;
  --ok: #15803d;
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-thai: "Sarabun", "Leelawadee UI", "Tahoma", sans-serif;
  --radius: 14px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
    --muted: #a3a3ad;
    --card: #1c1c23;
    --border: rgba(237, 237, 237, 0.12);
    --accent: #8f88f5;
    --accent-foreground: #16161c;
    --accent-soft: #232345;
    --ok: #4ade80;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); font-weight: 650; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 620; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.thai { font-family: var(--font-thai); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
@media (min-width: 800px) { section { padding: 88px 0; } }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }

/* --- znak marki --- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); color: var(--accent-foreground);
  font-family: var(--font-thai); font-weight: 600; font-size: 19px; line-height: 1;
}
.mark--lg { width: 56px; height: 56px; border-radius: 16px; font-size: 34px; }

/* --- nagłówek --- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--background) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.top nav { display: none; gap: 22px; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--foreground); }
@media (min-width: 800px) { .top nav { display: flex; } }
.top .actions { display: flex; gap: 10px; align-items: center; }
.top .brand { white-space: nowrap; }
/* Na wąskim ekranie „Sign in" zostaje w hero i stopce — nagłówek ma zmieścić markę i CTA. */
@media (max-width: 559px) { .top .actions .btn--ghost { display: none; } }

/* --- przyciski --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; text-decoration: none;
  font-size: 0.98rem; border: 1px solid transparent; white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--accent-foreground); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { border-color: var(--border); background: transparent; color: var(--foreground); }
.btn--ghost:hover { background: var(--card); }
.btn--sm { padding: 8px 13px; font-size: 0.9rem; }

/* --- hero --- */
.hero { padding-top: 48px; padding-bottom: 32px; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } .hero { padding-top: 80px; padding-bottom: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 5px 11px; border-radius: 999px; margin-bottom: 18px; }
.hero p.lead { margin-top: 18px; font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .fine { margin-top: 14px; font-size: 0.9rem; }
.hero .fine a { color: var(--muted); }

/* telefon */
.phone {
  justify-self: center; width: min(300px, 78vw);
  border-radius: 34px; padding: 10px; background: #111; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.2);
}
.phone img { border-radius: 26px; }

/* --- cechy --- */
.features { display: grid; gap: 18px; }
@media (min-width: 800px) { .features { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature .num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.feature .sample { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--background); border: 1px solid var(--border); font-size: 1.15rem; line-height: 1.9; }
.feature .sample mark { background: var(--accent-soft); color: inherit; border-radius: 4px; padding: 0 3px; }

/* --- szkoły --- */
.schools { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.schools .grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .schools .grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; } }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.points li { padding-left: 30px; position: relative; }
.points li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--ok); font-weight: 700; }
.points strong { display: block; margin-bottom: 3px; }
.points p { color: var(--muted); font-size: 0.98rem; }
.shots { display: grid; gap: 16px; }
.shot { margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--background); box-shadow: 0 12px 30px -20px rgba(0,0,0,.4); }
.shot figcaption { font-size: 0.85rem; color: var(--muted); padding: 9px 12px; border-top: 1px solid var(--border); }

/* --- pasek indywidualnych --- */
.solo .box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 28px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-soft), transparent 70%); }
.solo h2 { font-size: 1.35rem; }
.solo p { margin-top: 6px; color: var(--muted); }

/* --- status --- */
.status .box { max-width: 720px; padding: 26px 28px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
.status h2 { font-size: 1.35rem; }
.status p { margin-top: 10px; color: var(--muted); }

/* --- FAQ --- */
.faq details { border-top: 1px solid var(--border); padding: 4px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--muted); max-width: 680px; }

/* --- stopka --- */
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; font-size: 0.92rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer a { color: inherit; }
