/* ============================================
   CURIOSITY CREST — Interim site + Bonus pages
   Extends styles.css with components specific to
   the interim landing, bonus pages, and popup form.
============================================ */

/* ---------- reveal-on-scroll baseline (all browsers) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- top bar ---------- */
.cc-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  padding: 16px clamp(20px, 4vw, 40px);
  background: rgba(251, 247, 238, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.cc-bar-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink);
  text-decoration: none;
}
.cc-bar-logo img { transition: transform 0.5s cubic-bezier(.3,1.5,.5,1); }
.cc-bar-logo:hover img { transform: rotate(-12deg) scale(1.08); }
.cc-bar-right {
  display: flex; align-items: center; gap: var(--s-4);
}
.cc-bar-tag {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--slate);
}
.cc-bar-link {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink);
  text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cc-bar-link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 640px) {
  .cc-bar { padding: 12px 18px; }
  .cc-bar-tag { display: none; }
  .cc-bar-logo { font-size: 17px; }
  .cc-bar-link { font-size: 10.5px; padding: 7px 11px; letter-spacing: 0.08em; }
}

/* ---------- interim hero ---------- */
.cc-hero {
  padding: clamp(48px, 10vw, 120px) clamp(20px, 4vw, 40px) clamp(36px, 7vw, 80px);
  max-width: 980px; margin: 0 auto; text-align: left;
}
.cc-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ember); font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(227, 106, 58, 0.10);
  margin-bottom: var(--s-5);
}
.cc-hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ember); animation: cc-pulse 1.8s ease-in-out infinite;
}
@keyframes cc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.cc-hero h1 {
  font-size: clamp(40px, 8vw, 104px);
  line-height: 0.98; letter-spacing: -0.03em;
  margin-bottom: var(--s-4);
}
.cc-hero h1 em {
  font-style: italic; color: var(--ember);
  font-weight: 500;
  background-image: linear-gradient(120deg, var(--ember) 0%, var(--ember) 60%, var(--brass) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cc-hero-lede {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5; color: var(--ink-soft);
  max-width: 640px; margin-bottom: var(--s-6);
  text-wrap: pretty;
}
.cc-hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.cc-hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px;
  background: var(--ember); color: var(--paper);
  font-family: var(--font-sans); font-weight: 600; font-size: 15.5px;
  letter-spacing: -0.005em; cursor: pointer; border: none;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px -10px rgba(227,106,58,0.55);
}
.cc-hero-cta:hover { transform: translateY(-2px); background: var(--ember-ink); color: var(--paper); box-shadow: 0 14px 32px -10px rgba(227,106,58,0.65); }
.cc-hero-cta:active { transform: translateY(0); }
.cc-hero-cta svg { width: 16px; height: 16px; }
.cc-hero-cta-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line-strong);
  box-shadow: none;
}
.cc-hero-cta-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: none; }
@media (max-width: 480px) {
  .cc-hero h1 { font-size: 44px; }
  .cc-hero-cta { width: 100%; justify-content: center; padding: 14px 20px; font-size: 15px; }
}

/* ---------- shared section eyebrow ---------- */
.cc-section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ember);
  margin-bottom: 10px;
}

/* ---------- what-we-publish grid ---------- */
.cc-what {
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 40px);
  max-width: 980px; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.cc-what h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: var(--s-6);
  letter-spacing: -0.02em;
}
.cc-what h2 .muted { color: var(--slate); font-weight: 500; font-style: italic; }
.cc-what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-5);
}
@media (max-width: 480px) {
  .cc-what-grid { grid-template-columns: 1fr; }
}
.cc-what-card {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--paper);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.cc-what-card:hover {
  transform: translateY(-4px);
  border-color: var(--ember);
  box-shadow: 0 14px 28px -16px rgba(15,29,51,0.18);
}
.cc-what-card .num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--ember); margin-bottom: 12px;
}
.cc-what-card h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.015em; margin-bottom: 6px;
}
.cc-what-card p {
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-soft); text-wrap: pretty;
}

/* ---------- featured books ---------- */
.cc-books {
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 40px);
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.cc-books-head { margin-bottom: var(--s-6); max-width: 680px; }
.cc-books-head h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 10px;
}
.cc-books-lede {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5; color: var(--ink-soft);
  text-wrap: pretty;
}
.cc-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: clamp(16px, 3vw, 32px);
}
@media (max-width: 480px) {
  .cc-books-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
.cc-book {
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.25s ease;
}
.cc-book:hover { transform: translateY(-4px); }
.cc-book-cover {
  position: relative; overflow: hidden;
  border-radius: var(--r-m);
  aspect-ratio: 2/3;
  background: #1a2740;
  box-shadow: 0 10px 24px -12px rgba(15,29,51,0.35);
}
.cc-book-cover img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(.2,.7,.2,1);
}
.cc-book:hover .cc-book-cover img { transform: scale(1.04); }
.cc-book-badge {
  position: absolute; bottom: 10px; right: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px;
  background: rgba(15,29,51,0.85);
  color: var(--cream); border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.10em; text-transform: uppercase;
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cc-book-badge svg { width: 11px; height: 11px; }
.cc-book:hover .cc-book-badge { opacity: 1; transform: translateY(0); }
@media (hover: none) { .cc-book-badge { opacity: 1; transform: translateY(0); } }
.cc-book-meta { display: flex; flex-direction: column; gap: 4px; }
.cc-book-cat {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ember);
}
.cc-book-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 18.5px); font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.15;
}
.cc-book-blurb {
  font-size: 13.5px; line-height: 1.45;
  color: var(--ink-soft); text-wrap: pretty;
}
.cc-books-foot {
  margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: 1px dashed var(--line);
  font-size: 14px; color: var(--ink-soft);
}
.cc-linkbtn {
  background: none; border: none; padding: 0;
  font: inherit; cursor: pointer;
  color: var(--ember); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.cc-linkbtn:hover { color: var(--ember-ink); }

/* ---------- mailto box ---------- */
.cc-mailto-box {
  background: var(--ink);
  border-radius: var(--r-l);
  padding: clamp(28px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
}
.cc-mailto-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(227,106,58,0.22), transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(201,160,74,0.15), transparent 50%);
}
.cc-mailto-lede {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(246,239,226,0.6);
  position: relative; z-index: 1;
}
.cc-mailto-btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 22px; border-radius: 999px;
  background: var(--ember); color: var(--paper);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(16px, 2vw, 20px); letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease;
  box-shadow: 0 8px 24px -10px rgba(227,106,58,0.55);
  word-break: break-all;
}
.cc-mailto-btn:hover { transform: translateY(-2px); background: var(--ember-ink); color: var(--paper); }
.cc-mailto-fine {
  position: relative; z-index: 1;
  font-size: 13px; color: rgba(246,239,226,0.55);
  line-height: 1.5;
}

/* ---------- contact ---------- */
.cc-contact {
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 40px);
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.cc-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 840px) { .cc-contact-grid { grid-template-columns: 1fr; gap: 28px; } }
.cc-contact-left h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 12px;
}
.cc-contact-left p {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5; color: var(--ink-soft);
  margin-bottom: var(--s-4); text-wrap: pretty;
}
.cc-contact-points {
  list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px;
}
.cc-contact-points li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--ink-soft);
}
.cc-contact-points li::before {
  content: ""; flex-shrink: 0; margin-top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ember);
}
.cc-contact-right {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 16px 40px -24px rgba(15,29,51,0.25);
  position: relative;
}
.cc-cform {
  display: flex; flex-direction: column; gap: var(--s-3);
}
.cc-cform textarea {
  padding: 13px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  font-family: var(--font-sans); font-size: 15px;
  background: var(--paper); color: var(--ink);
  outline: none; resize: vertical; min-height: 120px;
  transition: border-color 0.15s ease;
}
.cc-cform textarea:focus { border-color: var(--ember); }
.cc-field-math .cc-field-label { color: var(--ember); }
.cc-honeypot {
  display: none;
  visibility: hidden;
}
.cc-cform-success {
  text-align: center;
  padding: var(--s-6) var(--s-3);
  animation: cc-fadein 0.35s ease;
}

/* ---------- workshop notice ---------- */
.cc-notice {
  margin: clamp(40px, 6vw, 72px) auto;
  max-width: 980px;
  padding: var(--s-6) clamp(20px, 4vw, 40px);
  display: flex; align-items: center; gap: var(--s-5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cc-notice-mark {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%; background: var(--ink);
  color: var(--ember); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 22px;
}
.cc-notice-text { flex: 1; }
.cc-notice-text strong {
  display: block; font-family: var(--font-display);
  font-size: 19px; letter-spacing: -0.01em; margin-bottom: 2px;
}
.cc-notice-text span { font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 520px) {
  .cc-notice { flex-direction: column; align-items: flex-start; text-align: left; gap: var(--s-3); }
}

/* ---------- footer ---------- */
.cc-foot {
  background: var(--ink); color: var(--cream);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 40px);
  margin-top: var(--s-7);
}
.cc-foot-inner { max-width: 980px; margin: 0 auto; }
.cc-foot-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--cream);
  margin-bottom: var(--s-3);
}
.cc-foot-tag {
  color: var(--cream); opacity: 0.7;
  font-size: 14.5px; max-width: 380px;
  margin-bottom: var(--s-5);
}
.cc-foot-mini {
  font-size: 12.5px; color: var(--cream); opacity: 0.4;
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.cc-foot-links {
  display: flex; gap: var(--s-4); flex-wrap: wrap;
  margin-bottom: var(--s-3);
}
.cc-foot-links a {
  color: var(--cream); opacity: 0.7;
  font-size: 13px; text-decoration: none;
  border-bottom: 1px solid rgba(246,239,226,0.18);
  padding-bottom: 2px;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.cc-foot-links a:hover { opacity: 1; border-color: var(--ember-soft); }

/* ============================================
   BONUS PAGE — dedicated /slug pages
============================================ */
.cc-bonus {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 64px);
}
@media (max-width: 880px) {
  .cc-bonus { grid-template-columns: 1fr; }
}
.cc-bonus-left {
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--s-4);
}
.cc-bonus-book {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--slate);
  margin-bottom: var(--s-2);
}
.cc-bonus-booktitle {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 17px); font-weight: 500;
  color: var(--ink-soft); font-style: italic;
  margin-bottom: var(--s-5); max-width: 520px;
  line-height: 1.35;
}
.cc-bonus-booktitle .t { font-style: normal; font-weight: 600; color: var(--ink); }
.cc-bonus h1 {
  font-size: clamp(32px, 5vw, 60px);
  line-height: 0.98; letter-spacing: -0.025em;
  color: var(--ink); margin-bottom: var(--s-4);
}
.cc-bonus-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.5; color: var(--ink-soft);
  max-width: 540px; margin-bottom: var(--s-5);
  text-wrap: pretty;
}
.cc-bonus-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px; max-width: 540px;
}
.cc-bonus-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14.5px; line-height: 1.45;
  color: var(--ink-soft);
}
.cc-bonus-list li::before {
  content: ""; flex-shrink: 0; margin-top: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ember);
}

/* ---------- right rail: the form panel ---------- */
.cc-bonus-right {
  background: var(--ink); color: var(--cream);
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.cc-bonus-right::before, .cc-bonus-right::after {
  content: ""; position: absolute; pointer-events: none;
}
.cc-bonus-right::before {
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(227, 106, 58, 0.20), transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(201, 160, 74, 0.14), transparent 45%);
}
.cc-bonus-right::after {
  inset: 0;
  background-image:
    linear-gradient(rgba(246, 239, 226, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 239, 226, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.cc-bonus-formwrap {
  position: relative; z-index: 1;
  max-width: 420px; margin: 0 auto; width: 100%;
}
.cc-bonus-formhead {
  margin-bottom: var(--s-5);
}
.cc-bonus-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(227, 106, 58, 0.18);
  color: var(--ember-soft);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; border-radius: 999px;
  margin-bottom: var(--s-3);
}
.cc-bonus-formhead h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--cream); font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.15;
  margin-bottom: 8px;
}
.cc-bonus-formhead p {
  font-size: 14.5px; line-height: 1.5;
  color: rgba(246, 239, 226, 0.75);
  text-wrap: pretty;
}

/* ============================================
   POPUP (main site)
============================================ */
.cc-popup-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 29, 51, 0.65);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 4vw, 32px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cc-popup-backdrop.open { opacity: 1; pointer-events: auto; }
.cc-popup {
  width: 100%; max-width: 880px;
  background: var(--paper);
  border-radius: var(--r-l); overflow: hidden;
  display: grid; grid-template-columns: 0.95fr 1.05fr;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
  max-height: 92vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cc-popup-backdrop.open .cc-popup { transform: translateY(0); }
@media (max-width: 740px) {
  .cc-popup-backdrop { padding: 0; align-items: stretch; }
  .cc-popup {
    grid-template-columns: 1fr;
    max-height: 100dvh; height: 100dvh;
    max-width: 100%;
    border-radius: 0;
  }
  .cc-popup-visual { display: none; }
  .cc-popup-body { padding: 56px 20px 32px; min-height: 100%; justify-content: flex-start; padding-top: 64px; }
}
.cc-popup-visual {
  background: var(--ink); color: var(--cream);
  padding: var(--s-7);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  min-height: 440px;
}
.cc-popup-visual::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(227, 106, 58, 0.20), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(201, 160, 74, 0.14), transparent 45%);
  pointer-events: none;
}
.cc-popup-visual .v-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ember-soft);
  position: relative; z-index: 1;
}
.cc-popup-visual .v-title {
  font-family: var(--font-display);
  font-size: 34px; line-height: 1; letter-spacing: -0.02em;
  color: var(--cream); font-weight: 600; position: relative; z-index: 1;
  margin-top: var(--s-4);
}
.cc-popup-visual .v-mark {
  position: relative; z-index: 1;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; color: rgba(246, 239, 226, 0.5);
  margin-top: auto;
}
.cc-popup-body {
  padding: clamp(20px, 4vw, 40px);
  display: flex; flex-direction: column;
  justify-content: center; gap: var(--s-3);
}
.cc-popup-body h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 28px); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--ink);
  font-weight: 600;
}
.cc-popup-body p.sub {
  font-size: 14px; line-height: 1.5;
  color: var(--ink-soft); text-wrap: pretty;
}
.cc-popup-bullets {
  list-style: none; display: flex; flex-direction: column;
  gap: 6px; margin: 4px 0 4px;
}
.cc-popup-bullets li {
  position: relative; padding-left: 16px;
  font-size: 13.5px; line-height: 1.45; color: var(--ink-soft);
}
.cc-popup-bullets li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--ember);
}
.cc-popup-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(246, 239, 226, 0.92);
  color: var(--ink); cursor: pointer;
  display: grid; place-items: center; font-size: 22px; line-height: 1;
  box-shadow: 0 4px 14px -4px rgba(15,29,51,0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}
.cc-popup-close:hover { background: var(--paper); transform: rotate(90deg); }
@media (max-width: 740px) {
  .cc-popup-close {
    position: fixed; top: 14px; right: 14px;
    background: var(--ink); color: var(--paper);
    width: 44px; height: 44px;
    box-shadow: 0 6px 18px -4px rgba(0,0,0,0.5);
  }
  .cc-popup-close:hover { background: var(--ink); }
}

/* ============================================
   FORM (shared by popup + bonus pages)
============================================ */
.cc-form { display: flex; flex-direction: column; gap: var(--s-3); }
.cc-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3);
}
@media (max-width: 480px) {
  .cc-form-row { grid-template-columns: 1fr; }
}
.cc-field { display: flex; flex-direction: column; gap: 6px; }
.cc-field-label {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
/* Dark-rail version (used inside .cc-bonus-right and .cc-popup-visual context) */
.cc-bonus-right .cc-field-label { color: rgba(246, 239, 226, 0.6); }

.cc-field input,
.cc-field textarea {
  padding: 13px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  font-family: var(--font-sans); font-size: 16px;
  background: var(--paper); color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%; box-sizing: border-box;
  -webkit-appearance: none;
}
.cc-field input:focus, .cc-field textarea:focus { border-color: var(--ember); }
.cc-bonus-right .cc-field input {
  background: rgba(246, 239, 226, 0.06);
  border-color: rgba(246, 239, 226, 0.18);
  color: var(--cream);
}
.cc-bonus-right .cc-field input:focus {
  border-color: var(--ember-soft);
  background: rgba(246, 239, 226, 0.10);
}
.cc-bonus-right .cc-field input::placeholder { color: rgba(246, 239, 226, 0.4); }

.cc-submit {
  margin-top: 6px;
  padding: 15px 22px;
  background: var(--ember); color: var(--paper);
  border: none; border-radius: 999px;
  font-family: var(--font-sans); font-weight: 600;
  font-size: 15.5px; letter-spacing: -0.005em;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 22px -10px rgba(227,106,58,0.55);
}
.cc-submit:hover:not(:disabled) {
  transform: translateY(-1px); background: var(--ember-ink);
  box-shadow: 0 14px 30px -10px rgba(227,106,58,0.65);
}
.cc-submit:disabled { opacity: 0.7; cursor: progress; }
.cc-submit-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(246, 239, 226, 0.4);
  border-top-color: var(--paper);
  animation: cc-spin 0.7s linear infinite;
  display: none;
}
.cc-submit.loading .cc-submit-spinner { display: inline-block; }
.cc-submit.loading .cc-submit-label { opacity: 0.7; }
@keyframes cc-spin { to { transform: rotate(360deg); } }

.cc-form-fineprint {
  font-size: 12.5px; color: var(--slate);
  text-align: center; margin-top: 4px;
}
.cc-bonus-right .cc-form-fineprint { color: rgba(246, 239, 226, 0.5); }

.cc-form-error {
  font-size: 13.5px; color: var(--ember);
  background: rgba(227, 106, 58, 0.10);
  padding: 10px 14px; border-radius: 8px;
  margin-top: 4px;
}
.cc-bonus-right .cc-form-error {
  background: rgba(227, 106, 58, 0.18);
  color: var(--ember-soft);
}

/* success state */
.cc-success {
  text-align: center;
  padding: var(--s-5) var(--s-3);
  animation: cc-fadein 0.35s ease;
}
@keyframes cc-fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.cc-success-mark {
  width: 72px; height: 72px; margin: 0 auto var(--s-4);
  color: var(--ember);
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(227, 106, 58, 0.10);
}
.cc-bonus-right .cc-success-mark {
  color: var(--ember-soft);
  background: rgba(227, 106, 58, 0.18);
}
.cc-success-msg {
  font-family: var(--font-display);
  font-size: 22px; line-height: 1.2;
  letter-spacing: -0.015em; font-weight: 600;
  margin-bottom: 8px;
}
.cc-bonus-right .cc-success-msg { color: var(--cream); }
.cc-success-sub {
  font-size: 14px; color: var(--ink-soft);
}
.cc-bonus-right .cc-success-sub { color: rgba(246, 239, 226, 0.6); }
.cc-success-link {
  color: var(--ember); font-weight: 600;
  text-decoration: underline;
}
.cc-bonus-right .cc-success-link { color: var(--ember-soft); }


/* Keep async contact-form states honest even when component display rules exist. */
.cc-cform[hidden],
.cc-cform-success[hidden] {
  display: none !important;
}
