/* ============================================================
   AMUA — redesigned landing
   Palette: ink #0A0B0D · paper #FFFFFF · mist #F5F6F8 · blue #4D79D9
   Type: Satoshi (Fontshare) with system fallback
   ============================================================ */

:root {
  --ink: #0a0b0d;
  --ink-soft: #4b4f57;
  --paper: #ffffff;
  --mist: #f5f6f8;
  --line: #e8eaee;
  --line-strong: #d9dde4;
  --surface: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --ghost-hover: #26282e;
  --blue: #4d79d9;
  --blue-dark: #3b63c0;
  --dark-1: #0e0f12;
  --dark-2: #17181d;
  --dark-3: #212329;
  --dark-line: rgba(255, 255, 255, 0.08);
  --tg-green-a: #cfe3a8;
  --tg-green-b: #9fcf8f;
  --radius: 18px;
  --font: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* logo asset is white — invert to black on the light theme */
  --logo-filter: invert(1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #f2f3f5;
  --ink-soft: #a7abb4;
  --paper: #0e0f12;
  --mist: #17181d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --surface: #1d1f25;
  --nav-bg: rgba(14, 15, 18, 0.82);
  --ghost-hover: #d8dae0;
  --logo-filter: none;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
em { font-style: normal; }

/* ---------- shared ---------- */
.section { max-width: 1140px; margin: 0 auto; padding: 116px 28px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 17px; }
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px; font-size: 15px; font-weight: 500;
  border: none; transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.3s ease;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
/* amua.ai-style hover: a circle grows from the center and floods the button,
   text staying on top. The base color is the button's own bg; ::before is the fill. */
.btn::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}
.btn:hover::before { clip-path: circle(80% at 50% 50%); }
/* arrow reveal: hidden at rest (0 width, the -8px margin cancels the flex gap so
   the label stays centered), slides/wipes in to the right of the label on hover */
.btn::after {
  content: ""; flex: none; width: 0; height: 15px; margin-left: -8px; opacity: 0;
  background: currentColor;
  -webkit-mask: var(--arrow) left center / 15px 15px no-repeat;
  mask: var(--arrow) left center / 15px 15px no-repeat;
  transition: width 0.35s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.28s ease,
    margin-left 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}
.btn:hover::after { width: 15px; margin-left: 2px; opacity: 1; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(77, 121, 217, 0.32); }
.btn-primary::before { background: var(--blue-dark); }
.btn-ghost { background: var(--ink); color: var(--paper); }
.btn-ghost::before { background: var(--blue); }
.btn-ghost:hover { color: #fff; }
.btn-sm { padding: 9px 20px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .btn::before, .btn::after { transition: none; } }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; padding: 0 20px; }
.nav {
  display: flex; align-items: center; gap: 26px;
  background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 10px 8px 18px;
  box-shadow: 0 8px 28px rgba(10, 11, 13, 0.07);
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 0.04em; font-size: 14px; }
.nav-logo img { width: 22px; height: 22px; object-fit: contain; filter: var(--logo-filter); }
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: none;
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft); flex: none;
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); transform: rotate(15deg); }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 7px 12px; border-radius: 100px; transition: color 0.15s, background 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); background: var(--mist); }

/* ---------- hero ---------- */
/* section bg matches the artwork's own backdrop (white / black) so there is
   never a light-on-light gap behind the copy before/around the image */
.hero { position: relative; min-height: 100svh; background: var(--paper); }
.hero-sticky {
  position: relative; height: 100svh; overflow: hidden;
  display: flex; align-items: center;
}
.hero-inner {
  position: relative; z-index: 1; height: 100%; width: 100%;
  max-width: 1280px; margin: 0 auto; padding: 100px 56px 0;
  display: flex; align-items: center;
}
.hero-copy { width: 640px; max-width: 100%; }
.hero-h1 { font-size: clamp(40px, 5.2vw, 60px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.12; }
/* line 1 never wraps — app.js fits the font size so "The productivity layer" always fits.
   min-width:0 stops the nowrap line from stretching the grid column while measuring. */
.hero-copy { min-width: 0; }
.hero-line1 { white-space: nowrap; }
.tw-word { color: var(--blue); white-space: pre; }
.tw-caret { color: var(--blue); font-weight: 400; margin-left: 1px; animation: none; }
.tw-caret.blink { animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.hero-sub { margin-top: 20px; color: var(--ink-soft); font-size: 17px; max-width: 440px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 28px; }
.hero-chips { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500;
  color: var(--ink-soft); background: var(--mist); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 100px;
}
.chip svg { color: var(--blue); }
.hero-scroll-hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  animation: hint-bob 2.2s ease-in-out infinite; background: var(--paper);
}
@keyframes hint-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* hero dashboard graphic — identical geometry to the live site:
   a full-bleed 100vw × 100vh cover layer that starts 100px from the top */
.hero-visual {
  position: absolute; left: 0; right: 0; top: 100px; height: 100svh;
}
.hero-visual picture { display: block; width: 100%; height: 100%; }
.hero-img {
  width: 100%; height: 100%; max-width: none;
  /* shift the crop right so more of the actual dashboard (cards + chat rows)
     is in view instead of the empty left half of the artwork */
  object-fit: cover; object-position: 74% 50%;
}
/* legibility scrim: fades the page colour over the left third so the copy stays
   readable on top of whatever the shifted artwork now shows behind it. Uses
   --paper so it works in both light (white) and dark (near-black) themes. */
.hero-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, var(--paper) 0%, var(--paper) 26%, transparent 58%);
}
/* theme-swapped artwork: light backdrop by default, black backdrop in dark mode.
   selectors are scoped under .hero-visual to outrank the generic
   `.hero-visual picture { display:block }` rule above */
.hero-visual .hero-pic-dark { display: none; }
:root[data-theme="dark"] .hero-visual .hero-pic-light { display: none; }
:root[data-theme="dark"] .hero-visual .hero-pic-dark { display: block; }
/* Dark artwork is a transparent-background vector render (no baked-in dark
   gradient, so no compression noise), reframed to the EXACT same 4096x1453
   composition as the light image. It therefore inherits the base .hero-img
   object-position (74% 50%) and lines up identically in light and dark. The
   dark drop shadow is baked into the transparent PNG; no mask needed. */
.dash {
  background: linear-gradient(160deg, var(--dark-2), var(--dark-1) 60%);
  border: 1px solid var(--dark-line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 80px -24px rgba(10, 11, 13, 0.45);
  transform: rotateX(6deg) rotateY(-8deg) rotateZ(1deg);
  transform-style: preserve-3d; transition: transform 0.25s ease-out;
  color: #e8e9ec; font-size: 12px;
}
.dash-titlebar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--dark-line); }
.tl { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.tl.red { background: #ff5f57; } .tl.yellow { background: #febc2e; } .tl.green { background: #28c840; }
.dash-org { display: flex; align-items: center; gap: 7px; margin-left: 10px; font-weight: 500; color: #cfd1d6; }
.dash-org-badge { background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: 6px; }
.dash-tabs { margin-left: auto; display: flex; gap: 4px; color: #8b8e97; }
.dash-tabs span { padding: 5px 10px; border-radius: 8px; }
.dash-tabs span.active { color: #fff; background: var(--dark-3); }
.dash-body { display: grid; grid-template-columns: 44px 1fr 168px; gap: 12px; padding: 14px; }
.dash-side { display: flex; flex-direction: column; gap: 8px; align-items: center; padding-top: 4px; }
.dash-side-ic {
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: var(--dark-3); color: #9a9da6; font-size: 13px;
}
.dash-side-ic.active { background: var(--blue); color: #fff; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.dcard {
  background: var(--dark-3); border: 1px solid var(--dark-line); border-radius: 12px;
  padding: 12px; position: relative; transition: transform 0.25s ease, border-color 0.25s ease;
}
.dcard:hover { transform: translateY(-3px); border-color: rgba(77, 121, 217, 0.5); }
.dcard-title { font-weight: 700; font-size: 12.5px; margin-bottom: 6px; }
.dcard-stats { color: #9a9da6; font-size: 11px; }
.dcard-stats b { color: #fff; font-weight: 700; }
.dcard-spark { position: absolute; right: 10px; bottom: 8px; color: #7ee2a8; font-size: 13px; }
.dash-chatlist { display: flex; flex-direction: column; gap: 8px; }
.dchat {
  display: flex; gap: 8px; align-items: center; background: var(--dark-3);
  border: 1px solid var(--dark-line); border-radius: 11px; padding: 8px;
}
.dchat b { display: block; font-size: 11px; }
.dchat i { display: block; font-style: normal; color: #9a9da6; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 104px; }
.dchat-av {
  width: 26px; height: 26px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
}
.c1 { background: #4d79d9; } .c2 { background: #b0653a; } .c3 { background: #c2452f; } .c4 { background: #8a56c9; } .c5 { background: #2f9b6e; }

/* ---------- features (grovia-style horizontal accordion) ---------- */
/* centered heading + subtext for this section only */
#features .section-head { margin-left: auto; margin-right: auto; text-align: center; }
/* extend section 2's own (white) background below the tiles for breathing room
   before the dark section 3 — the space belongs to this section, not a margin */
#features { padding-bottom: 150px; }

/* no panel / no background image — just heading, subtext and the tile row.
   Cards share the row equally at rest; hovering one expands it horizontally
   and reveals its visual panel beside the text, the others compressing. */
.grovia { position: relative; }
.grovia-tiles {
  display: flex; gap: 16px; align-items: stretch;
}
.gtile {
  flex: 1 1 0; min-width: 0; overflow: hidden;
  display: flex; align-items: stretch; gap: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; min-height: 300px;
  box-shadow: 0 18px 40px -28px rgba(10, 11, 13, 0.18);
  cursor: default; outline: none;
  transition: flex-grow 0.6s cubic-bezier(0.65, 0, 0.35, 1),
              box-shadow 0.5s ease, border-color 0.5s ease;
}
/* hover/focus: this card grows (the extra room reveals the visual), the row's
   other cards shrink to compensate; edge + shadow pick up too */
.gtile:hover, .gtile:focus-visible {
  flex-grow: 2.5;
  box-shadow: 0 34px 60px -26px rgba(10, 11, 13, 0.28);
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
}
/* first card is expanded by default … */
.gtile:first-child { flex-grow: 2.5; }
/* … but yields to whichever card is actually being hovered/focused */
.grovia-tiles:is(:hover, :focus-within) .gtile:first-child:not(:hover):not(:focus-visible) {
  flex-grow: 1;
}

/* text column — FIXED width so the copy never rewraps as the card expands
   (only the visual panel animates). Width tracks the viewport, not hover. */
.gtile-body { flex: 0 0 auto; width: clamp(150px, 15vw, 190px); display: flex; flex-direction: column; }
.gtile-num { font-size: 18px; font-weight: 500; color: color-mix(in srgb, var(--ink) 32%, transparent); letter-spacing: 0.02em; }
.gtile-text { margin-top: auto; }
.gtile-text h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.gtile-text p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin-top: 8px; }

/* visual panel — clipped to 0 width at rest, expands open on hover */
.gtile-visual {
  flex: 0 0 auto; width: 0; opacity: 0; overflow: hidden;
  display: flex; align-items: center;
  transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.45s ease;
}
.gtile:hover .gtile-visual, .gtile:focus-visible .gtile-visual { width: 264px; opacity: 1; }
/* first card's visual is open by default, and closes when another card takes over */
.gtile:first-child .gtile-visual { width: 264px; opacity: 1; }
.grovia-tiles:is(:hover, :focus-within) .gtile:first-child:not(:hover):not(:focus-visible) .gtile-visual {
  width: 0; opacity: 0;
}
.gtile-visual-inner {
  flex: none; width: 264px; height: 100%;
  background: var(--mist); border: 1px solid var(--line); border-radius: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .gtile, .gtile-visual { transition-duration: 0.001s; }
}

/* org demo — polished team tree: circular avatars + curved connectors */
.demo-org { flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 22px 14px; }
.org-top { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.org-row { display: flex; justify-content: space-between; width: 190px; }
.org-member { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 46px; }
.org-av {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; border: 1px solid transparent;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.org-av-root { background: var(--blue); color: #fff; font-size: 12.5px; box-shadow: 0 7px 16px -7px rgba(77, 121, 217, 0.75); }
.org-av-a { background: rgba(77, 121, 217, 0.13); color: var(--blue); border-color: rgba(77, 121, 217, 0.28); }
.org-av-b { background: rgba(47, 155, 110, 0.14); color: #2f9b6e; border-color: rgba(47, 155, 110, 0.3); }
.org-av-c { background: rgba(138, 86, 201, 0.14); color: #8a56c9; border-color: rgba(138, 86, 201, 0.3); }
.org-role { font-size: 10px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em; }
.org-connect { width: 190px; height: 30px; display: block; color: rgba(77, 121, 217, 0.4); }
.org-connect path { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; }
/* hover: the whole tree gently lifts, children staggered under the owner */
.gtile:hover .org-av-root, .gtile:focus-visible .org-av-root { transform: translateY(-1px) scale(1.05); }
.gtile:hover .org-member .org-av, .gtile:focus-visible .org-member .org-av { transform: translateY(-3px); }

/* stats demo */
.demo-stats { flex-direction: row; gap: 14px; padding: 0 16px; }
.stat { flex: 1; text-align: left; }
.stat b { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.stat span { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: -2px; }
.stat-bar { height: 5px; border-radius: 4px; background: var(--mist); margin-top: 8px; overflow: hidden; }
.stat-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--blue); transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; }
.gtile:hover .stat-bar i { width: var(--w); }

/* bulk demo — one outgoing message, delivered into many chats */
.demo-bulk { gap: 11px; padding: 0 16px; align-items: stretch; justify-content: center; }
.bulk-msg {
  align-self: flex-end; max-width: 94%;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 500;
  border-radius: 14px 14px 4px 14px; padding: 8px 12px; display: flex; align-items: center; gap: 9px;
  box-shadow: 0 8px 18px rgba(77, 121, 217, 0.32);
}
.bulk-send { font-size: 10px; opacity: 0.85; }
.bulk-chats { display: flex; flex-direction: column; gap: 6px; }
.bulk-chat {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 6px 10px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s ease calc(var(--i) * 0.13s + 0.1s), transform 0.4s ease calc(var(--i) * 0.13s + 0.1s);
}
.bc-av { width: 19px; height: 19px; border-radius: 50%; color: #fff; font-size: 9.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none; }
.bc-name { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.bc-tick { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: -1.5px;
  opacity: 0; transition: opacity 0.3s ease calc(var(--i) * 0.13s + 0.4s); }
.bulk-chat--more { justify-content: center; background: none; border: none; padding: 2px 0; }
.bc-more { font-size: 11px; font-weight: 600; color: var(--ink-soft); }
.gtile:hover .bulk-chat, .gtile:focus-visible .bulk-chat { opacity: 1; transform: none; }
.gtile:hover .bc-tick, .gtile:focus-visible .bc-tick { opacity: 1; }

/* ---------- void chat ---------- */
.section-void { max-width: none; background: var(--dark-1); margin-top: 0; padding: 84px 28px; }
.void-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.void-copy { color: #fff; }
.void-copy h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.14; }
.void-copy h2 em { color: var(--blue); }
.void-copy p { color: #9a9da6; margin-top: 14px; font-size: 15.5px; max-width: 420px; }
.void-pains { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pain-chip {
  font-size: 12.5px; font-weight: 500; color: #c9ccd3; background: var(--dark-3);
  border: 1px solid var(--dark-line); border-radius: 100px; padding: 6px 13px;
  transition: all 0.2s ease;
}
.pain-chip:hover { border-color: rgba(77, 121, 217, 0.6); color: #fff; }
.pain-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.void-chat {
  /* Telegram mockup stays light in both themes — pin the palette vars */
  --ink: #0a0b0d; --ink-soft: #4b4f57; --line: #e8eaee;
  color: var(--ink);
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
}
.vchat-head { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.vchat-av {
  width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #7f8ea3, #4b5668);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.vchat-head b { display: block; font-size: 14px; }
.vchat-head i { display: block; font-style: normal; font-size: 12px; color: var(--blue); }
.vchat-amua {
  margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--line); border-radius: 100px; padding: 5px 12px; color: var(--ink-soft);
}
.vchat-amua img { width: 14px; height: 14px; filter: invert(1); }
.vchat-scroll {
  height: 400px; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(160deg, var(--tg-green-a), var(--tg-green-b)), url('assets/telegram-doodles.png');
  background-blend-mode: multiply; background-size: cover, 480px;
  scroll-behavior: smooth;
}
.vmsg { max-width: 82%; padding: 9px 13px; font-size: 13.8px; line-height: 1.45; border-radius: 16px; animation: msg-in 0.35s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.vmsg.user { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.vmsg.amua { align-self: flex-end; background: #e3f0ff; border: 1px solid rgba(77, 121, 217, 0.25); border-bottom-right-radius: 5px; }
.vmsg.amua .vmsg-name { color: var(--blue); }
.vmsg-name { font-size: 11.5px; font-weight: 700; margin-bottom: 2px; color: #b0653a; }
.vmsg.typing { display: flex; gap: 4px; padding: 13px 15px; }
.vmsg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #a9adb6; animation: tdot 1s infinite; }
.vmsg.typing span:nth-child(2) { animation-delay: 0.16s; }
.vmsg.typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes tdot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.vchat-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); }
.vchat-dot-row { display: flex; gap: 5px; }
.vdot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); border: none; padding: 0; transition: all 0.25s; }
.vdot.active { background: var(--blue); width: 18px; border-radius: 4px; }
.vchat-controls { display: flex; gap: 6px; }
.vchat-controls button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.vchat-controls button:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- problem: scattered pain bubbles ----------
   The section stays dark in both themes (like a chat backdrop). A centered
   statement sits in the middle; pain bubbles are absolutely positioned around
   it at slight angles. On hover/tap each flips to the blue Amua solution. */
/* padding is balanced top/bottom: the scatter has ~20px of intrinsic space below
   its lowest bubble, so the bottom padding is ~20px less than the top to make the
   visible gap above the top bubble equal the gap below the bottom bubble. */
.section-void2 { background: var(--dark-1); color: #f2f3f5; overflow: hidden; padding: 60px 0 40px; }
/* stage holds the Three.js canvas (full-bleed) with the headline overlaid dead
   centre. The 3D scene is contain-fit to this box at every width by the script,
   so the layout can never overflow — it just rescales. */
.void2-stage { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; height: clamp(500px, 70vh, 660px); }
.void2-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.void2-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(560px, 88%); text-align: center; z-index: 2; pointer-events: none;
}
/* soft dark scrim so the headline stays legible over any bubble that drifts
   behind it, at every viewport size */
.void2-center::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 155%; height: 240%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(10,11,13,0.92) 0%, rgba(10,11,13,0.66) 42%, rgba(10,11,13,0) 74%);
}
.void2-center h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: #fff; text-align: center; }
.void2-center h2 em { color: var(--blue); }
/* line 2 ("to run a team. Until now.") stays one unbreakable unit so the blue
   phrase never drops to a third line */
.void2-center h2 .v2-l1, .void2-center h2 .v2-l2 { white-space: nowrap; }
.void2-center p { margin-top: 14px; color: #aeb4bf; font-size: 15px; text-align: center; transition: opacity 0.4s ease; }

@media (min-width: 641px) and (max-width: 1100px) {
  .void2-center h2 { font-size: clamp(24px, 3.4vw, 34px); }
}
@media (max-width: 640px) {
  .void2-stage { height: clamp(460px, 82vh, 620px); }
  /* scale type so line 2 stays on one line down to ~320px */
  .void2-center h2 { font-size: clamp(21px, 7.2vw, 34px); }
  .void2-center::before { width: 190%; height: 200%; }
}

/* ---------- inside (grovia-style tabbed panel) ---------- */
/* centered heading; each sentence on its own single line (wraps on small screens) */
/* the import-chats tab carries a video, so give this section a wider tile than
   the rest of the page — a larger clip reads more clearly on big desktops */
#inside { max-width: 1300px; }
#inside .section-head { max-width: none; margin-left: auto; margin-right: auto; text-align: center; }
#inside .section-head h2 { white-space: nowrap; }
@media (max-width: 820px) { #inside .section-head h2 { white-space: normal; } }

.i2 { max-width: 1244px; margin: 0 auto; }

/* pill tab bar with sliding active indicator */
.i2-tabs {
  position: relative; display: flex; justify-content: center; gap: 4px;
  width: fit-content; max-width: 100%; margin: 0 auto;
  background: var(--mist); border: 1px solid var(--line); border-radius: 100px; padding: 6px;
}
.i2-tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border: none; background: none; border-radius: 100px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft); white-space: nowrap;
  transition: color 0.25s ease;
}
.i2-tab svg { width: 16px; height: 16px; opacity: 0.85; }
.i2-tab:hover { color: var(--ink); }
.i2-tab.active { color: var(--ink); }
.i2-pill {
  position: absolute; z-index: 0; top: 6px; left: 0; width: 0; height: calc(100% - 12px);
  background: var(--surface); border-radius: 100px; box-shadow: 0 4px 14px -4px rgba(10, 11, 13, 0.18);
  transition: left 0.45s cubic-bezier(0.65, 0, 0.35, 1), width 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

/* content panel: screenshot left, copy right */
.i2-panel {
  margin-top: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(10, 11, 13, 0.2);
}
.i2-stage { position: relative; min-height: 560px; }
.i2-pane {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 0.95fr;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.i2-pane.active { opacity: 1; transform: none; pointer-events: auto; }
.i2-shot {
  background: linear-gradient(160deg, var(--dark-2), var(--dark-1));
  display: flex; align-items: center; justify-content: center; padding: 36px; overflow: hidden;
}
.i2-shot .app-frame { width: 100%; max-width: 460px; min-height: 0; height: auto; }
/* video tab: give the clip more room and drop the dark stage box so it reads
   as a clean framed screen rather than a mockup floating in a dark panel */
.i2-pane--video { grid-template-columns: 1.38fr 0.62fr; }
.i2-shot--video { background: none; padding: 20px; }
.i2-video {
  width: 100%; max-width: 900px; aspect-ratio: 8 / 5; display: block;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); background: #06080c;
  object-fit: cover; box-shadow: 0 26px 55px -26px rgba(0, 0, 0, 0.5);
}
/* on stacked (tablet/mobile) layouts let the clip fill the pane so its UI text
   stays legible on narrow screens */
@media (max-width: 960px) {
  .i2-shot--video { padding: 10px; }
  .i2-video { max-width: 100%; border-radius: 12px; }
}
.i2-copy { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.i2-kicker {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: rgba(77, 121, 217, 0.12); border-radius: 100px; padding: 6px 13px;
}
.i2-copy h3 { font-size: clamp(25px, 3.1vw, 37px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.14; margin-top: 18px; }
/* keep "Scrolling. Structure." on a single line */
.i2-copy h3.i2-h3--oneline { white-space: nowrap; }
/* "Scrolling." struck out with a diagonal red line — the old way, crossed off */
.i2-strike { position: relative; display: inline-block; color: var(--ink-soft); }
.i2-strike::after {
  content: ""; position: absolute; left: -3%; right: -3%; top: 52%;
  height: 3px; border-radius: 3px; background: #e5484d;
  transform: rotate(-9deg); transform-origin: center; pointer-events: none;
}
.i2-copy p { color: var(--ink-soft); font-size: 17.5px; line-height: 1.55; margin-top: 16px; max-width: 420px; text-wrap: pretty; }

/* roles mockup (tab 4) */
.af-roles { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.role-row {
  display: flex; align-items: center; gap: 10px; background: var(--dark-3); border: 1px solid var(--dark-line);
  border-radius: 11px; padding: 10px 12px; font-size: 13px;
}
.role-row b { color: #fff; font-weight: 600; }
.role-tag { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.role-tag.owner { background: rgba(77, 121, 217, 0.22); color: #8fabec; }
.role-tag.admin { background: rgba(126, 226, 168, 0.16); color: #7ee2a8; }
.role-tag.lead { background: rgba(254, 188, 46, 0.16); color: #febc2e; }
.role-tag.member { background: rgba(255, 255, 255, 0.06); color: #9a9da6; }

.app-frame {
  height: 100%; min-height: 380px; background: linear-gradient(165deg, var(--dark-2), var(--dark-1));
  border: 1px solid var(--dark-line); border-radius: 18px; color: #e8e9ec; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 30px 60px -28px rgba(10, 11, 13, 0.5);
}
.af-head { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--dark-line); font-size: 13px; }
.af-head b { margin-left: 8px; font-weight: 700; }
.af-cta { margin-left: auto; background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 600; padding: 6px 12px; border-radius: 8px; }
.af-import { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.imp-row {
  display: flex; align-items: center; gap: 10px; background: var(--dark-3); border: 1px solid var(--dark-line);
  border-radius: 11px; padding: 9px 12px; font-size: 13px; font-weight: 500;
  opacity: 0; transform: translateX(-10px);
}
.i2-pane.active .imp-row { animation: imp-in 0.4s ease forwards; animation-delay: calc(var(--d) * 0.1s + 0.15s); }
@keyframes imp-in { to { opacity: 1; transform: none; } }
.imp-row i { margin-left: auto; font-style: normal; color: #8b8e97; font-size: 11.5px; }
.imp-check { width: 18px; height: 18px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.imp-av { width: 26px; height: 26px; border-radius: 8px; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.imp-foot { margin-top: 6px; font-size: 12px; color: #7ee2a8; font-weight: 600; }
.af-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; flex: 1; }
.af-col { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--dark-line); border-radius: 13px; padding: 12px; }
.af-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #8b8e97; margin-bottom: 10px; }
.af-chip {
  background: var(--dark-3); border: 1px solid var(--dark-line); border-radius: 9px;
  padding: 8px 10px; font-size: 12.5px; font-weight: 500; margin-bottom: 7px;
}
.af-feed { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.feed-row {
  display: flex; align-items: center; gap: 9px; background: var(--dark-3); border: 1px solid var(--dark-line);
  border-radius: 11px; padding: 10px 12px; font-size: 12.5px; color: #c9ccd3;
}
.feed-row b { color: #fff; }
.feed-row i { font-style: normal; color: #7ee2a8; }
.feed-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 6px; flex: none; }
.t1 { background: rgba(77, 121, 217, 0.2); color: #8fabec; }
.t2 { background: rgba(126, 226, 168, 0.14); color: #7ee2a8; }
.t3 { background: rgba(254, 188, 46, 0.14); color: #febc2e; }
.feed-time { margin-left: auto; color: #8b8e97; font-size: 11px; }

/* ---------- how it works (3-step flow, all visible at once) ---------- */
/* centered heading to match the other sections */
#how .section-head { max-width: none; margin-left: auto; margin-right: auto; text-align: center; }
.how { max-width: 1000px; margin: 0 auto; }
.hiw { display: flex; align-items: stretch; justify-content: center; gap: 6px; }
.hiw-step {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 22px 26px; box-shadow: 0 20px 44px -30px rgba(10, 11, 13, 0.2);
}
/* the device sits in a slot shorter than itself, so the card pokes out the top
   of the white step card; the negative top margin lifts it above the card edge. */
.hiw-visual { height: 244px; margin-top: -30px; position: relative; display: flex; align-items: center; justify-content: center; }
/* number badge straddles the bottom edge of the device card (half on, half below) */
.hiw-num {
  position: relative; z-index: 3; margin-top: 0;
  display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 13px;
  border-radius: 100px; background: var(--blue); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  box-shadow: 0 5px 14px -4px rgba(77, 121, 217, 0.55);
}
.hiw-step h3 { margin-top: 14px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.hiw-step > p { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.hiw-arrow { flex: 0 0 auto; align-self: center; display: flex; color: color-mix(in srgb, var(--blue) 50%, var(--line)); }
.hiw-arrow svg { width: 26px; height: 26px; }

/* light glyph tile — the lean visual for steps 2 & 3 (step 1 gets the phone card) */
.hiw-glyph {
  width: 104px; height: 104px; border-radius: 26px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(77, 121, 217, 0.14), rgba(77, 121, 217, 0.05));
  border: 1px solid rgba(77, 121, 217, 0.22); color: var(--blue);
}
.hiw-glyph svg { width: 46px; height: 46px; }

/* step 03 — Workspace Notifications device (mirrors the app's panel).
   Same pinned-dark 250×272 card as step 02, both themes. */
.wn-flow {
  position: relative; width: 250px; height: 272px; overflow: hidden; color: #f2f3f5;
  background: #1b1d23; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px;
  box-shadow: 0 24px 54px -28px rgba(0, 0, 0, 0.6);
}
.wn { display: flex; flex-direction: column; height: 100%; text-align: left; }
.wn-head { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.wn-head svg { width: 15px; height: 15px; color: #9a9ea7; flex: none; }
.wn-head b { font-size: 11.5px; font-weight: 700; color: #eef0f4; }
.wn-list { padding: 8px; display: flex; flex-direction: column; overflow: hidden; flex: 1; }
.wn-row {
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 10px;
  padding: 8px 10px; margin-bottom: 6px; max-height: 78px; opacity: 1; overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, padding 0.45s ease, margin 0.45s ease, background 0.8s ease, border-color 0.8s ease;
}
.wn-row.wn-enter, .wn-row.wn-leaving { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; border-width: 0; }
.wn-row.wn-hot { background: rgba(77, 121, 217, 0.13); border-color: rgba(77, 121, 217, 0.35); }
.wn-top { display: flex; align-items: center; gap: 8px; }
.wn-title { flex: 1; min-width: 0; font-size: 11px; line-height: 1.35; color: #9a9ea7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wn-title .wn-nm { color: #f2f3f5; font-weight: 600; }
.wn-time { font-size: 8.5px; color: #6b6f78; white-space: nowrap; padding-top: 1px; }
.wn-meta { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 8.5px; color: #7c808a; font-weight: 500; }
.wn-dot { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.wn-cat-chat { background: var(--blue); } .wn-cat-subgroup { background: #9a7bd0; } .wn-cat-member { background: #4fa07a; }

/* step 02 — animated "build a workspace" device: Create Workspace → dashboard.
   Pinned dark (Telegram-app look) in both themes, like the step-01 sign-in card. */
.wb-flow {
  position: relative; width: 250px; height: 272px; overflow: hidden; color: #f2f3f5;
  background: #1b1d23; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px;
  box-shadow: 0 24px 54px -28px rgba(0, 0, 0, 0.6);
}
.wb-screen { position: absolute; inset: 0; opacity: 0; transform: scale(0.97); pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease; display: flex; flex-direction: column; }
.wb-screen.wb-on { opacity: 1; transform: none; }

/* create-workspace screen */
.wb-create { padding: 15px 15px 22px; }
.wb-av { width: 40px; height: 40px; border-radius: 12px; margin: 0 auto 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; color: #fff; background: #3a3d46; transition: background 0.5s ease; }
.wb-av .wb-ini { opacity: 0; transition: opacity 0.2s ease; }
.wb-av.wb-named .wb-ini { opacity: 1; }
.wb-title { font-size: 14px; font-weight: 700; color: #fff; text-align: center; margin-bottom: 10px; }
.wb-lbl { font-size: 9.5px; font-weight: 600; color: #9a9ea7; margin-bottom: 4px; }
.wb-input { display: flex; align-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 8px 10px; font-size: 12px; min-height: 32px; }
.wb-name { color: #eef0f4; white-space: nowrap; }
.wb-name.wb-ph { color: #71757e; }
.wb-caret { width: 2px; height: 14px; background: var(--blue); display: inline-block; margin-left: 1px; animation: caret-blink 1s steps(1) infinite; }
.wb-count { font-size: 9px; color: #6b6f78; text-align: right; margin: 3px 0 9px; }
.wb-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-bottom: 10px; }
.wb-swatch { aspect-ratio: 1; border-radius: 50%; position: relative; transition: transform 0.25s ease; }
.wb-swatch.wb-sel { transform: scale(1.12); box-shadow: 0 0 0 2px #1b1d23, 0 0 0 3.5px #fff, 0 0 14px 2px rgba(255, 255, 255, 0.5); }
.wb-save { margin-top: auto; align-self: center; background: rgba(255, 255, 255, 0.07); color: #c7cbd3; font-size: 11.5px; font-weight: 600; border-radius: 9px; padding: 8px 34px; transition: background 0.25s ease, transform 0.15s ease, color 0.25s ease; }
.wb-save.wb-press { background: var(--blue); color: #fff; transform: scale(0.94); }

/* dashboard screen */
.wb-bar { display: flex; align-items: center; gap: 6px; padding: 9px 11px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.wb-tl { width: 7px; height: 7px; border-radius: 50%; }
.wb-tl.r { background: #e0523f; } .wb-tl.y { background: #e6a23a; } .wb-tl.g { background: #5aa653; }
.wb-bar b { font-size: 11px; font-weight: 600; color: #eef0f4; margin-left: 4px; }
.wb-chev { color: #9a9ea7; font-size: 9px; margin-left: 1px; }
.wb-tabs { display: flex; gap: 11px; padding: 9px 12px 2px; font-size: 9.5px; color: #9a9ea7; font-weight: 600; }
.wb-tab-on { color: #fff; position: relative; }
.wb-tab-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--blue); }
.wb-late { opacity: 0; transform: translateX(-4px); transition: opacity 0.4s ease, transform 0.4s ease; }
.wb-dash.wb-go .wb-late { opacity: 1; transform: none; transition-delay: 0.55s; }
.wb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 14px 12px 12px; }
.wb-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 11px; padding: 9px 9px 10px; text-align: left; }
.wb-n { font-size: 18px; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.wb-l { font-size: 8.5px; color: #9a9ea7; margin-top: 2px; }
.wb-donut { width: 40px; height: 40px; margin: 8px auto 2px; display: block; transform: rotate(-90deg); }
.wb-donut .wb-arc { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s cubic-bezier(0.22, 1, 0.36, 1); }
.wb-dash.wb-go .wb-donut .wb-arc { stroke-dashoffset: 26; }
.wb-track { margin-top: 13px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.wb-track i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width 1s cubic-bezier(0.22, 1, 0.36, 1); }
.wb-dash.wb-go .wb-track-chats i { width: 88%; }
.wb-dash.wb-go .wb-track-subs i { width: 60%; }
@media (prefers-reduced-motion: reduce) { .wb-caret { animation: none; } }

/* speed cue under the row — reinforces "fast to start" */
/* the How section has no bottom padding by default (.section), so its last line
   (the timecue) sat flush against the dark privacy section below — add a gap */
.section-how { padding-bottom: 96px; }
.how-timecue {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 30px; font-size: 14.5px; color: var(--ink-soft);
}
.how-timecue svg { width: 17px; height: 17px; color: var(--blue); flex: none; }
.how-timecue b { color: var(--ink); font-weight: 600; }

/* compact sign-in card = step 1's anchor visual. Pinned to a DARK Telegram-app
   look in BOTH site themes (it emulates the phone screen). */
.signin-mini {
  background: #1b1d23; border: 1px solid rgba(255, 255, 255, 0.1); color: #f2f3f5;
  border-radius: 18px; padding: 24px 20px; text-align: center;
  box-shadow: 0 24px 54px -28px rgba(0, 0, 0, 0.6); width: 100%; max-width: 236px;
  /* match the step-02 device height so both cards poke out the step card evenly */
  height: 272px; display: flex; flex-direction: column; justify-content: center;
}
.signin-mini h4 { font-size: 14.5px; font-weight: 700; color: #fff; }
.signin-mini > p { font-size: 11px; color: #9a9ea7; margin-top: 5px; line-height: 1.4; }
.signin-plane { width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; transform: rotate(-20deg); }
.signin-field {
  margin-top: 14px; display: flex; align-items: center; gap: 9px; border: 1.5px solid var(--blue);
  border-radius: 10px; padding: 9px 11px; font-size: 13px; text-align: left;
  background: rgba(255, 255, 255, 0.03);
}
.signin-cc { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #d6d9df; border-right: 1px solid rgba(255, 255, 255, 0.16); padding-right: 9px; }
.signin-flag { font-size: 15px; line-height: 1; }
.signin-num { display: flex; align-items: center; color: #f2f3f5; letter-spacing: 0.02em; white-space: nowrap; }
.signin-num i { font-style: normal; }
.signin-caret { width: 2px; height: 15px; background: var(--blue); animation: caret-blink 1s steps(1) infinite; }
.signin-btn { margin-top: 12px; background: var(--blue); color: #fff; border-radius: 10px; padding: 10px; font-weight: 600; font-size: 13px; }

/* ---------- privacy & permissions (dark band to spotlight the trust story) ---------- */
.section-privacy { max-width: none; padding: 104px 28px; background: var(--dark-1); color: #f2f3f5; }
#privacy .section-head { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
#privacy .kicker { color: #8fb0f2; }
#privacy .section-head h2 { color: #f2f3f5; }
#privacy .section-head p { color: #a7abb4; }
/* re-theme the data-flow diagram for the dark band */
#privacy .pf-card { fill: #17181d; stroke: rgba(255, 255, 255, 0.09); }
#privacy .pf-card-amua { fill: rgba(77, 121, 217, 0.16); stroke: var(--blue); }
#privacy .pf-title { fill: #f2f3f5; }
#privacy .pf-title-amua { fill: #8fb0f2; }
#privacy .pf-sub { fill: #a7abb4; }
#privacy .pf-cap { fill: #a7abb4; }
#privacy .pf-cap-muted { fill: rgba(255, 255, 255, 0.28); }
#privacy .pf-line { stroke: rgba(255, 255, 255, 0.18); }
#privacy .pf-lockwrap { fill: #17181d; stroke: rgba(255, 255, 255, 0.14); }
/* re-theme the what-lives-where legend for dark */
#privacy .pf-glabel { color: #a7abb4; }
#privacy .pf-glabel-amua { color: #8fb0f2; }
#privacy .pf-chips span { color: #c7ccd4; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
#privacy .pf-chips-amua span { color: #a9c2f5; background: rgba(77, 121, 217, 0.16); border-color: rgba(77, 121, 217, 0.42); }
#privacy .pf-note { color: #a7abb4; }

/* core-component proof cards — dark, folded into the privacy band */
/* borderless columns — same treatment as the .pf-strip proof band above,
   with each card's animated visual pinned to the bottom of the column */
.core-grid { display: flex; max-width: 1040px; margin: 72px auto 0; }
.core-card {
  flex: 1; display: flex; flex-direction: column; text-align: left;
  padding: 4px 40px; border-right: 1px solid rgba(255, 255, 255, 0.09);
}
.core-card:first-child { padding-left: 0; }
.core-card:last-child { padding-right: 0; border-right: none; }
.core-ic {
  display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(77, 121, 217, 0.13); color: #8fb0f2; margin-bottom: 15px;
}
.core-ic svg { width: 20px; height: 20px; }
.core-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.core-card > p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); max-width: 240px; }

/* privacy: under-the-hood proof band — borderless spec line, not tiles */
.pf-strip { display: flex; justify-content: center; max-width: 1000px; margin: 54px auto 0; text-align: center; }
.pf-si { flex: 1; padding: 6px 42px; border-right: 1px solid rgba(255, 255, 255, 0.09); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.pf-si:last-child { border-right: none; }
.pf-si-ic { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(77, 121, 217, 0.13); color: #8fb0f2; margin-bottom: 15px; }
.pf-si-ic svg { width: 20px; height: 20px; }
.pf-si h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: #f2f3f5; }
.pf-si p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: #a7abb4; max-width: 260px; }
@media (max-width: 760px) { .pf-strip { flex-direction: column; gap: 28px; max-width: 380px; } .pf-si { padding: 0; border-right: none; } .pf-si p { max-width: none; } }
/* all three tile visuals share one height + are bottom-pinned, so the
   animations line up on the same row and the cards stay identical in size */
.core-visual { margin-top: 24px; height: 108px; }

/* card 1 — animated identity rolodex (ported from the amua.ai Framer component) */
.core-visual--id { position: relative; margin-top: 24px; height: 108px; perspective: 1800px; overflow: visible; }
.idr-card {
  position: absolute; left: 0; right: 0; top: 50%; margin-top: -40px;
  transform-origin: 50% 50%; backface-visibility: hidden; transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}
.idr-inner {
  position: relative; overflow: hidden; min-height: 80px; padding: 12px 16px;
  display: flex; align-items: center; gap: 15px; border-radius: 12px; box-sizing: border-box;
  background: linear-gradient(162deg, rgba(0, 0, 0, 0.95) 0%, #474d56 100%);
  border: 1px solid rgba(109, 110, 114, 0.7);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
.idr-av { flex: none; width: 58px; height: 58px; border-radius: 7px; display: grid; place-items: center; background: #85b1f9; color: #1d2024; font-size: 21px; font-weight: 700; letter-spacing: -0.05em; }
.idr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.idr-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.idr-name { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idr-dots { display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; width: 16px; height: 16px; flex: none; opacity: 0.62; }
.idr-dots i { width: 3px; height: 3px; border-radius: 999px; background: rgba(199, 203, 211, 0.9); }
.idr-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.idr-handle { min-width: 0; flex: 1; color: #cfcfcf; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idr-tag { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 16px; padding: 0 8px; border-radius: 4px; font-size: 11px; font-weight: 600; color: #c7cbd3; }
.idr-tag svg { width: 12px; height: 12px; color: #c7cbd3; }
.idr-tag--owner { background: rgba(151, 104, 204, 0.3); }
.idr-tag--admin { background: rgba(84, 165, 98, 0.3); }

/* card 2 — sub-second sync: Telegram → Amua "portal".
   The split background is fixed; the same message slides across a fixed seam.
   Two pixel-identical copies (Telegram-light + Amua-dark) clipped to each half
   and driven by the same animation clock → the crossover is seamless, letter
   for letter, with no perceptible lag. (Ported from the amua.ai Framer scene.) */
.core-visual--sync {
  position: relative; height: 108px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sp-side { position: absolute; inset: 0; overflow: hidden; }
/* left half — the Telegram wallpaper everyone knows (green + doodle dots) */
.sp-left {
  clip-path: inset(0 47.5% 0 0);
  background:
    radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px) 0 0 / 15px 15px,
    linear-gradient(150deg, #a7c99a 0%, #8fbb86 100%);
}
/* right half — Amua's dark design */
.sp-right {
  clip-path: inset(0 0 0 52%);
  background: linear-gradient(150deg, #171b23 0%, #0f1116 100%);
}
.sp-track { position: absolute; inset: 0; will-change: transform; animation: sp-travel 6s linear infinite; }
.sp-bubble {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  display: inline-flex; align-items: baseline; gap: 9px; white-space: nowrap;
  padding: 8px 12px; border-radius: 13px; font-size: 13px; font-weight: 500;
}
.sp-bubble--tg { background: #fff; color: #14161c; box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22); }
.sp-bubble--amua { background: #232a37; color: #eef1f5; box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4); }
.sp-time { font-size: 11px; font-variant-numeric: tabular-nums; }
.sp-bubble--tg .sp-time { color: #7a8290; }
.sp-bubble--amua .sp-time { color: #8a93a2; }
@keyframes sp-travel {
  from { transform: translateX(-80%); }
  to { transform: translateX(105%); }
}
@media (prefers-reduced-motion: reduce) {
  .sp-track { animation: none; transform: translateX(18%); }
}

/* card 3 — zero data access: your Telegram data flows in from the left and
   dissolves at the blue filter line; nothing ever reaches the Amua (right) side */
.core-visual--data {
  position: relative; overflow: hidden;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(60% 120% at 50% 50%, rgba(77, 121, 217, 0.14), transparent 70%),
    radial-gradient(130% 130% at 22% 40%, #1b2130, #0d0e12);
}
/* faint "Amua" mark on the clean right side — the data never gets here */
.zf-amua {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.14);
}
/* the blue filter line */
.zf-line {
  position: absolute; left: 50%; top: 15%; bottom: 15%; width: 4px;
  transform: translateX(-50%); border-radius: 4px;
  background: linear-gradient(180deg, #7ea0ea, #4d79d9 55%, #3a63c4);
  box-shadow: 0 0 10px 1px rgba(77, 121, 217, 0.6), 0 0 24px 4px rgba(77, 121, 217, 0.32);
  animation: zf-pulse 2.6s ease-in-out infinite;
}
@keyframes zf-pulse {
  0%, 100% { box-shadow: 0 0 10px 1px rgba(77, 121, 217, 0.55), 0 0 20px 3px rgba(77, 121, 217, 0.28); }
  50% { box-shadow: 0 0 15px 2px rgba(77, 121, 217, 0.85), 0 0 30px 6px rgba(77, 121, 217, 0.45); }
}
/* the flow field — clipped exactly at the blue line, so a chip vanishes the
   moment it passes behind it and NOTHING is ever drawn on the Amua (right) side */
.zf-flow {
  position: absolute; left: 0; top: 0; bottom: 0; right: 50%; overflow: hidden;
  container-type: size; /* lets chips travel in cqw/cqh — responsive + fully transform-driven */
}
/* flowing data chips — enter spread across the height, funnel toward the line.
   Motion is 100% transform/opacity (GPU-composited) so it never jitters. */
.zf-chip {
  position: absolute; top: 50%; left: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 100px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10.5px; font-weight: 600; color: #d3d8e0;
  transform-origin: 100% 50%; /* shrink toward the leading edge as it's pulled in */
  transform: translate(0, calc(-50% + var(--y0))) scale(1);
  animation: zf-flow 7.2s linear infinite; animation-delay: var(--d);
  will-change: transform, opacity;
}
.zf-chip--c { padding-left: 4px; }
.zf-av {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #10131a;
}
/* linear translate across the field so the loop is seamless; scale/opacity ease the ends */
@keyframes zf-flow {
  0%   { transform: translate(0,      calc(-50% + var(--y0))         ) scale(0.7);  opacity: 0; }
  14%  { transform: translate(14cqw,  calc(-50% + var(--y0) * 0.86)  ) scale(1);    opacity: 1; }
  82%  { transform: translate(82cqw,  calc(-50% + var(--y0) * 0.18)  ) scale(0.55); opacity: 1; }
  100% { transform: translate(100cqw, -50%                           ) scale(0.42); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .zf-line { animation: none; }
  .zf-chip { animation: none; opacity: 1; transform: translate(10cqw, calc(-50% + var(--y0))) scale(1); }
}

@media (max-width: 860px) {
  .core-grid { flex-direction: column; gap: 40px; max-width: 400px; }
  .core-card { padding: 0; border-right: none; }
  .core-card:first-child, .core-card:last-child { padding: 0; }
}

/* data-flow diagram */
.pflow { max-width: 860px; margin: 8px auto 0; }
.pf-svg { width: 100%; height: auto; display: block; overflow: visible; }
.pf-card { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.pf-card-amua { fill: rgba(77, 121, 217, 0.08); stroke: var(--blue); }
.pf-title { fill: var(--ink); font-family: var(--font); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.pf-title-amua { fill: var(--blue); }
.pf-sub { fill: var(--ink-soft); font-family: var(--font); font-weight: 500; font-size: 12.5px; }
.pf-cap { fill: var(--ink-soft); font-family: var(--font); font-weight: 700; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; }
.pf-cap-muted { fill: var(--line-strong); }
/* animated flow lines (dotted, marching) */
.pf-line-strong { stroke: var(--blue); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0.1 13; animation: pf-flow 0.9s linear infinite; }
.pf-line { stroke: var(--line-strong); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0.1 12; animation: pf-flow 1.4s linear infinite; }
@keyframes pf-flow { to { stroke-dashoffset: -13.1; } }
.pf-lockwrap { fill: var(--surface); stroke: var(--line); }
.pf-lock { stroke: var(--blue); stroke-width: 1.7; }
@media (prefers-reduced-motion: reduce) { .pf-line-strong, .pf-line { animation: none; stroke-dasharray: 2 7; } }

/* compact what-lives-where legend */
.pf-legend { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 26px; }
.pf-group { text-align: center; }
.pf-glabel { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.pf-glabel-amua { color: var(--blue); }
.pf-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; }
.pf-chips span { font-size: 13px; font-weight: 500; color: var(--ink-soft); background: var(--mist); border: 1px solid var(--line); border-radius: 100px; padding: 6px 13px; }
.pf-chips-amua span { color: var(--blue); background: rgba(77, 121, 217, 0.08); border-color: rgba(77, 121, 217, 0.28); }

.pf-note { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 30px; }

/* ---------- quotes ---------- */
.section-quotes { padding-top: 96px; }
.quotes {
  background-color: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -34px rgba(10, 11, 13, 0.14);
  border-radius: 26px; padding: 70px 28px 56px; text-align: center; color: var(--ink); position: relative; overflow: hidden;
}
.quotes > * { position: relative; }
.quote-mark { font-size: 64px; line-height: 0.4; color: var(--blue); font-weight: 700; }
.quotes blockquote {
  font-size: clamp(20px, 2.6vw, 28px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3;
  max-width: 680px; margin: 18px auto 0; min-height: 76px; transition: opacity 0.3s ease;
}
.quotes.switching blockquote { opacity: 0; }
.quote-avatars { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.qav {
  height: 38px; padding: 0 14px; border-radius: 100px; border: 2px solid transparent;
  background: var(--mist); color: var(--ink-soft); font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 7px; transition: all 0.2s;
}
.qav-mark { width: 16px; height: 16px; border-radius: 4px; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex: none; }
/* logo-image variant: rounded-square app-icon mark, no letter/background */
.qav-mark--img { border-radius: 4px; object-fit: cover; }
.qav.active .qav-mark--img { background: transparent !important; }
.qav:hover { border-color: var(--line-strong); }
.qav.active { border-color: var(--blue); background: var(--blue); color: #fff; }
.qav.active .qav-mark { background: rgba(255, 255, 255, 0.25) !important; }

/* ---------- cta ---------- */
.section-cta {
  max-width: none; margin: 0; padding: 0; position: relative; overflow: hidden;
  background-color: var(--dark-1); background-image: url('assets/amua-3d-dark.png');
  background-size: cover; background-position: center;
}
.section-cta::before { content: ""; position: absolute; inset: 0; background: rgba(10, 11, 13, 0.55); }
.cta {
  position: relative; z-index: 1; max-width: 760px; margin: 0 auto;
  text-align: center; color: #fff; padding: 104px 28px;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; letter-spacing: -0.03em; color: #fff; }
.cta p { color: #c7ccd4; margin-top: 10px; }
.cta-form { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.cta-form input {
  font-family: inherit; font-size: 15px; padding: 13px 20px; border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08); color: #fff;
  width: min(320px, 100%); outline: none; transition: border-color 0.15s, background 0.15s;
}
.cta-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.cta-form input:focus { border-color: var(--blue); background: rgba(255, 255, 255, 0.14); }
.cta-note { margin-top: 12px; font-size: 13px; color: #c7ccd4; }
.cta-note.ok { color: #6fe0aa; font-weight: 600; }
.cta-os { display: flex; gap: 16px; justify-content: center; margin-top: 22px; }
.cta-os span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: #c7ccd4; }

/* ---------- pricing (grovia-style: plan selector + live detail card) ---------- */
/* bottom padding matches the FAQ's top padding below the CTA, so the dark CTA
   section has equal light breathing room above and below it */
.section-pricing { padding-bottom: 116px; }
.pricing { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 52px; align-items: center; max-width: 1080px; margin: 0 auto; }
.pricing-left h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin-top: 6px; }
.pricing-sub { color: var(--ink-soft); font-size: 16px; margin-top: 12px; max-width: 340px; }

/* monthly / yearly — labels flanking a blue toggle switch */
.bill-toggle { display: inline-flex; align-items: center; gap: 14px; margin-top: 24px; }
.bill-label {
  display: inline-flex; align-items: center; gap: 7px; padding: 0;
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink-soft);
  background: none; border: none; white-space: nowrap; transition: color 0.25s ease;
}
.bill-label.active { color: var(--ink); }
.bill-save { font-size: 11px; font-weight: 700; color: var(--blue); background: rgba(77, 121, 217, 0.12); padding: 2px 7px; border-radius: 100px; }
.bill-switch {
  position: relative; flex: none; width: 46px; height: 26px; padding: 0;
  border: none; border-radius: 100px; background: var(--line-strong); cursor: pointer;
  transition: background 0.3s ease;
}
.bill-switch[aria-checked="true"] { background: var(--blue); }
.bill-knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 5px rgba(10, 11, 13, 0.3);
  transition: left 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.bill-switch[aria-checked="true"] .bill-knob { left: 23px; }

/* plan selector rows */
.plan-select { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.plan-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  padding: 15px 18px; border-radius: 15px; background: var(--mist); border: 1px solid var(--line);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.plan-row:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.plan-row.active { border-color: var(--blue); background: rgba(77, 121, 217, 0.06); }
.plan-info { display: flex; flex-direction: column; gap: 2px; }
.plan-name { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.plan-tag { font-size: 13px; color: var(--ink-soft); }
.plan-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); background: rgba(77, 121, 217, 0.12); padding: 2px 8px; border-radius: 100px; }
.plan-go { color: var(--ink-soft); flex: none; transition: color 0.25s ease, transform 0.25s ease; }
.plan-row.active .plan-go { color: var(--blue); transform: translateX(2px); }

/* live detail card */
.pricing-detail { position: relative; }
.pdetail-stage {
  position: relative; display: grid; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px 34px 32px;
  box-shadow: 0 34px 66px -38px rgba(10, 11, 13, 0.28);
}
.pdetail-stage::before {
  content: ""; position: absolute; top: -35%; right: -18%; width: 340px; height: 340px; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(77, 121, 217, 0.28), transparent 72%); filter: blur(34px);
}
.pdetail {
  grid-area: 1 / 1; position: relative; z-index: 1;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.pdetail.active { opacity: 1; transform: none; pointer-events: auto; }
.pd-popular {
  position: absolute; top: 2px; right: 0; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: var(--blue); padding: 6px 11px 6px 9px; border-radius: 100px;
  box-shadow: 0 7px 16px -7px rgba(77, 121, 217, 0.8);
}
.pd-head { display: flex; align-items: center; gap: 12px; }
.pd-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--mist); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); flex: none; }
.pd-icon-pro { background: var(--blue); border-color: var(--blue); color: #fff; }
.pd-head h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.pd-price { display: flex; align-items: flex-end; gap: 8px; margin-top: 20px; }
.pd-amt { font-size: 48px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.pd-cur { font-size: 26px; font-weight: 600; vertical-align: top; margin-right: 1px; }
.pd-num { display: inline-block; }
.pd-num.pop { animation: pd-pop 0.34s ease; }
@keyframes pd-pop { 40% { transform: translateY(-3px) scale(1.12); } }
.pd-per { color: var(--ink-soft); font-size: 15px; padding-bottom: 6px; }
/* Pro early-access "it's free right now" treatment.
   The price keeps the exact same format as the Free card (one big .pd-amt number
   + /month) so switching plans doesn't jump; a red diagonal line strikes the $15
   and a "$0 limited time" pill sits below it. */
.pd-strike { position: relative; }
.pd-strike::after {
  content: ""; position: absolute; left: -7%; right: -7%; top: 50%;
  height: 3px; border-radius: 3px; background: #e5484d;
  transform: rotate(-12deg); transform-origin: center; pointer-events: none;
}
.pd-note { font-size: 12.5px; font-weight: 600; color: var(--blue); margin-top: 8px; height: 0; opacity: 0; overflow: hidden; transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease; }
.pd-note.show { height: 16px; opacity: 1; }
.pd-desc { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin-top: 14px; max-width: 380px; }
.pd-cta { margin-top: 22px; }
.pd-feats { list-style: none; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 13px; }
.pd-feats li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--ink); }
.pd-feats-lead { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pd-feats-lead + .pd-feats { margin-top: 13px; border-top: none; padding-top: 0; }
.pd-check { width: 20px; height: 20px; flex: none; border-radius: 50%; background: rgba(77, 121, 217, 0.12); display: grid; place-items: center; color: var(--blue); }
.pd-check svg { width: 12px; height: 12px; }

/* ---------- faq ---------- */
.faq { columns: 2; column-gap: 18px; }
.faq details {
  break-inside: avoid; margin-bottom: 14px; background: var(--mist); border: 1px solid var(--line);
  border-radius: 15px; padding: 0 20px; transition: background 0.2s;
}
.faq details[open] { background: var(--surface); }
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 15.5px; font-weight: 600; padding: 17px 0; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-style: normal; font-size: 19px; color: var(--blue); transition: transform 0.25s; flex: none; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { font-size: 14px; color: var(--ink-soft); padding-bottom: 17px; margin-top: -6px; }

/* ---------- updates / blog teaser (CMS-driven cards) ---------- */
/* extra top padding keeps the dark CTA above it balanced — equal light space
   above (pricing's bottom padding) and below (here) */
.section-updates { padding-top: 116px; }
.updates-head { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.updates-all { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.updates-all svg { transition: transform 0.2s ease; }
.updates-all:hover svg { transform: translateX(3px); }
.updates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 26px 50px -32px rgba(10, 11, 13, 0.3); }
.post-thumb { height: 150px; display: grid; place-items: center; color: #fff; flex: none; }
.post-thumb svg { width: 34px; height: 34px; opacity: 0.95; }
.post-thumb-1 { background: linear-gradient(135deg, #5b83de, #3b63c0); }
.post-thumb-2 { background: linear-gradient(135deg, #23252c, #14151a); }
.post-thumb-3 { background: linear-gradient(135deg, #34a878, #26805b); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.post-tag { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--blue); }
.post-date { color: var(--ink-soft); }
.post-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; margin-top: 10px; }
.post-body p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; margin-top: 8px; flex: 1; }
.post-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-top: 18px; }
.post-more svg { width: 15px; height: 15px; color: var(--blue); transition: transform 0.2s ease; }
.post-card:hover .post-more svg { transform: translateX(3px); }
@media (max-width: 860px) {
  .updates-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .updates-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---------- updates page (updates.html) ---------- */
.nav-links a.active { color: var(--ink); background: var(--mist); }
.up-hero { padding-top: 148px; padding-bottom: 6px; }
/* back link sits on its own line above the kicker so it never crowds the title */
.up-back {
  display: flex; width: fit-content; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 26px; transition: color 0.15s, transform 0.15s;
}
.up-hero .kicker { display: block; margin-bottom: 0; }
.up-back:hover { color: var(--ink); }
.up-back:hover svg { transform: translateX(-2px); }
.up-back svg { transition: transform 0.15s ease; }
.up-hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; margin-top: 6px; }
.up-hero p { color: var(--ink-soft); font-size: 17px; line-height: 1.55; margin-top: 16px; max-width: 560px; }
/* section labels */
.up-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px; }
.up-featured-section { padding-top: 40px; padding-bottom: 0; }

/* featured carousel */
.up-carousel-viewport { overflow: hidden; }
.up-carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
.up-carousel-track .post-card { flex: 0 0 100%; min-width: 0; }
.up-carousel-track .post-card.is-feature:hover { transform: none; box-shadow: none; }
.up-carousel-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.up-dots { display: flex; align-items: center; gap: 8px; }
.up-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 100px; background: var(--line-strong); cursor: pointer; transition: width 0.3s ease, background 0.3s ease; }
.up-dot.active { width: 22px; background: var(--blue); }
.up-arrows { display: flex; gap: 8px; }
.up-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.up-arrow:hover { border-color: var(--line-strong); background: var(--mist); }

/* featured card: large horizontal layout */
.post-thumb { position: relative; }
.post-card.is-feature { flex-direction: row; align-items: stretch; }
.is-feature .post-thumb { width: 42%; min-width: 240px; height: auto; min-height: 236px; }
.is-feature .post-thumb > svg { width: 44px; height: 44px; }
.is-feature .post-body { flex: 1; justify-content: center; padding: 34px 38px; }
.is-feature .post-body h3 { font-size: clamp(21px, 2.4vw, 26px); margin-top: 12px; }
.is-feature .post-body p { font-size: 16px; max-width: 520px; }
.is-feature .post-more { margin-top: 22px; }

/* Featured badge — compact pill, star + label optically centered */
.post-feature-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; line-height: 1;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #0a0b0d; background: rgba(255, 255, 255, 0.95); padding: 6px 12px 6px 10px; border-radius: 100px;
  box-shadow: 0 6px 16px -6px rgba(10, 11, 13, 0.35);
}
.post-feature-badge svg { display: block; color: var(--blue); flex: none; }

@media (max-width: 700px) {
  .post-card.is-feature { flex-direction: column; }
  .is-feature .post-thumb { width: 100%; min-width: 0; min-height: 168px; }
  .is-feature .post-body { padding: 22px 22px 26px; }
}

.up-list { padding-top: 40px; }
.up-controls { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 16px 20px; margin-bottom: 30px; }
/* labeled dropdown (Topic + Sort share this) */
.up-sort { display: inline-flex; align-items: center; gap: 10px; }
.up-sort label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.up-select { position: relative; display: inline-flex; align-items: center; }
.up-select select {
  appearance: none; -webkit-appearance: none; font-family: inherit;
  font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
  padding: 9px 38px 9px 16px; transition: border-color 0.2s ease;
}
.up-select select:hover { border-color: var(--line-strong); }
.up-select select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.up-select svg { position: absolute; right: 14px; color: var(--ink-soft); pointer-events: none; }
/* read time on cards */
.post-read { color: var(--ink-soft); }
.post-read::before { content: "\00b7"; margin-right: 9px; color: var(--line-strong); }
.up-hidden { display: none; }
.up-empty { text-align: center; color: var(--ink-soft); font-size: 15px; padding: 40px 0; }
.up-cta-wrap { padding-top: 96px; }
.up-cta {
  text-align: center; max-width: 720px; margin: 0 auto; padding: 52px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 30px 60px -40px rgba(10, 11, 13, 0.25);
}
.up-cta h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -0.02em; }
.up-cta p { color: var(--ink-soft); font-size: 16px; margin-top: 10px; max-width: 420px; margin-left: auto; margin-right: auto; }
.up-cta .btn { margin-top: 24px; }

/* ---------- article reading view ---------- */
.article-hero { padding-top: 132px; padding-bottom: 0; text-align: center; }
.article-hero-inner { max-width: 720px; margin: 0 auto; }
.article-hero .up-back { display: flex; justify-content: center; margin-bottom: 24px; }
.article-eyebrow { display: block; font-size: 12.5px; margin-bottom: 14px; }
.article-title { font-size: clamp(30px, 4.6vw, 48px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; color: var(--ink); }
.article-byline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 22px; font-size: 13.5px; color: var(--ink-soft); }
.article-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
/* uploaded author icon: fill the same circle, no letter/background */
.article-avatar--img { background: none; object-fit: cover; }
.article-author { font-weight: 600; color: var(--ink); }
.article-dot { opacity: 0.6; }

.article-banner { max-width: 940px; aspect-ratio: 12 / 5; margin: 52px auto 60px; border-radius: 22px; display: grid; place-items: center; color: #fff; }
.article-banner svg { width: 56px; height: 56px; opacity: 0.95; }

.article-body { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.article-lead { max-width: 600px; margin: 20px auto 0; font-size: clamp(18px, 2vw, 20px); line-height: 1.5; font-weight: 400; letter-spacing: -0.01em; color: var(--ink-soft); }
.article-body > p { font-size: 17px; line-height: 1.72; color: var(--ink-soft); margin-top: 22px; }
.article-body h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--ink); margin-top: 46px; }
.article-body h2 { font-size: clamp(22px, 2.6vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-top: 44px; }
.article-body h3 { font-size: clamp(19px, 2.2vw, 21px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-top: 36px; }
.article-body h4 { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 28px; }
.article-body ul, .article-body ol { margin-top: 20px; }
.article-body ul { list-style: none; padding-left: 4px; }
.article-body ol { padding-left: 24px; }
.article-body li { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin-top: 12px; }
.article-body li > p { margin: 0; }
/* the global `em { font-style: normal }` reset (used by marketing sections)
   otherwise strips italics from article prose — restore them here so *italic*
   and ***bold italic*** render correctly */
.article-body em, .article-body i { font-style: italic; }
.article-body strong, .article-body b { font-weight: 700; }
.article-body strong em, .article-body em strong,
.article-body b i, .article-body i b { font-style: italic; font-weight: 700; }
.article-body ul li { position: relative; padding-left: 26px; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.article-body ol li::marker { color: var(--blue); font-weight: 600; }
.article-body code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 0.9em; background: var(--mist); padding: 2px 6px; border-radius: 6px; }
.article-body pre { margin: 26px 0; padding: 18px; background: var(--mist); border-radius: 12px; overflow-x: auto; }
.article-body pre code { background: none; padding: 0; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body th { font-weight: 600; color: var(--ink); background: var(--mist); }
.article-body blockquote { margin: 38px 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--blue); font-size: clamp(18px, 2vw, 20px); line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.article-body a:not(.up-back):not(.article-share a) { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.article-body img { display: block; max-width: 100%; height: auto; border-radius: 14px; margin: 30px 0; }
.article-video { position: relative; margin: 30px 0; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.article-video iframe, .article-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* banner image (used when a post sets one, instead of the gradient + icon) */
.article-banner--photo { background: var(--mist); padding: 0; overflow: hidden; }
.article-banner--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-thumb--photo { padding: 0; overflow: hidden; }
.post-thumb--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-share { display: inline-flex; align-items: center; gap: 12px; }
.article-share-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.article-share a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); transition: color 0.15s, border-color 0.15s, transform 0.15s; }
.article-share a:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-2px); }
.article-foot-back { display: inline-flex; }

.article-related { max-width: 1040px; margin: 0 auto; padding-top: 96px; }
.article-related .up-label { margin-bottom: 24px; }

.article-missing { text-align: center; padding-top: 168px; padding-bottom: 40px; }
.article-missing h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
.article-missing p { color: var(--ink-soft); font-size: 16px; margin-top: 12px; }
.article-missing .btn { margin-top: 26px; }

@media (max-width: 700px) {
  .article-banner { margin: 32px 20px 0; border-radius: 16px; }
  .article-lead { margin-top: 16px; }
}

/* ---------- footer ---------- */
.footer { margin-top: 84px; border-top: 1px solid var(--line); background: var(--mist); position: relative; overflow: hidden; }
.footer-inner {
  max-width: 1140px; margin: 0 auto; padding: 44px 28px 30px;
  display: grid; grid-template-columns: 1fr auto auto; gap: 48px; align-items: start;
}
.footer-brand img { width: 26px; margin-bottom: 8px; filter: var(--logo-filter); }
.footer-brand b { letter-spacing: 0.06em; }
.footer-brand p { font-size: 13.5px; color: var(--ink-soft); margin: 8px 0 14px; max-width: 300px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--ink); transition: all 0.15s;
}
.footer-social a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.footer-base { text-align: center; font-size: 12.5px; color: var(--ink-soft); padding: 16px; border-top: 1px solid var(--line); }

/* oversized brand wordmark. Light letters with a soft shadow cast BEHIND the
   strokes so they stay legible against the grey surface while still reading as
   quiet / recessed. Full letters — nothing is clipped. */
.footer-word {
  margin: 34px 0 30px; padding: 0 16px;
  /* Syncopate = the wide, bulky geometric face amua.ai uses for this wordmark.
     It renders ~4.4× its font-size wide, so the clamp is smaller than a normal
     sans would need and letter-spacing stays normal (the face is already wide). */
  font-family: "Syncopate", var(--font); font-weight: 700;
  font-size: clamp(52px, 20vw, 260px); line-height: 1.05;
  letter-spacing: normal; text-align: center; white-space: nowrap;
  user-select: none; pointer-events: none;
  color: #ffffff;
  /* stacked soft shadows behind the strokes = depth + readability (like the
     reference); tightest layer defines the edge, wider layers give the halo */
  text-shadow:
    0 1px 1px rgba(28, 36, 62, 0.14),
    0 3px 6px rgba(28, 36, 62, 0.18),
    0 8px 18px rgba(28, 36, 62, 0.13),
    0 16px 34px rgba(28, 36, 62, 0.08);
}
:root[data-theme="dark"] .footer-word {
  color: rgba(255, 255, 255, 0.92);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.55),
    0 10px 26px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(120, 150, 236, 0.10);         /* whisper of brand glow for separation */
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  /* stacked hero: no scroll runway or zoom on small screens; the portrait
     mobile asset sits below the copy with its empty top half cropped away */
  .hero { min-height: auto; }
  .hero-sticky { position: static; height: auto; padding-bottom: 40px; display: flex; flex-direction: column; }
  .hero-inner { height: auto; padding: 130px 28px 0; order: 1; }
  /* stacked hero image: a STABLE, proportional crop of the portrait asset's
     lower half (the dashboard). aspect-ratio + object-fit anchored to the bottom
     scales smoothly at every width — the old margin-top:-72vw crop was viewport-
     relative, so it revealed a different slice (and different size) at each width. */
  .hero-visual {
    position: static; order: 2; margin: 22px auto 0; height: auto; overflow: hidden;
    width: 100%; max-width: 680px; aspect-ratio: 603 / 470;
  }
  .hero-visual picture { width: 100%; height: 100%; }
  .hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; margin-top: 0; }
  /* the dark asset's baked-in bottom fade is for the full-bleed desktop layout;
     drop it here so the cropped dashboard isn't faded away at the bottom */
  .hero-visual .hero-pic-dark .hero-img { -webkit-mask-image: none; mask-image: none; }
  .void-inner { grid-template-columns: 1fr; gap: 34px; }
  /* pricing stacks: selector on top, detail card below */
  .pricing { grid-template-columns: 1fr; gap: 26px; max-width: 520px; }
  .pricing-sub { max-width: none; }
  .bill-toggle { display: flex; }
  /* inside panel on mobile: drop the tabs and stack all four as scrollable
     cards — every "piece" reveals itself on scroll instead of hiding behind a
     horizontally-scrolling tab bar that only shows two of the four pills. */
  .i2-tabs { display: none; }
  .i2-panel { background: none; border: none; box-shadow: none; border-radius: 0; overflow: visible; margin-top: 6px; }
  .i2-stage { min-height: 0; display: flex; flex-direction: column; gap: 18px; }
  .i2-pane {
    position: relative; inset: auto; display: grid; grid-template-columns: 1fr;
    opacity: 1; transform: none; pointer-events: auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
    overflow: hidden; box-shadow: 0 20px 44px -30px rgba(10, 11, 13, 0.22);
  }
  /* rows normally fade in only on the active tab; with no tabs, show them all */
  .i2-pane .imp-row { opacity: 1; transform: none; animation: none; }
  .i2-shot { padding: 24px; }
  /* video clips: shrink the inset so the screen fills close to the card edge
     (the general 24px above is for the non-video app-frame mockups) */
  .i2-shot--video { padding: 8px; }
  .i2-copy { padding: 28px 24px 32px; }
  /* stack the 3 steps into a vertical timeline; arrows rotate to point down */
  .hiw { flex-direction: column; align-items: stretch; }
  .hiw-arrow { transform: rotate(90deg); margin: 2px 0; }
  /* stacked: no poke-out, cards sit normally with the number below */
  .hiw-visual { height: auto; margin-top: 0; padding: 6px 0 2px; }
  .hiw-num { margin-top: 10px; }
  .signin-mini { height: auto; }
  .pf-legend { gap: 28px; }
  /* NOTE: the features tiles (.grovia) get their own dedicated breakpoint below
     — (hover:none),(max-width:1024px) — so they go fully static on tablets too. */
  .faq { columns: 1; }
  .nav-links { display: none; }
  /* footer keeps its desktop side-by-side layout down to tablet widths (there's
     room); only phones (<=640) get the compact right-stack below. Trim the gap
     so it isn't overly wide on tablets. */
  .footer-inner { gap: 32px; }
}

/* ---------- features tiles: no hover accordion on touch / tablet ---------- */
/* On touch devices and any width up to a tablet, the horizontal hover accordion
   is dropped entirely: cards stack, and every visual is PERMANENTLY visible at
   full width. There is intentionally NO hover/focus state here — every rule
   below re-asserts the static layout even while a tile is hovered or focused. */
@media (hover: none), (max-width: 1024px) {
  .grovia-tiles { flex-direction: column; }
  .gtile, .gtile:first-child,
  .gtile:hover, .gtile:focus-visible {
    flex: 1 1 auto; flex-grow: 1; flex-direction: column; min-height: 0; gap: 18px;
    box-shadow: 0 18px 40px -28px rgba(10, 11, 13, 0.18);
    border-color: var(--line);
  }
  .gtile-body { width: 100%; }
  /* visual is always auto-width + fully opaque — override the collapse (line 307),
     the hover-expand-to-264 (line 304) and the first-child default (line 306) */
  .gtile-visual,
  .gtile:first-child .gtile-visual,
  .gtile:hover .gtile-visual,
  .gtile:focus-visible .gtile-visual,
  .grovia-tiles:is(:hover, :focus-within) .gtile:first-child:not(:hover):not(:focus-visible) .gtile-visual {
    width: auto; opacity: 1; overflow: visible;
  }
  .gtile-visual-inner { width: 100%; min-height: 186px; }
  /* demo content shown in its finished state — never gated behind hover */
  .gtile-visual .stat-bar i, .gtile:hover .stat-bar i { width: var(--w); }
  .gtile-visual .bulk-chat, .gtile:hover .bulk-chat { opacity: 1; transform: none; }
  .gtile-visual .bc-tick, .gtile:hover .bc-tick { opacity: 1; }
  .gtile-visual .org-av, .gtile:hover .org-av { transform: none; }
  /* stacked: the bulk demo fills its box edge-to-edge, so add vertical padding
     to keep the message off the top edge and balance the bottom */
  .demo-bulk { padding-top: 18px; padding-bottom: 18px; }
}

@media (max-width: 640px) {
  .dash-body { grid-template-columns: 44px 1fr; }
  .dash-chatlist, .dash-tabs { display: none; }
  /* phones: keep the menu + social on the RIGHT (never full-width under the
     brand). Brand fills the left and spans both rows; links sit top-right with
     the social row beneath them — a compact version of the desktop layout. */
  .footer-inner {
    grid-template-columns: 1fr auto; grid-template-rows: auto auto;
    gap: 20px 18px; padding: 40px 22px 26px;
  }
  .footer-brand { grid-column: 1; grid-row: 1 / span 2; }
  .footer-links { grid-column: 2; grid-row: 1; text-align: right; }
  .footer-social { grid-column: 2; grid-row: 2; justify-content: flex-end; }
}
