/* ==========================================================================
   Trukar — base: fonts, tokens, reset, typography, buttons, utilities
   ========================================================================== */

/* ---------- Fonts (self-hosted, GDPR-friendly) ---------- */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/space-grotesk-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/space-grotesk-latin-ext-300-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/space-grotesk-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/space-grotesk-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/space-grotesk-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/space-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/space-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* HelveticaNeueCyr (licensed) is used if installed/added to assets/fonts; see README. */

/* ---------- Tokens ---------- */
:root {
	/* Figma variables */
	--c-orange: #f83e17;        /* Orange */
	--c-blue: #312bb6;          /* Blue */
	--c-navy: #130f73;          /* Text on light */
	--c-on-dark: #ededed;       /* Text on dark */
	--c-white: #fff;            /* White */

	/* Derived */
	--c-blue-60: rgba(49, 43, 182, .6);
	--c-blue-40: rgba(49, 43, 182, .4);
	--c-blue-10: rgba(49, 43, 182, .1);
	--c-bg-soft: #f8fbff;
	--c-border: #d8e3e5;
	--c-border-2: #e5edf8;
	--c-border-3: #e9eff1;
	--c-muted: #6d7097;
	--c-green: #25d366;

	--ff-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ff-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--ff-text: "HelveticaNeueCyr", "Helvetica Neue", Helvetica, Arial, sans-serif;

	--container: 1280px;
	--gutter: 80px;
	--section-y: 80px;
	--radius-s: 4px;
	--radius-m: 12px;
	--radius-l: 16px;
	--radius-pill: 10000px;

	--ease-out: cubic-bezier(.2, .8, .2, 1);
	--header-h: 117px;
}
@media (max-width: 1199px) {
	:root { --gutter: 32px; --section-y: 64px; --header-h: 108px; }
}
@media (max-width: 767px) {
	:root { --gutter: 16px; --section-y: 48px; --header-h: 100px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--ff-sans);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.5;
	color: var(--c-blue);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, svg, video, picture { display: block; max-width: 100%; height: auto; }
img { border-style: none; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; }
::selection { background: var(--c-orange); color: #fff; }

.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: #fff; color: var(--c-blue); border-radius: var(--radius-s);
}

/* ---------- Layout primitives ---------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--soft { background: var(--c-bg-soft); }
.section--blue { background: var(--c-blue); color: var(--c-white); }

/* ---------- Typography ---------- */
/* Section eyebrow: 8px orange square + Space Mono 11px caps */
.eyebrow {
	display: flex; align-items: center; gap: 8px;
	font-family: var(--ff-mono); font-weight: 400;
	font-size: 11px; line-height: 16.5px; letter-spacing: 1.1px; text-transform: uppercase;
	color: var(--c-blue-60);
}
.eyebrow__dot { flex: none; width: 8px; height: 8px; background: var(--c-orange); }
.section--blue .eyebrow, .on-dark .eyebrow { color: rgba(255, 255, 255, .6); }

/* H1/H2 — Space Grotesk Light */
.h1 { font-weight: 300; font-size: 48px; line-height: 1.2; letter-spacing: -1.2px; }
.h2 { font-weight: 300; font-size: 48px; line-height: 1; letter-spacing: -1.2px; color: var(--c-blue); }
.h3 { font-weight: 300; font-size: 24px; line-height: 1.25; letter-spacing: -.5px; }
.section--blue .h2, .on-dark .h2 { color: var(--c-white); }
@media (max-width: 1199px) { .h1, .h2 { font-size: 40px; letter-spacing: -1px; } }
@media (max-width: 767px)  { .h1, .h2 { font-size: 32px; line-height: 1.1; letter-spacing: -.8px; } }

/* Lead paragraph — HelveticaNeue Light 16/24, 60% blue */
.lead { font-family: var(--ff-text); font-weight: 300; font-size: 16px; line-height: 24px; letter-spacing: -.3px; color: var(--c-blue-60); }
.on-dark .lead { color: rgba(255, 255, 255, .8); }

/* Section head: title left, lead + link right (desktop), stacked below 1200 */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.section-head__main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.section-head__aside { display: flex; flex-direction: column; gap: 10px; width: 448px; max-width: 100%; flex: none; }
@media (max-width: 1199px) {
	.section-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
	.section-head__aside { width: 100%; max-width: 560px; }
}
@media (max-width: 767px) { .section-head { margin-bottom: 32px; } }

/* Text link with arrow (orange, caps) */
.link-arrow {
	display: inline-flex; align-items: center; gap: 5px;
	font-weight: 500; font-size: 14px; line-height: 20px; letter-spacing: .5px; text-transform: uppercase;
	color: var(--c-orange);
	transition: gap .25s var(--ease-out), opacity .2s;
}
.link-arrow .tk-icon { width: 18px; height: 18px; flex: none; }
.link-arrow:hover { gap: 9px; }

/* Rich text (legal pages, editor content) */
.prose { font-family: var(--ff-text); font-size: 16px; line-height: 1.6; color: var(--c-blue); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--ff-sans); font-weight: 300; font-size: 28px; line-height: 1.2; letter-spacing: -.6px; margin-top: 1.6em; }
.prose h3 { font-family: var(--ff-sans); font-weight: 400; font-size: 20px; line-height: 1.3; margin-top: 1.4em; }
.prose a { color: var(--c-orange); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .35em; }

/* ---------- Buttons ---------- */
.btn {
	--btn-bg: var(--c-orange);
	--btn-fg: var(--c-white);
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 14px 32px;
	border-radius: var(--radius-pill);
	background: var(--btn-bg); color: var(--btn-fg);
	font-family: var(--ff-sans); font-weight: 400; font-size: 13px; line-height: 20px; letter-spacing: .5px; text-transform: uppercase;
	white-space: nowrap; text-align: center;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .05));
	border: 1px solid transparent;
	transition: background-color .25s var(--ease-out), color .25s, transform .25s var(--ease-out), box-shadow .25s;
	cursor: pointer;
}
.btn:hover { background: #e2320d; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(248, 62, 23, .6); }
.btn:active { transform: translateY(0); }
.btn--medium { font-weight: 500; font-size: 14px; }
.btn--blue { --btn-bg: var(--c-blue); }
.btn--blue:hover { background: #241f9a; box-shadow: 0 8px 20px -8px rgba(49, 43, 182, .6); }
.btn--green { --btn-bg: var(--c-green); }
.btn--green:hover { background: #1fbd59; box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .6); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--c-blue); }
.btn--white:hover { background: #fff; color: var(--c-orange); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--c-blue); border-color: var(--c-blue); }
.btn--outline:hover { background: var(--c-blue); color: #fff; }
.btn--block { width: 100%; }
.btn .tk-icon { width: 18px; height: 18px; flex: none; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

/* Round icon button (slider arrows) */
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--c-blue-40); color: var(--c-blue);
	transition: background-color .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }
.icon-btn .tk-icon { width: 18px; height: 18px; }
.icon-btn--prev .tk-icon { transform: rotate(180deg); }

/* ---------- Forms (shared) ---------- */
.tk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tk-form__status { font-size: 14px; line-height: 20px; margin-top: 12px; }
.tk-form__status:empty { display: none; }
.tk-form__status.is-success { color: #1a8f4a; }
.tk-form__status.is-error { color: var(--c-orange); }
.tk-form .is-invalid, .tk-form [aria-invalid="true"] { border-color: var(--c-orange) !important; box-shadow: 0 0 0 1px var(--c-orange) inset; }
.tk-form__error { display: block; margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--c-orange); }

/* ---------- Reveal animation (Figma prototype: fade + 12px rise, ease .2 .8 .2 1) ---------- */
.js [data-reveal] {
	opacity: 0;
	translate: 0 12px;
	transition: opacity .9s var(--ease-out), translate .9s var(--ease-out);
	transition-delay: calc(var(--reveal-i, 0) * 70ms);
}
.js [data-reveal="sm"] { translate: 0 8px; }
.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
	.js [data-reveal] { opacity: 1; translate: none; transition: none; }
}

/* ---------- Utilities ---------- */
.u-orange { color: var(--c-orange); }
.u-nowrap { white-space: nowrap; }
.u-hide-mobile { }
@media (max-width: 767px) { .u-hide-mobile { display: none !important; } }
.u-only-mobile { display: none !important; }
@media (max-width: 767px) { .u-only-mobile { display: revert !important; } }

/* Content is static: scroll-reveal animation switched off */
.js [data-reveal], .js [data-reveal="sm"] { opacity: 1 !important; translate: none !important; transition: none !important; }
