/* HatchLog web: shared tokens and base styles.
   Token values mirror the desktop workspace prototype (repo root styles.css)
   so deployed pages and the prototype stay one design system. Dark is the
   default theme, matching the prototype's :root. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-Medium.ttf") format("truetype");
  font-weight: 500;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype");
  font-weight: 800;
}

:root {
  color-scheme: dark;
  --bg: #151514;
  --toolbar: #171716;
  --card: #1c1c1b;
  --input: #20201e;
  --elevated: #242421;
  --text: #f1eee8;
  --muted: #9b9892;
  --faint: #6e6a64;
  --gold: #a8853a;
  --gold-fill: #9a7434;
  --green: #7d8f75;
  --red: #b04048;
  --warning: #e0a93a;
  --border: #30302e;
  --strong-border: #4a4a46;
  --on-gold: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-egg {
  width: 31px;
  height: 31px;
  object-fit: contain;
}
.wordmark {
  font-size: 23px;
  line-height: 1;
  color: var(--text);
}
.wordmark span { font-weight: 800; }
.wordmark strong { font-weight: 400; }

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: var(--input);
  color: var(--text);
}
.button:disabled { opacity: 0.55; cursor: default; }

.button.primary {
  background: var(--gold-fill);
  color: var(--on-gold);
  border-color: color-mix(in srgb, var(--gold-fill) 70%, var(--text));
}
.button.apple {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.button.google {
  background: #ffffff;
  color: #1f1f1f;
  border-color: #ffffff;
}
.button.quiet {
  background: var(--input);
  color: var(--muted);
  font-weight: 600;
}

.field {
  display: grid;
  gap: 4px;
}
.field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.field input {
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--text);
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 24%, transparent);
}

.error-box {
  border: 1px solid color-mix(in srgb, var(--red) 55%, var(--border));
  background: color-mix(in srgb, var(--red) 12%, var(--card));
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

.text-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  transition: opacity 160ms ease, translate 160ms ease;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* HatchLog landing page */
a { color: inherit; }

.landing {
  min-height: calc(100vh - 90px);
  overflow: hidden;
  background: var(--bg);
}

.landing-header {
  width: min(1120px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.landing-brand { text-decoration: none; }
.landing-brand .brand-egg { width: 36px; height: 36px; }
.landing-brand .wordmark { font-size: 27px; }

.club-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.club-link:hover { color: var(--text); }

.landing-hero {
  width: min(1040px, calc(100% - 48px));
  min-height: 610px;
  margin: 0 auto;
  padding: 76px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 96px;
  align-items: center;
}

.landing-copy { max-width: 610px; }

.landing-kicker {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.landing h1 {
  max-width: 660px;
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 5.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.landing-lede {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.download-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--strong-border);
  border-bottom: 1px solid var(--strong-border);
}

.store-link {
  width: 50%;
  min-height: 74px;
  padding: 14px 18px 14px 0;
  display: grid;
  align-content: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
}
.store-link + .store-link {
  padding-left: 22px;
  border-left: 1px solid var(--strong-border);
}
.store-link > span { color: var(--faint); font-size: 10px; }
.store-link strong { font-size: 15px; font-weight: 600; }
.store-link strong span { color: var(--gold); }
.store-link:hover strong { color: var(--gold); }

.phone-preview {
  margin: 0;
  padding-left: 28px;
  border-left: 1px solid var(--border);
  display: grid;
  justify-items: start;
  gap: 14px;
}
.phone-preview > p {
  margin: 0;
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.phone-preview img {
  width: min(230px, 100%);
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.record-workflow {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}
.workflow-heading > p {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.workflow-heading h2 {
  max-width: 300px;
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.workflow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--strong-border);
}
.workflow-list li {
  min-height: 86px;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
  border-bottom: 1px solid var(--border);
}
.workflow-list li > span {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.workflow-list strong { font-size: 14px; font-weight: 600; }
.workflow-list p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.registry-note {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto 72px;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--strong-border);
  border-bottom: 1px solid var(--strong-border);
}
.registry-note p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.registry-note strong { color: var(--text); font-weight: 600; }
.registry-note a { color: var(--text); font-size: 12px; text-decoration: none; white-space: nowrap; }
.registry-note a span { color: var(--gold); }
.registry-note a:hover { color: var(--gold); }

.landing-footer {
  min-height: 90px;
  padding: 24px max(24px, calc((100% - 1040px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--faint);
  font-size: 12px;
  background: #111110;
  border-top: 1px solid var(--border);
}
.landing-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.landing-footer a { color: var(--muted); text-decoration: none; }
.landing-footer a:hover { color: var(--text); }

@media (max-width: 780px) {
  .landing-header,
  .landing-hero,
  .record-workflow,
  .registry-note { width: min(100% - 36px, 620px); }
  .landing-header { min-height: 72px; }
  .landing-brand .brand-egg { width: 31px; height: 31px; }
  .landing-brand .wordmark { font-size: 23px; }
  .club-link { font-size: 10px; }
  .landing-hero {
    min-height: 0;
    padding: 48px 0 50px;
    grid-template-columns: 1fr;
    gap: 54px;
  }
  .landing h1 { font-size: clamp(39px, 11vw, 52px); }
  .landing-lede { font-size: 17px; }
  .phone-preview { padding: 0; border-left: 0; justify-items: center; }
  .phone-preview img { width: 210px; }
  .record-workflow { padding: 54px 0; grid-template-columns: 1fr; gap: 34px; }
  .registry-note { margin-bottom: 48px; flex-direction: column; }
  .landing-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 460px) {
  .club-link { max-width: 110px; text-align: right; line-height: 1.4; }
  .download-actions { display: block; }
  .store-link { width: 100%; padding: 14px 0; }
  .store-link + .store-link { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
}
