/* ─── shared.css ─── */
/* Common styles for all dAIs freebie pages. */
/* Page-specific styles remain inline in each HTML file. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg:        #06060F;
  --bg-2:      #09091A;
  --bg-card:   #0C0C1E;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.04);
  --violet:    #A07AFF;
  --teal:      #00DCB4;
  --violet-dim: rgba(160,122,255,0.6);
  --teal-dim:   rgba(0,220,180,0.5);
  --cream:     #EEF0FF;
  --cream-dim: rgba(238,240,255,0.7);
  --muted:     rgba(238,240,255,0.45);
  --aurora: linear-gradient(90deg, #A07AFF 0%, #00DCB4 100%);
  --aurora-diag: linear-gradient(135deg, #8050FF 0%, #00DCB4 100%);
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

.aurora-text {
  background: var(--aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Nav ─── */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  background: rgba(6,6,15,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-variation-settings: 'opsz' 36;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-decoration: none;
}
.nav-logo em {
  font-style: italic;
  font-weight: 500;
  font-variation-settings: 'opsz' 36;
  background: var(--aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-back {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--cream); }

/* ─── Hero ─── */
.hero {
  position: relative;
  z-index: 10;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 56px 60px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-dim);
  margin-bottom: 28px;
}

.hero-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  color: var(--cream);
  margin-bottom: 24px;
  max-width: 800px;
}

.hero-sub {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--cream-dim);
  max-width: 560px;
  margin-bottom: 16px;
}

.hero-context {
  font-size: 13px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 48px;
}

/* ─── Form ─── */
.form-section {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 56px 80px;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}

.form-input {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus { border-color: var(--violet-dim); }

.form-submit {
  padding: 14px 32px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--aurora-diag);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(128,80,255,0.25);
}
.form-submit:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(128,80,255,0.4);
}
.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.form-error {
  color: #C94B8A;
  font-size: 13px;
  text-align: center;
  display: none;
}

/* ─── TOC ─── */
.toc {
  position: relative;
  z-index: 10;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 56px 40px;
}

html.gated .toc { display: none; }

.toc-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dim);
  margin-bottom: 16px;
  text-align: center;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.toc-list a {
  font-size: 14px;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.toc-list a:hover {
  color: var(--violet);
}

/* ─── Content Sections ─── */
.content-section {
  position: relative;
  z-index: 10;
  padding: 60px 56px;
  max-width: 760px;
  margin: 0 auto;
}

html.gated .content-section { display: none; }

.section-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dim);
  margin-bottom: 12px;
}

.content-section h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  font-variation-settings: 'opsz' 144;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 16px;
}

.content-section h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  font-variation-settings: 'opsz' 36;
  color: var(--cream);
  margin-bottom: 8px;
}

.content-section p {
  font-size: 15px;
  color: var(--cream-dim);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-section p:last-child { margin-bottom: 0; }

/* ─── Download Section ─── */
.download-section {
  position: relative;
  z-index: 10;
  padding: 40px 56px 80px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

html.gated .download-section { display: none; }

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.download-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  font-variation-settings: 'opsz' 36;
  color: var(--cream);
}

.download-card p {
  font-size: 14px;
  color: var(--cream-dim);
  max-width: 420px;
}

.download-link {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid var(--violet-dim);
  transition: background 0.2s, border-color 0.2s;
  margin-top: 8px;
}
.download-link:hover {
  background: rgba(160,122,255,0.1);
  border-color: var(--violet);
}

/* ─── Related ─── */
.related-section {
  position: relative;
  z-index: 10;
  padding: 0 56px 80px;
  max-width: 760px;
  margin: 0 auto;
}

.related-section h3 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
  font-variation-settings: 'opsz' 36;
  color: var(--cream);
  margin-bottom: 20px;
}

.related-grid {
  display: flex;
  gap: 16px;
}

.related-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.related-card:hover {
  border-color: var(--violet-dim);
  background: rgba(160,122,255,0.04);
}

.related-card .related-icon {
  font-size: 20px;
  margin-bottom: 10px;
}

.related-card .related-title {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 600;
  font-variation-settings: 'opsz' 36;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 6px;
}

.related-card .related-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Services CTA ─── */
.services-cta {
  position: relative;
  z-index: 10;
  padding: 0 56px 80px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.services-cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.services-cta-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  font-variation-settings: 'opsz' 36;
  color: var(--cream);
}

.services-cta-card p {
  font-size: 14px;
  color: var(--cream-dim);
  max-width: 440px;
  line-height: 1.7;
}

.services-cta-link {
  display: inline-block;
  padding: 14px 32px;
  margin-top: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--aurora-diag);
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(128,80,255,0.25);
}
.services-cta-link:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(128,80,255,0.4);
}

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 10;
  padding: 60px 56px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 13px;
  color: var(--muted);
}

.footer a {
  color: var(--violet-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover { color: var(--violet); }

/* ─── Aurora Background ─── */
#aurora-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.a-layer { position: absolute; inset: -30%; }
.a1 { background: radial-gradient(ellipse 55% 45% at 65% 35%, rgba(128,80,255,0.14) 0%, transparent 65%); }
.a2 { background: radial-gradient(ellipse 45% 55% at 30% 65%, rgba(0,220,180,0.09) 0%, transparent 65%); }
.a3 { background: radial-gradient(ellipse 38% 38% at 75% 20%, rgba(160,60,220,0.08) 0%, transparent 60%); }

.a-arc {
  position: absolute;
  top: -180px; left: -5%;
  width: 110%; height: 480px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(128,80,255,0.055) 40%,
    rgba(0,220,180,0.035) 65%,
    transparent 100%
  );
  transform: rotate(-6deg);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-bar { padding: 0 24px; }
  .hero { padding: 120px 24px 40px; }
  .form-section { padding: 0 24px 60px; }
  .toc { padding: 0 24px 30px; }
  .content-section { padding: 40px 24px; }
  .download-section { padding: 40px 24px 60px; }
  .related-section { padding: 0 24px 60px; }
  .related-grid { flex-direction: column; }
  .services-cta { padding: 0 24px 60px; }
  .footer {
    flex-direction: column;
    gap: 16px;
    padding: 40px 24px;
    text-align: center;
  }
}
