/* ==========================================================================
   Lobbie landing page
   Structure: tokens > base > layout > components > sections > motion > responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font: "Kulim Park", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #2e2e2e;
  --ink-2: #555b66;
  --ink-3: #7c828c;
  --line: #e6e8ec;

  --blue: #6ca7f8;
  --blue-600: #4a8ef2;
  --blue-700: #2f74de;
  --blue-300: #a9cafb;
  --blue-200: #cfe0fc;
  --blue-100: #e3eefe;
  --blue-50: #f1f6ff;

  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --max: 1280px;
  --gutter: max(20px, calc((100% - var(--max)) / 2));

  --shadow-soft: 0 24px 60px -30px rgba(46, 94, 170, .35);
  --shadow-card: 0 1px 0 rgba(20, 30, 50, .03), 0 18px 40px -28px rgba(30, 60, 120, .28);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 8px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 600;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

.panel { background: var(--surface); position: relative; }
.panel--bottom { border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.panel--top { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.showcase.panel, .pricing.panel { border-radius: var(--radius-xl); }

.section { padding-block: clamp(80px, 10vw, 150px); }

/* ---------- Typography ---------- */
.h2 {
  font-weight: 700;
  font-size: clamp(30px, 2vw + 12px, 42px);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.h3 {
  font-weight: 700;
  font-size: clamp(22px, .9vw + 13px, 28px);
  line-height: 1.12;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.h4 {
  font-weight: 700;
  font-size: clamp(20px, .6vw + 14px, 24px);
  line-height: 1.2;
}
.lede {
  font-size: clamp(15px, .3vw + 13px, 17px);
  color: var(--ink-2);
  max-width: 62ch;
}

/* ---------- Pill label ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-600);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
}
.pill__icon {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-fill: var(--blue);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 16px; line-height: 1;
  white-space: nowrap;
  transition: transform .4s var(--ease-spring), box-shadow .4s var(--ease-out), color .35s;
}
.btn::before {
  /* liquid fill that follows the pointer */
  content: ""; position: absolute; z-index: -1;
  left: var(--mx, 50%); top: var(--my, 50%);
  width: 0; height: 0; border-radius: 50%;
  background: var(--btn-fill);
  transform: translate(-50%, -50%);
  transition: width .55s var(--ease-out), height .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { width: 260%; height: 600%; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(47, 116, 222, .7); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { font-size: 20px; }

.btn--dark { --btn-bg: var(--ink); --btn-fill: var(--blue-600); }
.btn--blue { --btn-bg: var(--blue); --btn-fill: var(--ink); }
.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-fill: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--outline:hover { color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), 0 14px 30px -16px rgba(0,0,0,.4); }
.btn--lg { min-height: 56px; padding: 0 38px; }
.btn--block { width: 100%; }

/* ---------- Icon badge ---------- */
.icon-badge {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(120% 120% at 20% 15%, #8dbcfb 0%, var(--blue) 45%, #5c97f0 100%);
  color: #fff; font-size: 30px;
  box-shadow: 0 10px 24px -12px rgba(74, 142, 242, .8);
  transition: transform .6s var(--ease-spring);
}
.icon-badge--sm { width: 52px; height: 52px; font-size: 24px; }

/* ---------- Media frame: the container never moves on hover, only its child ---------- */
.media-frame { position: relative; overflow: hidden; isolation: isolate; }
.zoom-target { transition: transform 1.1s var(--ease-out); will-change: transform; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .4s var(--ease-out), transform .5s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(20, 40, 80, .35); }
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.brand img { width: auto; height: 40px; }
.brand { flex: none; transition: transform .5s var(--ease-spring); }
.brand:hover { transform: rotate(-3deg) scale(1.04); }

.primary-nav { margin-left: auto; }
.primary-nav__list { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav-link {
  position: relative; font-size: 16px; font-weight: 300; color: var(--ink-2);
  padding: 6px 0; transition: color .3s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  border-radius: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

.site-header__cta { margin-left: clamp(20px, 6vw, 150px); min-height: 48px; padding: 0 34px; }

.menu-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 50%;
  place-items: center; font-size: 24px;
  background: var(--blue-50);
}

.mobile-menu {
  border-top: 1px solid var(--line);
  padding: 12px 20px 24px;
  background: #fff;
}
.mobile-menu ul { display: grid; margin-bottom: 16px; }
.mobile-menu a:not(.btn) {
  display: block; padding: 14px 4px; font-size: 20px; font-weight: 400;
  border-bottom: 1px solid var(--line);
}
.mobile-menu:not([hidden]) li { animation: menuIn .5s var(--ease-out) both; }
.mobile-menu li:nth-child(2) { animation-delay: .04s; }
.mobile-menu li:nth-child(3) { animation-delay: .08s; }
.mobile-menu li:nth-child(4) { animation-delay: .12s; }
.mobile-menu li:nth-child(5) { animation-delay: .16s; }
.mobile-menu li:nth-child(6) { animation-delay: .2s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-bottom: 20px; z-index: 2; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  gap: 40px;
  align-items: center;
  padding: 20px 20px 0 var(--gutter);
}

.hero__copy { padding-block: 40px; }
.hero__pill { margin-bottom: 20px; }

.hero__title {
  font-weight: 700;
  font-size: clamp(36px, 2.6vw + 10px, 50px);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin-bottom: 24px;
}
.hero__line { display: block; }
.hero__rotator { color: var(--blue); min-height: 1.06em; white-space: nowrap; }
.hero__caret {
  display: inline-block; width: 3px; height: .82em; margin-left: 4px;
  vertical-align: -.06em; border-radius: 2px; background: var(--blue);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero__lede { font-size: clamp(15px, .3vw + 13px, 17px); color: var(--ink-2); margin-bottom: 40px; max-width: 52ch; }

.hero__frame {
  aspect-ratio: 1;
  border-radius: 24px;
  background: #e8f0ff;
  transform-style: preserve-3d;
}
.hero__bg-layer, .hero__mascot-layer { position: absolute; inset: -6%; }
.hero__bg { width: 100%; height: 100%; object-fit: cover; }
.hero__mascot-layer { inset: 0; }
.hero__mascot {
  width: 100%; height: 100%; object-fit: contain;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0) rotate(var(--rot, 0deg));
  transition: transform .9s var(--ease-out);
  filter: drop-shadow(0 30px 40px rgba(47, 116, 222, .18));
}
.hero__frame:hover .hero__mascot { transform: translate3d(var(--tx, 0), var(--ty, 0), 0) rotate(var(--rot, 0deg)) scale(1.05); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 0; z-index: 3;
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 24px;
  transform: translate(-50%, 50%);
  transition: background .35s, color .35s, box-shadow .35s;
}
.scroll-cue .icon { animation: nudge 2.2s var(--ease-out) infinite; }
.scroll-cue:hover { background: var(--ink); color: #fff; box-shadow: 0 16px 30px -12px rgba(0,0,0,.4); }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

/* ==========================================================================
   Why choose Lobbie
   ========================================================================== */
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 4vw, 56px); }
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .h2 { max-width: 20ch; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 250px);
  gap: 24px;
  padding: 20px;
  min-height: 340px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: box-shadow .6s var(--ease-out), translate .6s var(--ease-out);
}
.feature-card:hover { translate: 0 -6px; box-shadow: 0 30px 60px -30px rgba(47, 116, 222, .38); }
.feature-card:hover .icon-badge { transform: rotate(-10deg) scale(1.08); }

.feature-card__body { display: flex; flex-direction: column; }
.feature-card__body .icon-badge { margin-bottom: auto; }
.feature-card__body .h3 { margin: 32px 0 12px; }
.feature-card__body p { color: var(--ink-2); max-width: 36ch; }

.feature-card__visual {
  border-radius: var(--radius-md);
  background: var(--blue-50);
  min-height: 300px;
}
.feature-card__img {
  --img-size: 82%;              /* adjust this to make the images bigger or smaller */
  position: absolute;
  inset: 0;
  margin: auto;                 /* centres the image in the container */
  width: var(--img-size);
  height: var(--img-size);
  object-fit: contain;          /* shows the whole image, no cropping */
  object-position: center;
}

/* Tablet and mobile: the container becomes wide and short, so keep images a bit smaller */
@media (max-width: 1180px) {
  .feature-card__img { --img-size: 74%; }
}

.feature-card:hover .zoom-target { transform: scale(1.08); }

.spinner {
  display: inline-block; width: .95em; height: .95em; border-radius: 50%;
  border: 2px solid rgba(108, 167, 248, .25); border-top-color: var(--blue);
  animation: spin 1s linear infinite;
}
.spin { animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Showcase (dashboard + widget)
   ========================================================================== */
.showcase { padding-block: 20px; z-index: 1; }

.showcase__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  gap: 40px;
  align-items: center;
  padding: 0 20px 0 var(--gutter);
}
.showcase__row + .showcase__row { margin-top: 40px; }
.showcase__row--flip {
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  padding: 0 var(--gutter) 0 20px;
}
.showcase__row--flip .showcase__copy { padding-left: clamp(0px, 5vw, 80px); }
.showcase__copy { display: grid; gap: 20px; justify-items: start; }
.h2--left { font-size: clamp(30px, 2vw + 12px, 42px); }

/* Stage = illustrated media panel */
.stage {
  aspect-ratio: 1;
  border-radius: 24px;
  background: #eef4ff;
}
.stage__bg-img {
  position: absolute;
  left: 0;
  top: -8%;             /* extra height so parallax never shows the edges */
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.stage__layer { position: absolute; inset: -8%; }
.stage:hover .zoom-target { transform: scale(1.07); }

.stage__browser { position: absolute; }
.stage__browser--dash { left: 17%; top: 19%; width: 70%; height: 46%; }
.stage__browser--widget { left: 17%; top: 32%; width: 70%; height: 49%; }
.stage__shadow-card {
  position: absolute; left: -9%; top: -3%; width: 44%; height: 45%; z-index: -1;
  border-radius: 6px; background: #c9dbfa;
}
.stage__shadow-card--tr { left: auto; right: -6%; top: -8%; width: 45%; height: 85%; }

.browser {
  position: relative; height: 100%;
  border-radius: 10px; background: #fff; padding: 8px;
  display: grid; grid-template-rows: auto auto auto 1fr; gap: 8px;
  box-shadow: 0 20px 40px -26px rgba(47, 116, 222, .6);
}
.browser__bar {
  display: flex; align-items: flex-end; gap: 5px; height: 28px; padding: 0 8px;
  border-radius: 6px 6px 0 0; background: var(--blue-100);
}
.browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-bottom: 10px; }
.browser__bar i:nth-child(2) { opacity: .6; }
.browser__bar i:nth-child(3) { opacity: .3; }
.browser__tab { width: 26%; height: 17px; margin-left: 10px; border-radius: 6px 6px 0 0; background: #fff; }
.browser__bar--plain .browser__tab { margin-left: 0; }
.browser__url { height: 12px; margin: 0 4px; border-radius: 6px; background: #eef0f4; }
.browser__nav { height: 18px; border-radius: 2px; background: var(--blue-100); display: flex; align-items: center; padding-left: 8px; }
.browser__nav span { width: 30px; height: 8px; border-radius: 3px; background: #fff; }
.browser__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.browser__cols span { border-radius: 2px; background: #f5f8fe; }
.browser__blank { border-radius: 4px; background: #f7f9fe; }

.stage__wire { position: absolute; overflow: visible; }
.stage__wire path {
  fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
  animation: dash 2s linear infinite;
}
.stage__wire--dash { left: 32%; top: 42%; width: 22%; height: 13%; }
.stage__wire--widget { left: 43%; top: 68%; width: 22%; height: 6%; }

.float-pill {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  font-size: clamp(13px, 1.3vw, 18px); font-weight: 400; white-space: nowrap;
}
.float-pill--status { left: 54%; top: 40.5%; background: #2e2e2e; color: #fff; box-shadow: 0 16px 30px -14px rgba(0,0,0,.45); }
.float-pill--status .spinner { border-color: rgba(255,255,255,.2); border-top-color: var(--blue); }
.float-pill--light { left: 44%; top: 57.5%; padding: 6px 12px 6px 6px; background: #fff; color: var(--ink); gap: 8px; box-shadow: 0 10px 22px -14px rgba(47, 116, 222, .6); }
.float-pill__avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); font-size: 15px; }
.mini-check { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 3px; background: var(--blue); color: #fff; font-size: 11px; }

.chat-bubble {
  position: absolute; z-index: 3;
  padding: 12px 18px; border-radius: 22px;
  font-size: clamp(13px, 1.3vw, 18px); font-weight: 400; white-space: nowrap;
}
.chat-bubble--dark { left: 51%; top: 44.5%; background: #2e2e2e; color: #fff; box-shadow: 0 16px 30px -14px rgba(0,0,0,.45); }
.chat-bubble--dark::before {
  content: "";
  position: absolute;
  left: 14px;                    /* distance from the bubble's left edge */
  top: -16px;                    /* how far the tip sticks out above the bubble */
  border: 14px solid transparent;
  border-left-color: #2e2e2e;
  border-bottom-color: #2e2e2e;  /* the two coloured borders form the triangle */
  border-radius: 3px;            /* slightly softened tip */
  transform: rotate(-22deg);     /* tilts the tip to the left */
  transform-origin: bottom center;
  z-index: -1;                   /* tucks the base under the bubble so they merge */
}

.hello {
  position: absolute; left: 68%; top: 67%; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(12px, 1.1vw, 15px); font-weight: 400;
}
.hello__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 20px; box-shadow: 0 0 0 4px rgba(108, 167, 248, .25); }

.node { position: absolute; z-index: 3; width: 17%; aspect-ratio: 1; }
.node--dash { left: 23.5%; top: 54.5%; }
.node--widget { left: 20.5%; top: 70.5%; }
.node__ring {
  position: absolute; inset: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(108, 167, 248, .35);
  animation: pulseRing 2.6s var(--ease-out) infinite;
}
.node__core {
  display: grid; place-items: center; width: 66%; aspect-ratio: 1; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: clamp(14px, 1.6vw, 22px);
  box-shadow: 0 0 0 4px #fff inset, 0 0 0 7px rgba(255,255,255,.5);
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(108, 167, 248, .45); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(108, 167, 248, 0); }
}
.tick {
  position: absolute; display: grid; place-items: center;
  width: 42%; aspect-ratio: 1; background: #2e2e2e; color: #fff;
  font-size: clamp(11px, 1.2vw, 16px); border-radius: 3px;
  box-shadow: 0 8px 16px -8px rgba(0,0,0,.5);
}
.node--dash .tick { right: -32%; top: -10%; }
.node--widget .tick { right: -26%; top: -20%; }

/* ---------- Mascot placeholder slots ---------- */
.mascot-slot { position: absolute; z-index: 4; }
.mascot-slot__img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease-out); }
.mascot-slot.is-empty .mascot-slot__img { display: none; }
.mascot-slot__ph {
  position: absolute; inset: 0;
  display: none; place-items: center; align-content: center; gap: 10px;
  border-radius: 28px;
  border: 2px dashed rgba(74, 142, 242, .55);
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.9), rgba(227, 238, 254, .7) 70%),
    repeating-linear-gradient(135deg, rgba(108,167,248,.08) 0 10px, transparent 10px 20px);
  color: var(--blue-600);
  font-size: 13px; font-weight: 400; text-align: center;
}
.mascot-slot__ph .icon { font-size: clamp(44px, 5vw, 72px); animation: bob 3.6s ease-in-out infinite; }
.mascot-slot.is-empty .mascot-slot__ph { display: grid; }
.mascot-slot__ph--light { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.stage:hover .mascot-slot__img { transform: scale(1.06) rotate(-2deg); }

/* Dashboard row: big, bleeding off the bottom-right corner */
.mascot-slot--dash {
  right: -16%;
  bottom: -16%;
  width: 72%;
  height: 72%;
}
.mascot-slot--dash .mascot-slot__img {
  object-position: right bottom;
  transform-origin: right bottom;
}

/* Dashboard row: head + pointing arm visible, cut at right and bottom */
.mascot-slot--dash {
  right: -16%;
  bottom: -16%;
  width: 72%;
  height: 72%;
}
.mascot-slot--dash .mascot-slot__img {
  object-position: right bottom;
  transform-origin: right bottom;
}

/* Widget row: bigger, head cut by the left edge, antenna near the top */
.mascot-slot--widget {
  left: -24%;
  top: -11%;
  width: 75%;
  height: 75%;
}
.mascot-slot--widget .mascot-slot__img {
  object-position: left top;
  transform-origin: left top;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.faq__intro { display: grid; gap: 20px; justify-items: start; }
.faq__intro .h2 { max-width: 14ch; }

.support-card {
  width: 100%; margin-top: 20px;
  padding: 24px 20px 20px;
  border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-card);
}
.support-card p { color: var(--ink-2); margin: 8px 0 24px; }
.support-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.support-card__actions .btn { min-height: 52px; }

.accordion { display: grid; }
.acc-item {
  position: relative;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: border-radius .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
.acc-item::before {
  /* open-state card background, fades in */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(108, 167, 248, .45), transparent 70%),
    #fff;
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.acc-item.is-open { border-radius: var(--radius-lg); border-color: transparent; box-shadow: var(--shadow-card); margin-bottom: 12px; }
/* Hide the divider directly above the open card */
.acc-item:has(+ .acc-item.is-open),
.acc-item.is-before-open {
  border-bottom-color: transparent;
}
.acc-item.is-open::before { opacity: 1; }
.accordion { isolation: isolate; }

.acc-item__heading { font-size: inherit; }
.acc-item__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 20px; text-align: left;
  font-size: clamp(18px, .5vw + 14px, 22px); font-weight: 600; line-height: 1.25;
  color: var(--ink); border-radius: inherit;
  transition: color .35s;
}
.acc-item__trigger:hover { color: var(--blue-600); }
.acc-item.is-open .acc-item__trigger { color: var(--blue); padding-bottom: 12px; }
.acc-item__icon {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px var(--line);
  font-size: 20px; color: var(--ink);
  transition: transform .5s var(--ease-spring), background .35s, color .35s, box-shadow .35s;
}
.acc-item__icon { position: relative; }
.acc-item__icon::before, .acc-item__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1.8px; border-radius: 2px; background: currentColor;
  translate: -50% -50%; transition: transform .5s var(--ease-spring);
}
.acc-item__icon::after { transform: rotate(90deg); }
.acc-item__trigger:hover .acc-item__icon { transform: rotate(90deg); }
.acc-item.is-open .acc-item__icon { background: var(--blue); color: #fff; box-shadow: none; transform: rotate(180deg); }
.acc-item.is-open .acc-item__icon::after { transform: rotate(0deg); }

.acc-item__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease-out);
}
.acc-item.is-open .acc-item__panel { grid-template-rows: 1fr; }
.acc-item__inner { overflow: hidden; }
.acc-item__inner p {
  padding: 0 20px 28px; color: var(--ink-2); max-width: 62ch;
  opacity: 0; transform: translateY(-8px);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.acc-item.is-open .acc-item__inner p { opacity: 1; transform: none; transition-delay: .12s; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing { padding-block: 40px clamp(56px, 6vw, 80px); overflow: hidden; }
.pricing__inner { display: grid; justify-items: center; text-align: center; gap: 20px; }
.pricing__inner .h2 { max-width: 16ch; }
.pricing__inner .lede { margin-bottom: 16px; }

.pricing__art { position: relative; width: min(100%, 1040px); aspect-ratio: 1040 / 240; margin-bottom: 20px; }
.pricing__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pricing__lines .lines path {
  fill: none; stroke: #d6e5fd; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.pricing__lines .dots circle { fill: #d6e5fd; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--ease-spring); }
.pricing__art.is-in .lines path { stroke-dashoffset: 0; }
.pricing__art.is-in .dots circle { transform: scale(1); transition-delay: 1s; }
.pricing__art.is-in .dots circle:nth-child(2n) { transition-delay: 1.15s; }
.pricing__art.is-in .dots circle:nth-child(3n) { transition-delay: 1.3s; }

.pricing__glow { position: absolute; top: 10%; width: 14%; height: 80%; border-radius: 50%; background: radial-gradient(closest-side, rgba(108, 167, 248, .35), transparent); filter: blur(10px); }
.pricing__glow--l { left: 22%; }
.pricing__glow--r { right: 22%; }
.pricing__badge {
  position: absolute; left: 50%; top: 46%; width: clamp(96px, 12vw, 140px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.pricing__badge::before {
  content: ""; position: absolute; inset: -60%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(108, 167, 248, .22), transparent);
}
.pricing__badge-inner { position: absolute; inset: 0; }
.pricing__badge-back, .pricing__badge-front { position: absolute; border-radius: 12px; }
.pricing__badge-back { inset: 0 0 0 -12%; translate: 0 -8%; background: var(--blue-200); opacity: .7; transition: translate .6s var(--ease-spring); }
.pricing__badge-front {
  inset: 8% 0 -8% 0; background: #fff; display: grid; place-items: center;
  color: var(--blue); font-size: clamp(40px, 4.4vw, 56px);
  box-shadow: 0 24px 40px -22px rgba(47, 116, 222, .5);
  transition: transform .6s var(--ease-spring);
}
.pricing__art:hover .pricing__badge-front { transform: rotate(-6deg) scale(1.06); }
.pricing__art:hover .pricing__badge-back { translate: -10% -18%; }
.pricing__badge-front .icon { animation: coin 6s var(--ease-out) infinite; }
@keyframes coin { 0%, 70% { transform: rotateY(0); } 85%, 100% { transform: rotateY(360deg); } }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter { padding-block: clamp(80px, 10vw, 140px) clamp(64px, 8vw, 100px); }
.newsletter__card {
  position: relative; isolation: isolate;
  min-height: 500px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); align-items: center;
  padding: 40px clamp(24px, 6vw, 80px);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #69a3f7 0%, #7aaef8 50%, #6aa3f6 100%);
  color: #fff;
}
.newsletter__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;   /* keeps the rounded corners */
}

.newsletter__copy { display: grid; gap: 20px; justify-items: start; }
.newsletter__title { color: #fff; }
.newsletter__copy > p { font-size: 16px; opacity: .92; }

@media (max-width: 980px) {
  .newsletter__bg { object-position: 30% center; }
}

.subscribe {
  position: relative; margin-top: 16px;
  width: min(100%, 500px);
  display: flex; align-items: center; gap: 8px;
  padding: 7px 7px 7px 18px; border-radius: 999px;
  background: #fff; color: var(--ink);
  box-shadow: 0 0 0 4px rgba(255,255,255,.25);
  transition: box-shadow .35s;
}
.subscribe:focus-within { box-shadow: 0 0 0 6px rgba(255,255,255,.4); }
.subscribe__icon { font-size: 18px; color: var(--ink-3); }
.subscribe input {
  flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent;
  font-size: 16px; font-weight: 300;
}
.subscribe input::placeholder { color: var(--ink-3); }
.subscribe .btn { min-height: 52px; padding: 0 40px; }
.subscribe.is-invalid { animation: shake .45s var(--ease-out); box-shadow: 0 0 0 4px rgba(255, 216, 216, .9); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.subscribe__msg { min-height: 1.5em; font-size: 15px; font-weight: 400; }

.mascot-slot--mail {
  right: -3%;
  bottom: 6%;
  width: 44%;
  height: 132%;   /* taller than the banner, so the head pops out above */
}
.mascot-slot--mail .mascot-slot__img {
  object-position: right bottom;   /* keeps the robot sitting on the same spot as it grows */
  transform-origin: right bottom;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-block: 64px 32px; }
.site-footer__inner { display: grid; justify-items: center; text-align: center; }
.brand--footer img { height: 44px; }
.site-footer__tag { margin: 20px 0 48px; max-width: 42ch; color: var(--ink-2); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-bottom: 40px; }
.footer-nav a { font-weight: 400; position: relative; transition: color .3s; }
.footer-nav a:hover { color: var(--blue-600); }
.socials { display: flex; gap: 20px; margin-bottom: 56px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--blue); font-size: 26px;
  transition: transform .5s var(--ease-spring), background .3s, color .3s;
}
.socials a:hover { transform: translateY(-4px) rotate(-8deg); background: var(--blue); color: #fff; }
.site-footer__legal { width: 100%; padding-top: 24px; border-top: 1px solid #d9dbe0; color: var(--ink-2); font-size: 15px; }

/* ==========================================================================
   Contact dialog
   ========================================================================== */
.contact {
  width: min(460px, calc(100% - 32px));
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: #fff; color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(20, 40, 80, .45);
}
.contact::backdrop { background: rgba(30, 40, 60, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.contact[open] { animation: dialogIn .55s var(--ease-out); }
.contact[open]::backdrop { animation: fadeIn .4s ease; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes fadeIn { from { opacity: 0; } }
.contact__form { position: relative; padding: 32px 28px 28px; }
.contact__view { display: grid; gap: 14px; }
.contact__view[hidden] { display: none; }
.contact__badge { margin-bottom: 4px; }
.contact__sub { color: var(--ink-2); margin-top: -6px; margin-bottom: 6px; }
.contact__close {
  position: absolute; top: 16px; right: 16px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-size: 20px; background: var(--blue-50); transition: background .3s, transform .4s var(--ease-spring);
}
.contact__close:hover { background: var(--blue-100); transform: rotate(90deg); }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 300;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.field [aria-invalid="true"] { border-color: #e2685a; }
.field--coffee { display: none; }
.contact.is-coffee .field--coffee { display: grid; }
.contact__error { color: #c8483a; font-size: 14px; min-height: 0; }
.contact__error:empty { display: none; }
.contact__done { justify-items: start; }

/* ==========================================================================
   Motion: reveals, word splits, hero intro
   (All start states are scoped to .js so content shows without JavaScript.)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 70px, 0) scale(.96);
  filter: blur(10px);
  transition:
    opacity 1s var(--ease-out) var(--d, 0s),
    transform 1.3s var(--ease-out) var(--d, 0s),
    filter 1s var(--ease-out) var(--d, 0s);
}
.js [data-reveal="media"] {
  transform: translate3d(0, 110px, 0) scale(.9) rotate(-1.5deg);
  clip-path: inset(18% 8% 18% 8% round 40px);
  transition:
    opacity 1s var(--ease-out) var(--d, 0s),
    transform 1.5s var(--ease-out) var(--d, 0s),
    filter 1s var(--ease-out) var(--d, 0s),
    clip-path 1.5s var(--ease-out) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="media"].is-in { clip-path: inset(-50% -50% -50% -50% round 0); }

/* Words rise out of a mask, one after another */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; }
.js [data-split] .split-word > span {
  transform: translate3d(0, 110%, 0) rotate(6deg);
  transform-origin: left bottom;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 55ms);
}
.js [data-split].is-in .split-word > span { transform: none; }

/* Hero intro sequence */
.js [data-hero] {
  opacity: 0; transform: translate3d(0, 50px, 0); filter: blur(8px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out);
}
.js [data-hero="1"] { transition-delay: .1s; }
.js [data-hero="2"] { transition-delay: .2s; }
.js [data-hero="3"] { transition-delay: .32s; }
.js [data-hero="4"] { transition-delay: .44s; }
.js [data-hero="5"] { transition-delay: .56s; }
.js [data-hero="media"] {
  transform: translate3d(80px, 40px, 0) scale(.92) rotate(2deg);
  clip-path: inset(10% 10% 10% 10% round 60px);
  transition: opacity 1.2s var(--ease-out) .15s, transform 1.6s var(--ease-out) .15s, filter 1s var(--ease-out) .15s, clip-path 1.6s var(--ease-out) .15s;
}
.js.is-loaded [data-hero] { opacity: 1; transform: none; filter: none; }
.js.is-loaded [data-hero="media"] { clip-path: inset(0 0 0 0 round 24px); }

/* Parallax targets are driven by JS via --py */
[data-parallax] { translate: 0 var(--py, 0px); will-change: translate; }

/* Idle floating on key UI chips */
.float-pill--status, .chat-bubble--dark { animation: floaty 5s ease-in-out infinite; }
.float-pill--light { animation: floaty 6s ease-in-out -2s infinite; }
@keyframes floaty { 50% { transform: translateY(-6px); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .feature-card { grid-template-columns: 1fr; min-height: 0; }
  .feature-card__visual { min-height: 260px; order: -1; }
  .feature-card__body .h3 { margin-top: 24px; }
  .feature-card__body .icon-badge { margin-top: -52px; margin-left: 8px; position: relative; z-index: 2; box-shadow: 0 0 0 6px #fff, 0 10px 24px -12px rgba(74, 142, 242, .8); }
  .site-header__cta { margin-left: 24px; padding: 0 22px; }
}

@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .primary-nav, .site-header__cta { display: none; }
  .menu-toggle { display: grid; }
  .brand img { height: 34px; }

  .hero__grid,
  .showcase__row,
  .showcase__row--flip {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .hero__grid { padding-top: 8px; gap: 8px; }
  .hero__copy { padding-block: 32px 20px; }
  .hero__media { width: 100%; max-width: 640px; justify-self: center; }
  .hero { padding-bottom: 52px; }

  .showcase { padding-block: 32px; }
  .showcase__row + .showcase__row { margin-top: 64px; }
  .showcase__row--flip .showcase__copy { order: -1; padding-left: 0; }
  .showcase__media { width: 100%; max-width: 640px; justify-self: center; }

  .faq__grid { grid-template-columns: 1fr; }
  .faq__intro .h2 { max-width: 18ch; }

  .newsletter__card {
    grid-template-columns: 1fr;
    padding-top: 0;
    padding-bottom: 48px;
    min-height: 0;
    gap: 16px;
  }
  .mascot-slot--mail {
    order: -1;                   /* move above the heading */
    position: relative;
    right: auto;
    bottom: auto;
    width: min(92%, 400px);      /* bigger */
    height: auto;
    aspect-ratio: 1;
    justify-self: center;
    margin-top: -72px;           /* head pops out above the banner */
  }
  .mascot-slot--mail .mascot-slot__img {
    object-position: center bottom;
    transform-origin: center bottom;
  }
}

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .support-card__actions { grid-template-columns: 1fr; }
  .scroll-cue { width: 56px; height: 56px; }
  .pricing__art { margin-bottom: 8px; }
  .subscribe { flex-wrap: wrap; padding: 6px; border-radius: 28px; }
  .subscribe__icon { margin-left: 12px; }
  .subscribe .btn { width: 100%; }
  .acc-item__trigger { padding: 22px 16px; }
  .acc-item__inner p { padding: 0 16px 24px; }
  .h2 br { display: none; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 34px; }
  .hero__rotator { white-space: normal; }
  .float-pill { padding: 7px 12px; gap: 6px; }
  .chat-bubble { padding: 8px 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-hero], .js [data-split] .split-word > span { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  [data-parallax] { translate: none !important; }
  .pricing__lines .lines path { stroke-dashoffset: 0; }
  .pricing__lines .dots circle { transform: none; }
}
