/* ============================================================
   WEXSEY — page-specific components
   ============================================================ */

/* ---------- HOME HERO (two column, chat mockup signature) ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 8.5rem 0 4rem; position: relative; overflow: hidden; background: var(--paper2); }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 420px at 10% 15%, rgba(232,0,176,.08) 0%, transparent 70%),
              radial-gradient(ellipse 520px 420px at 92% 85%, rgba(0,201,167,.09) 0%, transparent 70%),
              radial-gradient(ellipse 420px 320px at 55% 25%, rgba(124,58,237,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line2); border-radius: 99px; padding: .4rem 1rem; font-size: .78rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 1.8rem; box-shadow: var(--shadow-sm); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
.hero-sub { font-size: 1.08rem; color: var(--ink-soft); max-width: 480px; margin: 1.4rem 0 2.2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.4rem; }
.hero-stats { display: flex; gap: 2.6rem; flex-wrap: wrap; padding-top: 1.8rem; border-top: 1px solid var(--line2); }
.stat-num { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; }
.stat-num.landed { animation: statLand .6s ease; }
@keyframes statLand {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); }
  65% { transform: scale(.94); }
  100% { transform: scale(1); }
}
.stat-label { font-size: .76rem; color: var(--ink-soft); margin-top: .15rem; }

/* phone / chat mockup */
.phone { background: var(--ink); border-radius: 34px; padding: 12px; box-shadow: 0 30px 70px rgba(21,15,38,.28); max-width: 320px; margin: 0 auto; }
.phone-screen { background: #E8E1F6; border-radius: 24px; overflow: hidden; min-height: 480px; display: flex; flex-direction: column; }
.phone-bar { background: var(--grad); padding: .9rem 1rem; display: flex; align-items: center; gap: .6rem; color: #fff; }
.phone-bar .av { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.phone-bar b { font-size: .85rem; display: block; }
.phone-bar span { font-size: .68rem; opacity: .85; }
.phone-body { flex: 1; padding: 1.1rem .9rem; display: flex; flex-direction: column; gap: .55rem; justify-content: flex-end; background-image: radial-gradient(rgba(124,58,237,.06) 1px, transparent 1px); background-size: 14px 14px; }
.bub { max-width: 82%; padding: .6rem .85rem; border-radius: 14px; font-size: .8rem; line-height: 1.5; opacity: 0; transform: translateY(8px); animation: bubIn .5s ease forwards; }
.bub.in { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 4px; }
.bub.out { align-self: flex-end; background: linear-gradient(135deg, #DFF7EF, #D2F3EA); color: var(--ink); border-bottom-right-radius: 4px; }
@keyframes bubIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- Marquee & Business Cards ---------- */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Added padding-top to prevent the hover lift from getting cut off */
  padding-top: 1rem;
  padding-bottom: 2rem;
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.2rem;
  width: max-content;
  will-change: transform;
  cursor: grab;
  user-select: none; /* Prevents text highlighting when dragging */
  -webkit-user-select: none;
  touch-action: pan-y; /* Lets users scroll down the page vertically on mobile, but captures horizontal swipes */
}
.marquee-track:active {
  cursor: grabbing;
}

.biz-card { 
  width: 220px; /* Fixed width to keep the slider uniform */
  flex-shrink: 0; 
  padding: 1.8rem 1.6rem; 
  text-align: left; 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.biz-icon { 
  color: var(--violet); 
  background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(0,201,167,.1));
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem; 
}
.biz-icon i {
  width: 24px;
  height: 24px;
  stroke-width: 2px;
}
.biz-name { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.biz-eg { font-size: .8rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Pricing ---------- */
.pricing-wrap { max-width: 520px; margin: 0 auto; }
.pricing-card { background: #fff; border: 1.5px solid var(--line2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pricing-top { background: var(--grad); padding: 2.4rem 2.4rem 1.9rem; text-align: center; }
.pricing-label { font-size: .73rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: .6rem; }
.pricing-amount { font-family: var(--serif); font-size: clamp(3rem, 8vw, 3.9rem); font-weight: 600; line-height: 1; color: #fff; }
.pricing-amount sup { font-size: 1.4rem; vertical-align: super; }
.pricing-note { font-size: .85rem; color: rgba(255,255,255,.82); margin-top: .6rem; }
.pricing-body { padding: 1.9rem 2.4rem 0; }
.pricing-includes { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.1rem; }
.pricing-list { list-style: none; }
.pricing-list li { display: flex; gap: .7rem; font-size: .89rem; padding: .58rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.pricing-list li:last-child { border-bottom: none; }
.check { width: 21px; height: 21px; border-radius: 6px; flex-shrink: 0; background: linear-gradient(135deg, rgba(232,0,176,.12), rgba(0,201,167,.12)); display: flex; align-items: center; justify-content: center; font-size: .72rem; color: var(--violet); font-weight: 700; margin-top: 1px; }
.pricing-cta { padding: 1.7rem 2.4rem 2rem; }
.pricing-cta a { display: block; text-align: center; }

/* ---------- Calculator ---------- */
.calc-wrap { max-width: 640px; margin: 0 auto; background: #fff; border: 1.5px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.calc-top { padding: 2rem 2.2rem 0; }
.calc-top p.small { font-size: .84rem; color: var(--ink-soft); margin-top: .3rem; }
.calc-body { padding: 1.5rem 2.2rem 2rem; }
.calc-row { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; border-bottom: 1px solid var(--line); gap: 1rem; }
.calc-row:first-child { padding-top: 0; }
.calc-info b { font-size: .92rem; display: block; }
.calc-info span { font-size: .78rem; color: var(--ink-soft); }
.calc-price { font-weight: 700; font-size: .9rem; color: var(--violet); white-space: nowrap; }
.switch { position: relative; width: 44px; height: 25px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider-tog { position: absolute; inset: 0; background: var(--line2); border-radius: 99px; cursor: pointer; transition: background .25s; }
.slider-tog::before { content: ''; position: absolute; height: 19px; width: 19px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .25s; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.switch input:checked + .slider-tog { background: var(--grad); }
.switch input:checked + .slider-tog::before { transform: translateX(19px); }
.calc-total { background: var(--paper2); margin-top: 1.6rem; border-radius: 14px; padding: 1.4rem 1.6rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.calc-total .label { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.calc-total .amount { font-family: var(--serif); font-size: 2rem; font-weight: 600; }

/* ---------- Process timeline ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step-card { padding: 2rem 1.6rem; position: relative; }
.step-num { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.step-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.step-desc { font-size: .84rem; color: var(--ink-soft); line-height: 1.7; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1.5px solid var(--line); padding: 1.3rem 0; }
.faq-q { font-size: .94rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; user-select: none; background: none; border: none; width: 100%; text-align: left; color: var(--ink); font-family: var(--sans); }
.faq-icon { font-size: 1.3rem; color: var(--violet); transition: transform .3s; flex-shrink: 0; line-height: 1; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a { font-size: .88rem; color: var(--ink-soft); line-height: 1.8; max-height: 0; overflow: hidden; transition: max-height .4s ease, margin-top .3s; }
.faq-a.open { max-height: 320px; margin-top: .8rem; }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.6rem; }
.filter-btn { background: #fff; border: 1.5px solid var(--line2); border-radius: 99px; padding: .55rem 1.3rem; font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all .25s; }
.filter-btn:hover { border-color: var(--violet); color: var(--ink); }
.filter-btn.active { background: var(--grad); border-color: transparent; color: #fff; }
.port-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.port-card { overflow: hidden; transition: opacity .35s, transform .35s; }
.port-card.hide { display: none; }
.port-media { aspect-ratio: 16/10; background: var(--grad); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.port-media .tint { position: absolute; inset: 0; background: rgba(21,15,38,.14); }
.port-media .mono { font-family: var(--serif); font-size: 2.4rem; font-style: italic; color: #fff; position: relative; z-index: 1; letter-spacing: -0.01em; }
.port-tag-float { position: absolute; top: .9rem; left: .9rem; background: rgba(255,255,255,.92); border-radius: 99px; padding: .3rem .8rem; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); z-index: 2; }
.port-info { padding: 1.5rem 1.5rem 1.6rem; }
.port-info h3 { margin-bottom: .3rem; }
.port-loc { font-size: .76rem; color: var(--ink-soft); margin-bottom: .7rem; }
.port-desc { font-size: .86rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 1.1rem; }
.port-link { font-size: .82rem; font-weight: 700; color: var(--violet); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.port-link:hover { text-decoration: underline; }

/* ---------- Services page ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.feat-card { padding: 2rem; }
.feat-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, rgba(232,0,176,.1), rgba(124,58,237,.1)); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1.2rem; }
.feat-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.feat-desc { font-size: .85rem; color: var(--ink-soft); line-height: 1.75; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.rev { direction: rtl; }
.split.rev > * { direction: ltr; }
.split-visual { aspect-ratio: 4/3.2; border-radius: var(--radius); background: var(--grad); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.split-visual .mono { font-family: var(--serif); font-style: italic; color: rgba(255,255,255,.92); font-size: 1.4rem; text-align: center; padding: 2rem; }
.split h2 { margin-bottom: 1rem; }
.split ul { list-style: none; margin-top: 1.2rem; display: flex; flex-direction: column; gap: .7rem; }
.split ul li { font-size: .9rem; color: var(--ink-soft); display: flex; gap: .6rem; align-items: flex-start; }

.tier-note { max-width: 720px; margin: 0 auto; text-align: center; background: var(--paper3); border-radius: var(--radius); padding: 2.2rem 2rem; border: 1.5px solid var(--line2); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-card { padding: 2rem; }
.contact-icon { font-size: 1.6rem; margin-bottom: 1rem; }
.contact-card h3 { margin-bottom: .4rem; }
.contact-card p { font-size: .87rem; color: var(--ink-soft); margin-bottom: 1.1rem; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 7.5rem; min-height: auto; text-align: left; }
  .phone { max-width: 280px; }
  .split { grid-template-columns: 1fr; }
  .split.rev { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .biz-grid, .steps-grid, .feat-grid { grid-template-columns: 1fr; }
  .calc-row { flex-wrap: wrap; }
}