/* FieldFix — avaleht. Värvid ja mõõdud nagu rakenduses (lib/core/constants/app_design.dart). */
/* Fondid omast serverist (GDPR: lehte avades ei lähe külastaja aadress Google'ile). Muutuvad fondid, SIL OFL 1.1 — fonts/LICENSE.txt. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700 800; font-display: swap; src: url(/fonts/montserrat-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700 800; font-display: swap; src: url(/fonts/montserrat-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/roboto-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/roboto-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --primary: #2459d3;
  --primary-dark: #163e9e;
  --navy: #15283f;
  --ink: #202a39;
  --ink-2: #3d4a5c;
  --muted: #586577;
  --bg: #f3f5f7;
  --surface: #ffffff;
  --line: #dce3ec;
  --line-strong: #b2becd;
  --tint: #e2eaff;
  --ok: #196745;
  --ok-bg: #edf7f1;
  --warn: #89570c;
  --bad: #ad3344;
  --mint: #a8f0d1;
  --radius: 12px;
  --display: Montserrat, "Segoe UI", system-ui, sans-serif;
  --text: Roboto, "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); line-height: 1.5; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
img, svg { display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
.section { padding-block: 80px; }
.display { font-family: var(--display); letter-spacing: -0.02em; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -0.02em; }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* Nupud */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); font-weight: 500; }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-2); }

/* Päis */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand-name span { color: var(--primary); }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 24px; flex: 1 1 320px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 14px; color: var(--muted); }
.lang b { color: var(--ink); }

/* Esimene ekraan */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 64px 56px; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; } }
.hero-copy { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pill { align-self: flex-start; background: var(--tint); color: var(--primary-dark); font-weight: 500; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.025em; }
.hero h1 .nowrap { white-space: nowrap; }
@media (max-width: 420px) { .hero h1 .nowrap { white-space: normal; } }
@media (max-width: 380px) { .hero h1 { font-size: 26px; } }
@media (max-width: 340px) { .hero h1 { font-size: 23px; } }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { font-size: 19px; max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; padding: 0; margin: 0; list-style: none; }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks svg, .tick { flex: none; }

.hero-visual { min-width: 0; position: relative; padding-bottom: 185px; }
.window { background: var(--surface); border: 1px solid #c9d4e1; border-radius: 14px; box-shadow: 0 30px 70px rgba(21, 40, 63, 0.18); overflow: hidden; margin-right: 36px; }
.window-bar { background: #e5eaf1; padding: 10px 14px; display: flex; gap: 6px; }
.window-bar i { width: 10px; height: 10px; border-radius: 999px; background: var(--line-strong); }
.window-body { padding: 16px 16px 72px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.window-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.window-title { font-family: var(--display); font-weight: 700; font-size: 17px; }
.badge { border-radius: 999px; padding: 3px 10px; font-weight: 500; font-size: 12px; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.row { display: grid; grid-template-columns: 1.3fr 1fr 0.9fr; gap: 8px; align-items: center; border-radius: 8px; padding: 9px 10px; }
.row-head { color: var(--muted); font-weight: 500; padding-block: 0; }
.row-item { background: var(--bg); }
.row-item b { font-weight: 700; }
.st-ok { color: var(--ok); font-weight: 500; }
.st-warn { color: var(--warn); font-weight: 500; }
.st-work { color: var(--primary); font-weight: 500; }

.phone { position: absolute; right: 0; bottom: 0; width: 230px; background: var(--navy); border-radius: 30px; padding: 9px; box-shadow: 0 24px 50px rgba(21, 40, 63, 0.35); }
.phone-screen { background: #e6ecf3; border-radius: 22px; overflow: hidden; }
.phone-top { background: var(--navy); color: #fff; padding: 12px; font-family: var(--display); font-weight: 700; font-size: 15px; }
.phone-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.phone-card { background: #fff; border-radius: 12px; padding: 10px; border: 1px solid #c9d4e1; }
.phone-card b { display: block; }
.phone-card span { color: #4b6077; }
.phone-btn { text-align: center; border-radius: 10px; padding: 10px; font-weight: 700; }
.phone-btn.ok { background: var(--ok); color: #fff; }
.phone-btn.alt { background: #fff; border: 1px solid #c9d4e1; font-weight: 400; }

.integrations { border-top: 1px solid #e5eaf1; }
.integrations ul { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 18px; margin: 0 auto; list-style: none; font-size: 15px; color: var(--muted); }
.integrations li:first-child { font-weight: 500; color: var(--ink); }

/* Mured */
.pairs { display: flex; flex-direction: column; gap: 12px; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.pain, .fix { border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.45; }
.pain { background: var(--surface); border: 1px solid var(--line); }
.pain svg, .fix svg { flex: none; margin-top: 1px; }
.fix { background: var(--ok-bg); }

/* Tume plokk */
.dark { background: var(--navy); color: #fff; }
.dark-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-block: 72px; }
.dark-copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--mint); }
.dark .lead { color: #c9d4e1; }
.flow { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.flow li { background: #1b3350; border: 1px solid #2b4466; border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.num { width: 36px; height: 36px; border-radius: 999px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.n1 { background: #3a2030; color: #ffb3bc; }
.n2 { background: #1e2b4a; color: #a8c4ff; }
.n3 { background: #183b2e; color: var(--mint); }

/* Rollid */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-title { font-family: var(--display); font-weight: 800; font-size: 24px; }
.card-sub { font-size: 14px; color: var(--muted); }
.card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }

/* Alustamine */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps .num { width: 48px; height: 48px; background: var(--primary); color: #fff; font-size: 19px; }
.steps h3 { font-size: 19px; }
.steps p { font-size: 16px; color: var(--ink-2); }
.note { background: var(--tint); border-radius: var(--radius); padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; justify-content: space-between; color: var(--primary-dark); font-size: 17px; }
.note a { color: var(--primary-dark); font-weight: 700; }

/* KKK */
.faq > .stack { max-width: 900px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.faq summary { font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 12px; font-size: 16px; color: var(--ink-2); }

/* Hind ja vorm */
.contact-grid { display: flex; flex-wrap: wrap; gap: 24px; padding-bottom: 80px; }
.price { flex: 1 1 320px; background: var(--navy); color: #fff; border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.price-value { font-family: var(--display); font-weight: 800; font-size: 44px; }
.price-terms { color: #c9d4e1; }
.price ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price li { display: flex; gap: 10px; align-items: center; }
.form-card { flex: 1 1 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.form input, .form select { font: inherit; font-weight: 400; padding: 12px; border: 1px solid var(--line-strong); border-radius: 8px; min-height: 46px; background: #fff; color: var(--ink); }
.form .btn { justify-self: start; }
.small { font-size: 14px; color: var(--muted); }

/* Jalus */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-block: 28px; font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  .section { padding-block: 56px; }
  .hero-grid { padding-block: 40px; }
  .window { margin-right: 0; }
  .phone { position: static; width: 230px; margin: -28px 0 0 auto; }
  .hero-visual { padding-bottom: 0; }
  .price, .form-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Suured monitorid (1920…3440): sama paigutus, suurem mõõtkava — et lehekülg ei jääks ekraani keskele väikeseks. */
@media (min-width: 1700px) { body { zoom: 1.15; } }
@media (min-width: 2200px) { body { zoom: 1.35; } }
@media (min-width: 3000px) { body { zoom: 1.6; } }

/* Tekstilehed (privaatsus, 404). */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 32px 0 8px; }
.doc p { color: var(--ink-2); margin: 0 0 12px; }
.doc a { color: var(--primary); }
.doc-meta { color: var(--muted); font-size: 15px; }
