/* AKTIVA RMP · Novu — the client's own logo and fonts, green for money, deep petrol for trust,
   the page drawn as a spreadsheet. Minu Novu version: the client edits the data-novu spots themselves. */
/* fonts are served from the site itself, so no visitor data goes to Google */
@font-face { font-family: "EB Garamond"; font-style: normal; font-display: swap; font-weight: 400 800; src: url(fonts/eb-garamond-latin-ext-wght-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-display: swap; font-weight: 400 800; src: url(fonts/eb-garamond-latin-wght-normal.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: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-sans-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-sans-latin-400-normal.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: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-sans-latin-ext-500-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-sans-latin-500-normal.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: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/ibm-plex-sans-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/ibm-plex-sans-latin-600-normal.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: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-mono-latin-ext-500-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-mono-latin-500-normal.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 {
  --paper: oklch(0.985 0.004 165);
  --paper-2: oklch(0.963 0.008 165);
  --sheet: oklch(0.997 0.002 165);
  --grid: oklch(0.925 0.012 165);
  --line: oklch(0.885 0.014 170);
  --line-2: oklch(0.8 0.016 170);
  --ink: oklch(0.21 0.02 178);
  --ink-2: oklch(0.4 0.02 178);
  --ink-3: oklch(0.5 0.018 178);
  --green: oklch(0.47 0.11 155);
  --green-hi: oklch(0.4 0.1 157);
  --mint: oklch(0.955 0.03 155);
  --forest: oklch(0.3 0.055 185);
  --forest-deep: oklch(0.25 0.045 185);
  --forest-line: oklch(0.37 0.05 185);
  --forest-cell: oklch(0.35 0.06 175);
  --on-forest: oklch(0.96 0.012 160);
  --on-forest-2: oklch(0.8 0.03 170);
  --lime: oklch(0.86 0.13 150);
  --serif: 'EB Garamond', Garamond, Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --cw: 128px;
  --rh: 32px;
  --rowhead: 0px;
  --top-h: 72px;
  --col-h: 24px;
  --head-h: calc(var(--top-h) + var(--col-h));
  --gutter: clamp(16px, 4.5vw, 52px);
  color-scheme: light;
}
@media (min-width: 1100px) { :root { --rowhead: 40px; } }
@media (max-width: 899px) { :root { --top-h: 64px; --col-h: 22px; --cw: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
/* smooth scrolling to anchors is done in main.js (wireAnchors): CSS scroll-behavior and ScrollTrigger's refresh on
   load cancel each other in Chrome, and links from other pages to index.html#kontakt landed at the top */
body {
  position: relative; margin: 0; color: var(--ink); font: 400 1.0625rem/1.62 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: var(--cw) var(--rh);
  background-position: var(--rowhead) var(--head-h);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure, figcaption, table { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--mint); color: var(--ink); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: var(--paper); border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.ic { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
main > section, .foot { position: relative; z-index: 1; }

/* spreadsheet chrome: row numbers down the left, column letters under the header */
.rowbar { display: none; position: absolute; left: 0; top: var(--head-h); bottom: 0; overflow: hidden; z-index: 0; width: var(--rowhead); background: var(--paper-2); border-right: 1px solid var(--line); }
.rowbar span { position: absolute; left: 0; width: 100%; height: var(--rh); display: grid; place-items: center; font: 500 .66rem/1 var(--mono); color: var(--ink-3); border-bottom: 1px solid var(--grid); }
@media (min-width: 1100px) { .rowbar { display: block; } }
.colbar { display: flex; height: var(--col-h); padding-left: var(--rowhead); overflow: hidden; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.colbar span { flex: none; width: var(--cw); display: grid; place-items: center; border-left: 1px solid var(--line); font: 500 .66rem/1 var(--mono); color: var(--ink-3); }
.colbar span:first-child { border-left-color: var(--line); }

/* type */
.kicker { display: inline-flex; align-items: center; gap: .6rem; font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.kicker::before { content: ''; flex: none; width: .7rem; height: .7rem; border: 1.5px solid var(--green); background: var(--mint); }
.h2 { font: 600 clamp(2rem, 3.7vw, 3.25rem)/1.16 var(--serif); letter-spacing: -.012em; margin-top: 1rem; text-wrap: balance; }
.sec-lede { color: var(--ink-2); max-width: 46ch; margin-top: 1rem; }

/* the signature: a selected spreadsheet cell, green frame + fill handle */
.sel { position: relative; z-index: 0; white-space: nowrap; margin-inline: .08em; }
.sel::before { content: ''; position: absolute; z-index: -1; inset: .1em -.18em -.13em -.18em; background: var(--mint); border: 2px solid var(--green); opacity: 0; transform: scale(.97); transition: opacity .16s ease-out, transform .28s var(--ease); }
.sel::after { content: ''; position: absolute; right: calc(-.18em - 4px); bottom: calc(-.13em - 4px); width: 8px; height: 8px; background: var(--green); border: 1.5px solid var(--sheet); opacity: 0; transition: opacity .16s ease-out .12s; }
.sel.is-on::before { opacity: 1; transform: none; }
.sel.is-on::after { opacity: 1; }

/* buttons */
.btn { --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .55em; height: var(--h); padding: 0 1.3em; border-radius: 6px; border: 1.5px solid transparent; font: 600 .98rem/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .16s var(--ease); }
.btn:active { transform: scale(.97); }
.btn .ic { transition: transform .25s var(--ease); }
.btn-green { background: var(--green); color: var(--sheet); }
.btn-line { border-color: var(--ink); color: var(--ink); background: var(--sheet); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-ghost { border-color: var(--forest-line); color: var(--on-forest); }
.btn-sm { --h: 40px; padding: 0 1em; font-size: .93rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-green:hover { background: var(--green-hi); }
  .btn-line:hover { background: var(--ink); color: var(--paper); }
  .btn-lime:hover { background: oklch(0.91 0.1 150); }
  .btn-ghost:hover { border-color: var(--lime); }
  .btn:hover use[href="#i-arrow"] { transform: translateX(3px); }
}

/* header */
.top { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.top-in { height: var(--top-h); display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); fill: currentColor; }
.brand-mark { width: 54px; height: 47px; }
.brand-word { width: 200px; height: 16.6px; }
/* client 24.11: the logo and the name a little bigger (about a fifth). Between 900 and 959 px it keeps the size above,
   so the menu beside it stays on one line. */
@media (min-width: 960px) {
  .brand { gap: 1.05rem; }
  .brand-mark { width: 65px; height: 56px; }
  .brand-word { width: 240px; height: 19.9px; }
}
.nav { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav-link { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .8rem; border: 0; border-radius: 6px; background: none; font: 500 .96rem/1 var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; transition: background-color .18s var(--ease); }
.nav-link .ic { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.nav-link[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
@media (hover: hover) and (pointer: fine) { .nav-link:hover { background: var(--mint); } }
.nav-link[aria-expanded="true"] { background: var(--mint); }
.nav-cta { margin-left: .6rem; }

.dd { position: relative; display: flex; align-items: center; }
/* "Teenused" opens the services page; the arrow beside it (or hovering with a mouse) opens the list. One pill for both. */
.dd-link { padding-right: .3rem; border-radius: 6px 0 0 6px; }
.dd-btn { padding-left: .3rem; padding-right: .55rem; border-radius: 0 6px 6px 0; }
.dd.is-open .dd-link { background: var(--mint); }
@media (hover: hover) and (pointer: fine) { .dd:hover .dd-link, .dd:hover .dd-btn { background: var(--mint); } }
.dd-panel { position: absolute; top: calc(100% + 10px); left: -10px; width: 330px; padding: 6px; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 24px 50px -28px oklch(0.21 0.02 178 / .45); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: 40px 0; transition: opacity .15s ease-out, transform .2s var(--ease), visibility 0s linear .2s; }
.dd-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dd.is-open .dd-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .15s ease-out, transform .22s var(--ease), visibility 0s; }
.dd-list a { position: relative; display: grid; gap: 3px; padding: .7rem .85rem; border-radius: 6px; text-decoration: none; transition: background-color .15s var(--ease); }
.dd-list b { font-weight: 600; font-size: 1rem; }
.dd-list span { font-size: .87rem; color: var(--ink-3); }
.dd-list a:hover, .dd-list a:focus-visible { background: var(--mint); outline: none; box-shadow: inset 0 0 0 2px var(--green); }

.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--sheet); cursor: pointer; }
.menu-btn .ic { width: 22px; height: 22px; }
.menu-btn .ic-shut, .menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-shut { display: block; }
.mnav { display: none; background: var(--paper); height: calc(100dvh - var(--head-h)); overflow-y: auto; overscroll-behavior: contain; }
.mnav .wrap { padding-block: 1rem 1.4rem; }
.mnav-k { font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: .4rem 0 .3rem; }
.mnav-list a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); font: 600 1.35rem/1.2 var(--serif); text-decoration: none; }
.mnav-sub { display: block; margin-top: .3rem; font: 400 .9rem/1.35 var(--sans); color: var(--ink-3); }
.mnav-2 { margin-top: 1.1rem; border-top: 2px solid var(--ink); }
.mnav-2 a { font: 600 1.35rem/1.2 var(--serif); }
.mnav-call { width: 100%; margin-top: 1.2rem; }
@media (max-width: 899px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .top.is-open .mnav { display: block; }
  .brand { gap: .95rem; }
  .brand-mark { width: 55px; height: 48px; }
  .brand-word { width: 187px; height: 15.6px; }
}
@media (max-width: 370px) { .brand-mark { width: 50px; height: 43px; } .brand-word { width: 154px; height: 12.8px; } }

/* hero */
.hero { padding: clamp(2.4rem, 5vw, 4.4rem) 0 clamp(3rem, 6vw, 5.2rem); }
.hero-in { display: grid; grid-template-columns: minmax(0, 6.3fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-title { font: 600 clamp(2.4rem, 5.4vw, 4.9rem)/1.02 var(--serif); letter-spacing: -.012em; margin-top: 1.2rem; hyphens: manual; }
.ln { display: block; overflow: clip; overflow-clip-margin: .3em; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: inline-block; }
.hero-title.is-done .ln { overflow: visible; }
/* the smallest phones (320 px): the green box lines ("mitte lihtsalt büroo", "millele saate kindel olla.") still fit.
   The home, Raamatupidamine and Hinnad headlines size themselves to their longest word below. */
@media (max-width: 340px) { .hero-title { font-size: 2.2rem; } .h2 { font-size: 1.85rem; } }
/* client 24.11 ("see sidekriips"): a long word never breaks with a hyphen in a headline. The headline is never bigger
   than its longest word allows in its column (cqi is 1 % of the column): "Raamatupidamisteenus," is 9.52em, so 10.2cqi
   leaves about 3 % of air. The soft hyphen in the text stays as the fallback: for a browser without container units,
   and for a longer word if the text is changed in Minu Novu. */
.hero-copy { container-type: inline-size; }
.page-home .hero-title { font-size: min(clamp(2.4rem, 5.4vw, 4.9rem), 10.2cqi); }
.hero-lede { color: var(--ink-2); font-size: 1.12rem; line-height: 1.6; max-width: 44ch; margin-top: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
@media (max-width: 959px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  /* phones and tablets (client 27.09): the first screen holds only the headline, text and the two buttons, whatever the
     phone's height; the sample sheet starts below the fold and appears on the first scroll */
  .hero { padding-top: 1.4rem; }
  .hero-copy { min-height: calc(100vh - var(--head-h) - 1.4rem); min-height: calc(100svh - var(--head-h) - 1.4rem);
    display: flex; flex-direction: column; justify-content: center; padding-bottom: 1.4rem; }
}
@media (max-width: 560px) { .hero-lede { font-size: 1.04rem; } .hero-cta .btn { flex: 1 1 auto; } }
.hero-more { display: inline-flex; align-self: flex-start; align-items: center; gap: .45rem; margin-top: 1.1rem; font-weight: 600; color: var(--green); text-decoration: none; }
.hero-more .ic { transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .hero-more:hover .ic { transform: translateX(4px); } }

/* concept 1: a photo of the work with the sheet laid over it like a printout on the desk.
   Stock placeholders until the client's own photos arrive; each one says so on the photo. */
.hero-media { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.hero-media > .ph { grid-column: 3 / -1; grid-row: 1; }
.hero-media > .xl { position: relative; z-index: 1; grid-column: 1 / 12; grid-row: 2; margin-top: -6.5rem; }
.hm-about > .ph { grid-column: 5 / -1; }
.hm-about > .xl { margin-top: -8.5rem; }
@media (min-width: 560px) and (max-width: 959px) {
  .hero-media > .ph { grid-column: 5 / -1; }
  .hero-media > .xl { grid-column: 1 / 9; margin-top: -11rem; }
  .hm-about > .ph { grid-column: 6 / -1; }
  .hm-about > .xl { grid-column: 1 / 9; margin-top: -15rem; }
}
/* a phone (Ats 22.10): the sample sheet says nothing at this size; the photo stays */
@media (max-width: 767px) { .hero-media > #desk { display: none; } }
@media (max-width: 559px) {
  .hero-media > .ph { grid-column: 2 / -1; }
  .hero-media > .xl { grid-column: 1 / -1; margin-top: -3rem; }
  .hm-about > .ph { grid-column: 4 / -1; }
  .hm-about > .xl { margin-top: -4rem; }
}
.ph { position: relative; margin: 0; overflow: hidden; border-radius: 10px; background: var(--paper-2); }
.ph::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px oklch(0.21 0.02 178 / .1); pointer-events: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-hero { aspect-ratio: 4 / 3; }
.ph-portrait, .ph-docs { aspect-ratio: 4 / 5; }
.ph-meet { aspect-ratio: 3 / 2; }
/* the placeholder note reads like a cell comment */
.ph-note { position: absolute; z-index: 2; left: .7rem; top: .7rem; display: grid; gap: .18rem; max-width: min(15rem, calc(100% - 1.4rem)); padding: .5rem .7rem .55rem; border: 1px solid var(--line-2); border-radius: 4px; background: var(--sheet); box-shadow: 0 10px 24px -16px oklch(0.21 0.02 178 / .55); font: 500 .8rem/1.3 var(--sans); color: var(--ink-2); }
.ph-note b { display: inline-flex; align-items: center; gap: .45rem; font: 500 .64rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.ph-note b::before { content: ''; flex: none; width: .55rem; height: .55rem; border: 1.5px solid var(--green); background: var(--mint); }

/* the spreadsheet window */
.xl { --rnw: 2rem; --c1: 4.5rem; --c3: 6.5rem; --c4: 1.6rem; margin: 0; overflow: clip; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 1px 0 oklch(0.21 0.02 178 / .05), 0 34px 64px -42px oklch(0.21 0.02 178 / .5); }
.xl-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem; background: var(--forest); color: var(--on-forest); font: 500 .82rem/1.2 var(--sans); }
.xl-bar .xl-file { margin: 0; font: inherit; letter-spacing: inherit; text-transform: none; }
.xl-mo { color: var(--on-forest-2); }
.xl-fx { display: grid; grid-template-columns: 3.4rem 2rem minmax(0, 1fr); align-items: stretch; border-bottom: 1px solid var(--line); font: 500 .8rem/1 var(--mono); }
.xl-fx > span { display: flex; align-items: center; min-height: 32px; }
.xl-ref { justify-content: center; border-right: 1px solid var(--line); color: var(--ink-2); }
.xl-f { justify-content: center; border-right: 1px solid var(--line); font: italic 500 1rem/1 var(--serif); color: var(--ink-3); }
.xl-formula { padding: 0 .7rem; white-space: nowrap; overflow: hidden; }
.xl-grid { position: relative; font-size: .9rem; }
.xl-row { display: grid; grid-template-columns: var(--rnw) var(--c1) minmax(0, 1fr) var(--c3) var(--c4); height: 38px; }
.xl-row > span { display: flex; align-items: center; min-width: 0; padding: 0 .55rem; border-right: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.xl-row > span:last-child { border-right: 0; }
.xl-cols { height: 24px; background: var(--paper-2); }
.xl-cols > span { justify-content: center; font: 500 .68rem/1 var(--mono); color: var(--ink-3); border-color: var(--line); }
.rn { justify-content: center !important; padding: 0 !important; background: var(--paper-2); font: 500 .68rem/1 var(--mono); color: var(--ink-3); }
.xl-head > span { font-weight: 600; font-size: .76rem; letter-spacing: .02em; color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.num { justify-content: flex-end; text-align: right; font-variant-numeric: tabular-nums; }
.xl-body { position: relative; }
.ledger { position: absolute; top: 0; left: var(--rnw); right: 0; }
.entry { position: relative; isolation: isolate; display: grid; grid-template-columns: var(--c1) minmax(0, 1fr) var(--c3) var(--c4); align-items: center; height: 38px; font-variant-numeric: tabular-nums; }
.entry > span:not(.paper) { padding: 0 .55rem; min-width: 0; }
.paper { position: absolute; inset: 3px -6px; z-index: -1; border: 1px solid var(--line); border-radius: 3px; background: var(--sheet); box-shadow: 0 12px 20px -14px oklch(0.21 0.02 178 / .55); opacity: 0; }
.e-d { color: var(--ink-3); font-size: .84rem; }
.e-t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e-s { text-align: right; font-weight: 600; }
.e-ok { justify-self: center; width: .95rem; height: .95rem; fill: none; stroke: var(--green); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.e-ok path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.xl-total > span { border-bottom: 0; }
.xl-tl { font-weight: 600; }
.xl-tv { position: relative; font-weight: 700; font-size: 1rem; transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.xl-tv::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 8px; height: 8px; background: var(--green); border: 1.5px solid var(--sheet); opacity: 0; transition: opacity .15s .1s; }
.xl-tv.is-sel { background: var(--mint); box-shadow: inset 0 0 0 2px var(--green); }
.xl-tv.is-sel::after { opacity: 1; }
.xl-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; padding-right: .6rem; border-top: 1px solid var(--line); background: var(--paper-2); }
.xl-tabs { display: flex; align-self: stretch; }
.xl-tabs span { display: flex; align-items: center; padding: .45rem .9rem; border-right: 1px solid var(--line); font: 500 .78rem/1 var(--sans); color: var(--ink-3); }
.xl-tabs .is-on { background: var(--sheet); color: var(--green); font-weight: 600; box-shadow: inset 0 -2px 0 var(--green); }
.status { display: inline-flex; align-items: center; gap: .4rem; margin: .45rem 0; padding: .32rem .7rem; border-radius: 999px; background: var(--mint); font: 600 .78rem/1.2 var(--sans); }
.status .ic { width: .95rem; height: .95rem; color: var(--green); }
.status.is-pending .ic { display: none; }
.xl-cap { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .3rem 1rem; padding: .75rem 1rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.xl-note { font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 560px) {
  .xl { --rnw: 1.6rem; --c1: 4rem; --c3: 5.4rem; --c4: 1.2rem; }
  .xl-grid { font-size: .82rem; }
  .xl-row > span, .entry > span:not(.paper) { padding: 0 .4rem; }
  .e-d { font-size: .76rem; }
}

/* company data sheet (meist) */
.xl-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.xl-table th, .xl-table td { border-right: 1px solid var(--grid); border-bottom: 1px solid var(--grid); text-align: left; }
.xl-table tr > :last-child { border-right: 0; }
.xl-table thead th { height: 24px; background: var(--paper-2); font: 500 .68rem/1 var(--mono); color: var(--ink-3); text-align: center; border-color: var(--line); }
.xl-table .rn { width: 2rem; text-align: center; background: var(--paper-2); font: 500 .68rem/1 var(--mono); color: var(--ink-3); }
.xl-table td { position: relative; padding: .62rem .75rem; vertical-align: top; }
.xl-table td:nth-child(2) { width: 36%; color: var(--ink-3); }
.xl-table tbody { counter-reset: row; }
.xl-table tbody tr { counter-increment: row; }
.xl-table tbody .rn::before { content: counter(row); }
.xl-table tbody tr:first-child td:nth-child(3) { font-weight: 600; }
/* Minu Novu editor only: its "remove row" and "+ Lisa rida" buttons land inside the company table, so give them table roles */
.novu-edit .xl-table .novu-add { display: table-caption; caption-side: bottom; margin: .7rem .75rem .2rem; }
.novu-edit .xl-table .novu-del { display: table-cell; width: 2.2rem; height: auto; border: 0; border-bottom: 1px solid var(--grid); border-radius: 0; vertical-align: middle; }
.xl-table td.is-sel { background: var(--mint); box-shadow: inset 0 0 0 2px var(--green); }
.xl-table td.is-sel::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 8px; height: 8px; background: var(--green); border: 1.5px solid var(--sheet); }

/* services: a table over the grid */
.svc { padding: clamp(4rem, 8vw, 7rem) 0; }
.sec-h { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.sec-h .kicker { grid-column: 1 / -1; }
.sec-h .sec-lede { justify-self: end; margin-top: 0; padding-bottom: .4rem; }
@media (max-width: 859px) { .sec-h { grid-template-columns: minmax(0, 1fr); } .sec-h .sec-lede { justify-self: start; margin-top: 1rem; } }
.svc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 2px solid var(--ink); background: var(--sheet); box-shadow: 0 1px 0 var(--line); }
.cell { position: relative; display: flex; flex-direction: column; gap: .65rem; padding: clamp(1.3rem, 2.4vw, 1.9rem); border-bottom: 1px solid var(--line); scroll-margin-top: 20px; transition: background-color .2s var(--ease); }
.cell::after { content: ''; position: absolute; inset: -1px; border: 2px solid var(--green); opacity: 0; pointer-events: none; transition: opacity .15s ease-out; }
.cell::before { content: ''; position: absolute; z-index: 2; right: -4px; bottom: -4px; width: 8px; height: 8px; background: var(--green); border: 1.5px solid var(--sheet); opacity: 0; transition: opacity .15s ease-out .08s; }
/* six services (client 28.09): the lead cell on top, then three cells and two wider ones, no empty slot */
.svc6 > .cell:not(.cell-lead) { grid-column: span 2; }
.svc6 > .cell:nth-child(n+5) { grid-column: span 3; }
.svc6 > .cell:nth-child(2), .svc6 > .cell:nth-child(3), .svc6 > .cell:nth-child(5) { border-right: 1px solid var(--line); }
/* the cells of one band share their rows, so number, heading, text, sample sheet, list and link line up across */
@supports (grid-template-rows: subgrid) {
  .svc6 > .cell:not(.cell-lead) { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: .65rem; align-content: start; }
  .svc6 > .cell:not(.cell-lead) > .mini, .svc6 > .cell:not(.cell-lead) > .cell-list { align-self: start; }
  .svc6 > .cell:not(.cell-lead) > .cell-h { align-self: end; }   /* sits on its text, like a bottom-aligned cell */
}
.why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.why-grid > .cell:not(:last-child) { border-right: 1px solid var(--line); }
.cell.is-hit, .cell:focus-within { background: var(--mint); }
.cell.is-hit::after, .cell.is-hit::before, .cell:focus-within::after, .cell:focus-within::before { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .cell:hover { background: var(--mint); }
  .cell:hover::after, .cell:hover::before { opacity: 1; }
  .cell-go:hover .ic { transform: translateX(4px); }
}
.cell-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, .95fr); gap: .6rem clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(1.6rem, 3vw, 2.4rem); background: var(--forest); color: var(--on-forest); border-bottom: 0; }
.cell-lead::after { border-color: var(--lime); }
.cell-lead::before { background: var(--lime); border-color: var(--forest); }
.cell-lead.is-hit, .cell-lead:focus-within { background: var(--forest); }
@media (hover: hover) and (pointer: fine) { .cell-lead:hover { background: var(--forest); } }
.lead-a, .lead-c { display: grid; gap: .6rem; align-content: start; }
.lead-a { container-type: inline-size; }
.cell-n { font: 500 .74rem/1 var(--mono); color: var(--ink-3); }
.cell-lead .cell-n { color: var(--on-forest-2); }
.cell-h { font: 600 1.6rem/1.1 var(--serif); letter-spacing: -.005em; }
.cell-lead .cell-h { font-size: clamp(2.1rem, 3.6vw, 3.1rem); font-size: min(clamp(2.1rem, 3.6vw, 3.1rem), 10.3cqi); }   /* "Raamatupidamisteenus" (9.43em) stays whole, as in the hero */
.cell-p { color: var(--ink-2); max-width: 40ch; }
.cell-lead .cell-p { color: var(--on-forest); font-size: 1.1rem; padding-top: 1.4rem; }
.cell-list { display: grid; gap: .3rem; margin-top: .15rem; }
.cell-list li { position: relative; padding-left: 1.05rem; font-size: .94rem; color: var(--ink-2); }
.cell-list li::before { content: ''; position: absolute; left: 0; top: .52em; width: 7px; height: 7px; border: 1.5px solid var(--green); }
.cell-lead .cell-list li { color: var(--on-forest); }
.cell-lead .cell-list li::before { border-color: var(--lime); }
.cell-go { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: .6rem; font-weight: 600; font-size: .95rem; color: var(--green); text-decoration: none; }
.cell-go .ic { transition: transform .25s var(--ease); }
.cell-lead .cell-go { justify-self: start; margin-top: .9rem; padding: .72rem 1.05rem; border-radius: 6px; background: var(--lime); color: var(--ink); }
@media (max-width: 1023px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .why-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc6 > .cell:not(.cell-lead) { grid-column: span 1; }
  .svc6 > .cell:last-child { grid-column: 1 / -1; }
  .cell-lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lead-c { grid-column: 2; }
  .cell-lead .cell-p { grid-column: 2; grid-row: 1; }
  .svc6 > .cell:not(.cell-lead), .why-grid > .cell { border-right: 0; }
  .svc6 > .cell:nth-child(even):not(.cell-lead):not(:last-child) { border-right: 1px solid var(--line); }
  .why-grid > .cell:nth-child(odd) { border-right: 1px solid var(--line); }
  .why-grid > .cell:nth-child(even) { border-right: 0; }
}
@media (max-width: 680px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .cell-lead { grid-template-columns: minmax(0, 1fr); }
  .lead-c, .cell-lead .cell-p { grid-column: auto; grid-row: auto; }
  .cell-lead .cell-p { padding-top: 0; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .svc6 > .cell:not(.cell-lead) { grid-column: auto; }
  .svc6 > .cell:nth-child(even):not(.cell-lead), .why-grid > .cell:nth-child(odd) { border-right: 0; }
}

/* concept 3: every service does one small sum of its own. The finished numbers are in the HTML;
   motion only replays how they were reached. */
.mini { margin: .45rem 0 .3rem; border: 1px solid var(--line); background: var(--sheet); font-size: .86rem; font-variant-numeric: tabular-nums; }
.mini-h { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .38rem .7rem; background: var(--paper-2); border-bottom: 1px solid var(--line); font: 500 .68rem/1.25 var(--mono); color: var(--ink-3); }
.mini-h > :last-child { text-align: right; }
.mini-r { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; align-items: center; min-height: 31px; padding: .32rem .7rem; border-bottom: 1px solid var(--grid); }
.mini-t > .mini-r:last-child { border-bottom: 0; }
.mini-r > :first-child { color: var(--ink-2); }
.mini-r .num { font-weight: 600; white-space: nowrap; }
.mini-res > :first-child { color: var(--ink); font-weight: 600; }
.mini-res, .mini-dl .mini-r { transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.mini-res.is-on { background: var(--mint); box-shadow: inset 0 0 0 2px var(--green); }
.mini-res::after, .mini-dl .mini-r::after { content: ''; position: absolute; right: -4px; bottom: -4px; z-index: 1; width: 8px; height: 8px; background: var(--green); border: 1.5px solid var(--sheet); opacity: 0; transition: opacity .15s ease-out .1s; }
.mini-res.is-on::after { opacity: 1; }
.mini-m + .mini-t { border-top: 1px solid var(--grid); }
.sw { display: inline-block; width: .6rem; height: .6rem; margin-right: .45rem; }
.sw-a { background: var(--green); }
.sw-b { background: var(--mint); box-shadow: inset 0 0 0 1.5px var(--green); }
.mini-split { display: flex; gap: 3px; padding: .7rem; border-bottom: 1px solid var(--grid); }
.mini-split span { height: 1.5rem; transform-origin: 0 50%; }
.ms-a { flex: 60 1 0; background: var(--green); }
.ms-b { flex: 40 1 0; background: var(--mint); box-shadow: inset 0 0 0 1.5px var(--green); }
.mini-bars { --pos: 52px; --neg: 12px; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; height: calc(var(--pos) + var(--neg)); margin: .75rem .7rem 0; }
.mini-bars::after { content: ''; position: absolute; left: -4px; right: -4px; top: var(--pos); height: 1px; background: var(--line-2); }
.mini-bars > span { position: relative; }
.mini-bars i { position: absolute; left: 0; right: 0; bottom: var(--neg); height: calc(var(--v) / 2080 * var(--pos)); background: var(--green); transform-origin: 50% 100%; }
.mini-bars .neg i { bottom: auto; top: var(--pos); background: oklch(0.58 0.13 30); transform-origin: 50% 0; }
.mini-m { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: .35rem .7rem .5rem; font: 500 .62rem/1.2 var(--mono); color: var(--ink-3); text-align: center; }
.mini-m5 { display: flex; justify-content: space-between; }
.mini-plot { position: relative; margin: .75rem .7rem 0; }
.mini-chart { width: 100%; height: auto; overflow: visible; }
.mc-neg { fill: var(--paper-2); }
.mc-pos { fill: var(--mint); }
.mc-zero { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.mc-line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mc-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: var(--green); border: 1.5px solid var(--sheet); }
.mc-0 { position: absolute; left: 0; top: 43.36%; transform: translateY(-125%); font: 500 .6rem/1 var(--mono); color: var(--ink-3); }
/* the lead cell keeps the deadlines, live, the nearest one selected */
.cell-lead .mini { margin-top: .9rem; background: var(--forest-deep); border-color: var(--forest-line); }
.cell-lead .mini-h { background: var(--forest); border-color: var(--forest-line); color: var(--on-forest-2); }
.mini-dl .mini-r { grid-template-columns: minmax(0, 1fr) auto 5.2em; border-color: var(--forest-line); }
.mini-dl .mini-r > :first-child { color: var(--on-forest); }
.mini-dl .mini-d { color: var(--on-forest-2); font-weight: 500; }
.mini-n { color: var(--on-forest); }
.mini-n span { color: var(--on-forest-2); font-weight: 400; }
.mini-dl .mini-r::after { background: var(--lime); border-color: var(--forest-deep); }
.mini-dl .mini-r.is-next { background: var(--forest-cell); box-shadow: inset 0 0 0 2px var(--lime); }
.mini-dl .mini-r.is-next::after { opacity: 1; }

/* hea teada: heading and an illustrative photo beside the list */
.know { padding: clamp(4rem, 8vw, 7rem) 0; background-color: var(--forest); color: var(--on-forest); background-image: linear-gradient(to right, var(--forest-line) 1px, transparent 1px), linear-gradient(to bottom, var(--forest-line) 1px, transparent 1px); background-size: var(--cw) var(--rh); background-position: var(--rowhead) 0; }
.know-side { display: grid; gap: 2rem; align-content: start; }
@media (min-width: 960px) and (min-height: 860px) { .know-side { position: sticky; top: calc(var(--head-h) + 28px); } }
.know-fig { position: relative; margin: 0; overflow: hidden; border-radius: 10px; border: 1px solid var(--forest-line); background: var(--forest-deep); aspect-ratio: 5 / 4; }
.know-fig img { width: 100%; height: 100%; object-fit: cover; }
.know-fig figcaption { position: absolute; right: .6rem; bottom: .6rem; padding: .28rem .55rem; border-radius: 4px; background: oklch(0.25 0.045 185 / .72); color: var(--on-forest); font: 600 .62rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 959px) { .know-fig { aspect-ratio: 16 / 10; } }
.know-in { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.know .kicker { color: var(--on-forest-2); }
.know .kicker::before { border-color: var(--lime); background: var(--forest-cell); }
.know .sec-lede { color: var(--on-forest-2); }
.know .sel::before { background: var(--forest-cell); border-color: var(--lime); }
.know .sel::after { background: var(--lime); border-color: var(--forest); }
.know-date { display: inline-flex; margin-top: 1.5rem; padding: .42rem .75rem; border: 1px solid var(--forest-line); border-radius: 999px; font-size: .86rem; color: var(--on-forest-2); background: var(--forest); }
.know-sheet { overflow: hidden; border-radius: 10px; background: var(--sheet); color: var(--ink); box-shadow: 0 1px 0 oklch(0.15 0.04 185 / .3), 0 36px 70px -34px oklch(0.12 0.04 185 / .75); }
.ks-cols { display: grid; grid-template-columns: 7.6rem minmax(0, 1fr) 1.5rem; gap: 1.2rem; height: 26px; padding: 0 1.3rem; align-items: center; background: var(--paper-2); border-bottom: 1px solid var(--line); font: 500 .68rem/1 var(--mono); color: var(--ink-3); }
.kn { border-bottom: 1px solid var(--grid); transition: background-color .2s var(--ease); }
.kn:last-child { border-bottom: 0; }
.kn.is-open { background: oklch(0.978 0.016 155); }
.kn-q { font: inherit; }
.kn-q button { width: 100%; display: grid; grid-template-columns: 7.6rem minmax(0, 1fr) 1.5rem; gap: 1.2rem; align-items: center; padding: 1.2rem 1.3rem; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.kn-fig { font: 600 1.7rem/1 var(--serif); color: var(--green); white-space: nowrap; }
.kn-t { font: 600 1.1rem/1.3 var(--sans); transition: color .2s var(--ease); }
.kn-ic { width: 1.4rem; height: 1.4rem; color: var(--ink-3); transition: transform .35s var(--ease), color .2s; }
.kn-q button[aria-expanded="true"] .kn-ic { transform: rotate(45deg); color: var(--green); }
.kn-q button { transition: background-color .18s var(--ease); }
@media (hover: hover) and (pointer: fine) { .kn:not(.is-open) .kn-q button:hover { background: var(--mint); } }
.kn-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.kn.is-open .kn-a { grid-template-rows: 1fr; }
.kn-in { min-height: 0; overflow: hidden; padding: 0 1.3rem 0 calc(1.3rem + 7.6rem + 1.2rem); }
.kn-in p { max-width: 60ch; color: var(--ink-2); }
.kn-in p + p { margin-top: .7rem; }
.kn-in > :last-child { padding-bottom: 1.5rem; }
.kn-do b { color: var(--ink); font-weight: 600; }
.kn-src { font-size: .86rem; }
.kn-src { color: var(--ink-3); }
.kn-src a { color: var(--green); font-weight: 500; text-decoration-color: currentColor; text-underline-offset: 3px; }
@media (max-width: 959px) { .know-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .ks-cols { display: none; }
  .kn-q button { grid-template-columns: minmax(0, 1fr) 1.5rem; gap: .45rem 1rem; padding: 1.1rem 1.05rem; }
  .kn-fig { grid-column: 1; font-size: 1.55rem; }
  .kn-t { grid-column: 1; }
  .kn-ic { grid-column: 2; grid-row: 1 / 3; }
  .kn-in { padding: 0 1.05rem; }
}

/* contact */
.contact { padding: clamp(4rem, 8vw, 7rem) 0; }
.contact-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.reach { margin-top: 1.8rem; border-top: 1px solid var(--line); background: var(--sheet); }
.reach a, .reach li > span { display: flex; align-items: center; gap: .75rem; padding: .85rem .9rem; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.06rem; text-decoration: none; overflow-wrap: anywhere; }
.reach li:last-child > span { font-weight: 500; font-size: .98rem; color: var(--ink-2); }
.reach .ic { width: 1.2rem; height: 1.2rem; color: var(--green); }
@media (hover: hover) and (pointer: fine) { .reach a:hover { background: var(--mint); } }
.more { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.4rem; font-weight: 600; color: var(--green); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .more:hover { text-decoration: underline; text-underline-offset: 4px; } }
@media (max-width: 959px) { .contact-in { grid-template-columns: minmax(0, 1fr); } }

.form { padding: clamp(1.3rem, 3vw, 2.2rem); border: 1px solid var(--line-2); border-radius: 10px; background: var(--sheet); box-shadow: 0 34px 64px -46px oklch(0.21 0.02 178 / .5); }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .f-grid { grid-template-columns: minmax(0, 1fr); } }
.f { display: grid; gap: .4rem; }
.f-wide { grid-column: 1 / -1; }
.f > span { font-weight: 600; font-size: .92rem; }
.f small { font-weight: 400; color: var(--ink-3); }
.f input, .f select, .f textarea { width: 100%; min-height: 48px; padding: .7rem .85rem; font-size: 16px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 4px; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s; }
.f select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9.5l6 6 6-6' fill='none' stroke='%230e1b18' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem; cursor: pointer; }
.f textarea { resize: vertical; min-height: 120px; }
.f input::placeholder, .f textarea::placeholder { color: oklch(0.56 0.016 178); }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible { outline: none; background-color: var(--sheet); border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green), 0 0 0 4px oklch(0.47 0.11 155 / .14); }
.f [aria-invalid="true"] { border-color: oklch(0.5 0.17 28); }
.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.4rem; }
.f-note { color: var(--ink-3); font-size: .92rem; }
.f-error { margin-top: .9rem; color: oklch(0.48 0.17 28); font-weight: 600; }
.f-error a { color: inherit; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.is-busy .btn-green { opacity: .72; cursor: progress; }
.result { margin-top: 1.4rem; padding: 1.2rem; border-radius: 8px; background: var(--mint); border: 1px solid var(--line); }
.result-h { display: flex; align-items: center; gap: .55rem; font: 600 1.25rem/1.2 var(--serif); }
.result-h .ic { color: var(--green); }
.result-t { color: var(--ink-2); margin-top: .4rem; }
.result-msg { margin: 1rem 0; padding: 1rem; border-radius: 6px; background: var(--sheet); border: 1px solid var(--line); font: 400 .92rem/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; }

/* meist */
.story { padding: clamp(3.6rem, 7vw, 6rem) 0; background: var(--sheet); border-block: 1px solid var(--line); }
.story-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 1.2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.story-in .kicker { grid-column: 1 / -1; }
.story-q { font: 500 clamp(1.9rem, 3.4vw, 3rem)/1.12 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.story-p { display: grid; gap: 1rem; color: var(--ink-2); padding-top: .4rem; }
.story-ph { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1rem, 2.4vw, 2rem); align-items: start; margin-top: clamp(1.8rem, 4.5vw, 3.6rem); }
.ph-docs { margin-top: clamp(2rem, 6vw, 5.5rem); }
@media (max-width: 859px) {
  .story-ph { grid-template-columns: minmax(0, 1fr); }
  .ph-docs { width: 72%; justify-self: end; margin-top: 0; }
}
@media (max-width: 859px) { .story-in { grid-template-columns: minmax(0, 1fr); } }
.why-grid .cell { min-height: 15rem; }
.band { padding: clamp(3.6rem, 7vw, 6rem) 0; background: var(--forest); color: var(--on-forest); }
.band-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; }
.band .kicker { color: var(--on-forest-2); }
.band .kicker::before { border-color: var(--lime); background: var(--forest-cell); }
.band-cta { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 859px) { .band-in { grid-template-columns: minmax(0, 1fr); } .band-cta .btn { flex: 1 1 auto; } }

/* footer */
.foot { padding: 3rem 0 0; background: var(--forest-deep); color: var(--on-forest-2); font-size: .93rem; }
.foot-in { padding-bottom: 2.4rem; }
.foot-in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 3fr); gap: 2rem 3rem; align-items: start; }
.foot-logo { width: 150px; height: auto; fill: var(--on-forest); }
.foot-name { font: 600 1.1rem/1.3 var(--serif); color: var(--on-forest); margin-bottom: .25rem; }
.foot-reach { margin-top: .6rem; }
.foot a { color: var(--on-forest); text-decoration: none; }
.foot-links { display: grid; gap: .35rem; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 4px; } }
.foot-note { grid-column: 1 / -1; padding-top: 1.4rem; border-top: 1px solid var(--forest-line); font-size: .84rem; }
@media (max-width: 859px) { .foot-in { grid-template-columns: minmax(0, 1fr); } .foot-logo { width: 130px; } }
/* the Novu mark, same as on Novu's other sites (kektrading.ee): a hairline strip, small mono, novu.ee in the site's accent */
.foot-novu { padding: 15px var(--gutter) calc(15px + env(safe-area-inset-bottom)); border-top: 1px solid var(--forest-line); text-align: center; }
.foot .foot-novu a { font: 500 11.5px/1.4 var(--mono); letter-spacing: .06em; color: oklch(0.68 0.03 175); text-decoration: none; transition: color .2s var(--ease); }
.foot-novu strong { font-weight: 500; color: var(--lime); }
@media (hover: hover) and (pointer: fine) { .foot .foot-novu a:hover { color: var(--on-forest); text-decoration: none; } }

/* links from the home page's service cards to each service's own page */
.cell-hl { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .cell-hl:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .14em; } }
.cell-links { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.4rem; margin-top: auto; }
.cell-links .cell-go { margin-top: 0; }
.cell-more { display: inline-flex; align-items: center; gap: .45rem; padding-top: .6rem; font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; }
.cell-more .ic { transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .cell-more:hover .ic { transform: translateX(4px); } }
.cell-lead .cell-links { gap: .8rem 1.4rem; margin-top: .9rem; }
.cell-lead .cell-links .cell-go { margin-top: 0; }
.cell-lead .cell-more { order: 2; padding-top: 0; color: var(--on-forest); }

/* referral campaign: a petrol band like the lead service, the two rewards as spreadsheet cells */
.ref { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--forest); color: var(--on-forest); }
.ref-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: center; }
.ref .kicker { color: var(--on-forest-2); }
.ref .kicker::before { border-color: var(--lime); background: var(--forest-cell); }
.ref .sel::before { background: var(--forest-cell); border-color: var(--lime); }
.ref .sel::after { background: var(--lime); border-color: var(--forest); }
.ref-lede { margin-top: 1.4rem; max-width: 44ch; color: var(--on-forest-2); font-size: 1.1rem; }
.ref-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--forest-line); border-bottom: 1px solid var(--forest-line); }
.ref-cell { padding: 1.6rem 1.4rem 1.6rem 0; }
.ref-cell + .ref-cell { padding-left: 1.4rem; border-left: 1px solid var(--forest-line); }
.ref-big { font: 600 clamp(2.6rem, 5vw, 4rem)/1 var(--serif); letter-spacing: -.01em; color: var(--lime); }
.ref-txt { margin-top: .7rem; color: var(--on-forest-2); font-size: .98rem; line-height: 1.5; }
.ref-note { margin-top: 1.4rem; font-weight: 600; }
.ref-btn { margin-top: 1.6rem; }
@media (max-width: 859px) { .ref-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) {
  .ref-grid { grid-template-columns: minmax(0, 1fr); }
  .ref-cell { padding-right: 0; }
  .ref-cell + .ref-cell { padding-left: 0; border-left: 0; border-top: 1px solid var(--forest-line); }
}

/* a service's own page: its name and sentence (shared with the home page's card), its example table,
   what it includes, its price, and the other services */
.svc-title { font-size: clamp(2.3rem, 4.6vw, 4.1rem); }
/* the one service name that is a long word (raamatupidamine.html, class fit-word) stays whole, as in the home hero */
.svc-title.fit-word { font-size: min(clamp(2.3rem, 4.6vw, 4.1rem), 10.2cqi); }
.svc-fig { padding: clamp(1.1rem, 2.2vw, 1.7rem); background: var(--sheet); border: 1px solid var(--line); border-top: 2px solid var(--ink); box-shadow: 0 30px 60px -45px oklch(0.21 0.02 178 / .45); }
.svc-fig .mini { margin: 0; font-size: .92rem; }
.svc-fig--dark { background: var(--forest); border-color: var(--forest-line); border-top-color: var(--lime); }
.svc-fig--dark .mini { background: var(--forest-deep); border-color: var(--forest-line); }
.svc-fig--dark .mini-h { background: var(--forest); border-color: var(--forest-line); color: var(--on-forest-2); }
.hero-svc { padding-bottom: clamp(2rem, 4vw, 3.2rem); }
.svc-page { padding-top: clamp(1rem, 2vw, 1.6rem); }
/* the home page's first screen fills the phone (client 27.09); a service's page does not: its example table
   follows the buttons straight away */
@media (max-width: 959px) {
  .hero-svc .hero-copy { min-height: 0; padding-bottom: 0; }
}
.svc-inc { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.inc-main { padding: clamp(1.3rem, 2.4vw, 1.9rem); background: var(--sheet); border-top: 2px solid var(--ink); box-shadow: 0 1px 0 var(--line); }
.inc-list { gap: .6rem; margin-top: 0; }
.inc-list li { font-size: 1.05rem; color: var(--ink); }
.inc-price { display: grid; gap: .9rem; justify-items: start; padding: clamp(1.4rem, 2.6vw, 2.1rem); background: var(--forest); color: var(--on-forest); }
.inc-price .kicker { color: var(--on-forest-2); }
.inc-price .kicker::before { border-color: var(--lime); background: var(--forest-cell); }
.inc-big { font: 600 clamp(1.9rem, 3vw, 2.6rem)/1.05 var(--serif); }
.inc-txt { color: var(--on-forest-2); }
.other-svc { padding-top: 0; }
.other-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-top: 2px solid var(--ink); background: var(--sheet); box-shadow: 0 1px 0 var(--line); }
.other-list a { display: flex; align-items: center; gap: .9rem; height: 100%; padding: 1.15rem 1.3rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 1.22rem/1.2 var(--serif); transition: background-color .2s var(--ease); }
.other-list .cell-n { flex: none; }
.other-list a .ic { flex: none; margin-left: auto; color: var(--green); transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .other-list a:hover { background: var(--mint); } .other-list a:hover .ic { transform: translateX(4px); } }
@media (max-width: 859px) { .svc-inc { grid-template-columns: minmax(0, 1fr); } }

/* prices: the package finder (form) and the package table, both drawn as sheets */
.price { padding: clamp(4rem, 8vw, 7rem) 0; }
/* the Hinnad page headline: balanced, it chose the soft hyphen on a phone ("Raamatupidamis-" over "teenuse hind").
   Plain wrapping breaks at the space instead, and the size keeps "Raamatupidamisteenuse" (9.69em) whole down to
   320 px; the soft hyphen still catches a longer word if the text is changed */
.price-page .sec-h { container-type: inline-size; }
.price-h1 { text-wrap: wrap; font-size: min(clamp(2rem, 3.7vw, 3.25rem), 10cqi); }
/* the sliders and the package table side by side and of one height, so the lit row is beside the slider that moves
   it; the answer runs the full width under both */
.price-in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.2rem, 2.4vw, 2rem); align-items: stretch; }
.price-side { display: flex; min-width: 0; }
.price-side > .price-xl { flex: 1; display: flex; flex-direction: column; min-width: 0; container: prices / inline-size; }
.price-scroll { flex: 1; }
.price-table { height: 100%; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.calc-peek { display: none; }
@media (max-width: 999px) {
  .price-in { grid-template-columns: minmax(0, 1fr); }
  /* a phone: the answer is below the sliders, so a small bar with it rides along the bottom of the screen */
  .calc-peek { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    margin: 0 calc(-1 * clamp(1.2rem, 2.4vw, 1.8rem)) calc(-1 * clamp(1.2rem, 2.4vw, 1.8rem)); padding: .85rem clamp(1.2rem, 2.4vw, 1.8rem) calc(.85rem + env(safe-area-inset-bottom));
    background: var(--forest); color: var(--on-forest); border-top: 2px solid var(--lime); font-size: .95rem; }
  .calc-peek-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; min-width: 0; }
  .calc-peek-t b { font: 600 1.15rem/1.1 var(--serif); color: var(--on-forest); }
  .calc-peek #cPeekSum { color: var(--lime); }
  .calc-peek-go { display: inline-flex; flex: none; align-items: center; gap: .4rem; padding: .55rem .8rem; border-radius: 6px; background: var(--lime); color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; }
}
.calc-in { display: grid; gap: 1.35rem; padding: clamp(1.2rem, 2.4vw, 1.8rem); }
.calc-f { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .55rem 1rem; }
.calc-l { font-weight: 600; font-size: .98rem; color: var(--ink); }
.calc-v { font: 600 1.9rem/1 var(--serif); font-variant-numeric: tabular-nums; color: var(--green); }
.calc-f input[type=range] { grid-column: 1 / -1; width: 100%; height: 28px; margin: 0; background: transparent; accent-color: var(--green); cursor: pointer; }
.calc-emp { align-items: center; }
.calc-step { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--sheet); overflow: hidden; }
.calc-step button { width: 44px; height: 44px; border: 0; background: var(--paper-2); font: 600 1.2rem/1 var(--sans); color: var(--ink); cursor: pointer; }
.calc-step button:hover { background: var(--mint); color: var(--green); }
.calc-step input { width: 3.4rem; height: 44px; border: 0; border-inline: 1px solid var(--line); text-align: center; font: 600 1.25rem/1 var(--serif); color: var(--ink); background: var(--sheet); -moz-appearance: textfield; }
.calc-step input::-webkit-outer-spin-button, .calc-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; font-size: .94rem; color: var(--ink-2); cursor: pointer; }
.calc-check input { width: 20px; height: 20px; margin: .12rem 0 0; accent-color: var(--green); }
.calc-vat { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0; padding: 0; border: 0; }
.calc-vat legend { float: left; margin-right: auto; padding: 0; }
@media (max-width: 420px) { .calc-vat legend { width: 100%; margin-right: 0; } }
.calc-vat label { position: relative; }
.calc-vat input { position: absolute; opacity: 0; }
.calc-vat span { display: inline-flex; align-items: center; height: 38px; padding: 0 1rem; border: 1.5px solid var(--line-2); border-radius: 6px; font-weight: 600; font-size: .93rem; cursor: pointer; }
.calc-vat input:checked + span { border-color: var(--green); background: var(--mint); color: var(--green-hi); }
.calc-vat input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.calc-hint { font-size: .86rem; color: var(--ink-3); }
.calc-res { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "head note ask";
  gap: .35rem clamp(1.4rem, 3vw, 2.6rem); align-items: start; padding: clamp(1.2rem, 2.4vw, 1.8rem); border-radius: 10px; background: var(--forest); color: var(--on-forest);
  box-shadow: 0 34px 64px -42px oklch(0.21 0.02 178 / .5); }
.calc-head { grid-area: head; display: grid; gap: .4rem; align-content: start; }
.calc-note { grid-area: note; align-self: center; max-width: 40ch; font-size: .92rem; color: var(--on-forest-2); }
.calc-one { max-width: 44ch; font: 500 1.25rem/1.35 var(--serif); color: var(--on-forest); }
@media (max-width: 999px) { .calc-res { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "note" "ask"; } .calc-note { margin-top: .3rem; padding-top: .7rem; border-top: 1px solid var(--forest-line); max-width: none; } }
.calc-k { font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.calc-pkg { font: 600 clamp(2rem, 3.4vw, 2.7rem)/1 var(--serif); letter-spacing: -.01em; }
.calc-sum { font: 600 1.6rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.calc-sum small { font: 400 .95rem/1 var(--sans); color: var(--on-forest-2); }
.calc-add { display: grid; gap: .6rem; margin: 0; padding: 0; border: 0; }
.calc-add legend { margin-bottom: .6rem; padding: 0; }
.calc-acts { grid-area: ask; align-self: center; display: grid; gap: .6rem; }
.calc-acts .btn { white-space: normal; height: auto; min-height: 46px; padding-block: .6rem; }
@media (max-width: 999px) { .calc-acts { margin-top: .7rem; justify-items: start; } }
.price-scroll { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: .5rem .6rem; border-bottom: 1px solid var(--grid); border-right: 1px solid var(--grid); text-align: left; vertical-align: top; }
.price-table th:last-child, .price-table td:last-child { border-right: 0; }
.price-table thead th { padding-block: .45rem; background: var(--paper-2); font: 500 .68rem/1.2 var(--mono); color: var(--ink-3); border-bottom-color: var(--line); white-space: nowrap; }
.price-table tbody th b { display: block; font: 600 1.08rem/1.15 var(--serif); white-space: nowrap; }
.price-table td { color: var(--ink-2); }
.price-table .c-docs { white-space: nowrap; }
.price-table .num { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; }
.price-more th b { font-size: .98rem; }
.price-more .num { white-space: normal; font-weight: 600; color: var(--ink-2); }
.price-table tr.is-pick > * { background: var(--mint); }
.price-table tr.is-pick .num { box-shadow: inset 0 0 0 2px var(--green); }
.price-cap { display: grid; gap: .45rem; line-height: 1.5; }
.price-cap b { color: var(--ink); }
.price-note { margin-top: 1.2rem; font-size: .9rem; color: var(--ink-3); }
.inc-calc { display: inline-flex; align-items: center; gap: .45rem; color: var(--lime); font-weight: 600; text-decoration: none; }
.price-page { padding-top: clamp(2.4rem, 5vw, 4rem); }

/* a narrow package table (phone, the Minu Novu phone preview, a laptop with the finder beside it) never scrolls
   sideways: every package becomes one block, name and price on top, who it is for and the invoices below with their
   labels. Sized by the table's own width, not the screen's. */
@container prices (max-width: 450px) {
  .price-table, .price-table tbody { display: block; height: auto; }
  .price-table thead { display: none; }
  .price-table tbody tr { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .4rem .9rem; padding: .85rem 1rem; border-bottom: 1px solid var(--grid); }
  .price-table tbody tr > :not(.novu-del) { padding: 0; border: 0; }
  .price-table tbody th { grid-column: 1; }
  .price-table tbody th b { white-space: normal; }
  .price-table tbody .num { grid-column: 2; grid-row: 1; align-self: start; font: 600 1.1rem/1.15 var(--serif); white-space: normal; }
  .price-table tbody .c-who, .price-table tbody .c-docs { display: block; grid-row: 2; white-space: normal; font-size: .9rem; color: var(--ink); }
  .price-table tbody .c-who { grid-column: 1; }
  .price-table tbody .c-docs { grid-column: 2; text-align: right; }
  .price-table tbody .c-who::before, .price-table tbody .c-docs::before { display: block; margin-bottom: .15rem; font: 500 .66rem/1.2 var(--mono); color: var(--ink-3); }
  .price-table tbody .c-who::before { content: 'Kellele'; }
  .price-table tbody .c-docs::before { content: 'Arveid kuus'; }
  .price-table .price-more .num { font: 600 .98rem/1.25 var(--sans); }
  .price-table tr.is-pick { background: var(--mint); outline: 2px solid var(--green); outline-offset: -2px; }
  .price-table tr.is-pick .num { box-shadow: none; color: var(--green-hi); }
  /* in the Minu Novu editor: the remove button gets its own column, "+ Lisa rida" sits under the blocks */
  .novu-edit .price-table tbody tr { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }
  .novu-edit .price-table tbody tr > .novu-del { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  html.novu-edit .price-table tbody > .novu-add-row { padding: .2rem 1rem .9rem !important; }
}

/* the home page in short (Ats 22.10): the services as one list of links, the full cards on teenused.html,
   Hea teada on hea-teada.html */
.svc-brief { padding-top: 0; }
.brief-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 959px) { .brief-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.brief-list a { align-items: flex-start; }
.brief-list .cell-n { margin-top: .4rem; }
.brief-t { display: grid; gap: .3rem; min-width: 0; }
.brief-t b { font: 600 1.22rem/1.2 var(--serif); }
.brief-p { font: 400 .93rem/1.5 var(--sans); color: var(--ink-2); }
.brief-list a .ic { align-self: center; }
.brief-more { margin-top: clamp(1.2rem, 2.4vw, 1.8rem); }
@media (max-width: 559px) { .brief-list { grid-template-columns: minmax(0, 1fr); } .brief-p { display: none; } .brief-list a { align-items: center; } .brief-list .cell-n { margin-top: 0; } }
.svc-all, .know-page { padding-top: clamp(2.4rem, 5vw, 4rem); }
/* on hea-teada.html the facts and the contact band are both dark green: a line between them */
.know-page + .band, .ref-page + .band { border-top: 1px solid var(--forest-line); }
.ref-page { padding-top: clamp(2.4rem, 5vw, 4rem); }
/* the home page's line to the referral campaign page */
.ref-strip { padding: clamp(1.4rem, 3vw, 2rem) 0; background: var(--mint); border-block: 1px solid var(--line); }
.ref-strip-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; }
.ref-strip p { font: 600 clamp(1.25rem, 2.2vw, 1.6rem)/1.25 var(--serif); }
/* stock photos (still the files in assets/img/) stay hidden on the live site until the client puts in their own; the
   CSS reads the src, so a client photo shows on first paint, also without JavaScript, and a photo set back to the
   stock file hides again. In the Minu Novu editor they show with their "Placeholder" note, so the client sees where a
   photo goes and can click it to upload one. */
html:not(.novu-edit) .ph:has(> img[src^="assets/img/"]) { display: none; }
html:not(.novu-edit) .hero-media > .ph:has(> img[src^="assets/img/"]) + .xl { grid-row: 1; grid-column: 1 / -1; margin-top: 0; }
html:not(.novu-edit) .story-ph:not(:has(.ph > img:not([src^="assets/img/"]))) { display: none; }
.ph:not(:has(> img[src^="assets/img/"])) > .ph-note { display: none; }
.novu-edit .ref-strip { padding-top: 4.2rem; }
.dd-all { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }

/* motion start states (only while JS + GSAP are expected) */
.js [data-reveal], .js [data-hero] { opacity: 0; transform: translateY(18px); }
.js [data-line] { transform: translateY(105%); }
.js .xl { opacity: 0; }
.js .entry, .js .status { opacity: 0; }
.js .ph { opacity: 0; }
.js .e-ok path { stroke-dashoffset: 1; }
.no-motion [data-reveal], .no-motion [data-hero], .no-motion [data-line], .no-motion .xl, .no-motion .entry, .no-motion .status, .no-motion .ph { opacity: 1 !important; transform: none !important; }
.no-motion .e-ok path { stroke-dashoffset: 0 !important; }
.no-motion .ln { overflow: visible; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-hero], .js [data-line], .js .xl, .js .entry, .js .status, .js .ph { opacity: 1; transform: none; }
  .js .e-ok path { stroke-dashoffset: 0; }
  .ln { overflow: visible; }
  .sel::before, .sel::after, .kn-a, .dd-panel, .btn, .kn-ic, .nav-link .ic, .cell, .cell::before, .cell::after, .mini-res, .mini-res::after, .mini-dl .mini-r, .mini-dl .mini-r::after { transition: none !important; }
}

/* Veebihai texts (22.11) */
/* home: four services as two by two; "Miks Aktiva" has three boxes */
@media (min-width: 560px) { .brief-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.why-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .why-3 { grid-template-columns: minmax(0, 1fr); } .why-3 > .cell { border-right: 0 !important; } }
.why-home .cell { min-height: 0; }
.why-home { padding-bottom: clamp(2rem, 4vw, 3rem); }
/* a service page: what else can be ordered, under the list */
.inc-more { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-2); }
.inc-price .inc-big { margin: 0; }
.story-swap + .other-svc { padding-top: clamp(4rem, 8vw, 7rem); }
/* raamatupidamine (Veebihai order): the list, then the switch, then the price on its own */
.svc-inc--one { grid-template-columns: minmax(0, 1fr); max-width: 54rem; }
.story-swap + .svc-price { padding-top: clamp(4rem, 8vw, 7rem); }
.svc-price .inc-price { max-width: 54rem; }
/* hinnad.html: the extras table and the buttons under it */
.extras { margin-top: clamp(3rem, 6vw, 5rem); }
.extras .sec-h { margin-bottom: clamp(1.2rem, 2.4vw, 1.8rem); }
.extra-xl { max-width: 52rem; }
.extra-table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.extra-table th, .extra-table td { padding: .6rem .9rem; border-bottom: 1px solid var(--grid); text-align: left; vertical-align: top; }
.extra-table thead th { padding-block: .45rem; background: var(--paper-2); font: 500 .68rem/1.2 var(--mono); color: var(--ink-3); border-bottom-color: var(--line); }
.extra-table tbody th { font-weight: 500; color: var(--ink); }
.extra-table .num { text-align: right; font-weight: 600; color: var(--ink); }
.extra-table tbody:last-child tr:last-child > * { border-bottom: 0; }
@media (max-width: 479px) { .extra-table th, .extra-table td { padding: .55rem .6rem; } .extra-table { font-size: .9rem; } }
.price-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
@media (max-width: 559px) { .price-acts .btn { flex: 1 1 auto; } }
/* hea-teada.html: one line and a button at the end */
.know-strip { border-top: 0; }
/* soovitus.html: when the bonus is counted */
.ref-rule { margin-top: 1.2rem; color: var(--on-forest-2); font-size: .98rem; }
/* finantsteenused.html: one row per service, its heading on the left and the text on the right */
.fin-sec { padding-top: clamp(1rem, 2vw, 1.6rem); }
.fin-rows { display: grid; border-top: 2px solid var(--ink); }
.fin-row { display: grid; grid-template-columns: 3rem minmax(0, 5fr) minmax(0, 7fr); gap: .8rem clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding: clamp(1.6rem, 3vw, 2.4rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 16px); }
.fin-row .cell-n { padding-top: .55rem; }
.fin-q { font: 600 clamp(1.6rem, 2.6vw, 2.25rem)/1.15 var(--serif); letter-spacing: -.008em; text-wrap: balance; }
.fin-p { display: grid; gap: 1rem; max-width: 62ch; color: var(--ink-2); }
@media (max-width: 859px) { .fin-row { grid-template-columns: minmax(0, 1fr); } .fin-row .cell-n { padding-top: 0; } }
.fin-how .why-grid .cell { min-height: 0; }
.fin-how .cell-p { color: var(--ink); font-size: 1.05rem; }
.fin-eve { max-width: 60ch; margin-top: 1.4rem; color: var(--ink-2); }
.fin-how + .contact { padding-top: clamp(2rem, 4vw, 3.5rem); }
.fin-sec + .fin-how { padding-top: 0; }

/* the footer link that opens the cookie choice again */
.foot-cc { padding: 0; border: 0; background: none; font: inherit; color: var(--on-forest); cursor: pointer; text-align: left; }
@media (hover: hover) and (pointer: fine) { .foot-cc:hover { text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 4px; } }
.foot-cc:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* cookie choice (Novu, 22.11). Shown only while there is no choice from the last 12 months (the head script sets
   html.cc-ask before the first paint, so it never moves the page) or after "Küpsiste seaded" (html.cc-open).
   A phone or a tablet (up to 1099 px): a calm band above the header, in the page's flow, so it never covers the form or a
   phone number. A wide screen, or reopened from the footer: a small card in the bottom left corner. Never in the Minu Novu editor. */
.cc { display: none; }
html.cc-ask .cc, html.cc-open .cc { display: flex; }
.cc { position: relative; z-index: 51; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.4rem; padding: .85rem var(--gutter); background: var(--sheet); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.cc-t { flex: 1 1 16rem; max-width: 60ch; }
.cc-acts { flex: 1 1 13rem; max-width: 22rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.cc-acts .btn { width: 100%; }
.cc .btn[aria-pressed="true"] { border-color: var(--green); background: var(--mint); color: var(--green-hi); }
@media (min-width: 1100px) {
  html.cc-ask .cc { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; width: min(25rem, calc(100vw - 32px)); padding: 1rem 1.1rem; border: 1px solid var(--line-2); border-top: 2px solid var(--green); border-radius: 10px; box-shadow: 0 30px 60px -36px oklch(0.21 0.02 178 / .5); }
  html.cc-ask .cc-t, html.cc-ask .cc-acts { flex: none; max-width: none; }
}
html.cc-open .cc { position: fixed; left: 12px; right: auto; bottom: calc(12px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; width: min(25rem, calc(100vw - 24px)); padding: 1rem 1.1rem; border: 1px solid var(--line-2); border-top: 2px solid var(--green); border-radius: 10px; box-shadow: 0 30px 60px -36px oklch(0.21 0.02 178 / .5); }
html.cc-open .cc-t, html.cc-open .cc-acts { flex: none; max-width: none; }
@media (prefers-reduced-motion: no-preference) {
  html.cc-open .cc { animation: cc-in .35s var(--ease) both; }
  @keyframes cc-in { from { opacity: 0; transform: translateY(10px); } }
}
/* while the card floats, the end of the page gets room under it, and the finder's phone bar rides above it */
html.cc-fixed:not(.nv-frame):not(.novu-edit) .foot-novu { padding-bottom: calc(15px + var(--cc-h, 0px)); }
html.cc-fixed:not(.nv-frame):not(.novu-edit) .calc-peek { bottom: var(--cc-h, 0px); }
/* after the first choice, focus rests on the page's content (main.js wireConsent); it needs no ring */
main[tabindex="-1"]:focus { outline: none; }
html.nv-frame .cc, html.novu-edit .cc { display: none !important; }

/* Privaatsusteave (launch 25.11): Veebihai's text as one sheet on the grid, a reading column at the grid's left edge.
   The text is plain HTML (h2, p, ul, a) and is changed through Novu, not in Minu Novu. */
.legal { padding: clamp(2.4rem, 5vw, 4.4rem) 0 clamp(3.4rem, 7vw, 6rem); }
.legal-in { max-width: 46rem; }
.legal-text { margin-top: 1.6rem; padding: clamp(1.2rem, 3vw, 2.2rem); background: var(--sheet); border: 1px solid var(--line); border-top: 2px solid var(--ink); color: var(--ink-2); font-size: 1.04rem; line-height: 1.7; overflow-wrap: anywhere; }
.legal-text > :first-child { margin-top: 0; }
.legal-text h2 { font: 600 clamp(1.35rem, 2vw, 1.6rem)/1.2 var(--serif); color: var(--ink); margin-top: 2.2rem; }
.legal-text h3 { font: 600 1.06rem/1.35 var(--sans); color: var(--ink); margin-top: 1.6rem; }
.legal-text p, .legal-text ul, .legal-text ol { margin-top: .8rem; }
.legal-text ul, .legal-text ol { padding-left: 1.3rem; }
.legal-text ul { list-style: disc; }
.legal-text ol { list-style: decimal; }
.legal-text li + li { margin-top: .3rem; }
.legal-text a { color: var(--green); text-underline-offset: .15em; }
.cc-t a { text-underline-offset: .15em; }
.legal-date { font: 500 .82rem/1.3 var(--mono); color: var(--ink-3); }
/* the purposes and legal bases: a two-column table on a computer, one block per row on a phone */
.legal-text table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: .95rem; line-height: 1.55; }
.legal-text th, .legal-text td { padding: .7rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-text th { font-weight: 600; color: var(--ink); background: var(--paper-2); }
.legal-text td:first-child { color: var(--ink); }
.legal-text th:first-child { width: 40%; }
@media (max-width: 599px) {
  .legal-text thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-text tr { display: block; border: 1px solid var(--line); }
  .legal-text tr + tr { border-top: 0; }
  .legal-text td { display: block; border: 0; padding: .6rem .8rem 0; }
  .legal-text td:first-child { font-weight: 600; }
  .legal-text td:last-child { padding-bottom: .7rem; }
}
/* the line under both forms (Veebihai 24.11): what the data is used for, and where to read more */
.f-privacy { margin-top: .9rem; }
.f-privacy a { color: var(--green); text-underline-offset: .15em; }
