/* ============================================================
   COWORK INSIDER — Squeeze Page
   Editorial broadsheet · Restrained luxury · Warm authority
   ============================================================ */

:root {
  --bg-primary: #FAFAF7;
  --text-primary: #1A1A1A;
  --text-secondary: #5C5C5C;
  --text-tertiary: #8A8A8A;
  --accent: #E07A3A;
  --accent-hover: #C9682F;
  --accent-glow: rgba(224, 122, 58, 0.15);
  --border: #D6D4CF;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { font: inherit; color: inherit; text-decoration: none; }

/* --- Base --- */
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Focus --- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   PAGE LAYOUT — centered single-screen squeeze
   ============================================================ */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 48px;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind headline area — layered for warmth */
.page::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(224, 122, 58, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 55% 45%, rgba(224, 122, 58, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.page > * { position: relative; z-index: 1; }

/* ============================================================
   WORDMARK
   ============================================================ */
.wordmark {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.wordmark__cowork { color: var(--accent); }
.wordmark__insider { color: var(--text-primary); }

/* ============================================================
   HEADER — headline + subheadline
   ============================================================ */
.header {
  text-align: center;
  max-width: 680px;
  margin-bottom: 56px;
}

.header__rule {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, #E07A3A 0%, rgba(224, 122, 58, 0) 100%);
  border: none;
  margin: 0 auto 28px;
}

.underline-brush {
  position: relative;
  white-space: nowrap;
}

.underline-brush::after {
  content: '';
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: 0px;
  height: 14px;
  background: linear-gradient(90deg, rgba(224, 122, 58, 0.15) 0%, var(--accent) 15%, var(--accent) 80%, rgba(224, 122, 58, 0.1) 100%);
  opacity: 0.45;
  border-radius: 40% 60% 50% 40% / 60% 80% 40% 70%;
  transform: rotate(-0.6deg) scaleY(0.75);
  z-index: -1;
  filter: blur(0.5px);
}

/* Second stroke for hand-painted texture */
.underline-brush::before {
  content: '';
  position: absolute;
  left: 5%;
  right: 8%;
  bottom: 3px;
  height: 6px;
  background: var(--accent);
  opacity: 0.18;
  border-radius: 50% 40% 60% 45% / 70% 50% 60% 80%;
  transform: rotate(0.4deg);
  z-index: -1;
}

.header h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.header__sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .header h1 { font-size: 48px; }
  .header__sub { font-size: 19px; }
  .header { margin-bottom: 64px; }
}

@media (min-width: 1024px) {
  .header h1 { font-size: 58px; }
  .header__sub { font-size: 20px; }
}

/* ============================================================
   CAPTURE — book mockup + ConvertKit form side by side
   ============================================================ */
.capture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 820px;
}

@media (min-width: 768px) {
  .capture {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 56px;
  }
}

/* ============================================================
   BOOK MOCKUP
   ============================================================ */
.book {
  flex-shrink: 0;
}

.book__cover {
  width: 240px;
  background: #fff;
  border-radius: 3px;
  padding: 36px 28px 28px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: rotate(-2deg);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book__cover:hover {
  transform: rotate(-1deg) translateY(-3px);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.book__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #E8884A 0%, var(--accent) 50%, var(--accent-hover) 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(224, 122, 58, 0.3);
}

.book__logo {
  width: 36px;
  height: 36px;
  opacity: 0.85;
  filter: drop-shadow(0 1px 4px rgba(224, 122, 58, 0.25));
}

.book__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 20px;
  margin-bottom: 10px;
}

.book__subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: auto;
}

.book__wordmark {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 28px;
  opacity: 0.7;
}

.book__wordmark span:first-child { color: var(--accent); }
.book__wordmark span:last-child { color: var(--text-tertiary); }

/* Spine edge — thin left border accent with glow */
.book__cover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: linear-gradient(180deg, #E8884A 0%, var(--accent) 40%, rgba(224, 122, 58, 0.15) 100%);
  border-radius: 2px 0 0 2px;
  box-shadow: 2px 0 12px rgba(224, 122, 58, 0.12);
}

@media (min-width: 768px) {
  .book__cover { width: 260px; min-height: 340px; }
  .book__title { font-size: 24px; }
}

/* ============================================================
   CONVERTKIT FORM AREA
   ============================================================ */
.form-area {
  width: 100%;
  max-width: 380px;
  min-height: 200px;
}

@media (min-width: 768px) {
  .form-area {
    flex: 1;
    max-width: 340px;
  }
}

/* ============================================================
   CONVERTKIT FORM
   ============================================================ */
.ck-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ck-form__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin-top: 8px;
}

.ck-form__label:first-child {
  margin-top: 0;
}

.ck-form__input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}

.ck-form__input::placeholder {
  color: var(--text-tertiary);
}

.ck-form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.ck-form__button {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, #E8884A 0%, var(--accent) 60%, var(--accent-hover) 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.03em;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow:
    0 0 24px var(--accent-glow),
    0 4px 12px rgba(224, 122, 58, 0.2);
  transition: all 0.2s ease;
  line-height: 1;
  min-height: 48px;
}

.ck-form__button:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  box-shadow:
    0 0 40px rgba(224, 122, 58, 0.3),
    0 6px 16px rgba(224, 122, 58, 0.25);
}

.ck-form__button:active {
  transform: scale(0.98);
}

.ck-form__fine-print {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}

/* ============================================================
   PAGE-LOAD ENTRANCE (respects reduced motion)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .wordmark,
  .header,
  .capture {
    animation: fadeUp 0.6s ease both;
  }
  .wordmark  { animation-delay: 0s; }
  .header    { animation-delay: 0.1s; }
  .capture   { animation-delay: 0.25s; }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
