/* ==========================================================================
   Quick Phaze — design system
   Palette: 533B4D plum · C1ABA6 dusty rose · F564A9 pink · FAA4BD blush
            FAE3C6 cream
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */

:root {
  --plum:        #533B4D;
  --rose:        #C1ABA6;
  --pink:        #F564A9;
  --blush:       #FAA4BD;
  --cream:       #FAE3C6;

  --bg:          #FBF6EF;
  --bg-2:        #F5EDE2;
  --surface:     #FFFFFF;
  --surface-2:   #FAF1E4;
  --line:        rgba(83, 59, 77, .15);
  --line-2:      rgba(83, 59, 77, .28);
  --text:        #2C1F27;
  --text-2:      #6B5361;
  --text-3:      #93808A;
  --accent:      #C2367A;
  --accent-ink:  #FFFFFF;
  --shadow:      0 1px 2px rgba(44, 31, 39, .05), 0 12px 32px -18px rgba(44, 31, 39, .28);
  --shadow-lift: 0 2px 4px rgba(44, 31, 39, .06), 0 26px 50px -26px rgba(44, 31, 39, .34);
  --scrim:       rgba(251, 246, 239, .82);

  /* logo palette — the inline lock-up reads these so one SVG serves both themes */
  --logo-a:    #533B4D;
  --logo-b:    #C2367A;
  --logo-c:    #C1ABA6;
  --logo-word: #2C1F27;

  --maxw:  1240px;
  --gut:   clamp(20px, 5vw, 64px);
  --r:     2px;
  --r-lg:  4px;

  --ease:  cubic-bezier(.22, .61, .36, 1);
  --dur:   .5s;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg:          #1D141A;
  --bg-2:        #241922;
  --surface:     #2E212B;
  --surface-2:   #392936;
  --line:        rgba(250, 227, 198, .13);
  --line-2:      rgba(250, 227, 198, .26);
  --text:        #FAE3C6;
  --text-2:      #C1ABA6;
  --text-3:      #93807F;
  --accent:      #F564A9;
  --accent-ink:  #2C1F27;
  --shadow:      0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -18px rgba(0, 0, 0, .7);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .34), 0 30px 56px -26px rgba(0, 0, 0, .8);
  --scrim:       rgba(29, 20, 26, .82);

  --logo-a:    #FAE3C6;
  --logo-b:    #F564A9;
  --logo-c:    #C1ABA6;
  --logo-word: #FAE3C6;

  color-scheme: dark;
}

/* ---------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

/* ----------------------------------------------------------- typography -- */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.9vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.25; letter-spacing: -0.018em; }
p  { margin: 0; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.62;
  color: var(--text-2);
  max-width: 56ch;
  text-wrap: pretty;
}

.eyebrow {
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* --------------------------------------------------------------- layout -- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

section { position: relative; }

.band { padding-block: clamp(76px, 11vw, 148px); }
.band--tight { padding-block: clamp(56px, 7vw, 92px); }
.band--alt { background: var(--bg-2); }
.band + .band--alt, .band--alt + .band { border-top: 1px solid var(--line); }

.grid { display: grid; gap: clamp(20px, 2.4vw, 30px); }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
.g4 { grid-template-columns: 1fr; }

@media (min-width: 760px) {
  .g2 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .g4 { grid-template-columns: repeat(4, 1fr); }
}

/* Asymmetric section head: label rail + content */
.head { display: grid; gap: 24px; align-items: end; margin-bottom: clamp(38px, 5vw, 64px); }
@media (min-width: 900px) {
  .head { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); }
  .head__aside { padding-bottom: 8px; }
}
.head p { color: var(--text-2); max-width: 46ch; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------------------- controls -- */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: .93rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .28s var(--ease), background-color .28s var(--ease),
              border-color .28s var(--ease), opacity .28s var(--ease);
}
.btn:hover { transform: translateY(-2px); opacity: .92; }
.btn:active { transform: translateY(0); }
.btn svg {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn .arw { transition: transform .32s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--text-2); background: var(--surface); opacity: 1; }

.btn--quiet {
  --btn-bg: transparent;
  --btn-fg: var(--text-2);
  padding-inline: 0;
}
.btn--quiet:hover { --btn-fg: var(--accent); transform: none; }

.linkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 550;
}
.linkline::after {
  content: "";
  width: 14px; height: 1px;
  background: currentColor;
  transition: width .3s var(--ease);
}
.linkline:hover::after { width: 26px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--text-2);
  background: var(--surface);
}
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------------------------------------------------------------- cards -- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 30px);
  transition: transform .4s var(--ease), border-color .4s var(--ease),
              box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: .95rem; }

.card__num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--text-3);
  display: block;
  margin-bottom: 22px;
}

.ico {
  width: 34px; height: 34px;
  margin-bottom: 20px;
  color: var(--accent);
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------- header -- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--scrim);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.hdr.is-stuck { border-bottom-color: var(--line); }

.hdr__in {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  flex: none;
}
.logo { display: block; height: auto; }
.brand .logo { height: 28px; width: auto; }
.brand__tag {
  display: none;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.nav { display: none; align-items: center; gap: 2px; }
@media (min-width: 1080px) { .nav { display: flex; } }

.nav a {
  position: relative;
  padding: 8px 11px;
  font-size: .92rem;
  color: var(--text-2);
  text-decoration: none;
  border-radius: var(--r);
  transition: color .25s var(--ease);
}
@media (min-width: 1180px) { .brand__tag { display: inline; } }

.nav a::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .34s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 550; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.hdr__end { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr__cta { display: none; }
@media (min-width: 1080px) { .hdr__cta { display: inline-flex; } }

.iconbtn {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  color: var(--text-2);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.iconbtn:hover { color: var(--text); border-color: var(--line-2); }
.iconbtn svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.5; fill: none;
               stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .ico-sun { display: none; }
.ico-moon { display: none; }
[data-theme="dark"] .ico-moon { display: block; }

.burst { display: grid; }
@media (min-width: 1080px) { .burst { display: none; } }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 68px 0 auto 0;
  z-index: 89;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gut) 26px;
  display: grid;
  gap: 2px;
  transform: translateY(-14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.drawer.is-open { opacity: 1; transform: none; pointer-events: auto; }
.drawer a {
  padding: 14px 2px;
  text-decoration: none;
  color: var(--text);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}
.drawer .btn { margin-top: 18px; justify-content: center; }
@media (min-width: 1080px) { .drawer { display: none; } }

/* ----------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  min-height: calc(100dvh - 68px);
  display: flex;
  align-items: center;
  padding-block: clamp(64px, 9vw, 120px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* soft, non-glowing wash built from palette tints */
.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .3;
}
.hero__bg::before {
  width: 46vw; height: 46vw;
  top: -14vw; right: -8vw;
  background: var(--blush);
}
.hero__bg::after {
  width: 40vw; height: 40vw;
  bottom: -16vw; left: -10vw;
  background: var(--rose);
}
[data-theme="dark"] .hero__bg::before { opacity: .16; }
[data-theme="dark"] .hero__bg::after  { opacity: .12; }

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 20%, transparent 78%);
  opacity: .8;
  pointer-events: none;
}

.hero__in { position: relative; z-index: 2; width: 100%; }

.hero__lede {
  display: grid;
  gap: 22px;
  max-width: 20ch;
}
@media (min-width: 980px) {
  .hero__cols {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(40px, 5vw, 88px);
    align-items: center;
  }
}

.hero h1 { max-width: 19ch; }
.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--text-3);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hero__meta {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

/* stacked preview cards, echoing the reference composition */
.stack {
  position: relative;
  margin-top: 96px;
  min-height: 360px;
}
@media (min-width: 980px) { .stack { margin-top: 0; min-height: 460px; } }

.stack__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.stack__card:hover { box-shadow: var(--shadow-lift); }

.stack__main { position: relative; z-index: 3; }
.stack__float {
  position: absolute;
  z-index: 2;
  width: min(240px, 62%);
  padding: 14px 16px;
}
.stack__float--a { top: -104px; left: -7%; transform: rotate(-1.4deg); }
.stack__float--b { bottom: -34px; right: -4%; transform: rotate(1.6deg); }
@media (max-width: 700px) {
  .stack__float--a { top: -58px; left: 0; width: 74%; }
  .stack__float--b { bottom: -24px; right: 0; width: 70%; }
}
.stack__card:hover ~ .stack__float,
.stack__float:hover { z-index: 4; }

.float { display: flex; }

/* ------------------------------------------------------------- app mock -- */

.mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.mock__bar .mono { margin-left: auto; }

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.row:last-child { border-bottom: 0; }
.row__name { font-size: .95rem; font-weight: 550; letter-spacing: -0.012em; }
.row__sub { grid-column: 1; font-size: .78rem; color: var(--text-3); }
.row__val { font-size: .84rem; color: var(--text-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  color: var(--text-2);
}
.tag--due { border-color: var(--accent); color: var(--accent); }
.tag--ok  { border-color: var(--line-2); color: var(--text-3); }

.avatars { display: flex; }
.avatars span {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--plum);
  background: var(--rose);
  border: 1.5px solid var(--surface);
  margin-left: -7px;
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: var(--blush); }
.avatars span:nth-child(3) { background: var(--cream); }

.next {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.next__ico {
  width: 28px; height: 28px;
  border-radius: var(--r);
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  flex: none;
  margin-top: 2px;
}
.next__ico svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; fill: none;
                 stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------- stats -- */

.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--bg); padding: clamp(24px, 3vw, 36px); }
.stat__k { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.stat__l { margin-top: 10px; font-size: .88rem; color: var(--text-2); }

/* ------------------------------------------------------------ features -- */

.split { display: grid; gap: clamp(30px, 4vw, 60px); align-items: center; }
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .split--flip > *:first-child { order: 2; }
}

.list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 2px; }
.list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--text-2);
}
.list li:last-child { border-bottom: 1px solid var(--line); }
.list li b { color: var(--text); font-weight: 550; }
.list svg { width: 16px; height: 16px; margin-top: 4px; flex: none; color: var(--accent);
            stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* steps rail */
.steps { display: grid; gap: 0; counter-reset: s; }
.step {
  display: grid;
  gap: 8px 28px;
  padding: clamp(26px, 3vw, 38px) 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .step { grid-template-columns: 96px minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.step__n { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem;
           letter-spacing: .12em; color: var(--text-3); padding-top: 6px; }
.step p { color: var(--text-2); font-size: .96rem; }

/* ---------------------------------------------------------------- forms -- */

.form { display: grid; gap: 18px; }
.form > .btn { justify-self: start; }
.field { display: grid; gap: 7px; }
.field label { font-size: .8rem; font-weight: 550; letter-spacing: .01em; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-size: .95rem;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field textarea { min-height: 122px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.fine { font-size: .78rem; color: var(--text-3); line-height: 1.55; }
.note {
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--r);
  font-size: .87rem;
  color: var(--text);
  background: var(--surface);
}
.note[hidden] { display: none; }

/* --------------------------------------------------------------- panels -- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.panel__hd {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px clamp(18px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.panel__bd { padding: clamp(18px, 2vw, 26px); }

/* interactive demo */
.demo { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 960px) { .demo { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); } }
.demo__side { background: var(--surface-2); padding: 18px; }
.demo__main { background: var(--surface); padding: clamp(20px, 2.4vw, 30px); }

.proj {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  margin-bottom: 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.proj:hover { background: var(--surface); }
.proj[aria-selected="true"] { background: var(--surface); border-color: var(--accent); }
.proj__t { font-size: .92rem; font-weight: 550; letter-spacing: -0.012em; }
.proj__c { font-size: .76rem; color: var(--text-3); }

.kv { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
      border-radius: var(--r); overflow: hidden; margin-bottom: 24px; }
@media (min-width: 620px) { .kv { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .kv { grid-template-columns: repeat(4, 1fr); } }
.kv > div { background: var(--surface); padding: 14px 16px; }
.kv dt { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); margin-bottom: 7px;
         font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.kv dd { margin: 0; font-size: .98rem; font-weight: 550; letter-spacing: -0.014em; }

.sub { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3);
       font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0 0 12px; }

.todo { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 2px; }
.todo li { border-top: 1px solid var(--line); }
.todo li:last-child { border-bottom: 1px solid var(--line); }
.todo label {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 2px; cursor: pointer; font-size: .93rem;
}
.todo input { appearance: none; width: 16px; height: 16px; flex: none;
  border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.todo input:checked { background: var(--accent); border-color: var(--accent); }
.todo input:checked::after { content: ""; width: 8px; height: 4px; border-left: 1.6px solid var(--accent-ink);
  border-bottom: 1.6px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px); }
.todo input:checked + span { color: var(--text-3); text-decoration: line-through; }
.todo .when { margin-left: auto; font-size: .74rem; color: var(--text-3);
              font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 11px 2px;
            border-top: 1px solid var(--line); font-size: .9rem; }
.files li:last-child { border-bottom: 1px solid var(--line); }
.files svg { width: 15px; height: 15px; flex: none; color: var(--text-3);
             stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.files .sz { margin-left: auto; font-size: .74rem; color: var(--text-3);
             font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ----------------------------------------------------------------- jobs -- */

.job {
  display: grid;
  gap: 6px 28px;
  padding: clamp(22px, 2.6vw, 30px) 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.job:last-of-type { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .job { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) auto; } }
.job__t { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }
.job__m { font-size: .86rem; color: var(--text-2); }
.job__d { font-size: .93rem; color: var(--text-2); }

/* ------------------------------------------------------------ prose/legal */

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: 56px 0 14px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 1.03rem; }
.prose p, .prose li { color: var(--text-2); font-size: .96rem; line-height: 1.72; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 7px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }

.legal { display: grid; gap: clamp(32px, 4vw, 64px); }
@media (min-width: 1000px) { .legal { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); align-items: start; } }
.toc { position: sticky; top: 100px; display: grid; gap: 2px; }
.toc a { padding: 8px 0; font-size: .86rem; color: var(--text-2); text-decoration: none;
         border-top: 1px solid var(--line); transition: color .2s var(--ease); }
.toc a:last-child { border-bottom: 1px solid var(--line); }
.toc a:hover { color: var(--accent); }
@media (max-width: 999px) { .toc { position: static; } }

/* ------------------------------------------------------------------ cta -- */

.cta {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(36px, 5vw, 70px);
  display: grid;
  gap: 26px;
  align-items: center;
}
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }
.cta h2 { max-width: 18ch; }
.cta p { color: var(--text-2); margin-top: 14px; max-width: 46ch; }

/* --------------------------------------------------------------- footer -- */

.ftr {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: clamp(50px, 6vw, 76px) 30px;
}
.ftr__top { display: grid; gap: 40px; }
@media (min-width: 880px) { .ftr__top { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 48px; } }
.ftr__brand .logo { height: 34px; width: auto; }
.ftr__brand p { margin-top: 16px; font-size: .89rem; color: var(--text-2); max-width: 34ch; }
.ftr h4 { font-size: .69rem; letter-spacing: .17em; text-transform: uppercase; color: var(--text-3);
          margin: 0 0 16px; font-weight: 600; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ftr a { font-size: .89rem; color: var(--text-2); text-decoration: none; transition: color .22s var(--ease); }
.ftr a:hover { color: var(--accent); }
.ftr__btm {
  margin-top: clamp(40px, 5vw, 62px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}
.ftr__btm p, .ftr__btm a { font-size: .8rem; color: var(--text-3); }

/* ------------------------------------------------------ product badge --- */

.prod {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}
.prod__co { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.prod__name { font-weight: 600; letter-spacing: -0.022em; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .72rem; letter-spacing: .04em; color: var(--text-2);
}
.chip--live { border-color: var(--accent); color: var(--accent); }

/* solution catalogue entry */
.sol {
  display: grid; gap: clamp(24px, 3vw, 48px);
  padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
@media (min-width: 940px) { .sol { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.sol h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.03em; margin: 14px 0 12px; }
.sol p { color: var(--text-2); }
.sol__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

.sol--soon {
  border-style: dashed;
  background: transparent;
  text-align: center;
  padding-block: clamp(34px, 5vw, 58px);
  display: block;
}
.sol--soon h3 { font-size: 1.2rem; margin-top: 0; }
.sol--soon p { max-width: 48ch; margin-inline: auto; font-size: .93rem; }

/* --------------------------------------------------------------- tiers -- */

/* 196px keeps all five plans on one row at the 1240px container width */
.tiers {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  align-items: stretch;
}

.tier {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.tier:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tier--pick { border-color: var(--accent); }

.tier__flag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
}
/* two-line min-height: "Quick Established" wraps in a narrow column, and every
   card's price must still land on the same line */
.tier__name { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.15; min-height: 2.3em; }
/* min-height reserves three lines so every card's price sits on the same line */
.tier__best { font-size: .8rem; color: var(--text-3); margin-top: 5px; min-height: 4.3em;
  line-height: 1.4; }
.tier__price {
  display: flex; align-items: baseline; gap: 4px;
  margin: 18px 0 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.tier__price b { font-size: 2.05rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.tier__price span { font-size: .82rem; color: var(--text-3); }
.tier__limits { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.tier__limits li { display: flex; gap: 10px; align-items: flex-start; font-size: .87rem;
  color: var(--text-2); line-height: 1.45; }
.tier__limits svg { width: 15px; height: 15px; margin-top: 2px; flex: none; color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tier__limits b { color: var(--text); font-weight: 600; }
.tier .btn { margin-top: 22px; justify-content: center; }
.tier__spacer { flex: 1; }

.incl { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .incl { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .incl { grid-template-columns: repeat(3, 1fr); } }
.incl li { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem;
  color: var(--text-2); }
.incl svg { width: 16px; height: 16px; margin-top: 3px; flex: none; color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.incl b { color: var(--text); font-weight: 550; }

/* ----------------------------------------------------- contact cards --- */

.contact__list { display: grid; gap: 10px; margin-top: 26px; }

.contact__card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.contact__card:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact__card .ico { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.contact__card b {
  display: block;
  font-size: .96rem; font-weight: 600; letter-spacing: -0.014em;
  color: var(--text);
  word-break: break-word;
}
.contact__card span {
  display: block; margin-top: 4px;
  font-size: .85rem; color: var(--text-2); line-height: 1.5;
}

/* ------------------------------------------------------ compare table --- */

.cmp__scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  /* Without this the wide table still pushes the PAGE sideways on a phone,
     even though the box itself scrolls correctly. */
  contain: paint;
}

.cmp {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .89rem;
}
.cmp th, .cmp td { text-align: left; padding: 13px 16px; vertical-align: middle; }
.cmp thead th { vertical-align: bottom; padding-top: 24px; padding-bottom: 18px; }
.cmp tbody tr { border-top: 1px solid var(--line); }

.cmp th[scope="row"] { font-weight: 400; color: var(--text-2); width: 34%; }
.cmp td { color: var(--text); text-align: center; width: 13.2%; }

.cmp__plan { display: block; font-weight: 600; letter-spacing: -0.018em;
  font-size: .95rem; margin-bottom: 6px; }
.cmp__cost { display: block; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.035em; }
.cmp__cost i { font-style: normal; font-size: .72rem; font-weight: 400; color: var(--text-3); }
.cmp thead th:not(:first-child) { text-align: center; }

.cmp__group th {
  background: var(--bg-2);
  font-size: .68rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600;
  padding-top: 15px; padding-bottom: 15px;
}
.cmp__group + tr { border-top: 0; }

.cmp__yes {
  width: 16px; height: 16px; color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* the recommended column, tinted the whole way down */
.cmp--pick { background: var(--surface-2); }
.cmp thead .cmp--pick { border-radius: var(--r-lg) var(--r-lg) 0 0; }

.cmp__cta td { padding-top: 20px; padding-bottom: 24px; }
.cmp__cta .btn { width: 100%; justify-content: center; padding-inline: 10px; }

/* --------------------------------------------------- demo app replica --- */

.dapp {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.dapp__bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.dapp__co { display: flex; align-items: baseline; gap: 9px; }
.dapp__co b { font-size: .94rem; letter-spacing: -0.015em; }
.dapp__as { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.dapp__as .mono { flex: none; }
.dapp__as select {
  padding: 7px 30px 7px 11px; font-size: .85rem;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.dapp__as select:focus { outline: none; border-color: var(--accent); }

.dapp__body { display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.dapp__side {
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
}
.dapp__main { padding: 26px; min-width: 0; }

/* ---- scale-to-fit stage -------------------------------------------------
   The demo always renders at desktop width and is scaled down to fit the
   viewport, so visitors see the whole composition instead of a stacked
   mobile version. The wrapper's height is set from JS to match.          */

.dapp-fit { position: relative; width: 100%; }

.dapp-stage {
  width: 1080px;
  transform-origin: top left;
}

/* the live demo is the real app in a same-origin iframe */
iframe.dapp-stage {
  height: 940px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  display: block;
  box-shadow: var(--shadow);
}

/* ---- demo gate / session box ---- */

.stagebox { position: relative; }

.stagebox__gate,
.stagebox__over {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(30px, 5vw, 60px);
  text-align: center;
}
.stagebox__gate h2 { margin: 18px 0 14px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.stagebox__gate > p,
.stagebox__over p {
  color: var(--text-2);
  max-width: 56ch;
  margin: 0 auto;
  font-size: .96rem;
}
.stagebox__over h3 { margin-bottom: 10px; }
.stagebox__over .btn,
.stagebox__gate .btn { margin-top: 26px; }

.gate__facts {
  list-style: none;
  margin: 28px auto 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 34rem;
  text-align: left;
}
.gate__facts li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: .9rem; color: var(--text-2);
}
.gate__facts svg {
  width: 15px; height: 15px; margin-top: 3px; flex: none; color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.stagebox__bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.stagebox__time { font-size: .84rem; color: var(--text-2); }
.stagebox__time b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text); font-weight: 600;
}
.stagebox__bar .btn--quiet { margin-left: auto; }

/* Media queries answer to the VIEWPORT, not to the 1080px stage, so anything
   responsive inside the demo has to be pinned to its desktop layout — it
   would otherwise still collapse on a phone. */
.dapp-stage .kv { grid-template-columns: repeat(4, 1fr); }
.dapp-stage .dapp__bar { flex-wrap: nowrap; }
.dapp-stage .dapp__as { flex-wrap: nowrap; }

.dapp-hint {
  display: none;
  margin-top: 14px;
  font-size: .82rem;
  color: var(--text-3);
}
@media (max-width: 1080px) { .dapp-hint { display: block; } }
.dapp__side .sub { padding: 0 8px; }
.dapp__note { padding: 12px 8px 0; font-size: .79rem; color: var(--text-3); line-height: 1.5;
  border-top: 1px solid var(--line); margin-top: 12px; }

.collab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px 5px 5px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .82rem; color: var(--text-2);
}
.collabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ava-sm {
  width: 23px; height: 23px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  font-size: .6rem; font-weight: 600;
  background: var(--rose); color: var(--plum);
}
.ava-sm.p { background: var(--blush); }
.ava-sm.c { background: var(--cream); }

.locked {
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  padding: 26px 22px;
  text-align: center;
  font-size: .89rem;
  color: var(--text-3);
  line-height: 1.55;
}
.locked b { color: var(--text-2); }

/* --------------------------------------------------------------- modal -- */

.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(20, 12, 17, .5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.modal[hidden] { display: none; }
.modal__box {
  width: 100%; max-width: 470px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  padding: clamp(24px, 3.4vw, 34px);
  max-height: 88dvh; overflow-y: auto;
  position: relative;
}
.modal__box h3 { font-size: 1.3rem; margin-bottom: 8px; padding-right: 30px; }
.modal__box > p.fine { margin-bottom: 22px; }
.modal__x {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 0; background: transparent; cursor: pointer; color: var(--text-3);
  border-radius: var(--r);
}
.modal__x:hover { color: var(--accent); }
.modal__x svg { width: 15px; height: 15px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; }

/* ============================================================ chat bot === */
/* Deliberately pink-on-black in BOTH themes so the launcher reads the same
   way on cream and on plum. */

.bot {
  --bot-ink:   #150E13;
  --bot-pink:  #F564A9;
  position: fixed;
  right: clamp(14px, 2.4vw, 26px);
  bottom: clamp(14px, 2.4vw, 26px);
  z-index: 150;
}

.bot__launch {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(245, 100, 169, .34);
  background: var(--bot-ink);
  color: var(--bot-pink);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(21, 14, 19, .2), 0 16px 32px -14px rgba(21, 14, 19, .5);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.bot__launch:hover { transform: translateY(-2px); border-color: var(--bot-pink); }
.bot__launch:active { transform: translateY(0); }

/* On the plum-black dark theme a black disc vanishes, so invert it: the pink
   fill also matches the primary buttons in dark mode. */
[data-theme="dark"] .bot__launch {
  background: var(--bot-pink);
  color: var(--bot-ink);
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4), 0 16px 34px -14px rgba(0, 0, 0, .75);
}
[data-theme="dark"] .bot__launch:hover { border-color: rgba(250, 227, 198, .5); }
.bot__launch svg {
  width: 25px; height: 25px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.bot__launch .x { display: none; }
.bot.is-open .bot__launch .bubble { display: none; }
.bot.is-open .bot__launch .x { display: block; }

/* panel ------------------------------------------------------------------ */

.bot__panel {
  position: absolute;
  right: 0; bottom: 70px;
  width: min(384px, calc(100vw - 28px));
  height: min(614px, calc(100dvh - 108px));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(21, 14, 19, .16), 0 32px 60px -24px rgba(21, 14, 19, .48);
  opacity: 0;
  transform: translateY(10px) scale(.99);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .26s var(--ease), transform .26s var(--ease);
}
.bot.is-open .bot__panel { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 460px) {
  .bot { right: 12px; bottom: 12px; }
  .bot__panel {
    position: fixed;
    right: 10px; left: 10px; bottom: 78px;
    width: auto;
    height: min(70dvh, 520px);
  }
}

.bot__hd {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 17px;
  background: var(--bot-ink);
  color: #FAE3C6;
  flex: none;
}
.bot__hd .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: var(--bot-pink); color: var(--bot-ink);
}
.bot__hd .avatar svg { width: 16px; height: 16px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bot__hd b { font-size: .92rem; font-weight: 600; letter-spacing: -0.012em; display: block; }
.bot__hd span { font-size: .72rem; color: rgba(250, 227, 198, .62); display: flex;
  align-items: center; gap: 6px; }
.bot__hd span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--bot-pink);
}
.bot__close {
  margin-left: auto; width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 0; background: transparent; cursor: pointer;
  color: rgba(250, 227, 198, .6); border-radius: 3px;
}
.bot__close:hover { color: #FAE3C6; }
.bot__close svg { width: 14px; height: 14px; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; }

/* log -------------------------------------------------------------------- */

.bot__log {
  flex: 1;
  min-height: 180px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px 6px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot__msg {
  max-width: 88%;
  padding: 11px 14px;
  font-size: .89rem;
  line-height: 1.55;
  border-radius: 4px;
}
.bot__msg--bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}
.bot__msg--me {
  align-self: flex-end;
  background: var(--bot-ink);
  color: #FAE3C6;
  border: 1px solid transparent;
}
.bot__msg p { margin: 0 0 9px; }
.bot__msg p:last-child { margin-bottom: 0; }
.bot__msg b { font-weight: 600; }
.bot__msg a { color: var(--accent); text-underline-offset: 2px; }
.bot__msg ul { margin: 6px 0 0; padding-left: 17px; display: grid; gap: 5px; }
.bot__msg li { line-height: 1.5; }
.bot__msg code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .84em; padding: 1px 5px; border-radius: 3px;
  background: var(--bg-2); border: 1px solid var(--line);
}

.bot__typing { display: flex; gap: 4px; align-items: center; padding: 13px 14px; }
.bot__typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-3);
  animation: botdot 1.1s infinite ease-in-out;
}
.bot__typing i:nth-child(2) { animation-delay: .16s; }
.bot__typing i:nth-child(3) { animation-delay: .32s; }
@keyframes botdot {
  0%, 60%, 100% { opacity: .28; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* chips ------------------------------------------------------------------ */

.bot__chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 4px 16px 12px;
  background: var(--bg);
  flex: none;
}
.bot__chip {
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: .8rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.bot__chip:hover { border-color: var(--accent); color: var(--accent); }

/* composer --------------------------------------------------------------- */

.bot__form {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  flex: none;
}
.bot__form textarea {
  flex: 1;
  min-height: 40px; max-height: 96px;
  padding: 10px 12px;
  font-size: .88rem;
  line-height: 1.4;
  resize: none;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-family: inherit;
}
.bot__form textarea:focus { outline: none; border-color: var(--accent); }
.bot__form textarea::placeholder { color: var(--text-3); }
.bot__send {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 4px;
  background: var(--bot-ink);
  color: var(--bot-pink);
  cursor: pointer;
  transition: opacity .2s var(--ease);
}
.bot__send:hover { opacity: .86; }
.bot__send svg { width: 16px; height: 16px; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.bot__foot {
  padding: 0 16px 11px;
  font-size: .68rem;
  color: var(--text-3);
  background: var(--surface);
  flex: none;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .bot__panel { transition: none; }
  .bot__typing i { animation: none; opacity: .5; }
}

@media print { .bot { display: none; } }

/* ----------------------------------------------------------- animation -- */

[data-rise] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-rise].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-rise] { opacity: 1; transform: none; }
}

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r); text-decoration: none; font-size: .88rem;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }
