/* ==========================================================================
   flowdesk — concept landing page by InY
   Plain CSS, no build step.
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #1a1a1d;
  --surface-3: #212125;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f4;
  --muted: #9b9ba3;
  --faint: #6b6b73;
  --accent: #ff5a1f;
  --accent-ink: #0a0a0b;
  --accent-soft: rgba(255, 90, 31, 0.12);
  --accent-line: rgba(255, 90, 31, 0.35);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1200px;
  --gutter: 24px;
  --nav-h: 64px;

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  /* Instrument Serif has Latin glyphs only; Korean falls back to a system Myeongjo */
  --font-serif: "Instrument Serif", "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", "Batang", serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body { overflow-x: clip; }
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
kbd { font-family: var(--font-sans); }

svg {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-synthesis: none;          /* never fake-italicise the Korean fallback */
  letter-spacing: -0.01em;
}

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn .icon { width: 16px; height: 16px; stroke-width: 2; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 20px -8px rgba(255, 90, 31, 0.6);
}
.btn--primary:hover { background: #ff6c36; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); }

.btn--sm { --h: 36px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 52px; padding: 0 26px; font-size: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(10, 10, 11, 0.85); }

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.035em;
}
.brand__mark { width: 26px; height: 26px; }

.nav__panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links { display: flex; gap: 4px; }
.nav__links a,
.nav__login {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover,
.nav__login:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav__actions { display: flex; align-items: center; gap: 8px; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  margin-right: -8px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon--close { display: none; }
.nav__toggle[aria-expanded="true"] .icon--open { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }
.nav__toggle:hover { background: rgba(255, 255, 255, 0.05); }

/* ---------- Pill / eyebrow ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}
.pill__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 14px; height: 1px;
  background: currentColor;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(64px, 10vw, 112px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(255, 90, 31, 0.13), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 72px 72px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 10%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 55% at 50% 10%, #000 30%, transparent 75%);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(44px, 7.4vw, 96px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.hero__title .serif {
  color: var(--accent);
  font-size: 1.04em;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.hero__sub {
  max-width: 600px;
  margin-top: 24px;
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.hero__note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--faint);
}

.hero__shot {
  position: relative;
  margin-top: clamp(56px, 7vw, 88px);
  padding-bottom: 8px;
}
.hero__shot::before {
  /* soft accent rim light behind the window */
  content: "";
  position: absolute;
  left: 10%; right: 10%; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 31, 0.7), transparent);
  z-index: 2;
}

/* ---------- App screenshot (shared UI atoms) ---------- */
.app,
.doc {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 20px 120px -40px rgba(255, 90, 31, 0.18);
  user-select: none;
}
.app {
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
:where(.app, .doc) p { margin: 0; }
.app svg, .doc svg { width: 14px; height: 14px; }

.app__bar {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: #111113;
}
.app__dots { display: flex; gap: 7px; width: 80px; }
.app__dots i { width: 11px; height: 11px; border-radius: 50%; background: #2c2c31; }
.app__url {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 24px;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--faint);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app__url svg { width: 12px; height: 12px; }
.app__bar-spacer { width: 80px; }

.app__body {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr) 296px;
  height: 548px;
}

.av {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  background: #3a3a40;
}
.av--1 { background: #6b3a26; color: #ffd9c9; }
.av--2 { background: #3f3f47; }
.av--3 { background: #2f3a40; color: #d8e3e8; }
.av--4 { background: #232327; color: var(--muted); font-size: 9.5px; }
.av-stack { display: inline-flex; }
.av-stack .av { box-shadow: 0 0 0 2px var(--surface); }
.av-stack .av + .av { margin-left: -6px; }

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.mini-btn svg { width: 12px; height: 12px; stroke-width: 2; }
.mini-btn--accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }

/* Sidebar */
.sb {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  background: #111113;
  border-right: 1px solid var(--border);
  color: var(--muted);
  min-width: 0;
}
.sb__ws {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 6px 10px;
  color: var(--text);
  font-weight: 600;
}
.sb__ws-logo {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  font-size: 12px;
}
.sb__ws-name { flex: 1; white-space: nowrap; }
.sb__ws-chev { color: var(--faint); }
.sb__search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  margin-bottom: 10px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--faint);
}
.sb__search span { flex: 1; }
.sb__search kbd {
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  color: var(--faint);
}
.sb__list { display: flex; flex-direction: column; gap: 1px; }
.sb__list li {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  white-space: nowrap;
}
.sb__list li.is-active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.sb__list li.is-unread { color: var(--text); font-weight: 600; }
.sb__muted { color: var(--faint); }
.sb__badge {
  margin-left: auto;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10.5px;
  font-weight: 700;
}
.sb__dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.sb__label {
  margin: 14px 8px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.sb__sq {
  width: 10px; height: 10px;
  border-radius: 3px;
  border: 1.5px solid var(--faint);
  flex-shrink: 0;
}
.sb__sq--a { border-color: var(--accent); background: var(--accent-soft); }
.sb__me {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 6px 2px;
  border-top: 1px solid var(--border);
}
.sb__me .av { width: 26px; height: 26px; position: relative; }
.sb__me .av::after {
  content: "";
  position: absolute;
  right: -1px; bottom: -1px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 0 2px #111113;
}
.sb__me-name { display: flex; flex-direction: column; color: var(--text); font-weight: 500; line-height: 1.25; }
.sb__me-name small { font-size: 11px; color: var(--faint); font-weight: 400; }

/* Board */
.board {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
}
.board__head {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.board__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.board__views { display: flex; gap: 2px; color: var(--muted); }
.board__views span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  white-space: nowrap;
}
.board__views .is-active { background: var(--surface-3); color: var(--text); }
.board__people { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.board__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
}
.board__tools-sp { flex: 1; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; }

.cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 16px 16px;
  min-height: 0;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
}
.col__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 4px;
  font-weight: 600;
  font-size: 12.5px;
}
.col__count { margin-left: auto; color: var(--faint); font-weight: 500; }
.st {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px dashed var(--faint);
  display: grid; place-items: center;
}
.st--doing { border: 1.5px solid var(--accent); background: conic-gradient(var(--accent) 0 50%, transparent 50% 100%); }
.st--review { border: 1.5px solid var(--muted); background: conic-gradient(var(--muted) 0 75%, transparent 75% 100%); }
.st--done { border: 0; background: var(--muted); color: var(--bg); }
.st--done svg { width: 8px; height: 8px; stroke-width: 3.5; }

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 11px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset, 0 4px 10px -6px rgba(0, 0, 0, 0.6);
}
.card--focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 12px 24px -12px rgba(0, 0, 0, 0.8);
  transform: rotate(-1.2deg) translateY(-2px);
}
.card--done { opacity: 0.6; }
.card--done .card__title { text-decoration: line-through; text-decoration-color: var(--faint); }
.card__tags { display: flex; gap: 5px; }
.card__title { font-weight: 500; font-size: 13px; line-height: 1.4; }
.card__meta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 11.5px;
}
.card__meta span:not(.av) { display: inline-flex; align-items: center; gap: 4px; }
.card__meta svg { width: 12px; height: 12px; }
.card__meta .av { margin-left: auto; width: 20px; height: 20px; font-size: 10px; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}
.tag--hot { color: var(--accent); background: var(--accent-soft); }

.bar {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.bar--lg { height: 6px; border-radius: 3px; margin-top: 4px; }

.col__more { padding: 4px; color: var(--faint); font-size: 12px; }

/* Chat */
.chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #121214;
  border-left: 1px solid var(--border);
}
.chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.chat__ch { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.chat__ch svg { color: var(--faint); }
.chat__members { display: flex; align-items: center; gap: 5px; color: var(--faint); font-size: 12px; }
.chat__stream {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 16px;
  overflow: hidden;
}
.chat__day {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 11px;
}
.chat__day::before,
.chat__day::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg .av { width: 28px; height: 28px; font-size: 11.5px; border-radius: 8px; }
.msg__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; color: #d6d6d4; }
.msg__who { font-weight: 600; color: var(--text); font-size: 12.5px; }
.msg__who time { margin-left: 4px; font-weight: 400; color: var(--faint); font-size: 11px; }
.msg__ref {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background: var(--surface-2);
}
.msg__ref svg { color: var(--accent); }
.msg__ref span { display: flex; flex-direction: column; line-height: 1.35; }
.msg__ref b { font-weight: 600; font-size: 12px; color: var(--text); }
.msg__ref small { color: var(--faint); font-size: 11px; }
.mention { color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 0 3px; }

.chat__event {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11.5px;
}
.chat__event svg { width: 12px; height: 12px; color: var(--accent); }
.chat__typing { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 11.5px; margin-top: auto; }
.typing { display: inline-flex; gap: 3px; }
.typing i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: none; }
  30% { opacity: 1; transform: translateY(-2px); }
}

.chat__composer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 0 6px 0 12px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.chat__input { flex: 1; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__tools { display: flex; align-items: center; gap: 8px; color: var(--faint); }
.chat__send {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
}
.chat__send svg { width: 13px; height: 13px; stroke-width: 2; }

/* Floating toast over the screenshot */
.float-toast {
  position: absolute;
  left: calc(var(--gutter) - 28px);
  bottom: 7%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(26, 26, 29, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.9);
  font-size: 13px;
  line-height: 1.4;
}
.float-toast__icon {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}
.float-toast__icon svg { width: 16px; height: 16px; }
.float-toast b { display: block; font-weight: 600; }
.float-toast small { color: var(--muted); font-size: 12px; }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(88px, 11vw, 140px);
}
.section--tint {
  background: linear-gradient(to bottom, #0d0d0f, #0b0b0c);
  border-block: 1px solid var(--border);
}
.section__head {
  max-width: 680px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section__head--left { text-align: left; align-items: flex-start; margin-inline: 0; }
.section__title {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}
.section__title .serif { font-weight: 400; font-size: 1.05em; }
.section__sub {
  margin-top: 20px;
  text-wrap: pretty;
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
  gap: 1px;
}
.feature {
  position: relative;
  padding: 36px 32px 40px;
  background: var(--bg);
  transition: background-color 0.3s;
}
.feature:hover { background: #0f0f11; }
.feature__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 28px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature:hover .feature__icon { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.feature h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.025em; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.step:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.step__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0;
}
.step__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
}
.step__icon svg { width: 20px; height: 20px; }
.step h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.025em; margin-bottom: 10px; }
.step > p { color: var(--muted); font-size: 15px; line-height: 1.7; }

.step__ui {
  margin-top: 28px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  min-height: 132px;
  justify-content: center;
}
.step__ui svg { width: 13px; height: 13px; }
.mini-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 36px;
  padding: 0 5px 0 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  min-width: 0;
}
.mini-field > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mini-line { flex: 1; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-ok { color: var(--accent); display: grid; }
.mini-ok svg { stroke-width: 2.4; }
.mini-muted { color: var(--faint); font-size: 12px; }
.mini-file {
  display: grid; place-items: center;
  width: 34px; height: 22px;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.step__ui--links { flex-direction: row; align-items: center; justify-content: center; gap: 0; }
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  white-space: nowrap;
  font-weight: 500;
}
.link-chip--accent { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.link-line {
  flex: 1;
  min-width: 10px;
  max-width: 36px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--muted) 0 3px, transparent 3px 6px);
}

/* ---------- Split / Doc UI ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.split .section__sub { max-width: 480px; }

.checks { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.checks svg {
  width: 20px; height: 20px;
  padding: 3px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  stroke-width: 2.4;
}
.checks b { color: var(--text); font-weight: 600; }

.doc { background: var(--surface); }

.doc__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: #111113;
  color: var(--muted);
}
.doc__crumb { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.doc__sep { color: var(--faint); }
.doc__status { display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.doc__page { position: relative; padding: 32px 40px 36px; padding-right: 200px; }
.doc__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 14px !important;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--accent);
}
.doc__icon svg { width: 20px; height: 20px; }
.doc__title { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; }
.doc__meta { margin-top: 6px !important; color: var(--faint); font-size: 12px; }
.doc__h { margin-top: 24px !important; margin-bottom: 8px !important; font-weight: 650; font-size: 14.5px; }
.doc__p { color: #cfcfcd; font-size: 13.5px; line-height: 1.65; }
.doc mark {
  background: linear-gradient(transparent 55%, rgba(255, 90, 31, 0.28) 55%);
  color: var(--text);
  padding: 0 1px;
}
.doc__tasks { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.dtask {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--surface-2);
}
.dtask + .dtask { border-top: 1px solid var(--border); }
.dtask__box {
  display: grid; place-items: center;
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--faint);
}
.dtask.is-done .dtask__box { background: var(--muted); border-color: var(--muted); color: var(--bg); }
.dtask__box svg { width: 10px; height: 10px; stroke-width: 3.2; }
.dtask__t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtask.is-done .dtask__t { color: var(--faint); text-decoration: line-through; }
.dtask .av { width: 20px; height: 20px; font-size: 10px; }
.dpill {
  height: 20px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  white-space: nowrap;
}
.dpill--doing { background: var(--accent-soft); color: var(--accent); }
.dpill--done { color: var(--faint); }

.doc__p--typing { margin-top: 16px !important; color: var(--text); display: flex; align-items: center; }
.caret {
  display: inline-block;
  width: 1.5px; height: 16px;
  margin-left: 1px;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.slash {
  width: 236px;
  margin-top: 8px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-3);
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.9);
}
.slash__label { padding: 4px 8px 6px; font-size: 11px; color: var(--faint); font-weight: 600; }
.slash__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--muted);
}
.slash__item span { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.slash__item small { color: var(--faint); font-size: 11px; }
.slash__item.is-active { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.slash__item.is-active svg { color: var(--accent); }
.slash__item kbd {
  font-size: 11px; color: var(--faint);
  padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border-strong);
}

.doc__comment {
  position: absolute;
  top: 128px;
  right: 18px;
  width: 196px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9);
  font-size: 12.5px;
}
.doc__comment::before {
  content: "";
  position: absolute;
  left: -14px; top: 56px;
  width: 14px; height: 1px;
  background: var(--accent-line);
}
.doc__comment .msg { gap: 8px; }
.doc__comment .msg .av { width: 24px; height: 24px; border-radius: 7px; font-size: 10.5px; }
.doc__reply {
  margin-top: 10px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--faint);
  font-size: 12px;
}

/* ---------- Tabs / use cases ---------- */
.tabs__list {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 40px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.tabs__list [role="tab"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s, background-color 0.25s;
}
.tabs__list [role="tab"] svg { width: 17px; height: 17px; }
.tabs__list [role="tab"]:hover { color: var(--text); }
.tabs__list [role="tab"][aria-selected="true"] {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.tabs__list [role="tab"][aria-selected="true"] svg { color: var(--accent); }

.tabs__panel { border-radius: var(--radius-lg); }
.tabs__panel:focus-visible { outline-offset: 6px; }
.tabs__panel.is-entering .usecase { animation: panelIn 0.45s var(--ease); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.usecase {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.usecase__text h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.3; }
.usecase__text > p { margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.usecase .checks { margin-top: 24px; }

.usecase__card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.usecase__label { padding: 2px 4px 6px; font-size: 12px; font-weight: 600; color: var(--faint); letter-spacing: 0.02em; }
.tpl {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.25s, background-color 0.25s;
}
.tpl:hover { border-color: var(--border-strong); background: var(--surface-2); }
.tpl__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--text);
}
.tpl__icon svg { width: 18px; height: 18px; }
.tpl__t { flex: 1; display: flex; flex-direction: column; font-weight: 600; font-size: 14.5px; line-height: 1.4; min-width: 0; }
.tpl__t small { font-weight: 400; font-size: 12.5px; color: var(--faint); }
.tpl__go { width: 16px; height: 16px; color: var(--faint); transition: transform 0.25s var(--ease), color 0.25s; }
.tpl:hover .tpl__go { color: var(--accent); transform: translateX(2px); }
.rule {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed var(--accent-line);
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.rule svg { width: 16px; height: 16px; color: var(--accent); margin-top: 2px; }
.rule b { color: var(--text); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq .section__head { position: sticky; top: calc(var(--nav-h) + 40px); margin-bottom: 0; }
.faq__list { border-top: 1px solid var(--border); }
.qa { border-bottom: 1px solid var(--border); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: #fff; }
.qa summary svg {
  width: 20px; height: 20px;
  padding: 2px;
  color: var(--muted);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), color 0.2s;
}
.qa[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.qa__a { padding: 0 48px 26px 4px; }
.qa__a p { color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.qa[open] .qa__a { animation: faqIn 0.35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(88px, 11vw, 140px); }
.cta-band__box {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 64px);
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(80% 120% at 50% 120%, rgba(255, 90, 31, 0.22), transparent 60%),
    var(--surface);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-band__box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(60% 80% at 50% 100%, #000, transparent 80%);
  mask-image: radial-gradient(60% 80% at 50% 100%, #000, transparent 80%);
  pointer-events: none;
}
.cta-band__box > * { position: relative; }
.cta-band__en { font-size: clamp(20px, 2.2vw, 26px); color: var(--muted); letter-spacing: -0.01em; }
.cta-band__en .serif { color: var(--accent); }
.cta-band__title {
  margin-top: 12px;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.cta-band__title, .cta-band__sub { text-wrap: balance; }
.cta-band__sub { margin-top: 18px; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); max-width: 520px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 36px; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand p { margin-top: 14px; color: var(--muted); font-size: 14.5px; }
.footer__nav { display: flex; gap: clamp(40px, 6vw, 88px); flex-wrap: wrap; }
.footer__h { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { color: var(--muted); font-size: 14.5px; transition: color 0.2s; }
.footer__nav a:hover { color: var(--text); }

.footer__notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 48px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.footer__notice svg { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  color: var(--faint);
  font-size: 13px;
}

/* ---------- Modal ---------- */
.modal {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
  overflow: auto;
}
.modal::backdrop { background: rgba(5, 5, 6, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn 0.35s var(--ease); }
.modal[open]::backdrop { animation: fadeIn 0.3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__inner { position: relative; padding: 36px 32px 32px; }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}
.modal__close:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.modal__close svg { width: 18px; height: 18px; }
.modal__icon svg { width: 40px; height: 40px; }
.modal__title { margin-top: 20px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.modal__desc { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.modal__actions .btn { flex: 1 1 auto; }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
.br-lg { display: inline; }

@media (max-width: 1180px) {
  .app__body { grid-template-columns: 200px minmax(0, 1fr) 272px; }
  .hide-md { display: none !important; }
  .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .float-toast { left: 8px; }
}

@media (max-width: 1024px) {
  .app__body { grid-template-columns: 196px minmax(0, 1fr); height: 540px; }
  .chat { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; }
  .split__text { max-width: 640px; }
  .usecase { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq .section__head { position: static; }
}

@media (max-width: 860px) {
  :root { --nav-h: 60px; }
  .nav__toggle { display: inline-flex; }

  .nav__panel {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .site-header.is-open .nav__panel {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }
  .site-header.is-open { background: rgba(10, 10, 11, 0.97); border-bottom-color: var(--border); }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links li + li { border-top: 1px solid var(--border); }
  .nav__links a { display: block; padding: 16px 4px; font-size: 17px; color: var(--text); border-radius: 0; }
  .nav__links a:hover { background: none; color: var(--accent); }
  .nav__actions { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .nav__actions .btn { --h: 48px; font-size: 16px; }
  .nav__login { text-align: center; padding: 12px; }

  .app__body { grid-template-columns: minmax(0, 1fr); height: 500px; }
  .sb { display: none; }
  .float-toast { display: none; }
  .br-lg { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 15.5px; }

  .hero { padding-top: 56px; }
  .hero__title { margin-top: 22px; font-size: clamp(40px, 11.5vw, 56px); }
  .hero__cta { width: 100%; flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .pill { font-size: 12.5px; }

  .app, .doc { border-radius: 14px; font-size: 12px; }
  .app__bar { height: 34px; padding: 0 10px; }
  .app__dots { width: auto; gap: 5px; }
  .app__dots i { width: 9px; height: 9px; }
  .app__url { margin-left: 10px; font-size: 11px; justify-content: flex-start; }
  .app__bar-spacer { display: none; }
  .app__body { height: 440px; }
  .board__head { height: 46px; padding: 0 12px; gap: 10px; }
  .board__crumb { display: none; }
  .board__people .mini-btn { display: none; }
  .board__tools { padding: 8px 12px; }
  .hide-sm { display: none !important; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 2px 10px 12px; gap: 8px; }
  .col { padding: 6px; }
  .card { padding: 9px; }
  .card--focus { transform: none; }

  .section__title { font-size: clamp(28px, 8vw, 36px); }

  .features { grid-template-columns: 1fr; }
  .feature { padding: 28px 24px 30px; }
  .feature__icon { margin-bottom: 20px; }

  .step { padding: 24px 20px; }

  .doc__bar { padding: 0 12px; }
  .doc__status { display: none; }
  .doc__page { padding: 24px 18px 22px; }
  .doc__title { font-size: 18px; }
  .doc__comment { position: static; width: auto; margin: 0 18px 18px; }
  .doc__comment::before { display: none; }
  .slash { width: 100%; max-width: 260px; }

  .tabs__list { width: 100%; }
  .tabs__list [role="tab"] { flex: 1; justify-content: center; padding: 0 8px; font-size: 14px; height: 40px; gap: 6px; }
  .tabs__list [role="tab"] svg { display: none; }
  .usecase { padding: 24px 20px; }
  .usecase__card { padding: 12px; }

  .qa summary { font-size: 16px; padding: 20px 2px; gap: 16px; }
  .qa__a { padding: 0 8px 22px 2px; }

  .cta-band__box { border-radius: 20px; }
  .footer__notice { padding: 14px; }
  .modal__inner { padding: 32px 22px 24px; }
  .modal__actions { flex-direction: column; }
}

@media (min-width: 861px) {
  .doc__page { padding-right: 236px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .card--focus { transform: none; }
}
