/* Maple Elegance Media Inc. — corporate site
   Design tokens per the approved handoff (Archivo / IBM Plex, green accent). */

:root {
  --dark: #14120F;
  --dark-raised: #1C1A16;
  --light: #F5F2EA;

  --ink: #1C1A16;
  --ink-strong: #2A2724;
  --ink-2: #4A4638;
  --ink-3: #6B6656;
  --ink-4: #8A8571;

  --on-dark: #F5F2EA;
  --on-dark-1: #E8E4D8;
  --on-dark-2: #C7C2B5;
  --on-dark-3: #A8A392;
  --on-dark-4: #97927F;
  --on-dark-5: #8C8879;
  --on-dark-6: #6A6759;

  --accent: #7FA968;
  --accent-hover: #4A7A38;

  /* Hush keeps its own warm palette inside its card, on purpose. */
  --hush-cream: #FBF7F0;
  --hush-terracotta: #8C5A3B;
  --hush-blush: #E4B896;
  --hush-blush-ink: #6B4A32;

  --border-light: #E7E1D4;
  --border-dark: #2E2B24;
  --field-border: #3A362D;

  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --pad-x: 48px;
  --radius: 6px;
  --radius-sm: 3px;
}

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

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

body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--ink); }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--dark);
  font-weight: 600;
  padding: 12px 18px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 18, 14, 0.96);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--pad-x);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  flex: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a { color: var(--on-dark-1); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }

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

.section {
  padding: 76px var(--pad-x) 84px;
  display: flex;
  justify-content: center;
}
.section--dark { background: var(--dark); }
.section--tight-top { padding-top: 16px; }
.section--flush-top { padding-top: 0; }
.section--tight-bottom { padding-bottom: 30px; }
.section--card-gap { padding-bottom: 32px; }

.inner { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.inner--560 { max-width: 560px; }
.inner--640 { max-width: 640px; }
.inner--700 { max-width: 700px; }
.inner--720 { max-width: 720px; }
.inner--860 { max-width: 860px; }

/* Only the inner wrapper animates — never the full-bleed background,
   or the dark bands flash blank mid-transition. */
.reveal {
  width: 100%;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

html { scroll-behavior: smooth; }
:target { scroll-margin-top: 84px; }

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.section--dark .eyebrow { color: var(--on-dark-6); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.h1 {
  font-size: clamp(30px, 6.2vw, 46px);
  line-height: 1.2;
  max-width: 720px;
  color: var(--on-dark);
}
.h2 { font-size: clamp(23px, 3.4vw, 28px); }
.h2--sm { font-size: clamp(22px, 3.2vw, 26px); }
.h2--lg { font-size: clamp(24px, 3.8vw, 30px); }
.h2--xs { font-size: clamp(21px, 3vw, 24px); }
.section--dark .h2 { color: var(--on-dark); }

p { margin: 0; }
.lead { font-size: 16px; line-height: 1.75; color: var(--on-dark-2); max-width: 620px; }
.lead-2 { font-size: 14.5px; line-height: 1.7; color: var(--on-dark-4); max-width: 580px; }
.body { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.body-sm { font-size: 14.5px; line-height: 1.7; color: var(--ink-3); max-width: 560px; }
.body-xs { font-size: 13.5px; line-height: 1.7; color: var(--ink-3); }
.section--dark .body { color: var(--on-dark-3); }
.section--dark .body-sm { color: var(--on-dark-4); }
.section--dark .body-xs { color: var(--on-dark-4); }

.stat-line {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--on-dark-6);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 800px;
}

/* ---------- buttons ---------- */

.actions { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; align-items: center; }

.btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-block;
  line-height: 1.2;
}
.btn--primary { background: var(--accent); color: var(--dark); }
.btn--primary:hover { background: #8FBA76; color: var(--dark); }
.btn--ghost { border-color: #4A473E; color: var(--on-dark-1); padding: 12px 21px; }
.btn--ghost:hover { border-color: var(--accent); color: var(--on-dark); }
.btn--plain { font-weight: 500; color: var(--on-dark-4); padding: 12px 8px; }
.btn--plain:hover { color: var(--accent); }

.link-accent {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.link-accent:hover { color: #9CC086; text-decoration: underline; }
.link-row { display: flex; gap: 20px; margin-top: 6px; flex-wrap: wrap; }

/* ---------- two-column list ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 6px;
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
}
.split-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--on-dark-1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.split-title--muted { color: var(--on-dark-6); }
.split ul { margin: 0; padding-left: 16px; font-size: 14px; line-height: 1.8; color: var(--on-dark-3); }

/* ---------- product cards ---------- */

.card-hush {
  max-width: 860px;
  width: 100%;
  background: var(--hush-cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-hush__body { padding: 40px 44px 8px; display: flex; flex-direction: column; gap: 14px; }
.card-hush__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.card-hush__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hush-terracotta);
}
.card-hush__logo { height: 24px; width: auto; object-fit: contain; display: block; }
.card-hush h3 { font-size: clamp(20px, 3vw, 24px); color: var(--ink-strong); }
.card-hush__desc { font-size: 15px; line-height: 1.7; color: #4A453D; max-width: 560px; }
.card-hush__note { font-size: 13.5px; line-height: 1.7; color: #8A8175; max-width: 560px; }
.card-hush__cover {
  width: 100%;
  height: auto;
  display: block;
  border-top: 1px solid var(--border-light);
}

.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hush-blush-ink);
  background: var(--hush-blush);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}

.link-hush {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hush-terracotta);
  text-decoration: none;
}
.link-hush:hover { color: var(--ink-strong); text-decoration: underline; }

.card-plain {
  max-width: 860px;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-plain h3 { font-size: 19px; }
.card-plain p { font-size: 14px; line-height: 1.7; color: var(--ink-2); max-width: 600px; }
.card-plain__status { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); margin-top: 2px; }

.rule-note {
  max-width: 860px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* ---------- numbered steps ---------- */

.steps { display: flex; flex-direction: column; }
.step {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-dark);
}
.step:last-child { border-bottom: 0; }
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); min-width: 24px; }
.step p { font-size: 14.5px; line-height: 1.7; color: var(--on-dark-1); }

.checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  margin-top: 4px;
}
.checklist ul { margin: 0; padding-left: 16px; font-size: 14px; line-height: 1.8; color: var(--on-dark-3); }

.ordered { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.9; color: var(--on-dark-1); }

/* ---------- who-for grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.grid-3 > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border-right: 1px solid var(--border-light);
}
.grid-3 > div:last-child { border-right: 0; }
.grid-3 h3 { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; }
.grid-3 p { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }

/* ---------- investors ---------- */

.block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}
.block__title { font-size: 13px; font-weight: 600; color: var(--ink-strong); }
.block p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.block ol { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.85; color: var(--ink-strong); }
.block--risks p { font-size: 14px; }

.lede-strong { font-size: 15.5px; line-height: 1.7; color: var(--ink-strong); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
thead tr { border-bottom: 1px solid var(--border-light); }
th {
  text-align: left;
  padding: 9px 10px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
tbody tr { border-bottom: 1px solid var(--border-light); }
tbody tr:last-child { border-bottom: 0; }
td { padding: 11px 10px; color: var(--ink-2); }
td:first-child { font-weight: 600; color: var(--ink); }
td.muted { color: var(--ink-4); }

/* ---------- contact ---------- */

.contact-card {
  max-width: 560px;
  width: 100%;
  background: var(--dark-raised);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card .h2 { color: var(--on-dark); }
.contact-intro { font-size: 13.5px; line-height: 1.6; color: var(--on-dark-4); }
.contact-alt { font-size: 13px; line-height: 1.6; color: #7A7666; }
.contact-alt a { color: var(--on-dark-3); }

.form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-6);
}

.form input,
.form select,
.form textarea {
  font-family: var(--font-body);
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  font-size: 14px;
  background: var(--dark);
  color: var(--on-dark);
  width: 100%;
}
.form textarea { resize: vertical; min-height: 96px; }
.form input::placeholder, .form textarea::placeholder { color: #6A6759; }
.form select { appearance: none; -webkit-appearance: none; background-image: none; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #4A473E; }

.form :is(input, select, textarea)[aria-invalid="true"] { border-color: #C4744F; }

/* Honeypot — hidden from people, reachable by naive bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit { width: fit-content; }
.submit[disabled] { opacity: 0.6; cursor: progress; }

.form-status {
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 2px;
  display: none;
}
.form-status.is-shown { display: block; }
.form-status--ok { color: var(--accent); }
.form-status--err { color: #E0A07E; }

.contact-foot {
  margin-top: 8px;
  font-size: 12px;
  color: var(--on-dark-6);
  border-top: 1px solid var(--border-dark);
  padding-top: 16px;
}

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

.site-footer {
  background: var(--dark);
  padding: 30px var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: var(--on-dark-6);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-name {
  color: var(--on-dark-1);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 13.5px;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--on-dark-5); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.site-footer a { color: var(--on-dark-5); }

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

.legal-page { background: var(--hush-cream); min-height: 100vh; }
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px var(--pad-x);
  border-bottom: 1px solid var(--border-light);
  background: var(--hush-cream);
}
.legal-header .brand-name { color: var(--ink); }
.legal-header .brand-mark { background: var(--hush-terracotta); }
.legal-back { font-size: 13.5px; color: var(--hush-terracotta); text-decoration: none; white-space: nowrap; }
.legal-back:hover { color: var(--ink-strong); }

.legal-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px var(--pad-x) 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal-body h1 { font-size: clamp(26px, 5vw, 34px); }
.legal-body h2 { font-size: 17px; margin-top: 20px; }
.legal-body p { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.legal-body ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.legal-updated { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-4); }
.legal-body a { color: var(--hush-terracotta); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  :root { --pad-x: 28px; }
  .card-hush__body { padding: 32px 28px 8px; }
  .card-plain { padding: 28px 26px; }
  .contact-card { padding: 30px 26px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 > div { border-right: 0; border-bottom: 1px solid var(--border-light); }
  .grid-3 > div:last-child { border-bottom: 0; }
}

@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px var(--pad-x) 12px;
  }
  .site-nav {
    gap: 20px;
    font-size: 12.5px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  :target { scroll-margin-top: 110px; }
  .split { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 56px var(--pad-x) 60px; }
  .section--tight-top { padding-top: 16px; }
  .section--flush-top { padding-top: 0; }
  .section--tight-bottom { padding-bottom: 24px; }
  .section--card-gap { padding-bottom: 24px; }
  .legal-body { padding: 40px var(--pad-x) 72px; }
}

@media (max-width: 420px) {
  :root { --pad-x: 20px; }
  .actions .btn { width: 100%; text-align: center; }
  .actions .btn--plain { text-align: left; }
}

/* ---------- spacing utilities ----------
   These exist so no page needs an inline style attribute, which lets the
   site ship a CSP without style-src 'unsafe-inline'. */

.section--hero { padding-top: 96px; }
.section--contact { padding-bottom: 100px; }

.gap-6  { gap: 6px; }
.gap-12 { gap: 12px; }
.gap-14 { gap: 14px; }
.gap-20 { gap: 20px; }
.gap-22 { gap: 22px; }

.link-row--card { margin: 4px 0 8px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .section--hero { padding-top: 64px; }
  .section--contact { padding-bottom: 72px; }
}
