/* =========================================================
   HubWoven — brand site
   Linen, ink, natural indigo, one saffron thread.
   ========================================================= */

:root {
  --ink: #14110c;
  --ink-soft: #38322a;
  --muted: #6d6455;
  --linen: #f7f1e6;
  --linen-deep: #efe6d6;
  --paper: #fffdf8;
  --indigo: #22314f;
  --indigo-deep: #151d30;
  --saffron: #d89b3f;
  --madder: #a3452f;
  --sage: #4f7a5b;
  --line: rgba(20, 17, 12, 0.1);
  --line-soft: rgba(20, 17, 12, 0.06);
  --shadow-sm: 0 1px 2px rgba(20, 17, 12, 0.06), 0 8px 20px -12px rgba(20, 17, 12, 0.18);
  --shadow-lg: 0 2px 4px rgba(20, 17, 12, 0.05), 0 40px 80px -40px rgba(20, 17, 12, 0.35);
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.08; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
button { font: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--indigo); color: var(--linen); padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--indigo); color: #fdf9f0;
  border: 1px solid var(--indigo);
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 10px 24px -14px rgba(34,49,79,.9);
  cursor: pointer;
}
.btn svg { width: 15px; height: 15px; }
.btn:hover { transform: translateY(-1px); background: #2c3d61; }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 15px 28px; font-size: 16.5px; }
.btn-sm { padding: 9px 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-outline {
  background: transparent; color: var(--ink); border-color: rgba(20,17,12,.22);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(20,17,12,.04); border-color: rgba(20,17,12,.34); }

/* ── Header ──────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 230, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-head.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(20,17,12,.5); }
.head-inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--indigo); }
.brand-mark { width: 30px; height: 30px; }
.brand-word {
  font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.03em;
  color: var(--ink);
}
.head-nav { display: flex; gap: 26px; margin-left: 18px; }
.head-nav a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 0; transition: color .16s ease;
}
.head-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--saffron); transition: right .22s ease;
}
.head-nav a:hover { color: var(--ink); }
.head-nav a:hover::after { right: 0; }

.head-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.ghost-link { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.ghost-link:hover { color: var(--ink); }
.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  padding: 0; position: relative;
}
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 23px; }
.site-head.nav-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-head.nav-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ── Weave texture ───────────────────────────────────── */
.weave-field {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(34,49,79,.05) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(34,49,79,.035) 0 1px, transparent 1px 46px);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 78%);
}
.weave-field.light {
  background-image:
    repeating-linear-gradient(90deg, rgba(247,241,230,.08) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, rgba(247,241,230,.055) 0 1px, transparent 1px 52px);
  mask-image: radial-gradient(100% 100% at 50% 50%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(100% 100% at 50% 50%, #000 10%, transparent 80%);
}

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 26px; overflow: hidden; }
.hero-inner { position: relative; text-align: center; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(34,49,79,.16);
  background: rgba(255,253,248,.7);
  color: var(--indigo);
  padding: 7px 15px 7px 13px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em;
  box-shadow: var(--shadow-sm);
}
.eyebrow-pill svg { width: 14px; height: 14px; opacity: .75; }
.pill-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--saffron);
  box-shadow: 0 0 0 4px rgba(216,155,63,.18);
}

h1 {
  margin: 26px auto 0;
  font-size: clamp(2.9rem, 6.6vw, 5.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
  max-width: 16ch;
}
.woven-word {
  display: inline-block;
  background: linear-gradient(96deg, var(--indigo) 8%, #3d5b8c 44%, var(--saffron) 96%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-style: italic;
  padding-right: .06em;
}

.lede {
  margin: 24px auto 0; max-width: 62ch;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--ink-soft); line-height: 1.65;
}

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.cta-row.center { justify-content: center; }
.micro { margin-top: 16px; font-size: 13.5px; color: var(--muted); letter-spacing: .01em; }

/* ── App mockup ──────────────────────────────────────── */
.app-window {
  margin: 52px auto 0; max-width: 1120px;
  background: var(--paper);
  border: 1px solid rgba(20,17,12,.12);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  position: relative;
}
.app-chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px;
  background: #f2ebdf;
  border-bottom: 1px solid var(--line-soft);
}
.app-chrome .dot { width: 9px; height: 9px; border-radius: 50%; background: #d9cfbe; }
.app-url {
  margin-left: 12px; font-size: 11.5px; color: var(--muted);
  background: rgba(255,255,255,.7); border: 1px solid var(--line-soft);
  padding: 2px 12px; border-radius: 999px;
}

.app-body { display: grid; grid-template-columns: 196px 1fr 250px; min-height: 512px; }

/* sidebar */
.app-side {
  background: #faf6ee; border-right: 1px solid var(--line-soft);
  padding: 16px 14px; display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px;
}
.app-brand { display: flex; align-items: center; gap: 8px; padding: 2px 4px 12px; }
.app-brand svg { width: 24px; height: 24px; }
.app-brand strong { font-family: var(--serif); font-size: 14.5px; letter-spacing: -0.02em; }
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.side-nav a {
  display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 7px;
  color: var(--ink-soft); font-weight: 500;
}
.side-nav a.is-on { background: rgba(34,49,79,.08); color: var(--indigo); }
.side-nav i { width: 13px; height: 13px; border-radius: 3px; border: 1.4px solid currentColor; opacity: .55; }
.side-label {
  margin: 14px 0 4px; padding-left: 9px;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.side-hubs { display: flex; flex-direction: column; gap: 1px; }
.side-hubs a {
  display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 7px;
  color: var(--ink-soft);
}
.hub-ic {
  width: 19px; height: 19px; border-radius: 5px; background: rgba(34,49,79,.1);
  color: var(--indigo); font-size: 8.5px; font-weight: 700; letter-spacing: .02em;
  display: grid; place-items: center;
}
.side-foot {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  padding: 10px 9px 0; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--muted);
}
.avatar {
  width: 21px; height: 21px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 8.5px; font-weight: 700; color: #fffdf8;
  background: var(--indigo);
}
.a-s { background: #8a5a86; } .a-m { background: #2e6f7e; } .a-t { background: #9a6a3a; }
.plus { font-size: 10px; color: var(--muted); margin-left: 3px; }

/* main */
.app-main { padding: 14px 20px 20px; min-width: 0; }
.app-top { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-soft); }
.crumb-tag {
  font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--muted);
}
.chev { color: var(--muted); opacity: .6; }
.crumb-soft { color: var(--muted); }
.app-search {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 10px; font-size: 11px; color: var(--muted);
  background: #fdfaf3; min-width: 190px;
}
kbd {
  margin-left: auto; font-family: inherit; font-size: 9.5px;
  border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; background: #fff;
}

.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 18px 0 12px; }
.board-head h3 { font-size: 20px; letter-spacing: -0.025em; }
.board-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.board-tabs { display: flex; gap: 2px; background: #f1eadd; padding: 3px; border-radius: 8px; }
.tab {
  border: 0; background: transparent; padding: 5px 11px; border-radius: 6px;
  font-size: 11.5px; font-weight: 500; color: var(--muted); cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-on { background: #fffdf8; color: var(--indigo); box-shadow: 0 1px 2px rgba(20,17,12,.1); }

.board { border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; background: #fffefb; }
.panel { display: none; }
.panel.is-on { display: block; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.cols, .row {
  display: grid; grid-template-columns: 1fr 78px 62px 62px 52px;
  align-items: center; gap: 8px; padding: 0 12px;
}
.cols {
  height: 27px; font-size: 9px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line-soft); background: #faf6ee;
}
.group { border-left: 3px solid var(--g); }
.group-head { display: flex; align-items: center; gap: 7px; padding: 8px 12px 6px; }
.grp-name { font-size: 11.5px; font-weight: 600; color: var(--g); }
.count {
  font-size: 9px; color: var(--muted); background: rgba(20,17,12,.05);
  border-radius: 4px; padding: 0 5px;
}
.row { height: 30px; font-size: 11.5px; border-top: 1px solid rgba(20,17,12,.045); }
.row:hover { background: #fcf9f2; }
.item { display: flex; align-items: center; gap: 8px; color: var(--ink); min-width: 0; }
.item span:not(.drag) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drag { width: 4px; height: 4px; border-radius: 50%; background: rgba(20,17,12,.2); flex: none; }
.is-done .item { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(20,17,12,.25); }
.status {
  font-style: normal; font-size: 9.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  display: inline-block; white-space: nowrap;
}
.s-todo { background: rgba(34,49,79,.09); color: var(--indigo); }
.s-prog { background: rgba(216,155,63,.18); color: #8f6115; }
.s-done { background: rgba(79,122,91,.16); color: #356044; }
.prio { font-style: normal; font-size: 9.5px; font-weight: 600; border-radius: 4px; padding: 1px 6px; }
.p-high { background: rgba(163,69,47,.12); color: var(--madder); }
.p-med { background: rgba(216,155,63,.16); color: #8a5c12; }
.p-low { background: rgba(20,17,12,.06); color: var(--muted); }
.due { font-size: 10.5px; color: var(--muted); }
.group-summary {
  display: flex; gap: 18px; align-items: center;
  padding: 8px 12px; border-top: 1px solid var(--line-soft);
  background: #faf6ee; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}
.group-summary b { color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; }
.hot { color: var(--madder) !important; }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; background: #faf6ee; }
.kcol { background: #fffefb; border: 1px solid var(--line-soft); border-radius: 9px; padding: 9px; display: flex; flex-direction: column; gap: 7px; }
.khead { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; }
.kdot { width: 7px; height: 7px; border-radius: 2px; background: var(--k); }
.kcard {
  border: 1px solid var(--line-soft); border-radius: 7px; padding: 8px 9px;
  display: flex; flex-direction: column; gap: 7px; background: #fff;
  box-shadow: 0 1px 1px rgba(20,17,12,.04);
}
.kcard b { font-size: 11px; font-weight: 500; line-height: 1.35; }
.kcard.kdone b { color: var(--muted); }
.kmeta { display: flex; align-items: center; justify-content: space-between; }

/* timeline */
.tl { padding: 14px 12px; }
.tl-scale {
  display: grid; grid-template-columns: repeat(5, 1fr);
  font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); margin-bottom: 10px;
}
.tl-row { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 10px; height: 34px; }
.tl-name { font-size: 11px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-track { position: relative; height: 20px; background-image: repeating-linear-gradient(90deg, rgba(20,17,12,.06) 0 1px, transparent 1px 25%); border-radius: 4px; }
.bar {
  position: absolute; top: 4px; height: 12px; border-radius: 999px;
  left: var(--start); width: var(--len); background: var(--c);
  box-shadow: 0 2px 6px -2px rgba(20,17,12,.4);
}

/* AI panel */
.app-ai {
  background: #fbf7f0; border-left: 1px solid var(--line-soft);
  padding: 14px; font-size: 11.5px; display: flex; flex-direction: column; gap: 9px;
}
.ai-head { display: flex; align-items: center; gap: 6px; font-family: var(--serif); font-size: 13.5px; font-weight: 600; }
.ai-spark { color: var(--saffron); }
.ai-flag {
  margin-left: auto; font-family: var(--sans); font-size: 8.5px; font-weight: 500;
  color: var(--indigo); background: rgba(34,49,79,.08); border-radius: 999px; padding: 2px 7px;
}
.ai-hi { color: var(--muted); font-size: 11px; }
.ai-input {
  border: 1px solid rgba(34,49,79,.16); background: #fff; border-radius: 9px;
  padding: 9px 10px; color: #9b9384; font-size: 10.5px; min-height: 54px;
  box-shadow: 0 1px 3px rgba(20,17,12,.05);
}
.ai-label { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.ai-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ai-quick span {
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 4px; text-align: center;
  font-size: 9px; color: var(--ink-soft); background: #fff; line-height: 1.25;
}
.ai-sugg { display: flex; flex-direction: column; gap: 5px; }
.ai-sugg span {
  border: 1px solid var(--line-soft); border-radius: 6px; padding: 7px 8px;
  font-size: 9.5px; color: var(--ink-soft); line-height: 1.4; background: #fff;
}

/* ── Bands & sections ────────────────────────────────── */
.band { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-label {
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-bottom: 18px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips li {
  border: 1px solid rgba(20,17,12,.13); background: rgba(255,253,248,.6);
  border-radius: 999px; padding: 8px 18px; font-size: 14px; color: var(--ink-soft);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.chips li:hover { background: var(--paper); border-color: rgba(20,17,12,.28); transform: translateY(-1px); }

.section { padding: 96px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--madder); font-weight: 600; margin-bottom: 16px;
}
.eyebrow-light { color: var(--saffron); }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.03em; }
.section-lede { margin-top: 18px; color: var(--ink-soft); font-size: 1.03rem; }
.section-lede.light { color: rgba(247,241,230,.78); }

/* threads */
.thread-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.thread-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px 28px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.thread-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--saffron));
  opacity: .85;
}
.thread-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(20,17,12,.18); }
.thread-num {
  font-family: var(--serif); font-size: 13px; color: var(--madder);
  letter-spacing: .08em; margin-bottom: 14px;
}
.thread-card h3 { font-size: 1.65rem; margin-bottom: 12px; }
.thread-card p { color: var(--ink-soft); font-size: .96rem; }
.mini-list { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: grid; gap: 7px; }
.mini-list li { position: relative; padding-left: 17px; font-size: .87rem; color: var(--muted); }
.mini-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 1.5px; background: var(--saffron);
}

/* views */
.views { background: linear-gradient(180deg, rgba(239,230,214,.45), rgba(239,230,214,0)); }
.views-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.view-list { margin-top: 26px; display: grid; gap: 12px; }
.view-list li { font-size: .95rem; color: var(--ink-soft); padding-left: 18px; position: relative; }
.view-list li::before {
  content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--indigo); opacity: .5;
}
.view-list b { color: var(--ink); font-weight: 600; }

.views-visual { position: relative; }
.mini-window {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mini-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--line-soft); background: #faf6ee;
}
.mini-title { font-family: var(--serif); font-size: 13.5px; font-weight: 600; }
.mini-tabs { display: flex; gap: 3px; }
.mini-tabs i {
  font-style: normal; font-size: 10.5px; color: var(--muted); padding: 3px 8px; border-radius: 5px;
}
.mini-tabs i.on { background: #fff; color: var(--indigo); box-shadow: 0 1px 2px rgba(20,17,12,.1); }
.mini-rows { padding: 6px 0 10px; }
.mini-group {
  display: flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 600; color: var(--indigo);
  padding: 10px 16px 6px;
}
.mini-group span { width: 12px; height: 2px; background: currentColor; border-radius: 2px; }
.mini-group.amber { color: #8a5c12; } .mini-group.green { color: #356044; }
.mini-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px 8px 35px; border-top: 1px solid rgba(20,17,12,.04);
  font-size: 12px;
}
.mini-row b { font-weight: 500; }
.mini-row.dim b { color: var(--muted); }

.float-card {
  position: absolute; background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 2px;
}
.float-card b { font-family: var(--serif); font-size: 14px; font-weight: 600; }
.fc-label { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fc-a { right: -18px; top: 38px; }
.fc-b { left: -22px; bottom: 34px; }

/* weft */
.weft { background: var(--indigo-deep); color: var(--linen); overflow: hidden; }
.weft::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(247,241,230,.045) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(247,241,230,.03) 0 1px, transparent 1px 54px);
  mask-image: radial-gradient(70% 90% at 85% 50%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(70% 90% at 85% 50%, #000, transparent 72%);
}
.weft-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.weft h2 { color: var(--linen); }
.check-list { margin-top: 26px; display: grid; gap: 11px; }
.check-list li { position: relative; padding-left: 26px; font-size: .95rem; color: rgba(247,241,230,.82); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 14px; height: 8px;
  border-left: 1.6px solid var(--saffron); border-bottom: 1.6px solid var(--saffron);
  transform: rotate(-45deg);
}

.chat {
  background: rgba(247,241,230,.055); border: 1px solid rgba(247,241,230,.14);
  border-radius: var(--r-lg); padding: 18px; backdrop-filter: blur(6px);
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 40px 80px -50px #000;
}
.chat-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--linen);
  padding-bottom: 12px; border-bottom: 1px solid rgba(247,241,230,.1);
}
.chat-scope {
  margin-left: auto; font-family: var(--sans); font-size: 10px; font-weight: 500;
  color: rgba(247,241,230,.65); border: 1px solid rgba(247,241,230,.18);
  border-radius: 999px; padding: 2px 9px;
}
.bubble { font-size: .9rem; line-height: 1.55; padding: 11px 14px; border-radius: 12px; max-width: 92%; }
.bubble.user {
  align-self: flex-end; background: rgba(247,241,230,.12);
  border: 1px solid rgba(247,241,230,.14); color: rgba(247,241,230,.92);
  border-bottom-right-radius: 4px;
}
.bubble.ai {
  background: var(--linen); color: var(--ink-soft);
  border-bottom-left-radius: 4px;
}
.bubble.ai b { color: var(--ink); font-weight: 600; }
.ai-facts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.ai-facts span {
  font-size: 10.5px; font-weight: 500; color: var(--indigo);
  background: rgba(34,49,79,.08); border-radius: 999px; padding: 2px 9px;
}
.ai-actions { display: flex; gap: 8px; margin-top: 10px; }
.ai-actions span {
  font-size: 11px; font-weight: 600; color: var(--indigo);
  border: 1px solid rgba(34,49,79,.2); border-radius: 999px; padding: 3px 11px;
}
.chat-input {
  border: 1px solid rgba(247,241,230,.16); border-radius: 10px;
  padding: 10px 13px; font-size: 12px; color: rgba(247,241,230,.5);
  background: rgba(0,0,0,.12);
}

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feat { background: var(--paper); padding: 28px 26px 30px; transition: background .2s ease; }
.feat:hover { background: #fff; }
.feat svg { width: 22px; height: 22px; color: var(--indigo); margin-bottom: 16px; opacity: .9; }
.feat h3 { font-size: 1.12rem; margin-bottom: 8px; letter-spacing: -0.015em; }
.feat p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* how */
.how { background: rgba(239,230,214,.4); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: s; }
.steps li { position: relative; padding-top: 22px; border-top: 1px solid rgba(20,17,12,.16); }
.step-num {
  font-family: var(--serif); font-size: 13px; font-weight: 600; color: var(--madder);
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(163,69,47,.35); margin-bottom: 14px;
}
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps p { font-size: .93rem; color: var(--ink-soft); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; display: flex; flex-direction: column;
  position: relative; transition: transform .22s ease, box-shadow .22s ease;
}
.price:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.price h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.price-amount {
  margin-top: 14px; font-family: var(--serif); font-size: 2.1rem;
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
}
.price-amount span { font-family: var(--sans); font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 5px; }
.price-note { margin-top: 10px; font-size: .85rem; color: var(--muted); min-height: 2.6em; }
.price ul { margin: 18px 0 24px; display: grid; gap: 9px; flex: 1; }
.price li { position: relative; padding-left: 20px; font-size: .86rem; color: var(--ink-soft); }
.price li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 11px; height: 6px;
  border-left: 1.5px solid var(--sage); border-bottom: 1.5px solid var(--sage);
  transform: rotate(-45deg);
}
.price-featured { background: var(--indigo); border-color: var(--indigo); color: var(--linen); box-shadow: var(--shadow-lg); }
.price-featured h3, .price-featured .price-amount { color: var(--linen); }
.price-featured .price-amount span, .price-featured .price-note { color: rgba(247,241,230,.7); }
.price-featured li { color: rgba(247,241,230,.85); }
.price-featured li::before { border-color: var(--saffron); }
.price-featured .btn { background: var(--saffron); border-color: var(--saffron); color: #241703; box-shadow: none; }
.price-featured .btn:hover { background: #e6a94d; }
.price-badge {
  position: absolute; top: -11px; left: 24px;
  background: var(--saffron); color: #241703; font-size: 10.5px; font-weight: 700;
  letter-spacing: .02em; padding: 4px 11px; border-radius: 999px;
}
.price-fine { margin-top: 22px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* faq */
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq .section-head { margin-bottom: 0; }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-list summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-family: var(--serif); font-size: 1.4rem; line-height: 1;
  color: var(--madder); flex: none; transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin-top: 12px; color: var(--ink-soft); font-size: .94rem; max-width: 60ch; }

/* closing */
.closing { position: relative; overflow: hidden; background: var(--indigo); color: var(--linen); padding: 96px 0 104px; text-align: center; }
.closing-inner { position: relative; z-index: 1; }
.closing h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); color: var(--linen); letter-spacing: -0.03em; }
.closing p { margin: 18px auto 0; color: rgba(247,241,230,.75); max-width: 48ch; }
.closing .btn { background: var(--linen); color: var(--indigo); border-color: var(--linen); box-shadow: none; }
.closing .btn:hover { background: #fff; }
.closing .btn-outline { background: transparent; color: var(--linen); border-color: rgba(247,241,230,.4); }
.closing .btn-outline:hover { background: rgba(247,241,230,.1); border-color: rgba(247,241,230,.7); }

/* footer */
.site-foot { background: #100e0a; color: rgba(247,241,230,.72); padding: 64px 0 28px; }
.foot-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.foot-brand .brand { color: var(--linen); }
.foot-brand .brand-word { color: var(--linen); }
.foot-brand p { margin-top: 14px; font-size: .9rem; max-width: 32ch; }
.foot-parent { color: rgba(247,241,230,.5) !important; font-size: .84rem !important; }
.foot-parent b { color: var(--saffron); font-weight: 600; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h4 {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(247,241,230,.45); margin-bottom: 14px; font-family: var(--sans); font-weight: 600;
}
.foot-cols a { display: block; font-size: .9rem; padding: 4px 0; transition: color .16s ease; }
.foot-cols a:hover { color: var(--linen); }
.foot-base {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(247,241,230,.1);
  display: flex; justify-content: space-between; gap: 16px; font-size: .8rem; color: rgba(247,241,230,.45);
}
.foot-legal { display: flex; gap: 18px; }
.foot-legal a:hover { color: var(--linen); }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .app-body { grid-template-columns: 176px 1fr; }
  .app-ai { display: none; }
  .views-inner, .weft-inner { gap: 40px; }
  .fc-a { right: -6px; }
  .fc-b { left: -6px; }
}

@media (max-width: 900px) {
  .views-inner, .weft-inner, .faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .faq-inner { gap: 28px; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .thread-grid, .steps, .feat-grid { grid-template-columns: 1fr; }
  .steps { gap: 22px; }
  .section { padding: 72px 0; }
  .head-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--linen); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 18px;
    display: none;
  }
  .site-head.nav-open .head-nav { display: flex; }
  .head-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .head-nav a::after { display: none; }
  .menu-btn { display: block; }
  .ghost-link { display: none; }
  .foot-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding-top: 48px; }
  h1 { font-size: clamp(2.4rem, 9vw, 3.2rem); }
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-main { padding: 12px; overflow-x: auto; }
  .board { min-width: 470px; }
  .kanban { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .app-window { margin-top: 36px; }
  .float-card { display: none; }
  .price-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-base { flex-direction: column; }
  .section { padding: 60px 0; }
  .chat { padding: 14px; }
  .bubble { max-width: 100%; }
}

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