/* live.ee avalik pool — tokenid ja komponendid. Muuda siin, mitte vaadetes. */
@import url('/assets/fonts/ubuntu.css');

:root {
  --radius: 0.5rem;
  /* hele = summutatud «kivi», mitte valge (Tiit 23.11: valge kriibib tumeda teema inimese silma).
     Toon 75 = oranži (47) ja päise oliivi (120) vahel; kaart tõuseb taustast ~0.055 võrra, mitte valgeks. */
  --background: oklch(0.885 0.009 75);
  --foreground: oklch(0.25 0.006 75);
  --card: oklch(0.94 0.006 75);
  --primary: oklch(0.65 0.17 47);
  --primary-foreground: oklch(0.99 0 0);
  --muted-foreground: oklch(0.44 0.009 75);
  --accent: oklch(0.85 0.009 75);
  --border: oklch(0.8 0.009 75);
  --input: oklch(0.73 0.009 75);
  --ring: var(--primary);
  --success: oklch(0.48 0.12 155);
  /* päis = meie oma toonid (koolitus.live.ee, Tiit 21.11: «päis on cool»), mitte Lovable'i must */
  --header-background: #262a25;
  --header-foreground: #eef0ea;
  --header-muted: #aab1a4;
  --header-border: #3a3f37;
  --brand-green: #22c55e; /* 26.11 Tiit: ere roheline (oli #7fcf9f «tuhm») */
  color-scheme: light;
}
html.dark {
  --background: oklch(0.205 0.003 120);
  --foreground: oklch(0.94 0.003 120);
  --card: oklch(0.25 0.003 120);
  --primary: oklch(0.73 0.155 48);
  --primary-foreground: oklch(0.2 0.02 48);
  --muted-foreground: oklch(0.7 0.003 120);
  --accent: oklch(0.29 0.003 120);
  --border: oklch(0.34 0.003 120);
  --input: oklch(0.4 0.003 120);
  --success: #22c55e; /* 26.11 ere roheline */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: 'Ubuntu', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; }
h1, h2, h3, p, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
svg.i { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.public-eyebrow { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0; color: var(--muted-foreground); }
.muted { color: var(--muted-foreground); }

/* nupud (shadcn Button: default / ghost, size lg) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; border-radius: 6px; font: 600 14px/1 'Ubuntu', sans-serif; height: 40px; padding: 0 32px; border: 0; cursor: pointer; transition: background-color 150ms, color 150ms; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 3px oklch(0 0 0 / 0.12); }
.btn-primary:hover { background: color-mix(in oklch, var(--primary) 90%, transparent); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--accent); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn:focus-visible { outline: 1px solid var(--ring); outline-offset: 1px; }

/* päis */
.live-header { position: relative; z-index: 30; background: var(--header-background); color: var(--header-foreground); border-bottom: 1px solid var(--header-border); }
.live-header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; max-width: 1440px; margin: auto; padding: 0 20px; }
.live-logo { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 500; }
.live-logo span { color: var(--primary); }
.live-mark { width: 24px; height: 24px; fill: none; stroke: var(--brand-green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.live-nav { display: none; align-items: center; gap: 32px; font-size: 14px; }
.public-nav { color: var(--header-muted); transition: color 150ms; }
.public-nav:hover, .public-nav[aria-current="page"] { color: var(--header-foreground); }
.public-nav[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 8px; }
.live-header-r { display: flex; align-items: center; gap: 8px; }
.header-button { background: transparent; color: var(--header-foreground); border: 0; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.header-button:hover { background: var(--header-border); }
.header-icon { width: 36px; height: 36px; }
.header-icon svg.i { width: 16px; height: 16px; }
.live-mnav { position: absolute; inset: 100% 0 auto 0; display: grid; gap: 20px; padding: 24px 20px; font-size: 14px; background: var(--header-background); border-top: 1px solid var(--header-border); border-bottom: 1px solid var(--header-border); }
.live-mnav[hidden] { display: none; }
.only-mobile { display: inline-flex; }
@media (min-width: 768px) { .live-header-in { padding: 0 32px; } }
@media (min-width: 1024px) { .live-nav { display: flex; } .only-mobile, .live-mnav { display: none !important; } }

/* jalus */
.public-footer { flex-shrink: 0; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted-foreground); }
.public-footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; max-width: 1440px; margin: auto; padding: 20px; }
.public-footer-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.public-footer a:hover { color: var(--foreground); }
@media (min-width: 768px) { .public-footer-in { padding: 20px 32px; } }

/* lehe raam */
.public-page { display: flex; flex-direction: column; min-height: 100dvh; }
.public-page > main { flex: 1; }

/* avaleht: pealkiri + 3 teenuse plokki (joontega skeem riiulis 23.11: avalik-pool/riiul/teenuste-skeem.md) */
.public-home { display: flex; flex-direction: column; height: 100dvh; min-height: 660px; }
.home-stage { flex: 1; min-height: 0; display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: 40px; width: 100%; max-width: 1440px; margin: auto; padding: 24px 32px; }
.home-copy h1 { font-size: 56px; line-height: 1.14; font-weight: 400; margin-top: 24px; }
.home-copy .public-eyebrow { font-size: 12px; }
.home-copy .public-eyebrow + h1 { margin-top: 8px; }
/* 26.11 Tiit: roheline marker «sait on … väike äpp» (mockup hero-varv.html E) — loeb lauseks */
.home-copy .hl { --hl: var(--brand-green); background: linear-gradient(transparent 62%, var(--hl) 62%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html.dark .home-copy .hl { background: none; color: var(--brand-green); } /* tumedas: ilma markerita, tähed logo värvi (Tiit 26.11) */
.home-subtitle { max-width: 470px; font-size: 17px; line-height: 1.7; color: var(--muted-foreground); margin-top: 24px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.service-map { position: relative; width: 100%; height: min(600px, calc(100dvh - 170px)); min-height: 470px; }
.service-nodes { position: relative; z-index: 1; margin-left: auto; max-width: 620px; height: 100%; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-node { position: relative; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--border); border-radius: 6px; background: var(--card); padding: 16px 20px; transition: border-color 180ms, transform 180ms; }
.service-node:hover { border-color: var(--primary); transform: translateX(3px); }
.service-node:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.service-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.service-top svg.i { color: var(--muted-foreground); }
.service-node h2 { font-size: 20px; font-weight: 500; line-height: 1.35; margin-top: 5px; }
.service-node h2 span { display: block; font-size: 16px; font-weight: 400; }
.service-node p { font-size: 13px; line-height: 1.6; color: var(--muted-foreground); margin-top: 7px; }
.service-price { display: block; margin-top: 8px; font-size: 12px; }
.service-support { display: block; margin-top: 4px; font-size: 12px; color: var(--success); }
.service-extra { display: none; margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--muted-foreground); }
.expanded .service-node > p { display: none; }
.expanded .service-node { border-color: var(--primary); }
.expanded .service-extra { display: block; }
@media (min-width: 1024px) and (max-height: 760px) {
  .home-copy h1 { font-size: 48px; }
  .service-node { padding: 10px 14px; }
  .service-node h2 { font-size: 18px; }
  .service-node p { font-size: 12px; margin-top: 4px; }
  .service-price { margin-top: 4px; }
}
@media (max-width: 1023px) {
  .public-home { height: auto; min-height: 100dvh; }
  .home-stage { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px; max-width: 760px; }
  .home-copy h1 { font-size: 48px; }
  .home-subtitle { max-width: 550px; }
  .service-map { height: auto; min-height: 0; }
  .service-nodes { margin-left: 0; grid-template-rows: none; height: auto; }
  .service-node { padding: 20px; min-height: 150px; }
  .service-node:hover { transform: none; }
}
@media (max-width: 479px) {
  .home-copy h1 { font-size: min(32px, 8.5vw); } /* 26.11: «mitte hunnik tarkvara.» ühele reale → H1 3 rida */
  .home-subtitle { font-size: 16px; }
  .home-stage { padding: 32px 20px; }
}

/* teenuse leht + kontakt */
.public-short { display: grid; gap: 40px; width: 100%; max-width: 1152px; margin: auto; padding: 40px 20px; }
.public-short h1 { margin-top: 16px; font-size: 36px; font-weight: 400; line-height: 1.15; }
.public-short .lead { margin-top: 20px; max-width: 576px; font-size: 20px; line-height: 1.6; }
.svc-sections { margin-top: 32px; display: grid; gap: 20px; }
.svc-sections h2 { font-size: 14px; font-weight: 500; }
.svc-sections p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.svc-steps { margin-top: 28px; padding: 0; list-style: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.svc-steps li { display: flex; gap: 16px; padding: 12px 0; font-size: 14px; }
.svc-steps li + li { border-top: 1px solid var(--border); }
.svc-steps li span:first-child { color: var(--muted-foreground); }
.svc-note { margin-top: 20px; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.svc-note svg.i { color: var(--primary); }
.svc-form { align-self: center; border-top: 1px solid var(--border); padding-top: 32px; }
.svc-form > h2 { margin-bottom: 8px; font-size: 24px; font-weight: 400; }
.svc-form > p { margin-bottom: 24px; font-size: 14px; color: var(--muted-foreground); }
.contact-grid { display: grid; gap: 40px; width: 100%; max-width: 1024px; margin: auto; padding: 48px 20px; }
.contact-grid h1 { margin-top: 20px; font-size: 48px; font-weight: 400; }
.contact-grid .lead { margin-top: 20px; max-width: 384px; font-size: 18px; line-height: 1.6; color: var(--muted-foreground); }
.contact-lines { margin-top: 40px; display: grid; gap: 12px; font-size: 14px; }
.contact-lines a:first-of-type { color: var(--primary); }
.contact-grid section > h2 { margin-bottom: 24px; font-size: 20px; font-weight: 400; }
@media (min-width: 768px) { .public-short h1 { font-size: 48px; } .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; padding: 80px 20px; } }
@media (min-width: 1024px) { .public-short { grid-template-columns: 1.1fr 1fr; gap: 80px; padding: 56px 20px; } .svc-form { border-top: 0; border-left: 1px solid var(--border); padding: 0 0 0 40px; } }

/* vorm */
.lform { display: grid; gap: 16px; }
.lform-row { display: grid; gap: 16px; }
.lform label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.lform input, .lform select, .lform textarea { width: 100%; min-height: 36px; border: 1px solid var(--input); border-radius: 6px; background: transparent; color: var(--foreground); padding: 7px 12px; font: 400 14px 'Ubuntu', sans-serif; box-shadow: 0 1px 2px oklch(0 0 0 / 0.05); }
.lform textarea { min-height: 96px; resize: vertical; }
.lform input:focus-visible, .lform select:focus-visible, .lform textarea:focus-visible { outline: 1px solid var(--ring); }
.lform .btn { justify-self: start; padding: 0 16px; height: 36px; }
.lform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lform-err { color: oklch(0.6 0.2 25); font-size: 14px; }
.lform-done { display: flex; align-items: center; gap: 12px; padding: 48px 0; color: var(--success); }
.lform-done svg.i { width: 20px; height: 20px; }
@media (min-width: 640px) { .lform-row { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { .service-node, .public-nav { transition: none; } }

/* kooli lehed (live.ee/koolitus) */
.kl { width:100%; max-width:1100px; margin:0 auto; padding:24px 20px 56px; display:grid; gap:48px; }
.kl-sub { display:flex; flex-wrap:wrap; gap:4px 24px; border-bottom:1px solid var(--border); font-size:14px; }
.kl-sub a { padding:10px 0; color:var(--muted-foreground); border-bottom:2px solid transparent; margin-bottom:-1px; }
.kl-sub a:hover { color:var(--foreground); }
.kl-sub a[aria-current="page"] { color:var(--foreground); border-bottom-color:var(--primary); }
.kl-head h1 { margin-top:16px; font-size:48px; font-weight:400; line-height:1.12; }
.kl-head .lead { margin-top:20px; max-width:640px; font-size:20px; line-height:1.6; color:var(--muted-foreground); }
.kl-head-foto { display:grid; gap:20px; align-items:center; }
.kl-head-foto img { width:120px; height:120px; border-radius:50%; object-fit:cover; border:1px solid var(--border); }
@media (min-width:768px) { .kl-head-foto { grid-template-columns:200px 1fr; gap:40px; } .kl-head-foto img { width:200px; height:200px; } }
.kl h2 { font-size:22px; font-weight:400; margin-bottom:12px; }
.kl h3 { font-size:16px; font-weight:500; margin:6px 0 4px; }
.kl p { font-size:15px; line-height:1.7; }
.kl p + p { margin-top:10px; }
.kl-grid2 { display:grid; gap:40px; }
.kl-list { margin:0; padding:0; list-style:none; display:grid; gap:10px; font-size:15px; line-height:1.6; }
.kl-list li { padding-left:18px; position:relative; }
.kl-list li::before { content:''; position:absolute; left:0; top:.7em; width:6px; height:6px; border-radius:50%; background:var(--primary); }
.kl-list b { font-weight:500; }
.kl-steps { margin:0; padding:0; list-style:none; display:grid; gap:16px; }
.kl-steps li { display:grid; gap:4px; border:1px solid var(--border); border-radius:6px; background:var(--card); padding:18px 20px; }
.kl-steps b { font-size:18px; font-weight:500; }
.kl-steps span:last-child { font-size:14px; line-height:1.6; color:var(--muted-foreground); }
.kl-facts { margin:0; display:grid; border-top:1px solid var(--border); }
.kl-facts div { display:grid; gap:4px 24px; padding:14px 0; border-bottom:1px solid var(--border); }
.kl-facts dt { font-size:13px; font-weight:500; color:var(--muted-foreground); }
.kl-facts dd { margin:0; font-size:15px; line-height:1.6; }
.kl-facts-row { border-top:0; }
.kl-split { display:grid; gap:16px; }
.kl-split > div { border:1px solid var(--border); border-radius:6px; background:var(--card); padding:20px; }
.kl-split p { color:var(--muted-foreground); font-size:14px; }
.kl-num { font-size:40px; font-weight:400; color:var(--primary); line-height:1; margin-right:6px; }
.kl-split span { font-size:13px; color:var(--muted-foreground); }
.kl-table { width:100%; border-collapse:collapse; font-size:14px; }
.kl-table th { text-align:left; font-weight:500; color:var(--muted-foreground); font-size:13px; padding:10px 8px 10px 0; border-bottom:1px solid var(--border); }
.kl-table td { padding:12px 8px 12px 0; border-bottom:1px solid var(--border); vertical-align:top; }
.kl-table td:not(:first-child) { white-space:nowrap; }
.kl-note { margin-top:12px; font-size:13px !important; color:var(--muted-foreground); }
.kl-prose { max-width:760px; }
.kl-prose h2 { margin-top:28px; font-size:18px; font-weight:500; }
.kl-prose h2:first-child { margin-top:0; }
.kl-prose .kl-h-big { font-size:26px; font-weight:400; margin-bottom:8px; }
.kl-prose a, .kl-more { color:var(--primary); }
.kl-more { white-space:nowrap; }
.kl-cta { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px 40px; border:1px solid var(--border); border-top:3px solid var(--primary); border-radius:6px; background:var(--card); padding:28px; }
.kl-cta p { margin-top:6px; max-width:560px; color:var(--muted-foreground); }
@media (min-width:768px) {
  .kl { padding:32px 32px 72px; }
  .kl-grid2 { grid-template-columns:1fr 1fr; gap:64px; }
  .kl-split { grid-template-columns:repeat(3, 1fr); }
  .kl-steps { grid-template-columns:repeat(3, 1fr); }
  .kl-facts div { grid-template-columns:180px 1fr; }
  .kl-facts-row { grid-template-columns:repeat(5, 1fr); }
  .kl-facts-row div { grid-template-columns:1fr; border-bottom:0; border-top:1px solid var(--border); }
}
@media (max-width:479px) { .kl-head h1 { font-size:36px; } .kl-head .lead { font-size:17px; } }

/* külalise kaart: sisselogimine, kutse, teated (Lovable auth.tsx) */
.public-page > .auth-wrap { flex:1; }
.auth-wrap { display:flex; align-items:center; justify-content:center; padding:48px 20px; }
.auth-card { width:100%; max-width:448px; background:var(--card); border:1px solid var(--border); border-radius:8px; padding:32px; box-shadow:0 12px 30px -18px oklch(0 0 0 / 0.35); }
.auth-card h1 { font-size:24px; font-weight:500; line-height:1.25; }
.auth-card .public-eyebrow + h1 { margin-top:8px; }
.auth-sub { margin:6px 0 24px; font-size:14px; line-height:1.6; color:var(--muted-foreground); }
.auth-note { margin-top:24px; text-align:center; font-size:13px; line-height:1.7; color:var(--muted-foreground); }
.auth-back { margin-top:12px; text-align:center; font-size:12px; color:var(--muted-foreground); }
.auth-back a:hover { color:var(--foreground); }
.btn-block { width:100%; justify-self:stretch !important; height:40px !important; }
.lform-hint { font-weight:400; color:var(--muted-foreground); font-size:13px; }
.lform-check { display:flex !important; flex-direction:row; align-items:center; gap:8px !important; font-weight:400 !important; }
.lform-check input { width:auto !important; min-height:0 !important; box-shadow:none !important; }
.lform input[readonly] { color:var(--muted-foreground); }
