/*
 * justdropped shared site chrome + auth pages, ported from the approved
 * Concept A mockups (docs/mockups/). Loaded after normalize/milligram/cake
 * on every page — Milligram's grid/table/form classes (.row, .column,
 * .button, etc.) still style the baked admin CRUD screens until those get
 * their own dedicated design pass; this file only owns the header/nav/
 * footer chrome plus the new auth + marketing pages.
 */
:root {
	--bg: #F6F7F5;
	--surface: #FFFFFF;
	--ink: #14181A;
	--ink-soft: #55605A;
	--ink-faint: #96A099;
	--line: #DFE1DB;
	--accent: #2A4B7C;
	--accent-soft: #E4EAF1;
	--pending: #8A4B2E;
	--pending-soft: #F1E5DC;
	--redemption: #3C7A72;
	--redemption-soft: #E2EEEC;
	--hold: #6E7A5E;
	--hold-soft: #ECEEE5;
	--radius: 5px;
}

body {
	background: var(--bg);
	color: var(--ink);
	font-family: 'IBM Plex Sans', sans-serif;
	line-height: 1.5;
	font-size: 14.5px;
}
.mono { font-family: 'IBM Plex Mono', monospace; }

/* ---------- Header ---------- */
header.site {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 28px;
	max-width: 1140px;
	margin: 0 auto;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--line);
	background: var(--surface);
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 28px; width: auto; }
nav.site { display: flex; gap: 22px; font-size: 12.5px; font-weight: 500; }
nav.site a { text-decoration: none; color: var(--ink-soft); }
nav.site a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.link-quiet { font-size: 12.5px; font-weight: 500; text-decoration: none; color: var(--ink-soft); }
.link-quiet:hover { color: var(--ink); }
.btn-primary {
	background: var(--ink);
	color: #fff;
	border: none;
	padding: 8px 16px;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 12.5px;
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}
.btn-primary:hover { opacity: 0.92; }
a:focus-visible, button:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

footer.site { text-align: center; font-size: 11.5px; color: var(--ink-faint); padding: 24px 18px 40px; }

/* ---------- Hero ---------- */
.hero { max-width: 1140px; margin: 0 auto; padding: 56px 28px 20px; text-align: center; }
.hero .eyebrow {
	font-size: 11.5px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 600;
	margin-bottom: 10px;
}
.hero h1 {
	font-family: 'Space Grotesk', sans-serif;
	font-size: clamp(28px, 4.2vw, 42px);
	font-weight: 700;
	letter-spacing: -0.015em;
	margin: 0 0 14px;
	line-height: 1.15;
}
.hero p.lead {
	max-width: 620px;
	margin: 0 auto 28px;
	color: var(--ink-soft);
	font-size: 15.5px;
}

.hero-search {
	max-width: 640px;
	margin: 0 auto 14px;
	display: flex;
	gap: 8px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 4px 4px 4px 16px;
	align-items: center;
	box-shadow: 0 10px 24px rgba(20,24,26,0.05);
}
.hero-search input {
	flex: 1;
	border: none;
	outline: none;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13.5px;
	padding: 11px 0;
	background: transparent;
	color: var(--ink);
	min-width: 0;
}
.hero-search input::placeholder { color: var(--ink-faint); }
.hero-search input:disabled { color: var(--ink-faint); cursor: not-allowed; }
.hero-search button, .hero-search a {
	background: var(--accent);
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 12.5px;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	display: inline-block;
}
.hero-note { font-size: 12px; color: var(--ink-faint); margin-bottom: 34px; }

.status-legend { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.status-legend .legend-label {
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-faint);
	font-weight: 600;
	display: flex;
	align-items: center;
	margin-right: 4px;
}
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.pill--pending { background: var(--pending-soft); color: var(--pending); }
.pill--redemption { background: var(--redemption-soft); color: var(--redemption); }
.pill--hold { background: var(--hold-soft); color: var(--hold); }
.pill--new { background: var(--accent-soft); color: var(--accent); }
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------- Sections ---------- */
section.block { max-width: 1140px; margin: 0 auto; padding: 52px 28px; }
.block-head { text-align: center; max-width: 560px; margin: 0 auto 32px; }
.block-head .eyebrow {
	font-size: 11px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--accent);
	font-weight: 600;
	margin-bottom: 8px;
}
.block-head h2 {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 8px;
}
.block-head p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.step .num {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	font-weight: 600;
	color: var(--accent);
	background: var(--accent-soft);
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}
.step h3 { font-size: 14.5px; font-weight: 600; margin: 0 0 6px; }
.step p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.55; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.feature .icon {
	width: 30px;
	height: 30px;
	border-radius: 7px;
	background: var(--accent-soft);
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'IBM Plex Mono', monospace;
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 14px;
}
.feature h3 { font-size: 13.5px; font-weight: 600; margin: 0 0 6px; }
.feature p { margin: 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }

.pricing-note { text-align: center; font-size: 12px; color: var(--ink-faint); font-style: italic; margin: -18px 0 28px; }
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.plan--highlight { border-color: var(--accent); box-shadow: 0 8px 20px rgba(42,75,124,0.08); }
.plan-name { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.plan-price { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.plan-price span { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.plan-desc { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 16px; }
.plan-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-list li { font-size: 13px; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.plan-list li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.plan-cta { display: block; text-align: center; text-decoration: none; border-radius: 4px; font-weight: 600; font-size: 12.5px; padding: 10px 0; }
.plan-cta--ghost { border: 1px solid var(--line); color: var(--ink); }
.plan-cta--ghost:hover { border-color: var(--accent); color: var(--accent); }
.plan-cta--solid { background: var(--accent); color: #fff; }
.plan-cta--solid:hover { opacity: 0.92; }

.cta-band {
	max-width: 1140px;
	margin: 0 auto 40px;
	background: var(--ink);
	color: #E7EAE5;
	border-radius: var(--radius);
	padding: 36px 28px;
	text-align: center;
}
.cta-band h2 { font-family: 'Space Grotesk', sans-serif; font-size: 21px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.cta-band p { margin: 0 0 18px; font-size: 13.5px; color: #B8C0BA; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }

/* ---------- Auth pages (login / signup) ---------- */
.auth-wrap { max-width: 400px; margin: 64px auto; padding: 0 20px; }
.auth-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px 28px;
	box-shadow: 0 10px 24px rgba(20,24,26,0.05);
}
.auth-card h1 {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 21px;
	font-weight: 700;
	margin: 0 0 6px;
	text-align: center;
}
.auth-card .auth-sub {
	text-align: center;
	color: var(--ink-soft);
	font-size: 13px;
	margin: 0 0 24px;
}
.auth-field { margin-bottom: 16px; }
.auth-field label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	margin-bottom: 6px;
}
.auth-field input {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 10px 12px;
	font-size: 13.5px;
	font-family: inherit;
	color: var(--ink);
	background: var(--surface);
	box-sizing: border-box;
}
.auth-field input:focus {
	outline: none;
	border-color: var(--accent);
}
.auth-field .error-message { color: var(--pending); font-size: 12px; margin-top: 4px; }
.auth-submit {
	width: 100%;
	height: auto;
	background: var(--accent);
	color: #fff;
	border: none;
	padding: 11px 0;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 13px;
	line-height: normal;
	font-family: inherit;
	cursor: pointer;
	margin-top: 4px;
}
.auth-submit:hover { opacity: 0.92; }
.auth-foot { text-align: center; font-size: 12.5px; color: var(--ink-soft); margin-top: 20px; }
.auth-foot a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

.flash-message {
	max-width: 1140px;
	margin: 14px auto 0;
	padding: 0 28px;
}
.flash-message .message {
	border-radius: var(--radius);
	padding: 10px 16px;
	font-size: 13px;
	border: none;
}
.flash-message .message.success { background: var(--redemption-soft); color: var(--redemption); }
.flash-message .message.error { background: var(--pending-soft); color: var(--pending); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
	.features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
	header.site { padding: 12px 18px; }
	.hero { padding: 40px 18px 16px; }
	.hero-search { flex-direction: column; padding: 12px; align-items: stretch; }
	.hero-search button { width: 100%; padding: 11px 0; }
	section.block { padding: 40px 18px; }
	.steps { grid-template-columns: 1fr; }
	.features { grid-template-columns: 1fr; }
	.pricing { grid-template-columns: 1fr; }
	.cta-band { margin: 0 18px 32px; padding: 28px 20px; }
}
