/* ============================================================================
   ClipAd — Homepage-only components (Stripe-calibrated)
   Loaded ONLY by views/layout.ejs, after marketing.css, with class="home" on
   <body>. The SHARED Stripe language (eyebrows, buttons, HoverArrow, hairlines,
   cards, page heroes, nav scroll state) lives in marketing.css — this file
   holds just the homepage's own sections (hx-* components + .home overrides).
   ========================================================================== */

.home {
  --hx-shadow-card: var(--shadow-sm);
  --hx-shadow-card-hover: var(--shadow-md);
  --hx-shadow-shot: 0 50px 100px -20px rgba(80, 40, 20, 0.28), 0 30px 60px -30px rgba(45, 26, 18, 0.32);
}
.home ::selection { background: rgba(196, 98, 45, 0.18); }

/* ============================================================================
   HERO — angled animated gradient canvas (the Stripe cut), dark type on warm
   ========================================================================== */
.hx-hero { position: relative; overflow: hidden; padding: 68px 0 84px; }

/* The canvas: a full-bleed panel skewed -6deg from its left edge, so its
   bottom edge climbs to the right and the cream page shows beneath the cut. */
.hx-canvas {
  position: absolute; top: -220px; left: 0; right: 0; height: 940px;
  transform: skewY(-6deg); transform-origin: 0 0;
  overflow: hidden; pointer-events: none;
}
.hx-grad {
  position: absolute; inset: 0;
  background:
    radial-gradient(52% 74% at 78% 24%, rgba(244, 183, 64, 0.80), rgba(244, 183, 64, 0) 64%),
    radial-gradient(44% 66% at 98% 58%, rgba(224, 123, 69, 0.50), rgba(224, 123, 69, 0) 68%),
    radial-gradient(50% 64% at 10% 14%, rgba(233, 162, 59, 0.30), rgba(233, 162, 59, 0) 66%),
    radial-gradient(36% 50% at 54% 86%, rgba(92, 17, 87, 0.12), rgba(92, 17, 87, 0) 72%),
    linear-gradient(96deg, #FAF0E1 2%, #F8E6C6 36%, #F7D9AE 70%, #F4CB9B 100%);
}
/* slow drift, à la the Stripe WebGL canvas — pure CSS approximation */
.hx-grad::after {
  content: ''; position: absolute; inset: -22%;
  background:
    radial-gradient(30% 42% at 68% 34%, rgba(224, 123, 69, 0.34), rgba(224, 123, 69, 0) 70%),
    radial-gradient(26% 38% at 34% 60%, rgba(244, 183, 64, 0.30), rgba(244, 183, 64, 0) 70%);
  animation: hxDrift 18s ease-in-out infinite alternate;
}
@keyframes hxDrift {
  from { transform: translate3d(-2.5%, -2%, 0) scale(1); }
  to   { transform: translate3d(2.5%, 2.5%, 0) scale(1.07); }
}

/* accent strips hugging the diagonal cut (the "stripes") */
.hx-stripe { position: absolute; height: 46px; }
.hx-stripe-1 { bottom: 0; left: 48%; right: 0; background: linear-gradient(90deg, rgba(196, 98, 45, 0), #C4622D 45%, #8B3A1A); opacity: 0.9; }
.hx-stripe-2 { bottom: 46px; left: 66%; right: 0; background: linear-gradient(90deg, rgba(244, 183, 64, 0), #F4B740 60%); opacity: 0.95; }
.hx-stripe-3 { bottom: 0; left: 0; width: 26%; background: linear-gradient(90deg, #E9A23B, rgba(233, 162, 59, 0)); opacity: 0.45; }

.hx-hero-inner {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center;
}

/* announcement pill (Stripe hero chip) */
.hx-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--accent-dark);
  background: rgba(255, 251, 244, 0.62); border: 1px solid rgba(139, 58, 26, 0.22);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 26px;
  text-decoration: none; transition: border-color 0.15s ease, background 0.15s ease;
}
.hx-pill:hover { border-color: rgba(139, 58, 26, 0.45); background: rgba(255, 251, 244, 0.9); }
.hx-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(196, 98, 45, 0.18); }

.hx-h1 {
  font-family: 'Season Serif', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(48px, 4.6vw, 66px); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.026em; color: var(--ink);
  margin-bottom: 24px;
}
.hx-h1 em {
  font-style: italic; color: var(--accent);
  background: linear-gradient(92deg, #8B3A1A 0%, #C4622D 42%, #E07B45 72%, #B4551F 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hx-sub { font-size: 18px; color: #59493F; max-width: 470px; line-height: 1.6; margin-bottom: 34px; }
.hx-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* hero stats — quiet row with hairline separators */
.hx-hero-stats { display: flex; align-items: flex-start; gap: 28px; margin-top: 54px; }
.hx-stat { min-width: 0; }
.hx-stat + .hx-stat { border-left: 1px solid rgba(45, 26, 18, 0.14); padding-left: 28px; }
.hx-stat .n { font-family: 'Season Serif', 'Cormorant Garamond', serif; font-size: 27px; font-weight: 700; color: var(--ink); line-height: 1; }
.hx-stat .l { font-size: 12.5px; color: #6B5949; margin-top: 7px; max-width: 150px; line-height: 1.45; }

/* hero media — clean product-shot card + floating app chips */
.hx-hero-media { position: relative; }
.hx-shot { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--hx-shadow-shot); }
.hx-shot img { display: block; width: 100%; height: auto; }
.hx-chip {
  position: absolute; z-index: 2; padding: 9px; border-radius: 24px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 24px 48px -12px rgba(45, 26, 18, 0.30), 0 2px 6px rgba(45, 26, 18, 0.08);
}
.hx-chip img { display: block; width: 100%; height: 100%; border-radius: 15px; }
.hx-chip-1 { width: 104px; height: 104px; top: -30px; left: -26px; transform: rotate(-7deg); }
.hx-chip-2 { width: 92px;  height: 92px;  bottom: -26px; left: 34px; transform: rotate(-10deg); }
.hx-chip-3 { width: 116px; height: 116px; top: 24%; right: -30px; transform: rotate(9deg); }

/* ============================================================================
   LOGO ROW + STATS (homepage variants of the shared components)
   ========================================================================== */
.hx-logos { padding: 68px 0 10px; }
.hx-logos p { text-align: center; font-size: 13.5px; color: var(--fg-muted); margin-bottom: 30px; letter-spacing: 0.01em; }
.hx-logo-row { display: flex; align-items: baseline; justify-content: center; gap: 18px 52px; flex-wrap: wrap; }
.hx-logo-row .logo {
  font-family: 'Season Serif', 'Cormorant Garamond', serif; font-weight: 700; font-size: 20px;
  color: #7A6355; opacity: 0.62; letter-spacing: 0.01em; transition: opacity 0.2s ease, color 0.2s ease;
}
.hx-logo-row .logo:hover { opacity: 1; color: var(--accent); }

.hx-stats-sec { padding: 72px 0 88px; }
.hx-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.hx-cell { padding-left: 26px; border-left: 1px solid var(--border); }
.hx-cell .big { font-family: 'Season Serif', 'Cormorant Garamond', serif; font-weight: 700; font-size: 42px; line-height: 1; color: var(--accent); letter-spacing: -0.01em; }
.hx-cell .lbl { font-size: 14px; color: var(--fg-muted); margin-top: 12px; line-height: 1.5; max-width: 210px; }

/* ============================================================================
   MARKETPLACE — left-aligned Stripe head; polish the saffron/purple cards
   ========================================================================== */
.home .marketplace { padding: 96px 0 104px; border-top: 1px solid var(--line-soft); }
.hx-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 52px; }
.hx-head-row .hx-body { margin-top: 2px; }
.hx-head-row .hx-link { flex: none; margin-bottom: 6px; }
.home .marketplace-grid { margin-top: 0; }
.home .market-col { border-radius: 20px; padding: 34px; box-shadow: 0 24px 60px -26px rgba(45, 26, 18, 0.36), 0 6px 18px -8px rgba(45, 26, 18, 0.14); }
.home .col-avatar { border-radius: 13px; }
.home .market-col h3 { font-size: 20px; }
.home .feature-panel { border-radius: 14px; padding: 18px 20px; }
.home .feature-list { gap: 12px; }
.home .feature-list li { font-size: 14px; line-height: 1.5; }
.hx-cardlink {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 20px;
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.creators-col .hx-cardlink { color: #45320D; }
.brands-col .hx-cardlink { color: #F4B740; }

/* ============================================================================
   FEATURE ROW (#ai) — Stripe feature module
   ========================================================================== */
.home #ai { padding: 96px 0; }
.home #ai .feature-copy h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.16; letter-spacing: -0.012em; margin: 10px 0 14px; }
.home #ai .feature-copy > p { font-size: 16.5px; line-height: 1.65; }
.home .feature-checks li { font-size: 15px; color: #4A3B31; }
.home .feature-checks .ck { background: rgba(196, 98, 45, 0.10); }
.home #ai .ai-engine-img { border-radius: 12px; box-shadow: 0 30px 60px -22px rgba(45, 26, 18, 0.28), 0 8px 20px -10px rgba(45, 26, 18, 0.14); }

/* ============================================================================
   FLOW — segmented control + numbered steps
   ========================================================================== */
.home .tabs { background: rgba(45, 26, 18, 0.05); border-color: transparent; padding: 4px; }
.home .tab-btn { font-size: 14px; padding: 8px 20px; color: #6B5949; }
.home .tab-btn.active { box-shadow: 0 2px 8px -1px rgba(196, 98, 45, 0.45); }
.home .flow-step .fn { width: 30px; height: 30px; font-size: 14px; box-shadow: 0 4px 10px -3px rgba(196, 98, 45, 0.55); }
.home .flow-step h5 { font-size: 16px; }
.home .flow-step p { font-size: 14px; line-height: 1.6; }
.home .flow-step::after { top: 33px; left: 42px; background: var(--border); }

/* ============================================================================
   OUTCOMES — white cards, hairline borders, restrained hover
   ========================================================================== */
.home .creator-outcomes { background: var(--surface); padding: 0 0 104px; }
.home .outcomes-grid { margin-top: 0; gap: 24px; }
.home .outcome-card {
  background: var(--card); border: 1px solid rgba(45, 26, 18, 0.08); border-radius: 14px;
  box-shadow: var(--hx-shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.home .outcome-card:hover { transform: translateY(-3px); box-shadow: var(--hx-shadow-card-hover); }
.home .outcome-visual { padding: 14px 14px 0; background: none; }
.home .outcome-img { border-radius: 8px; }
.home .outcome-text { padding: 22px 26px 26px; }
.home .outcome-text h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 8px; }
.home .outcome-text p { font-size: 14.5px; line-height: 1.62; }

/* head sits on the same tint zone as the flow section above it (which already
   carries 104px of bottom padding) */
.hx-outcomes-head { padding: 0 0 46px; background: var(--surface); }
.hx-outcomes-head .sec-head { margin-bottom: 0; }

/* ============================================================================
   SPOTLIGHT + TESTIMONIALS
   ========================================================================== */
.home .spot-photo { border-radius: 14px; }
.home .spot-card:hover .spot-photo { transform: translateY(-3px); box-shadow: var(--hx-shadow-card-hover); }
.home .spot-foot .nm { font-size: 16px; }
.home .spot-foot .rev { font-family: 'Season Serif', 'Cormorant Garamond', serif; font-size: 18px; color: var(--accent); }
.home .spot-foot .hd { font-size: 13px; }

.home .quote-card { padding: 38px; min-height: 272px; }
.home .quote-card .qq { font-size: 20px; line-height: 1.48; letter-spacing: -0.005em; }
.home .quote-by .nm { font-size: 14.5px; }
.home .quote-by .rl { font-size: 12.5px; }

/* ============================================================================
   REACH — dark angled band (Stripe "global scale")
   ========================================================================== */
.hx-dark { position: relative; padding: 150px 0 142px; }
.hx-dark::before {
  content: ''; position: absolute; left: 0; right: 0; top: 44px; bottom: 44px;
  background:
    radial-gradient(56% 72% at 84% 6%, rgba(196, 98, 45, 0.30), rgba(196, 98, 45, 0) 62%),
    radial-gradient(44% 60% at 6% 96%, rgba(244, 183, 64, 0.10), rgba(244, 183, 64, 0) 60%),
    linear-gradient(115deg, #241610 0%, #2C1A0F 55%, #33200F 100%);
  transform: skewY(-3deg);
}
.hx-dark-inner { position: relative; z-index: 1; }
.hx-dark .hx-eyebrow { color: #F4B740; }
.hx-dark h2 { color: #FFF9F1; }
.hx-dark .lead { color: rgba(255, 240, 226, 0.80); }
.hx-dark .hx-fine { color: rgba(255, 240, 226, 0.58); font-size: 15px; line-height: 1.7; }
.hx-dark .reach-chart {
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}

/* ============================================================================
   BRAND SAFETY — boxless feature grid (icon + bold lead + copy)
   ========================================================================== */
.home .brand-safety .grid-4 { gap: 40px 36px; }
.home .brand-safety .card { background: transparent; padding: 0; border-radius: 0; border: 0; box-shadow: none; }
.home .brand-safety .card:hover { transform: none; box-shadow: none; }
.home .brand-safety .card-ico { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 14px; background: rgba(196, 98, 45, 0.10); }
.home .brand-safety .card h4 { font-size: 15.5px; font-weight: 600; color: var(--heading); margin-bottom: 7px; }
.home .brand-safety .card p { font-size: 14.5px; line-height: 1.6; }

/* ============================================================================
   CLOSING — full-bleed angled gradient finale
   ========================================================================== */
.hx-closing { position: relative; padding: 168px 0 118px; margin-top: -8px; }
.hx-closing::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background:
    radial-gradient(58% 84% at 88% 2%, rgba(244, 183, 64, 0.40), rgba(244, 183, 64, 0) 60%),
    radial-gradient(48% 66% at 4% 100%, rgba(43, 15, 5, 0.35), rgba(43, 15, 5, 0) 62%),
    linear-gradient(112deg, #8B3A1A 0%, #B4551F 42%, #C4622D 68%, #D3742F 100%);
  clip-path: polygon(0 88px, 100% 0, 100% 100%, 0 100%);
}
.hx-closing-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; padding: 0 48px; text-align: center; }
.hx-closing .hx-kicker { font-size: 14.5px; font-weight: 600; color: #FFD98F; margin-bottom: 24px; }
.hx-closing h2 {
  font-family: 'Season Serif', 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.18;
  letter-spacing: -0.012em; color: #FFF9F1; margin-bottom: 24px;
}
.hx-closing .hx-closing-body { font-size: 17px; color: rgba(255, 244, 232, 0.88); line-height: 1.7; margin-bottom: 28px; max-width: 720px; margin-left: auto; margin-right: auto; }
.hx-closing .hx-vision {
  font-family: 'Season Serif', 'Cormorant Garamond', serif;
  font-size: 19.5px; font-style: italic; color: rgba(255, 231, 200, 0.95);
  line-height: 1.6; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hx-closing-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hx-closing .btn-white { color: #8B3A1A; }
.hx-closing .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.44); }
.hx-closing .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.10); }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .hx-stats-row { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .hx-head-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 880px) {
  .hx-hero { padding: 40px 0 72px; }
  .hx-hero-inner { grid-template-columns: 1fr; gap: 56px; padding: 0 22px; }
  .hx-canvas { top: -300px; height: 950px; }
  .hx-stripe { height: 36px; }
  .hx-stripe-2 { bottom: 36px; }
  .hx-h1 { font-size: clamp(42px, 10vw, 62px); }
  .hx-hero-media { margin-top: 8px; }
  .hx-hero-stats { flex-wrap: wrap; gap: 20px 24px; margin-top: 44px; }
  .hx-stat + .hx-stat { padding-left: 24px; }
  .hx-chip-1 { width: 78px; height: 78px; top: -20px; left: -8px; }
  .hx-chip-2 { width: 70px; height: 70px; bottom: -18px; left: 14px; }
  .hx-chip-3 { width: 86px; height: 86px; right: -12px; }
  .hx-logos { padding: 52px 0 0; }
  .hx-stats-sec { padding: 56px 0 64px; }
  .hx-outcomes-head { padding: 0 0 40px; }
  .home .creator-outcomes { padding: 0 0 72px; }
  .hx-dark { padding: 108px 0 100px; }
  .hx-dark::before { top: 24px; bottom: 24px; }
  .hx-closing { padding: 120px 0 84px; }
  .hx-closing::before { clip-path: polygon(0 44px, 100% 0, 100% 100%, 0 100%); }
  .hx-closing-inner { padding: 0 22px; }
}
@media (max-width: 560px) {
  .hx-stats-row { grid-template-columns: 1fr; }
  .hx-cell { padding-left: 22px; }
  .hx-hero-stats { flex-direction: column; gap: 18px; }
  .hx-stat + .hx-stat { border-left: none; padding-left: 0; border-top: 1px solid rgba(45, 26, 18, 0.12); padding-top: 18px; }
  .hx-stat .l { max-width: none; }
}

/* ============================================================================
   MOTION SAFETY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hx-grad::after { animation: none; }
  .home .outcome-card, .home .spot-photo { transition: none; }
}
