/* ═══════════════════════════════════════════════════════
   Woven Landing Page — style.css
   NX-145
   ═══════════════════════════════════════════════════════ */

/* ── Design tokens ────────────────────────────────────── */
:root {
  --color-plum:       #7B2D8E;
  --color-plum-light: #9B4FB0;
  --color-plum-dark:  #5C1E6B;
  --color-dark:       #1A1A1A;
  --color-dark-grey:  #333333;
  --color-border:     #E8E8E8;
  --color-off-white:  #F7F5F3;
  --color-white:      #FFFFFF;
  --font-primary: 'Montserrat', sans-serif;
  --radius-md:    8px;
  --radius-full:  100px;
  --shadow-md:    0 1px 3px rgba(0, 0, 0, 0.08);
  --spacing-section: clamp(2rem, 6vw, 5rem);
}

/* ── Reset + base ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--color-off-white);
  font-family: var(--font-primary);
  color: var(--color-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ───────────────────────────────────────────── */
.site-header {
  background: var(--color-off-white);
  padding: 2.5rem 1.25rem 1rem;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.site-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
}

.beta-badge {
  background: var(--color-plum);
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  line-height: 1.4;
  flex-shrink: 0;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  padding-top: var(--spacing-section);
  text-align: center;
}

.hero-lines {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-lines li {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 0.2em;
}

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

/* ── Section divider (yarn motif) ────────────────────── */
.section-divider {
  border-top: 2px solid var(--color-plum);
  width: 48px;
  margin: 1.5rem auto;
}

/* ── Value proposition ───────────────────────────────── */
.value-prop {
  padding-top: 0;
  margin-bottom: var(--spacing-section);
  text-align: center;
}

.value-headline {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--color-plum);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.value-sub {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 500;
  color: var(--color-dark);
}

/* ── Waitlist section ────────────────────────────────── */
.waitlist {
  padding-bottom: var(--spacing-section);
}

.waitlist-heading {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

/* ── Form ─────────────────────────────────────────────── */
.field-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--color-dark);
  box-shadow: var(--shadow-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
  color: #999;
  font-weight: 500;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: var(--color-plum);
  outline: none;
  box-shadow: 0 0 0 3px rgba(123, 45, 142, 0.15);
}

/* ── Consent row ─────────────────────────────────────── */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-plum);
  cursor: pointer;
}

.consent-row label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-dark-grey);
  cursor: pointer;
  line-height: 1.5;
}

.consent-row label a {
  color: var(--color-plum);
  text-decoration: underline;
}

.consent-row label a:hover {
  color: var(--color-plum-light);
}

/* ── Submit button ───────────────────────────────────── */
.submit-btn {
  width: 100%;
  background: var(--color-plum);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.submit-btn:hover {
  background: var(--color-plum-light);
}

.submit-btn:active {
  background: var(--color-plum-dark);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── Success + error messages ────────────────────────── */
.success-message {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-plum);
  text-align: center;
  padding: 2rem 0;
  line-height: 1.5;
}

.error-message {
  font-size: 0.875rem;
  color: #C0392B;
  margin-top: 0.75rem;
  font-weight: 500;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid #E8E8E8;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--color-dark);
  font-weight: 500;
}

.site-footer a {
  color: var(--color-plum);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--color-plum-light);
}

/* ── Prose (privacy page) ────────────────────────────── */
.prose-section {
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section);
}

.prose-heading {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
}

.prose-section p {
  font-size: 1rem;
  color: var(--color-dark-grey);
  margin-bottom: 1rem;
  font-weight: 500;
}

.prose-section a {
  color: var(--color-plum);
  text-decoration: underline;
}

.prose-section a:hover {
  color: var(--color-plum-light);
}

/* ── Responsive ──────────────────────────────────────── */
@media (min-width: 600px) {
  .submit-btn {
    width: auto;
    min-width: 240px;
  }
}
