/*
  Landing page styles. Every colour, font, radius, spacing, shadow and motion value
  comes from tokens.css. The only local values are page-layout widths and breakpoints
  (Flexible in the design system, section 7) and component sizes the spec states
  (button height 48, touch target 44, 1 px borders).
*/

/* Page layout (Flexible). */
:root {
  --page-max: 1040px;   /* content width on wide screens */
  --text-max: 640px;    /* comfortable line length for long copy */
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 400 17px/24px var(--font-body); /* type-body-l */
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

.skip-link {
  position: absolute; left: var(--space-4); top: -100px;
  background: var(--color-surface); color: var(--color-text);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-pill);
  z-index: 10;
}
.skip-link:focus { top: var(--space-4); }

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--color-text); text-decoration: none;
  font: 700 24px/28px var(--font-display); /* type-display-m */
}

/* Buttons (design system: Button) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; min-width: 44px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  font: 600 16px/20px var(--font-body); /* type-button */
  text-decoration: none; cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard),
              opacity var(--duration-fast) var(--ease-standard);
}
.btn:active { transform: scale(0.98); opacity: 0.92; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  background: var(--color-accent); color: var(--color-on-accent);
  border: 1px solid var(--color-accent);
}
.btn-secondary {
  background: transparent; color: var(--color-text);
  border: 1px solid var(--color-line);
}
.btn-small { min-height: 44px; padding: 0 var(--space-4); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Sections */
main { display: block; }
.section { padding: var(--space-10) 0; }
.section + .section { padding-top: 0; }

.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--color-accent);
  font: 600 12px/16px var(--font-body); /* type-label */
}

h1, h2, h3 { margin: 0; color: var(--color-text); }
h1 { font: 700 36px/40px var(--font-display); }  /* type-display-xl */
h2 { font: 700 32px/36px var(--font-display); }  /* type-display-l */
h3 { font: 700 24px/28px var(--font-display); }  /* type-display-m */

.lead { margin: var(--space-4) 0 0; color: var(--color-text-muted); }

.prose > * { max-width: var(--text-max); }
.prose p { margin: var(--space-4) 0 0; }
.prose strong { font-weight: 600; }

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6) var(--space-5);
}

/* Hero */
.hero { padding-top: var(--space-8); }
.split { display: grid; gap: var(--space-8); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* Poster block (design system) used as the founders' photo frame */
.poster {
  margin: 0;
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-soft);
  overflow: hidden;
}
.poster::before, .poster::after {
  content: ""; position: absolute; border-radius: var(--radius-pill);
}
.poster::before {
  width: 220px; height: 220px; right: -40px; top: -40px;
  background: var(--color-accent);
}
.poster::after {
  width: 96px; height: 96px; right: 150px; top: 120px;
  background: var(--color-highlight);
}
.poster img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; min-height: 320px;
  object-fit: cover;
}
.poster-caption {
  position: absolute; z-index: 1; left: var(--space-5); bottom: var(--space-5); right: var(--space-5);
  color: var(--color-text);
  font: 700 24px/28px var(--font-display); /* type-display-m */
}
.poster-caption span {
  display: block; margin-top: var(--space-1);
  color: var(--color-text-muted);
  font: 500 13px/18px var(--font-body); /* type-body-s */
}
.poster.has-photo .poster-caption { display: none; }

/* Art-form chips under the hero copy */
.art-forms { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.art-forms li {
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 0 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  font: 500 13px/18px var(--font-body); /* type-body-s */
}

/* Waitlist */
.waitlist { display: grid; gap: var(--space-6); }
.waitlist-form { display: grid; gap: var(--space-4); }
.field-label { font: 600 12px/16px var(--font-body); color: var(--color-text-muted); } /* type-label */
.input {
  width: 100%; min-height: 48px;
  padding: 0 var(--space-4);
  background: var(--color-surface); color: var(--color-text);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  font: 400 17px/24px var(--font-body); /* type-body-l: 16 px or more stops iOS zoom */
}
.input::placeholder { color: var(--color-text-muted); }
.input[aria-invalid="true"] { border-color: var(--color-accent); }

.consent {
  display: grid; grid-template-columns: 44px 1fr; align-items: start;
  color: var(--color-text-muted);
  font: 400 15px/22px var(--font-body); /* type-body-m */
}
.consent input {
  width: 22px; height: 22px; margin: 11px;
  accent-color: var(--color-accent);
}
.consent span { padding-top: var(--space-2); }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 0; min-height: 22px; font: 400 15px/22px var(--font-body); }
.form-status[data-state="error"] { color: var(--color-text); }
.form-status[data-state="error"]::before { content: "⚠ "; }
.form-status[data-state="success"] {
  padding: var(--space-3) var(--space-4);
  background: var(--color-ai-bg);
  border-radius: var(--radius-md);
}

.or {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--color-text-muted);
  font: 600 12px/16px var(--font-body); /* type-label */
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--color-line); }

.telegram { display: grid; gap: var(--space-2); }
.hint { margin: 0; color: var(--color-text-muted); font: 400 15px/22px var(--font-body); }

/* Contact (inside the waitlist card) */
.contact { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--color-line); }
.contact-list { display: grid; gap: var(--space-4); margin: var(--space-6) 0; }
.contact-list dt { font: 600 12px/16px var(--font-body); color: var(--color-text-muted); }
.contact-list dd { margin: var(--space-1) 0 0; }

/* Footer */
.site-footer {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-line);
  color: var(--color-text-muted);
  font: 400 15px/22px var(--font-body); /* type-body-m */
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; }
.site-footer nav { display: flex; gap: var(--space-5); }
.footer-note { margin: 0; display: flex; align-items: center; }
.site-footer a { color: var(--color-text-muted); display: inline-flex; min-height: 44px; align-items: center; }

/* Legal pages */
.legal h1 { margin-bottom: var(--space-4); }
.legal h2 { font: 700 24px/28px var(--font-display); margin-top: var(--space-8); } /* type-display-m */
.legal .draft-note {
  margin: var(--space-6) 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-soft);
  border-radius: var(--radius-md);
}

/* Wider screens (Flexible) */
@media (min-width: 768px) {
  .section { padding: 64px 0; }
  .card { padding: var(--space-10); }
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .poster, .poster img { min-height: 440px; }
  .waitlist { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--space-10); }
  .contact-list { grid-template-columns: repeat(2, minmax(0, 280px)); }
}

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