/* ------------------------------------------------------------------ *
 * Crown Business Network — pre-launch landing page.
 *
 * Deliberately self-contained: no webfonts, no CDN, no analytics, no
 * third-party anything. Two reasons. It makes the page a single HTTP
 * request plus this file, and it lets privacy.html say truthfully that
 * the page sets no cookies and calls nothing out to anybody.
 *
 * Palette is crown-dark from src/styles/themes.css — the faithful
 * recreation of the client's approved mock-ups (bg #08080c, gold
 * #d09038), so this page and the real site look like one brand. Tokens
 * are copied rather than imported because the app's CSS is bundled by
 * Next.js and nothing here can reach it.
 * ------------------------------------------------------------------ */

:root {
  --bg: #08080c;
  --surface: #101014;
  --surface-raised: #18181d;
  --border: #2a2a30;
  --text: #ffffff;
  --muted: #b8b8bd;
  --gold: #d09038;
  --gold-hover: #e0a44a;
  --on-gold: #08080c;

  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --measure: 68ch;
  --gutter: 1.25rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}
h3 {
  font-size: 1.1875rem;
}

p,
ul,
ol {
  margin: 0 0 1.15em;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--gold-hover);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--prose {
  max-width: var(--measure);
}

/* --- skip link ---------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  background: var(--gold);
  color: var(--on-gold);
  border-radius: 4px;
}

/* --- header ------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem var(--gutter);
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
}

.mark {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

/* --- hero --------------------------------------------------------- */

.hero {
  padding: clamp(3rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 2.4vw, 1.3rem);
  color: var(--gold);
  margin: 0 0 1.5rem;
}

.lede {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--muted);
  max-width: var(--measure);
}

/* --- generic sections --------------------------------------------- */

.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--border);
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.35rem;
}

.card h3 {
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.note {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1rem 1.15rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.note p:last-child {
  margin-bottom: 0;
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
}

/* --- footer ------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer address {
  font-style: normal;
}

.footer p:last-child {
  margin-bottom: 0;
}

/* --- legal pages -------------------------------------------------- */

.doc {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.doc h2 {
  margin-top: 2.25rem;
  font-size: 1.3125rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 0.4em;
}

.meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.back {
  margin-top: 2.5rem;
  font-size: 0.9375rem;
}

/* --- 404 ---------------------------------------------------------- */

.notfound {
  padding: clamp(4rem, 12vw, 8rem) 0;
  text-align: center;
}
