/*
 * KODEV coming-soon page.
 * Concept: a transit-style system map. The Apps line runs today; planned lines branch off it.
 * No inline styles and no JavaScript, so the page works with a strict CSP.
 */

@font-face {
	font-family: "Overpass";
	src: url("../fonts/overpass-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Overpass";
	src: url("../fonts/overpass-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Overpass";
	src: url("../fonts/overpass-800.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--paper: #f2f4f6;
	--ink: #12202c;
	--ink-soft: #566573;
	--rule: #d3dbe2;
	--apps: #0b7a63;
	--cloud: #2c64c9;
	--security: #b8324f;
	--networks: #935807;
	--products: #6b47c2;

	--font: "Overpass", "Helvetica Neue", Arial, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(20px, 5vw, 56px);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 18px;
	line-height: 1.6;
	font-feature-settings: "tnum" 0;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--apps);
	outline-offset: 4px;
	border-radius: 4px;
}

.skip {
	position: absolute;
	inset-inline-start: 12px;
	inset-block-start: -60px;
	padding: 10px 14px;
	background: var(--ink);
	color: var(--paper);
	text-decoration: none;
	border-radius: 8px;
	z-index: 10;
}

.skip:focus {
	inset-block-start: 12px;
}

.wrap {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}

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

.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 28px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.brand__mark {
	width: 40px;
	height: 40px;
}

.mark__bg {
	fill: var(--ink);
}

.mark__k {
	fill: var(--paper);
}

/* Logo cursor: "Teal on dark" from the KODEV brand palette (8.7:1 on Ink). */
.mark__cursor {
	fill: #3ed1bd;
}

.brand__name {
	font-weight: 800;
	font-size: 22px;
	letter-spacing: 0.04em;
}

.status {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px 6px;
	border: 1.5px solid var(--rule);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink);
	background: #fff;
}

.status__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--apps);
	box-shadow: 0 0 0 3px rgb(11 122 99 / 18%);
}

/* Hero -------------------------------------------------------------------- */

.hero {
	padding-block: clamp(28px, 5vw, 64px) clamp(8px, 2vw, 24px);
}

.hero__title {
	max-width: 15ch;
	font-weight: 800;
	font-size: clamp(44px, 7vw, 96px);
	line-height: 0.98;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.hero__lede {
	max-width: 58ch;
	margin-block-start: clamp(20px, 3vw, 32px);
	font-size: clamp(18px, 1.6vw, 21px);
	color: var(--ink-soft);
}

.hero__cta {
	margin-block-start: clamp(16px, 2.4vw, 24px);
	font-size: clamp(17px, 1.5vw, 19px);
	color: var(--ink-soft);
}

.cta {
	font-weight: 600;
	color: var(--apps);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	overflow-wrap: anywhere;
}

.cta:hover {
	color: var(--ink);
}

/* System map: the one bold element ---------------------------------------- */

.map {
	padding-block: clamp(8px, 2vw, 24px) clamp(40px, 6vw, 72px);
	border-block-end: 1.5px solid var(--rule);
}

.map__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	font-family: var(--font);
}

.apps {
	fill: none;
	stroke: var(--apps);
	stroke-width: 12;
	stroke-linecap: round;
}

.apps__pulse {
	fill: none;
	stroke: #fff;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-dasharray: 36 1120;
	stroke-dashoffset: 1156;
	opacity: 0.85;
}

.apps__end {
	fill: var(--apps);
}

.stops circle {
	fill: #fff;
	stroke: var(--ink);
	stroke-width: 5;
}

.stop {
	cursor: pointer;
}

.stop__hit {
	fill: transparent;
}

.stop text {
	fill: var(--ink);
	font-size: 24px;
	font-weight: 600;
	text-anchor: middle;
}

.stop circle {
	transition: fill 0.2s var(--ease), stroke-width 0.2s var(--ease);
}

.stop:hover circle,
.stop:focus-visible circle {
	fill: var(--apps);
	stroke-width: 6;
}

.stop:hover text,
.stop:focus-visible text {
	fill: var(--apps);
	text-decoration: underline;
	text-underline-offset: 5px;
}

.stop:focus-visible {
	outline: none;
}

.branch path {
	fill: none;
	stroke-width: 7;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 2 13;
}

.branch__name {
	font-size: 21px;
	font-weight: 600;
}

.branch__note {
	fill: var(--ink-soft);
	font-size: 16px;
}

.branch--products path { stroke: var(--products); }
.branch--security path { stroke: var(--security); }
.branch--cloud path { stroke: var(--cloud); }
.branch--networks path { stroke: var(--networks); }
.branch--products .branch__name { fill: var(--products); }
.branch--security .branch__name { fill: var(--security); }
.branch--cloud .branch__name { fill: var(--cloud); }
.branch--networks .branch__name { fill: var(--networks); }

.map__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	margin-block-start: 28px;
	font-size: 15px;
	color: var(--ink-soft);
}

.legend {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.legend::before {
	content: "";
	width: 34px;
	height: 6px;
	border-radius: 3px;
	background: var(--apps);
}

.legend--planned::before {
	border-radius: 0;
	background: radial-gradient(circle, var(--ink-soft) 2.6px, transparent 3.2px) 0 50% / 11px 6px repeat-x;
}

/* Page load: the line draws itself once, then a pulse travels along it. */

@media (prefers-reduced-motion: no-preference) {
	.map .apps {
		stroke-dasharray: 1080;
		stroke-dashoffset: 1080;
		animation: draw 1.1s var(--ease) 0.15s forwards;
	}

	.stop {
		opacity: 0;
		animation: appear 0.5s var(--ease) 0.9s forwards;
	}

	.branch {
		opacity: 0;
		animation: appear 0.7s var(--ease) 1.3s forwards;
	}

	.apps__pulse {
		animation: pulse 5s linear 2s infinite;
	}
}

@media (prefers-reduced-motion: reduce) {
	.apps__pulse {
		display: none;
	}
}

@keyframes draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes appear {
	to {
		opacity: 1;
	}
}

@keyframes pulse {
	from {
		stroke-dashoffset: 1156;
	}

	to {
		stroke-dashoffset: 0;
	}
}

/* Content blocks ---------------------------------------------------------- */

.block {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(24px, 5vw, 80px);
	padding-block: clamp(48px, 7vw, 88px);
	border-block-end: 1.5px solid var(--rule);
}

.block__title {
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.015em;
}

.block__intro {
	max-width: 34ch;
	margin-block-start: 14px;
	color: var(--ink-soft);
}

h3 {
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
}

.block p:not(.block__intro, .line__branch) {
	max-width: 60ch;
	color: var(--ink-soft);
}

/* The Apps line, as a vertical route */

.line {
	position: relative;
	display: grid;
	gap: 30px;
	padding-inline-start: 48px;
}

.line::before {
	content: "";
	position: absolute;
	inset-block: 12px 12px;
	inset-inline-start: 12px;
	width: 8px;
	border-radius: 4px;
	background: var(--apps);
}

.line__stop {
	position: relative;
	scroll-margin-block-start: 32px;
}

.line__branch {
	display: none;
	align-items: center;
	gap: 10px;
	margin-block-start: 8px;
	font-size: 15px;
}

.line__branch::before {
	content: "";
	width: 24px;
	height: 6px;
	background: radial-gradient(circle, currentColor 2.6px, transparent 3.2px) 0 50% / 11px 6px repeat-x;
}

.line__branch--products { color: var(--products); }
.line__branch--security { color: var(--security); }
.line__branch--cloud { color: var(--cloud); }
.line__branch--networks { color: var(--networks); }

.line__stop::before {
	content: "";
	position: absolute;
	inset-inline-start: -47px;
	inset-block-start: 2px;
	width: 22px;
	height: 22px;
	border: 4px solid var(--ink);
	border-radius: 50%;
	background: #fff;
}

.line__stop p {
	margin-block-start: 4px;
}

/* Entry offer */

.offer {
	padding: clamp(24px, 3.4vw, 40px);
	border: 1.5px solid var(--rule);
	border-block-start: 6px solid var(--apps);
	border-radius: 16px;
	background: #fff;
}

.block p.offer__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	max-width: none;
	color: var(--ink);
}

.offer__amount {
	font-size: clamp(40px, 5vw, 56px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	font-feature-settings: "tnum" 1;
}

.offer__unit {
	font-size: 18px;
	color: var(--ink-soft);
}

.block p.offer__note {
	margin-block-start: 8px;
	font-size: 16px;
}

.offer__list {
	display: grid;
	gap: 12px;
	margin-block: 24px;
	padding-block-start: 24px;
	border-block-start: 1.5px solid var(--rule);
}

.offer__list li {
	position: relative;
	padding-inline-start: 30px;
	color: var(--ink);
}

.offer__list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 2px;
	inset-block-start: 0.55em;
	width: 12px;
	height: 12px;
	border: 3px solid var(--apps);
	border-radius: 50%;
	background: #fff;
}

.block p.offer__terms {
	font-size: 16px;
}

.block p.offer__cta {
	margin-block-start: 18px;
	color: var(--ink);
}

/* Steps: a real sequence, so numbers carry meaning */

.steps {
	display: grid;
	gap: 22px;
	counter-reset: none;
}

.steps li {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: baseline;
	gap: 14px;
}

.steps__n {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--paper);
	font-weight: 800;
	font-size: 18px;
	font-feature-settings: "tnum" 1;
	line-height: 1;
	padding-block-start: 3px;
}

.steps p {
	color: var(--ink);
	font-size: 20px;
}

/* Planned lines */

.planned {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 34px 40px;
}

.planned__item {
	padding-block-start: 18px;
	border-block-start: 6px dotted currentColor;
}

.planned__item h3 {
	color: inherit;
}

.planned__item p {
	margin-block-start: 6px;
}

.planned__item--cloud { color: var(--cloud); }
.planned__item--security { color: var(--security); }
.planned__item--networks { color: var(--networks); }
.planned__item--products { color: var(--products); }

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

.foot {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding-block: 32px 48px;
	font-size: 15px;
	color: var(--ink-soft);
}

/* Legal pages (privacy notice) */

.legal {
	display: grid;
	gap: 34px;
	max-width: 760px;
	padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 88px);
}

.legal__title {
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.legal__meta {
	margin-block-start: -22px;
	color: var(--ink-soft);
	font-size: 15px;
}

.legal section {
	display: grid;
	gap: 10px;
}

.legal h2 {
	font-size: clamp(22px, 2.4vw, 26px);
	font-weight: 800;
	line-height: 1.2;
}

.legal p,
.legal li {
	max-width: 66ch;
	color: var(--ink-soft);
}

.legal ul {
	display: grid;
	gap: 8px;
	padding-inline-start: 22px;
	list-style: disc;
}

.legal strong {
	color: var(--ink);
	font-weight: 600;
}

.legal a,
.foot a {
	color: var(--apps);
	text-underline-offset: 3px;
}

/* Long pages built on .legal (sample report, how we work) */

.legal h3 {
	margin-block-start: 8px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.legal ol {
	display: grid;
	gap: 8px;
	padding-inline-start: 24px;
	list-style: decimal;
}

.legal code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.86em;
	overflow-wrap: anywhere;
}

/* Grid items default to min-width: auto; let wide code scroll inside its box, not the page */
.legal section,
.legal section > *,
.legal li {
	min-width: 0;
}

.legal pre {
	max-width: 100%;
	overflow-x: auto;
	padding: 12px 14px;
	border: 1px solid var(--rule);
	border-radius: 6px;
	background: #fff;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.5;
}

.legal pre code {
	font-size: inherit;
	white-space: pre;
	overflow-wrap: normal;
}

.legal li > pre {
	margin-block-start: 8px;
}

.notice {
	max-width: 66ch;
	padding: 14px 18px;
	border-inline-start: 4px solid var(--apps);
	background: #fff;
	color: var(--ink);
}

.table {
	overflow-x: auto;
}

.legal table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.legal th,
.legal td {
	padding: 8px 10px;
	border-block-end: 1px solid var(--rule);
	text-align: start;
	vertical-align: top;
	color: var(--ink-soft);
}

.legal th {
	color: var(--ink);
	font-weight: 600;
}

.finding {
	display: grid;
	gap: 8px;
	padding-block-start: 14px;
	border-block-start: 1px solid var(--rule);
}

.risk {
	font-weight: 600;
}

.risk--high { color: var(--security); }
.risk--medium { color: var(--networks); }
.risk--low { color: var(--ink-soft); }

.legal .offer__cta {
	margin-block-start: 6px;
}

/* Short laptop screens: keep the headline and the whole map in the first view */

@media (min-width: 761px) and (max-height: 860px) {
	.hero {
		padding-block-start: 20px;
	}

	.hero__title {
		font-size: clamp(44px, 5.6vw, 80px);
	}

	.hero__lede {
		margin-block-start: 16px;
	}

	.map__legend {
		margin-block-start: 16px;
	}
}

/* Small screens ------------------------------------------------------------ */

@media (max-width: 760px) {
	body {
		font-size: 17px;
	}

	.top {
		padding-block: 20px;
	}

	.status {
		font-size: 13px;
		padding: 6px 11px 5px;
	}

	.map {
		display: none;
	}

	.hero {
		padding-block-end: 36px;
		border-block-end: 1.5px solid var(--rule);
	}

	.block .line__branch {
		display: flex;
	}

	.block {
		grid-template-columns: minmax(0, 1fr);
	}

	.planned {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Partners and free tools */

.offer__list--plain {
	margin-block-start: 0;
	padding-block-start: 0;
	border-block-start: 0;
}

.tools {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.tools__item {
	display: grid;
	align-content: start;
	gap: 10px;
	padding: clamp(20px, 2.6vw, 28px);
	border: 1.5px solid var(--rule);
	border-radius: 16px;
	background: #fff;
}

.tools__item--wide {
	grid-column: 1 / -1;
}

@media (max-width: 760px) {
	.tools {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Buttons and the contact form */

.button {
	display: inline-block;
	padding: 12px 24px;
	border: 0;
	border-radius: 10px;
	background: var(--apps);
	color: #fff;
	font: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
}

.button:hover {
	background: var(--ink);
}

.hero__cta,
.block p.offer__cta,
.block p.contact__send {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
}

.hero__or {
	color: var(--ink-soft);
}

.contact {
	display: grid;
	gap: 20px;
	padding: clamp(24px, 3.4vw, 40px);
	border: 1.5px solid var(--rule);
	border-block-start: 6px solid var(--apps);
	border-radius: 16px;
	background: #fff;
}

.field {
	display: grid;
	gap: 6px;
}

.field label {
	font-size: 17px;
	font-weight: 600;
}

.field__opt {
	font-weight: 400;
	color: var(--ink-soft);
}

.field input,
.field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--ink-soft);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: 17px;
}

.field textarea {
	min-height: 120px;
	resize: vertical;
}

.field input::placeholder {
	color: var(--ink-soft);
	opacity: 1;
}

.block p.field__hint,
.block p.contact__note {
	font-size: 15px;
}

.contact__note a {
	color: var(--apps);
	text-underline-offset: 3px;
}

/* Honeypot: off screen for people, still in the form for bots */
.field--trap {
	position: absolute;
	inset-inline-start: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.legal .button {
	justify-self: start;
	color: #fff;
	text-decoration: none;
}
