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

:root {
  --lilac:       #EDE9FE;   /* hero / header / page bg — per spec Rectangle 4 */
  --artwork-bg:  #B4B4FA;   /* product section base — per spec sourceArtwork */
  --near-black:  #16141a;
  --white:       #ffffff;
  --cta-bg:      #A78BFA;   /* solid violet — sampled from design */
  --text-dim:    rgba(22, 20, 26, 0.55);
  --white-dim:   rgba(255, 255, 255, 0.55);
  --white-faint: rgba(255, 255, 255, 0.22);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Geist', system-ui, sans-serif;
  background: var(--lilac);   /* fallback — same as hero */
  color: var(--near-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ─── Header ─────────────────────────────────────────────── */
.header {
  background: var(--lilac);
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  background: var(--lilac);
  padding: 5rem 2.5rem 7rem;
}

.hero-text {
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--near-black);
  max-width: 56rem;
}

.hero-brand {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

/* ─── Product section ────────────────────────────────────── */
.product {
  background: var(--artwork-bg) url('images/artwork.png') center / cover no-repeat;
  padding: 5.5rem 2.5rem 6rem;
}

.product-inner {
  max-width: 36rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
}

.product-heading {
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: #2E1065;
  text-align: center;
}

.product-arrow {
  font-size: 2rem;
  color: #2E1065;
  line-height: 1;
}

/* Mockup frame */
.product-mockup {
  width: 100%;
  border-radius: 0.3rem;
  overflow: hidden;
  box-shadow:
    0 2px 8px  rgba(0, 0, 0, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.22),
    0 32px 80px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.product-image {
  width: 100%;
  height: auto;
}

/* ─── Subscribe block ────────────────────────────────────── */
.subscribe-block {
  width: 100%;
  background: var(--cta-bg);
  border-radius: 0.25rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.subscribe-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.1rem;
}

.cta-title {
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--near-black);
  letter-spacing: -0.01em;
}

.cta-sub {
  font-size: 0.775rem;
  font-weight: 400;
  color: var(--text-dim);
}

.gate-success {
  font-size: 0.82rem;
  color: var(--near-black);
  line-height: 1.5;
  padding-top: 0.25rem;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gate-row {
  display: flex;
  gap: 0.5rem;
}

.gate-row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(46, 16, 101, 0.2);
  border-radius: 0.15rem;
  color: var(--near-black);
  font-family: 'Geist', sans-serif;
  font-size: 0.84rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.15s;
}

.gate-row input[type="email"]::placeholder {
  color: rgba(22, 20, 26, 0.35);
}

.gate-row input[type="email"]:focus {
  border-color: rgba(46, 16, 101, 0.5);
}

.gate-submit {
  padding: 0.625rem 1.1rem;
  background: var(--near-black);
  color: var(--white);
  border: none;
  border-radius: 0.15rem;
  font-family: 'Geist', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.gate-submit:hover   { opacity: 0.8; }
.gate-submit:disabled { opacity: 0.45; cursor: not-allowed; }

/* Honeypot — visually and functionally hidden */
.gate-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

.gate-error {
  font-size: 0.77rem;
  color: rgba(22, 20, 26, 0.6);
  min-height: 1.2em;
  line-height: 1.4;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--lilac);
  padding: 4.5rem 2.5rem;
}

.footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: start;
}

.footer-bio {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.72;
  color: rgba(22, 20, 26, 0.55);
  max-width: 34ch;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-end;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(22, 20, 26, 0.35);
  letter-spacing: 0.01em;
}

.footer-social {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.footer-social a {
  color: rgba(22, 20, 26, 0.4);
  text-decoration: none;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-social a:hover {
  color: var(--near-black);
}

/* ─── Wide screen (two-column layout) ───────────────────── */
@media (min-width: 1280px) {
  .above-fold {
    display: grid;
    grid-template-columns: 2fr 3fr;
    align-items: start;
    min-height: 100vh;
  }

  .left-col {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--lilac);
  }

  .left-col .header {
    flex-shrink: 0;
  }

  .left-col .hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 5rem;
  }

  .product {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .footer-inner {
    max-width: none;
    margin: 0;
    grid-template-columns: 2fr 3fr;
    gap: 2rem;
  }

  .footer {
    background: #F5F3FF;
  }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .header  { padding: 1.25rem 1.5rem; }
  .hero    { padding: 3.5rem 1.5rem 5rem; }
  .product { padding: 4rem 1.5rem 5rem; }
  .footer  { padding: 3.5rem 1.5rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-meta,
  .footer-social {
    align-items: flex-start;
  }

  .gate-row {
    flex-direction: column;
  }

  .gate-submit {
    width: 100%;
  }
}
