/* ==========================================================================
   Global Psychometrics Cafe — design system
   ========================================================================== */

/* Hide Alpine-controlled elements (e.g. the video lightbox) until Alpine
   initialises, so they never flash on load. */
[x-cloak] { display: none !important; }

/* Video-session cards + player. Defined globally (not just on core pages) so
   the buyer's "Your video sessions" area on My Tests renders consistently. */
.vs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.4rem; }
.vs-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.vs-thumb {
  position: relative; height: 132px; display: grid; place-items: center;
  background: linear-gradient(135deg, #312e81, #131032); overflow: hidden;
}
.vs-thumb-btn { appearance: none; -webkit-appearance: none; font: inherit; color: inherit; }
.vs-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(340px 140px at 80% -20%, rgba(124, 108, 246, .45), transparent 65%);
}
.vs-play {
  position: relative; z-index: 1;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); border: 1.5px solid rgba(255, 255, 255, .4);
  color: #fff; backdrop-filter: blur(4px);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), background .3s;
}
.vs-card:hover .vs-play { transform: scale(1.14); background: rgba(45, 212, 191, .35); }
.vs-lock {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(20, 18, 43, .72); color: #e3e0ff;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .28rem .65rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.vs-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.vs-body h3 { font-size: 1rem; }
.vs-body .vs-meta { font-size: .8rem; font-weight: 600; opacity: .7; }
.vs-body p { font-size: .86rem; }
.btn-xs { padding: .25rem .6rem; font-size: .78rem; }

:root {
  --ink: #14122b;
  --ink-soft: #4b4769;
  --ink-faint: #807c9e;
  --surface: #ffffff;
  --surface-2: #f6f5fc;
  --surface-3: #edebfa;
  --line: #e4e1f5;

  --primary: #5b4bdb;
  --primary-strong: #4737c4;
  --primary-soft: #ece9ff;
  --accent: #0ea5a4;
  --accent-soft: #d9f6f4;
  --gold: #f59e0b;
  --danger: #e11d48;
  --success: #059669;

  --grad-primary: linear-gradient(135deg, #6d5cf0 0%, #4737c4 55%, #3b2fa8 100%);
  --grad-vivid: linear-gradient(120deg, #7c6cf6, #2dd4bf);
  --grad-text: linear-gradient(100deg, #8b7cff 0%, #5eead4 100%);

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(34, 25, 110, 0.07);
  --shadow-md: 0 10px 30px rgba(34, 25, 110, 0.12);
  --shadow-lg: 0 24px 60px rgba(24, 16, 90, 0.18);

  --nav-height: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { color: var(--ink-soft); }

a { color: var(--primary); text-decoration: none; }

img { max-width: 100%; display: block; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

main { min-height: 60vh; }

::selection { background: #cdc5ff; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */

.navbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-height);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.navbar.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.navbar-inner { display: flex; align-items: center; gap: 2rem; width: min(1280px, 94vw); margin-inline: auto; }

.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--primary-soft);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text {
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem;
  color: var(--ink); letter-spacing: -0.01em; white-space: nowrap;
}
.brand-text em { font-style: normal; background: linear-gradient(100deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: .95rem; position: relative; padding: .3rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--grad-vivid); border-radius: 2px; transition: width .3s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links .nav-highlight { color: var(--accent); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }

.cart-button {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px; color: var(--ink-soft);
  transition: background .25s, color .25s, transform .2s;
}
.cart-button:hover { background: var(--surface-3); color: var(--primary); transform: translateY(-1px); }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--grad-primary); color: #fff;
  font-size: .68rem; font-weight: 700; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(71, 55, 196, .45);
}

.avatar-button { background: none; border: 0; cursor: pointer; }
.avatar {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad-primary); color: #fff; font-weight: 700; font-family: var(--font-display);
  box-shadow: var(--shadow-sm); transition: transform .25s;
}
.avatar-button:hover .avatar { transform: scale(1.07); }

.account-menu { position: relative; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); width: 240px; padding: .5rem; z-index: 110;
}
.dropdown-header { padding: .6rem .8rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; display: grid; }
.dropdown-header small { color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; }
.dropdown a, .dropdown-logout {
  display: block; width: 100%; text-align: left; padding: .55rem .8rem;
  border-radius: var(--radius-sm); color: var(--ink-soft); font-size: .92rem; font-weight: 500;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.dropdown a:hover, .dropdown-logout:hover { background: var(--surface-2); color: var(--ink); }
.dropdown-logout { color: var(--danger); }

.hamburger { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: .3s; }

/* --------------------------------------------------------------------------
   Buttons & badges
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: .8rem 1.7rem; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .25s;
  text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--grad-primary); color: #fff;
  box-shadow: 0 8px 22px rgba(71, 55, 196, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(71, 55, 196, .45); }

.btn-accent {
  background: linear-gradient(135deg, #14b8a6, #0d9488); color: #fff;
  box-shadow: 0 8px 22px rgba(13, 148, 136, .35);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(13, 148, 136, .45); }

.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--primary-strong); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-sm { padding: .55rem 1.2rem; font-size: .88rem; }
.btn-lg { padding: 1rem 2.3rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-strong);
}
.badge-accent { background: var(--accent-soft); color: #0f766e; }
.badge-gold { background: #fef3c7; color: #b45309; }
.badge-success { background: #d1fae5; color: #047857; }
.badge-danger { background: #ffe4e6; color: #be123c; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Sections & hero helpers
   -------------------------------------------------------------------------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--surface-2); }

.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head .badge { margin-bottom: 1rem; }
.section-head p { margin-top: .8rem; font-size: 1.05rem; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.grad-text-dark {
  background: linear-gradient(100deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-dark {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 75% -10%, #4c3fd1 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 110%, #0f766e33 0%, transparent 60%),
              linear-gradient(160deg, #191636 0%, #221d4f 55%, #1a1740 100%);
}
.hero-dark h1, .hero-dark h2, .hero-dark h3 { color: #fff; }
.hero-dark p { color: #c7c3e8; }

.blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none;
  animation: blob-float 14s ease-in-out infinite alternate;
}
.blob-1 { width: 420px; height: 420px; background: #6d5cf0; top: -120px; right: -80px; }
.blob-2 { width: 360px; height: 360px; background: #14b8a6; bottom: -140px; left: -100px; animation-delay: -5s; }
.blob-3 { width: 240px; height: 240px; background: #f59e0b; top: 40%; left: 55%; opacity: .25; animation-delay: -9s; }

@keyframes blob-float {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.12); }
}

.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.grid-dots {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #d5d0f2; }

.card-static:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }

.feature-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 1.1rem;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }
.feature-icon.teal { background: var(--accent-soft); color: var(--accent); }
.feature-icon.gold { background: #fef3c7; color: var(--gold); }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.6rem; }

.product-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.product-card-art {
  position: relative; height: 150px; display: grid; place-items: center;
  background: var(--grad-primary); overflow: hidden;
}
.product-card-art.teal { background: linear-gradient(135deg, #0d9488, #115e59); }
.product-card-art.gold { background: linear-gradient(135deg, #f59e0b, #b45309); }
.product-card-art.night { background: linear-gradient(135deg, #312e81, #111032); }
.product-card-art svg { color: rgba(255,255,255,.92); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.product-card:hover .product-card-art svg { transform: scale(1.15) rotate(-4deg); }
.product-card-art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 160px at 80% -20%, rgba(255,255,255,.28), transparent 60%);
}

.product-ribbon {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--primary-strong);
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}

.product-card-body { display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem; flex: 1; }
.product-card-body h3 { font-size: 1.18rem; }
.product-card-body .tagline { font-size: .92rem; min-height: 2.6em; }

.price-row { display: flex; align-items: baseline; gap: .6rem; margin-top: auto; padding-top: .6rem; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.price-mrp { color: var(--ink-faint); text-decoration: line-through; font-size: .95rem; }
.price-off { color: var(--success); font-weight: 700; font-size: .85rem; }

.meta-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.meta-list .chip { font-size: .78rem; padding: .3rem .7rem; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 2.2rem;
}

.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field .help { font-size: .8rem; color: var(--ink-faint); margin-top: .3rem; }
.field .error { font-size: .82rem; color: var(--danger); margin-top: .3rem; font-weight: 500; }

.input, input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], input[type="password"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--surface-2); border: 2px solid transparent; border-radius: var(--radius-sm);
  padding: .8rem 1rem; outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(91, 75, 219, .12);
}
textarea { min-height: 130px; resize: vertical; }

.radio-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill span {
  display: inline-block; padding: .55rem 1.3rem; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); border: 2px solid transparent; font-weight: 600; font-size: .92rem;
  color: var(--ink-soft); transition: .25s;
}
.radio-pill input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-strong); }

/* OTP inputs */
.otp-row { display: flex; gap: .6rem; justify-content: center; }
.otp-input {
  width: 52px; height: 60px; text-align: center; font-size: 1.5rem; font-weight: 700;
  font-family: var(--font-display); border-radius: var(--radius-sm);
  background: var(--surface-2); border: 2px solid transparent;
}
.otp-input:focus { border-color: var(--primary); background: #fff; }

/* --------------------------------------------------------------------------
   Slot picker
   -------------------------------------------------------------------------- */

.slot-day-tabs { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .5rem; }
.slot-day-tab {
  flex: 0 0 auto; text-align: center; padding: .7rem 1.1rem; border-radius: var(--radius);
  border: 2px solid var(--line); background: #fff; cursor: pointer; min-width: 86px;
  font-family: var(--font-display); transition: .25s;
}
.slot-day-tab .dow { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.slot-day-tab .dom { display: block; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.slot-day-tab:hover { border-color: var(--primary); transform: translateY(-2px); }
.slot-day-tab.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: var(--shadow-sm); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; margin-top: 1.2rem; }
.slot-chip {
  position: relative; text-align: center; padding: .75rem .5rem; border-radius: var(--radius-sm);
  border: 2px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 600; font-size: .92rem; color: var(--ink-soft);
  transition: transform .2s, border-color .2s, background .2s, color .2s;
}
.slot-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.slot-chip.selected {
  border-color: var(--accent); background: var(--accent); color: #fff;
  box-shadow: 0 8px 18px rgba(13, 148, 136, .35);
}
.slot-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }

/* --------------------------------------------------------------------------
   Checkout steps / progress
   -------------------------------------------------------------------------- */

.steps { display: flex; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: .55rem; color: var(--ink-faint); font-weight: 600; font-size: .9rem; }
.step .dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink-faint); font-weight: 700; font-size: .85rem;
  transition: .3s;
}
.step.done .dot, .step.active .dot { background: var(--grad-primary); color: #fff; box-shadow: 0 4px 12px rgba(71,55,196,.35); }
.step.active { color: var(--ink); }
.step-sep { width: 36px; height: 2px; background: var(--line); border-radius: 2px; align-self: center; }

/* --------------------------------------------------------------------------
   Tables & misc
   -------------------------------------------------------------------------- */

.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint); padding: .7rem 1rem; border-bottom: 2px solid var(--line);
}
.table td { padding: .95rem 1rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.table tr:last-child td { border-bottom: 0; }

.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state .feature-icon { margin-inline: auto; width: 72px; height: 72px; border-radius: 22px; }
.empty-state h3 { margin: .6rem 0 .4rem; }

.divider { height: 1px; background: var(--line); margin: 1.4rem 0; border: 0; }

.stat-number { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.9rem); }

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */

.toast-stack {
  position: fixed; top: calc(var(--nav-height) + 14px); right: 18px; z-index: 200;
  display: flex; flex-direction: column; gap: .7rem; max-width: 380px;
}
.toast {
  display: flex; align-items: flex-start; gap: .8rem;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: .9rem 1rem; font-size: .92rem; font-weight: 500; color: var(--ink);
  animation: toast-in .45s cubic-bezier(.34,1.56,.64,1);
}
.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--gold); }
.toast-close { background: none; border: 0; font-size: 1.1rem; cursor: pointer; color: var(--ink-faint); line-height: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.toast.hide { animation: toast-out .4s forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }

/* --------------------------------------------------------------------------
   Reveal-on-scroll animations
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity .7s, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity .7s, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity .6s, transform .6s cubic-bezier(.34,1.56,.64,1); }
.reveal-scale.in { opacity: 1; transform: none; }

[data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s cubic-bezier(.22,.61,.36,1); }
[data-stagger].in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale, [data-stagger] > * { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { position: relative; margin-top: 4rem; background: #16132f; color: #b6b2d8; overflow: hidden; }
.footer-glow {
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(109, 92, 240, .35), transparent);
  pointer-events: none;
}
.footer-grid {
  position: relative; display: grid; gap: 2.5rem;
  grid-template-columns: 2fr 1fr 1fr 1.4fr; padding: 3.5rem 0 2.5rem;
}
.footer .brand-text { color: #fff; font-size: 1.1rem; }
.footer-brand p { color: #8d88b8; margin-top: .9rem; font-size: .92rem; max-width: 34ch; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer a { display: block; color: #b6b2d8; padding: .28rem 0; font-size: .92rem; transition: color .2s, transform .2s; }
.footer a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0 1.6rem; font-size: .85rem; color: #8d88b8; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 920px) {
  .nav-links {
    position: fixed; inset: var(--nav-height) 0 auto 0; z-index: 99;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .4s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links a { padding: 1rem 6vw; border-top: 1px solid var(--surface-3); }
  .nav-links a::after { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .brand-text { font-size: .9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .otp-input { width: 44px; height: 54px; }
}

/* --------------------------------------------------------------------------
   Brand logo, services nav dropdown, footer contact (live-site parity)
   -------------------------------------------------------------------------- */

.brand-logo {
  width: 44px; height: 44px; border-radius: 50%; object-fit: contain;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }

.nav-item { position: relative; display: flex; align-items: center; }
.nav-services-link { display: inline-flex; align-items: center; gap: .3rem; }
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); left: -1rem; z-index: 120;
  width: 340px; padding: .55rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid; gap: .1rem;
}
.nav-dropdown::before {
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav-dropdown a {
  display: grid; gap: .1rem; padding: .55rem .8rem; border-radius: var(--radius-sm);
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a strong { color: var(--ink); font-size: .9rem; font-weight: 600; }
.nav-dropdown a small { color: var(--ink-faint); font-size: .76rem; line-height: 1.35; }
.nav-dropdown a:hover { background: var(--surface-2); }
.nav-dropdown a:hover strong { color: var(--primary); }
.nav-dropdown .nav-dropdown-all {
  border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .65rem;
  color: var(--primary); font-weight: 600; font-size: .85rem;
}

.footer-brand-row { display: flex; align-items: center; gap: .7rem; }
.footer-tagline {
  margin-top: .8rem !important; font-family: var(--font-display);
  font-weight: 700; font-size: .95rem !important;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
}
.footer-address { color: #8d88b8; font-size: .85rem; margin-top: .3rem; max-width: 30ch; }
.social-row { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social-row a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255,255,255,.07); color: #b6b2d8; padding: 0;
  transition: background .25s, color .25s, transform .25s;
}
.social-row a:hover { background: var(--grad-primary); color: #fff; transform: translateY(-2px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.footer-legal { display: flex; gap: 1.4rem; }
.footer-legal a { display: inline; padding: 0; }

@media (max-width: 920px) {
  .nav-item { width: 100%; }
  .nav-services-link { width: 100%; padding: 1rem 6vw; border-top: 1px solid var(--surface-3); }
  .nav-dropdown { display: none !important; }
}

/* Legal / long-form prose pages */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.05rem; margin: 1.6rem 0 .6rem; }
.prose p, .prose li { color: var(--ink-soft); font-size: .97rem; margin-bottom: .8rem; }
.prose ul { padding-left: 1.3rem; margin-bottom: 1rem; }

/* Service page shared bits */
.svc-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.svc-grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: start; }
.svc-list { display: grid; gap: .9rem; }
.svc-list-item {
  display: flex; gap: .9rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.svc-list-item .tick { color: var(--success); flex: 0 0 auto; margin-top: .15rem; }
@media (max-width: 920px) { .svc-grid-2 { grid-template-columns: 1fr; } }
