/* Hero Huddle marketing splash — mirrors app v2 / HhColor tokens */

:root {
  /* Colors — light parchment */
  --hh-bg: #f5efe7;
  --hh-bg-deep: #e9dfd5;
  --hh-surface: #fffcf9;
  --hh-border: #e5d9d0;
  --hh-accent: #6b3a3a;
  --hh-accent-bright: #4a2828;
  --hh-accent-soft: #f6e4e0;
  --hh-accent-line: #dcb9b3;
  --hh-accent-glow: #6b3a3a26;
  --hh-accent-glow-strong: #6b3a3a33;
  --hh-on-accent: #fff7f4;
  --hh-ember: #b0561c;
  --hh-text: #2a1b18;
  --hh-text-2: #5c4c47;
  --hh-text-3: #7b6862;
  --hh-shadow: #2a1b1826;

  /* Typography */
  --hh-font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --hh-font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --hh-font-read: "Spectral", Georgia, serif;

  /* Spacing */
  --hh-space-xs: 4px;
  --hh-space-sm: 8px;
  --hh-space-md: 12px;
  --hh-space-lg: 16px;
  --hh-space-xl: 24px;
  --hh-space-xxl: 32px;

  /* Radius */
  --hh-radius-sm: 8px;
  --hh-radius-md: 12px;
  --hh-radius-lg: 16px;
  --hh-radius-full: 100px;

  /* Motion */
  --hh-duration-fast: 150ms;
  --hh-duration-md: 250ms;
  --hh-duration-slow: 400ms;
  --hh-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Colors — inked vellum */
    --hh-bg: #141017;
    --hh-bg-deep: #0d0a10;
    --hh-surface: #1f1922;
    --hh-border: #382c3a;
    --hh-accent: #d9b44a;
    --hh-accent-bright: #f0d480;
    --hh-accent-soft: #332813;
    --hh-accent-line: #5c4a1e;
    --hh-accent-glow: #d9b44a55;
    --hh-accent-glow-strong: #d9b44a66;
    --hh-on-accent: #191207;
    --hh-ember: #ce7c4e;
    --hh-text: #f3ece1;
    --hh-text-2: #b5a99c;
    --hh-text-3: #95897e;
    --hh-shadow: #000000aa;
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--hh-font-ui);
  color: var(--hh-text);
  background: var(--hh-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: var(--hh-space-lg) var(--hh-space-xl) var(--hh-space-xxl);
  overflow-x: clip;
  background: linear-gradient(
    180deg,
    var(--hh-accent-soft) 0%,
    var(--hh-bg) 55%,
    var(--hh-bg-deep) 100%
  );
}

.page > main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
}

.page .site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-top: var(--hh-space-xxl);
}

.glow {
  position: absolute;
  width: min(70vw, 420px);
  height: min(70vw, 420px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--hh-accent-glow-strong) 0%,
    transparent 70%
  );
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto var(--hh-space-xl);
}

.top-bar__brand {
  font-family: var(--hh-font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hh-text);
}

.top-bar__cta {
  font-family: var(--hh-font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--hh-on-accent);
  background: var(--hh-accent);
  padding: var(--hh-space-sm) var(--hh-space-lg);
  border-radius: var(--hh-radius-full);
  transition: background var(--hh-duration-fast) var(--hh-ease-out);
}

.top-bar__cta:hover,
.top-bar__cta:focus-visible {
  background: var(--hh-accent-bright);
  outline: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--hh-space-xxl);
  align-items: center;
  width: 100%;
  padding-block: var(--hh-space-xl);
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
    gap: var(--hh-space-xxl);
  }
}

@media (min-width: 64rem) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 20rem);
  }
}

.hero__copy {
  text-align: center;
}

@media (min-width: 56rem) {
  .hero__copy {
    text-align: left;
  }
}

.hero__shot {
  margin: 0 auto;
  max-width: 16rem;
}

.hero__shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--hh-radius-lg);
  box-shadow:
    0 24px 48px var(--hh-shadow),
    0 0 0 1px color-mix(in srgb, var(--hh-border) 70%, transparent);
}

.eyebrow {
  margin: 0 0 var(--hh-space-md);
  font-family: var(--hh-font-read);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--hh-text-3);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hh-space-md);
  justify-content: center;
  margin-top: var(--hh-space-xl);
}

@media (min-width: 56rem) {
  .cta-row {
    margin-inline: 0;
    justify-content: flex-start;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: var(--hh-space-md) var(--hh-space-xl);
  border-radius: var(--hh-radius-full);
  font-family: var(--hh-font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background var(--hh-duration-fast) var(--hh-ease-out),
    border-color var(--hh-duration-fast) var(--hh-ease-out),
    color var(--hh-duration-fast) var(--hh-ease-out);
}

.btn--primary {
  color: var(--hh-on-accent);
  background: var(--hh-accent);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--hh-accent-bright);
  outline: none;
}

.btn--secondary {
  color: var(--hh-text);
  background: color-mix(in srgb, var(--hh-surface) 90%, transparent);
  border-color: var(--hh-accent-line);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  border-color: var(--hh-accent);
  outline: none;
}

.section {
  padding-block: var(--hh-space-xxl);
}

.section__header {
  max-width: 40rem;
  margin: 0 auto var(--hh-space-xl);
  text-align: center;
}

.section__title {
  margin: 0;
  font-family: var(--hh-font-ui);
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--hh-text);
}

.section__lede {
  margin: var(--hh-space-md) 0 0;
  font-family: var(--hh-font-read);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--hh-text-3);
}

.feature-grid {
  display: grid;
  gap: var(--hh-space-xl);
}

@media (min-width: 40rem) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--hh-space-lg);
}

.feature-card img {
  display: block;
  width: 100%;
  max-width: 14rem;
  margin-inline: auto;
  height: auto;
  border-radius: var(--hh-radius-md);
  box-shadow: 0 16px 32px var(--hh-shadow);
}

.feature-card figcaption h3 {
  margin: 0;
  font-family: var(--hh-font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hh-text);
}

.feature-card figcaption p {
  margin: var(--hh-space-sm) 0 0;
  font-family: var(--hh-font-read);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--hh-text-3);
}

.builder-note {
  margin: 0 auto;
  max-width: 38rem;
  font-family: var(--hh-font-read);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hh-text-2);
  text-align: center;
}

@media (min-width: 48rem) {
  .builder-note {
    text-align: left;
  }
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--hh-radius-lg);
  overflow: hidden;
  border: 1px solid var(--hh-border);
  box-shadow: 0 16px 32px var(--hh-shadow);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.join-panel {
  max-width: 44rem;
  margin-inline: auto;
  padding-block: var(--hh-space-lg);
  text-align: center;
}

.waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hh-space-md);
  justify-content: center;
  margin-top: var(--hh-space-xl);
}

.waitlist input {
  flex: 1 1 14rem;
  min-height: 2.75rem;
  padding: var(--hh-space-md) var(--hh-space-lg);
  border: 1px solid var(--hh-border);
  border-radius: var(--hh-radius-full);
  background: var(--hh-bg);
  font-family: var(--hh-font-ui);
  font-size: 0.9375rem;
  color: var(--hh-text);
}

.waitlist input:focus-visible {
  outline: 2px solid var(--hh-accent);
  outline-offset: 2px;
}

.waitlist-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.waitlist-message {
  margin: var(--hh-space-md) auto 0;
  max-width: 28rem;
  font-family: var(--hh-font-read);
  font-size: 0.9rem;
  line-height: 1.55;
}

.waitlist-message--success {
  color: var(--hh-text-2);
}

.waitlist-message--error {
  color: var(--hh-ember);
}

.waitlist-fallback {
  margin-top: var(--hh-space-xl);
}

.waitlist-note {
  margin: var(--hh-space-md) auto 0;
  max-width: 28rem;
  font-family: var(--hh-font-read);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--hh-text-3);
}

.join-cards {
  display: grid;
  gap: var(--hh-space-lg);
  margin-top: var(--hh-space-xl);
  text-align: left;
}

@media (min-width: 40rem) {
  .join-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.join-card {
  padding: var(--hh-space-lg);
  border-radius: var(--hh-radius-md);
  background: var(--hh-bg);
  border: 1px solid var(--hh-border);
}

.join-card h3 {
  margin: 0;
  font-family: var(--hh-font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hh-text);
}

.join-card p {
  margin: var(--hh-space-sm) 0 0;
  font-family: var(--hh-font-read);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--hh-text-3);
}

.text-link {
  display: inline-block;
  margin-top: var(--hh-space-md);
  font-family: var(--hh-font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hh-accent);
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--hh-accent-bright);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wordmark {
  margin: 0;
  font-family: var(--hh-font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  letter-spacing: 0.12em;
  line-height: 1.05;
  color: var(--hh-text);
  text-transform: uppercase;
}

.tagline {
  margin: var(--hh-space-xl) 0 0;
  font-family: var(--hh-font-read);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--hh-text-2);
}

.pitch {
  margin: var(--hh-space-lg) auto 0;
  max-width: 32rem;
  font-family: var(--hh-font-read);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--hh-text-3);
}

@media (min-width: 56rem) {
  .pitch {
    margin-inline: 0;
  }
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--hh-space-md);
  font-family: var(--hh-font-ui);
  font-size: 0.8125rem;
  color: var(--hh-text-3);
  text-align: center;
}

.site-footer__contact {
  margin: 0;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--hh-space-sm);
}

.site-footer a {
  color: var(--hh-text-3);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color var(--hh-duration-fast) var(--hh-ease-out);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--hh-accent);
}

.legal-page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--hh-space-xl) var(--hh-space-xl) var(--hh-space-xxl);
  background: linear-gradient(
    180deg,
    var(--hh-accent-soft) 0%,
    var(--hh-bg) 40%,
    var(--hh-bg-deep) 100%
  );
}

.legal-header {
  width: 100%;
  max-width: 40rem;
  margin-bottom: var(--hh-space-xl);
}

.legal-back {
  font-family: var(--hh-font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--hh-accent);
  text-decoration: none;
  transition: color var(--hh-duration-fast) var(--hh-ease-out);
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--hh-accent-bright);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal {
  width: 100%;
  max-width: 40rem;
  flex: 1;
  font-family: var(--hh-font-read);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hh-text-2);
}

.legal h1 {
  margin: 0 0 var(--hh-space-lg);
  font-family: var(--hh-font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--hh-text);
}

.legal h2 {
  margin: var(--hh-space-xxl) 0 var(--hh-space-md);
  font-family: var(--hh-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: var(--hh-text);
}

.legal h3 {
  margin: var(--hh-space-xl) 0 var(--hh-space-sm);
  font-family: var(--hh-font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--hh-text);
}

.legal-meta {
  margin: 0 0 var(--hh-space-xl);
  font-family: var(--hh-font-ui);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--hh-text-3);
}

.legal p {
  margin: 0 0 var(--hh-space-lg);
}

.legal ul {
  margin: 0 0 var(--hh-space-lg);
  padding-left: 1.35rem;
}

.legal li {
  margin-bottom: var(--hh-space-sm);
}

.legal li:last-child {
  margin-bottom: 0;
}

.legal a {
  color: var(--hh-accent);
  text-underline-offset: 0.15em;
}

.legal a:hover,
.legal a:focus-visible {
  color: var(--hh-accent-bright);
}

.legal-cta-wrap {
  margin: var(--hh-space-xl) 0;
}

.legal a.legal-cta {
  display: inline-block;
  font-family: var(--hh-font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hh-on-accent);
  background: var(--hh-accent);
  text-decoration: none;
  padding: var(--hh-space-md) var(--hh-space-xl);
  border-radius: var(--hh-radius-md);
  transition:
    background var(--hh-duration-fast) var(--hh-ease-out),
    color var(--hh-duration-fast) var(--hh-ease-out);
}

.legal a.legal-cta:hover,
.legal a.legal-cta:focus-visible {
  color: var(--hh-on-accent);
  background: var(--hh-accent-bright);
  text-decoration: none;
}

.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: var(--hh-radius-sm);
  background: color-mix(in srgb, var(--hh-surface) 70%, var(--hh-border));
  color: var(--hh-text);
}

.legal table {
  width: 100%;
  margin: 0 0 var(--hh-space-lg);
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  padding: var(--hh-space-sm) var(--hh-space-md);
  border: 1px solid var(--hh-border);
  text-align: left;
  vertical-align: top;
}

.legal th {
  font-family: var(--hh-font-ui);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  background: color-mix(in srgb, var(--hh-surface) 85%, transparent);
  color: var(--hh-text);
}

.legal-page .site-footer {
  width: 100%;
  max-width: 40rem;
  margin-top: var(--hh-space-xxl);
  padding-top: var(--hh-space-xl);
  border-top: 1px solid var(--hh-border);
}

@media (prefers-reduced-motion: reduce) {
  .site-footer a,
  .legal-back,
  .legal-cta,
  .btn,
  .top-bar__cta {
    transition: none;
  }
}
