:root {
  --color-primary: #4c8fff;
  --color-primary-dark: #3a7ae8;
  --color-ink: #0f172a;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-surface: #ffffff;
  --color-alt: #f1f5f9;
  --color-hero-tint: #e8f1ff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 23, 42, 0.1);
  --radius: 12px;
  --radius-pill: 999px;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1100px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-surface);
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--color-ink);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 720px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

.brand-logo {
  width: auto;
  max-height: 40px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--color-ink);
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem !important;
  border: none !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--color-primary-dark);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    padding: 1.25rem 1.5rem 2rem;
    gap: 0.5rem;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Hero — taust: Pexels (sinakash pilvine taev), üle kerge valge kile loetavuseks */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-alt);
  padding: 3.5rem 0 3.75rem;
  border-bottom: 1px solid var(--color-border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #b8c6d9;
  background-image:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.9) 28%,
      rgba(232, 241, 255, 0.55) 55%,
      rgba(76, 143, 255, 0.12) 100%
    ),
    url("/static/images/hero-bg.jpg");
  background-size: cover;
  background-position: center 35%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

@media (min-width: 1100px) {
  .hero-content {
    max-width: 44rem;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 1rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.text-highlight {
  color: var(--color-primary);
}

.lead {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin: 0 0 1.5rem;
}

.hero .lead {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.lead strong {
  color: var(--color-ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s;
}

button.button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.button-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.button-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hero-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #475569;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
}

.pill-ico {
  flex-shrink: 0;
  color: var(--color-primary);
  opacity: 0.9;
}

.hero .button-ghost {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(148, 163, 184, 0.5);
  backdrop-filter: blur(4px);
}

.hero .button-ghost:hover,
.hero .button-ghost:focus-visible {
  background: #fff;
  border-color: var(--color-primary);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.75rem;
  max-width: 36rem;
}

@media (max-width: 600px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

.hero-stat {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
}

.hero-stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hero-stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.25;
}

/* Probleem: split with image */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .split-block {
    grid-template-columns: 1fr;
  }
}

.split-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  background: var(--color-alt);
}

.split-img img {
  width: 100%;
  height: auto;
  display: block;
}

.split-text h2 {
  margin-top: 0;
}

.split-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.9rem 1rem;
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid var(--color-primary);
  color: var(--color-muted);
  font-size: 0.98rem;
}

.inline-ico {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 0.1rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-alt);
}

.section h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-lead,
.section-head p {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
}

.section-lead {
  max-width: 70ch;
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.section-head p {
  margin: 0;
}

/* Cards */
.grid.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .grid.cards-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.card-elevated {
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s;
}

.card-elevated:hover {
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
  border-color: rgba(76, 143, 255, 0.35);
  transform: translateY(-2px);
}

.card-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8f1ff, #f0f7ff);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card-svg {
  display: block;
}

.card h3 {
  font-size: 1.2rem;
  margin: 0.25rem 0 0.75rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
}

.card p strong {
  color: var(--color-ink);
}

/* Process: 4 sammu */
.section-process {
  background: linear-gradient(180deg, #fff 0%, var(--color-alt) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.process-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

@media (max-width: 1000px) {
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1.25rem;
  }
}

@media (max-width: 520px) {
  .process-timeline {
    grid-template-columns: 1fr;
  }
}

.process-step {
  position: relative;
  padding: 0 0.9rem 1.5rem;
  text-align: center;
}

@media (min-width: 1001px) {
  .process-step:not(:last-child) {
    border-right: 1px dashed rgba(76, 143, 255, 0.4);
  }
}

.process-ring {
  position: relative;
  z-index: 1;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(76, 143, 255, 0.25);
  color: var(--color-primary);
  overflow: hidden;
}

.process-ico {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 0.12;
  pointer-events: none;
}

.process-num {
  position: relative;
  z-index: 1;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
}

.process-step h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  color: var(--color-ink);
}

.process-step p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 36ch;
  margin-inline: auto;
}

/* Channels */
.grid.channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 700px) {
  .grid.channels {
    grid-template-columns: 1fr 1fr;
  }
}

.channel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  font-size: 0.98rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.channel:hover {
  border-color: rgba(76, 143, 255, 0.4);
  box-shadow: 0 4px 16px rgba(76, 143, 255, 0.1);
}

.channel-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8f1ff, #f8fafc);
  color: var(--color-primary);
  flex-shrink: 0;
}

.channel-name {
  line-height: 1.2;
}

.channel-wide {
  grid-column: 1 / -1;
  justify-content: center;
  text-align: left;
  max-width: 720px;
  margin-inline: auto;
}

.channel-wide .channel-ico {
  margin-inline: 0;
}

/* Two col + checklist */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.two-col-mobiil {
  align-items: center;
  gap: 2.5rem;
}

.mobiil-copy .section-lead {
  margin-bottom: 1.25rem;
}

.mobiil-visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 801px) {
  .mobiil-visual {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Teavituste näidised (e-post + SMS) — eraldi äpp ei ole vajalik */
.notify-demo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem 1rem;
  border-radius: 16px;
  background: linear-gradient(165deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.notify-item {
  margin: 0;
}

.notify-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.notify-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  color: #fff;
}

.notify-badge-sms {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.notify-badge-mail {
  background: linear-gradient(135deg, #4c8fff, #3a7ae8);
}

.notify-time {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.notify-sms-bubble {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px 12px 12px 4px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.notify-sms-bubble strong {
  color: var(--color-primary);
  font-size: 0.85rem;
}

.notify-mail .notify-item-head {
  margin-bottom: 0.4rem;
}

.notify-mail-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 0.86rem;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.notify-mail-line {
  margin: 0 0 0.4rem;
  color: var(--color-ink);
}

.notify-mail-line:last-of-type {
  margin-bottom: 0;
}

.notify-mail-subj {
  font-weight: 600;
}

.notify-mail-k {
  color: var(--color-muted);
  font-weight: 500;
  margin-right: 0.25rem;
}

.notify-mail-body {
  margin: 0.5rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px dashed #e2e8f0;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.45;
}

.mobiil-caption {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  text-align: left;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.55;
  margin: 0;
}

.mobiil-caption-ico {
  display: flex;
  flex-shrink: 0;
  margin-top: 0.12rem;
  color: var(--color-primary);
}

.mobiil-caption-ico svg {
  display: block;
}

.mobiil-caption-text {
  flex: 1;
  min-width: 0;
  text-wrap: pretty;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.9rem;
  color: var(--color-muted);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.25rem;
  text-align: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #2563eb);
  box-shadow: 0 1px 3px rgba(76, 143, 255, 0.4);
}

/* Kasutus: header strip */
.section-use .section-lead {
  margin-bottom: 0;
}

.use-head {
  display: flex;
  gap: 1.5rem 2rem;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.use-strip-img {
  width: 180px;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(160deg, #f4f4f5, #e4e4e7);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
  aspect-ratio: 1;
}

.use-head h2 {
  margin: 0 0 0.5rem;
}

/* Tags */
.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}

.tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, transform 0.15s;
}

.tags li:hover {
  border-color: rgba(76, 143, 255, 0.35);
  transform: translateY(-1px);
}

.tag-ico {
  color: var(--color-primary);
  flex-shrink: 0;
  opacity: 0.9;
}

/* Contact */
.section-contact {
  background: linear-gradient(180deg, #fff 0%, var(--color-alt) 100%);
  border-top: 1px solid var(--color-border);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

.contact-intro h2 {
  margin-top: 0;
}

.contact-ico {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8f1ff, #f0f7ff);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.fine-print {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

.inline-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(76, 143, 255, 0.4);
}

.inline-link:hover,
.inline-link:focus-visible {
  border-bottom-color: var(--color-primary);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem 1.25rem 1.75rem;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .form-row.two {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--color-ink);
}

.req {
  color: #dc2626;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(76, 143, 255, 0.2);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  min-height: 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.form-status.is-ok {
  color: #15803d;
}

.form-status.is-err {
  color: #b91c1c;
}

.form-actions {
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0 2.5rem;
  background: #fff;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

.site-footer p {
  margin: 0;
}
