/* efficient-charging.com — one page, dark, in the app's dark look (app/globals.css): IBM Plex and the same blue. */

:root {
	--background: #0A1220;
	--surface: #111C2E;
	--foreground: #E6EDF6;
	--muted: #93A3B8;
	--border: #22314A;
	--primary: #38BDF8;
	--primary-foreground: #0A1220;
	--primary-soft: #0E2A40;
	--success: #4ADE80;
	--danger: #F87171;
	--radius: 14px;
	--shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 40%);
	--max: 1120px;

	color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: "IBM Plex Sans", system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

figure { margin: 0; }

a { color: var(--primary); }

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }

p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: color-mix(in srgb, var(--background) 88%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
}

.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--foreground); text-decoration: none; white-space: nowrap; }

.logo-mark { width: 28px; height: 28px; }

.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; font-size: 15px; }

.nav a { color: var(--muted); text-decoration: none; }

.nav a:hover { color: var(--foreground); }

.nav .nav-links { display: flex; gap: 20px; }

.lang { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; }

@media (max-width: 760px) {
	.nav .nav-links { display: none; }
}

/* Buttons */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid transparent;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
}

.button-primary { background: var(--primary); color: var(--primary-foreground); }

.button-primary:hover { filter: brightness(1.08); }

.button-outline { border-color: var(--border); color: var(--foreground); background: var(--surface); }

.button-outline:hover { border-color: var(--muted); }

.button[disabled] { opacity: 0.6; cursor: progress; }

.nav .button { min-height: 36px; padding: 0 14px; font-size: 14px; color: var(--primary-foreground); }

/* Hero */

/* The login's photo (a charger in a dark garage); the text side shaded for reading. */
.hero {
	padding: 96px 0 160px;
	background:
		linear-gradient(90deg, rgb(10 18 32 / 96%) 0%, rgb(10 18 32 / 80%) 45%, rgb(10 18 32 / 20%) 100%),
		linear-gradient(180deg, transparent 70%, var(--background) 100%),
		var(--background) url("/img/cover.jpg") 75% 55% / cover no-repeat;
}

@media (max-width: 760px) {
	.hero {
		padding: 64px 0 120px;
		background:
			linear-gradient(180deg, rgb(10 18 32 / 78%), rgb(10 18 32 / 92%) 70%, var(--background)),
			var(--background) url("/img/cover.jpg") 70% center / cover no-repeat;
	}
}

.hero h1 { font-size: clamp(32px, 5vw, 52px); max-width: 18ch; }

.hero .lead { margin-top: 18px; font-size: 19px; color: #B6C3D4; max-width: 52ch; }

.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }

.facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--primary); vertical-align: middle; }

/* The chargers list, overlapping the photo's lower edge. */
.showcase { position: relative; margin-top: -112px; padding-bottom: 32px; }

@media (max-width: 760px) {
	.showcase { margin-top: -80px; }
}

/* Screenshots */

.shot { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }

.shot img { width: 100%; }

/* Two screens for one feature, one over the other. */
.shots { display: grid; gap: 16px; }

.phones { display: flex; justify-content: center; gap: 20px; }

.phone { width: min(44%, 260px); border-radius: 28px; border: 6px solid #22314A; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }

.phone img { width: 100%; }

/* Sections */

section { padding: 64px 0; }

.section-head { max-width: 62ch; margin-bottom: 40px; }

.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }

.section-head p { margin-top: 12px; color: var(--muted); }

.eyebrow { display: block; margin-bottom: 8px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); }

.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Who: the three accounts */

.accounts { display: grid; gap: 16px; }

.account { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--background); }

.account h3 { font-size: 18px; }

.account p { margin-top: 8px; color: var(--muted); font-size: 16px; }

@media (min-width: 760px) {
	.accounts { grid-template-columns: repeat(2, 1fr); }
}

/* Features: text and screenshot, alternating */

.features { display: grid; gap: 72px; }

.feature { display: grid; gap: 24px; align-items: center; }

.feature h3 { font-size: 24px; }

.feature .text p { margin-top: 12px; color: var(--muted); }

.feature .text p strong { color: var(--foreground); font-weight: 500; }

.feature .screen-name { margin-top: 16px; font-size: 13px; color: var(--muted); }

@media (min-width: 900px) {
	.feature { grid-template-columns: 5fr 7fr; gap: 56px; }
	.feature:nth-child(even) .text { order: 2; }
	.feature.is-phone { grid-template-columns: 6fr 5fr; }
}

/* How it works */

.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }

.steps li { counter-increment: step; padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--background); }

.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 600; }

.steps h3 { font-size: 18px; }

.steps p { margin-top: 8px; color: var(--muted); font-size: 16px; }

@media (min-width: 760px) {
	.steps { grid-template-columns: repeat(3, 1fr); }
}

/* Contact */

.contact .wrap { display: grid; gap: 32px; }

@media (min-width: 900px) {
	.contact .wrap { grid-template-columns: 5fr 7fr; gap: 56px; }
}

.form { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }

.form .row { display: grid; gap: 16px; }

@media (min-width: 600px) {
	.form .row { grid-template-columns: 1fr 1fr; }
}

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

.field label { font-size: 14px; font-weight: 500; }

.field label .optional { color: var(--muted); font-weight: 400; }

.field input, .field textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--background);
	color: var(--foreground);
	font: inherit;
	font-size: 16px;
}

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

.field input:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }

.field [aria-invalid="true"] { border-color: var(--danger); }

/* The honeypot: off screen for people, there for bots. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form .note { font-size: 13px; color: var(--muted); }

.form .status { font-size: 15px; }

.form .status[data-kind="ok"] { color: var(--success); }

.form .status[data-kind="error"] { color: var(--danger); }

/* Footer */

.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }

.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

.site-footer a { color: var(--muted); }
