/* ============================================================================
   SERMO -- marketing site
   Single stylesheet. No build step, no framework, no external requests.
   Opens straight from the filesystem.

   Palette: aubergine (our own scale) + a warm tangerine accent.
   Every text/background pair in here clears WCAG AA (>= 4.5:1) in both schemes.
   ==========================================================================*/

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: light dark;

  /* brand: aubergine scale */
  --plum-900: #2A0A2B;
  --plum-850: #330D34;
  --plum-800: #3F0E40;
  --plum-700: #4A154B;
  --plum-600: #5C2A5E;
  --plum-500: #7B2D7E;
  --plum-400: #9C5A9E;
  --plum-300: #C0A0C2;
  --plum-200: #DFC9E0;
  --plum-100: #EFE0F0;

  /* brand: warm accent */
  --accent:     #FF7A3D;
  --accent-hi:  #FF8A52;
  --accent-ink: #A83A12;   /* accent, legible as text on a light surface */
  --amber:      #FFC046;
  --green:      #2BB673;

  /* semantic -- light */
  --bg:        #FBF7FB;
  --surface:   #FFFFFF;
  --surface-2: #F4EDF5;
  --ink:       #1D0A20;
  --ink-2:     #5B4761;
  --hairline:   rgba(29,10,32,.12);
  --hairline-2: rgba(29,10,32,.07);

  --shadow-sm: 0 1px 2px rgba(42,10,43,.05), 0 2px 8px rgba(42,10,43,.05);
  --shadow-md: 0 14px 30px -14px rgba(42,10,43,.28), 0 3px 10px rgba(42,10,43,.07);
  --shadow-xl: 0 60px 100px -45px rgba(20,4,21,.55), 0 24px 48px -30px rgba(20,4,21,.35);

  /* the mark */
  --mark-a:    var(--plum-700);
  --mark-b:    var(--plum-500);
  --mark-lens: var(--accent);

  /* the mocked product pane (flips with the scheme, like the real app) */
  --pane:      #FFFFFF;
  --pane-ink:  #1D1C1D;
  --pane-meta: #616061;
  --pane-line: rgba(29,28,29,.11);
  --pane-chip: #F5F0F6;
  --pane-hover:#FAF7FB;

  /* type: fluid, ~1.22 ratio */
  --t--1: clamp(.78rem,  .757rem + .11vw, .84rem);
  --t-0:  clamp(.95rem,  .918rem + .16vw, 1.06rem);
  --t-1:  clamp(1.09rem, 1.032rem + .29vw, 1.28rem);
  --t-2:  clamp(1.30rem, 1.193rem + .53vw, 1.65rem);
  --t-3:  clamp(1.55rem, 1.351rem + 1.00vw, 2.20rem);
  --t-4:  clamp(1.90rem, 1.518rem + 1.91vw, 3.15rem);
  --t-5:  clamp(2.35rem, 1.588rem + 3.81vw, 4.85rem);

  --shell: 1180px;
  --r-sm: 8px;  --r-md: 12px; --r-lg: 18px; --r-xl: 28px; --r-pill: 999px;
  --ease: cubic-bezier(.2,.7,.2,1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #150616;
    --surface:   #1F0C22;
    --surface-2: #2A1130;
    --ink:       #F2E6F3;
    --ink-2:     #B9A4BC;
    --hairline:   rgba(255,255,255,.12);
    --hairline-2: rgba(255,255,255,.07);

    --accent:     #FF8A52;
    --accent-ink: #FF9159;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.35), 0 2px 10px rgba(0,0,0,.25);
    --shadow-md: 0 16px 34px -16px rgba(0,0,0,.7), 0 3px 12px rgba(0,0,0,.35);
    --shadow-xl: 0 60px 110px -45px rgba(0,0,0,.85), 0 24px 50px -30px rgba(0,0,0,.6);

    --mark-a: #EFE0F0;
    --mark-b: #B27FB4;
    --mark-lens: var(--accent);

    --pane:      #1B1119;
    --pane-ink:  #EDE4EE;
    --pane-meta: #A9A0AB;
    --pane-line: rgba(255,255,255,.10);
    --pane-chip: #2B1B2E;
    --pane-hover:#221525;
  }
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: var(--t-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

ul { list-style: none; }
a  { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; }
:where(h1,h2,h3,h4) { text-wrap: balance; }
:where(p) { text-wrap: pretty; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--plum-900); font-weight: 700;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

[id] { scroll-margin-top: 88px; }

/* ------------------------------------------------------------------ brand */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__word {
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: .16em;
  margin-right: -.16em;   /* absorb the trailing letter-space so the word optically centers */
}

/* ------------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(28,6,30,.72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(255,255,255,.08);
  --mark-a: #F0E2F1; --mark-b: #B27FB4; --mark-lens: #FF7A3D;
}
.nav__in {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
  color: #fff;
}
.nav__links { display: flex; gap: 4px; margin-left: 12px; }
.nav__links a {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: var(--t-0); font-weight: 600;
  color: rgba(255,255,255,.78);
  transition: color .18s, background .18s;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.09); }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding-inline: 20px;
  border-radius: var(--r-pill);
  font-size: var(--t-0); font-weight: 700; letter-spacing: -.005em;
  white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background .18s, border-color .18s, color .18s;
}
.btn .ic { width: 17px; height: 17px; transition: transform .22s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--lg { min-height: 52px; padding-inline: 26px; font-size: var(--t-1); }
.btn--full { width: 100%; }

.btn--accent {
  background: var(--accent); color: var(--plum-900);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35),
              0 10px 26px -12px rgba(255,122,61,.9);
}
.btn--accent:hover {
  background: var(--accent-hi); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4),
              0 16px 34px -12px rgba(255,122,61,1);
}
.btn--ghost {
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn--outline {
  border: 1px solid var(--hairline); color: var(--ink); background: var(--surface);
}
.btn--outline:hover {
  border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(0); }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  isolation: isolate;   /* keep the z-index:-1 layers inside the hero */
  padding: clamp(122px, 15vh, 176px) 0 0;
  color: #fff;
  --ink: #fff;
  --ink-2: #D8C4DA;
}
.hero__bg {
  position: absolute; inset: 0 0 auto 0;
  height: calc(100% - clamp(60px, 9vw, 150px));
  overflow: hidden;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% -10%, #55195A 0%, transparent 55%),
    linear-gradient(180deg, #3F0E40 0%, #300B32 55%, #2A0A2B 100%);
}
.hero__bg::after {  /* film grain, inline SVG turbulence: no request, no file */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.orb--a { width: 640px; height: 640px; left: -180px;  top: -240px; background: #8A328E; opacity: .5;
          animation: drift 26s ease-in-out infinite alternate; }
.orb--b { width: 520px; height: 520px; right: -140px; top: -180px; background: var(--accent); opacity: .26;
          animation: drift 32s ease-in-out infinite alternate-reverse; }
.orb--c { width: 760px; height: 520px; left: 38%;     top: 120px;  background: #5E1B61; opacity: .55;
          animation: drift 40s ease-in-out infinite alternate; }
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(120% 85% at 50% 0%, #000 8%, transparent 68%);
          mask-image: radial-gradient(120% 85% at 50% 0%, #000 8%, transparent 68%);
}

.hero__in { position: relative; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  font-size: var(--t--1); color: #E4D5E5;
  animation: up .7s .02s var(--ease) both;
}
.eyebrow b { font-weight: 800; color: #fff; letter-spacing: .02em; }
.eyebrow__pip {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255,122,61,.7);
  animation: ping 2.6s ease-out infinite;
}
.eyebrow__rule { width: 1px; height: 12px; background: rgba(255,255,255,.28); }

.hero__h1 {
  margin: 26px auto 0;
  max-width: 18ch;
  font-size: var(--t-5);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  animation: up .8s .1s var(--ease) both;
}
/* The second clause carries the accent. Solid colour first: if a browser cannot
   clip a gradient to text, we must NOT be left with `color: transparent` and an
   invisible headline. The gradient is applied only where it is supported. */
.hero__h1 em { display: block; font-style: normal; color: var(--accent); }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__h1 em {
    background: linear-gradient(96deg, var(--accent) 8%, var(--amber) 70%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
  }
}

.hero__sub {
  margin: 22px auto 0; max-width: 60ch;
  font-size: var(--t-1); line-height: 1.55; color: #D8C4DA;
  animation: up .8s .18s var(--ease) both;
}

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 32px;
  animation: up .8s .26s var(--ease) both;
}
.hero__fine {
  margin-top: 18px; font-size: var(--t--1); color: #BFA5C1;
  animation: up .8s .32s var(--ease) both;
}

/* ------------------------------------------------------- product mockup */
.shot {
  position: relative;
  isolation: isolate;   /* the glow stays behind the frame, never behind the page */
  max-width: 1080px;
  margin: clamp(48px, 6vw, 78px) auto 0;
  animation: rise 1.1s .34s var(--ease) both;
}
.shot__glow {
  position: absolute; inset: 8% 6% 12%;
  z-index: -1; filter: blur(70px);
  background:
    radial-gradient(60% 60% at 30% 40%, rgba(155,50,158,.7), transparent 70%),
    radial-gradient(55% 55% at 75% 55%, rgba(255,122,61,.42), transparent 70%);
  animation: breathe 9s ease-in-out infinite alternate;
}
.shot__frame {
  border-radius: 16px;
  overflow: hidden;
  background: var(--pane);
  transform: perspective(2400px) rotateX(4deg);
  transform-origin: 50% 0;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.14);
  text-align: left;
}
.shot__chrome {
  display: flex; align-items: center; gap: 7px;
  height: 34px; padding-inline: 14px;
  background: var(--plum-900);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tl { width: 10px; height: 10px; border-radius: 50%; }
.tl--r { background: #FF5F57; } .tl--y { background: #FEBC2E; } .tl--g { background: #28C840; }
.shot__title {
  margin-inline: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.6);
  transform: translateX(-22px);
}
.shot__title span {
  font-size: 9px; font-weight: 800; letter-spacing: .12em;
  padding: 2px 6px; border-radius: 4px;
  color: rgba(255,255,255,.7); background: rgba(255,255,255,.1);
}

.app {
  display: grid;
  grid-template-columns: 64px 218px minmax(0, 1fr);
  height: 566px;
  font-size: 13px;
}

/* rail */
.rail {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 0 14px;
  background: var(--plum-900);
  border-right: 1px solid rgba(255,255,255,.07);
}
.rail__ws {
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 10px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #fff;
  background: linear-gradient(140deg, var(--accent), #B8397C);
  box-shadow: 0 4px 12px -4px rgba(255,122,61,.6);
}
.rail__ic {
  position: relative;
  display: grid; justify-items: center; gap: 2px;
  width: 46px; padding: 6px 0 4px; border-radius: 10px;
  color: rgba(255,255,255,.72);
}
.rail__ic svg { width: 20px; height: 20px; fill: currentColor; }
.rail__ic span { font-size: 9px; font-weight: 700; letter-spacing: .01em; }
.rail__ic.is-on { background: rgba(255,255,255,.14); color: #fff; }
.rail__dot {
  position: absolute; top: 4px; right: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--plum-900);
}
.rail__me {
  width: 30px; height: 30px; border-radius: 8px; margin-top: auto; position: relative;
  background: linear-gradient(140deg, #6E4BD8, #3E7BE8);
}
.rail__me::after {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--green); border: 2.5px solid var(--plum-900);
}

/* sidebar */
.side {
  padding: 12px 8px;
  background: var(--plum-800);
  border-right: 1px solid rgba(0,0,0,.2);
  overflow: hidden;
}
.side__hd {
  display: flex; align-items: center; gap: 8px;
  padding: 0 6px 10px;
}
.side__ws { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.side__pen {
  margin-left: auto; width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center;
  background: #fff; color: var(--plum-800);
}
.side__pen svg { width: 14px; height: 14px; }
.side__search {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px; margin-bottom: 14px;
  border-radius: 7px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.72); font-size: 11.5px;
}
.side__search svg { width: 13px; height: 13px; flex: none; }
.side__sec {
  padding: 0 8px; margin: 12px 0 4px;
  font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.66);
}
.side__list { display: grid; gap: 1px; }

.ch {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 6px;
  color: rgba(255,255,255,.74);
  font-size: 13px; line-height: 1.5;
  white-space: nowrap;
}
.ch__h { color: rgba(255,255,255,.55); font-weight: 600; width: 10px; text-align: center; }
.ch__h--plus {
  width: 16px; height: 16px; border-radius: 4px; font-size: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.8);
}
.ch--add { color: rgba(255,255,255,.6); }
.ch.is-unread { color: #fff; font-weight: 800; }
.ch.is-unread .ch__h { color: #fff; }
.ch.is-active {
  background: var(--plum-600); color: #fff; font-weight: 700;
  box-shadow: inset 3px 0 0 var(--accent);
}
.ch.is-active .ch__h { color: #fff; }
.badge {
  margin-left: auto;
  padding: 0 6px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--plum-900);
  font-size: 10px; font-weight: 800; line-height: 16px;
}
.pr { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-left: 1px; }
.pr--on  { background: var(--green); box-shadow: 0 0 0 2px rgba(43,182,115,.25); }
.pr--off { border: 1.6px solid rgba(255,255,255,.6); }

/* message pane */
.pane {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--pane); color: var(--pane-ink);
}
.pane__hd {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--pane-line);
}
.pane__id { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.pane__name { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.pane__h { color: var(--pane-meta); font-weight: 600; }
.pane__topic {
  font-size: 11.5px; color: var(--pane-meta);
  padding-left: 10px; border-left: 1px solid var(--pane-line);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pane__mem {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 6px; border-radius: var(--r-pill);
  border: 1px solid var(--pane-line);
}
.pane__n { font-size: 11.5px; font-weight: 700; color: var(--pane-meta); }

.stack { display: flex; }
.stack i {
  width: 22px; height: 22px; border-radius: 6px; margin-left: -6px;
  display: grid; place-items: center;
  border: 2px solid var(--pane);
  font-size: 7.5px; font-weight: 800; font-style: normal; color: #fff;
}
.stack i:first-child { margin-left: 0; }
.stack--sm i { width: 19px; height: 19px; border-radius: 5px; font-size: 7px; }
.av--1, .ava--1 { background: linear-gradient(140deg, #7C4DFF, #4A154B); }
.av--2, .ava--2 { background: linear-gradient(140deg, #FF7A3D, #C9356E); }
.av--3, .ava--3 { background: linear-gradient(140deg, #2BB673, #1B7F8C); }
.av--4, .ava--4 { background: linear-gradient(140deg, #3E7BE8, #6E4BD8); }

.pane__body { flex: 1; padding: 10px 0 0; overflow: hidden; }

.daymark, .newmark {
  display: flex; align-items: center; gap: 10px;
  margin: 6px 18px 12px;
  font-size: 11px; font-weight: 700;
}
.daymark { color: var(--pane-meta); }
.daymark::before, .daymark::after { content: ""; height: 1px; background: var(--pane-line); flex: 1; }
.daymark span {
  padding: 2px 10px; border: 1px solid var(--pane-line); border-radius: var(--r-pill);
  background: var(--pane);
}
.newmark { color: var(--accent-ink); margin-top: 14px; }
.newmark::before { content: ""; height: 1px; background: currentColor; flex: 1; opacity: .5; }
.newmark span {
  padding: 1px 9px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--plum-900); font-weight: 800;
}

.msg {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px;
  padding: 7px 18px;
  transition: background .18s;
}
.msg:hover { background: var(--pane-hover); }
.msg--in { animation: slide-in .5s 1.5s var(--ease) both; }
.msg__b { min-width: 0; }
.ava {
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #fff;
}
.msg__hd { display: flex; align-items: baseline; gap: 8px; }
.msg__hd b { font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.msg__hd time { font-size: 11px; color: var(--pane-meta); }
.msg__t { font-size: 13.5px; line-height: 1.5; margin-top: 1px; }

.mention {
  padding: 1px 4px; border-radius: 4px;
  background: rgba(255,122,61,.16); color: var(--accent-ink); font-weight: 700;
}

.rxns { display: flex; gap: 6px; margin-top: 7px; }
.rxn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: var(--r-pill);
  border: 1px solid var(--pane-line); background: var(--pane-chip);
  font-size: 11px; font-weight: 700;
}
.rxn.is-mine { border-color: rgba(255,122,61,.6); background: rgba(255,122,61,.14); }
.rxn .em { width: 13px; height: 13px; }
.rxn--add { color: var(--pane-meta); padding-inline: 6px; }
.rxn--add svg { width: 13px; height: 13px; }

.thread {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px; padding: 4px 10px 4px 4px;
  border: 1px solid transparent; border-radius: 8px;
  transition: border-color .18s, background .18s;
}
.thread:hover { border-color: var(--pane-line); background: var(--pane); }
.thread b { font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.thread > span:last-child { font-size: 11px; color: var(--pane-meta); }

.typing {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 18px 10px;
  font-size: 11.5px; color: var(--pane-meta);
}
.typing__d { display: flex; gap: 3px; }
.typing__d i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--pane-meta);
  animation: blink 1.3s ease-in-out infinite;
}
.typing__d i:nth-child(2) { animation-delay: .18s; }
.typing__d i:nth-child(3) { animation-delay: .36s; }

.cmp {
  margin: 0 14px 14px;
  border: 1px solid var(--pane-line); border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cmp__bar {
  display: flex; align-items: center; gap: 2px;
  padding: 5px 8px;
  border-bottom: 1px solid var(--pane-line);
  color: var(--pane-meta);
}
.cmp__b {
  width: 24px; height: 24px; border-radius: 5px;
  display: grid; place-items: center;
  font-size: 12px;
}
.cmp__b svg { width: 15px; height: 15px; }
.cmp__b--b { font-weight: 800; }
.cmp__b--i { font-style: italic; font-family: Georgia, "Times New Roman", serif; }
.cmp__b--s { text-decoration: line-through; }
.cmp__sep { width: 1px; height: 16px; background: var(--pane-line); margin-inline: 5px; }
.cmp__in {
  display: flex; align-items: center; gap: 1px;
  padding: 9px 9px 9px 11px;
  font-size: 13px; color: var(--pane-meta);
}
.cmp__caret {
  width: 1.5px; height: 15px; background: var(--accent-ink); flex: none;
  animation: caret 1.1s step-end infinite;
}
.cmp__ph { margin-left: 4px; }
.cmp__send {
  margin-left: auto; width: 28px; height: 28px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--plum-900);
}
.cmp__send svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------ spec strip */
.specs { padding-top: clamp(52px, 6vw, 84px); }
.specs__in {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px 30px;
  padding-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--hairline-2);
}
.specs__in span {
  position: relative;
  font-size: var(--t--1); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-2);
}
.specs__in span + span::before {
  content: ""; position: absolute; left: -17px; top: 50%;
  width: 4px; height: 4px; margin-top: -2px; border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------- section */
.sec { padding-block: clamp(72px, 9vw, 122px); }
.sec--tight { padding-top: clamp(56px, 7vw, 96px); }
.sec__hd { max-width: 720px; margin-bottom: clamp(34px, 5vw, 58px); }

.kicker {
  font-size: var(--t--1); font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent-ink);
}
.kicker--on { color: var(--accent); }
.h2 {
  margin: 14px 0 16px;
  font-size: var(--t-4); font-weight: 800;
  line-height: 1.06; letter-spacing: -.032em;
}
.h2--on { color: #fff; }
.lede { font-size: var(--t-1); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.lede--on { color: #D8C4DA; }

/* ---------------------------------------------------------------- cards */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; overflow: hidden;
  padding: 26px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--plum-500));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card:hover::after { transform: scaleX(1); }
.card__ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--plum-600), var(--plum-900));
  box-shadow: 0 8px 18px -10px rgba(74,21,75,.9);
}
.card__ic svg { width: 23px; height: 23px; }
.card h3 {
  margin: 18px 0 8px;
  font-size: var(--t-1); font-weight: 800; letter-spacing: -.018em;
}
.card p { color: var(--ink-2); line-height: 1.55; }
.chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed var(--hairline);
}
.chips li {
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--hairline-2);
  font-size: 11.5px; font-weight: 700; color: var(--ink-2);
}

/* ----------------------------------------------------------------- band */
.band {
  position: relative; overflow: hidden;
  padding-block: clamp(72px, 9vw, 118px);
  color: #fff;
  background:
    radial-gradient(90% 60% at 82% 8%, rgba(255,122,61,.2), transparent 60%),
    linear-gradient(158deg, var(--plum-800) 0%, var(--plum-900) 58%, #1E0720 100%);
}
.band__grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.band__in { position: relative; display: grid; gap: clamp(34px, 4vw, 56px); }
.band__hd { max-width: 760px; }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pillar {
  padding: 30px 26px;
  background: rgba(255,255,255,.035);
  transition: background .3s var(--ease);
}
.pillar:hover { background: rgba(255,255,255,.08); }
.pillar h3 {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 10px;
  font-size: var(--t-1); font-weight: 800; letter-spacing: -.018em;
}
.pillar h3::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; flex: none;
  background: var(--accent);
}
.pillar p { color: #D8C4DA; line-height: 1.6; }

/* -------------------------------------------------------------- pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.tier {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tier--hero {
  transform: translateY(-10px);
  border-color: transparent;
  box-shadow: var(--shadow-md), 0 0 0 2px var(--accent);
}
.tier--hero:hover { transform: translateY(-14px); }
.tier__tag {
  position: absolute; top: -11px; left: 24px;
  padding: 3px 11px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--plum-900);
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.tier__n { font-size: var(--t-1); font-weight: 800; letter-spacing: -.015em; }
.tier__p { display: flex; align-items: baseline; gap: 7px; margin-top: 8px; }
.tier__p b { font-size: var(--t-3); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.tier__p span { font-size: var(--t--1); color: var(--ink-2); }
.tier__d {
  margin: 8px 0 18px; padding-bottom: 18px;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--hairline);
}
.ticks { flex: 1 1 auto; display: grid; gap: 2px; }
.ticks li {
  position: relative; padding: 5px 0 5px 27px;
  font-size: var(--t-0); color: var(--ink-2); line-height: 1.45;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 17px; height: 17px; border-radius: 50%;
  background: rgba(255,122,61,.18);
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: 13px;
  width: 7px; height: 3.5px;
  border-left: 1.9px solid var(--accent-ink);
  border-bottom: 1.9px solid var(--accent-ink);
  transform: rotate(-45deg);
}
.tier .btn { margin-top: 24px; }
.tiers__fine {
  margin-top: 24px; text-align: center;
  font-size: var(--t--1); color: var(--ink-2);
}

/* ------------------------------------------------------------ closing cta */
.last { padding-block: 0 clamp(72px, 9vw, 120px); }
.last__in {
  text-align: center;
  padding: clamp(44px, 6vw, 76px) clamp(24px, 4vw, 48px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255,122,61,.12), transparent 62%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}
.last .h2 { max-width: 18ch; margin-inline: auto; }
.last .lede { margin-inline: auto; text-align: center; }
.last .hero__cta { margin-top: 30px; animation: none; }

/* ---------------------------------------------------------------- footer */
.foot {
  position: relative; overflow: hidden;
  padding-top: clamp(58px, 7vw, 88px);
  background: var(--plum-900);
  color: #fff;
  --mark-a: #EFE0F0; --mark-b: #B27FB4; --mark-lens: #FF7A3D;
}
.foot__in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 2fr; gap: 44px;
}
.foot__brand p {
  margin-top: 14px; max-width: 30ch;
  color: var(--plum-300); line-height: 1.6;
}
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot__cols h4 {
  margin-bottom: 12px;
  font-size: 11px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.foot__cols a {
  display: inline-block; padding: 4px 0;
  color: #D8C4DA; transition: color .18s;
}
.foot__cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.foot__end {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(44px, 5vw, 66px);
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255,255,255,.13);
}
.foot__end p { font-size: var(--t--1); color: var(--plum-300); }
.foot__lat i { font-style: italic; color: var(--plum-400); }

.foot__ghost {
  position: absolute; left: 50%; bottom: -2.6vw; z-index: 0;
  transform: translateX(-50%);
  font-size: clamp(96px, 23vw, 300px); font-weight: 800; letter-spacing: .08em;
  line-height: .8; white-space: nowrap;
  color: rgba(255,255,255,.035);
  pointer-events: none; user-select: none;
}

/* ------------------------------------------------------------- keyframes */
@keyframes up      { from { opacity: 0; transform: translateY(20px); } }
@keyframes rise    { from { opacity: 0; transform: translateY(40px) scale(.985); } }
@keyframes slide-in{ from { opacity: 0; transform: translateY(10px); } }
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(60px,44px,0) scale(1.12); }
}
@keyframes breathe {
  from { opacity: .8; transform: scale(.97); }
  to   { opacity: 1;  transform: scale(1.03); }
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(255,122,61,.65); }
  70%  { box-shadow: 0 0 0 9px rgba(255,122,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,122,61,0); }
}
@keyframes blink {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30%           { opacity: 1;  transform: translateY(-2px); }
}
@keyframes caret { 50% { opacity: 0; } }
@keyframes reveal-in { from { opacity: 0; transform: translateY(26px); } }

/* Scroll-linked reveals, CSS only. Progressive enhancement: browsers without
   scroll-driven animations simply render everything visible from the start,
   so nothing is ever hidden behind a feature we do not have. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 26%;
    }
    .cards .reveal:nth-child(2) { animation-range: entry 1% cover 26%; }
    .cards .reveal:nth-child(3) { animation-range: entry -2% cover 26%; }
    .cards .reveal:nth-child(4) { animation-range: entry -5% cover 26%; }
  }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1040px) {
  .cards  { grid-template-columns: repeat(2, 1fr); }
  .app    { height: 520px; }
}

@media (max-width: 900px) {
  .app     { grid-template-columns: 60px minmax(0, 1fr); }
  .side    { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .tiers   { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .tier--hero, .tier--hero:hover, .tier:hover { transform: none; }
  .foot__in { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .shot__frame { transform: none; }
  .nav__links  { display: none; }
}

@media (max-width: 620px) {
  .cards      { grid-template-columns: 1fr; }
  /* rail is gone, so let the pane size to its own content: no clipped messages
     when the text rewraps to three lines on a narrow screen. */
  .app        { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 430px; }
  .rail       { display: none; }
  .pane__mem  { display: none; }
  .nav__signin{ display: none; }
  .foot__cols { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .foot__end  { justify-content: flex-start; }
  .shot__title { transform: none; }
}

@media (max-width: 420px) {
  .msg   { grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding-inline: 12px; }
  .ava   { width: 30px; height: 30px; font-size: 10px; border-radius: 7px; }
  .msg__t{ font-size: 12.5px; }
  .pane__hd, .daymark, .newmark, .typing { padding-inline: 12px; margin-inline: 12px; }
  .pane__topic { display: none; }
  .cmp   { margin-inline: 10px; }
}

/* ---------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
  .eyebrow, .hero__h1, .hero__sub, .hero__cta, .hero__fine,
  .shot, .msg--in, .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .btn:hover, .card:hover, .tier:hover, .tier--hero, .tier--hero:hover {
    transform: none !important;
  }
}
