/* Noto Sans, self-hosted variable font (400-900), one file per script subset */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/noto-sans-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/noto-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/noto-sans-devanagari.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/noto-sans-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/noto-sans-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/noto-sans-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/noto-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-024F;   /* subset to Latin Extended-A/B (all Central European letters): 44 kB instead of 164 kB */
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/noto-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* =====================================================================
   log-scaling.app — site design (direction 1a "Daytime forest")
   Colors and shapes follow the mobile app (WEB-PODKLADY/01-DESIGN-WEB.md),
   font is Noto Sans everywhere. Dark theme only for now.
   ===================================================================== */

:root {
	--bg: #061531;            /* page background */
	--bg-deep: #04080f;
	--card: #0b2a63;          /* card surface (1a) */
	--card-hover: #103661;
	--line: #1a5bc4;          /* card outline (1a) */
	--line-soft: #15294a;
	--fg: #ffffff;
	--fg-2: #e8eef7;
	--fg-sub: #cfe0f7;
	--muted: #9fb2cc;
	--muted-2: #8aa0bf;

	--yellow: #ffc400;        /* results, highlighted numbers */
	--yellow-hover: #ffd54d;
	--green: #00a651;         /* confirm / CTA */
	--green-hover: #008c45;
	--green-num: #00c060;
	--orange: #ff8a3d;        /* "selected" */
	--orange-deep: #c25e14;   /* fill of selected element, white text on it */
	--orange-vivid: #f26b00;   /* Google Play button (owner: sharp orange) */
	--orange-vivid-hover: #d95f00;
	--red: #c62828;
	--ink: #08111f;           /* dark text on yellow/green */
	--tile: #f6ebe0;          /* light icon tile (1a) */

	--sky: linear-gradient(180deg, #062a6e 0%, #0a4fb8 42%, #1e8ae8 70%, #0f9a4e 100%);

	--r-card: 24px;
	--r-btn: 14px;
	--r-field: 12px;
	--pad: 64px;
	--max: 1312px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--font: "Noto Sans", Arial, sans-serif;
}

@media (max-width: 1200px) { :root { --pad: 40px; } }
@media (max-width: 700px)  { :root { --pad: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg-2);
	font: 400 17px/1.55 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--yellow); text-decoration: none; }
a:hover { color: var(--yellow-hover); }
h1, h2, h3, h4 { margin: 0; color: var(--fg); font-family: var(--font); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- Type scale ---------- */

.kicker { font: 700 14px/1.3 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.kicker.is-yellow { color: var(--yellow); }
.h1 { font: 900 68px/1.07 var(--font); letter-spacing: -.04em; }
.h2 { font: 900 56px/1.05 var(--font); letter-spacing: -.035em; }
.h3 { font: 800 30px/1.15 var(--font); letter-spacing: -.02em; }
.lead { font-size: 21px; line-height: 1.55; color: var(--fg-sub); }
.muted { color: var(--muted); }

@media (max-width: 1200px) { .h1 { font-size: 60px; } .h2 { font-size: 46px; } }
@media (max-width: 700px)  { .h1 { font-size: 38px; } .h2 { font-size: 34px; } .h3 { font-size: 24px; } .lead { font-size: 18px; } body { font-size: 16px; } }


/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 56px; padding: 14px 24px;
	border: 2px solid transparent; border-radius: var(--r-btn);
	font: 700 17px/1.2 var(--font); text-decoration: none; white-space: nowrap;
	cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-hover); color: var(--ink); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-hover); color: #fff; }
.btn-outline { border-color: var(--yellow); color: var(--yellow); background: transparent; }
.btn-outline:hover { background: rgba(255, 196, 0, .1); color: var(--yellow-hover); }
.btn-pill { border-radius: 999px; min-height: 48px; padding: 10px 22px; font-size: 16px; }

/* Google Play badge (1a) */
.play {
	display: inline-flex; align-items: center; gap: 12px;
	min-height: 64px; padding: 10px 22px;
	background: var(--orange-vivid); border: 0; border-radius: var(--r-btn);
	color: #fff; text-decoration: none; transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.play:hover { background: var(--orange-vivid-hover); color: #fff; }
.play:active { transform: translateY(1px); }
.play svg path { fill: #fff; }
.play svg { width: 28px; height: 28px; flex: none; }
.play span { display: flex; flex-direction: column; line-height: 1.15; }
.play small { font: 700 11px var(--font); letter-spacing: .1em; color: #3a1700; text-transform: uppercase; }   /* dark on orange 5.3:1; white small text was 2.6:1 */
.play b { font: 700 20px var(--font); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }


/* ---------- Badges ---------- */

.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font: 800 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.badge-red { background: #d32f2f; }
.badge-orange { background: #b8560f; }   /* 4.8:1 with white text (orange-deep was 4.28) */
.badge-blue { background: #174e8c; }
.badge-green { background: #0f7846; }


/* ---------- Icon helper (app icons as CSS masks, any color) ---------- */

.ico { display: inline-block; width: 28px; height: 28px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }


/* ---------- Living page background (below the hero): contour lines + slow drifting glows ---------- */

.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-fx .blob { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(40px); will-change: transform; animation: bgDrift 60s ease-in-out infinite alternate; }
.bg-fx .b1 { left: -25vmax; top: -10vmax; background: radial-gradient(circle, rgba(26, 91, 196, .32), rgba(26, 91, 196, 0) 65%); }
@keyframes bgDrift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(8vw, 6vh, 0) scale(1.12); } 100% { transform: translate3d(-6vw, 10vh, 0) scale(.95); } }
@media (prefers-reduced-motion: reduce) { .bg-fx .blob { animation: none; } }


/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 900; transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.site-header.is-stuck { background: rgba(6, 21, 49, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-soft); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 88px; }
.page-home .site-header, .page-sub .site-header { margin-bottom: -88px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; color: #fff; }
.brand:hover { color: #fff; }
.brand img.app { width: 54px; height: auto; }
.brand .name { font: 900 24px/1 var(--font); letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.brand-txt { display: flex; flex-direction: column; gap: 2px; }
.brand .sub { font: 500 12px/1 var(--font); letter-spacing: .02em; color: var(--muted, #b9c6dd); white-space: nowrap; }

.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { white-space: nowrap; color: var(--fg-sub); font: 600 16px var(--font); padding: 8px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: #fff; }
.main-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--yellow); }

.header-right { display: flex; align-items: center; gap: 14px; flex: none; }
.main-nav + .header-right { margin-left: 0; }

.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid #2a4a7a; border-radius: 12px; background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 24px; height: 24px; }

/* language select */
.lang { position: relative; }
.lang-trigger { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 14px 6px 12px; background: transparent; border: 0; border-radius: 999px; color: var(--muted); font: 600 15px var(--font); cursor: pointer; }
.lang-trigger:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lang-trigger img { box-sizing: border-box; width: 28px; height: 21px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 3px; object-fit: cover; }
.lang-trigger svg { width: 12px; height: 8px; transition: transform .18s var(--ease); }
.lang.is-open .lang-trigger svg { transform: rotate(180deg); }
.lang-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1000; display: none; grid-template-columns: 1fr 1fr; gap: 2px; width: min(520px, 92vw); max-height: min(62vh, 460px); overflow-y: auto; padding: 8px; background: #0b1f45; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.lang.is-open .lang-panel { display: grid; }
.lang-panel a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--fg-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.lang-panel a:hover { background: var(--card-hover); color: #fff; }
.lang-panel a[aria-current="true"] { background: var(--orange-deep); color: #fff; }
.lang-panel img { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; flex: none; }

@media (max-width: 1320px) {
	.main-nav { display: none; }
	.menu-toggle { display: inline-flex; }
	.header-right, .main-nav + .header-right { margin-left: auto; }
	.main-nav.is-open {
		display: flex; flex-direction: column; gap: 0;
		position: absolute; top: 100%; left: 0; right: 0;
		padding: 8px var(--pad) 20px; background: rgba(6, 21, 49, .98); border-bottom: 1px solid var(--line-soft);
	}
	.main-nav.is-open a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line-soft); }
	.main-nav.is-open a[aria-current="page"] { color: var(--yellow); }
}
/* same compact header as under 1320px, switched on by scripts/site.js when the labels of a language do not fit */
.site-header.nav-wide .wrap { max-width: 1560px; }
.site-header.nav-compact .main-nav { display: none; }
.site-header.nav-compact .menu-toggle { display: inline-flex; }
.site-header.nav-compact .header-right, .site-header.nav-compact .main-nav + .header-right { margin-left: auto; }
.site-header.nav-compact .main-nav.is-open {
	display: flex; flex-direction: column; gap: 0;
	position: absolute; top: 100%; left: 0; right: 0;
	padding: 8px var(--pad) 20px; background: rgba(6, 21, 49, .98); border-bottom: 1px solid var(--line-soft);
}
.site-header.nav-compact .main-nav.is-open a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line-soft); }
.site-header.nav-compact .main-nav.is-open a[aria-current="page"] { color: var(--yellow); }
@media (max-width: 700px) {
	.site-header .wrap { min-height: 72px; gap: 12px; }
	.page-home .site-header, .page-sub .site-header { margin-bottom: -72px; }
	.brand img.app { width: 38px; }
	.brand .name { font-size: 17px; }
	.brand .sub { font-size: 10px; }
	.header-right .btn-pill { display: none; }
	.lang-trigger span { display: none; }
	.lang-trigger { min-height: 40px; padding: 4px 8px 4px 9px; gap: 5px; }
	.lang-trigger img { width: 22px; height: 16px; }
	.header-right, .main-nav + .header-right { margin-left: auto; gap: 10px; margin-right: -4px; }
	.menu-toggle { width: 44px; height: 44px; }
	.lang-panel { grid-template-columns: 1fr; position: fixed; top: 72px; right: 16px; left: 16px; width: auto; }
}


/* ---------- Hero with animated forest ---------- */

.hero { position: relative; overflow: hidden; background: var(--sky); isolation: isolate; }
.hero { --hero-h: clamp(700px, calc(100svh - 80px), 960px); }
.hero-in { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 700px) 1fr; gap: 40px; padding-top: 148px; min-height: var(--hero-h); }
.hero-copy { display: flex; flex-direction: column; gap: 28px; padding-top: 40px; }
.hero-copy .lead { max-width: 560px; }
/* badges sit higher; translate keeps the headline exactly where it was */
.hero-copy > .badges { transform: translateY(-36px); }
@media (max-width: 700px) { .hero-copy > .badges { transform: translateY(-8px); } }
.hero-phones { position: relative; height: calc(var(--hero-h) - 148px); }
.hero-phones .phone { position: absolute; }
/* upright phones, like the Google Play feature graphic: back one higher on the right, front one lower on the left */
.hero-phones .phone-back { right: 0; top: 0; width: min(340px, calc((var(--hero-h) - 248px) * .45)); }
.hero-phones .phone-front { left: 0; top: 140px; width: min(340px, calc((var(--hero-h) - 248px) * .45)); z-index: 1; }

/* Background animations start only after the page has loaded (scripts/site.js adds .anim-on): without a GPU
   (PageSpeed, older phones) the moving sun and forest layers are re-rastered every frame and held the first paint back ~2 s */
html:not(.anim-on) *, html:not(.anim-on) *::before, html:not(.anim-on) *::after { animation-play-state: paused !important; }
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sun { position: absolute; top: 0; left: calc(82% - 1180px); width: 2880px; height: 600px; transform-origin: 1180px 120px; animation: tpRays 18s ease-in-out infinite; }
.sun svg { display: block; width: 2880px; height: 600px; }   /* inline sun SVG, see com_initialize.php */
.sun-glow { position: absolute; top: -200px; left: calc(82% - 320px); width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 248, 215, .55) 0%, rgba(255, 232, 150, .35) 10%, rgba(255, 210, 80, .14) 32%, rgba(255, 196, 0, 0) 68%); animation: tpGlow 9s ease-in-out infinite; }

.forest { position: absolute; left: 0; right: 0; bottom: 0; height: 600px; z-index: 1; overflow: hidden; pointer-events: none; --p: 1440px; }
.forest .layer { position: absolute; left: 0; bottom: 0; width: calc(100% + var(--p)); height: 600px; background-repeat: repeat-x; background-size: calc(var(--p) * 2) 600px; background-position: 0 0; animation: tpDrift var(--dur) linear infinite; will-change: transform; }
.forest .hills { background-image: url(/images/hero/hills.svg); --dur: 220s; }
.forest .far   { background-image: url(/images/hero/trees-far.svg); --dur: 140s; }
.forest .fog1  { background-image: url(/images/hero/fog.svg); --dur: 140s; filter: blur(12px); bottom: 30px; opacity: .9; }
.forest .mid   { background-image: url(/images/hero/trees-mid.svg); --dur: 90s; }
.forest .fog2  { background-image: url(/images/hero/fog.svg); --dur: 70s; filter: blur(14px); bottom: -24px; opacity: .6; animation-name: tpDrift, tpFog; animation-duration: 70s, 14s; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite; }
.forest .front { background-image: url(/images/hero/trees-front.svg); --dur: 50s; }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: 2; background: linear-gradient(180deg, rgba(6, 21, 49, 0), var(--bg)); pointer-events: none; }

@keyframes tpDrift { to { transform: translate3d(calc(-1 * var(--p)), 0, 0); } }
@keyframes tpFog { 0%, 100% { opacity: .35; } 50% { opacity: .7; } }
@keyframes tpGlow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes tpRays { 0%, 100% { transform: rotate(-3deg); opacity: .7; } 50% { transform: rotate(3deg); opacity: 1; } }

@media (max-width: 1200px) {
	.hero-in { grid-template-columns: 1fr; min-height: 0; padding-bottom: 260px; }
	.hero-phones { height: 620px; max-width: 560px; width: 100%; margin: 0 auto; }
	.hero-phones .phone-back { width: 270px; right: 6%; }
	.hero-phones .phone-front { width: 270px; top: 110px; left: 6%; }
}
@media (max-width: 700px) {
	.hero-in { padding-top: 104px; gap: 24px; padding-bottom: 200px; }
	.hero-copy { gap: 22px; padding-top: 8px; }
	.hero-phones { height: 440px; }
	.hero-phones .phone-back { width: 190px; right: 2%; }
	.hero-phones .phone-front { width: 190px; top: 80px; left: 2%; }
	.forest { height: 420px; --p: 1008px; }
	.forest .layer { height: 420px; background-size: calc(var(--p) * 2) 420px; }
	.sky { opacity: .65; }
	.sun { left: calc(70% - 1180px); }
	.sun-glow { left: calc(70% - 320px); }
}
@media (prefers-reduced-motion: reduce) {
	.forest .layer, .sun, .sun-glow { animation: none !important; }
}
/* phones: blur filters on full-width layers are the most expensive paint on a slow CPU (they delayed the first paint);
   the gradients and the fog SVG are soft enough without them */
@media (max-width: 700px) {
	.bg-fx .blob { filter: none; animation: none; will-change: auto; }
	.forest .fog1, .forest .fog2, .forest .l5 { filter: none; }
}

/* Page-specific hero backgrounds (owner layers 2880x600, period 1440 px) */
.hero-th-tazba { background: url(/images/hero-tazba/00-sky.svg) center bottom / cover no-repeat; }
.hero-th-odvoz { background: url(/images/hero-odvoz/00-sky.svg) center bottom / cover no-repeat; }
.th-tazba .l2 { background-image: url(/images/hero-tazba/02-mountains-far.svg); --dur: 300s; }
.th-tazba .l3 { background-image: url(/images/hero-tazba/03-mountains-near.svg); --dur: 200s; }
.th-tazba .l4 { background-image: url(/images/hero-tazba/04-forest-far.svg); --dur: 130s; }
.th-tazba .l5 { background-image: url(/images/hero-tazba/05-fog.svg); --dur: 90s; filter: blur(12px); }
.th-tazba .l6 { background-image: url(/images/hero-tazba/06-forest-near.svg); --dur: 80s; }
.th-tazba .l7 { background-image: url(/images/hero-tazba/07-tazba.svg); --dur: 50s; }
.th-odvoz .l2 { background-image: url(/images/hero-odvoz/02-mountains-far.svg); --dur: 300s; }
.th-odvoz .l3 { background-image: url(/images/hero-odvoz/03-mountains-near.svg); --dur: 200s; }
.th-odvoz .l4 { background-image: url(/images/hero-odvoz/04-forest-far.svg); --dur: 130s; }
.th-odvoz .l5 { background-image: url(/images/hero-odvoz/05-fog.svg); --dur: 90s; filter: blur(12px); }
.th-odvoz .l6 { background-image: url(/images/hero-odvoz/06-forest-near.svg); --dur: 80s; }
.th-odvoz .l7 { background-image: url(/images/hero-odvoz/07-odvoz.svg); --dur: 50s; }
.hero-th-dielna { background: url(/images/hero-dielna/00-sky.svg) center bottom / cover no-repeat; }
.th-dielna .l2 { background-image: url(/images/hero-dielna/02-mountains-far.svg); --dur: 300s; }
.th-dielna .l3 { background-image: url(/images/hero-dielna/03-mountains-near.svg); --dur: 200s; }
.th-dielna .l4 { background-image: url(/images/hero-dielna/04-forest-far.svg); --dur: 130s; }
.th-dielna .l5 { background-image: url(/images/hero-dielna/05-fog.svg); --dur: 90s; filter: blur(12px); }
.th-dielna .l6 { background-image: url(/images/hero-dielna/06-forest-near.svg); --dur: 80s; }
.th-dielna .l7 { background-image: url(/images/hero-dielna/07-dielna.svg); --dur: 50s; }
.hero-th-les { background: url(/images/hero-les/00-sky.svg) center bottom / cover no-repeat; }
.th-les .l2 { background-image: url(/images/hero-les/02-mountains-far.svg); --dur: 300s; }
.th-les .l3 { background-image: url(/images/hero-les/03-mountains-near.svg); --dur: 200s; }
.th-les .l4 { background-image: url(/images/hero-les/04-forest-far.svg); --dur: 130s; }
.th-les .l5 { background-image: url(/images/hero-les/05-fog.svg); --dur: 90s; filter: blur(12px); }
.th-les .l6 { background-image: url(/images/hero-les/06-forest-near.svg); --dur: 80s; }
.th-les .l7 { background-image: url(/images/hero-les/07-les.svg); --dur: 50s; }
/* atlas: map style, no sky; layers fill the whole hero and fade out at the top */
.hero-th-atlas { background: linear-gradient(180deg, #061a40 0%, #08214f 100%); }
.th-atlas .layer { -webkit-mask-image: linear-gradient(0deg, #000 70%, transparent); mask-image: linear-gradient(0deg, #000 70%, transparent); }
.th-atlas .l2 { background-image: url(/images/hero-atlas/02-grid.svg); --dur: 160s; }
.th-atlas .l3 { background-image: url(/images/hero-atlas/03-contours.svg); --dur: 120s; }
.th-atlas .l4 { background-image: url(/images/hero-atlas/04-parcels.svg); --dur: 70s; }
.th-atlas .l5 { background-image: url(/images/hero-atlas/05-stands.svg); --dur: 70s; }
.th-atlas .l7 { background-image: url(/images/hero-atlas/07-track.svg); --dur: 70s; }

/* Scenic section: sawmill landscape (owner layers in images/sawmill/), content sits on the sky like in the hero */
.scenic { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 300px; }
.scenic > .wrap { position: relative; z-index: 3; }
.scenic-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0, #062a6e 14%, #0a4fb8 48%, #1e8ae8 78%, #5ab0f0 100%); }
.scenic-bg .sun { top: 60px; }
.scenic-bg .sun-glow { top: -140px; }
.forest.mill { --p: 1440px; bottom: -52px; }   /* hide the drawn ground strip below the section edge */
/* sawmill layers are far below the fold: their images load only when the section gets near (scripts/site.js adds .is-near) */
.scenic-bg:not(.is-near) .layer { background-image: none !important; }
.forest.mill .m-far  { background-image: url(/images/sawmill/mountains-far.svg); --dur: 300s; }
.forest.mill .m-near { background-image: url(/images/sawmill/mountains-near.svg); --dur: 200s; }
.forest.mill .f-far  { background-image: url(/images/sawmill/forest-far.svg); --dur: 130s; }
.forest.mill .fog1   { background-image: url(/images/sawmill/fog.svg); --dur: 90s; }
.forest.mill .f-near { background-image: url(/images/sawmill/forest-near.svg); --dur: 80s; }
.forest.mill .saw    { background-image: url(/images/sawmill/sawmill.svg); --dur: 50s; }
@media (max-width: 700px) { .scenic { padding-bottom: 210px; } .forest.mill { --p: 1008px; bottom: -36px; } }

/* Sub-page hero: same sky + forest, shorter, no phones */
.subhero .hero-in { grid-template-columns: minmax(0, 760px) 1fr; min-height: 640px; padding-top: 150px; padding-bottom: 220px; }
.subhero .forest { height: 420px; }
.subhero .forest .layer { height: 420px; background-size: calc(var(--p) * 2) 420px; }
.subhero .forest { --p: 1008px; }
.subhero .hero-copy { padding-top: 0; }
.subhero .hero-art { display: flex; align-items: flex-start; justify-content: center; }
.subhero .hero-art .phone { width: 300px; margin-top: -10px; }
@media (max-width: 1200px) {
	.subhero .hero-in { grid-template-columns: 1fr; min-height: 0; padding-bottom: 220px; }
	.subhero .hero-art { display: none; }
}
@media (max-width: 700px) { .subhero .hero-in { padding-top: 108px; padding-bottom: 170px; } }

.subhero .h1 { font-size: 65px; }
@media (max-width: 1200px) { .subhero .h1 { font-size: 52px; } }
@media (max-width: 700px)  { .subhero .h1 { font-size: 34px; } }
.visual { width: 300px; aspect-ratio: 1; border-radius: 48px; display: grid; place-items: center; background: var(--tile); box-shadow: 0 50px 100px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); }
.visual .ico { width: 150px; height: 150px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 600 14px var(--font); color: var(--muted); }
.crumbs a { color: var(--fg-sub); }
.crumbs a:hover { color: #fff; }


/* ---------- Phone frame (static screenshots) ---------- */

.phone { aspect-ratio: 1080 / 2400; border-radius: 13% / 6%; background: #0b0f17; padding: 2.8%; box-shadow: 0 60px 120px rgba(0, 0, 0, .55), 0 0 0 1px #2a3a55; }
.phone img { width: 100%; height: 100%; object-fit: contain; background: #061424; border-radius: 11% / 5%; }


/* ---------- Stats bar ---------- */

.stats { position: relative; z-index: 4; margin-top: var(--stats-lift, -64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.stat { padding: 28px 32px; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.prose ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; display: grid; gap: 4px; }
.tab-steps { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.stat > span { font: 700 13px/1.3 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.stat b { font: 900 44px/1.1 var(--font); letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat b.is-yellow { color: var(--yellow); }
.stat b.is-green { color: var(--green-num); }
.stat b small { font-size: 26px; color: var(--yellow); letter-spacing: .05em; }
@media (max-width: 1200px) { .stat b { font-size: 34px; } .stat { padding: 22px 24px; } .stats { --stats-lift: -52px; } }
@media (max-width: 900px) {
	.stats { grid-template-columns: 1fr 1fr; --stats-lift: -104px; }
	.stat:nth-child(3) { border-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) { .stat b { font-size: 28px; } .stat b small { font-size: 20px; } .stat { padding: 18px 16px; } .stats { --stats-lift: -90px; } }


/* ---------- Sections ---------- */

.section { padding: 120px 0; }
.section.tight { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }
.section-head p { max-width: 440px; color: var(--muted); font-size: 18px; }
@media (max-width: 900px) { .section { padding: 80px 0; } .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; } }


/* ---------- Service cards (1a) ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card-svc {
	display: grid; grid-template-columns: 96px 1fr 24px; align-items: center;
	min-height: 120px; background: var(--card); border: 2px solid var(--line); border-radius: var(--r-card); overflow: hidden;
	color: inherit; transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
a.card-svc:hover { border-color: var(--yellow); background: var(--card-hover); color: inherit; }
.card-svc .tile { align-self: stretch; display: grid; place-items: center; background: var(--tile); }
.card-svc .tile .ico { width: 40px; height: 40px; }
.card-svc .txt { padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.card-svc .txt b { font: 700 21px/1.25 var(--font); color: #fff; }
.card-svc .txt span { font-size: 15px; line-height: 1.4; color: var(--muted-2); }
.card-svc .go { width: 22px; height: 22px; color: #4d8fe0; }
@media (max-width: 1100px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } .card-svc { grid-template-columns: 76px 1fr 20px; min-height: 96px; } .card-svc .tile .ico { width: 34px; height: 34px; } }

/* service icon colors (1a) */
.c-green  { color: #00a651; }
.c-orange { color: #c55f14; }
.c-teal   { color: #2f7aa0; }
.c-forest { color: #3a9a3a; }
.c-red    { color: #a33030; }
.c-purple { color: #6f2fa0; }
.c-brown  { color: #8a5a2b; }
.c-blue   { color: #1f58b5; }


/* ---------- USP strip ---------- */

.usp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.usp li { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: rgba(11, 42, 99, .55); border: 1px solid var(--line-soft); border-radius: 20px; }
.usp .ico { width: 34px; height: 34px; color: var(--yellow); margin-top: 2px; }
.usp b { display: block; font: 800 19px/1.3 var(--font); color: #fff; margin-bottom: 4px; }
.usp span { font-size: 15px; color: var(--muted); line-height: 1.45; }
@media (max-width: 1100px) { .usp { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .usp { grid-template-columns: 1fr; } }


/* ---------- Spectrum bar + check list (1a) ---------- */

.spectrum { display: flex; height: 10px; width: min(360px, 100%); border-radius: 6px; overflow: hidden; }
.spectrum i { flex: 1; }
.spectrum i:nth-child(1) { background: #e8232a; } .spectrum i:nth-child(2) { background: #ff9f00; } .spectrum i:nth-child(3) { background: #a6d608; }
.spectrum i:nth-child(4) { background: #1fbf3f; } .spectrum i:nth-child(5) { background: #00bfa5; } .spectrum i:nth-child(6) { background: #1e88ff; }

.checks { display: flex; flex-direction: column; gap: 14px; }
.checks li { position: relative; padding-left: 36px; font: 500 18px/1.45 var(--font); color: var(--fg-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; background: var(--green-num); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.2 16.6 4.6 12l-1.8 1.8 6.4 6.4L21.2 8.2l-1.8-1.8z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.2 16.6 4.6 12l-1.8 1.8 6.4 6.4L21.2 8.2l-1.8-1.8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.checks.is-small li { font-size: 16px; font-weight: 400; color: var(--fg-sub); }


/* ---------- 3D phone tour (restyle of phone3d.css for the dark theme) ---------- */

.tour { padding: 40px 0 80px; }
.tour .tp3d { padding: 0; }
.tour .tp3d-grid { max-width: var(--max); padding: 0 var(--pad); grid-template-columns: 480px minmax(0, 1fr); gap: 80px; }
.tour .tp3d-phonecol { order: -1; }
.tour .tp3d-step { gap: 26px; opacity: .3; }
.tour .tp3d-step.is-active { opacity: 1; }
.tour .tp3d-step h2, .tour .tp3d-step h3 { color: #fff; font: 900 60px/1.02 var(--font); letter-spacing: -.035em; }
.tour .tp3d-step p { color: #b5c6dd; font-size: 20px; line-height: 1.55; max-width: 560px; }
.tour .tp3d-dots { display: none; }
.tour .tp3d-dots button { background: #2a4a7a; }
.tour .tp3d-dots button.is-on { background: var(--yellow); }
/* animated line-art scenes behind the tour, one per step: 0 log rings, 1 forest + log pile, 2 lumber bundle */
.tour { position: relative; overflow: clip; }   /* scenes never spill into the next section (clip keeps sticky working) */
.tour .tp3d { position: relative; z-index: 1; }
.tour-scenes { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; z-index: 0; pointer-events: none; overflow: hidden; contain: paint; }
.scene { position: absolute; left: 34%; top: 50%; width: max(1700px, 135vw); height: auto; transform: translate(-50%, -46%); opacity: 0; transition: opacity 1s ease; fill: none; stroke: rgba(120, 160, 225, .045); stroke-width: 1.5; }
.tour[data-step="0"] .scene-0, .tour[data-step="1"] .scene-1, .tour[data-step="2"] .scene-2 { opacity: 1; }
.scene * { transform-box: fill-box; transform-origin: center; }
.scene .sc-line { stroke: rgba(120, 160, 225, .045); }
/* 0: growth rings ripple outward, the whole cross-section turns very slowly */
.scene .sc-spin { animation: scSpin 240s linear infinite; }
.scene .sc-ring { animation: scRing 5.5s ease-in-out infinite; }
.scene .sc-bark { stroke: rgba(120, 160, 225, .12); stroke-width: 3; }
.scene .sc-accent { fill: rgba(140, 185, 255, .1); stroke: none; }
@keyframes scSpin { to { transform: rotate(360deg); } }
@keyframes scRing { 0%, 100% { stroke: rgba(120, 160, 225, .035); transform: scale(1); } 45% { stroke: rgba(140, 185, 255, .08); transform: scale(1.025); } }
/* 1: forest drifts, log-pile ends breathe */
.scene .sc-drift { animation: scDrift 90s linear infinite; transform-box: view-box; transform-origin: 0 0; }
.scene .sc-tree { stroke: rgba(120, 160, 225, .055); }
.scene .sc-log circle { stroke: rgba(120, 160, 225, .065); }
.scene .sc-log { animation: scLog 6s ease-in-out infinite; }
@keyframes scDrift { to { transform: translateX(-1000px); } }
@keyframes scLog { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
/* 2: lumber bundle, rings on the board ends, light sweeps across */
.scene .sc-board > rect { stroke: rgba(120, 160, 225, .075); fill: rgba(120, 160, 225, .01); }
.scene .sc-grain circle { stroke: rgba(120, 160, 225, .055); stroke-width: 1; }
.scene .sc-board { animation: scLog 8s ease-in-out infinite; }
.scene .sc-sticker { fill: rgba(120, 160, 225, .025); stroke: none; }
.scene .sc-sweep { stroke: none; opacity: .2; animation: scSweep 7s ease-in-out infinite; transform-box: view-box; transform-origin: 0 0; }
@keyframes scSweep { 0% { transform: translateX(0); } 100% { transform: translateX(840px); } }
@media (max-width: 900px) { .scene { left: 50%; width: 260vw; } .tour[data-step] .scene { stroke-width: 2; } }
@media (prefers-reduced-motion: reduce) { .scene, .scene * { animation: none !important; } }

/* colored glow behind the 3D phone, tone follows the active screen (set from site.js) */
@property --tone { syntax: "<color>"; inherits: true; initial-value: rgba(26, 91, 196, .3); }
.tour { --tone: rgba(26, 91, 196, .3); transition: --tone .9s ease; }
.tour .tp3d-sticky::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(640px, 120%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--tone), rgba(6, 21, 49, 0) 62%); pointer-events: none; animation: tonePulse 7s ease-in-out infinite; }
.tour .tp3d-scene { position: relative; z-index: 1; }
@keyframes tonePulse { 0%, 100% { opacity: .8; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .tour .tp3d-sticky::before { animation: none; } }
/* realistic device: titanium frame, thin bezel, punch-hole camera, glass reflections, side buttons */
.tour .tp3d-plate { background: linear-gradient(90deg, #1a1d22 0%, #464c56 30%, #727985 50%, #464c56 70%, #1a1d22 100%); }
.tour .tp3d-btn { position: absolute; left: 50%; top: 50%; width: 10px; margin-left: -5px; border-radius: 3px; background: linear-gradient(90deg, #24282e, #626973 50%, #24282e); }
.tour .tp3d-btn-power { height: 64px; margin-top: -32px; transform: translate3d(151.5px, -120px, 0) rotateY(90deg); }
.tour .tp3d-btn-vol { height: 96px; margin-top: -48px; transform: translate3d(-151.5px, -150px, 0) rotateY(90deg); }
.tour .tp3d-front { background: #05070b; box-shadow: inset 0 0 0 1.5px #3b414b, inset 0 0 0 3px #05070b; }
.tour .tp3d-screen { inset: 8px; border-radius: 32px; background: #061424; }
.tour .tp3d-screen::after { content: ""; position: absolute; top: 9px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px #121822; z-index: 3; }
.tour .tp3d-view { background: #061424; }
.tour .tp3d-view img { object-fit: contain; object-position: center; }
.tour .tp3d-glare { inset: 8px; border-radius: 32px; background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 28%, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0) 78%, rgba(255, 255, 255, .05) 100%); }
.tour .tp3d-back { background: radial-gradient(140% 80% at 20% 0%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 55%), linear-gradient(160deg, #20262f, #0c1016 70%); box-shadow: inset 0 0 0 1.5px #3b414b, inset 0 0 0 3px #0c1016; }
.tour .tp3d-backlogo { width: 54%; height: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .55)); }
.tour .tp3d-shadow { width: 74%; height: 46px; bottom: -9%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0) 70%); filter: blur(10px); }
@media (max-width: 1200px) { .tour .tp3d-grid { grid-template-columns: 380px minmax(0, 1fr); gap: 48px; } .tour .tp3d-step h2, .tour .tp3d-step h3 { font-size: 46px; } }
.tour .tour-phone { display: none; }
@media (max-width: 900px) {
	/* phones: no rotating 3D device and no animated scenes; each step shows its own static phone */
	.tour .tp3d-phonecol, .tour .tp3d-dots, .tour-scenes { display: none; }
	.tour .tp3d-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.tour .tp3d-copy { min-width: 0; }
	.tour .tp3d-step { min-height: 0; opacity: 1; padding: 40px 0 24px; gap: 20px; }
	/* bigger phone, bottom (system nav bar) cut off so the device sits right on the rainbow line */
	.tour .tour-phone { display: block; width: min(300px, 80vw); margin: 0 auto -20px; aspect-ratio: 1 / 1.96; min-height: 0; overflow: hidden; padding-bottom: 0; border-radius: 13% 13% 0 0 / 6% 6% 0 0; box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 1px #2a3a55; }
	.tour [data-screen="1"] .tour-phone { aspect-ratio: 1 / 2.022; }
	.tour .tour-phone img { object-fit: cover; object-position: top; border-radius: 11% 11% 0 0 / 5% 5% 0 0; }
	.tour .tp3d-step h2, .tour .tp3d-step h3 { font-size: 32px; }
	.tour .tp3d-step p { font-size: 17px; }
}


/* ---------- Split block (text + visual) ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.is-flip > :first-child { order: 2; }
.split-copy { display: flex; flex-direction: column; gap: 24px; }
.split-copy .lead { font-size: 19px; color: #b5c6dd; }
.split .phone { width: 360px; margin: 0 auto; box-shadow: 0 50px 100px rgba(0, 0, 0, .6), 0 0 0 1px #2a3a55, 0 0 120px rgba(255, 196, 0, .08); }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; gap: 48px; } .split.is-flip > :first-child { order: 0; } .split .phone { width: 280px; } }


/* ---------- Feature grid (sub-pages) ---------- */

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.feature .ico { width: 36px; height: 36px; color: var(--yellow); }
.feature b { font: 800 21px/1.3 var(--font); color: #fff; }
.feature p { font-size: 16px; color: var(--muted); line-height: 1.55; }
.features.is-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .features, .features.is-2 { grid-template-columns: 1fr; } .feature { padding: 22px; } }

/* big numbers row (atlas, calculators) */
.numbers { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.number { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); display: flex; flex-direction: column; gap: 8px; }
.number b { font: 900 56px/1 var(--font); letter-spacing: -.03em; color: var(--yellow); font-variant-numeric: tabular-nums; }
.number span { font-size: 16px; color: var(--fg-sub); line-height: 1.45; }
@media (max-width: 1100px) { .numbers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .number b { font-size: 44px; } }

/* calculator groups */
.groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.group { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.group h3 { font: 800 21px/1.3 var(--font); margin-bottom: 14px; display: flex; gap: 12px; align-items: center; }
.group h3 .ico { width: 30px; height: 30px; color: var(--yellow); }
.group li { position: relative; padding: 8px 0 8px 20px; border-top: 1px solid var(--line-soft); font-size: 16px; color: var(--fg-2); }
.group li:first-child { border-top: 0; }
.group li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.group li small { display: block; color: var(--muted); font-size: 14px; }
@media (max-width: 1100px) { .groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .groups { grid-template-columns: 1fr; } }

/* chips (volume methods, record fields) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11, 42, 99, .6); font: 600 15px var(--font); color: var(--fg-2); }
.chip.is-key { border-color: var(--orange); color: #fff; }

/* field panels (recorder: what you can record) */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); display: flex; flex-direction: column; gap: 14px; }
.panel h3 { font: 800 24px var(--font); }
.panel .label { font: 700 13px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-top: 6px; }
@media (max-width: 900px) { .panels { grid-template-columns: 1fr; } }

/* segmented switch (app look: sliding orange-deep thumb, 220 ms) */
.segment { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--card); border: 1px solid #123c6c; border-radius: var(--r-btn); }
.segment button { position: relative; z-index: 1; min-height: 48px; padding: 10px 22px; border: 0; background: transparent; color: var(--fg-sub); font: 700 16px var(--font); cursor: pointer; transition: color .22s var(--ease); }
.segment button[aria-pressed="true"] { color: #fff; }
.segment::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: var(--orange-deep); transition: transform .22s cubic-bezier(0, 0, .2, 1); }
.segment.is-right::before { transform: translateX(100%); }
.segment-panels > div[hidden] { display: none; }


/* ---------- One account (sync) ---------- */

.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.device { padding: 24px; border-radius: 20px; background: rgba(11, 42, 99, .55); border: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.device .ico { width: 36px; height: 36px; color: var(--yellow); }
.device b { font: 800 18px var(--font); color: #fff; }
.device span { font-size: 15px; color: var(--muted); }
/* narrow device cards: long words in these languages (Współpracownicy, Verkkopalvelu, planšetdators …) need a smaller font, other languages stay as they are */
html[lang="pl"] .device, html[lang="fi"] .device, html[lang="nl"] .device, html[lang="lv"] .device, html[lang="et"] .device { padding: 24px 16px; }
html[lang="pl"] .device b, html[lang="fi"] .device b, html[lang="nl"] .device b, html[lang="lv"] .device b, html[lang="et"] .device b { font-size: 15px; }
html[lang="pl"] .device span, html[lang="fi"] .device span, html[lang="nl"] .device span, html[lang="lv"] .device span, html[lang="et"] .device span { font-size: 14px; }
/* Hindi digit grouping (8,18,700) is wider than the tile */
@media (min-width: 1201px) { html[lang="hi"] .stat b { font-size: 40px; } }
@media (max-width: 800px) { .devices { grid-template-columns: 1fr; } }

.note { padding: 18px 22px; border-left: 4px solid var(--orange); background: rgba(194, 94, 20, .12); border-radius: 0 14px 14px 0; font-size: 16px; color: var(--fg-sub); }
.note b { color: #fff; }


/* ---------- Reviews (hidden until the owner delivers them) ---------- */

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quote { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }


/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; gap: 12px; max-width: 920px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: border-color .15s var(--ease); }
.faq details[open] { border-color: var(--yellow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 18px 24px; cursor: pointer; list-style: none; font: 700 19px/1.35 var(--font); color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .answer { padding: 0 24px 22px; color: var(--fg-sub); font-size: 17px; line-height: 1.6; }
.faq .answer p + p { margin-top: 10px; }
@media (max-width: 700px) { .faq summary { font-size: 17px; padding: 16px 18px; } .faq .answer { padding: 0 18px 18px; font-size: 16px; } }


/* ---------- EUDR disclaimer ---------- */

.disclaimer { margin-top: 32px; }
.disclaimer details { background: rgba(11, 42, 99, .45); border: 1px solid var(--line-soft); border-radius: 18px; }
.disclaimer summary { min-height: 56px; padding: 16px 22px; cursor: pointer; font: 700 16px var(--font); color: var(--fg-sub); }
.disclaimer .answer { padding: 0 22px 22px; font-size: 15px; line-height: 1.6; color: var(--muted); display: flex; flex-direction: column; gap: 12px; }
.disclaimer .answer b { color: var(--fg-sub); }


/* ---------- CTA band (1a, green) ---------- */

.cta { margin: 40px 0 80px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 56px 64px; border-radius: 32px; background: linear-gradient(110deg, #00c25a 0%, #009a44 55%, #007a36 100%); }
.cta-band h2 { font: 900 52px/1.05 var(--font); letter-spacing: -.03em; }
.cta-band p { margin-top: 12px; font-size: 20px; color: #dff5e8; }
.cta-band .play { flex: none; border-color: transparent; }
@media (max-width: 1000px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 32px; } .cta-band h2 { font-size: 38px; } }
@media (max-width: 600px) { .cta-band { padding: 32px 22px; border-radius: 24px; } .cta-band h2 { font-size: 30px; } .cta-band p { font-size: 17px; } }


/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 32px; font-size: 15px; color: #6f86a6; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid .footer-h { font: 700 13px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer-grid li + li { margin-top: 6px; }
.footer-grid a { color: var(--fg-sub); display: inline-flex; min-height: 32px; align-items: center; }
.footer-grid a:hover { color: #fff; }
.footer-about { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
.footer-about p { color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }


/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }


/* ---------- Log scaling methods (hub + method pages) ---------- */
.prose { display: flex; flex-direction: column; gap: 18px; }
.prose p { font-size: 18px; line-height: 1.6; color: var(--fg-2); }
.prose .h3 { margin-top: 18px; }
.prose a, .section-head p a { color: var(--yellow); }
.answer-block { padding: 22px 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.formula { font: 700 22px/1.5 var(--font); color: #fff; padding: 18px 22px; border-left: 4px solid var(--yellow); background: rgba(11, 42, 99, .6); border-radius: 0 14px 14px 0; overflow-wrap: anywhere; }
.mgrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
.prose > * { max-width: 920px; }
.mgrid .prose > * { max-width: none; }
.calc-box { position: sticky; top: 110px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); display: flex; flex-direction: column; gap: 14px; }
.calc { display: flex; flex-direction: column; gap: 12px; }
.calc label { display: flex; flex-direction: column; gap: 6px; font: 600 15px var(--font); color: var(--fg-sub); }
.calc input { width: 100%; min-height: 48px; padding: 10px 14px; font: 700 20px var(--font); color: #fff; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.calc input:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.calc-out { margin-top: 6px; padding: 16px 18px; background: rgba(0, 166, 81, .12); border: 1px solid var(--green); border-radius: 14px; }
.calc-out > span { display: block; font-size: 14px; color: var(--muted); }
.calc-out > b { font: 900 34px/1.2 var(--font); color: var(--yellow); font-variant-numeric: tabular-nums; }
.calc-sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.calc-sub b { color: #fff; }
.calc-app-h { font: 800 18px var(--font); margin-top: 10px; }
.mcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mcard { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .2s, transform .2s; }
.mcard:hover { border-color: var(--yellow); transform: translateY(-2px); }
.mcard b { font: 800 21px/1.25 var(--font); color: #fff; }
.mcard span { font-size: 15px; line-height: 1.45; color: var(--muted-2); }
.mcard em { margin-top: auto; padding-top: 6px; font: 700 13px var(--font); font-style: normal; color: var(--yellow); letter-spacing: .03em; }
.mtable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
.mtable { width: 100%; border-collapse: collapse; font-size: 16px; }
.mtable th, .mtable td { padding: 12px 18px; text-align: left; border-top: 1px solid var(--line-soft); }
.mtable th { border-top: 0; background: var(--card); font: 700 14px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mtable td:first-child { font-weight: 700; color: #fff; }
.mtable td { color: var(--fg-2); }
.mtable a { color: var(--yellow); }
@media (max-width: 1100px) { .mcards { grid-template-columns: 1fr 1fr; } .mgrid { grid-template-columns: minmax(0, 1fr); } .calc-box { position: static; } }
@media (max-width: 700px) { .mcards { grid-template-columns: 1fr; } .formula { font-size: 18px; } .prose p { font-size: 16px; } .mtable th, .mtable td { padding: 10px 12px; font-size: 14px; } }
.btn-link { color: var(--yellow); font-weight: 700; }
.quote { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.q-stars { color: var(--yellow); letter-spacing: 3px; font-size: 18px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--fg-2); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 10px; font: 700 15px var(--font); color: var(--fg-sub); }
.quote figcaption img { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; }

/* ---------- Glossary ---------- */
.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; max-width: 1100px; }
.gterm { padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; scroll-margin-top: 110px; }
.gterm:target { border-color: var(--yellow); }
.gterm dt { font: 800 19px/1.3 var(--font); color: #fff; margin-bottom: 8px; }
.gterm dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--fg-2); }
@media (max-width: 800px) { .gloss { grid-template-columns: 1fr; } }
.page-about .number b { font-size: 40px; white-space: nowrap; }
@media (max-width: 1200px) { .page-about .number b { font-size: 32px; } }
.src-list { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; color: var(--fg-2); }
.src-list a { color: var(--yellow); }

/* ---------- "Od pňa po expedíciu" – bento cards (Claude Design 1d) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bento a { color: inherit; text-decoration: none; }
.b-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--c) 14%, transparent); }
.b-ico .ico { width: 24px; height: 24px; color: var(--c); }
.b-big { position: relative; overflow: hidden; grid-row: span 2; min-height: 360px; padding: 28px; display: flex; flex-direction: column; gap: 10px;
	border-radius: 24px; border: 1px solid rgba(130, 150, 235, .25); transition: border-color .2s, transform .2s;
	background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c) 15%, transparent) 0%, transparent 45%), linear-gradient(180deg, #1d2a6e, #162159); }
.b-big .b-ico { width: 56px; height: 56px; border-radius: 16px; }
.b-big .b-ico .ico { width: 30px; height: 30px; }
.b-big b { position: relative; z-index: 1; max-width: 210px; overflow-wrap: break-word; font: 800 28px/1.1 var(--font); letter-spacing: -.02em; color: #fff; }
/* long single words in these languages (Tømmerkalkulatorer, Houtcalculators, Дървообработващи …): smaller title, only where needed */
html[lang="da"] .b-big b, html[lang="nb"] .b-big b, html[lang="nl"] .b-big b, html[lang="bg"] .b-big b { max-width: none; font-size: 22px; }
.b-sub { position: relative; z-index: 1; max-width: 170px; font-size: 16px; line-height: 1.45; color: #9fb2dd; }
.b-open { position: relative; z-index: 1; margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--font); color: var(--yellow); }
.b-open svg { width: 16px; height: 16px; transition: transform .2s; }
.b-phone { position: absolute; right: -40px; bottom: -150px; width: 170px; aspect-ratio: 1080 / 2400; padding: 6px; border-radius: 30px; background: #0b0f17;
	transform: rotate(-6deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 1px #2a3a55; transition: transform .35s ease; }
.b-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; display: block; }
.b-big:hover { border-color: var(--yellow); }
.b-big:hover .b-phone { transform: rotate(-3deg) translateY(-14px); }
.b-big:hover .b-open svg { transform: translateX(4px); }
.b-col { grid-row: span 2; display: flex; flex-direction: column; gap: 12px; }
/* EUDR is an EU regulation: on the US version (/us/) it stays only in the footer, sitemap and its own page */
.us-hide { display: none !important; }
@media (min-width: 1101px) { .b-bottom:has(.us-hide) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.b-bottom { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.b-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; gap: 14px; align-items: center; flex: 1; padding: 14px 16px;
	border-radius: 16px; background: #17225c; border: 1px solid rgba(130, 150, 235, .18); transition: border-color .2s; }
.b-row:hover { border-color: var(--yellow); }
.b-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.b-txt b { font: 700 16px/1.25 var(--font); color: #fff; }
.b-txt span { font-size: 13px; line-height: 1.35; color: #9fb2dd; }
.b-row .go { width: 18px; height: 18px; color: #5d7fe0; }
@media (max-width: 1100px) {
	.bento { grid-template-columns: 1fr 1fr; }
	.b-col { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; }
	.b-bottom { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
	.bento, .b-col, .b-bottom { grid-template-columns: minmax(0, 1fr); }
	.b-big { min-height: 260px; }
	.b-phone { width: 130px; right: -24px; bottom: -120px; }
}
@media (prefers-reduced-motion: reduce) { .b-big .b-phone, .b-open svg { transition: none; } }
.b-bottom { gap: 20px; }
@media (max-width: 700px) { .bento, .b-bottom { gap: 12px; } }
/* Bento in the site blue (no indigo from the design mock) */
.b-big { border-color: var(--line); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c) 15%, transparent) 0%, transparent 45%), linear-gradient(180deg, #0e3274, var(--card)); }
.b-row { background: var(--card); border-color: var(--line); }
.b-row:hover, .b-big:hover { border-color: var(--yellow); }
.b-sub, .b-txt span { color: var(--muted-2); }
.b-row .go { color: #4d8fe0; }
.mcard-more { border-style: dashed; }
.mcard-more span { color: var(--fg-sub); }
/* Methods used in the visitor's country (order + badge, inc_methods.php) */
.m-local { align-self: flex-start; display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--yellow); color: #061531; font: 800 12px var(--font); font-style: normal; letter-spacing: .02em; }
.mcard.is-local { border-color: var(--yellow); }
.mtable tr.is-local td { background: rgba(255, 196, 0, .08); }
.mtable .m-local { margin-left: 8px; vertical-align: middle; }

/* ---------- Benefits: key USPs + PRO checklist with expandable details (texts from the app) ---------- */
.ben-head { margin: 48px 0 18px; font: 800 24px/1.25 var(--font); color: #fff; }
.bens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; align-items: start; }
.ben { border-bottom: 1px solid var(--line-soft); }
.ben summary, .ben-more { list-style: none; display: grid; grid-template-columns: 26px minmax(0, 1fr) 28px; gap: 14px; align-items: center; padding: 12px 0; cursor: pointer; }
.ben summary::-webkit-details-marker { display: none; }
.ben-more { grid-template-columns: 26px minmax(0, 1fr); cursor: default; border-bottom: 0; }
.ben-ok { width: 26px; height: 26px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23061531' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.ben-t { font: 700 18px/1.35 var(--font); color: var(--fg-2); }
.ben-q { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: #061531; font: 900 16px var(--font); transition: background .2s; }
.ben[open] .ben-q { background: #fff; }
.ben-q::before { content: "?"; }   /* glyph in CSS, so the "?" is not part of the heading text */
.ben summary:hover .ben-t { color: #fff; }
.ben-h { padding: 0 0 16px 40px; font-size: 16px; line-height: 1.55; color: var(--fg-sub); }
.ben-h b { color: #fff; }
@media (max-width: 800px) { .bens { grid-template-columns: minmax(0, 1fr); } .ben-t { font-size: 16px; } }
.pcalcs li a { color: var(--fg-2); }
.pcalcs li a:hover { color: var(--yellow); }
.pcalcs h3 { font-size: 19px; }
#benefits .usp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { #benefits .usp { grid-template-columns: minmax(0, 1fr); } }
/* Subpage hero: the feature icon alone, no card (owner 2026-10-11); colour = feature colour, tune later */
.visual { width: 320px; background: none; box-shadow: none; border-radius: 0; }
.visual .ico { width: 230px; height: 230px; filter: drop-shadow(0 0 36px color-mix(in srgb, currentColor 55%, transparent)) drop-shadow(0 18px 28px rgba(0, 0, 0, .45)); }
@media (max-width: 900px) { .visual { width: 180px; } .visual .ico { width: 130px; height: 130px; } }
/* CTA row: outline buttons as tall as the Google Play badge, 1px thicker border (owner) */
.btn-row { align-items: stretch; }
.btn-outline { border-width: 3px; }
.menu-toggle { border: 1px solid #fff; }
/* Mobile menu: feature icon left of each item (hidden in the desktop nav) */
.nav-ico { display: none; }
.main-nav.is-open a { display: flex; align-items: center; gap: 14px; }
.main-nav.is-open .nav-ico { display: inline-block; width: 22px; height: 22px; color: var(--yellow); }
.nt-l { display: none; }
.main-nav.is-open .nt-s { display: none; }
.main-nav.is-open .nt-l { display: inline; }
.main-nav.is-open { background: var(--bg); z-index: 60; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
/* long menu on short screens: scroll inside the panel (header is ~72-88px high) */
.main-nav.is-open { max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* '…' submenu in the top bar (pages that are not in the main nav) */
.nav-more { position: relative; display: flex; align-items: center; }
.more-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--fg-sub); cursor: pointer; }
.more-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.more-toggle:hover, .nav-more.is-open .more-toggle { color: #fff; border-color: var(--yellow); }
.more-panel { display: none; position: absolute; top: calc(100% + 14px); right: 0; z-index: 70; min-width: 300px; padding: 8px; flex-direction: column;
	background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.nav-more.is-open .more-panel { display: flex; }
.main-nav .more-panel a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 10px; }
.main-nav .more-panel a:hover { background: var(--card-hover); }
.main-nav .more-panel a[aria-current="page"] { color: var(--yellow); }
.more-panel .nav-ico { display: inline-block; width: 20px; height: 20px; color: var(--yellow); }
/* mobile menu: no button, items inline like the others */
.main-nav.is-open .nav-more { display: block; }
.main-nav.is-open .more-toggle { display: none; }
.main-nav.is-open .more-panel { display: flex; position: static; min-width: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.main-nav.is-open .more-panel a { gap: 14px; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
.main-nav.is-open .more-panel a:hover { background: none; }
/* pages under "Log scaling" (tables, comparison): indented below their parent */
.main-nav .more-panel a.nav-sub { padding-left: 36px; font-size: .92em; }
.main-nav.is-open .more-panel a.nav-sub { padding-left: 22px; }
.main-nav.is-open .more-panel .nav-ico { width: 22px; height: 22px; }
.faq-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 20px; }
.faq-links a { display: block; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--fg-2); font-weight: 700; }
.faq-links a:hover { border-color: var(--yellow); color: #fff; }
@media (max-width: 900px) { .faq-links { grid-template-columns: 1fr 1fr; } }
/* Rotating references: one card flips at a time (scripts/site.js) */
.quotes[data-rotate] { perspective: 1200px; }
.quote[hidden] { display: none; }
.quote { transition: transform .3s ease, opacity .3s ease; }
.quote.q-flip-out { transform: rotateY(90deg); opacity: .4; }
.quote.q-flip-in { animation: qFlipIn .35s ease both; }
@keyframes qFlipIn { from { transform: rotateY(-90deg); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .quote, .quote.q-flip-in { transition: none; animation: none; } .quote.q-flip-out { transform: none; } }

/* ---------- Stock page: phone <-> web sync figure, how-to steps, record fields ---------- */
.sync-fig { display: grid; grid-template-columns: 200px 72px minmax(0, 1fr); align-items: center; gap: 0 8px; margin: 8px 0 44px; }
.sync-phone { width: 200px; }
.sync-link { display: grid; place-items: center; }
.sync-link .ico { width: 44px; height: 44px; color: var(--yellow); }
.browser { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e9edf3; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c7ced9; }
.browser-bar i:nth-child(1) { background: #ff6159; } .browser-bar i:nth-child(2) { background: #ffbd2e; } .browser-bar i:nth-child(3) { background: #28c941; }
.browser-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 6px; background: #fff; color: #555; font: 500 12px var(--font); }
.browser img { display: block; width: 100%; height: auto; }
.sync-cap { margin: 0 0 36px; text-align: center; color: var(--muted-2); font-size: 14px; }
.howto { counter-reset: st; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.howto li { counter-increment: st; position: relative; padding: 24px 24px 24px 76px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--fg-2); line-height: 1.5; }
.howto li::before { content: counter(st); position: absolute; left: 22px; top: 20px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: var(--ink); font: 900 18px var(--font); }
.rec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rec-card { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.rec-card h3 { margin: 0 0 16px; font: 800 22px/1.2 var(--font); color: #fff; }
.rec-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rec-cols b { display: block; margin-bottom: 8px; color: var(--yellow); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.rec-cols ul { margin: 0; padding-left: 20px; list-style: disc; display: grid; gap: 4px; color: var(--fg-2); font-size: 15px; }
.rec-cols li::marker { color: var(--yellow); }
@media (max-width: 1000px) { .howto { grid-template-columns: 1fr 1fr; } .rec-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
	.sync-fig { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
	.sync-phone { width: 150px; }
	.sync-link .ico { transform: rotate(90deg); }
	.howto { grid-template-columns: 1fr; }
	.rec-cols { grid-template-columns: 1fr; }
}

/* ---------- Home: what ordinary timber apps do not have ---------- */
.uq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.uq { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 24px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--yellow); border-radius: var(--r-card); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.uq:hover { border-color: var(--yellow); transform: translateY(-2px); color: inherit; }
.uq .ico { width: 40px; height: 40px; color: var(--yellow); }
.uq b { font: 800 21px/1.25 var(--font); color: #fff; }
.uq span { font-size: 15px; line-height: 1.5; color: var(--muted); text-align: justify; hyphens: auto; }
.uq em { margin-top: auto; padding-top: 6px; font: 700 14px var(--font); font-style: normal; color: var(--yellow); }
@media (max-width: 1000px) { .uq-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .uq-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* Help animations from the app (scripts/explainers.js): animation next to steps / features */
.anim-split { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: center; }
.anim-box { width: 100%; max-width: 220px; margin: 0 auto; }
.anim-split:has(.anim-sync) { grid-template-columns: 300px minmax(0, 1fr); }
.anim-sync { max-width: 300px; }
.anim-split .howto { grid-template-columns: minmax(0, 1fr); }
.anim-split .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 800px) {
	.anim-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.anim-box { max-width: 180px; }
	.anim-split:has(.anim-sync) { grid-template-columns: minmax(0, 1fr); }
	.anim-sync { max-width: 220px; }
	.anim-split .features { grid-template-columns: minmax(0, 1fr); }
}

/* QR delivery transfer page */
.hero-anim .anim-box { max-width: 260px; margin-top: 10px; }
@media (max-width: 1200px) { .subhero .hero-art.hero-anim { display: flex; justify-content: center; margin-top: 8px; } .hero-anim .anim-box { max-width: 170px; } }
.rec-card .howto { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rec-card .howto li { padding: 16px 18px 16px 64px; background: rgba(6, 21, 49, .45); }
.rec-card .howto li::before { left: 16px; top: 14px; width: 32px; height: 32px; font-size: 16px; }
.qrt-yes ul, .qrt-no ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--fg-2); }
.qrt-yes li, .qrt-no li { position: relative; padding-left: 28px; }
.qrt-yes li::before, .qrt-no li::before { position: absolute; left: 0; top: 0; font-weight: 900; }
.qrt-yes li::before { content: "✓"; color: #3ccf6a; }
.qrt-no li::before { content: "✕"; color: #ff7a6b; }

/* =====================================================================
   Micro-interactions (reviewed with Codex): small, purposeful, cheap to render
   (transform / opacity / box-shadow only), hover effects only on real pointers,
   everything off for prefers-reduced-motion.
   ===================================================================== */
:root { interpolate-size: allow-keywords; }   /* lets <details> animate to height:auto (Chrome 129+) */

/* Main download CTAs (Google Play badge + header pill): lift, warm glow and one light sweep across */
.play, .btn-pill.btn-yellow { position: relative; overflow: hidden; isolation: isolate; }
.play { transition: background-color .15s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.play::after, .btn-pill.btn-yellow::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .42) 48%, rgba(255, 255, 255, .12) 56%, transparent 70%);
	transform: translateX(-130%);
}
.play svg { transition: transform .2s var(--ease); }
@media (hover: hover) {
	.play:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(242, 107, 0, .38), 0 4px 10px rgba(0, 0, 0, .25); }
	.play:hover svg { transform: translateX(2px) scale(1.06); }
	.play:hover::after, .btn-pill.btn-yellow:hover::after { transform: translateX(130%); transition: transform .9s cubic-bezier(.45, 0, .25, 1); }
	.btn-pill.btn-yellow:hover { box-shadow: 0 8px 22px rgba(255, 196, 0, .32); }
}
.play:focus-visible { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--yellow); }
.play:active { transform: translateY(1px); box-shadow: none; }

/* Secondary buttons: a smaller lift, so the Play badge keeps priority */
.btn { transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease); }
@media (hover: hover) {
	.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0, 0, 0, .22); }
}
.btn:active { transform: translateY(1px); box-shadow: none; }

/* Top menu: yellow underline grows from the left (the current page keeps its full underline) */
@media (hover: hover) and (min-width: 1101px) {
	.main-nav > a:not([aria-current="page"]) { background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 2px no-repeat; transition: color .15s var(--ease), background-size .22s var(--ease); }
	.main-nav > a:not([aria-current="page"]):hover { background-size: 100% 2px; }
}

/* Link cards: the arrow / "More" cue moves instead of the whole card (keeps .reveal transforms clean) */
.mcard:hover, .uq:hover { transform: none; }
.b-row .go, .mcard em, .uq em { display: inline-block; transition: transform .18s var(--ease); }
.uq .ico, .feature .ico { transition: transform .22s var(--ease); }
@media (hover: hover) {
	.b-row:hover .go, .mcard:hover em, .uq:hover em { transform: translateX(4px); }
	.uq:hover .ico, .feature:hover .ico { transform: translateY(-3px); }
	.uq:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .28); }
}
.b-row:focus-visible .go, .mcard:focus-visible em, .uq:focus-visible em { transform: translateX(4px); }

/* FAQ and PRO list: answers slide open instead of jumping (browsers without support just open) */
.faq details::details-content, .ben::details-content {
	block-size: 0; overflow: hidden;
	transition: block-size .32s var(--ease), content-visibility .32s allow-discrete;
}
.faq details[open]::details-content, .ben[open]::details-content { block-size: auto; }
.faq summary::after { transition: transform .25s var(--ease); }
.ben-q { transition: background .2s, transform .18s var(--ease); }
@media (hover: hover) {
	.faq details:not([open]):hover { border-color: rgba(255, 196, 0, .45); }
	.ben summary:hover .ben-q { transform: scale(1.1); }
}

/* Calculator fields: soft yellow halo on focus */
.calc input { transition: box-shadow .16s var(--ease), border-color .16s var(--ease); }
.calc input:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 196, 0, .14); }

/* Touch screens: no sticky hover colours after a tap */
@media (hover: none) {
	.play:hover { background: var(--orange-vivid); }
	.btn-yellow:hover { background: var(--yellow); }
	.btn-outline:hover { background: transparent; color: var(--yellow); }
}

@media (prefers-reduced-motion: reduce) {
	.play, .play svg, .btn, .main-nav > a, .b-row .go, .mcard em, .uq em, .uq .ico, .feature .ico, .faq summary::after, .ben-q, .calc input { transition: none !important; }
	.play::after, .btn-pill.btn-yellow::after { display: none; }
	.play:hover, .btn:hover, .play:hover svg, .uq:hover .ico, .feature:hover .ico { transform: none !important; }
	.faq details::details-content, .ben::details-content { transition: none; }
}

/* Audience pages: chooser tiles (home + "other audiences") and 2-column feature cards */
.aud-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.aud-tile { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); color: inherit; text-decoration: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.aud-tile .ico { width: 46px; height: 46px; flex: none; color: var(--yellow); transition: transform .22s var(--ease); }
.aud-tile b { display: block; font: 800 20px/1.25 var(--font); color: #fff; }
.aud-tile small { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (hover: hover) { .aud-tile:hover { border-color: var(--yellow); box-shadow: 0 14px 30px rgba(0, 0, 0, .28); color: inherit; } .aud-tile:hover .ico { transform: translateY(-3px); } }
.uq-grid.uq-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .aud-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .aud-grid, .uq-grid.uq-2 { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .aud-tile, .aud-tile .ico { transition: none; } }

/* "Choose your focus" lightbox */
.aud-dialog { border: 0; padding: 0; background: transparent; color: #fff; width: min(980px, calc(100vw - 24px)); max-width: none; max-height: none; overflow: visible; }
.aud-dialog::backdrop { background: rgba(3, 10, 26, .74); }
.aud-dialog[open] { animation: audIn .24s var(--ease); }
@keyframes audIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.aud-dlg-in { position: relative; padding: 38px 38px 34px; background: #0b1f45; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; }
.aud-dlg-in h2 { margin: 0 44px 6px; text-align: center; font: 800 30px/1.2 var(--font); color: #fff; }
.aud-dlg-in > p { margin: 0 auto 26px; max-width: 640px; text-align: center; color: var(--muted); font-size: 16px; line-height: 1.5; }
.aud-dlg-in .aud-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.aud-dlg-in .aud-tile { background: rgba(6, 21, 49, .7); }
.aud-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.aud-x svg { width: 20px; height: 20px; }
.aud-x:hover { background: rgba(255, 255, 255, .1); border-color: var(--yellow); }
html:has(.aud-dialog[open]) { overflow: hidden; }
@media (max-width: 700px) { .aud-dlg-in { padding: 28px 18px 22px; border-radius: 18px; } .aud-dlg-in h2 { font-size: 24px; margin: 0 40px 6px; } .aud-dlg-in .aud-grid { grid-template-columns: minmax(0, 1fr); } .aud-dlg-in .aud-tile { padding: 16px 18px; } .aud-dlg-in .aud-tile .ico { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { .aud-dialog[open] { animation: none; } }

/* Top menu order by the visitor's main activity (html[data-aud] is set from the last "for ..." page opened; only the order
   changes, the content is the same for everyone). Joiners and firewood keep the default order. */
.main-nav > .nav-more { order: 20; }
html[data-aud="forester"] .main-nav > [data-nav="evidence"] { order: 1; }
html[data-aud="forester"] .main-nav > [data-nav="atlas"] { order: 2; }
html[data-aud="forester"] .main-nav > [data-nav="recorder"] { order: 3; }
html[data-aud="forester"] .main-nav > [data-nav="calculators"] { order: 4; }
html[data-aud="forester"] .main-nav > [data-nav="stock"] { order: 5; }
html[data-aud="forester"] .main-nav > [data-nav="eudr"] { order: 6; }
html[data-aud="logging"] .main-nav > [data-nav="recorder"] { order: 1; }
html[data-aud="logging"] .main-nav > [data-nav="stock"] { order: 2; }
html[data-aud="logging"] .main-nav > [data-nav="calculators"] { order: 3; }
html[data-aud="logging"] .main-nav > [data-nav="eudr"] { order: 4; }
html[data-aud="logging"] .main-nav > [data-nav="atlas"] { order: 5; }
html[data-aud="logging"] .main-nav > [data-nav="evidence"] { order: 6; }
html[data-aud="sawmill"] .main-nav > [data-nav="stock"] { order: 1; }
html[data-aud="sawmill"] .main-nav > [data-nav="recorder"] { order: 2; }
html[data-aud="sawmill"] .main-nav > [data-nav="calculators"] { order: 3; }
html[data-aud="sawmill"] .main-nav > [data-nav="eudr"] { order: 4; }
html[data-aud="sawmill"] .main-nav > [data-nav="atlas"] { order: 5; }
html[data-aud="sawmill"] .main-nav > [data-nav="evidence"] { order: 6; }
html[data-aud="transport"] .main-nav > [data-nav="recorder"] { order: 1; }
html[data-aud="transport"] .main-nav > [data-nav="stock"] { order: 2; }
html[data-aud="transport"] .main-nav > [data-nav="calculators"] { order: 3; }
html[data-aud="transport"] .main-nav > [data-nav="atlas"] { order: 4; }
html[data-aud="transport"] .main-nav > [data-nav="evidence"] { order: 5; }
html[data-aud="transport"] .main-nav > [data-nav="eudr"] { order: 6; }

/* subscripts (d<sub>1,3</sub>): small, without stretching the line */
sub { font-size: .7em; line-height: 0; position: relative; vertical-align: baseline; bottom: -.25em; }

.en-card { display: flex; gap: 18px; align-items: flex-start; margin-top: 28px; padding: 22px 26px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: var(--r-card); }
.en-card .ico { width: 34px; height: 34px; flex: none; color: var(--yellow); }
.en-card h3 { margin: 0 0 6px; font: 800 19px/1.3 var(--font); color: #fff; }
.en-card p { margin: 0; color: var(--fg-2); font-size: 16px; line-height: 1.55; }
@media (max-width: 700px) { .en-card { padding: 18px; gap: 14px; } }
.en-flag { flex: none; width: 72px; height: 48px; margin-top: 2px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }

/* "Coming soon" notice (EUDR tools in preparation) */
.soon-note { max-width: 62ch; margin: 16px 0 0; padding: 12px 16px; border-left: 4px solid var(--yellow); border-radius: 0 12px 12px 0; background: rgba(255, 196, 0, .1); color: #fff; font-size: 16px; line-height: 1.5; }
.soon-note b { color: var(--yellow); }
.soon-block { margin-top: 28px; max-width: none; }
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: #fff; }

/* Unique features page + audience pages: air between the heading and the cards, and between the cards */
#uqTitle { margin-bottom: 48px; }
.uq-grid.uq-2 { gap: 36px; }
@media (max-width: 1000px) { #uqTitle { margin-bottom: 36px; } .uq-grid.uq-2 { gap: 28px; } }
@media (max-width: 700px) { #uqTitle { margin-bottom: 28px; } .uq-grid.uq-2 { gap: 20px; } }

/* Card grids: gap 4 px larger and the card description justified (all pages) */
.cards, .usp, .features, .numbers, .groups, .panels, .devices, .quotes, .mcards, .bento, .howto, .rec-grid, .rec-cols { gap: 24px; }
.aud-grid { gap: 20px; }
.gloss { gap: 20px 24px; }
.card-svc .txt span, .usp span, .feature p, .device span, .mcard span, .howto li { text-align: justify; hyphens: auto; }
