/*
 * Holding page (Stage 7d). Tokens copied from the app's src/app/globals.css (Figma variables; dark values from the same
 * roles, every text pair 4.5:1 or more). Inter for text, Lora for headings — self-hosted, the browser contacts no one else.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/lora-latin.woff2") format("woff2");
}

:root {
  --paper: #f3f5f2;
  --surface: #ffffff;
  --ink: #17231f;
  --ink-soft: #34433d;
  --ink-muted: #5b6a64;
  --line: #dce3df;
  --field-line: #7d8c86;
  --action: #176b5b;
  --on-action: #ffffff;
  --action-soft: #e3f1ec;
  --action-ink: #0f5145;
  --improved: #287a52;
  --error: #b0422e;
  --shadow-card: 0 4px 9px rgb(19 45 36 / 0.07);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1714;
    --surface: #16211d;
    --ink: #e8efec;
    --ink-soft: #c9d5d0;
    --ink-muted: #9dada6;
    --line: #2b3a35;
    --field-line: #71847c;
    --action: #4fc09e;
    --on-action: #0b1f1a;
    --action-soft: #173a31;
    --action-ink: #8fdcc3;
    --improved: #6fc79a;
    --error: #ee8d78;
    --shadow-card: 0 4px 9px rgb(0 0 0 / 0.35);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

a {
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

.top {
  padding: 4px 0 28px;
}

.logo {
  display: block;
  height: 36px;
  width: auto;
}

h1,
h2 {
  font-family: "Lora", ui-serif, Georgia, serif;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: 32px;
  line-height: 1.12;
}

h2 {
  font-size: 22px;
  line-height: 1.25;
}

.lead {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

.soon {
  display: inline-block;
  margin: 20px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--action-soft);
  color: var(--action-ink);
  font-size: 14px;
  font-weight: 600;
}

.points {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.points svg {
  flex: none;
  margin-top: 3px;
  color: var(--action);
}

.card {
  margin-top: 32px;
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

form {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
}

input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--field-line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--action);
}

/* The checkbox and its label together are a 44 px target. */
.check label {
  min-height: 44px;
  padding-top: 1px;
  cursor: pointer;
}

button {
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--action);
  color: var(--on-action);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover:not(:disabled) {
  filter: brightness(1.1);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.message {
  margin: 0;
  font-weight: 600;
}

.message:empty {
  display: none;
}

.message.is-ok {
  color: var(--improved);
}

.message.is-error {
  color: var(--error);
}

.remove {
  margin: 16px 0 0;
  color: var(--ink-muted);
  font-size: 14px;
}

/* Honeypot: off-screen, never shown. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.5;
}

.foot p {
  margin: 0 0 8px;
}

.foot a {
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .page {
    padding: 48px 24px 48px;
  }

  .top {
    padding-bottom: 48px;
  }

  .logo {
    height: 40px;
  }

  h1 {
    font-size: 44px;
    line-height: 1.06;
  }

  .card {
    padding: 28px 24px;
  }

  button {
    justify-self: start;
  }
}
