/* ═══════════ TableBook — „Tint ja messing" (v4) ═══════════
   Palett: sügav tint + soe ivoor + vaoshoitud messing.
   Kontrastid: --accent valgel ≥4.5:1, valge tekst --accent'il ≥4.5:1. */
:root {
  --navy: #15212e;          /* sügav tint: hero, jalus, CTA */
  --navy-2: #1e2c3b;        /* tint-2: tooltipid, sügavamad pinnad */
  --accent: #8a6b3a;        /* messing: nupud, lingid heledal taustal */
  --accent-dark: #74582e;   /* messing hover */
  --brass: #c9a86a;         /* hele messing: aktsendid tumedal taustal */
  --bg: #f7f5f1;            /* soe ivoor */
  --surface: #ffffff;
  --text: #2b3440;
  --text-2: #616a76;
  --border: #e7e2d9;        /* soe piir */
  --radius: 14px;
  --shadow: 0 10px 40px rgba(28, 25, 18, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* soe ivoor + vaevumärgatavad luite-kontuurjooned kogu lehe taustal
     (näha läbipaistvatel heledatel sektsioonidel; tumedatel on oma luited) */
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1400'%20height='200'%20viewBox='0%200%201400%20200'%3E%3Cg%20fill='none'%20stroke='%23bfa16a'%20stroke-opacity='0.13'%20stroke-width='1.5'%3E%3Cpath%20d='M0,64%20C233,28%20466,100%20700,64%20C934,28%201167,100%201400,64'/%3E%3Cpath%20d='M0,150%20C233,114%20466,186%20700,150%20C934,114%201167,186%201400,150'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 1400px 200px;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ─── Navigatsioon ─── */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 33, 46, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topnav-inner { display: flex; align-items: center; gap: 26px; height: 60px; }
.logo { font-size: 21px; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: -.02em; }
.logo span { color: #c9b99a; } /* sama toon mis äpi pruuni (berliin) teema logo „Book" */
.topnav-links { display: flex; gap: 18px; margin-left: auto; }
.topnav-links a { color: #c3cbd4; text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.topnav-links a:hover { color: #fff; }
.topnav-right { display: flex; align-items: center; gap: 14px; }

/* Hamburger-nupp (nähtav ainult mobiilis) */
.nav-toggle {
  display: none; margin-left: auto; padding: 8px; border: 0; background: none;
  cursor: pointer; color: #fff;
}
.nav-toggle-bars { display: block; width: 24px; height: 16px; position: relative; }
.nav-toggle-bars i {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .2s, opacity .2s, top .2s;
}
.nav-toggle-bars i:nth-child(1) { top: 0; }
.nav-toggle-bars i:nth-child(2) { top: 7px; }
.nav-toggle-bars i:nth-child(3) { top: 14px; }
.topnav.open .nav-toggle-bars i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.topnav.open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.topnav.open .nav-toggle-bars i:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Keelevaheti */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  color: #d6dbe1; font: inherit; font-size: 13px; font-weight: 600;
  padding: 7px 11px; border-radius: 9px; cursor: pointer; transition: background .15s, border-color .15s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(255,255,255,.11); border-color: rgba(201,168,106,.5); color: #fff; }
.lang-btn svg { opacity: .8; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 148px;
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s, transform .14s, visibility .14s; z-index: 60;
}
.lang-switch:hover .lang-menu,
.lang-switch:focus-within .lang-menu,
.lang-menu.open { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
  display: block; padding: 8px 12px; border-radius: 7px;
  color: #c3cbd4; text-decoration: none; font-size: 14px; font-weight: 500;
}
.lang-menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
.lang-menu a[aria-current="true"] { color: var(--brass); font-weight: 700; }
/* Mobiilis EI peideta menüüd (vana lehe hamburgeri aseaine): lingid jäävad
   horisontaalselt keritavasse ritta logo/CTA alla. */
/* Tahvel (641–1024px): logo omal real keskel; menüü + keelevalik samal keskreal.
   „Võta ühendust" on tahvlis peidetud. */
@media (max-width: 1024px) and (min-width: 641px) {
  .topnav-inner { flex-wrap: wrap; height: auto; padding: 12px 0; row-gap: 12px; column-gap: 16px; justify-content: center; }
  .logo { width: 100%; text-align: center; }
  .topnav-links { margin-left: 0; justify-content: center; flex-wrap: wrap; gap: 12px 18px; }
  .topnav-links a { color: #eef1f6; } /* heledam menüütekst tahvlis */
  .topnav-right { justify-content: center; }
  .topnav-right .btn-small { display: none; }
}

/* Mobiil (≤640px): hamburger-menüü, mis avaneb paneelina */
@media (max-width: 640px) {
  .topnav-inner { flex-wrap: wrap; height: auto; min-height: 56px; padding: 8px 18px; row-gap: 0; column-gap: 12px; }
  .logo { margin-right: auto; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav-toggle-label { font-size: 14px; font-weight: 600; color: #fff; }
  .topnav-links, .topnav-right { order: 2; width: 100%; display: none; }
  .topnav.open .topnav-links {
    display: flex; flex-direction: column; gap: 0; margin: 8px 0 0;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .topnav.open .topnav-links a {
    padding: 13px 2px; border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 15px; color: #eef1f6; /* heledam menüütekst mobiilis */
  }
  .topnav.open .topnav-links a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.06); }
  .topnav.open .topnav-right {
    display: flex; justify-content: flex-start; align-items: center;
    padding: 12px 0 6px; gap: 12px;
  }
  .topnav.open .btn-small { display: none; } /* „Võta ühendust" mobiilist eemaldatud */
  .lang-menu { right: auto; left: 0; }
  /* heledam tekst tumedal fotol/CTA-l — mobiilis parem loetavus */
  .hero-lead { color: #dce2e8; }
  .hero-facts li { color: #c7cfd9; }
  .cta p { color: #bdc5ce; }
  .page-hero .lead { color: #cfd6de; }
}

/* ─── Nupud ─── */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-small { padding: 8px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: #e4e8ec; border: 1px solid rgba(255,255,255,.32); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ═══════════ HERO — Pärnu ranna droonifoto + tint-kate ═══════════
   Foto: Kristian Pikner, CC BY 4.0 (Wikimedia Commons) — atributsioon jaluses.
   Loojang Läänemere kohal, liivarand. Kate hoiab valge teksti loetavana. */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg,
      rgba(14, 22, 31, .74) 0%,
      rgba(14, 22, 31, .42) 38%,
      rgba(16, 25, 35, .46) 70%,
      rgba(21, 33, 46, .85) 100%),
    url("/assets/img/hero-parnu.webp") center 64% / cover no-repeat,
    var(--navy);
  padding: 108px 0 130px;
  text-align: center;
}
@media (max-width: 720px) {
  .hero {
    background-image:
      linear-gradient(180deg,
        rgba(14, 22, 31, .74) 0%,
        rgba(14, 22, 31, .42) 38%,
        rgba(16, 25, 35, .46) 70%,
        rgba(21, 33, 46, .85) 100%),
      url("/assets/img/hero-parnu-small.webp");
  }
}
.hero-inner { position: relative; z-index: 1; }
/* foto autoriviide pildi paremas alanurgas (CC BY nõue) */
.hero-credit {
  position: absolute; right: 14px; bottom: 10px; z-index: 1; margin: 0;
  font-size: 11.5px; color: rgba(255,255,255,.72);
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
}
.hero-credit a { color: rgba(255,255,255,.78); text-decoration: none; }
.hero-credit a:hover { color: #fff; text-decoration: underline; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(201,168,106,.10); color: #d3b988;
  border: 1px solid rgba(201,168,106,.28);
  font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  color: #fff; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.1;
  font-weight: 800; letter-spacing: -.025em; margin-bottom: 0;
  text-shadow: 0 2px 28px rgba(10, 16, 23, .55);
}
.hero h1 em { font-style: normal; color: var(--brass); white-space: nowrap; }
/* peen messingjoon pealkirja all — ainus dekoratsioon */
.hero h1::after {
  content: ""; display: block; width: 64px; height: 2px;
  background: var(--brass); margin: 26px auto;
}
.hero-tagline {
  text-shadow: 0 1px 18px rgba(10, 16, 23, .5);
  color: #dde2e8; font-size: clamp(18px, 2.5vw, 24px); font-weight: 600;
  letter-spacing: -.01em; max-width: 720px; margin: 0 auto 22px;
}
.hero-lead { color: #c6cdd5; font-size: clamp(16px, 2vw, 19px); max-width: 740px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.hero-facts { display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; list-style: none; }
.hero-facts li { color: #b3bcc6; font-size: 14px; }
.hero-facts strong { color: #fff; font-size: 17px; display: block; }

/* ═══════════ ÜLEVAADE — moodulite ringid ═══════════ */
.overview { padding: 78px 0 40px; text-align: center; }
.overview-title { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.02em; margin-bottom: 14px; }
.overview-lead { color: var(--text-2); font-size: 16.5px; max-width: 680px; margin: 0 auto 12px; }
.overview-cta {
  max-width: 720px; margin: 30px auto 0; text-align: center;
  font-size: 17px; line-height: 1.6; color: var(--text);
}
.overview-cta a { color: var(--accent); font-weight: 700; text-decoration: none; }
.overview-cta a:hover { text-decoration: underline; }
.orbit-wrap { max-width: 720px; margin: 0 auto; }
.orbit { width: 100%; height: auto; display: block; }

/* elulill (Flower of Life): õhukesed kattuvad ringid → vesica-petalid; iga ringi kese-kaugus = raadius */
.fol circle { fill: none; }
.fol .seed  { stroke: var(--brass); stroke-width: 1; stroke-opacity: .35; }
.fol .bound { stroke: #ddd6c8; stroke-width: 1.3; }
.fol .bound-d {
  stroke: var(--brass); stroke-width: 1.5; stroke-opacity: .5;
  stroke-dasharray: 7 9; stroke-linejoin: round;
  animation: ring-flow 34s linear infinite;
}
@keyframes ring-flow { to { stroke-dashoffset: -640; } }

/* ring = värviline halo + heledast gradiendist keha + pehme vari */
.node .halo { stroke: none; }
.node .body { fill: url(#gNode); stroke-width: 2.5; filter: url(#soft); transition: stroke-width .15s; }
.node text {
  fill: var(--text); font-size: 14.5px; font-weight: 600; text-anchor: middle;
  font-family: inherit; pointer-events: none;
}
.node-sm text { font-size: 13px; }
.node .sub { fill: var(--text-2); font-size: 11.5px; font-weight: 500; }

/* moodulite ringid: ühtne vaoshoitud duotoon — tint + messing (mitte vikerkaar) */
.node .body { stroke: #93a1b1; }
.node .halo { fill: var(--navy); fill-opacity: .05; }

.node-center .body { fill: url(#gCenter); stroke: var(--brass); stroke-width: 3; filter: url(#soft); }
.node-center text { fill: #fff; font-size: 17px; font-weight: 700; }
.node-center .sub { fill: #cbb693; font-size: 12px; }

.orbit a { text-decoration: none; cursor: pointer; }
.orbit a:hover .body { stroke: var(--accent); stroke-width: 4; }
.orbit a:hover .halo { fill: var(--brass); fill-opacity: .16; }

/* õrn hõljumine — kolm faasi, et ringid ei liiguks sünkroonis */
.float-a, .float-b, .float-c { transform-box: fill-box; transform-origin: center; }
.float-a { animation: floaty 6.5s ease-in-out infinite; }
.float-b { animation: floaty 7.8s ease-in-out 1.2s infinite; }
.float-c { animation: floaty 7.1s ease-in-out 2.3s infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ═══════════ Moodulid ═══════════ */
.module { padding: 76px 0; }
.module-alt { background: #efece5; }
.module-head { max-width: 780px; margin: 0 auto 36px; text-align: center; }
.module-kicker {
  color: var(--accent); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px;
}
.module-head h2, .opencode h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.02em; margin-bottom: 14px; }
.module-lead { color: var(--text-2); font-size: 16.5px; }

/* ─── Ekraanipildi raam ─── */
.frame {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); background: #fff;
}
.shot-bar {
  display: flex; align-items: center; gap: 7px;
  background: #f1eee8; border-bottom: 1px solid var(--border);
  padding: 10px 14px;
}
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; }
.shot-bar i:nth-child(1) { background: #e0937f; }
.shot-bar i:nth-child(2) { background: #e2c186; }
.shot-bar i:nth-child(3) { background: #9cc4a4; }
.shot-bar span { margin-left: 10px; font-size: 12.5px; color: var(--text-2); font-weight: 500; }

/* ═══════════ Slaider — üks mooduli kohta ═══════════ */
.slider { position: relative; }
.slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius);
  outline: none;
}
.slides::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  padding: 0 2px; /* varju jaoks õhku */
}
.slide figcaption {
  max-width: 860px; margin: 16px auto 0; text-align: center;
  color: var(--text-2); font-size: 15px; min-height: 72px;
}
.slide figcaption strong { color: var(--text); }
@media (max-width: 720px) { .slide figcaption { min-height: 110px; } }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-70%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); background: rgba(255,255,255,.94);
  box-shadow: 0 6px 20px rgba(10,22,38,.16);
  color: var(--navy); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s, opacity .15s;
  z-index: 2;
}
.slider-btn svg { width: 22px; height: 22px; }
.slider-btn:hover { background: #fff; transform: translateY(-70%) scale(1.06); }
.slider-btn:disabled { opacity: 0; pointer-events: none; }
.slider-btn.prev { left: -12px; }
.slider-btn.next { right: -12px; }
@media (max-width: 1200px) { .slider-btn.prev { left: 8px; } .slider-btn.next { right: 8px; } }
@media (max-width: 720px) { .slider-btn { width: 38px; height: 38px; } }

.slider-dots { display: flex; gap: 9px; justify-content: center; margin-top: 16px; }
.slider-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
  background: #d4cdbf; cursor: pointer; transition: background .15s, transform .15s;
}
.slider-dots button:hover { background: #b3a88f; }
.slider-dots button.on { background: var(--accent); transform: scale(1.25); }

/* ilma JS-ita: nupud/punktid puuduvad, slaidid keritavad sõrmega */
html:not(.js) .slide figcaption { min-height: 0; }

/* ─── Kaardid ─── */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .cards3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: left; }
.card h3 { font-size: 17px; margin-bottom: 9px; letter-spacing: -.01em; }
.card p { color: var(--text-2); font-size: 14.5px; }

/* ═══════════ Integratsioonid ═══════════ */
.integr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .integr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .integr-grid { grid-template-columns: 1fr; } }
.integr-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.integr-card h3 { font-size: 15px; margin-bottom: 12px; letter-spacing: -.01em; }
.pills-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pills-row span {
  padding: 6px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  background: #f2efe8; color: #4a5461; border: 1px solid var(--border);
}
.integr-note { text-align: center; color: var(--text-2); font-size: 14.5px; margin-top: 26px; }

/* ═══════════ Protsess (kuidas me töötame) ═══════════ */
.steps { list-style: none; max-width: 780px; margin: 0 auto; counter-reset: step; }
.step { display: flex; gap: 20px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.step-num {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 18px;
}
.step h3 { font-size: 17px; margin-bottom: 4px; letter-spacing: -.01em; }
.step p { color: var(--text-2); font-size: 15px; }

/* ═══════════ Avatud kood ═══════════ */
.opencode { padding: 82px 0; text-align: center; background: #f1ede4; }
.opencode .module-kicker { color: var(--accent); }
.opencode-lead { color: var(--text-2); font-size: 17px; max-width: 640px; margin: 0 auto 34px; }
.opencode .card { border-color: #ddd3bf; }
.license-note {
  max-width: 720px; margin: 30px auto 0; padding: 16px 22px;
  background: rgba(138,107,58,.06); border: 1px solid #ddd0b4; border-radius: 12px;
  color: var(--text-2); font-size: 14.5px; line-height: 1.55;
}
.license-note a { color: var(--accent); font-weight: 600; }
.license-note a:hover { text-decoration: underline; }

/* ═══════════ KKK ═══════════ */
.faq { padding: 80px 0; background: transparent; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px; font-size: 16.5px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--accent);
  line-height: 1; flex: 0 0 auto; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
  padding: 0 22px 20px; color: var(--text-2); font-size: 15px; max-width: 700px;
}
.faq-item a { color: var(--accent); }

/* ═══════════ Kontakt ═══════════ */
.cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 50% -16%, rgba(90, 102, 124, .28), transparent 70%),
    #343a48; /* veidi heledam jaluse #2a2f3b tooniga sobiv */
  padding: 88px 0; text-align: center;
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.02em; margin-bottom: 16px; }
.cta p { color: #a9b3bf; font-size: 17px; max-width: 640px; margin: 0 auto 38px; }

.contact-cards { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 250px; padding: 26px 30px 24px; border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  text-decoration: none;
  transition: background .15s, transform .15s, border-color .15s;
}
.contact-card:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(201,168,106,.5);
  transform: translateY(-3px);
}
.contact-ico {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,106,.13); color: #d3b988;
  margin-bottom: 12px;
}
.contact-ico svg { width: 21px; height: 21px; }
.contact-label { color: #96a1ad; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.contact-value { color: #fff; font-size: 18px; font-weight: 650; }

/* Kontaktivorm */
.contact-form {
  max-width: 640px; margin: 40px auto 0; text-align: left;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; padding: 28px;
}
.form-title { color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 18px; text-align: center; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label { display: block; color: #b3bcc7; font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: 5px; padding: 11px 13px;
  border-radius: 9px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07); color: #fff; font-size: 15px; font-family: inherit;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #87919c; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--brass); background: rgba(255,255,255,.1);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.form-status { font-size: 14px; }
.form-status.ok { color: #a5cfae; }
.form-status.err { color: #e8a09a; }
.form-consent { color: #87919c; font-size: 12.5px; margin-top: 12px; }

/* ═══════════ Jalus ═══════════ */
.footer { background: #2a2f3b; padding: 46px 0 32px; }
.footer-inner { text-align: center; }
.footer-logo { font-size: 22px; }
.footer-tag { color: #8f99a5; font-size: 14px; margin: 6px 0 0; }
.footer-rule {
  width: 170px; height: 1px; margin: 24px auto;
  background: linear-gradient(90deg, transparent, rgba(201,168,106,.5), transparent);
}
.footer-attribution { color: #c3cbd4; font-size: 15px; margin-bottom: 8px; }
.footer-attribution a { color: var(--brass); text-decoration: none; }
.footer-attribution a strong { color: #fff; font-weight: 700; }
.footer-attribution a:hover { text-decoration: underline; }
.footer-meta { color: #969fab; font-size: 13px; }
.footer-meta a { color: #a4aeb9; }
.footer-meta a:hover { color: #fff; }
.footer-sub {
  margin-top: 12px; color: #5a6472; font-size: 11.5px;
  letter-spacing: .08em; text-transform: uppercase;
}

/* ─── Ilmumine kerimisel (ainult kui JS on olemas) ─── */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ─── Vähendatud liikumine ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slides { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .fol .bound-d, .float-a, .float-b, .float-c { animation: none; }
}

/* ═══════════ Avalehe/moodulilehtede lisad (tablebook.ee restruktuur) ═══════ */

/* "Loe lähemalt" rida mooduli sektsiooni lõpus */
.module-more { text-align: center; margin-top: 26px; }
.btn-outline {
  display: inline-block; padding: 11px 24px; border-radius: 10px;
  background: transparent; color: var(--accent); text-decoration: none;
  font-weight: 600; font-size: 15px; border: 1.5px solid var(--accent);
  transition: background .15s, color .15s, transform .15s;
}
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

/* Moodulilehe kompaktne hero */
.page-hero {
  background:
    radial-gradient(900px 420px at 50% -16%, rgba(46, 66, 88, .5), transparent 70%),
    var(--navy);
  padding: 64px 0 56px; text-align: center;
}
.page-hero .module-kicker { color: var(--brass); }
.page-hero h1 {
  color: #fff; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12;
  font-weight: 800; letter-spacing: -.025em; margin-bottom: 16px;
}
.page-hero .lead { color: #a9b3bf; font-size: clamp(16px, 2vw, 18.5px); max-width: 720px; margin: 0 auto 26px; }
.page-hero .hero-cta { margin-bottom: 0; }
.breadcrumb { margin-bottom: 18px; font-size: 13.5px; }
.breadcrumb a { color: #c9b78d; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span { color: #6b7684; margin: 0 7px; }

/* Hinnaplaanid (hele variant vana tumeda #hind asemel) */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; } }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; text-align: left; position: relative; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 12px 40px rgba(138,107,58,.14); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -.01em; }
.price-value { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.price-value small { font-size: 14px; font-weight: 500; color: var(--text-2); }
.price-note { color: var(--text-2); font-size: 13.5px; margin-bottom: 16px; }
.price-feats { list-style: none; margin: 0 0 22px; flex: 1; }
.price-feats li {
  padding: 7px 0 7px 26px; position: relative; color: var(--text-2); font-size: 14.5px;
  border-bottom: 1px dashed var(--border);
}
.price-feats li:last-child { border-bottom: none; }
.price-feats li::before { content: "✓"; position: absolute; left: 2px; color: #4a7c59; font-weight: 700; }
.pricing-note { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 24px; }

/* Registreerimisvorm heledal taustal */
.reg { padding: 78px 0; background: #efece5; }
.reg-form {
  max-width: 640px; margin: 34px auto 0; text-align: left;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; box-shadow: var(--shadow);
}
.reg-form label { display: block; color: var(--text-2); font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.reg-form input, .reg-form textarea {
  width: 100%; margin-top: 5px; padding: 11px 13px;
  border-radius: 9px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-size: 15px; font-family: inherit;
}
.reg-form input:focus, .reg-form textarea:focus { outline: none; border-color: var(--accent); }
.reg-form .form-status.ok { color: #3f7d54; }
.reg-form .form-status.err { color: #b3453c; }
.reg-form .form-consent { color: var(--text-2); }

/* Jaluse litsentsiriba: GitHub + CPAL-tooltip */
.footer-license { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.gh-link { color: #a4aeb9; display: inline-flex; vertical-align: middle; margin-right: 6px; }
.gh-link:hover { color: #fff; }
.gh-link svg { display: block; }
.has-tooltip { position: relative; display: inline-flex; align-items: center; gap: 5px; }
.lic-info {
  width: 16px; height: 16px; border-radius: 50%; border: 1px solid #79838f;
  background: none; color: #a4aeb9; font-size: 11px; line-height: 1;
  cursor: help; font-family: inherit; padding: 0;
}
.lic-info:hover, .lic-info:focus { color: #fff; border-color: #fff; }
.tooltip {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  width: min(400px, 86vw); background: var(--navy-2); color: #dde2e8;
  text-align: left; font-size: 13px; line-height: 1.55; padding: 14px 16px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 60;
}
.tooltip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--navy-2);
}
.has-tooltip:hover .tooltip, .has-tooltip:focus-within .tooltip { opacity: 1; visibility: visible; }
@media (max-width: 720px) {
  .tooltip { left: auto; right: -20px; transform: none; }
  .tooltip::after { left: auto; right: 30px; transform: none; }
}

/* Moodulilehe topnav: aktiivne moodul */
.topnav-links a[aria-current="page"] { color: #fff; border-bottom: 2px solid var(--brass); padding-bottom: 3px; }
.topnav-back { color: #c9b78d; text-decoration: none; font-size: 14px; font-weight: 500; }
.topnav-back:hover { color: #fff; }

/* Moodulilehe eelmine/järgmine navigatsioon */
.module-nav-wrap { padding: 34px 0; }
.module-nav { display: flex; align-items: stretch; justify-content: space-between; gap: 14px; }
.module-nav-link {
  display: flex; flex-direction: column; gap: 3px; justify-content: center;
  padding: 16px 20px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); min-width: 200px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.module-nav-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.module-nav-dir { color: var(--text-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.module-nav-name { color: var(--text); font-size: 16.5px; font-weight: 700; }
.module-nav-next { text-align: right; align-items: flex-end; }
.module-nav-all { justify-content: center; align-items: center; color: var(--accent); font-weight: 600; min-width: 0; }
@media (max-width: 720px) {
  .module-nav { flex-wrap: wrap; }
  .module-nav-all { order: 3; width: 100%; padding: 12px; }
  .module-nav-link { flex: 1; min-width: 150px; }
}

/* ═══════════ Juriidiline tekstileht (privaatsus jm) ═══════════ */
.legal-body { max-width: 760px; margin: 0 auto; text-align: left; }
.legal-updated { color: #a9b3bf; font-size: 13.5px; }
.legal-intro { color: var(--text-2); font-size: 17px; margin-bottom: 12px; }
.legal-body h2 { font-size: 20px; letter-spacing: -.01em; margin: 26px 0 8px; }
.legal-body p { color: var(--text-2); font-size: 15.5px; line-height: 1.65; }
.legal-body a { color: var(--accent); font-weight: 600; }
.legal-body a:hover { text-decoration: underline; }
