:root {
  --bg: #f5f8f6;
  --paper: #ffffff;
  --ink: #1d2e26;
  --ink-2: #3b4d45;
  --muted: #5a6b64;
  --green: #10783e;
  --green-2: #16a34a;
  --green-deep: #0c3a24;
  --mint: #c8efda;
  --mint-soft: #e6f5ec;
  --line: #dfe7e2;
  --wa: #22b45a;
  --tg: #2a9fe0;
  --em: #6b7a74;
  --font: "Nunito Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--font); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #2e875b; outline-offset: 4px; border-radius: 6px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.fill { fill: currentColor; stroke: none; }

/* Top bar */
.topbar { position: absolute; top: 20px; right: max(24px, calc((100% - 1160px) / 2)); z-index: 5; }
.pill, .cta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--green); font-size: .85rem; font-weight: 800;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #16a34a66; } 100% { box-shadow: 0 0 0 8px #16a34a00; } }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding-block: 88px 64px; }
.hero-inner {
  position: relative; z-index: 1;
  width: min(1160px, calc(100% - 48px)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 6.6fr); align-items: center; gap: clamp(32px, 4.5vw, 64px);
}
h1 { margin: 0 0 clamp(28px, 4vh, 44px); line-height: 0; }
.lockup { width: clamp(220px, 24vw, 330px); height: auto; }
.lead { margin: 0 0 30px; max-width: 520px; font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.45; color: var(--ink-2); }
.label { margin: 0 0 10px; font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.platforms { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--ink-2); font-weight: 600; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; }
.platforms svg { width: 20px; height: 20px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.status {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 12px;
  background: var(--green); color: #fff; font-weight: 800;
}
.textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--green); font-weight: 800; }
.textlink span { transition: transform .2s ease; }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.textlink:hover span { transform: translateX(3px); }

/* Device: one laptop with the real dashboard layout */
.devices { position: relative; margin: 0; }
.laptop { container-type: inline-size; }
.screen { background: #18221d; border-radius: 2.4cqw 2.4cqw 0 0; padding: 0 1.4cqw 1.6cqw; }
.titlebar { display: flex; align-items: center; gap: .8cqw; height: 3.6cqw; color: #9fb3a9; font-size: 1.3cqw; font-weight: 700; }
.titlebar i { width: 1.05cqw; height: 1.05cqw; border-radius: 50%; background: #ef6b5e; }
.titlebar i:nth-child(2) { background: #f4bf4f; }
.titlebar i:nth-child(3) { background: #5ccf6a; }
.titlebar span { margin: 0 auto; transform: translateX(-2cqw); }
.base { position: relative; height: 2.2cqw; margin-inline: -5%; background: #cdd5d1; border-radius: 0 0 2cqw 2cqw; }
.base span { position: absolute; top: 0; left: 50%; width: 16%; height: 45%; transform: translateX(-50%); background: #b9c3be; border-radius: 0 0 1cqw 1cqw; }

.app {
  aspect-ratio: 16 / 10; overflow: hidden; border-radius: .4cqw;
  position: relative; display: grid; grid-template-columns: 17% 31% minmax(0, 1fr); grid-template-rows: auto 1fr;
  background: #fff; font-size: 1.42cqw; line-height: 1.35; color: var(--ink);
}
.app svg { stroke-width: 2; }
.app-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.2em; padding: .65em 1em; border-bottom: 1px solid var(--line); }
.app-top img { width: 8.6em; height: auto; }
.search { display: flex; align-items: center; gap: .5em; width: 30%; margin-left: 2.2em; padding: .45em .8em; border: 1px solid var(--line); border-radius: .6em; color: #94a39c; background: #fafcfb; }
.search svg { width: 1.1em; height: 1.1em; }
.health { margin-left: auto; display: flex; align-items: center; gap: .4em; font-size: .85em; font-weight: 700; color: var(--muted); }
.health i { width: .55em; height: .55em; border-radius: 50%; background: var(--green-2); margin-left: .6em; }
.me { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--mint); color: var(--green); font-weight: 800; font-size: .85em; }

.side { display: flex; flex-direction: column; gap: .1em; padding: .7em .55em; border-right: 1px solid var(--line); background: #fbfcfc; }
.nav, .sub { display: flex; align-items: center; gap: .6em; padding: .36em .6em; transition: background .25s ease, color .25s ease; border-radius: .5em; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.nav svg { width: 1.2em; height: 1.2em; flex: none; color: var(--muted); }
.nav.open { color: var(--ink); font-weight: 800; }
.sub { margin-left: 1.15em; padding-left: .9em; border-left: 1px solid var(--line); border-radius: 0 .5em .5em 0; font-size: .95em; }
.sub.on { background: var(--mint-soft); color: var(--green); font-weight: 800; }
.nav b, .sub b { margin-left: auto; padding: 0 .5em; border-radius: 99px; background: var(--green); color: #fff; font-size: .78em; }
.nav b.soft { background: #e4efe9; color: var(--green); }
.nav.hover { background: var(--mint-soft); color: var(--green); }
.nav.hover svg { color: var(--green); }

/* Sub-menu pop-out, like the collapsed menu in the real app */
.flyout {
  position: absolute; z-index: 2; left: calc(17% - .4em); top: var(--fy, 30%);
  min-width: 13em; padding: .6em; border-radius: .7em;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1.2em 2.4em -1.2em #1d2e2644;
  opacity: 0; transform: translateX(-.6em); transition: opacity .25s ease, transform .25s ease, top .3s ease;
  pointer-events: none;
}
.flyout.show { opacity: 1; transform: none; }
.flyout strong { display: block; padding: .2em .5em .45em; font-size: .78em; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.flyout ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1em; }
.flyout li { padding: .32em .5em; border-radius: .45em; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.flyout li:first-child { background: var(--mint-soft); color: var(--green); }

.list { border-right: 1px solid var(--line); padding: .8em .6em; min-width: 0; }
.chips { display: flex; gap: .35em; margin-bottom: .7em; font-size: .82em; font-weight: 700; white-space: nowrap; }
.chips span { padding: .25em .7em; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.chips .on { background: var(--green); border-color: var(--green); color: #fff; }
.chips .q { background: #fff6d8; border-color: #f3dc8d; color: #8a6500; }
.chips b { font-weight: 800; }
.row { display: flex; gap: .6em; align-items: center; padding: .55em .5em; border-radius: .6em; }
.row.on { background: var(--mint-soft); }
.row-main { min-width: 0; flex: 1; }
.row-main strong, .row-main span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main strong { font-size: .95em; }
.row-main span { font-size: .82em; color: var(--muted); }
.row time { align-self: flex-start; display: grid; justify-items: end; gap: .2em; font-size: .72em; color: var(--muted); }
.row time b { padding: 0 .45em; border-radius: 99px; background: var(--green); color: #fff; }
.ch { flex: none; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; color: #fff; }
.ch svg { width: 58%; height: 58%; stroke-width: 2.1; }
.ch.wa { background: var(--wa); }
.ch.tg { background: var(--tg); }
.ch.em { background: var(--em); }

.chat { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto auto; background: #f3f8f5; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: .6em; padding: .7em .9em; background: #fff; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-size: .95em; }
.chat-head small { display: block; color: var(--muted); font-size: .75em; }
.btn-done { margin-left: auto; padding: .35em .8em; border-radius: .5em; border: 1px solid var(--line); font-size: .8em; font-weight: 700; color: var(--ink-2); background: #fff; }
.msgs { display: flex; flex-direction: column; gap: .55em; padding: .9em; justify-content: flex-end; }
.msgs p { margin: 0; max-width: 82%; padding: .55em .8em; border-radius: .9em; font-size: .88em; }
.msgs time { display: block; text-align: right; margin-top: .2em; font-size: .76em; color: var(--muted); }
.msgs .in { background: #fff; border-bottom-left-radius: .25em; }
.msgs .out { align-self: flex-end; background: #d7f4e1; border-bottom-right-radius: .25em; }
.msgs .note { align-self: center; padding: .2em .8em; border-radius: 99px; background: #e4efe9; color: var(--muted); font-size: .74em; }
.ticks { color: var(--tg); letter-spacing: -.25em; }
.ai-suggest { min-width: 0;
  display: flex; align-items: center; gap: .6em; margin: .7em .7em 0; padding: .55em .6em .55em .7em;
  border-radius: .7em; background: #fff; border: 1px solid #b9e5cb; box-shadow: inset .25em 0 0 var(--green-2);
  font-size: .82em;
}
.ai-tag { display: inline-flex; align-items: center; gap: .3em; flex: none; padding: .15em .55em; border-radius: 99px; background: var(--mint-soft); color: var(--green); font-weight: 800; }
.ai-tag svg { width: 1.1em; height: 1.1em; }
.ai-text { flex: 1; min-width: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-use { flex: none; padding: .25em .75em; border-radius: .5em; background: var(--green); color: #fff; font-weight: 800; }
.composer { display: flex; align-items: center; gap: .6em; margin: .55em .7em .7em; padding: .45em .45em .45em .7em; background: #fff; border: 1px solid var(--line); border-radius: .7em; font-size: .85em; }
.composer .tools { display: flex; gap: .45em; color: var(--muted); }
.composer .tools svg { width: 1.3em; height: 1.3em; }
.composer .ph { flex: 1; color: #9aa8a2; }
.composer i { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: .5em; background: var(--green); color: #fff; }
.composer i svg { width: 60%; height: 60%; }

/* Features */
.features { background: var(--paper); padding-block: clamp(72px, 10vw, 112px); border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.eyebrow span { width: 24px; height: 3px; background: var(--green-2); }
.section-head h2 { margin: 0 0 14px; font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; color: var(--green-deep); }
.section-head p { margin: 0; font-size: 1.1rem; color: var(--muted); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid li { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); transition: border-color .2s ease; }
.grid li:hover { border-color: #a8d9bb; }
.tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--mint-soft); color: var(--green); }
.tile svg { width: 24px; height: 24px; }
.tile.wa { background: #dcf6e5; color: #12893f; }
.tile.tg { background: #e1f0fb; color: #1a77b8; }
.tile.em { background: #edf0ef; color: #4f5d57; }
.grid h3 { margin: 4px 0 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.grid p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* CTA */
.cta { background: var(--green-deep); color: #fff; padding-block: clamp(72px, 10vw, 104px); text-align: center; }
.cta-pill { margin: 0 0 18px; background: #ffffff12; border-color: #ffffff26; color: #b9ecce; }
.cta h2 { margin: 0 0 12px; font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.cta p:last-child { margin: 0 auto; max-width: 520px; color: #ffffffb3; font-size: 1.1rem; }

/* Footer */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: 22px; color: var(--muted); font-size: .875rem; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer img { display: block; width: 130px; height: auto; }

/* Entrance */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .75s cubic-bezier(.2,.7,.2,1) forwards; }
h1.reveal { animation-delay: .05s; }
.lead.reveal { animation-delay: .15s; }
.label.reveal { animation-delay: .25s; }
.platforms.reveal { animation-delay: .3s; }
.actions.reveal { animation-delay: .38s; }
.devices.reveal { animation-delay: .25s; transform: translateX(24px); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .devices.reveal { animation: none; opacity: 1; transform: none; }
  .dot { animation: none; }
  .textlink span { transition: none; }
}

@media (max-width: 980px) {
  .hero { padding-top: 80px; }
  /* Stacked: copy, then the device, then the buttons under it. */
  .hero-inner { display: flex; flex-direction: column; align-items: center; gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > * { order: 1; }
  .devices { order: 2; margin-block: 8px 28px; }
  .hero-copy > .actions { order: 3; margin: 0; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .platforms { justify-content: center; }
  .actions { justify-content: center; }
  .devices { width: min(720px, 100%); margin-inline: auto; text-align: left; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wrap, .hero-inner { width: calc(100% - 32px); }
  .topbar { right: 16px; top: 16px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .grid li { padding: 22px; }
  .footer .wrap { justify-content: center; text-align: center; }
}
