/* ---------- Tokens ---------- */
:root {
	--primary-color: #0f6e63;
	--primary-color-border: #0a5249;
	--primary-color-light: #17897b;
	--secondary-color: #e3e8e6;
	--text-color: #1f2d2b;
	--text-color-secondary: rgba(31, 45, 43, 0.68);
	--background-color: #f5f7f6;
	--background-color-dark: #e9eeec;
	--secondary-background-color: #ffffff;
	--card-border: #e1e7e5;
	--shadow-main: rgb(31 45 43 / 8%);
	--green-color: #008000;
	--red-color: #ff0000;
	--cta-color: #ff5b24;
	--cta-color-hover: #e64a1a;
}

@font-face {
	font-family: 'Roboto Mono';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/fonts/roboto-mono-400.woff2') format('woff2');
}

/* ---------- Base ---------- */
* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--text-color);
	background-color: var(--background-color);
}

a {
	color: var(--primary-color);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 1rem;
}

button {
	font-family: inherit;
}

[hidden] {
	display: none !important;
}

.layout {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	margin: 1rem;
	flex: 1;
	min-height: 0;
}

/* ---------- Header ---------- */
.site-header {
	background-color: #fff;
	border-bottom: 1px solid var(--card-border);
	position: relative;
	z-index: 1001;
}

.site-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	max-width: 1200px;
	margin: 0 auto;
}

.nav-left {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	gap: 0.5rem;
	align-items: center;
}

.nav-right {
	display: flex;
	flex: 0 0 auto;
	gap: 1rem;
	align-items: center;
}

.logo {
	display: flex;
	align-items: baseline;
	flex: 0 0 auto;
	margin-right: 0.75rem;
	color: var(--text-color);
	font-weight: 800;
	font-size: 1.3rem;
	letter-spacing: -0.03em;
	line-height: 1;
}

.logo:hover {
	text-decoration: none;
}

.logo small {
	font-size: 1em;
	font-weight: 800;
	color: var(--primary-color);
}

/* ---------- Language dropdown ---------- */
.lang {
	position: relative;
	display: inline-block;
}

.lang-button {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 1rem;
	color: var(--text-color);
}

.lang-arrow {
	font-size: 10px;
	transition: transform 0.2s ease;
}

.lang.is-open .lang-arrow {
	transform: rotate(180deg);
}

.lang-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: var(--background-color);
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 2px 8px #0000001a;
	z-index: 1000;
	margin-top: 2px;
	min-width: 120px;
}

.lang-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	width: 100%;
	border: none;
	background: transparent;
	color: var(--text-color);
	cursor: pointer;
	font-size: 14px;
	text-align: left;
}

.lang-item:hover {
	background-color: #f5f5f5;
}

.lang-item.is-selected {
	background-color: var(--background-color-dark);
	font-weight: 700;
}

.flag {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

/* ---------- Burger + side menu ---------- */
.burger {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-color);
	width: 40px;
	height: 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
}

.burger span {
	display: block;
	width: 24px;
	height: 3px;
	margin: 3px auto;
	background-color: var(--text-color);
}

.menu {
	position: fixed;
	top: var(--header-height, 72px);
	right: 0;
	bottom: 0;
	width: 450px;
	background-color: var(--background-color);
	box-shadow: -2px 0 5px #0000004d;
	transform: translate(100%);
	transition: transform 0.3s ease;
	visibility: hidden;
	z-index: 999;
	padding: 1rem;
	overflow-y: auto;
}

.menu.is-open {
	transform: translate(0);
	visibility: visible;
}

.menu ul {
	list-style: none;
	margin: 1em 0;
	padding-left: 40px;
}

.menu li {
	margin-bottom: 1rem;
}

.menu li a {
	text-decoration: underline;
}

/* ---------- Search field ---------- */
.search {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	max-width: 400px;
}

.search-box {
	display: flex;
	border-radius: 8px;
	box-shadow: 0 2px 4px #0000001a;
	overflow: hidden;
	width: 100%;
	height: 3.5rem;
	background: #fff;
	transition: box-shadow 0.2s;
}

.search-box:focus-within {
	box-shadow:
		0 2px 4px #0000001a,
		0 0 0 3px #205ca026;
}

.search.is-invalid .search-box {
	box-shadow:
		0 2px 4px #0000001a,
		0 0 0 2px #e11d48;
}

.plate-strip {
	flex-shrink: 0;
	height: 100%;
	width: auto;
	display: block;
}

.search input {
	flex: 1;
	min-width: 0;
	width: 100%;
	border: none;
	outline: none;
	padding: 0 0 0 0.5rem;
	font-size: 2.4rem;
	letter-spacing: 4px;
	text-transform: uppercase;
	font-family: 'Roboto Mono', monospace;
	background: #fff;
	color: #0f2850;
}

.search input::placeholder {
	color: #9aa8bc;
	font-weight: 400;
	letter-spacing: 0.06em;
}

.search-button {
	flex-shrink: 0;
	min-width: 3.5rem;
	color: #fff;
	background-color: var(--primary-color);
	border: none;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.search-button:hover {
	background-color: var(--primary-color-border);
}

.search-button svg {
	width: 1.25rem;
	height: 1.25rem;
}

.search-error {
	color: #b91c1c;
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	text-align: left;
}

/* Home page variant: field on top, wide button underneath */
.search.is-vertical {
	max-width: 500px;
	gap: 0.75rem;
}

.search.is-vertical .search-box {
	height: 4rem;
}

.search.is-vertical input {
	font-size: 2.6rem;
}

.search.is-vertical .search-button {
	width: 100%;
	height: 3.5rem;
	font-size: 1.1rem;
	font-weight: 500;
	font-weight: 600;
	border-radius: 12px;
	background: var(--primary-color);
	transition: background 0.2s ease-in-out;
}

.search.is-vertical .search-button:hover {
	background: var(--primary-color-border);
}

/* ---------- Home ---------- */
.home-hero {
	display: flex;
	justify-content: center;
	padding: 4rem 1rem 3.5rem;
	margin: -1rem -1rem 0;
	background: linear-gradient(180deg, #e3f1ee 0%, var(--background-color) 100%);
}

.home-content {
	text-align: center;
	width: 100%;
	max-width: 600px;
}

.home-title {
	font-size: 2.75rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
}

.home-subtitle {
	font-size: 1.2rem;
	margin: 0 0 2rem;
	color: var(--text-color-secondary);
	line-height: 1.6;
}

.home-search {
	display: flex;
	justify-content: center;
	width: 100%;
}

.home-section {
	max-width: 900px;
	margin: 0 auto;
	padding: 2.5rem 0;
	border-top: 1px solid var(--card-border);
}

.home-section:first-of-type {
	border-top: none;
}

.home-section > h2 {
	font-size: 1.6rem;
	text-align: center;
	margin: 0 0 1.5rem;
}

.find-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
}

.find-list li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.85rem 1rem;
	background: #fff;
	border: 1px solid var(--card-border);
	border-radius: 12px;
	font-weight: 500;
}

.find-list svg {
	width: 1.1rem;
	height: 1.1rem;
	flex-shrink: 0;
	color: var(--primary-color);
}

.how-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	counter-reset: step;
}

.how-list li {
	counter-increment: step;
}

.how-list li::before {
	content: counter(step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: 0.75rem;
	border-radius: 50%;
	background: var(--primary-color);
	color: #fff;
	font-weight: 700;
}

.how-list h3 {
	font-size: 1.1rem;
	margin: 0 0 0.4rem;
}

.how-list p {
	margin: 0;
	color: var(--text-color-secondary);
}

.faq {
	max-width: 700px;
	margin: 0 auto;
}

.faq details {
	background: #fff;
	border: 1px solid var(--card-border);
	border-radius: 12px;
	margin-bottom: 0.75rem;
}

.faq summary {
	cursor: pointer;
	padding: 1rem 1.25rem;
	font-weight: 600;
}

.faq details p {
	margin: 0;
	padding: 0 1.25rem 1rem;
	color: var(--text-color-secondary);
}

/* ---------- Cards + detail lists ---------- */
.card {
	border-radius: 14px;
	font-size: 15px;
	padding: 1.25rem;
	height: 100%;
	background-color: var(--secondary-background-color);
	border: 1px solid var(--card-border);
	box-shadow: 0 4px 14px 0 var(--shadow-main);
	position: relative;
}

.card > h2 {
	margin: 0 0 1rem;
	font-size: 1.2rem;
}

.details {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
}

.details > div {
	border-bottom: 1px solid #ebebeb;
	padding-bottom: 0.7rem;
	margin-bottom: 0.55rem;
}

.details > div:last-child {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}

.details dt {
	margin: 0 0 0.2rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.35;
	color: #666;
}

.details dd {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	overflow-wrap: anywhere;
}

.details dd svg {
	width: 1.1rem;
	height: 1.1rem;
	flex-shrink: 0;
}

/* ---------- Vehicle page ---------- */
body[data-page='vehicle'] {
	background: linear-gradient(180deg, #e3f1ee 0, var(--background-color) 24rem) no-repeat var(--background-color);
}

.vehicle-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.5rem;
	max-width: 1200px;
	margin: 0 auto 2rem;
	padding: 0.5rem 2rem 2rem;
}

.grid-main {
	grid-area: 1 / 1 / 3 / 2;
}

.grid-owner {
	grid-column: 1;
}

.grid-general {
	grid-area: 1 / 2 / 4 / 3;
}

.grid-icons {
	grid-area: 4 / 1 / 4 / 3;
}

/* Bottom cards: three columns, grouped as on vegvesen.no */
.grid-info {
	grid-area: 5 / 1 / 6 / 3;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.info-col {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.info-col > div {
	flex: 0 0 auto;
}

.info-col > div:last-child {
	flex: 1 1 auto;
}

.info-col .card {
	height: 100%;
}

.hero-row {
	display: flex;
	align-items: flex-start;
}

.hero-icon {
	width: 50px;
	height: 50px;
	flex-shrink: 0;
	margin-right: 1rem;
	color: var(--primary-color);
}

.hero-text {
	min-width: 0;
	flex: 1;
}

.hero-text h1 {
	color: var(--primary-color);
	font-size: 2em;
	margin: 0 0 1rem;
	line-height: 1.5;
}

.hero-text h2,
.hero-text h3,
.hero-text p {
	margin: 0;
	padding: 0;
	line-height: 1.2rem;
}

.hero-text h2 {
	font-size: 1.5em;
}

.hero-text h3 {
	font-size: 1.17em;
}

.hero-text p {
	text-transform: uppercase;
}

.hero-details {
	margin-top: 1rem;
}

.hero-details .details > div {
	border-bottom-color: #ddd;
}

/* Owner / paywall card */
.owner {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.owner h2 {
	margin: 0;
	font-size: 1.5rem;
}

.owner p {
	margin: 0;
	line-height: 2;
}

.owner-box {
	border: 1px solid lightgray;
	border-radius: 8px;
	padding: 1rem;
	gap: 1rem;
	display: flex;
	flex-direction: column;
}

.owner-locked {
	background-color: #fff;
	border: 1px solid lightgray;
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 0.5rem;
}

.owner-locked p {
	color: transparent;
	text-shadow: 0 0 7px rgba(0, 0, 0, 1);
	-webkit-user-select: none;
	user-select: none;
	font-size: 1.2rem;
	line-height: 1.5;
}

.owner-price {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
}

.owner-price-label {
	font-size: 0.9rem;
	color: #0369a1;
	font-weight: 500;
}

.owner-price-amount {
	font-size: 1.3rem;
	font-weight: 700;
	color: #0284c7;
	white-space: nowrap;
}

.cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	border-radius: 999px;
	background-color: var(--cta-color);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
}

.cta:hover {
	background-color: var(--cta-color-hover);
	text-decoration: none;
}

button.cta {
	border: none;
	cursor: pointer;
}

.cta:disabled {
	opacity: 0.7;
	cursor: progress;
}

.owner .owner-note {
	margin-top: 0.75rem;
	text-align: center;
	font-size: 1rem;
	line-height: 1.4;
}

.owner .owner-terms {
	text-align: center;
	font-size: 1rem;
	line-height: 1.4;
}

.owner .owner-login {
	text-align: center;
	margin-top: 1rem;
	font-size: 0.9rem;
	line-height: 1.5;
}

.owner-login a {
	color: var(--primary-color);
	text-decoration: underline;
}

/* Icon strip */
.icon-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.icon-item {
	width: 7rem;
	margin: 0.5rem;
	line-height: 1rem;
	text-align: center;
}

.icon-item strong {
	white-space: nowrap;
}

.icon-item svg {
	height: 3rem;
	width: 3rem;
}

/* Not found / invalid */
.no-info {
	padding: 2rem;
	margin: 2rem auto;
	background-color: var(--secondary-background-color);
	border-radius: 8px;
	max-width: 600px;
	border: 1px solid var(--card-border);
	box-shadow: 0 4px 14px 0 var(--shadow-main);
}

.no-info h2 {
	font-size: 1.8rem;
	margin-bottom: 0.5rem;
}

.no-info p {
	margin: 0.5rem 0;
}

.no-info a {
	text-decoration: underline;
}

/* Min side */
.account .cta {
	margin: 1rem 0;
	text-decoration: none;
}

.account .details {
	margin: 1rem 0;
}

.account-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 1rem 0;
}

/* Email login (Min side and the buy modal) */
.login-form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 1rem 0;
}

.login-form label {
	font-weight: 600;
}

.login-form input {
	width: 100%;
	min-height: 44px;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--card-border);
	border-radius: 10px;
	background: var(--secondary-background-color);
	color: var(--text-color);
	font: inherit;
	font-size: 1rem;
}

.login-form input:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 1px;
	border-color: var(--primary-color);
}

.login-form .login-code {
	font-family: 'Roboto Mono', monospace;
	font-size: 1.4rem;
	letter-spacing: 0.4em;
	text-align: center;
}

.login-form .cta {
	margin: 0.5rem 0 0;
}

.login-error,
.login-info {
	margin: 0;
	font-size: 0.95rem;
}

.login-error {
	color: #b42318;
}

.login-info {
	color: var(--primary-color);
}

.login-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-top: 0.25rem;
	font-size: 0.95rem;
}

.link-button:disabled {
	opacity: 0.5;
	cursor: default;
}

.notice.is-info {
	background: #e6f4f1;
	border-color: #b5dcd4;
	border-left-color: var(--primary-color);
	color: var(--primary-color-border);
}

.login-modal {
	background-color: rgb(31 45 43 / 45%);
}

.login-box {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 1.75rem 1.5rem 1.25rem;
	border-radius: 14px;
	background: var(--secondary-background-color);
	box-shadow: 0 10px 40px rgb(0 0 0 / 20%);
}

.login-box h2 {
	margin: 0 0 0.5rem;
	font-size: 1.4rem;
}

.login-box > p {
	margin: 0;
	color: var(--text-color-secondary);
}

.login-close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	padding: 0.25rem;
	border: none;
	background: none;
	color: var(--text-color-secondary);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.demo-note {
	max-width: 1200px;
	margin: 0 auto 1rem;
	padding: 0 2rem;
}

.demo-note p {
	margin: 0;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: #fef3cd;
	border: 1px solid #f6d55c;
	border-left: 4px solid #f39c12;
	color: #8b5a00;
}

.loading {
	text-align: center;
	padding: 4rem 1rem;
	color: var(--text-color-secondary);
}

/* ---------- Modal ---------- */
.modal {
	position: fixed;
	inset: 0;
	background-color: var(--shadow-main);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	padding: 1rem;
}

.modal-content {
	max-width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	width: 100%;
	height: auto;
}

.modal-body {
	text-align: center;
	padding: 2rem;
	font-size: 1.2rem;
	color: var(--text-color-secondary);
	border-bottom: 1px solid var(--secondary-color);
}

.modal-source {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	color: var(--text-color-secondary);
	margin-top: 0.5rem;
}

.modal-actions {
	display: flex;
	justify-content: center;
	margin-top: 1.5rem;
}

.button {
	padding: 10px 20px;
	font-size: 16px;
	cursor: pointer;
	border: none;
	border-radius: 10px;
	height: 3rem;
	width: 200px;
	color: #fff;
	background-color: var(--primary-color);
}

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

/* ---------- Cookie consent ---------- */
.consent {
	position: fixed;
	inset: 0;
	z-index: 3000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgb(15 25 23 / 55%);
}

.consent-box {
	width: 100%;
	max-width: 26rem;
	max-height: 100%;
	overflow-y: auto;
	padding: 1.5rem;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgb(0 0 0 / 25%);
	font-size: 0.9rem;
}

.consent-box h2 {
	font-size: 1.15rem;
	margin: 0 0 0.75rem;
}

.consent-box p {
	margin: 0 0 1.25rem;
	color: var(--text-color-secondary);
}

.consent-category {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.75rem;
	margin-bottom: 0.5rem;
	border: 1px solid var(--card-border);
	border-radius: 10px;
	color: var(--text-color-secondary);
	cursor: pointer;
}

.consent-category input {
	margin-top: 0.2rem;
	width: 1.1rem;
	height: 1.1rem;
	flex-shrink: 0;
	accent-color: var(--primary-color);
}

.consent-category strong {
	display: block;
	color: var(--text-color);
}

.consent-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin-top: 1rem;
}

.consent-buttons button {
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	border: none;
	border-radius: 10px;
	background: var(--background-color-dark);
	color: var(--text-color);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.consent-buttons button:hover {
	background: var(--secondary-color);
}

.consent-buttons .consent-primary {
	background: var(--primary-color);
	color: #fff;
}

.consent-buttons .consent-primary:hover {
	background: var(--primary-color-border);
}

.consent-buttons .consent-wide {
	grid-column: 1 / -1;
}

.link-button {
	padding: 0;
	border: none;
	background: none;
	color: inherit;
	font-size: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.notice {
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: #fef3cd;
	border: 1px solid #f6d55c;
	border-left: 4px solid #f39c12;
	color: #8b5a00;
}

/* ---------- Info pages (iOS style) ---------- */
.ios-page {
	max-width: 640px;
	margin: 0 auto;
	padding: 1rem 0 2rem;
	font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
	font-size: 17px;
	line-height: 1.3;
	-webkit-font-smoothing: antialiased;
}

.ios-head {
	padding: 1rem 1rem 0.5rem;
}

.ios-head h1 {
	margin: 0 0 0.5rem;
	font-size: 34px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	overflow-wrap: break-word;
	hyphens: auto;
}

.ios-head p {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--text-color-secondary);
}

.ios-head strong {
	color: var(--text-color);
	font-weight: 600;
}

.ios-group {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	overflow: hidden;
	border-radius: 14px;
	background-color: var(--secondary-background-color);
}

.ios-row {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 11px 16px;
	color: var(--text-color);
	position: relative;
}

/* Hairline separator, inset to start after the icon like iOS lists */
.ios-group li + li .ios-row::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 58px;
	border-top: 1px solid rgba(60, 60, 67, 0.18);
}

a.ios-row[href] {
	transition: background-color 0.15s ease;
}

a.ios-row[href]:hover,
a.ios-row[href]:active {
	background-color: #e5e5ea;
	text-decoration: none;
}

a.ios-row:focus-visible {
	outline: 2px solid #007aff;
	outline-offset: -2px;
}

.ios-icon {
	display: flex;
	flex: 0 0 30px;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 7px;
	color: #fff;
}

.ios-icon svg {
	width: 19px;
	height: 19px;
}

.ios-icon--blue {
	background-color: #007aff;
}

.ios-icon--green {
	background-color: #34c759;
}

.ios-icon--orange {
	background-color: #ff9500;
}

.ios-icon--gray {
	background-color: #8e8e93;
}

.ios-text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.ios-sub {
	font-size: 13px;
	line-height: 1.35;
	color: var(--text-color-secondary);
}

.ios-value {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text-color-secondary);
}

.ios-chevron {
	flex: 0 0 auto;
	width: 8px;
	height: 14px;
	color: rgba(60, 60, 67, 0.3);
}

.ios-row:not([href]) .ios-chevron {
	display: none;
}

.ios-title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
}

.ios-body {
	padding: 0 16px 14px;
	font-size: 15px;
	line-height: 1.45;
}

.ios-body > :first-child {
	margin-top: 0;
}

.ios-body > :last-child {
	margin-bottom: 0;
}

.ios-body p {
	margin: 0 0 0.6rem;
}

.ios-body ul,
.ios-body ol {
	margin: 0 0 0.6rem;
	padding-left: 1.25rem;
}

.ios-body li {
	margin: 0.35rem 0;
}

.ios-icon--red {
	background-color: #ff3b30;
}

.ios-icon--teal {
	background-color: #30b0c7;
}

.ios-footnote {
	margin: 0.5rem 1rem 0;
	font-size: 13px;
	line-height: 1.35;
	color: var(--text-color-secondary);
}

/* ---------- Footer ---------- */
.site-footer {
	background-color: #fff;
	padding: 1.5rem 1rem;
	border-top: 1px solid var(--card-border);
	margin-top: 4rem;
}

.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.footer-inner h3 {
	margin: 1.3rem 0 0.4rem;
	font-size: 1.3rem;
	color: var(--primary-color);
}

.footer-inner ul {
	list-style: none;
	padding: 0;
	margin: 0.75rem 0 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.75rem;
}

.footer-inner li {
	font-size: 1.05rem;
}

.footer-inner a {
	color: inherit;
	transition: color 0.2s;
}

.footer-inner a:hover {
	color: var(--primary-color);
}

.footer-bottom {
	max-width: 1200px;
	text-align: center;
	margin: 1rem auto 0;
	font-size: 0.85rem;
}

.footer-bottom p {
	margin: 0.3rem 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	main {
		margin: 2.5%;
	}

	.vehicle-grid {
		display: flex;
		flex-direction: column;
		gap: 1rem;
		padding: 0;
	}

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

	.demo-note {
		padding: 0;
	}
}

@media (max-width: 768px) {
	main {
		min-height: calc(100vh - 80px);
	}

	.nav-right > .lang {
		display: none;
	}

	/* The wordmark is too long to share a row with the search field */
	.site-nav {
		flex-wrap: wrap;
		padding: 0.5rem 1rem;
	}

	.nav-left {
		display: contents;
	}

	.logo {
		margin-right: auto;
	}

	.site-nav .search {
		order: 3;
		flex: 0 0 100%;
		max-width: none;
		margin: 0.25rem 0 0.5rem;
	}

	.menu {
		width: 100%;
	}

	.menu ul {
		padding-left: 1rem;
	}

	.search-box {
		height: 3rem;
	}

	.search input {
		font-size: 1.6rem;
		letter-spacing: 2px;
	}

	.search-button {
		min-width: 3rem;
	}

	.search.is-vertical .search-box {
		height: 3.5rem;
	}

	.search.is-vertical input {
		font-size: 2rem;
		letter-spacing: 3px;
	}

	.search.is-vertical .search-button {
		height: 3rem;
		font-size: 1rem;
	}

	.home-hero {
		padding: 2.5rem 0.5rem 2rem;
		margin: -2.5% -2.5% 0;
	}

	.home-title {
		font-size: 2rem;
	}

	.home-subtitle {
		font-size: 1rem;
	}

	.find-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
	}

	.find-list li {
		padding: 0.75rem 0.6rem;
		gap: 0.4rem;
		font-size: 0.85rem;
		overflow-wrap: anywhere;
		hyphens: auto;
	}

	.how-list {
		grid-template-columns: 1fr;
	}

	.ios-head h1 {
		font-size: 28px;
	}
}
