/* ============================================
   Cambridge Webworks — 2026 refresh
   A design layer loaded after style.css on every page.
   Keeps the navy + amber brand; adds softer shapes, depth,
   motion and the "story" components used on the home page.
   ============================================ */
:root {
  --ink: #0f172a;
  --paper: #f7f6f3;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius-lg: 22px;
  --shadow-soft: 0 1px 2px rgba(15,23,42,0.05), 0 18px 40px -18px rgba(15,23,42,0.22);
  --shadow-lift: 0 2px 4px rgba(15,23,42,0.05), 0 28px 56px -22px rgba(15,23,42,0.32);
}

/* ---------- Type ---------- */
h1 { letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.12; }
h3 { letter-spacing: -0.02em; }
.section-label { letter-spacing: 0.14em; color: var(--amber-dark); }
.section--navy .section-label, .section--navy-dark .section-label, .cta-section--dark .section-label, .hero .section-label, .page-hero .section-label { color: var(--amber); }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--grey { background: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
  padding: 0.8rem 1.55rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { box-shadow: 0 8px 20px -10px rgba(217,119,6,0.7); }
.btn-primary:hover { box-shadow: 0 14px 28px -12px rgba(217,119,6,0.8); }
.btn-secondary:hover { box-shadow: var(--shadow-soft); }

/* ---------- Navigation ---------- */
.nav { background: rgba(255,255,255,0.86); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); border-bottom-color: rgba(15,23,42,0.07); }
.nav__links a { position: relative; }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }
.nav__live { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav__live::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: rf-pulse 2.2s infinite;
}
@keyframes rf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Six links + the button don't fit until ~1024px: keep the menu button until then */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}
@media (min-width: 1024px) {
  .nav__mobile, .nav__mobile.open { display: none; }
}

/* ---------- Heroes: deep navy with drifting light ---------- */
.hero, .page-hero {
  background: radial-gradient(120% 90% at 10% 0%, #1e2a44 0%, var(--navy-dark) 55%, #0a0f1d 100%);
  isolation: isolate;
}
.hero::before, .hero::after, .page-hero::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  animation: rf-float 18s ease-in-out infinite alternate;
}
.hero::before, .page-hero::before { width: 520px; height: 520px; right: -140px; top: -180px; background: rgba(245,158,11,0.38); }
.hero::after { width: 420px; height: 420px; left: -160px; bottom: -220px; background: rgba(99,102,241,0.3); animation-delay: -8s; }
.page-hero::after { display: none; }
@keyframes rf-float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.08); }
  100% { transform: translate(30px, -20px) scale(0.95); }
}
.hero__shape { display: none; }
.hero h1, .page-hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
.hero h1 span, .page-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #fde68a 0%, var(--amber) 45%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead, .page-hero .lead { color: rgba(255,255,255,0.72); }
.hero__badge {
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}
.page-hero { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5rem); }
.rf-rise { opacity: 0; transform: translateY(18px); animation: rf-rise 0.9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rf-rise { to { opacity: 1; transform: none; } }

/* ---------- Cards: softer, lifted ---------- */
.service-card, .pricing-card, .example-card, .process-step, .contact-form-wrapper, .discovery-box, .reassurance, .step, .why-item {
  border-radius: var(--radius-lg);
}
.service-card, .example-card, .process-step, .pricing-card {
  border-color: rgba(15,23,42,0.08);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.2s;
}
.service-card:hover, .example-card:hover, .process-step:hover, .pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.pricing-card--featured { box-shadow: 0 0 0 3px rgba(245,158,11,0.18), var(--shadow-soft); }
.contact-form-wrapper { box-shadow: var(--shadow-soft); border-color: rgba(15,23,42,0.08); }
.form-input, .form-select, .form-textarea { border-radius: 12px; transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { box-shadow: 0 0 0 4px rgba(245,158,11,0.18); }
.service-card__icon, .example-card__icon { border-radius: 14px; }
.why-item { transition: transform 0.35s var(--ease), background 0.3s; }
.why-item:hover { transform: translateY(-4px); background: rgba(255,255,255,0.08); }
.section--navy, .cta-section--dark { background: radial-gradient(120% 120% at 50% 0%, #22304d 0%, var(--navy-dark) 65%); }

/* ---------- Scroll reveals ---------- */
.fade-up { transform: translateY(28px); filter: blur(4px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.fade-up.visible { filter: none; }
.rv { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer { background: #0a0f1d; }

/* ============================================
   Home: the transformation story
   ============================================ */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  max-width: 640px;
  position: relative;
}
.hero__stats div { border-left: 1px solid rgba(255,255,255,0.15); padding-left: 1rem; }
.hero__stats dt { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--white); line-height: 1.1; }
.hero__stats dd { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.35; }

.journey { background: var(--paper); padding: clamp(4rem, 8vw, 6rem) 0 2rem; }
.journey__head { max-width: 680px; margin-bottom: 1rem; }
.journey__head p { margin-top: 0.75rem; color: var(--text-muted); font-size: 1.05rem; }
.journey__map { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.journey__map a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.45rem 0.95rem 0.45rem 0.45rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(15,23,42,0.08);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.journey__map a:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.journey__map b {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 0.7rem; background: var(--ink); color: var(--white);
}

.chapter {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.chapter:last-child { border-bottom: 0; }
@media (min-width: 960px) {
  .chapter { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; }
  .chapter--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .chapter--flip .chapter__text { order: 2; }
}
.chapter__text > * { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.chapter__text.is-in > * { opacity: 1; transform: none; }
.chapter__text.is-in > :nth-child(2) { transition-delay: 0.08s; }
.chapter__text.is-in > :nth-child(3) { transition-delay: 0.16s; }
.chapter__text.is-in > :nth-child(4) { transition-delay: 0.24s; }
.chapter__text.is-in > :nth-child(n+5) { transition-delay: 0.32s; }
.chapter__num {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 0.9rem;
}
.chapter__num span {
  font-size: 0.75rem;
  color: var(--ink);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1.5px solid var(--amber);
  letter-spacing: 0;
}
.chapter h3 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; color: var(--ink); margin-bottom: 1rem; }
.chapter__body { font-size: 1.04rem; color: var(--text-muted); line-height: 1.7; }
.chapter__list { margin: 1.25rem 0 1.5rem; display: grid; gap: 0.45rem; }
.chapter__list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; color: var(--ink); font-weight: 500; }
.chapter__list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.chapter__link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--amber); padding-bottom: 2px; transition: gap 0.25s var(--ease); }
.chapter__link:hover { gap: 0.7rem; }
.chapter__visual { perspective: 1600px; min-width: 0; }
.chapter__visual > * {
  opacity: 0;
  transform: rotateX(10deg) rotateY(-8deg) translateY(60px) scale(0.94);
  filter: blur(8px);
  transform-origin: 50% 100%;
  transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease);
}
.chapter--flip .chapter__visual > * { transform: rotateX(10deg) rotateY(8deg) translateY(60px) scale(0.94); }
.chapter__visual.is-in > * { opacity: 1; transform: none; filter: none; }

/* Shared mock frame */
.mock {
  position: relative;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 1px 2px rgba(15,23,42,0.06), 0 30px 60px -24px rgba(15,23,42,0.35), 0 12px 24px -12px rgba(15,23,42,0.18);
  overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-bottom: 1px solid rgba(15,23,42,0.06); background: #fbfbfa; }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.mock__bar i:first-child { background: var(--amber); }
.mock__bar span { margin-left: 0.5rem; flex: 1; font-size: 0.72rem; color: var(--text-muted); background: var(--grey-100); border-radius: 999px; padding: 0.2rem 0.75rem; }
.mock__note { position: absolute; right: 0.8rem; bottom: 0.6rem; font-size: 0.65rem; color: var(--grey-400); }

/* 01 — the site builds itself */
.ms { padding: 1.1rem; }
.ms > * { opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.is-in .ms > * { opacity: 1; transform: none; }
.is-in .ms > :nth-child(1) { transition-delay: 0.5s; }
.is-in .ms > :nth-child(2) { transition-delay: 0.75s; }
.is-in .ms > :nth-child(3) { transition-delay: 1s; }
.ms-nav { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.ms-nav b { width: 70px; height: 12px; border-radius: 6px; background: var(--ink); }
.ms-nav span { width: 34px; height: 7px; border-radius: 4px; background: var(--grey-200); }
.ms-nav span:first-of-type { margin-left: auto; }
.ms-hero { position: relative; border-radius: 16px; padding: 1.4rem 1.2rem; min-height: 150px; background: linear-gradient(135deg, #1e293b, #0f172a); overflow: hidden; }
.ms-hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(245,158,11,0.35); filter: blur(30px); }
.ms-hero b { display: block; height: 14px; border-radius: 7px; background: rgba(255,255,255,0.9); width: 70%; margin-bottom: 0.5rem; }
.ms-hero b + b { width: 45%; background: var(--amber); }
.ms-hero p { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.25); width: 60%; margin: 0.9rem 0 0.4rem; }
.ms-hero p + p { width: 50%; margin-top: 0; }
.ms-hero em { display: inline-block; margin-top: 0.9rem; width: 92px; height: 26px; border-radius: 13px; background: var(--amber); }
.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 0.8rem; }
.ms-cards i { height: 64px; border-radius: 12px; background: var(--grey-100); border: 1px solid var(--grey-200); }
.ms-toast {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 16px 30px -12px rgba(15,23,42,0.6);
  opacity: 0;
  transform: translate(-50%, 16px) scale(0.95);
  transition: opacity 0.5s var(--ease), transform 0.6s cubic-bezier(.3,1.5,.5,1);
  transition-delay: 1.8s;
}
.ms-toast i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.is-in .ms-toast { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* 02 — getting found */
.msr { padding: 1.2rem; min-height: 330px; }
.msr-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--grey-200);
  box-shadow: 0 6px 18px -10px rgba(15,23,42,0.25);
  font-size: 0.92rem;
  color: var(--ink);
  min-height: 46px;
}
.msr-box svg { flex-shrink: 0; color: var(--grey-400); }
.msr-caret { width: 2px; height: 1.1em; background: var(--amber-dark); animation: rf-blink 1s steps(1) infinite; }
@keyframes rf-blink { 50% { opacity: 0; } }
.msr-list { position: relative; list-style: none; margin-top: 1.1rem; height: 216px; }
.msr-list li {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 64px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--grey-200);
  background: var(--white);
  transform: translateY(calc(var(--y) * 72px));
  opacity: 0;
  transition: transform 1s var(--ease), opacity 0.5s var(--ease), box-shadow 0.5s, border-color 0.5s;
}
.msr.typed .msr-list li { opacity: 1; }
.msr-list li i { width: 34px; height: 34px; border-radius: 10px; background: var(--grey-100); }
.msr-list li strong { display: block; font-size: 0.85rem; color: var(--ink); line-height: 1.2; }
.msr-list li small { display: block; font-size: 0.72rem; color: var(--text-muted); }
.msr-list li em { font-style: normal; font-size: 0.72rem; color: var(--amber-dark); letter-spacing: 0.05em; }
.msr-list li.you { border-color: var(--amber); }
.msr-list li.you i { background: linear-gradient(135deg, var(--amber), #f97316); }
.msr.ranked .msr-list li.you { box-shadow: 0 0 0 4px rgba(245,158,11,0.15), 0 18px 30px -16px rgba(217,119,6,0.6); }

/* 03 — show your work */
.mg { padding: 1.1rem; }
.mg__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
.mg__grid figure {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s var(--ease), transform 0.7s cubic-bezier(.3,1.4,.5,1);
}
.is-in .mg__grid figure { opacity: 1; transform: none; }
.mg__grid figure:nth-child(1) { background: linear-gradient(135deg, #334155, #0f172a); transition-delay: 0.45s; }
.mg__grid figure:nth-child(2) { background: linear-gradient(135deg, #f59e0b, #b45309); transition-delay: 0.55s; }
.mg__grid figure:nth-child(3) { background: linear-gradient(135deg, #94a3b8, #475569); transition-delay: 0.65s; }
.mg__grid figure:nth-child(4) { background: linear-gradient(135deg, #fde68a, #f59e0b); transition-delay: 0.75s; }
.mg__grid figure:nth-child(5) { background: linear-gradient(135deg, #1e293b, #334155); transition-delay: 0.85s; }
.mg__grid figure:nth-child(6) { background: linear-gradient(135deg, #e2e8f0, #94a3b8); transition-delay: 0.95s; }
.mg__grid figcaption { position: absolute; left: 0.5rem; bottom: 0.45rem; font-size: 0.62rem; font-weight: 700; color: rgba(255,255,255,0.92); text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.mg__review {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--grey-200);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: 1.25s;
}
.is-in .mg__review { opacity: 1; transform: none; }
.mg__review > i { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #cbd5e1, #64748b); }
.mg__stars { color: var(--amber); letter-spacing: 0.1em; font-size: 0.85rem; }
.mg__review p { font-size: 0.84rem; color: var(--ink); line-height: 1.45; max-width: none; }
.mg__review small { font-size: 0.72rem; color: var(--text-muted); }
.mg__review .mg__stars { color: var(--amber); }

/* 04 — stay fresh */
.mc { padding: 1.1rem; display: grid; gap: 0.6rem; }
.mc__msg {
  max-width: 86%;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.5s var(--ease), transform 0.6s cubic-bezier(.3,1.4,.5,1);
}
.mc__msg small { display: block; font-size: 0.68rem; opacity: 0.65; margin-bottom: 0.15rem; font-weight: 700; }
.mc__msg--them { background: var(--grey-100); color: var(--ink); border-bottom-left-radius: 4px; transition-delay: 0.5s; }
.mc__msg--us { margin-left: auto; background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; transition-delay: 1.3s; }
.is-in .mc__msg { opacity: 1; transform: none; }
.mc__typing { display: inline-flex; gap: 3px; margin-left: auto; padding: 0.6rem 0.8rem; border-radius: 14px; background: var(--grey-100); opacity: 0; transition: opacity 0.3s; transition-delay: 0.9s; }
.is-in .mc__typing { opacity: 1; animation: rf-hide 0.01s 1.3s forwards; }
@keyframes rf-hide { to { opacity: 0; height: 0; padding: 0; margin: 0; } }
.mc__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--grey-400); animation: rf-bounce 1s infinite; }
.mc__typing i:nth-child(2) { animation-delay: 0.15s; }
.mc__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes rf-bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }
.mc__month { margin-top: 0.4rem; padding: 0.9rem 1rem; border-radius: 16px; border: 1px solid var(--grey-200); background: var(--paper); }
.mc__month p { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.mc__month ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1rem; }
.mc__month li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; color: var(--grey-400); transition: color 0.4s; }
.mc__month li::before {
  content: '';
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--grey-200);
  transition: background 0.35s, border-color 0.35s;
  flex-shrink: 0;
}
.is-in .mc__month li { color: var(--ink); }
.is-in .mc__month li::before { background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: #22c55e; }
.is-in .mc__month li:nth-child(1), .is-in .mc__month li:nth-child(1)::before { transition-delay: 2s; }
.is-in .mc__month li:nth-child(2), .is-in .mc__month li:nth-child(2)::before { transition-delay: 2.25s; }
.is-in .mc__month li:nth-child(3), .is-in .mc__month li:nth-child(3)::before { transition-delay: 2.5s; }
.is-in .mc__month li:nth-child(4), .is-in .mc__month li:nth-child(4)::before { transition-delay: 2.75s; }

/* 05 — the admin runs itself (live ticker, also used as a teaser) */
.tk {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #0f1422;
  color: #e8ecf4;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 30px 60px -24px rgba(15,23,42,0.55), 0 12px 24px -12px rgba(15,23,42,0.3);
}
.tk__bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.tk__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.tk__bar i:first-child { background: var(--amber); }
.tk__bar strong { margin-left: 0.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk__bar span { font-size: 0.68rem; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 0.12rem 0.5rem; flex-shrink: 0; }
.tk__body { padding: 1rem; }
.tk__count { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-bottom: 0.75rem; }
.tk__count b { font-size: 1.4rem; color: var(--amber); font-variant-numeric: tabular-nums; margin-right: 0.35rem; display: inline-block; }
.tk__count b.tick { animation: rf-tick 0.45s cubic-bezier(.3,1.6,.5,1); }
@keyframes rf-tick { 40% { transform: scale(1.35); } }
.tk__list { position: relative; list-style: none; height: 292px; overflow: hidden; }
.tk__list::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, #0f1422); pointer-events: none; }
.tk__item {
  position: absolute;
  left: 0; right: 0;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  height: 64px;
  padding: 0 0.85rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transform: translateY(calc(var(--y) * 74px));
  transition: transform 0.7s var(--ease), opacity 0.6s var(--ease), background 0.8s;
}
.tk__item.new { animation: rf-in 0.7s var(--ease); background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.35); }
@keyframes rf-in { from { opacity: 0; transform: translateY(-30px) scale(0.96); } }
.tk__item > i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.08); color: var(--amber); }
.tk__item strong { display: block; font-size: 0.86rem; font-weight: 600; line-height: 1.25; }
.tk__item small { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.55); }
.tk__item em { font-style: normal; font-size: 0.7rem; color: #4ade80; font-weight: 700; }

/* Teaser band used on other pages */
/* AI page: the intro sits on top of the "see it working" teaser, one section */
.ai-intro-section { padding-top: clamp(3rem, 6vw, 4.5rem); }
.ai-intro { display: grid; gap: 1.25rem; align-items: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .ai-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; } }
.ai-intro__lead { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.035em; color: var(--ink); max-width: 16ch; }
.ai-intro__lead span { color: var(--amber-dark); }
.ai-intro__body p { color: var(--text-muted); }
.ai-intro__points { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.1rem; list-style: none; }
.ai-intro__points li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; font-weight: 600; color: var(--ink); padding: 0.4rem 0.85rem 0.4rem 0.6rem; border-radius: 999px; background: var(--paper); border: 1px solid rgba(15,23,42,0.07); }
.ai-intro__points li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.teaser {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 28px;
  background: radial-gradient(120% 120% at 0% 0%, #22304d 0%, var(--navy-dark) 60%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.teaser::before { content: ''; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: rgba(245,158,11,0.28); filter: blur(80px); z-index: -1; }
@media (min-width: 900px) { .teaser { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; } }
.teaser h2 { color: var(--white); margin-bottom: 0.9rem; }
.teaser p { color: rgba(255,255,255,0.72); max-width: 52ch; }
.teaser .btn-group { margin-top: 1.6rem; }
.teaser__eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.9rem; }
.teaser__eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: rf-pulse 2.2s infinite; }
.teaser .tk { box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7); }

/* Management band (websites page) */
.care { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .care { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.care__list { display: grid; gap: 0.6rem; margin: 1.25rem 0 1.75rem; }
@media (min-width: 560px) { .care__list { grid-template-columns: 1fr 1fr; } }
.care__list li { display: flex; gap: 0.6rem; font-size: 0.93rem; color: var(--ink); font-weight: 500; }
.care__list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ============================================
   Recent work: a wall of sites (websites page)
   ============================================ */
.wg { list-style: none; display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .wg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .wg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
/* phones: a row you swipe through, the next card peeking in */
@media (max-width: 699px) {
  .wg { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1.25rem; padding: 0.5rem 1.25rem 1.5rem; scroll-padding: 0 1.25rem; scrollbar-width: none; }
  .wg::-webkit-scrollbar { display: none; }
  .wg > li { scroll-snap-align: start; }
  .wg > li.rv { opacity: 1; transform: none; } /* cards off to the side never scroll into view vertically */
  .wg { padding-bottom: 1rem; }
  .wg + .wg-swipe { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
}
/* phones only: says the row goes sideways */
.wg-swipe { display: none; }
.wg-swipe__label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.wg-swipe__label b { display: inline-block; margin-left: 0.2rem; color: var(--amber-dark); animation: wg-nudge 1.3s ease-in-out infinite; }
.wg-swipe.done .wg-swipe__label b { animation: none; }
@keyframes wg-nudge { 50% { transform: translateX(5px); } }
.wg.nudge > li { animation: wg-peek 1.2s cubic-bezier(.45, 0, .25, 1); }
@keyframes wg-peek { 45% { transform: translateX(-56px); } }
.wg-dots { display: flex; gap: 6px; }
.wg-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(15,23,42,0.18); transition: width 0.35s var(--ease), background 0.35s; }
.wg-dots i.is-on { width: 22px; background: var(--amber); }

.wg-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  background: #121a2c;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15,23,42,0.08), 0 24px 50px -28px rgba(15,23,42,0.55);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.wg-card:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(15,23,42,0.08), 0 44px 70px -30px rgba(15,23,42,0.6); }
.wg-card:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.wg-stage {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #121a2c;
  background:
    radial-gradient(70% 85% at 82% 95%, color-mix(in srgb, var(--tint) 50%, transparent), transparent 70%),
    radial-gradient(60% 60% at 0% 0%, rgba(255,255,255,0.07), transparent 70%),
    #121a2c;
}
.wg-stage::after { /* the glow brightens on hover */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 82% 95%, color-mix(in srgb, var(--tint) 45%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.wg-card:hover .wg-stage::after { opacity: 1; }
.wg-browser {
  position: absolute;
  z-index: 1;
  left: 7%;
  top: 11%;
  width: 74%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 30px 50px -20px rgba(0,0,0,0.6);
  transform: perspective(1600px) rotateY(10deg) rotateX(4deg);
  transform-origin: 0 50%;
  transition: transform 0.7s var(--ease);
}
.wg-bar { display: flex; align-items: center; gap: 4px; height: 20px; padding: 0 9px; background: #f4f4f2; }
.wg-bar i { width: 6px; height: 6px; border-radius: 50%; background: #f87171; }
.wg-bar i:nth-child(2) { background: #fbbf24; }
.wg-bar i:nth-child(3) { background: #4ade80; }
.wg-bar b { margin-left: 8px; font-size: 9.5px; font-weight: 500; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #e9edf2; }
.wg-phone {
  position: absolute;
  z-index: 2;
  right: 6%;
  bottom: -16%;
  width: 22%;
  padding: 4px;
  border-radius: 16px;
  background: #0b0b0b;
  box-shadow: -12px 24px 40px -14px rgba(0,0,0,0.7);
  transform: perspective(1600px) rotateY(-8deg) rotateZ(2deg);
  transition: transform 0.7s var(--ease);
}
.wg-phone img { display: block; width: 100%; height: auto; border-radius: 12px; background: #e9edf2; }
.wg-card:hover .wg-browser { transform: perspective(1600px) translateY(-3%) scale(1.03); }
.wg-card:hover .wg-phone { transform: perspective(1600px) translateY(-14%); }
.wg-meta { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.25rem 1.1rem; border-top: 1px solid rgba(255,255,255,0.06); margin-top: auto; }
.wg-n { font-size: 0.75rem; font-weight: 800; color: var(--tint); font-variant-numeric: tabular-nums; }
.wg-txt { flex: 1; min-width: 0; }
.wg-txt strong { display: block; font-size: 1.05rem; line-height: 1.2; letter-spacing: -0.01em; }
.wg-txt small { display: block; margin-top: 0.15rem; font-size: 0.78rem; line-height: 1.35; color: rgba(255,255,255,0.6); }
.wg-go {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 1.05rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.wg-card:hover .wg-go { background: var(--amber); border-color: var(--amber); color: var(--navy-dark); transform: rotate(-45deg); }

/* ---------- The site viewer pop-up: scroll the real page yourself ---------- */
.pop.wv { width: min(1100px, calc(100% - 2rem)); max-height: min(94vh, 960px); }
.pop.wv .pop__panel { max-height: min(94vh, 960px); background: var(--paper); }
.wv .pop__head { padding: 1.35rem clamp(1.25rem, 3vw, 2rem) 1.2rem; padding-right: 4.5rem; }
.wv .pop__head::before { background: color-mix(in srgb, var(--tint, var(--amber)) 45%, transparent); }
.wv .pop__head h3 { font-size: clamp(1.35rem, 2.8vw, 1.9rem); }
.wv .pop__eyebrow { margin-bottom: 0.35rem; }
.wv__seg { display: none; }
.wv__stage {
  --h: min(56vh, 520px);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 2rem) 0.5rem;
}
.wv__stage.swap > * { animation: rf-swap 0.5s var(--ease); }
.wv__browser { flex: 1 1 auto; min-width: 0; max-width: 780px; border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid rgba(15,23,42,0.08); box-shadow: 0 30px 60px -30px rgba(15,23,42,0.45); }
.wv__bar { display: flex; align-items: center; gap: 0.45rem; height: 38px; padding: 0 0.9rem; background: #fbfbfa; border-bottom: 1px solid rgba(15,23,42,0.06); }
.wv__bar i { width: 9px; height: 9px; border-radius: 50%; background: #f87171; }
.wv__bar i:nth-child(2) { background: #fbbf24; }
.wv__bar i:nth-child(3) { background: #4ade80; }
.wv__bar span { margin-left: 0.6rem; flex: 1; font-size: 0.75rem; color: var(--text-muted); background: var(--grey-100); border-radius: 999px; padding: 0.22rem 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wv__scroll { position: relative; height: var(--h); overflow-y: auto; overscroll-behavior: contain; background: #e9edf2; scrollbar-width: thin; }
.wv__scroll img { display: block; width: 100%; height: auto; background: #e9edf2 no-repeat center top / 100% auto; }
.wv__phone { flex: 0 0 auto; width: calc((var(--h) + 38px) * 9 / 19); padding: 7px; border-radius: 30px; background: #0d0d0d; box-shadow: 0 30px 60px -24px rgba(15,23,42,0.6); }
.wv__phone .wv__scroll { height: calc(var(--h) + 24px); border-radius: 23px; scrollbar-width: none; }
.wv__phone .wv__scroll::-webkit-scrollbar { display: none; }
.wv__hint {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.85);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
  transform: translateX(-50%);
  backdrop-filter: blur(6px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.wv__hint span { display: inline-block; animation: wv-bob 1.4s ease-in-out infinite; }
@keyframes wv-bob { 50% { transform: translateY(3px); } }
.wv__stage.scrolled .wv__hint { opacity: 0; transform: translate(-50%, 8px); }
.wv__foot { padding: 1rem clamp(1.25rem, 3vw, 2rem) 1.5rem; }
.wv__foot p { color: var(--text-muted); font-size: 0.97rem; max-width: 70ch; }
.wv__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.9rem; }
.wv__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; }
.wv__tags li { font-size: 0.75rem; font-weight: 600; color: var(--navy-mid); padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--white); border: 1px solid rgba(15,23,42,0.08); }
.wv__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(15,23,42,0.08); }
.wv__nav button { font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid rgba(15,23,42,0.1); border-radius: 999px; padding: 0.5rem 1rem; cursor: pointer; transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.wv__nav button:hover { box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.wv__nav span { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 699px) {
  .pop.wv { width: 100%; }
  .wv__seg { display: flex; gap: 0.25rem; width: max-content; margin: 1rem auto 0; padding: 0.25rem; border-radius: 999px; background: var(--white); border: 1px solid rgba(15,23,42,0.08); }
  .wv__seg button { font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); background: none; border: 0; border-radius: 999px; padding: 0.4rem 1rem; cursor: pointer; }
  .wv__seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
  .wv__stage { --h: min(52vh, 460px); padding-top: 0.9rem; }
  .wv__stage[data-dev="phone"] .wv__browser, .wv__stage[data-dev="desk"] .wv__phone { display: none; }
  .wv__nav button { padding: 0.45rem 0.85rem; }
}

/* ============================================
   "Learn more" pop-ups (home page)
   ============================================ */
html.pop-open { overflow: hidden; }
.pop {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(900px, calc(100% - 2rem));
  max-width: none;
  max-height: min(88vh, 860px);
  background: transparent;
  overflow: visible;
}
.pop::backdrop { background: rgba(10,15,29,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: pop-fade 0.35s ease; }
.pop.is-closing::backdrop { animation: pop-fade 0.3s ease reverse forwards; }
@keyframes pop-fade { from { opacity: 0; } }
.pop__panel {
  position: relative;
  max-height: min(88vh, 860px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.6);
  animation: pop-in 0.6s cubic-bezier(.2, .9, .25, 1);
}
.pop.is-closing .pop__panel { animation: pop-out 0.3s ease forwards; }
.pop .pop__close { animation: pop-item 0.5s 0.25s var(--ease) both; }
.pop.is-closing .pop__close { opacity: 0; transition: opacity 0.15s; }
@keyframes pop-in { from { opacity: 0; transform: translateY(40px) scale(0.96); clip-path: inset(6% 6% 6% 6% round 28px); } to { clip-path: inset(0 0 0 0 round 28px); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(24px) scale(0.97); } }
.pop__head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 2.25rem clamp(1.5rem, 4vw, 2.75rem) 1.75rem;
  color: var(--white);
  background: radial-gradient(120% 140% at 0% 0%, #22304d 0%, var(--navy-dark) 65%);
}
.pop__head::before { content: ''; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(245,158,11,0.32); filter: blur(60px); z-index: -1; }
.pop__eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.6rem; }
.pop__head h3 { color: var(--white); font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -0.035em; line-height: 1.1; max-width: 22ch; }
.pop__head p { color: rgba(255,255,255,0.7); margin-top: 0.6rem; max-width: 60ch; }
.pop__body { padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.75rem); }
.pop__body > * { animation: pop-item 0.6s var(--ease) both; }
.pop__body > :nth-child(2) { animation-delay: 0.08s; }
.pop__body > :nth-child(3) { animation-delay: 0.16s; }
.pop__body > :nth-child(n+4) { animation-delay: 0.24s; }
@keyframes pop-item { from { opacity: 0; transform: translateY(14px); } }
.pop__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.3s var(--ease);
}
.pop__close:hover { background: rgba(255,255,255,0.22); transform: rotate(90deg); }
.pop__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15,23,42,0.08);
}
.pop__foot .btn-group { margin: 0; }
.pop__back { font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); background: none; border: 0; cursor: pointer; padding: 0.4rem 0; }
.pop__back:hover { color: var(--ink); }
.pop__note { font-size: 0.85rem; color: var(--text-muted); }

/* pop-up content blocks */
.pop-cards { display: grid; gap: 0.75rem; }
@media (min-width: 720px) { .pop-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pop-card { position: relative; padding: 1.2rem 1.2rem 1.3rem; border-radius: 18px; border: 1px solid rgba(15,23,42,0.08); background: var(--paper); }
.pop-card--featured { background: var(--ink); color: var(--white); border-color: var(--ink); }

.pop-card__tag { position: absolute; top: 1rem; right: 1rem; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-dark); background: var(--amber); padding: 0.18rem 0.55rem; border-radius: 999px; }
.pop-card h4 { font-size: 1.1rem; color: var(--ink); margin-bottom: 0.25rem; letter-spacing: -0.02em; }
.pop-card__best { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.pop-card ul, .pop-list { display: grid; gap: 0.4rem; }
.pop-card li, .pop-list li { display: flex; gap: 0.5rem; font-size: 0.86rem; color: var(--ink); line-height: 1.4; }
.pop-card li::before, .pop-list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px; margin-top: 2px; border-radius: 50%;
  background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.pop-card.pop-card--featured h4, .pop-card.pop-card--featured li { color: var(--white); }
.pop-card.pop-card--featured .pop-card__best { color: rgba(255,255,255,0.6); }
.pop-list { grid-template-columns: 1fr; }
@media (min-width: 640px) { .pop-list--2 { grid-template-columns: 1fr 1fr; } }
.pop-steps { display: grid; gap: 0.75rem; counter-reset: pop; }
@media (min-width: 720px) { .pop-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pop-steps li { list-style: none; padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--paper); border: 1px solid rgba(15,23,42,0.06); }
.pop-steps li::before { counter-increment: pop; content: '0' counter(pop); display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.3px var(--amber-dark); margin-bottom: 0.4rem; }
.pop-steps strong { display: block; color: var(--ink); margin-bottom: 0.2rem; }
.pop-steps span { font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }
.pop-sub { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 1.6rem 0 0.7rem; }
.pop-tiers { display: grid; gap: 0.5rem; }
.pop-tiers div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid rgba(15,23,42,0.06); font-size: 0.88rem; }
.pop-tiers div:last-child { border-bottom: 0; }
.pop-tiers strong { color: var(--ink); }
.pop-tiers span { color: var(--text-muted); }
.pop-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (min-width: 720px) { .pop-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pop-thumbs a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid rgba(15,23,42,0.08); background: var(--white); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.pop-thumbs a:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.pop-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.pop-thumbs span { display: block; padding: 0.5rem 0.65rem; font-size: 0.76rem; font-weight: 700; color: var(--ink); }
.pop-stages { display: grid; gap: 0.6rem; }
@media (min-width: 720px) { .pop-stages { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pop-stages div { padding: 1rem; border-radius: 16px; background: var(--paper); border: 1px solid rgba(15,23,42,0.06); }
.pop-stages p { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-dark); margin-bottom: 0.5rem; }
.pop-stages li { list-style: none; font-size: 0.82rem; color: var(--ink); line-height: 1.35; padding: 0.25rem 0; border-bottom: 1px solid rgba(15,23,42,0.06); }
.pop-stages li:last-child { border-bottom: 0; }
@media (max-width: 640px) {
  .pop { width: 100%; margin: auto 0 0; max-height: 92vh; }
  .pop__panel { max-height: 92vh; border-radius: 26px 26px 0 0; animation-name: pop-up; }
  .pop.is-closing .pop__panel { animation-name: pop-down; }
  @keyframes pop-up { from { transform: translateY(100%); } }
  @keyframes pop-down { to { transform: translateY(100%); } }
}

@media (max-width: 560px) {
  .hero__stats dd { font-size: 0.72rem; }
  .ms-hero { min-height: 120px; }
  .tk__list { height: 268px; }
  .tk__item { height: 58px; transform: translateY(calc(var(--y) * 66px)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .page-hero::before, .nav__live::before, .teaser__eyebrow::before, .msr-caret, .mc__typing i { animation: none; }
  .rf-rise, .rv, .fade-up, .chapter__text > *, .chapter__visual > *, .ms > *, .mg__grid figure, .mg__review, .mc__msg, .ms-toast { opacity: 1; transform: none; filter: none; transition: none; animation: none; }
  .ms-toast { transform: translate(-50%, 0); }
  .tk__item.new { animation: none; }
  .wg-card, .wg-browser, .wg-phone, .wv__stage.swap > *, .wv__hint span, .wg-swipe__label b, .pop__panel, .pop__body > *, .pop::backdrop { animation: none !important; }
}
