/* hodgate.com — the public page, on UI v04.

   A static file served by Caddy, so there is no build and nothing to restart:
   a deploy's `git pull` is the whole release. The console's navy is its accent,
   because this page speaks for the company rather than for either app.

   Canonical values live in packages/design (`APP_LIGHT`, `APP_DARK`,
   `CONSOLE_ACCENT`); packages/design/test fails if this file drifts from them.
   Yellow is the mark's and nothing else's, and the accent fills one button. */

:root {
  --ground: #f4f3ef;
  --surface: #ffffff;
  --surface-raised: #edece7;
  --divider: #edece7;
  --text-primary: #161714;
  --text-secondary: #5f5d55;
  --text-tertiary: #8a877c;
  --mark-yellow: #d7be0a;
  --mark-cell: #161714;

  --accent-fill: #16466a;
  --accent-text: #16466a;
  --accent-tint: #e3ecf3;
  --on-accent: #ffffff;

  --link: var(--accent-text);

  /* The web's six roles, on the portal's numbers — this is read on a phone as
     often as at a desk — plus one the apps have no use for: a page headline. */
  --size-title: 30px;
  --size-section: 21px;
  --size-body: 17px;
  --size-label: 13px;
  --size-data: 15px;
  --size-money: 34px;
  --size-display: 44px;

  --radius-card: 16px;
  --radius-control: 12px;

  --touch: 48px;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light dark;
}

/* Dark follows the device. There is no switch here, so one block. */
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0e0f0e;
    --surface: #1a1b19;
    --surface-raised: #2e2f2b;
    --divider: #262724;
    --text-primary: #f4f3ef;
    --text-secondary: #a3a196;
    --text-tertiary: #75736a;
    --mark-cell: transparent;
    --accent-fill: #2e5f86;
    --accent-text: #7fb3d9;
    --accent-tint: #1c2a36;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ground);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: var(--size-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: var(--size-section);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}

/* The mark: squares, never rounded. The only rules that name the yellow. */
.mark {
  display: block;
  flex: 0 0 auto;
}
.mark .on {
  fill: var(--mark-yellow);
}
.mark .off {
  fill: var(--mark-cell);
}

.top-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-size: var(--size-data);
  font-weight: 500;
}

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

/* Vertical padding only: the side gutter is .wrap's. */
.hero {
  padding-top: 56px;
  padding-bottom: 64px;
}

h1 {
  font-size: var(--size-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 17em;
}

.lede {
  font-size: var(--size-section);
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 32px;
  max-width: 34em;
}

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

/* The page's one filled button. */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0 24px;
  border-radius: var(--radius-control);
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: 600;
}
.btn-primary:hover {
  text-decoration: none;
}

.actions a:not(.btn-primary) {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-weight: 500;
}

/* --- the two audiences ---------------------------------------------------- */

.audiences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 64px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 32px;
}

.eyebrow {
  font-size: var(--size-label);
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

h2 {
  font-size: var(--size-title);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
}
.points li {
  padding: 14px 0;
  border-top: 1px solid var(--divider);
}
.points li:first-child {
  border-top: 0;
  padding-top: 0;
}
.points strong {
  display: block;
  font-weight: 600;
}
.points span {
  color: var(--text-secondary);
}

.note {
  margin: 20px 0 0;
  font-size: var(--size-data);
  color: var(--text-secondary);
}

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

.contact {
  padding-bottom: 72px;
}
.contact h2 {
  margin-bottom: 8px;
}
.contact p {
  margin: 0;
  color: var(--text-secondary);
}
.contact .email {
  display: inline-block;
  margin-top: 12px;
  font-size: var(--size-section);
  font-weight: 500;
}

/* --- footer: the trading disclosures ------------------------------------- */

.foot {
  border-top: 1px solid var(--divider);
  padding-top: 28px;
  padding-bottom: 40px;
  font-size: var(--size-data);
  color: var(--text-secondary);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-weight: 500;
}
.legal {
  margin: 0;
  font-size: var(--size-label);
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* --- phone width --------------------------------------------------------- */

@media (max-width: 720px) {
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding-top: 32px;
    padding-bottom: 40px;
  }
  h1 {
    font-size: var(--size-money);
  }
  .lede {
    font-size: var(--size-body);
  }
  .audiences {
    grid-template-columns: 1fr;
    padding-bottom: 48px;
  }
  .card {
    padding: 24px;
  }
  h2 {
    font-size: var(--size-section);
  }
}
