:root {
  --brand: #0e1631;
  --brand-rgb: 14, 22, 49;
  --ink: #151827;
  --muted: #667085;
  --line: #e7e9ef;
  --soft: #f6f7f9;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(14, 22, 49, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.5;
}

a { color: inherit; }
button, a.button { font-family: inherit; }

.app-shell { min-height: 100vh; }
.private-home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: radial-gradient(circle at top left, rgba(var(--brand-rgb), .16), transparent 34%), var(--soft);
}
.private-card {
  width: min(680px, 100%);
  padding: 42px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.05em; margin-bottom: 18px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 14px; }
h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: 10px; }
p { color: var(--muted); font-size: 1.04rem; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}
.logo {
  max-width: 360px;
  max-height: 75px;
  object-fit: contain;
  display: block;
}
.header-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}
.hero {
  background: linear-gradient(135deg, var(--brand), #1b2447);
  color: var(--white);
  padding: clamp(60px, 10vw, 110px) 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .75fr);
  gap: 48px;
  align-items: center;
}
.hero p, .hero .eyebrow { color: rgba(255,255,255,.82); }
.hero h1 { color: var(--white); max-width: 860px; }
.hero-copy { max-width: 730px; }
.hero-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px);
}
.hero-card p { margin-bottom: 0; }

.section { padding: clamp(44px, 7vw, 76px) 0; }
.section-title { max-width: 740px; margin-bottom: 28px; }
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.resource-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .16), rgba(var(--brand-rgb), .03));
}
.resource-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), .08);
  color: var(--brand);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.resource-body p { font-size: .98rem; margin-bottom: 22px; }
.button {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  border: 1px solid var(--brand);
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(var(--brand-rgb), .2); }
.button.secondary { background: var(--white); color: var(--brand); }

.resource-landing {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}
.resource-image-wrap {
  background: var(--white);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.resource-image-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  display: block;
}
.download-panel {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow);
}
.download-panel .button { margin-top: 12px; }
.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}
.related { margin-top: 50px; }
.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.footer {
  background: var(--brand);
  color: var(--white);
  padding: 34px 0;
}
.footer p { color: rgba(255,255,255,.78); margin: 0; font-size: .94rem; }
.footer a { color: var(--white); }

.status {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: 40px;
}
.status-card {
  width: min(760px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 34px;
}
pre.debug {
  white-space: pre-wrap;
  background: #101828;
  color: #d0d5dd;
  padding: 18px;
  border-radius: 12px;
  overflow: auto;
  font-size: .85rem;
}

@media (max-width: 900px) {
  .hero-grid, .resource-landing { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .resource-grid, .related-grid { grid-template-columns: 1fr; }
  .private-card { padding: 28px; }
  .logo { max-width: 280px; }
}


/* v1.1 refinements: logo placement and header CTA */
.header-inner-simple {
  justify-content: flex-end;
  min-height: 68px;
}
.header-home {
  margin-right: auto;
  color: var(--brand);
  text-decoration: none;
  font-weight: 800;
}
.hero-logo {
  display: block;
  width: min(340px, 80vw);
  max-height: 90px;
  object-fit: contain;
  margin: 0 0 34px;
}
.hero .hero-logo + .eyebrow {
  margin-top: 0;
}

/* v1.2 reusable header/footer refinements */
.header-inner-simple {
  justify-content: flex-end;
  min-height: 64px;
}
.header-inner-simple span { display: block; }
.header-link {
  font-size: 1rem;
  font-weight: 900;
}
.hero-logo {
  display: block;
  width: min(620px, 100%);
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  margin: 0 0 38px;
}
.hero-copy .hero-logo + .eyebrow {
  margin-top: 0;
}
.footer {
  padding: clamp(44px, 7vw, 70px) 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}
.footer-contact {
  max-width: 560px;
}
.footer h2 {
  color: var(--white);
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.footer-block {
  margin-bottom: 24px;
}
.footer-block p,
.footer-line {
  color: rgba(255,255,255,.88);
  margin: 0 0 6px;
  font-size: 1rem;
}
.footer-line {
  margin-bottom: 18px;
}
.footer-line a {
  color: rgba(255,255,255,.92);
  text-decoration: none;
}
.footer-dealer {
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: 22px;
  margin-top: 26px;
  color: rgba(255,255,255,.88);
  font-size: 1rem;
}
.footer-privacy {
  display: inline-flex;
  margin-top: 18px;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 800;
}
@media (max-width: 640px) {
  .hero-logo { width: min(430px, 100%); margin-bottom: 28px; }
}
