/* ==========================================================================
   Wenya — Global styles, layout primitives & components
   Depends on tokens.css
   ========================================================================== */

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--weight-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-tight);
  color: var(--text-on-dark);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a, .btn { touch-action: manipulation; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: var(--weight-heading); line-height: var(--lh-tight); }

/* ---- Layout primitives ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-pad-y); position: relative; overflow: clip; }
.section--light { background: var(--color-white); color: var(--text-on-light); }
.section--dark  { background: var(--bg-dark);  color: var(--text-on-dark); }
.section--indigo{ background: var(--bg-page);  color: var(--text-on-dark); }

/* ---- Typographic helpers ---------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  opacity: 0.7;
  display: inline-block;
  margin-bottom: var(--space-4);
}
.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); letter-spacing: var(--ls-tight); }
.lead { font-size: var(--fs-lead); line-height: 1.5; opacity: 0.82; }
.section-head { max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.text-mint { color: var(--color-lime); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 12px 22px;
  border: 0; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm);
  line-height: 1; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.btn--cta { background: var(--cta-fill); color: var(--cta-text); box-shadow: var(--shadow-cta); }
.btn--cta:hover { transform: translateY(-2px); filter: saturate(1.08) brightness(1.02); }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.btn--block { width: 100%; justify-content: center; }
.btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

/* ---- App Store badge ----------------------------------------------------
   Apple's official "Download on the App Store" artwork (self-hosted SVG,
   assets/images/app-store-badge.svg). Apple's guidelines: keep the badge
   unmodified, min-height 40px, clear space around it — so sizing lives on
   the <img>, hover is a subtle lift like .btn--cta (no recolouring). */
.app-store-badge { display: inline-block; transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease); }
.app-store-badge img { height: 56px; width: auto; display: block; }
.app-store-badge:hover { transform: translateY(-2px); filter: brightness(1.06); }

/* ---- Forms / Waitlist -------------------------------------------------- */
.wl-card {
  max-width: 480px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding: clamp(26px, 4.5vw, 44px);
  background: var(--color-white);
  color: var(--text-on-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: left;
}
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: 7px; }
.field__label {
  font-family: var(--font-mono); font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--text-on-light-muted);
}
.field__label .opt { text-transform: none; letter-spacing: 0; opacity: 0.6; }
.field__note { margin: 1px 0 0; font-size: var(--fs-eyebrow); line-height: 1.5; color: var(--text-on-light-muted); }
.input {
  width: 100%; padding: 14px 16px;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500;
  color: var(--text-on-light);
  background: var(--color-surface);
  border: 1.5px solid #e3e5ec; border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.input::placeholder { color: var(--color-grey-300); }
.input:focus {
  outline: none; background: var(--color-white);
  border-color: var(--color-violet);
  box-shadow: 0 0 0 3px rgba(82, 53, 239, 0.16);
}
.input.is-invalid { border-color: #c2342b; box-shadow: 0 0 0 3px rgba(194, 52, 43, 0.12); }
.form-status {
  margin: 0; min-height: 1.25em;
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-on-light-muted);
}
.form-status--error { color: #c2342b; }
.form-fineprint {
  margin: 0; font-size: var(--fs-eyebrow); line-height: 1.5;
  color: var(--text-on-light-muted);
}
.form-fineprint a { color: var(--color-violet); text-decoration: underline; }

.wl-success { text-align: center; }
.wl-success:focus { outline: none; }
.wl-success__check {
  width: 56px; height: 56px; margin: 0 auto var(--space-4);
  display: grid; place-items: center; border-radius: var(--radius-pill);
  background: var(--color-lime-soft); color: var(--color-lime-deep);
}
.wl-success__title {
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3);
  margin-bottom: var(--space-2); color: var(--text-on-light);
}
.wl-success__text { font-size: var(--fs-sm); color: var(--text-on-light-muted); }

/* ---- Pills / chips ----------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1;
}
.pill--violet { background: var(--violet-pill); color: #fff; box-shadow: 0 6px 18px rgba(52,20,181,0.35); }
.pill--soft { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  padding-block: var(--space-5);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff; }
.brand__logo { width: 34px; height: 34px; border-radius: 10px; display: block; }
/* Official white wordmark (640×137 source) — replaces the old icon +
   HTML-text lockup, which rendered the name in Figtree ExtraBold and
   read as an off-brand "bolded" logo. */
.brand__wordmark { height: 30px; width: auto; display: block; }
.brand sup { font-size: 0.5em; opacity: 0.6; }
.site-footer .brand { color: #fff; }

/* Custom elements default to display:inline — make the web-component
   wrappers block so they don't disrupt layout. */
wenya-nav, wenya-footer, wenya-article-cta { display: block; }

/* Primary nav group (brand on the left, links + CTA on the right) */
.site-nav { display: inline-flex; align-items: center; gap: var(--space-5); }
.site-nav__link {
  font-size: var(--fs-sm); font-weight: 600; color: rgba(255,255,255,0.82);
  transition: color 0.2s var(--ease);
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: #fff; }
@media (max-width: 560px) {
  .site-nav { gap: var(--space-3); }
  .site-nav__link { display: none; }   /* keep mobile header to brand + CTA */
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: clip;
  padding-top: clamp(150px, 22vh, 240px);
  padding-bottom: clamp(60px, 8vw, 110px);
  background: var(--color-indigo);
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--hero-glow);
}
.hero > .container { position: relative; z-index: 2; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 14px; margin-bottom: var(--space-6); }
.hero__beta { color: rgba(255,255,255,0.82); font-size: var(--fs-sm); font-weight: 500; }
.hero__title { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); max-width: 14ch; margin-inline: auto; text-wrap: balance; }
.hero__lead { margin: var(--space-5) auto 0; max-width: 52ch; font-size: var(--fs-lead); color: var(--text-on-dark-muted); }
.hero__cta { margin-top: var(--space-7); display: flex; justify-content: center; }
.hero__stage { position: relative; margin: clamp(40px, 6vw, 80px) auto 0; width: min(360px, 78vw); }
.hero__phone { display: block; width: 100%; height: auto; }

/* ---- Phone component --------------------------------------------------- */
.phone {
  position: relative; border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, #2a2a2e, #0e0e10);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,0.08);
}
.phone::before { /* notch */
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 36%; height: 22px; background: #0a0a0c; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone__screen { border-radius: 36px; overflow: hidden; background: #fff; display: block; width: 100%; aspect-ratio: 9 / 17.5; }
.phone__screen img,
.phone__screen video { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; }

/* Indigo-framed phone (problem & solution sections) */
.phone--indigo { background: linear-gradient(160deg, #5a40e0, #3414b5); }
.phone--indigo::before { display: none; }
.phone--indigo .phone__screen { border-radius: 30px; }

/* ---- Image placeholders (drop real screenshots in later) --------------- */
.ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 18px;
  background: #e9e8f3; color: #857fae; border-radius: inherit;
  border: 1.5px dashed #bdb8db;
}
.ph__ic { width: 30px; height: 30px; opacity: 0.7; }
.ph__t { font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; letter-spacing: 0.02em; }
.ph__d { font-family: var(--font-mono); font-size: 10px; opacity: 0.6; }
.feature-card__panel .ph { background: transparent; border-color: rgba(40,30,90,0.22); color: rgba(40,30,90,0.55); }
.beyond__bg .ph { background: #16161d; border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.5); border-radius: 0; }

.floaty {
  position: absolute; z-index: 4;
  background: rgba(255,255,255,0.96); color: var(--color-ink);
  border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 10px; text-align: left;
}
.floaty img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.floaty .ft-name { font-weight: 700; font-size: 13px; line-height: 1.2; }
.floaty .ft-sub { font-size: 11px; color: var(--color-grey-500); font-family: var(--font-mono); }
.floaty--tl { top: 8%; left: -15%; }
.floaty--tr { top: 18%; right: -16%; }
.floaty--br { bottom: 12%; right: -16%; }
.floaty .ft-name { font-size: 13px; font-weight: 700; }
.floaty .ft-meta { font-family: var(--font-mono); font-size: 11px; color: var(--color-violet); }
.floaty__check { width: 34px; height: 34px; border-radius: 50%; background: var(--color-lime); color: #1c2b00; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; }
.floaty__pill { display: inline-block; margin-top: 4px; background: var(--color-indigo); color: #fff; font-family: var(--font-mono); font-size: 10px; padding: 3px 9px; border-radius: var(--radius-pill); }
.floaty__sq { width: 26px; height: 26px; border-radius: 7px; background: var(--color-indigo); flex: none; }
/* Calendar-grid floaty ("Best times offered") */
/* "Best times offered" availability grid — recreated in HTML/CSS */
.floaty--cal { flex-direction: column; align-items: stretch; gap: 9px; padding: 14px; width: 258px; top: 24%; left: -28%; text-align: left; }
.bt__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--color-ink); letter-spacing: -0.01em; line-height: 1; }
.bt { display: grid; grid-template-columns: 24px repeat(7, 1fr); font-family: -apple-system, system-ui, "Segoe UI", sans-serif; }
.bt__tz { font-size: 6.5px; color: #6b66c4; align-self: center; }
.bt__dh { display: flex; flex-direction: column; align-items: center; line-height: 1.1; padding-bottom: 4px; }
.bt__dh span { font-size: 6.5px; color: #9a95d6; }
.bt__dh b { font-size: 9px; color: var(--color-ink); font-weight: 700; }
.bt__sp { grid-column: 1; }
.bt__region { grid-column: 2 / 9; background: #e7e0ff; color: var(--color-indigo); font-size: 6.5px; text-align: center; padding: 2px 0; border-radius: 3px; margin-bottom: 2px; }
.bt__t { font-size: 6.5px; color: #a0a0aa; align-self: center; padding-right: 3px; white-space: nowrap; }
.bt__c { border: 0.5px solid #eef0f4; min-height: 18px; display: flex; align-items: center; justify-content: center; }
.bt__c.off { background: #ead98c; border-color: #e4d585; }
.bt__c.busy { background: #d6969e; border-color: #d18d96; }
.bt__c.busy span { font-size: 6px; color: #fff; letter-spacing: -0.02em; }
@media (max-width: 900px) { .floaty--cal { left: -6%; transform: scale(0.82); transform-origin: top left; } }

/* ==========================================================================
   Problem section
   ========================================================================== */
.problem__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: var(--space-7); }
.problem__phone { width: min(480px, 108%); justify-self: end; transform: translateX(clamp(50px, 13vw, 200px)); }
.problem__phone .phone__screen { aspect-ratio: 9 / 17; }
.problem__phone .chat-mock { justify-content: flex-start; }
.problem__phone > img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .problem__phone { justify-self: center; transform: none; width: min(340px, 84vw); margin-top: var(--space-6); }
}
.problem__list { display: flex; flex-direction: column; gap: 40px; }
.problem-card {
  display: grid; grid-template-columns: 40px 1fr;
  column-gap: 20px; row-gap: 8px; align-items: start;
}
.problem-card .num {
  grid-column: 1; grid-row: 1;
  width: 40px; height: 40px; border-radius: 5px;
  background: var(--color-surface); /* #f0f2f6 */
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
  letter-spacing: -0.02em; color: var(--color-ink-700); /* #2b2b2c */
}
.problem-card h5 {
  grid-column: 2; grid-row: 1; align-self: center;
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); /* 22 → 28 */
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; color: var(--color-ink);
}
.problem-card p {
  grid-column: 2; grid-row: 2;
  font-size: 18px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.4;
  color: var(--color-grey-500); /* #606266 */ max-width: 42ch;
}

/* ---- Chat mock (painful back-and-forth — WhatsApp style) --------------- */
.chat-mock {
  background: #efe7dd; /* WhatsApp cream */
  background-image: radial-gradient(rgba(16,16,17,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  display: flex; flex-direction: column; gap: 12px;
  height: 100%; padding: 0 14px 16px; overflow: hidden;
}
.chat-mock__head {
  display: flex; align-items: center; gap: 10px;
  background: #fff; margin-inline: -14px; padding: 14px 16px;
  border-bottom: 1px solid rgba(16,16,17,0.06); margin-bottom: 6px;
}
.chat-mock__head .ava { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.chat-mock__head .who { font-weight: 700; font-size: 15px; color: var(--color-ink); flex: 1; }
.chat-mock__head .icons { color: var(--color-grey-400); font-size: 16px; letter-spacing: 8px; }
.bubble-row { display: flex; flex-direction: column; gap: 2px; max-width: 82%; }
.bubble-row.me { align-self: flex-end; align-items: flex-end; }
.bubble-row.them { align-self: flex-start; align-items: flex-start; }
.bubble {
  padding: 8px 12px 6px; border-radius: 12px; font-size: 14px; line-height: 1.35;
  font-family: var(--font-body); box-shadow: 0 1px 1px rgba(0,0,0,0.06); position: relative;
}
.them .bubble { background: #fff; color: var(--color-ink); border-top-left-radius: 3px; }
.me .bubble { background: #d8fdd2; color: var(--color-ink); border-top-right-radius: 3px; }
.bubble-time { font-family: var(--font-mono); font-size: 10px; color: var(--color-grey-400); padding-inline: 4px; margin-top: -2px; }

/* ==========================================================================
   Steps section
   ========================================================================== */
/* Indigo section with lime heading + horizontal card carousel */
.steps { background: var(--color-indigo); color: #fff; position: relative; overflow: clip; padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y); }
.steps__head { text-align: center; margin-inline: auto; margin-bottom: clamp(40px, 6vw, 72px); }
.steps__head h2 { color: var(--color-lime); }
.steps__head .eyebrow { color: rgba(255,255,255,0.6); opacity: 1; }

/* Horizontal scroll carousel, scrollbar hidden, bleeds to the right edge */
.steps-track {
  display: flex; gap: clamp(20px, 2.2vw, 30px);
  overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; -ms-overflow-style: none;
  /* full-bleed: first card aligned to container, bleeds to the edges on scroll */
  --bleed: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding-inline: var(--bleed);
  scroll-padding-inline-start: var(--bleed);
  padding-bottom: 4px;
}
.steps-track::-webkit-scrollbar { display: none; }
.feature-card {
  flex: 0 0 auto; width: min(380px, 82vw); scroll-snap-align: start;
  border: 4px solid rgba(52, 20, 181, 0.2); border-radius: 24px;
  overflow: hidden; background: #fff;
  display: flex; flex-direction: column; aspect-ratio: 1 / 1.16;   /* equal height → titles aligned */
}
.feature-card__panel {
  flex: 1; min-height: 0; display: grid; place-items: center;
  padding: clamp(16px, 2.4vw, 26px);
}
.feature-card__panel img { max-width: 100%; max-height: 100%; object-fit: contain; }
.feature-card:nth-child(4n+1) .feature-card__panel { background: #e7e0ff; }
.feature-card:nth-child(4n+2) .feature-card__panel { background: #eceef4; }
.feature-card:nth-child(4n+3) .feature-card__panel { background: #f4f8e3; }
.feature-card:nth-child(4n+0) .feature-card__panel { background: #e7e0ff; }
.feature-card__label {
  flex: none; background: #fff; color: var(--color-ink);
  font-size: 18px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
  padding: 16px 20px 18px; font-family: var(--font-display);
}

/* Diagonal divider into the indigo steps section */
.steps__cut { position: absolute; top: -1px; left: 0; width: 100%; height: clamp(40px, 7vw, 96px); background: var(--color-white); clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%); }

/* ==========================================================================
   Solution / split feature
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.split__media { position: relative; }
.split--rev .split__media { order: -1; }
/* Solution video — shown at its native 860x1110 aspect so it's fully visible */
.solution-media { width: min(420px, 92%); margin-inline: auto; aspect-ratio: 860 / 1110; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-card); background: #efe9df; }
.solution-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Timezone section — lime background, dotted, indigo card with bubble
   ========================================================================== */
.tz { background: #dff0a8; color: var(--color-ink); position: relative; overflow: clip; }
.tz__cut { position: absolute; top: -1px; left: 0; width: 100%; height: clamp(44px, 8vw, 120px); background: var(--color-white); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 38%); z-index: 1; }
.tz__dots {
  position: absolute; top: 0; right: 0; bottom: 0; width: 62%; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(52,20,181,0.22) 2px, transparent 2.4px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
  mask-image: linear-gradient(to right, transparent, #000 30%);
}
.tz .container { position: relative; z-index: 2; }
.tz__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.tz__card {
  position: relative; overflow: hidden;
  background: #3a1fd6; border-radius: 30px;
  aspect-ratio: 1 / 1.06; max-width: 480px; margin-inline: auto; width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: clamp(18px, 3vh, 32px); padding: clamp(26px, 4vw, 42px);
  box-shadow: var(--shadow-card);
  font-family: -apple-system, system-ui, "Segoe UI", sans-serif;
}
.tz__card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.tz__card > * { position: relative; z-index: 1; }

.tz-bubble2 {
  position: relative; align-self: center;
  background: #e8e8ea; color: #0a0a0a;
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.1rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1;
  padding: 12px 22px; border-radius: 26px;
  display: inline-flex; align-items: center; gap: 8px;
}
.tz-bubble2::after {
  content: ""; position: absolute; left: 16px; bottom: -7px;
  width: 20px; height: 16px; background: #e8e8ea;
  clip-path: polygon(0 0, 100% 0, 22% 100%);
}

.tz-translate { display: flex; align-items: center; gap: 10px; align-self: center; max-width: 100%; }
.tz-pill {
  font-size: clamp(1.15rem, 0.9rem + 1.3vw, 1.65rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1;
  padding: 10px 20px; border-radius: var(--radius-pill); white-space: nowrap;
}
.tz-pill--gray { background: #e8e8ea; color: #0a0a0a; }
.tz-pill--blue { background: #2d7ff9; color: #fff; }
.tz-connector { display: flex; align-items: center; gap: 4px; flex: none; }
.tz-connector i { height: 7px; border-radius: 4px; display: block; }
.tz-connector .lime { width: 14px; background: var(--color-lime); }
.tz-connector .dark { width: 34px; background: rgba(255,255,255,0.28); }

.tz-note {
  margin-top: clamp(26px, 6vh, 64px); align-self: stretch;
  display: flex; align-items: center; gap: 10px;
  background: #e7e0ff; color: var(--color-ink);
  border-radius: 16px; padding: 14px 18px;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem); font-weight: 500;
}
.tz-note svg { width: 22px; height: 22px; flex: none; color: var(--color-indigo); }

@media (max-width: 820px) {
  .tz__layout { grid-template-columns: 1fr; }
  .tz__dots { width: 100%; opacity: 0.6; }
  .tz__card { max-width: 380px; }
  .tz-translate { flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================================
   Beyond section (image background)
   ========================================================================== */
.beyond { background: var(--color-white); color: var(--color-ink); position: relative; overflow: clip; }
.beyond__waves {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* Exact geometry from the source N9GeBa.svg (200x120 tile), faint stroke */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='120'%3E%3Cg fill='none' stroke='%23eceef4' stroke-width='2'%3E%3Cpath d='M0 27C50 27 50 7 100 7s50 20 100 20'/%3E%3Cpath d='M0 67c50 0 50-20 100-20s50 20 100 20'/%3E%3Cpath d='M0 107c50 0 50-20 100-20s50 20 100 20'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat; background-position: left top; background-size: 500px auto;
  /* Stronger on the left, gently fading out toward the right */
  -webkit-mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,0.55) 38%, transparent 82%);
  mask-image: linear-gradient(to right, #000 0%, rgba(0,0,0,0.55) 38%, transparent 82%);
}
.beyond .container { position: relative; z-index: 2; }
.beyond__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.beyond__phone { width: min(300px, 72vw); margin-inline: auto; }
.beyond__phone .phone__screen { aspect-ratio: 786 / 1704; }   /* match app-dashboard so it shows fully */
.beyond__inner { max-width: 460px; }
@media (max-width: 820px) {
  .beyond__layout { grid-template-columns: 1fr; }
  .beyond__inner { max-width: 100%; }
}

/* ==========================================================================
   How to use Wenya — demo video carousel
   ========================================================================== */
.howto { background: var(--color-surface); color: var(--color-ink); }
.howto-feature {
  display: grid; grid-template-columns: minmax(280px, 340px) 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
}

/* Featured player — autoplays a muted preview; click to watch with sound */
.howto-player {
  position: relative; display: block; width: min(320px, 78vw); margin-inline: auto;
  aspect-ratio: 9 / 19.3; border-radius: 30px; overflow: hidden;
  background: linear-gradient(160deg, #3a1fd6, #1d0b7a); border: 0; padding: 0; cursor: pointer;
  box-shadow: 0 24px 60px rgba(20, 10, 70, 0.18);
}
/* CSS cover while the video has no painted frame yet (no poster assets
   to maintain): faint brand mark over the gradient; the video paints
   on top of it as soon as frames arrive. */
.howto-player::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/images/YWwEpyM19yUP0yysMoi9O5xntYo.png") center / 64px no-repeat;
  opacity: 0.3;
}
.howto-player video { width: 100%; height: 100%; object-fit: contain; display: block; position: relative; }
.howto-player::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,8,30,0) 55%, rgba(10,8,30,0.35) 100%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.howto-player:hover::after, .howto-player:focus-visible::after { opacity: 1; }
.howto-player__btn {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.92); z-index: 2; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); transition: transform .3s var(--ease), opacity .3s var(--ease);
  opacity: 0;
}
.howto-player:hover .howto-player__btn, .howto-player:focus-visible .howto-player__btn { opacity: 1; transform: scale(1.06); }
.howto-player__btn svg { width: 24px; height: 24px; fill: var(--color-indigo); margin-left: 3px; }

/* Selectable demo list */
.howto-list { display: flex; flex-direction: column; gap: 6px; }
.howto-item {
  display: flex; gap: 16px; align-items: flex-start; text-align: left; width: 100%;
  padding: 16px 18px; border-radius: 16px; border: 1px solid transparent;
  background: transparent; cursor: pointer; font: inherit; color: inherit;
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.howto-item:hover { background: rgba(52,20,181,0.05); }
.howto-item.active { background: #fff; border-color: rgba(52,20,181,0.12); box-shadow: var(--shadow-sm); }
.howto-item__num { font-family: var(--font-mono); font-size: 13px; color: var(--color-grey-400); padding-top: 4px; transition: color .25s var(--ease); }
.howto-item.active .howto-item__num { color: var(--color-violet); }
.howto-item b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--color-ink); letter-spacing: -0.01em; }
.howto-item small { display: block; margin-top: 3px; font-size: 14.5px; color: var(--color-grey-500); line-height: 1.45; }
@media (max-width: 820px) {
  .howto-feature { grid-template-columns: 1fr; gap: 32px; }
  .howto-player__btn, .howto-player::after { opacity: 1; }
}

/* Mid-page download CTA under the demos — bridges the long CTA-less
   stretch between the hero and the final CTA (the header is absolute,
   so the nav CTA scrolls away with the hero). */
.howto-cta { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,8,30,0.82); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 24px; overscroll-behavior: contain; }
.lightbox.open { display: flex; }
.lightbox__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lightbox__video { max-width: min(420px, 92vw); max-height: 82vh; width: auto; height: auto; border-radius: 22px; background: #000; display: block; box-shadow: var(--shadow-lg); }
.lightbox__title { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.lightbox__close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; transition: background .3s var(--ease); }
.lightbox__close:hover { background: rgba(255,255,255,0.22); }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.cta { position: relative; text-align: center; overflow: clip; background: var(--color-indigo); }
.cta::before { content:""; position:absolute; inset:0; background: var(--hero-glow); pointer-events:none; }
.cta .container { position: relative; z-index: 3; }
.cta__title { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); max-width: 16ch; margin: 0 auto var(--space-7); text-wrap: balance; }
.cta__logos { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.app-logo {
  position: absolute; width: clamp(46px, 6vw, 72px); height: clamp(46px, 6vw, 72px);
  border-radius: 22%; box-shadow: var(--shadow-md); object-fit: cover;
  opacity: 0.95;
  animation: logo-bob 6s ease-in-out infinite;
}
/* uses the `translate` property so each logo keeps its rotate() transform */
@keyframes logo-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.app-logo.l1 { animation-delay: -0.2s; }
.app-logo.l2 { animation-delay: -1.4s; }
.app-logo.l3 { animation-delay: -2.6s; }
.app-logo.l4 { animation-delay: -3.8s; }
.app-logo.l5 { animation-delay: -0.8s; }
.app-logo.l6 { animation-delay: -2.0s; }
.app-logo.l7 { animation-delay: -3.2s; }
.app-logo.l8 { animation-delay: -4.4s; }
@media (prefers-reduced-motion: reduce) { .app-logo { animation: none; } }
/* scattered positions */
.app-logo.l1 { top: 12%;  left: 8%;  transform: rotate(-8deg); }
.app-logo.l2 { top: 26%;  left: 20%; }
.app-logo.l3 { top: 60%;  left: 11%; transform: rotate(6deg); }
.app-logo.l4 { bottom: 12%; left: 24%; }
.app-logo.l5 { top: 14%;  right: 9%;  transform: rotate(7deg); }
.app-logo.l6 { top: 30%;  right: 20%; }
.app-logo.l7 { top: 62%;  right: 12%; transform: rotate(-6deg); }
.app-logo.l8 { bottom: 13%; right: 23%; }
@media (max-width: 860px) { .app-logo.l2,.app-logo.l6 { display: none; } }

/* ---- Sticky mobile download bar ---------------------------------------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(18, 12, 52, 0.94); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  transform: translateY(110%); visibility: hidden;
  transition: transform .35s var(--ease), visibility .35s;
}
.sticky-cta.show { transform: none; visibility: visible; }
.sticky-cta__info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sticky-cta__info img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.sticky-cta__info b { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #fff; line-height: 1.15; }
.sticky-cta__info small { display: block; font-size: 12px; color: rgba(255,255,255,0.65); }
.sticky-cta .btn { flex: none; }
@media (max-width: 820px) { .sticky-cta { display: flex; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---- Final CTA: badge + desktop QR -------------------------------------- */
.cta__actions { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 36px); }
.cta-qr {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--color-white); border-radius: 16px; padding: 12px 14px;
  box-shadow: var(--shadow-md);
}
.cta-qr img { width: 96px; height: 96px; display: block; }
.cta-qr span { font-family: var(--font-mono); font-size: 10.5px; color: var(--color-grey-500); letter-spacing: 0.02em; }
/* QR is a desktop affordance — pointless on the phone itself */
@media (max-width: 820px) { .cta-qr { display: none; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-ink-900); color: rgba(255,255,255,0.7); padding-block: clamp(56px, 7vw, 96px) var(--space-6); }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: var(--space-7) var(--space-9); align-items: start; }
.footer__about { display: flex; flex-direction: column; gap: var(--space-6); }
.footer__follow { display: flex; align-items: center; gap: 14px; }
.footer__follow .lbl { font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.55); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,0.08); display: grid; place-items: center; transition: background var(--dur) var(--ease); }
.footer__social a:hover { background: rgba(255,255,255,0.16); }
.footer__social svg { width: 16px; height: 16px; }
.footer__links { justify-self: end; text-align: left; }
.footer__links h6 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: #fff; margin-bottom: var(--space-4); }
.footer__links ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.footer__links a { color: rgba(255,255,255,0.7); font-size: 16px; transition: color var(--dur) var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__divider { height: 1px; background: rgba(255,255,255,0.1); margin-top: clamp(48px, 6vw, 80px); }
.footer__copy { text-align: center; padding-top: var(--space-6); font-size: 15px; color: rgba(255,255,255,0.45); }
@media (max-width: 700px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .footer__links { justify-self: start; }
}

/* ==========================================================================
   Reveal-on-scroll animation
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(30px); filter: blur(6px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; filter: none; }
/* stagger helpers — applied to items that enter together */
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }
/* subtle horizontal entrances */
.reveal-left  { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }
.reveal-left.in, .reveal-right.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .problem__layout, .step, .split, .tz__layout, .footer__grid { grid-template-columns: 1fr; }
  .step:nth-child(even) .step__media, .split--rev .split__media { order: 0; }
  .footer__grid { gap: var(--space-6); }
  .chat-mock { max-width: 100%; }
}
@media (max-width: 540px) {
  :root {
    --fs-display: clamp(2rem, 1.1rem + 4.6vw, 2.6rem);
    --fs-h2: clamp(1.7rem, 1.1rem + 3vw, 2.2rem);
  }
  .site-header { padding-block: var(--space-4); }
  .site-header .container { gap: 12px; }
  .brand { font-size: 1.15rem; }
  .brand__wordmark { height: 24px; }
  .btn { padding: 10px 16px; }
  .hero { padding-top: 120px; }
  .hero__title, .cta__title, .h2, h1, h2, h3 { overflow-wrap: anywhere; }
  .hero__title { max-width: 100%; }
  .hero__lead { max-width: 100%; }
  /* The floating accent cards sit on top of the phone mockups at phone
     widths (covering the WhatsApp conversation and the keyboard), so
     they're desktop/tablet-only decoration. */
  .floaty { display: none; }
  .hero__stage { width: min(290px, 78vw); }
}
