/* The public offer page of Aura Shield. Same look as the seller's admin page (../admin.css) and the game's start
   banner: dark blue banner, the crest standing out of it, the crest's blues, gold for the one thing that matters
   most (here: the price). No scripts and no outside requests; fonts are the system's own on purpose. This folder
   is complete on its own (index.html, site.css, logo.svg) and can be put on any plain web host. */
:root {
	/* the crest */
	--brand-blue-light: #3a7de0;
	--brand-blue: #1a5fb4;
	--brand-blue-deep: #123f7a;
	--brand-aura: #7fb2ff;
	--brand-gold: #ffd76a;
	--brand-gold-deep: #b8860b;
	/* the banner */
	--banner-top: #16305f;
	--banner-bottom: #0a1a3a;
	--banner-line: rgb(127 178 255 / 55%);
	--banner-text: #ffffff;
	--banner-text-soft: #a9c8f5;

	--color-page: #eef2f8;
	--color-surface: #ffffff;
	--color-ink: #0c1b3a;
	--color-ink-soft: #46557a;
	--color-line: #d0daec;
	--color-line-strong: #a9b9d6;
	--color-warn: #7d4700;
	--color-warn-soft: #fff3d6;
	--font-text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-code: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-section: clamp(56px, 8vw, 104px);
	--radius-small: 6px;
	--radius-large: 12px;
	--shadow-card: 0 1px 2px rgb(12 27 58 / 7%), 0 10px 26px -14px rgb(12 27 58 / 28%);
	--shadow-banner: 0 12px 30px -16px rgb(10 26 58 / 75%);
	--control-height: 44px;
	--bar-height: 60px;
	--head-width: 260px;
	--page-width: 1120px;
	--gutter: clamp(16px, 4vw, 32px);
	--duration: 160ms;
}

* { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--bar-height) + var(--space-4)); }

body {
	margin: 0;
	background: var(--color-page);
	color: var(--color-ink);
	font: 17px/1.6 var(--font-text);
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--brand-blue); }

:focus-visible { outline: 3px solid var(--brand-blue-light); outline-offset: 2px; border-radius: var(--radius-small); }

.skip { position: absolute; left: var(--space-4); top: -60px; z-index: 30; background: var(--color-surface); padding: var(--space-2) var(--space-4); }
.skip:focus { top: var(--space-2); }

/* ---- the bar that stays on top ---- */
.top {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--banner-bottom);
	border-bottom: 1px solid var(--banner-line);
	color: var(--banner-text);
}
.top-inner {
	display: flex;
	align-items: center;
	gap: var(--space-5);
	max-width: var(--page-width);
	min-height: var(--bar-height);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; gap: var(--space-2); min-height: var(--control-height); color: inherit; text-decoration: none; }
.brand-crest { width: 44px; height: 44px; }
.brand-name { font-size: 1.125rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.top nav { display: flex; margin-left: auto; align-self: stretch; }
.top nav a {
	display: flex;
	align-items: center;
	min-height: var(--control-height);
	padding: 0 var(--space-3);
	color: var(--banner-text-soft);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	border-top: 3px solid transparent;
	border-bottom: 3px solid transparent;
	transition: color var(--duration) ease-out, border-color var(--duration) ease-out;
}
.top nav a:hover { color: var(--banner-text); border-bottom-color: var(--brand-gold); }
.top nav a:active { color: var(--brand-gold); }
.top :focus-visible, .hero :focus-visible, .price :focus-visible, .foot :focus-visible { outline-color: var(--brand-gold); }

/* ---- the banner: the crest is larger than the banner and stands out of its lower edge ---- */
.hero {
	position: relative;
	z-index: 1;
	background: linear-gradient(180deg, var(--banner-bottom), var(--banner-top));
	border-bottom: 1px solid var(--banner-line);
	box-shadow: var(--shadow-banner);
	color: var(--banner-text);
}
.hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: var(--space-7);
	align-items: end;
	max-width: var(--page-width);
	margin: 0 auto;
	padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(40px, 6vw, 72px);
}
.hero-inner::before {
	content: "";
	position: absolute;
	right: calc(var(--gutter) - 130px);
	bottom: -190px;
	width: 560px;
	height: 560px;
	background: radial-gradient(closest-side, rgb(127 178 255 / 30%), rgb(127 178 255 / 0%));
	pointer-events: none;
}
.hero-words { position: relative; display: grid; gap: var(--space-4); justify-items: start; }
.hero-kicker { color: var(--brand-aura); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.125rem, 1.2rem + 3.6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 14ch; }
.hero-lead { color: var(--banner-text-soft); font-size: 1.125rem; max-width: 52ch; }
.hero-line { position: relative; width: min(100%, 420px); height: 3px; margin: var(--space-2) 0; border-radius: 2px; background: linear-gradient(90deg, var(--brand-blue-light) 0 62%, rgb(255 255 255 / 18%) 62%); }
.hero-line::after { content: ""; position: absolute; left: 62%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--brand-gold); }
.hero-actions { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.hero-price { color: var(--banner-text-soft); }
.hero-price-value { color: var(--brand-gold); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-right: var(--space-1); }
.hero-crest { position: relative; width: 300px; height: 300px; margin-bottom: calc(-1 * clamp(40px, 6vw, 72px) - 64px); filter: drop-shadow(0 14px 22px rgb(4 12 30 / 55%)); }

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 var(--space-5);
	border: 1px solid var(--brand-blue-deep);
	border-radius: var(--radius-small);
	font: 700 1rem/1 var(--font-text);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background var(--duration) ease-out, box-shadow var(--duration) ease-out, transform var(--duration) ease-out;
}
.button-main { background: linear-gradient(180deg, #4a8ae6, var(--brand-blue)); border-color: var(--brand-aura); color: #ffffff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%), 0 6px 16px -8px rgb(58 125 224 / 90%); }
.button-main:hover { background: linear-gradient(180deg, var(--brand-blue-light), var(--brand-blue-deep)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%), 0 0 0 3px rgb(127 178 255 / 28%); }
.button-main:active { background: var(--brand-blue-deep); box-shadow: none; transform: translateY(1px); }
.button-ghost { background: rgb(255 255 255 / 6%); border-color: var(--banner-line); color: var(--banner-text); }
.button-ghost:hover { background: rgb(127 178 255 / 20%); border-color: var(--brand-aura); }
.button-ghost:active { background: rgb(127 178 255 / 30%); transform: translateY(1px); }

/* ---- sections: the title stands in its own column on the left ---- */
main { max-width: var(--page-width); margin: 0 auto; padding: 0 var(--gutter) var(--space-section); }
.section {
	display: grid;
	grid-template-columns: var(--head-width) minmax(0, 1fr);
	gap: var(--space-5) var(--space-7);
	align-items: start;
	padding-top: var(--space-section);
}
.section-head { position: sticky; top: calc(var(--bar-height) + var(--space-5)); display: grid; gap: var(--space-2); }
.section-head h2 { font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.01em; }
.section-head h2::before { content: ""; display: block; width: 40px; height: 3px; margin-bottom: var(--space-3); border-radius: 2px; background: var(--brand-blue); }
.section-head p { color: var(--color-ink-soft); font-size: 0.9375rem; }
.section > :nth-child(n + 3) { grid-column: 2; }
/* the first section sits beside the crest that hangs out of the banner */
#offer .section-head { padding-right: 0; }

/* ---- what you get: lines, not boxes ---- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-6); }
.feature { padding: var(--space-4) 0 var(--space-5); border-top: 1px solid var(--color-line-strong); }
.feature dt { font-weight: 700; font-size: 1.0625rem; margin-bottom: var(--space-1); }
.feature dd { color: var(--color-ink-soft); font-size: 0.9375rem; }
.feature-wide { grid-column: 1 / -1; border-top: 3px solid var(--brand-blue); }
.feature-wide dt { font-size: 1.375rem; line-height: 1.25; }
.feature-wide dd { font-size: 1.0625rem; max-width: 60ch; }
/* an add-on: a card with the gold of the crest on its edge, set off from the plain list above */
.addon { display: grid; gap: var(--space-2); padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-line); border-left: 4px solid var(--brand-gold-deep); border-radius: var(--radius-large); box-shadow: var(--shadow-card); }
.addon-kicker { color: var(--brand-gold-deep); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.addon h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); font-size: 1.375rem; line-height: 1.25; }
.addon-price { color: var(--brand-blue); font-size: 1rem; font-weight: 700; white-space: nowrap; }
.addon-lead { color: var(--color-ink-soft); max-width: 60ch; }
.addon-list { display: grid; gap: var(--space-1); margin-top: var(--space-1); color: var(--color-ink-soft); font-size: 0.9375rem; }
.addon-list li { position: relative; padding-left: var(--space-5); }
.addon-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-blue); }
.addon-note { color: var(--color-ink-soft); font-size: 0.875rem; }
/* pictures of the add-on: two side by side, the wide ones across */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-3); }
.shot { margin: 0; display: grid; gap: var(--space-2); align-content: start; }
.shot-wide { grid-column: 1 / -1; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--color-line-strong); border-radius: var(--radius-small); background: var(--banner-bottom); }
.shot-plain img { width: auto; max-width: min(100%, 648px); background: var(--color-page); }
.shot figcaption { color: var(--color-ink-soft); font-size: 0.875rem; }

/* ---- how ordering works: the banner's progress line with a stop for every step ---- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.steps li { counter-increment: step; position: relative; padding-top: 60px; }
.steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(180deg, var(--banner-top), var(--banner-bottom));
	box-shadow: 0 0 0 4px var(--color-page), var(--shadow-card);
	color: var(--brand-gold);
	font-weight: 700;
	font-size: 1.125rem;
	font-variant-numeric: tabular-nums;
}
.steps li::after { content: ""; position: absolute; left: 44px; right: calc(-1 * var(--space-5)); top: 21px; height: 3px; background: var(--brand-blue-light); }
.steps li:last-child::after { right: 40%; background: linear-gradient(90deg, var(--brand-blue-light), rgb(58 125 224 / 0%)); }
.steps h3 { font-size: 1.0625rem; line-height: 1.3; margin-bottom: var(--space-1); }
.steps p { color: var(--color-ink-soft); font-size: 0.9375rem; }

/* ---- price: a piece of the banner ---- */
.price {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--space-5) var(--space-7);
	align-items: center;
	padding: var(--space-6);
	background: linear-gradient(180deg, var(--banner-top), var(--banner-bottom));
	border: 1px solid var(--banner-line);
	border-radius: var(--radius-large);
	box-shadow: var(--shadow-banner);
	color: var(--banner-text);
}
.price::before { content: ""; position: absolute; left: -90px; top: -110px; width: 340px; height: 340px; background: radial-gradient(closest-side, rgb(127 178 255 / 30%), rgb(127 178 255 / 0%)); pointer-events: none; }
.price-main { position: relative; display: flex; align-items: center; gap: var(--space-4); }
.price-value { color: var(--brand-gold); font-size: clamp(4rem, 3rem + 5vw, 6rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-unit { display: grid; color: var(--banner-text-soft); line-height: 1.3; }
.price-unit strong { color: var(--banner-text); font-size: 1.25rem; }
.price-list { position: relative; display: grid; gap: var(--space-2); padding-left: var(--space-6); border-left: 1px solid var(--banner-line); color: var(--banner-text-soft); font-size: 0.9375rem; }
.price-list li { position: relative; padding-left: var(--space-5); }
.price-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-gold); }

/* ---- version ---- */
.version { display: grid; background: var(--color-surface); border: 1px solid var(--color-line); border-top: 3px solid var(--brand-blue); border-radius: var(--radius-large); box-shadow: var(--shadow-card); }
.version-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); margin: 0; padding: var(--space-5); border-bottom: 1px solid var(--color-line); }
.version-label { color: var(--color-ink-soft); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.version-build { color: var(--brand-blue); font-size: 1.75rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.version-date { color: var(--color-ink-soft); font-size: 0.9375rem; }
.releases { display: grid; margin: 0; padding: 0; list-style: none; }
.releases > li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-2) var(--space-5); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-line); }
.release-head { display: grid; gap: 2px; margin: 0; }
.release-head strong { color: var(--color-ink); font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.release-head time { color: var(--color-ink-soft); font-size: 0.875rem; }
.releases ul { display: grid; gap: var(--space-1); margin: 0; padding-left: 1.1em; color: var(--color-ink-soft); font-size: 0.9375rem; }
.version-note { margin: 0; padding: var(--space-4) var(--space-5); color: var(--color-ink-soft); font-size: 0.875rem; }

/* ---- requirements ---- */
.needs { display: grid; background: var(--color-surface); border: 1px solid var(--color-line); border-top: 3px solid var(--brand-blue); border-radius: var(--radius-large); box-shadow: var(--shadow-card); }
.needs li { position: relative; padding: var(--space-4) var(--space-5) var(--space-4) 56px; border-bottom: 1px solid var(--color-line); color: var(--color-ink-soft); font-size: 0.9375rem; }
.needs li:last-child { border-bottom: 0; }
.needs li::before { content: ""; position: absolute; left: var(--space-5); top: 1.5em; width: 12px; height: 12px; border: 3px solid var(--brand-blue); border-radius: 3px; transform: rotate(45deg); }
.needs strong { display: block; color: var(--color-ink); font-size: 1.0625rem; }

/* ---- rules ---- */
.rules { counter-reset: rule; display: grid; }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--space-4); padding: var(--space-4) 0 var(--space-5); border-top: 1px solid var(--color-line-strong); }
.rules li::before { content: counter(rule, decimal-leading-zero); grid-row: 1 / span 2; color: var(--brand-blue); font-size: 2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rules h3 { font-size: 1.0625rem; line-height: 1.4; }
.rules p { color: var(--color-ink-soft); font-size: 0.9375rem; max-width: 68ch; }

/* ---- contact ---- */
.contact { display: grid; gap: var(--space-2); padding: var(--space-5); background: var(--color-surface); border: 1px dashed var(--color-line-strong); border-left: 4px solid var(--brand-gold-deep); border-radius: var(--radius-large); color: var(--color-ink-soft); font-size: 0.9375rem; }
.contact-main { color: var(--color-ink); font-size: 1.25rem; font-weight: 700; line-height: 1.3; }

/* ---- foot ---- */
.foot { background: var(--banner-bottom); border-top: 1px solid var(--banner-line); color: var(--banner-text-soft); font-size: 0.875rem; }
.foot-inner { display: flex; align-items: center; gap: var(--space-3); max-width: var(--page-width); margin: 0 auto; padding: var(--space-5) var(--gutter); }
.foot a { display: inline-flex; align-items: center; min-height: var(--control-height); margin-left: auto; color: var(--banner-text); font-weight: 600; white-space: nowrap; }

@media (max-width: 960px) {
	.section { grid-template-columns: 1fr; gap: var(--space-5); }
	.section-head { position: static; }
	.section > :nth-child(n + 3) { grid-column: 1; }
	.hero-inner { grid-template-columns: minmax(0, 1fr) 200px; gap: var(--space-5); }
	.hero-crest { width: 200px; height: 200px; }
	.hero-inner::before { width: 400px; height: 400px; right: calc(var(--gutter) - 100px); bottom: -150px; }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-6); }
	.steps li:nth-child(2)::after { right: 40%; background: linear-gradient(90deg, var(--brand-blue-light), rgb(58 125 224 / 0%)); }
	/* the links move under the name and can be pushed sideways; the page itself never scrolls sideways */
	.top-inner { flex-wrap: wrap; gap: 0; }
	.top nav { width: 100%; margin: 0 calc(-1 * var(--space-3)); overflow-x: auto; scrollbar-width: none; }
	html { scroll-padding-top: 120px; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.hero-inner { grid-template-columns: 1fr; padding-bottom: var(--space-6); }
	.hero-crest { order: -1; width: 132px; height: 132px; margin: -8px 0 -8px -14px; }
	.hero-inner::before { left: -110px; right: auto; top: -40px; bottom: auto; width: 340px; height: 340px; }
	.hero-actions { gap: var(--space-3) var(--space-5); }
	.features { grid-template-columns: 1fr; }
	.shots { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; row-gap: var(--space-5); }
	.steps li { padding: 0 0 0 64px; min-height: 44px; }
	.steps li::after, .steps li:nth-child(2)::after, .steps li:last-child::after { left: 20px; right: auto; top: 44px; bottom: calc(-1 * var(--space-5)); width: 3px; height: auto; background: var(--brand-blue-light); }
	.steps li:last-child::after { content: none; }
	.price { grid-template-columns: 1fr; padding: var(--space-5); }
	.price-list { padding: var(--space-4) 0 0; border-left: 0; border-top: 1px solid var(--banner-line); }
	.releases > li { grid-template-columns: minmax(0, 1fr); padding-left: var(--space-4); padding-right: var(--space-4); }
	.version-now, .version-note { padding-left: var(--space-4); padding-right: var(--space-4); }
	.needs li { padding-left: 48px; padding-right: var(--space-4); }
	.needs li::before { left: var(--space-4); }
	.rules li { grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--space-3); }
	.rules li::before { font-size: 1.5rem; line-height: 1.3; }
	.foot-inner { flex-wrap: wrap; }
	.foot a { margin-left: 0; }
}

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

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
