/* tarcus home, dark. The app's new look: Mona Sans, neutral greys, 9 and 14 px rectangles,
   no shadows for decoration, one yellow. The model is the light on the page. */

@font-face {
  font-family: "Mona Sans";
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url("fonts/mona-sans-vf.woff2") format("woff2");
}

:root {
  --bg: #0e0e0f;
  --raised: #141415;
  --raised-2: #1b1b1c;
  --ink: #efefec;
  --ink-2: #c4c4bf;
  --muted: #8e8e89;
  --line: rgba(239, 239, 236, 0.09);
  --line-2: rgba(239, 239, 236, 0.17);
  --line-3: rgba(239, 239, 236, 0.3);
  --primary: #fffc00;
  --primary-hover: #f0ed00;
  --on-primary: #17160f;
  --spot: #0a84ff;
  --r: 14px;
  --r-btn: 9px;
  --pad: 40px;
  --sec: 104px; /* one gap above every section, the opening's and the close's too (Germo 06/11: "tihedamaks") */
  --card: 32px; /* the inside of every card */
  --head-gap: 40px; /* a section's heading to its content */
  --col-gap: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
  scrollbar-color: #3a3a39 var(--bg);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--primary); color: var(--on-primary); }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
h1, h2, h3, b, dt { font-weight: 500; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; background: var(--primary); color: var(--on-primary); border-radius: var(--r-btn); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(1160px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* Buttons: rectangles, one yellow */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 22px; border-radius: var(--r-btn);
  font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}
.btn.sm { height: 36px; padding: 0 15px; font-size: 15px; }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.line { border-color: var(--line-3); color: var(--ink); }
.btn.line:hover { border-color: var(--ink); background: rgba(239, 239, 236, 0.04); }
.btn.ink { background: var(--on-primary); color: var(--primary); }
.btn.ink:hover { background: #2a2918; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 44px; height: 68px; }
.brand { display: block; flex: none; }
.brand img { width: 99px; height: 17px; }
.nav { display: flex; gap: 30px; font-size: 15px; }
.nav a, .end .wide { color: var(--ink-2); text-decoration: none; transition: color 0.15s; }
.nav a:hover, .end .wide:hover { color: var(--ink); }
.end { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 15px; }

/* Display type: Mona Sans a touch wide, never heavier than 500 */
h1, h2, h3, .price { font-stretch: 106%; }

/* Opening */
/* Opening: the words on the left, the app at work on the right, running off the page's edge, and the phone in front
   of it: the same building in the office and on site, all in the first view (Germo 06/11: text left, video right,
   the phone too). */
.hero { padding-top: 64px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 456px) minmax(0, 1fr); column-gap: 56px; align-items: start; }
.hero-txt { padding-top: 24px; }
.hero h1 { font-size: 58px; line-height: 1.03; letter-spacing: -0.026em; }
.hero .intro { margin-top: 24px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.hero .acts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .trial { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.hero-media { position: relative; margin-right: calc(-1 * max(var(--pad), (100vw - 1160px) / 2)); padding-bottom: 150px; }

/* The app at work, cropped to the model and its element card: the app's own rail left out */
.model { position: relative; aspect-ratio: 1828 / 1048; overflow: hidden; border-radius: var(--r) 0 0 var(--r); background: #0e0e0f; border: 1px solid var(--line-2); border-right: 0; }
.model .clip { object-position: 100% 50%; } /* the frame is the clip less the app's rail (92 of 1920 px): the rail goes, the rest stays whole */
/* The phone stands in front of the app, lower left, the status it keeps on site under it */
.hero-media .hero-phone { display: flex; flex-direction: column; align-items: center; position: absolute; left: -36px; bottom: 0; z-index: 2; }
.hero-media .phone { width: 196px; padding: 6px; border-radius: 34px; }
.hero-media .phone-screen { border-radius: 28px; }
.hero-media .phone-bar { height: 24px; padding: 1px 16px 0 20px; font-size: 10px; }
.hero-media .phone-bar svg { height: 8px; }
.hero-media .island { top: 11px; width: 56px; height: 17px; margin-left: -28px; border-radius: 10px; }
.hero-media .status { margin-top: 14px; }
.clip { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip-btn { position: absolute; left: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-3); color: var(--ink); transition: border-color 0.15s; }
.clip-btn:hover { border-color: var(--ink); }
.clip-btn svg { width: 15px; height: 15px; fill: currentColor; }
.clip-btn .i-pause, .clip-btn.on .i-play { display: none; }
.clip-btn.on .i-pause { display: block; }
/* Under the picture, what it also does: works on site without a signal */
.status { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.status svg { width: 15px; height: 15px; fill: var(--ink-2); }
.status .off { opacity: 0.25; }
/* On a phone the desktop app is too small to read: the phone app instead, its real screen */
.hero-phone { display: none; }

/* Two doors, side by side, rows lined up across both */
.products { padding-top: var(--sec); }
.doors { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, auto); column-gap: var(--col-gap); }
.door { grid-row: span 6; display: grid; grid-template-rows: subgrid; row-gap: 0; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.door > :not(.pic) { padding-left: var(--card); padding-right: var(--card); }
.door .pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: #1d1c1b; }
.door h3 { margin-top: 32px; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.door .for { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.door .say { margin-top: 20px; font-size: 20px; line-height: 1.45; color: var(--ink); max-width: 26em; }
.door .list { margin-top: 26px; }
.door .list li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
/* The doors' way on is yellow as a line: the one filled yellow stays the demo (Germo 06/11, live: "Äkki need nupud ka kollaseks?") */
.door .foot .btn.line { border-color: var(--primary); color: var(--primary); }
.door .foot .btn.line:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.door .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; border-top: 1px solid var(--line-2); padding-top: 22px; padding-bottom: 26px; align-self: end; }
.price { font-size: 30px; font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; }
.price .from { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; font-stretch: 100%; margin-right: 2px; }
.price small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; font-stretch: 100%; margin-left: 8px; }

/* Line breaks (06/11): the home page's share of lehed.css's: even heading lines, no lone last word */
.life b, .door h3 { text-wrap: balance; }
.life span, .door .for, .door .say { text-wrap: pretty; }

/* 06/11, Germo "Jah, vii sisse" after the example: the operation door on the home page plays the operation page's opening as it comes
   into view: the QR label, a yellow scan across its code, the work order it opens. Reduced motion: fades only. */
.door .fm.pre .qr { opacity: 0; transform: translateY(10px) scale(0.96); }
.door .fm.pre .wo { opacity: 0; transform: translateX(28px); }
.door .fm.go .qr { opacity: 1; transform: none; transition: opacity 360ms var(--ease), transform 480ms var(--ease); }
.door .fm.go .wo { opacity: 1; transform: none; transition: opacity 420ms var(--ease) 950ms, transform 640ms var(--ease) 950ms; }
.door .fm.go:not(.soft) .qr::after { content: ""; position: absolute; left: 0.85em; top: 0.85em; width: 5em; height: 2px; background: var(--primary); animation: door-scan 620ms var(--ease) 320ms both; }
@keyframes door-scan { from { transform: translateY(0); opacity: 1; } 85% { opacity: 1; } to { transform: translateY(5em); opacity: 0; } }
.door .fm.pre.soft .qr, .door .fm.pre.soft .wo { transform: none; }

/* Under the phone (06/11, Germo "Jah, vii sisse" after the example), "Objektil ka ilma levita". Once, as the page
   opens, the signal drops from four bars to one, the way it does going down into a basement, and the app goes on.
   Reduced motion: the one bar as before. */
.hero-media .status.sig-pre rect.off { opacity: 1; }
.hero-media .status.sig rect.off { animation: sig-off 180ms ease-out both; }
.hero-media .status.sig rect.off:nth-of-type(4) { animation-delay: 500ms; }
.hero-media .status.sig rect.off:nth-of-type(3) { animation-delay: 900ms; }
.hero-media .status.sig rect.off:nth-of-type(2) { animation-delay: 1300ms; }
@keyframes sig-off { from { opacity: 1; } to { opacity: 0.25; } }

/* Photo and model from one viewpoint: drag the line */
.cmp { cursor: ew-resize; touch-action: pan-y; --x: 40%; user-select: none; -webkit-user-select: none; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp-top { clip-path: inset(0 0 0 var(--x)); }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.cmp-bar { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.knob { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); transition: transform 0.25s var(--ease); }
.knob svg { width: 20px; height: 20px; fill: none; stroke: #17160f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cmp:hover .knob, .cmp.drag .knob { transform: scale(1.08); }
.cmp-range:focus-visible + .cmp-bar .knob { outline: 2px solid var(--primary); outline-offset: 3px; }

/* A phone: the app's real screen in a drawn frame, with the status bar the browser capture has not */
.phone { position: relative; width: 300px; padding: 9px; border-radius: 50px; background: #050505; border: 1px solid var(--line-3); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #232324; }
.phone-screen { border-radius: 41px; overflow: hidden; background: var(--bg); }
.phone-screen img { width: 100%; }
.phone-bar { height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 2px 24px 0 30px; font-size: 13px; font-weight: 600; color: #fff; }
.phone-bar svg { height: 11px; width: auto; fill: #fff; }
.island { position: absolute; top: 17px; left: 50%; width: 84px; height: 25px; margin-left: -42px; background: #000; border-radius: 14px; }

/* The operation door: the app's own pieces, sized off the door's width */
.fm { container-type: inline-size; }
.fm-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.fm::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(14, 14, 15, 0.58); }
.fm-in { z-index: 2; }
.fm-in { position: absolute; inset: 0; font-size: 2.82cqw; }
.qr { position: absolute; z-index: 1; left: 1.5em; bottom: 1.75em; width: 14.2em; display: flex; gap: 0.85em; align-items: center; background: #fff; color: #111; border-radius: 0.6em; padding: 0.85em; box-shadow: 0 0.5em 1.6em rgba(0, 0, 0, 0.35); }
.qr > img { width: 5em; height: 5em; flex: none; }
.qr p { line-height: 1.2; }
.q-id { font-size: 1.35em; font-weight: 600; letter-spacing: -0.01em; }
.q-name { font-size: 0.82em; margin-top: 0.25em; color: #222; }
.q-loc { font-size: 0.74em; margin-top: 0.15em; color: #6b6b66; }
.q-mark { margin-top: 0.75em; font-size: 0.6em; font-weight: 600; letter-spacing: 0.14em; color: #8a8a85; }
.wo { position: absolute; right: 2em; top: 2em; bottom: -1em; width: 16.4em; background: var(--bg); border: 1px solid var(--line-2); border-radius: 0.9em; padding: 1.15em 1.1em; color: var(--ink); }
.wo p { line-height: 1.3; }
.crumb { font-size: 0.7em; color: var(--muted); }
.wo-title { font-size: 1.32em; font-weight: 500; font-stretch: 106%; letter-spacing: -0.015em; margin-top: 0.35em; }
.meta { font-size: 0.72em; color: var(--muted); margin-top: 0.3em; }
.badges { display: flex; gap: 0.4em; margin-top: 0.8em; }
.badges span { font-size: 0.66em; font-weight: 500; padding: 0.2em 0.55em; border-radius: 0.4em; }
.b-new { background: rgba(10, 132, 255, 0.18); color: #6fb4ff; }
.b-high { background: rgba(255, 176, 32, 0.16); color: #ffc04d; }
.desc { margin-top: 0.95em; background: var(--raised-2); border-radius: 0.6em; padding: 0.75em 0.8em; font-size: 0.74em; line-height: 1.45; color: var(--ink-2); }
.desc b { display: block; color: var(--muted); font-weight: 500; margin-bottom: 0.3em; }
.wo-btn { display: inline-flex; align-items: center; height: 2.35em; padding: 0 1em; margin-top: 1em; border-radius: 0.55em; background: var(--primary); color: var(--on-primary); font-size: 0.78em; font-weight: 500; }

/* The life of a building: one line, yellow from where tarcus holds the information */
.life-sec { padding-top: var(--sec); overflow-x: clip; }
.head h2 { font-size: 46px; line-height: 1.08; letter-spacing: -0.022em; max-width: 16em; }
.head .lead { margin-top: 18px; font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.life { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--col-gap); margin-top: var(--head-gap); }
.life li { position: relative; padding: 34px 0 0; }
.life li::before { content: ""; position: absolute; top: 0; left: 0; right: calc(-1 * var(--col-gap)); height: 2px; margin-top: -1px; background: var(--line-3); }
.life li::after { content: ""; position: absolute; top: -7px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-3); }
.life li.in::before { background: var(--primary); }
.life li.in::after { background: var(--primary); border-color: var(--primary); }
.life::after { content: ""; position: absolute; top: -1px; left: 100%; width: 50vw; height: 2px; background: var(--primary); }
/* The one authored moment: as the section comes into view the yellow runs on from Ehitus, fills each stage as it
   reaches it and carries on off the page: what is gathered in construction goes with the building. tume.js adds
   .pre before it is seen and .go when it is; without the script the line is simply there. */
.life.pre li.in::before, .life.pre::after { transform: scaleX(0); transform-origin: left center; }
.life.pre li.in::after { background: var(--bg); border-color: var(--line-3); transform: scale(0.7); }
.life li.in { --d: 0ms; }
.life li.in + li.in { --d: 360ms; }
.life li.in + li.in + li.in { --d: 720ms; }
.life.go li.in::before { transform: none; transition: transform 360ms cubic-bezier(0.45, 0, 0.55, 1) var(--d); }
.life.go li.in::after { background: var(--primary); border-color: var(--primary); transform: none; transition: background-color 140ms var(--d), border-color 140ms var(--d), transform 320ms var(--ease) var(--d); }
.life.go::after { transform: none; transition: transform 900ms var(--ease) 1080ms; }
/* Reduced motion: nothing travels, the yellow fades in where it stands */
.life.pre.soft li.in::before, .life.pre.soft::after, .life.pre.soft li.in::after { transform: none; opacity: 0; }
.life.pre.soft li.in::after { background: var(--primary); border-color: var(--primary); }
.life.go.soft li.in::before, .life.go.soft::after, .life.go.soft li.in::after { opacity: 1; transition: opacity 600ms ease-out; }
.life b { display: block; font-size: 22px; line-height: 1.2; font-stretch: 106%; letter-spacing: -0.015em; }
.life span { display: block; margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); max-width: 17em; }

/* The one yellow moment */
.close { margin-top: var(--sec); background: var(--primary); color: var(--on-primary); padding: var(--sec) 0 calc(var(--sec) + 8px); }
.close ::selection { background: var(--on-primary); color: var(--primary); }
.close :focus-visible { outline-color: var(--on-primary); }
.close .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.close h2 { font-size: 96px; line-height: 0.98; letter-spacing: -0.032em; }
.close .lead { margin-top: 28px; font-size: 20px; line-height: 1.55; max-width: 31em; }
.close .acts { margin-top: 36px; }
.person { display: flex; align-items: center; gap: 20px; }
.person img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; flex: none; }
.person b { display: block; font-size: 24px; line-height: 1.15; font-stretch: 106%; letter-spacing: -0.01em; }
.person a { display: block; margin-top: 6px; font-size: 18px; line-height: 1.3; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.person a:hover { text-decoration-thickness: 2px; }

/* Footer: what you go to, what you sign in with, whom you write to; the fine print below */
footer { padding: 64px 0 40px; font-size: 15px; color: var(--ink-2); }
.foot-top { display: flex; align-items: flex-start; gap: 40px; }
footer .brand img { width: 99px; height: 17px; }
.foot-nav { margin-left: auto; display: grid; grid-template-columns: repeat(3, auto); column-gap: 72px; }
.foot-nav li + li { margin-top: 10px; }
footer a { text-decoration: none; transition: color 0.15s; }
footer a:hover { color: var(--ink); }
.foot-end { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot-end .lang { margin-left: auto; }

@media (max-width: 1100px) {
  /* The words above, the app below it, still running off the edge with the phone in front */
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .hero-txt { padding-top: 0; max-width: 40em; }
  .hero-media .hero-phone { left: 24px; }
  .close h2 { font-size: 76px; }
}

@media (max-width: 900px) {
  :root { --pad: 18px; --sec: 80px; }
  html { scroll-padding-top: 72px; }
  .top .wrap { gap: 14px; height: 60px; }
  .top .brand img { width: 84px; height: auto; }
  .nav { gap: 14px; }
  .nav .pre, .nav .contact, .end .wide { display: none; }
  .end { gap: 0; }
  .btn.sm { height: 34px; padding: 0 13px; font-size: 14px; }
  .hero { padding-top: 52px; }
  .hero h1 { font-size: 40px; line-height: 1.05; letter-spacing: -0.024em; }
  .hero .intro { margin-top: 20px; font-size: 17.5px; }
  .hero .acts { margin-top: 28px; gap: 10px; }
  .hero .acts .btn { flex: 1 1 0; }
  .hero .trial { margin-top: 14px; font-size: 14.5px; }
  .status { margin-top: 12px; font-size: 14px; gap: 8px; }
  .hero-grid { row-gap: 36px; }
  .hero-media { padding-bottom: 110px; }
  .hero-media .hero-phone { left: 14px; }
  .hero-media .phone { width: 150px; padding: 5px; border-radius: 27px; }
  .hero-media .phone-screen { border-radius: 22px; }
  .doors { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 20px; }
  .door { grid-row: auto; grid-template-rows: none; }
  :root { --card: 20px; --head-gap: 32px; }
  .door > :not(.pic) { padding-left: var(--card); padding-right: var(--card); }
  .door h3 { margin-top: 24px; font-size: 28px; }
  .door .say { font-size: 18px; margin-top: 16px; }
  .door .pic { aspect-ratio: 4 / 3; }
  .fm-in { font-size: 4.3cqw; }
  .fm .qr { display: none; }
  .fm .wo { left: 50%; right: auto; width: 17.5em; margin-left: -8.75em; top: 1.6em; }
  .door .list { margin-top: 20px; }
  .door .list li { font-size: 15px; }
  .door .foot { padding-top: 18px; padding-bottom: 20px; }
  .price { font-size: 26px; }
  .price small { display: block; margin: 6px 0 0; }
  .head h2 { font-size: 32px; line-height: 1.12; }
  .head .lead { font-size: 17.5px; margin-top: 14px; }
  .life { grid-template-columns: 1fr; margin-top: 40px; }
  .life li { padding: 0 0 30px 34px; }
  .life li:last-child { padding-bottom: 0; }
  .life li::before { top: 7px; bottom: -7px; left: 6px; right: auto; width: 2px; height: auto; margin: 0; }
  .life li:last-child::before { bottom: -40px; }
  .life li::after { top: 0; }
  .life li.in + li::before, .life li.in::before { background: var(--primary); }
  /* Upright on a phone: the line runs down */
  .life.pre li.in::before { transform: scaleY(0); transform-origin: center top; }
  .life.go li.in::before, .life.pre.soft li.in::before { transform: none; }
  .life::after { display: none; }
  .life b { font-size: 20px; }
  .life span { margin-top: 6px; font-size: 15px; max-width: none; }
  .close { padding: var(--sec) 0 80px; margin-top: var(--sec); } /* the close's heading as far down as on the product pages (06/11) */
  .close .wrap { grid-template-columns: 1fr; gap: 28px; }
  .close h2 { font-size: 52px; line-height: 1; }
  .close .lead { font-size: 17.5px; margin-top: 20px; }
  .close .acts { margin-top: 28px; }
  .person img { width: 88px; height: 88px; }
  .person b { font-size: 20px; }
  .person a { font-size: 16.5px; }
  footer { padding-top: 48px; }
  .foot-top { flex-direction: column; gap: 28px; }
  .foot-nav { margin-left: 0; grid-template-columns: 1fr 1fr; row-gap: 22px; column-gap: 24px; width: 100%; }
  .foot-nav ul:last-child { grid-column: 1 / -1; }
  .foot-end { margin-top: 40px; gap: 8px 20px; }
  .foot-end .lang { margin-left: 0; }
}

@media (max-width: 600px) {
  .model, .shot .clipbox { display: none; }
  .hero-phone { display: flex; justify-content: center; padding: 4px 0 8px; }
  .hero-phone .phone { width: min(300px, 80vw); }
  /* On a phone the phone app alone, standing on its own */
  .hero-media { margin-right: 0; padding-bottom: 0; }
  .hero-media .hero-phone { position: static; }
  .hero-media .phone { padding: 8px; border-radius: 46px; }
  .hero-media .phone-screen { border-radius: 38px; }
  .hero-media .phone-bar { height: 32px; font-size: 13px; padding: 2px 22px 0 28px; }
  .hero-media .phone-bar svg { height: 11px; }
  .hero-media .island { top: 15px; width: 78px; height: 23px; margin-left: -39px; border-radius: 13px; }
}

@media (max-width: 350px) {
  .nav { display: none; }
}
/* The English header (09/11): "facility management" stays on one line; where the two products' names and the demo
   button no longer fit side by side, the button stays and the products are reached from the page and the footer */
.nav a { white-space: nowrap; }
@media (max-width: 439px) {
  html[lang="en"] .top .nav:not(.docs) { display: none; }
}

/* Page to page (Germo "vii sisse" 09/11 after the example): the page changes without a blank. The home page's door picture grows into the next
   page's opening picture and back; the header stays still; the rest crossfades. Chrome, Edge and Safari; elsewhere
   the page opens as it does now. c/ule.js names the one picture that moves and skips it all with reduced motion. */
@view-transition { navigation: auto; }

.top { view-transition-name: top; }

/* The page under it: the old one goes first, the new one comes after, so two pages' words never lie on top of each other. */
::view-transition-old(root) { animation: vt-out 140ms ease-out both; }
::view-transition-new(root) { animation: vt-in 300ms var(--ease) 110ms both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
::view-transition-group(fm-pic), ::view-transition-group(site-pic) {
  animation-duration: 560ms;
  animation-timing-function: var(--ease);
  overflow: clip;
  border-radius: var(--r);
}
::view-transition-old(fm-pic), ::view-transition-new(fm-pic),
::view-transition-old(site-pic), ::view-transition-new(site-pic) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Inside the moving frame the old picture gives way early, so the two never show the same card twice for long. */
::view-transition-old(fm-pic), ::view-transition-old(site-pic) { animation: vt-out 180ms ease-out both; }
::view-transition-new(fm-pic), ::view-transition-new(site-pic) { animation: vt-in 260ms ease-out 40ms both; }

/* The picture arrives whole: the work order and its label are already there, so the opening does not play again. */
.arrived .shot .fm .qr, .arrived .shot .fm .wo,
.arrived .door .fm .qr, .arrived .door .fm .wo { opacity: 1 !important; transform: none !important; transition: none !important; }
.arrived .shot .fm .qr::after, .arrived .door .fm .qr::after { content: none !important; }

/* The legal pages (privacy, terms, data processing), 09/11: the live text as it is, in one readable column on the
   page's left edge, in the same type; sections divided by hairlines, lists as ruled rows, never ticks. */
.doc main { padding-bottom: var(--sec); }
.legal { padding-top: 64px; }
.legal > * { max-width: 760px; }
.legal h1 { font-size: 46px; line-height: 1.08; letter-spacing: -0.022em; overflow-wrap: break-word; }
.legal-lead { margin-top: 20px; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.legal-updated { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.legal section { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.legal h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; }
.legal h2 + * { margin-top: 14px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.legal section > * + * { margin-top: 14px; }
.legal section > h2 + * { margin-top: 14px; }
.legal li { padding: 12px 0; border-top: 1px solid var(--line); }
.legal li:first-child { border-top: 0; padding-top: 2px; }
.legal li:last-child { padding-bottom: 0; }
.legal strong { font-weight: 500; color: var(--ink); }
.legal a { text-decoration: underline; text-decoration-color: var(--line-3); }
.legal a:hover { text-decoration-color: var(--primary); }
.legal-table { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; }
.legal th { padding: 0 16px 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--muted); text-align: left; vertical-align: bottom; }
.legal td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; color: var(--ink-2); vertical-align: top; }
.legal th:last-child, .legal td:last-child { padding-right: 0; }
@media (max-width: 900px) {
  .legal { padding-top: 48px; }
  .legal h1 { font-size: 32px; line-height: 1.12; }
  .legal-lead { font-size: 17.5px; }
  .legal section { margin-top: 36px; padding-top: 24px; }
  .legal h2 { font-size: 21px; }
  .legal p, .legal li { font-size: 16px; }
}
@media (max-width: 600px) {
  .top .nav.docs { display: none; }
  .legal td { min-width: 9em; }
}

/* Wide screens (09/11, Germo at 4K: "Vaata kas see parempoolne pilt 4K-s imelikult ei kuva?"): from 1600 px the app
   no longer runs off the page's edge but ends on the header's right edge, so it keeps its size beside the words;
   the phone stays where it stands on it. Up to 1600 px nothing changes. */
@media (min-width: 1600px) {
  .hero-media { margin-right: 0; }
  .model { border-radius: var(--r); border-right: 1px solid var(--line-2); }
}

/* The close band (09/11, Germo "Siin ka layout vist vähe vale?"): the heading across the band; under it the words
   and the button on the left and the person on the right, both from one top line, the person's right edge on the
   column's right edge. On a phone one column, the person under the button. */
.close .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 40px; row-gap: 0; }
.close-txt { display: contents; }
.close h2 { grid-column: 1 / -1; }
.close .lead, .close .acts { grid-column: 1; }
.close .person { grid-column: 2; grid-row: 2 / span 2; margin-top: 32px; }
@media (max-width: 900px) {
  .close .wrap { grid-template-columns: minmax(0, 1fr); }
  .close .person { grid-column: 1; grid-row: auto; margin-top: 36px; }
}
