/* SleepyDesk home (v2): short sections on hard-cut grounds, bold type.
   Each scene plays on a clock once it is in view (home.js); nothing is driven by scroll position. */

:root {
  --night: #0b1026;
  --navy: #0f1630;
  --navy-soft: #3b4466;
  --paper: #f6f1e6;
  --gold: #f5c76b;
  --gold-deep: #8a5a00;
  --wa: #1fa855;
  --ink-soft: #c3c8dc;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --bar-h: 68px;
}

html { background: var(--night); scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body { margin: 0; background: var(--night); color: #f6f3ec; font-family: var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.how :focus-visible, .who :focus-visible, .close :focus-visible { outline-color: var(--navy); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }

/* ------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--font-text); white-space: nowrap; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms, box-shadow 160ms, color 160ms;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 24px -10px rgba(245, 199, 107, 0.7); }
.btn--gold:hover { background: #ffd587; }
.btn--ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn--navy { background: var(--navy); color: #fff; box-shadow: 0 10px 26px -12px rgba(15, 22, 48, 0.7); }
.btn--navy:hover { background: #1c2650; }
.btn--line { background: rgba(255, 255, 255, 0.55); color: var(--navy); border-color: rgba(15, 22, 48, 0.3); }
.btn--line:hover { background: rgba(255, 255, 255, 0.85); }
button.btn { font-family: var(--font-text); }

.btn--big { min-height: 60px; padding: 0 34px; font-size: 1.15rem; }
.btn .i { width: 18px; height: 18px; }

/* ----------------------------------------------------------------- bar -- */
/* Loud bar: the CTA weighs as much as the wordmark, and the two section anchors are the nav. */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 0 var(--gutter); color: #fff; transition: background-color 250ms, box-shadow 250ms;
}
.bar.is-solid { background: rgba(11, 16, 38, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.bar__brand { display: inline-flex; color: inherit; }
.bar__brand svg { display: block; }
.bar__mark { display: none !important; }
.bar__nav { display: flex; gap: 6px; justify-self: center; }
.bar__nav a { color: inherit; text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 10px 14px; border-radius: 999px; }
.bar__nav a:hover { background: rgba(255, 255, 255, 0.1); }
.bar__end { display: flex; align-items: center; gap: 14px; }
.bar__link { color: inherit; text-decoration: none; font-weight: 500; font-size: 0.95rem; opacity: 0.9; }
.bar__link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid currentColor; border-color: color-mix(in oklab, currentColor 35%, transparent);
}
.lang-switch a {
  color: inherit; text-decoration: none; font: 600 0.78rem/1 var(--font-text);
  letter-spacing: 0.04em; padding: 7px 9px; border-radius: 999px; opacity: 0.75;
}
.lang-switch a[aria-current="true"] { background: color-mix(in oklab, currentColor 18%, transparent); opacity: 1; }
.lang-switch a:hover { opacity: 1; }


/* ------------------------------------------------------------- type -- */
.d { margin: 0; font-family: var(--font-display); font-weight: 750; font-size: clamp(2.4rem, 1.2rem + 3.6vw, 5rem); line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
.d--hero { font-size: clamp(2.6rem, 0.8rem + 4.4vw, 5.6rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.05em; }
.lede { margin: 0; max-width: 42ch; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem); line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.note .i { width: 18px; height: 18px; color: var(--gold); flex: none; }

/* ------------------------------------------------------------- hero -- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--bar-h) + 28px) 0 56px; box-sizing: border-box; background: radial-gradient(70% 80% at 85% 60%, #1c2658 0%, transparent 65%), var(--night); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__copy .d { max-width: 13ch; }
/* proof first: the real WhatsApp Business Platform (no WhatsApp trademark logo) */
.official {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; margin: 0;
  padding: 8px 18px 8px 8px; border-radius: 999px; background: #25d366; color: #052e16;
  box-shadow: 0 10px 30px -12px rgba(37, 211, 102, 0.65);
  font-size: 0.95rem; line-height: 1.2;
}
.official strong { font-weight: 700; }
.official small { font-size: 0.85em; font-weight: 600; opacity: 0.75; }
.official__mark { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #128c4a; display: grid; place-items: center; }
.official__mark > .i { width: 19px; height: 19px; }
.official__mark i { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: #052e16; color: #25d366; display: grid; place-items: center; }
.official__mark i .i { width: 10px; height: 10px; stroke-width: 3.5; }
.hero__sync { display: grid; gap: 10px; }
.hero__sync p { margin: 0; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); font-weight: 600; font-size: 0.92rem; }
.chip__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.chip__dot .i { width: 14px; height: 14px; }
.chip__dot svg { width: 26px; height: 26px; border-radius: 50%; }
.chip--g .chip__dot, .sync--g .sync__dot { background: #4285f4; color: #fff; }
.chip--o .chip__dot, .sync--o .sync__dot { background: #0a64c9; color: #fff; }

/* the stage: disc behind, phone in the middle, two cards in front that overlap its edges */
.stage { position: relative; height: min(680px, 78svh); }
.stage__disc { position: absolute; left: 50%; top: 50%; width: min(560px, 46vw); aspect-ratio: 1; margin: calc(min(560px, 46vw) / -2) 0 0 calc(min(560px, 46vw) / -2); border-radius: 50%; background: var(--gold); }
.stage__phone { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); --ph-h: min(600px, 70svh); }
.stage__cap { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); margin: 0; font: 600 0.7rem/1 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.float {
  position: absolute; z-index: 3; width: min(300px, 26vw); box-sizing: border-box; padding: 14px; border-radius: 18px;
  background: #fff; color: var(--navy); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.15);
}
.float p { margin: 0; }
.float--wa { left: -4%; top: 12%; display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; line-height: 1.35; }
.float__app { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--wa); color: #fff; display: grid; place-items: center; }
.float__app .i { width: 18px; height: 18px; }
.float__head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px !important; }
.float__head small { color: #667781; }
.float--sync { right: -6%; bottom: 10%; display: grid; gap: 12px; }
.float__title { display: flex; gap: 10px; align-items: center; }
.float__title strong { display: block; font-size: 0.98rem; }
.float__title small { display: block; font-size: 0.82rem; color: #5d6585; margin-top: 2px; }
.float__tick { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.float__tick .i { width: 18px; height: 18px; }
.syncs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sync { display: grid; grid-template-columns: 22px 1fr 20px; gap: 8px; align-items: center; font-size: 0.85rem; font-weight: 600; }
.sync__dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.sync__dot .i { width: 12px; height: 12px; }
.sync__dot svg { width: 22px; height: 22px; border-radius: 50%; }
.sync em { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #e7f5ee; color: #1f7a4d; font-style: normal; }
.sync em .i { width: 12px; height: 12px; stroke-width: 3; }

/* hero entrance: plays once on load */
.js .stage__disc { transform: scale(0.85); opacity: 0; transition: transform 900ms var(--ease-out), opacity 700ms; }
.js .stage__phone .phone { transform: translateY(30px); opacity: 0; transition: transform 900ms var(--ease-out) 150ms, opacity 600ms 150ms; }
.js .float { opacity: 0; transform: translateY(16px) scale(0.96); transition: transform 700ms var(--ease-out), opacity 500ms; }
.js .float--wa { transition-delay: 600ms; }
.js .float--sync { transition-delay: 1000ms; }
.js .float--sync .sync em { transform: scale(0); transition: transform 400ms var(--ease-out); }
.js .float--sync .sync:nth-child(1) em { transition-delay: 1600ms; }
.js .float--sync .sync:nth-child(2) em { transition-delay: 1800ms; }
.js .float--sync .sync:nth-child(3) em { transition-delay: 2000ms; }
.is-ready .stage__disc, .is-ready .stage__phone .phone, .is-ready .float { transform: none; opacity: 1; }
.is-ready .float--sync .sync em { transform: none; }
.stage .phone { --ph-h: min(600px, 70svh); }

/* -------------------------------------------------------------- how -- */
.how { background: var(--paper); color: var(--navy); padding: clamp(80px, 10vw, 128px) 0; }
.how .lede { color: var(--navy-soft); }
.how__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.how__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.1fr); gap: clamp(24px, 3.5vw, 56px); align-items: center; }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.how__steps li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 18px; opacity: 0.38; transition: opacity 400ms, background-color 400ms; }
.how__steps li.is-on { opacity: 1; background: #fff; box-shadow: 0 0 0 1px #e8e1cf; }
.how__n { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--gold); font: 800 1.6rem/1 var(--font-display); }
.how__steps li:first-child.is-on .how__n { background: var(--wa); color: #fff; }
.how__steps h3 { margin: 4px 0 4px; font: 750 1.3rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.how__steps p { margin: 0; font-size: 0.97rem; line-height: 1.45; color: var(--navy-soft); }
.how__phone { margin: 0; --ph-h: min(560px, 72svh); }
.cal { margin: 0; align-self: stretch; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px #e8e1cf, 0 30px 60px -36px rgba(15, 22, 48, 0.45); transition: box-shadow 500ms; }
.cal.is-landed { box-shadow: 0 0 0 2px var(--gold), 0 30px 60px -30px rgba(170, 120, 20, 0.5); }
.cal__head { display: flex; align-items: center; gap: 10px; }
.cal__head svg { border-radius: 8px; }
.cal__head strong { font: 750 1.25rem/1 var(--font-display); }
.cal__head small { margin-left: auto; font-weight: 600; color: #5d6585; }
.syncs--row { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-bottom: 12px; border-bottom: 1px solid #eee7d6; }
.syncs--row .sync { grid-template-columns: 22px auto 20px; font-size: 0.8rem; }
.cal .sync em { transform: scale(0); transition: transform 380ms var(--ease-out); }
.cal .sync.is-on em { transform: none; }
.cal__body { position: relative; flex: 1; min-height: 360px; }
.cal__hours { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-rows: repeat(8, 1fr); }
.cal__hours li { position: relative; border-top: 1px solid #efe9da; }
.cal__hours time { position: absolute; left: 0; top: 4px; font-size: 0.75rem; color: #8a90a8; font-variant-numeric: tabular-nums; }
.cal__blocks { position: absolute; inset: 0 0 0 58px; }
.cal__b { position: absolute; left: 0; right: 0; top: calc(var(--s) / 8 * 100% + 3px); height: calc(var(--l) / 8 * 100% - 6px); margin: 0; padding: 6px 12px; box-sizing: border-box; border-radius: 10px; background: #eef0f7; border-left: 4px solid #b8bfd8; color: #2b3560; font-size: 0.85rem; font-weight: 600; overflow: hidden; }
.cal__b--new { background: var(--gold); border-left-color: var(--gold-deep); color: var(--navy); box-shadow: 0 12px 26px -12px rgba(170, 120, 20, 0.7); display: flex; flex-direction: column; justify-content: center; z-index: 2; opacity: 0; transform: scale(0.94); transition: opacity 250ms, transform 450ms cubic-bezier(0.2, 1.4, 0.4, 1); }
.cal__b--new.on { opacity: 1; transform: none; }
.cal__b--new strong, .cal__b--new small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__b--new small { font-weight: 500; font-size: 0.75rem; }
.cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 0.7rem/1 var(--font-text); letter-spacing: 0.1em; text-transform: uppercase; color: #8a90a8; }
.replay { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid #c9cee0; background: #fff; color: var(--navy); cursor: pointer; font: 600 0.72rem/1 var(--font-text); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity 300ms; }
.replay .i { width: 14px; height: 14px; }
.is-done .replay { opacity: 1; pointer-events: auto; }
.flight { z-index: 40; pointer-events: none; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 0.8rem; box-shadow: 0 20px 40px -12px rgba(15, 22, 48, 0.6); }
.flight strong, .flight small { display: block; }
.flight .booked__tick { width: 26px; height: 26px; }
.flight .booked__tick .i { width: 15px; height: 15px; }
.is-flying [data-flight-from] { visibility: hidden; }
.how__team { display: flex; gap: 10px; align-items: center; margin: 32px 0 0; font-weight: 500; color: var(--navy-soft); }
.how__team .i { width: 20px; height: 20px; color: var(--gold-deep); flex: none; }
.how__more { margin: 12px 0 0; }
.how__more a { color: var(--navy); font-weight: 700; text-underline-offset: 4px; }

/* -------------------------------------------------------------- who -- */
.who { background: var(--gold); color: var(--navy); padding: clamp(80px, 10vw, 128px) 0; }
.who__h { margin: 0 0 clamp(28px, 4vw, 44px); font: 650 clamp(1.3rem, 1rem + 1vw, 1.8rem)/1.2 var(--font-display); letter-spacing: -0.02em; max-width: 30ch; }
.who__types { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.1em 0.45em; font: 800 clamp(2.2rem, 0.9rem + 4.6vw, 5.4rem)/1.02 var(--font-display); letter-spacing: -0.045em; }
.who__types li:not(:last-child)::after { content: " ·"; color: rgba(15, 22, 48, 0.35); }
.who__types li:nth-child(even) { color: rgba(15, 22, 48, 0.62); }
.who__pain { margin: clamp(36px, 5vw, 60px) 0 0; max-width: 34ch; font: 650 clamp(1.4rem, 1rem + 1.5vw, 2.3rem)/1.25 var(--font-display); letter-spacing: -0.02em; }
.who__pain s { text-decoration: none; position: relative; background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 0% 3px; transition: background-size 700ms var(--ease-out), opacity 500ms 500ms; }
.who__pain.is-struck s { background-size: 100% 3px; opacity: 0.55; }
.who__pain strong { display: block; margin-top: 10px; padding: 6px 16px; width: fit-content; border-radius: 12px; background: var(--navy); color: var(--gold); font-weight: 800; opacity: 0; transform: translateY(10px); transition: opacity 500ms 600ms, transform 600ms var(--ease-out) 600ms; }
.who__pain.is-struck strong { opacity: 1; transform: none; }

/* -------------------------------------------------------------- day -- */
.day { background: var(--night); padding: clamp(80px, 10vw, 128px) 0; }
.day__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.day__body { display: grid; gap: 24px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.facts li { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; font-weight: 500; }
.facts .i { width: 40px; height: 40px; padding: 9px; box-sizing: border-box; border-radius: 12px; background: rgba(245, 199, 107, 0.14); color: var(--gold); flex: none; }

/* ------------------------------------------------------------ close -- */
.close { background: var(--paper); color: var(--navy); padding: clamp(96px, 12vw, 160px) 0 28px; }
.close__inner { display: grid; gap: 28px; }
.close__h { margin: 0; font: 800 clamp(2.8rem, 0.8rem + 6.4vw, 7.4rem)/0.92 var(--font-display); letter-spacing: -0.055em; max-width: 13ch; }
.close .note { color: var(--navy-soft); }
.close .note .i { color: var(--gold-deep); }
.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: clamp(64px, 8vw, 104px); padding-top: 22px; border-top: 1px solid #e3dccb; font-size: 0.85rem; color: var(--navy-soft); }
.foot a, .foot button { color: inherit; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover, .foot button:hover { color: var(--navy); }

/* arrive once, in order */
.js .rise { opacity: 0; transform: translateY(22px); transition: opacity 600ms var(--ease-out), transform 750ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .rise.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ phone -- */
.phone {
  position: relative; height: var(--ph-h); aspect-ratio: 9 / 19; box-sizing: border-box;
  border-radius: calc(var(--ph-h) * 0.075); background: #05070f; padding: calc(var(--ph-h) * 0.014);
  box-shadow: 0 0 0 1.5px #2a3150 inset, 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.phone::before { content: ""; position: absolute; z-index: 200; top: calc(var(--ph-h) * 0.026); left: 50%; width: 28%; height: calc(var(--ph-h) * 0.03); transform: translateX(-50%); border-radius: 999px; background: #05070f; }
.stage .wa-thread .msg { display: block; }

/* screens (shared with the earlier landing) */
.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: calc(var(--ph-h) * 0.062);
  container-type: inline-size;
  background: #0d1124;
  font-size: 4.3cqw;
  color: #111b21;
}

/* screens */
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; }
.ph-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4.2cqw 8cqw 0; height: 11cqw; box-sizing: border-box;
  font: 600 3.8cqw/1 var(--font-text); font-variant-numeric: tabular-nums;
}
.ph-status__icons .i { width: 6.5cqw; height: 6.5cqw; display: block; }

/* lock screen */
.scr--lock {
  color: #fff; text-align: center;
  background:
    radial-gradient(120% 70% at 50% 110%, #3a2f6e 0%, transparent 60%),
    linear-gradient(180deg, #121a3f 0%, #0b1029 100%);
}
.scr--day {
  background:
    radial-gradient(120% 70% at 50% 110%, #ffd9a0 0%, transparent 60%),
    linear-gradient(180deg, #a9c6ee 0%, #e7eefa 100%);
  color: var(--navy);
}
.lock__day { margin: 6cqw 0 0; font: 500 4.6cqw/1 var(--font-text); opacity: 0.85; }
.lock__time {
  margin: 1cqw 0 0; font: 650 21cqw/1 var(--font-display);
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.widget {
  margin: 8cqw 6cqw 0; padding: 4cqw; border-radius: 5cqw; text-align: left;
  display: flex; gap: 3cqw; align-items: center;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.12);
}
.widget strong { display: block; font-size: 3.9cqw; }
.widget small { display: block; font-size: 3.4cqw; opacity: 0.75; margin-top: 0.8cqw; }
.widget__dot { width: 3cqw; height: 3cqw; border-radius: 50%; background: #ff8a7a; flex: none; }

.notif {
  margin: 6cqw 4.5cqw 0; padding: 3.6cqw; border-radius: 5cqw; text-align: left;
  display: flex; gap: 3cqw; align-items: flex-start;
  background: rgba(255, 255, 255, 0.92); color: #111b21;
  box-shadow: 0 6cqw 12cqw -6cqw rgba(0, 0, 0, 0.5);
}
.notif + .notif { margin-top: 2.4cqw; }
.notif p { margin: 0; font-size: 3.6cqw; line-height: 1.3; }
.notif__head { display: flex; justify-content: space-between; gap: 2cqw; margin-bottom: 0.8cqw !important; }
.notif__head small { color: #667781; font-size: 3.1cqw; }
.notif__app {
  flex: none; width: 8.5cqw; height: 8.5cqw; border-radius: 2.4cqw; background: var(--wa); color: #fff;
  display: grid; place-items: center;
}
.notif__app .i { width: 5.2cqw; height: 5.2cqw; }
.notif__app--sd { background: none; }
.notif__app--sd svg { width: 100%; height: 100%; display: block; }

/* chat */
.scr--chat { background: #efeae2; }
.scr--chat .ph-status { background: #f6f5f3; }
.wa-head {
  display: flex; align-items: center; gap: 3cqw; padding: 2.4cqw 4.5cqw 3cqw;
  background: #f6f5f3; border-bottom: 1px solid #e3ded6;
}
.wa-head strong { display: block; font-size: 4.3cqw; }
.wa-head small { display: block; font-size: 3.2cqw; color: #1a8f4c; margin-top: 0.4cqw; }
.wa-avatar {
  width: 9.5cqw; height: 9.5cqw; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: #d7c4f2; color: #3e2a66; font-weight: 600; font-size: 4.2cqw;
}
.wa-avatar--2 { background: #f8d5b8; color: #6b3a14; }
.wa-thread {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2cqw;
  padding: 3cqw 4cqw 5cqw;
}
.wa-day {
  align-self: center; margin: 0 0 1cqw; padding: 1cqw 3cqw; border-radius: 2cqw;
  background: #fff; color: #54656f; font-size: 3cqw;
}
.msg {
  margin: 0; max-width: 80%; padding: 2.2cqw 3cqw 2.2cqw; border-radius: 3.2cqw;
  font-size: 3.85cqw; line-height: 1.35; position: relative;
  box-shadow: 0 0.4cqw 0.6cqw rgba(0, 0, 0, 0.08);
}
.msg time { float: right; margin: 1.8cqw 0 -0.6cqw 2.4cqw; font-size: 2.7cqw; color: #667781; }
.msg[dir="rtl"] .ai-badge { direction: ltr; margin-left: auto; }
.msg[dir="rtl"] time { float: left; margin: 1.8cqw 2.4cqw -0.6cqw 0; }
.msg--in { align-self: flex-start; background: #fff; border-top-left-radius: 0.8cqw; }
.msg--out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 0.8cqw; }
.msg[dir="rtl"] { font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; }
.typing {
  margin: 0; align-self: flex-end; display: inline-flex; gap: 1.2cqw;
  padding: 3cqw 3.6cqw; border-radius: 3.2cqw; background: #d9fdd3;
}
.typing--in { align-self: flex-start; background: #fff; }
.typing i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #8696a0; animation: dot 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-1cqw); opacity: 1; } }

.booked {
  align-self: center; display: flex; align-items: center; gap: 2.6cqw;
  margin-top: 1.5cqw; padding: 2.6cqw 3.6cqw; border-radius: 3.4cqw;
  background: var(--navy); color: #fff;
  box-shadow: 0 3cqw 8cqw -3cqw rgba(15, 22, 48, 0.6);
}
.booked strong { display: block; font-size: 3.6cqw; }
.booked small { display: block; font-size: 3.1cqw; opacity: 0.8; margin-top: 0.4cqw; }
.booked__tick { width: 7cqw; height: 7cqw; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; flex: none; }
.booked__tick .i { width: 4.4cqw; height: 4.4cqw; stroke-width: 2.6; }
.handed {
  align-self: center; display: inline-flex; align-items: center; gap: 1.6cqw; margin: 1.5cqw 0 0;
  padding: 1.6cqw 3cqw; border-radius: 999px; background: #fff3d6; color: #6b4b00;
  font-size: 3.2cqw; font-weight: 600;
}
.handed .i { width: 4.2cqw; height: 4.2cqw; }

/* agenda */
.scr--agenda, .scr--dash { background: #f7f8fc; color: var(--navy); }
.ag-head { display: flex; align-items: center; gap: 2.4cqw; padding: 2cqw 5cqw 3cqw; }
.ag-head svg { width: 6.5cqw; height: 6.5cqw; flex: none; }
.ag-head strong { font: 650 5cqw/1 var(--font-display); }
.ag-head small { margin-left: auto; font-size: 3.4cqw; color: #5d6585; }
.ag-grid, .ag-blocks { position: absolute; left: 0; right: 0; top: 26cqw; bottom: 4cqw; margin: 0; padding: 0; list-style: none; }
.ag-grid { display: grid; grid-template-rows: repeat(8, 1fr); }
.ag-grid li { position: relative; border-top: 1px solid #e3e6f0; }
.ag-grid time { position: absolute; left: 4cqw; top: 0; transform: translateY(-50%); font-size: 2.9cqw; line-height: 1; color: #8a90a8; background: #f7f8fc; padding-right: 1cqw; }
.ag-blocks { left: 18cqw; right: 4cqw; }
.ag-b {
  position: absolute; left: 0; right: 0;
  top: calc(var(--s) / 8 * 100% + 0.6cqw); height: calc(var(--l) / 8 * 100% - 1.2cqw);
  margin: 0; padding: 1.4cqw 2.6cqw; box-sizing: border-box; border-radius: 2.2cqw;
  background: #e5e9f8; color: #2b3560; font-size: 3.1cqw; font-weight: 500; overflow: hidden;
}
.ag-b--new {
  background: var(--gold); color: var(--navy);
  box-shadow: 0 2cqw 6cqw -2cqw rgba(170, 120, 20, 0.55);
}
.ag-b--new strong { display: block; font-size: 3.3cqw; }
.ag-b--new small { display: block; font-size: 2.8cqw; margin-top: 0.4cqw; }

/* morning dashboard */
.dash__lead { margin: 0 5cqw 2.4cqw; font-size: 3.5cqw; color: #5d6585; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; margin: 0 5cqw; }
.tile { margin: 0; padding: 3cqw; border-radius: 3.4cqw; background: #fff; box-shadow: 0 0 0 1px #e6e9f2; }
.tile strong { display: block; font: 750 9cqw/1 var(--font-display); }
.tile small { display: block; font-size: 2.9cqw; color: #5d6585; margin-top: 1cqw; line-height: 1.2; }
.tile--zero { background: var(--navy); color: #fff; box-shadow: none; }
.tile--zero strong { color: var(--gold); }
.tile--zero small { color: #c3c8dc; }
.dash__list { list-style: none; margin: 4cqw 5cqw 0; padding: 0; display: grid; gap: 2cqw; }
.row {
  display: grid; grid-template-columns: 10cqw 1fr 5cqw; gap: 2cqw; align-items: center;
  padding: 2.6cqw 3cqw; border-radius: 3cqw; background: #fff; box-shadow: 0 0 0 1px #e6e9f2;
  font-size: 3.2cqw; line-height: 1.3;
}
.row time { color: #8a90a8; font-variant-numeric: tabular-nums; }
.row .i { width: 4.6cqw; height: 4.6cqw; color: #1a8f4c; }
.row--team .i { color: #b07a00; }
.dash__example { margin: auto 5cqw 4cqw; font-size: 2.8cqw; color: #8a90a8; text-transform: uppercase; letter-spacing: 0.08em; }

/* timed pieces inside a screen (landing.js toggles .on) */
[data-at], [data-show] { display: none; }
[data-at].on, [data-show].on { display: flex; animation: pop 260ms var(--ease-out); }
.msg[data-at].on, .msg[data-type].on { display: block; }
[data-type] { display: none; }
[data-type].on { display: block; }
.ag-b[data-at].on { display: block; animation: drop 420ms var(--ease-out); }
.row[data-at].on { display: grid; }
@keyframes pop { from { opacity: 0; transform: translateY(1.5cqw) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6cqw) scale(0.96); } to { opacity: 1; transform: none; } }


.ai-badge {
  display: flex; width: fit-content; align-items: center; gap: 0.8cqw; margin: 0 0 1.2cqw;
  padding: 0.5cqw 1.8cqw 0.5cqw 1.3cqw; border-radius: 99cqw;
  background: #0f1630; color: #f5c76b; font: 650 2.7cqw/1.2 var(--font-text); letter-spacing: 0.02em;
}
.ai-badge .i { width: 2.8cqw; height: 2.8cqw; }

/* -------------------------------------------------------------- sheets -- */
.sheet {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); box-sizing: border-box;
  padding: 28px; border: 0; border-radius: 22px;
  background: #fff; color: var(--navy);
  box-shadow: 0 30px 80px -20px rgba(5, 8, 20, 0.6);
}
.sheet::backdrop { background: rgba(8, 11, 28, 0.55); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet 240ms var(--ease-out); }
@keyframes sheet { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.sheet h2 { margin: 0 40px 8px 0; font: 650 1.8rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.sheet__lede { margin: 0 0 20px; color: var(--navy-soft); line-height: 1.5; }
.sheet__close { position: absolute; top: 16px; right: 16px; margin: 0; }
.sheet__close button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: #eef0f7; color: var(--navy); display: grid; place-items: center;
}
.sheet__close .i { width: 20px; height: 20px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.optional { font-weight: 400; color: #5d6585; }
.field input, .field select {
  height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #c9cee0; background: #fff;
  font: 400 1rem var(--font-text); color: var(--navy); width: 100%; box-sizing: border-box;
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold-deep); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #c0392b; }
.hint { margin: 0; font-size: 0.82rem; color: #5d6585; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; min-height: 1.2em; font-size: 0.92rem; }
.form-msg.ok { color: #17663b; }
.form-msg.err { color: #b42318; }
.fine { margin: 0; font-size: 0.8rem; color: #5d6585; }
.fine a { color: inherit; }
.faq details { border-top: 1px solid #e3e6f0; }
.faq details:last-child { border-bottom: 1px solid #e3e6f0; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style-position: outside; }
.faq p { margin: 0 0 16px; color: var(--navy-soft); line-height: 1.55; }


/* ----------------------------------------------------------- tablet -- */
@media (max-width: 1080px) {
  .bar__nav { display: none; }
  .bar { grid-template-columns: auto 1fr; }
  .bar__end { justify-self: end; }
  .how__grid { grid-template-columns: auto minmax(0, 1fr); }
  .how__steps { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how__steps li { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------- mobile -- */
@media (max-width: 760px) {
  :root { --bar-h: 58px; }
  .bar { gap: 8px; padding: 0 16px; }
  .bar__logo { display: none !important; }
  .bar__mark { display: block !important; }
  .bar__link { display: none; }
  .bar__end { gap: 8px; }

  .hero { min-height: 0; padding-top: calc(var(--bar-h) + 24px); }
  .hero__grid, .day__grid { grid-template-columns: 1fr; }
  .hero__copy { gap: 18px; }
  .official { font-size: 0.82rem; padding: 6px 14px 6px 6px; gap: 10px; }
  .official__mark { width: 30px; height: 30px; }
  .d--hero { font-size: 2.6rem; }
  .d { font-size: 2.3rem; }
  .lede { font-size: 1.04rem; }
  .chip { font-size: 0.82rem; padding: 5px 11px 5px 5px; }
  .chip__dot { width: 22px; height: 22px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .stage { height: 520px; margin-top: 8px; }
  .stage__disc { width: 340px; margin: -170px 0 0 -170px; }
  .stage .phone { --ph-h: 470px; }
  .float { width: 210px; padding: 11px; font-size: 0.8rem; border-radius: 14px; }
  .float--wa { left: 0; top: 4%; }
  .float--sync { right: 0; bottom: 6%; }
  .float__title strong { font-size: 0.86rem; }
  .sync { font-size: 0.76rem; }

  .how__grid { grid-template-columns: 1fr; justify-items: center; }
  .how__steps { grid-template-columns: 1fr; width: 100%; gap: 6px; }
  .how__steps li { grid-template-columns: 40px 1fr; padding: 10px; }
  .how__n { width: 40px; height: 40px; font-size: 1.2rem; border-radius: 11px; }
  .how__steps h3 { font-size: 1.1rem; }
  .how__phone { --ph-h: 480px; }
  .cal { width: 100%; box-sizing: border-box; }
  .cal__body { min-height: 320px; }
  .cal__b--new small { display: none; }
  .who__types { font-size: 2.1rem; }
  .close__h { font-size: 3rem; }
  .close .actions .btn { flex: 1 1 auto; }
  .field-row { grid-template-columns: 1fr; }
  .sheet { padding: 22px; }
}

/* --------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .stage__disc, .js .stage__phone .phone, .js .float, .js .float--sync .sync em { opacity: 1; transform: none; transition: none; }
  .cal__b--new, .cal .sync em, .who__pain s, .who__pain strong, .how__steps li { transition: none; }
  .typing i { animation: none; opacity: 0.7; }
  [data-at].on, [data-show].on, .sheet[open] { animation: none; }
}
