/* Public site: landing + auth. Tokens are shared with app.css. */
:root {
  --paper: #f5f7f6; --card: #fff; --ink: #15202b; --ink2: #4a5866; --line: #d9e0e5;
  --green: #0e6b4d; --green-d: #0a4f39; --bell: #ffd23f; --bad: #b42318; --ok: #0e6b4d;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.55 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--bell); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; line-height: 1.08; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }
.fine { font-size: 14px; color: var(--ink2); }
.sub { color: var(--ink2); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 6px; font: 600 16px/1.2 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-d); }
.btn.ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.big { padding: 14px 24px; font-size: 17px; }
.btn.wide { width: 100%; padding: 13px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.bar nav { display: flex; align-items: center; gap: 22px; }
.bar nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.bar nav a:not(.btn):hover { text-decoration: underline; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--display); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
@media (max-width: 760px) { .bar nav a:not(.btn) { display: none; } .bar nav a[href^="index.php?p=login"] { display: inline; } }

/* hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.lede { font-size: 20px; color: var(--ink2); max-width: 34em; margin: 26px 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 16px; }
@media (max-width: 900px) { .hero { padding: 40px 0 56px; } .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* sample timetable in the hero */
.tt { display: grid; grid-template-columns: 46px repeat(5, 1fr); grid-auto-rows: 58px; gap: 5px; background: #fff; border: 1.5px solid var(--ink); border-radius: 10px; padding: 12px; }
.tt-h { font: 700 13px/1 var(--display); color: var(--ink2); display: flex; align-items: flex-end; padding-bottom: 4px; grid-row: 1; height: 26px; }
.tt { grid-template-rows: 26px; }
.tt-t { font-size: 12px; color: var(--ink2); display: flex; align-items: center; }
.tt .empty { border: 1px dashed var(--line); border-radius: 4px; }
.lesson { border-radius: 4px; padding: 6px 7px; font: 700 14px/1.1 var(--font); display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(0,0,0,.12); animation: drop .45s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--d, 0) * 40ms); }
.lesson small { font-weight: 500; font-size: 11px; margin-top: 3px; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lesson { animation: none; } html { scroll-behavior: auto; } }
.c1 { background: #cfe8ff; } .c2 { background: #ffd9cf; } .c3 { background: #d8f0c8; } .c4 { background: #e8d9ff; }
.c5 { background: #ffe8b8; } .c6 { background: #c8efe6; } .c7 { background: #ffd0e4; } .c8 { background: #e2e7ea; } .c9 { background: #d6e1ff; }
.dbl { background: var(--bell); border-color: var(--ink); border-width: 1.5px; }

/* sections */
section { padding: 80px 0; }
.how { background: #fff; border-block: 1px solid var(--line); }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 0; margin: 40px 0 0; }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font: 800 44px/1 var(--display); color: var(--green); margin-bottom: 14px; }
.steps p { color: var(--ink2); margin: 10px 0 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } section { padding: 56px 0; } }

.handles dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin: 36px 0 0; }
.handles dl > div { border-top: 1px solid var(--line); padding: 20px 0 22px; }
.handles dt { font: 700 20px/1.2 var(--display); }
.handles dd { margin: 6px 0 0; color: var(--ink2); max-width: 30em; }
@media (max-width: 760px) { .handles dl { grid-template-columns: 1fr; } }

.pricing { background: var(--ink); color: #fff; }
.pricing .sub, .pricing .fine { color: #b8c4cd; }
.plans { display: flex; gap: 20px; flex-wrap: wrap; margin: 32px 0 20px; }
.plan { border: 1.5px solid #3a4a58; border-radius: 10px; padding: 24px 28px; min-width: 260px; flex: 0 1 320px; }
.plan h3 { font-size: 19px; color: #d6dee4; }
.price { font: 800 44px/1.1 var(--display); letter-spacing: -0.03em; margin: 10px 0 8px; }
.plan p { color: #b8c4cd; margin: 0; }
.pricing .btn.primary { background: var(--bell); color: var(--ink); }
.pricing .btn.primary:hover { background: #ffe27a; }

.faq .wrap { max-width: 760px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { font: 600 18px/1.3 var(--font); cursor: pointer; }
details p { color: var(--ink2); margin: 10px 0 0; }
.faq h2 { margin-bottom: 20px; }

.foot { border-top: 1px solid var(--line); padding: 40px 0; }
.foot .wrap { display: flex; flex-direction: column; gap: 10px; }
.foot p { margin: 0; }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 5fr) 6fr; }
.auth-side { background: var(--green); color: #fff; padding: 36px 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-side .logo { color: #fff; }
.auth-art { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 420px; }
.auth-art i { aspect-ratio: 1.4; border-radius: 4px; font: 700 13px/1 var(--font); font-style: normal; display: flex; align-items: center; justify-content: center; color: var(--ink); background: rgba(255,255,255,.1); }
.auth-art i.dbl { background: var(--bell); grid-row: span 2; aspect-ratio: auto; }
.auth-art i.dbl2 { display: none; }
.auth-line { font: 700 clamp(22px, 2.6vw, 32px)/1.15 var(--display); letter-spacing: -0.02em; max-width: 14em; margin: 0; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.auth-box .sub { margin-bottom: 20px; }
.auth-box label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 0; }
.auth-box input { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1.5px solid #b9c4cc; border-radius: 6px; font: 400 16px var(--font); background: #fff; color: var(--ink); }
.auth-box input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(14,107,77,.18); }
.auth-box small { display: block; font-weight: 400; color: var(--ink2); margin-top: 4px; }
.auth-box .btn { margin-top: 24px; }
.opt { font-weight: 400; color: var(--ink2); }
.alt { margin-top: 18px; font-size: 15px; color: var(--ink2); }
.hp { position: absolute; left: -9999px; }
.msg { padding: 12px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 15px; }
.msg.ok { background: #e6f4ee; border: 1px solid #a8d5c2; }
.msg.bad { background: #fdecea; border: 1px solid #f1b5ae; color: #8a1f13; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } .auth-side { padding: 22px 24px; } .auth-art, .auth-line { display: none; } }
