/* Smmology design layer: type, space, motion. Loaded after each page's own styles. */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
  --ink: #161B28;
  --brand: #404C70;
  --hair: rgba(64, 76, 112, .14);
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: #404C70; color: #fff; }

/* ---------- Typography ---------- */
h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.6rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.022em;
  font-weight: 600 !important;
  text-wrap: balance;
}
h2 {
  letter-spacing: -.018em;
  line-height: 1.06 !important;
  text-wrap: balance;
}
.section-title, section h2.font-serif, .cta-section h2 {
  font-size: clamp(2.4rem, 4.8vw, 4.2rem) !important;
  font-weight: 600 !important;
}
h3 { letter-spacing: -.01em; }
h1 em, h2 em { font-weight: 500; letter-spacing: -.01em; padding-right: .04em; }
p { text-wrap: pretty; }
.section-sub, .hero p, .hero-sub { font-size: clamp(1.05rem, 1.35vw, 1.22rem) !important; line-height: 1.7 !important; max-width: 38rem; }

/* Eyebrows: quiet label with a hairline, not a glowing pill */
.eyebrow, .eyebrow-pill, .section-label, .hero-badge {
  background: none !important; border: 0 !important; box-shadow: none !important;
  padding: 0 !important; border-radius: 0 !important;
  display: inline-flex !important; align-items: center; gap: .7rem;
  font-size: .72rem !important; font-weight: 600 !important; letter-spacing: .2em !important; text-transform: uppercase;
}
.eyebrow::before, .eyebrow-pill::before, .section-label::before {
  content: ''; width: 28px; height: 1px; background: currentColor; opacity: .55; display: inline-block;
}
.text-center .eyebrow, .text-center .eyebrow-pill, .text-center .section-label { justify-content: center; }
.hero-badge span { display: none !important; }

/* ---------- Space ---------- */
section { padding-top: clamp(96px, 11vw, 168px); padding-bottom: clamp(96px, 11vw, 168px); }
section.py-24, section.py-20 { padding-top: clamp(96px, 11vw, 160px) !important; padding-bottom: clamp(96px, 11vw, 160px) !important; }
.martini-divider { display: none !important; }

/* ---------- Navigation ---------- */
nav { transition: background .5s var(--ease-soft), height .5s var(--ease-out), box-shadow .5s var(--ease-soft), border-color .5s; }
nav.is-top { background: transparent !important; border-bottom-color: transparent !important; backdrop-filter: none !important; }
nav.is-scrolled { height: 60px !important; background: rgba(250, 249, 246, .78) !important; backdrop-filter: saturate(180%) blur(18px) !important; border-bottom: 1px solid var(--hair) !important; }
.nav-links a:not(.btn):not(.btn-pink) { position: relative; }
.nav-links a:not(.btn):not(.btn-pink)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-links a:not(.btn):not(.btn-pink):hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Buttons ---------- */
.btn, .btn-primary, .btn-outline, .btn-pink, .cta-btn, .summary-btn {
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .3s, color .3s, opacity .3s !important;
  will-change: transform;
}
.btn:hover, .btn-primary:hover, .btn-pink:hover, .cta-btn:hover { opacity: 1 !important; box-shadow: 0 14px 34px -12px rgba(64, 76, 112, .55); }
.btn:active, .btn-primary:active, .btn-pink:active, .cta-btn:active { transform: scale(.97) !important; }

/* ---------- Cards: lift + soft spotlight that follows the pointer ---------- */
.card, .addon, .result-card, .stage, .value-card, .post-card, .product-card, .testimonial-card, .smm-card {
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s !important;
  position: relative;
}
.js-spot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(144, 122, 154, .10), transparent 45%);
  transition: opacity .5s var(--ease-soft);
}
.js-spot:hover::after { opacity: 1; }
.card:hover, .addon:hover, .result-card:hover, .value-card:hover, .post-card:hover, .product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 30px 60px -30px rgba(22, 27, 40, .28) !important;
}
.card-popular:hover { box-shadow: 0 40px 80px -30px rgba(22, 27, 40, .55) !important; }

/* Images: slow zoom inside their frame */
.hero-visual, .about-photo, .photo-tile, .brand-tile { overflow: hidden; }
.hero-visual img, .about-photo img, .photo-tile img, .brand-tile img { transition: transform 1.4s var(--ease-out); }
.photo-tile:hover img, .brand-tile:hover img, .about-photo:hover img { transform: scale(1.045); }

/* ---------- Remove template tells ---------- */
.particle, .hero::before, .hero::after { display: none !important; }
.glow-card-wrap { padding: 0 !important; }
.glow-card-wrap::before { display: none !important; }
.glow-badge { animation: none !important; }
.gradient-text { background: none !important; -webkit-text-fill-color: currentColor !important; color: #C76A8F !important; }
.addon-icon, .value-icon { display: none !important; }
.hero { background: var(--cream, #FAF9F6) !important; }

/* ---------- Motion ---------- */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(6px);
  transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* Headlines rise word by word */
.js .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .w > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.15s var(--ease-out); transition-delay: var(--d, 0s); }
.js .split.is-in .w > span { transform: none; }

/* Hero image: curtain reveal, then scroll-linked drift */
.js .hero-visual { clip-path: inset(12% 10% 12% 10% round 28px); transition: clip-path 1.6s var(--ease-out) .25s; }
.js.is-loaded .hero-visual { clip-path: inset(0 0 0 0 round 28px); }
.js .hero-visual img { transform: scale(1.18) translate3d(0, var(--py, 0px), 0); transition: transform 1.8s var(--ease-out) .25s; }
.js.is-loaded .hero-visual img { transform: scale(1.06) translate3d(0, var(--py, 0px), 0); }
.js.is-loaded.is-scrolling .hero-visual img { transition: none; }

/* Scroll progress hairline */
.scroll-line { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #404C70, #907A9A 70%, #EDA4BF); z-index: 10000; pointer-events: none; }
#progress-bar { display: none !important; }

/* Quote mark instead of star ratings */
.has-quote-mark::before { content: '\201C'; display: block; font-family: 'Urbanist', serif; font-size: 5rem; line-height: .6; color: #EDA4BF; margin-bottom: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .w > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .hero-visual { clip-path: none !important; }
  .js .hero-visual img { transform: none !important; }
}

/* Hand the old /method fade-up over to the shared reveal */
.js .fade-up { opacity: 1 !important; transform: none !important; }

/* Hero: give the headline room */
.hero-inner { grid-template-columns: 1.35fr .85fr !important; gap: clamp(40px, 5vw, 80px) !important; align-items: center; }
.hero-inner h1 { font-size: clamp(2.8rem, 5vw, 4.9rem) !important; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr !important; } }

/* Small screens: footer links wrap instead of widening the page */
.footer-links { flex-wrap: wrap !important; }
@media (max-width: 600px) { .footer-links { gap: 14px 20px !important; } .footer-inner { flex-direction: column; align-items: flex-start !important; } }

/* ---------- Icons: one line set (Lucide, ISC), same size and stroke everywhere ---------- */
.addon-icon.ico-tile, .value-icon.ico-tile { display: inline-flex !important; }
.ico-tile {
  width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  color: #404C70; background: linear-gradient(180deg, #fff, #F3F2F6); border: 1px solid rgba(64, 76, 112, .14);
  box-shadow: 0 1px 0 #fff inset, 0 6px 16px -10px rgba(22, 27, 40, .35);
  font-size: 0; margin-bottom: 18px;
  transition: transform .6s var(--ease-out), color .3s, background .3s;
}
.ico-tile .ico { width: 22px; height: 22px; }
.ico-tile.ico-lg { width: 60px; height: 60px; border-radius: 18px; }
.ico-tile.ico-lg .ico { width: 28px; height: 28px; }
.card:hover .ico-tile, .addon:hover .ico-tile, .value-card:hover .ico-tile, .js-spot:hover .ico-tile { transform: translateY(-2px) rotate(-4deg); color: #6E5A78; }
.dark-section .ico-tile, [style*="background:#404C70"] .ico-tile { color: #F4BFD2; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }

/* ---------- Heading font: Urbanist (SIL OFL), body stays Outfit ---------- */
:root { --hf: 'Urbanist', system-ui, sans-serif; }
:is(h1, h2, h3, h4, .font-serif, .nav-logo, .footer-logo, .card-price, .stat-num, .stat-big, .result-num, .about-name, .dialog-price, .stage-label, blockquote, .big-stat-num, .kit-price, .section-title, .value-title, .addon-name, .summary-due strong, .summary-totals strong) { font-family: var(--hf) !important; }
:is(h1, h2) { font-weight: 700 !important; letter-spacing: -.035em; line-height: 1 !important; }
:is(h1, h2) em { font-weight: 500; }
h3 { font-weight: 700; letter-spacing: -.02em; }
.nav-logo, .footer-logo { font-weight: 800 !important; letter-spacing: -.02em; }

/* ---------- Mobile menu ---------- */
.nav-burger { display: none; }
@media (max-width: 900px) {
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-left: auto; background: none; border: 0; cursor: pointer; position: relative; z-index: 102; }
  .nav-burger span { display: block; width: 22px; height: 1.5px; background: #404C70; margin: 0 auto; transition: transform .45s var(--ease-out); }
  .menu-open .nav-burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .nav-burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  nav .nav-links { display: flex !important; position: fixed; inset: 0; z-index: 101; flex-direction: column; align-items: flex-start !important; justify-content: center; gap: 22px !important; padding: 96px 32px 48px; background: #FAF9F6; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out), visibility .45s; }
  .menu-open nav .nav-links { opacity: 1; visibility: visible; transform: none; }
  nav .nav-links a:not(.btn):not(.btn-pink) { font-family: var(--hf); font-size: 2rem !important; color: #161B28 !important; font-weight: 500; }
  nav .nav-links .btn, nav .nav-links .btn-pink { margin-top: 12px; font-size: 1rem !important; padding: 14px 26px !important; }
  .menu-open { overflow: hidden; }
}

/* ---------- Sticky CTA on phones ---------- */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta { display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; padding: 8px; border-radius: 999px; background: rgba(250, 249, 246, .9); backdrop-filter: saturate(180%) blur(16px); border: 1px solid rgba(64, 76, 112, .14); box-shadow: 0 18px 40px -18px rgba(22, 27, 40, .45); transform: translateY(140%); transition: transform .6s var(--ease-out); }
  .mobile-cta.is-shown { transform: none; }
  .mobile-cta a { flex: 1; text-align: center; padding: 13px 10px; border-radius: 999px; font: 600 14px/1 'Outfit', sans-serif; text-decoration: none; }
  .mobile-cta .mc-primary { background: #404C70; color: #fff; }
  .mobile-cta .mc-secondary { color: #404C70; border: 1px solid rgba(64, 76, 112, .3); }
  .menu-open .mobile-cta { transform: translateY(140%); }
  footer { padding-bottom: 96px !important; }
}

/* ---------- Proof next to the first call to action ---------- */
.hero p.hero-proof, .hero-proof { margin-top: 28px; padding-left: 16px; border-left: 2px solid #EDA4BF; font-family: var(--hf); font-style: italic; font-size: 1.15rem !important; color: #161B28; max-width: 30rem; line-height: 1.45 !important; }
.hero-proof span { display: block; margin-top: 6px; font: 500 .8rem/1.4 'Outfit', sans-serif; font-style: normal; color: #555; letter-spacing: .02em; }


/* Proof beside the Strategist price */
.price-proof { margin: 0 auto; padding: 28px 32px; border-radius: 20px; background: #fff; border: 1px solid rgba(64, 76, 112, .12); text-align: left; }
.price-proof blockquote { font-family: var(--hf); font-size: 1.25rem; line-height: 1.45; color: #161B28; margin: 0 0 10px; }
.price-proof figcaption { font-size: .85rem; color: #555; margin-bottom: 16px; }
.price-proof-result { font-size: .95rem; color: #161B28; padding-top: 16px; border-top: 1px solid rgba(64, 76, 112, .12); margin: 0; }
.price-proof-note { font-size: .8rem; color: #555; margin: 6px 0 0; }

/* Case study */
.cs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 56px; }
.cs-stats > div { background: #fff; border: 1px solid rgba(64, 76, 112, .12); border-radius: 18px; padding: 22px; }
.cs-stats strong { display: block; font-family: var(--hf); font-size: 1.6rem; line-height: 1.1; color: #404C70; margin-bottom: 8px; }
.cs-stats span { font-size: .85rem; color: #555; line-height: 1.5; }
@media (max-width: 700px) { .cs-stats { grid-template-columns: 1fr; } }
.case-link { font-weight: 600; color: #404C70; text-decoration: none; border-bottom: 1px solid rgba(64, 76, 112, .35); padding-bottom: 2px; }
.case-link:hover { border-color: #404C70; }
