/* Lutin marketing site — night/day tokens */
:root {
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --serif: Newsreader, Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1180px;
  --r-lg: 22px;
  --r-md: 18px;
  --r-sm: 13px;
  --spark: #7fbf95;
  --logo-bg: #1a1d18;
}

:root,
:root[data-theme="dark"] {
  --bg: #171a15;
  --surface: #20241c;
  --surface-deep: #12150f;
  --surface-card: #1c211a;
  --surface-gradient: linear-gradient(175deg, #1c221b, #161b14);
  --board: #1c201a;
  --border: #2d3227;
  --border-alt: #343a2d;
  --border-footer: #22261e;
  --text: #f2f1ec;
  --soft: #bdc2b4;
  --muted: #888d7d;
  --faint: #4a5142;
  --accent: #7fbf95;
  --accent-text: #14261b;
  --accent-hover: #93cda6;
  --accent-bg: #2b3c2c;
  --mono-text: #e8e6dc;
  --kicker: #5f8569;
  --gold: #f0dd9c;
  --nav-bg: rgba(23, 26, 21, 0.92);
  --wm-dot: #7fbf95;
}

:root[data-theme="light"] {
  --bg: #f5f4ee;
  --surface: #fefefc;
  --surface-deep: #fbfaf5;
  --surface-card: #fefefc;
  --surface-gradient: linear-gradient(175deg, #fefefc, #f1f0e8);
  --board: #1c201a;
  --border: #e0ded4;
  --border-alt: #e0ded4;
  --border-footer: #e6e3d8;
  --text: #1b1d19;
  --soft: #4a4e46;
  --muted: #898e81;
  --faint: #b3b0a4;
  --accent: #3a6b4c;
  --accent-text: #fff;
  --accent-hover: #4a7d5c;
  --accent-bg: #edf2e8;
  --mono-text: #1b1d19;
  --kicker: #4e9460;
  --gold: #8a6d1f;
  --nav-bg: rgba(245, 244, 238, 0.92);
  --wm-dot: #4e9460;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 400; }
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kicker);
}
.wink { font-family: var(--serif); font-style: italic; color: var(--kicker); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: var(--r-sm);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 12px; }
.btn-md { padding: 12px 22px; font-size: 14px; border-radius: 12px; }
.btn-accent { background: var(--accent); color: var(--accent-text); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline {
  background: transparent;
  border-color: var(--border-alt);
  color: var(--soft);
}
.btn-outline:hover { border-color: var(--faint); color: var(--text); }
.btn-ghost {
  padding: 8px 16px;
  border-radius: 11px;
  border: 1px solid var(--border-alt);
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
}
.btn-ghost:hover { color: var(--text); border-color: var(--faint); }
.btn-ghost.done { color: var(--accent); border-color: var(--accent); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-in {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.site-mark {
  display: block;
  flex: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url(/assets/lutin-icon.svg);
}
.site-mark-lg { width: 32px; height: 32px; }
.site-mark-sm { width: 22px; height: 22px; }
.wordmark {
  display: block;
  flex: none;
  height: 22px;
  width: auto;
  color: var(--text);
}
.wordmark text {
  font-family: var(--font);
  font-weight: 800;
  font-size: 100px;
  letter-spacing: -1px;
}
.wordmark-dot { fill: var(--wm-dot); }
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 26px;
  pointer-events: none;
}
.nav-links a {
  pointer-events: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); font-weight: 700; }
.nav-cta { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-alt);
  color: var(--soft);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s, border-color 0.2s;
}
.theme-btn:hover { color: var(--text); border-color: var(--faint); }

/* Hero */
.hero { max-width: 780px; margin: 64px auto 0; text-align: center; padding: 0 32px; }
.hero .kicker-serif { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--kicker); margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-wrap: balance;
}
.hero .lede {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 560px;
  margin: 24px auto 36px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Press tiles */
@keyframes lutin-glow {
  0%, 100% { box-shadow: 0 0 44px -12px rgba(240, 221, 156, 0.32); }
  50% { box-shadow: 0 0 56px -10px rgba(240, 221, 156, 0.5); }
}
.tiles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 66px auto 0;
  max-width: 1000px;
  padding: 0 32px;
  overflow-x: clip;
}
.tile {
  width: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
}
.tile-amber {
  background: linear-gradient(160deg, #322b19, #453b20);
  border: 1px solid rgba(240, 221, 156, 0.16);
  animation: lutin-glow 5s ease-in-out infinite;
  transform: rotate(-2deg);
}
.tile-rose {
  background: linear-gradient(160deg, #38242a, #492e36);
  border: 1px solid rgba(240, 200, 208, 0.14);
  box-shadow: 0 0 44px -12px rgba(240, 200, 208, 0.3);
  transform: rotate(1deg) translateY(14px);
}
.tile-blue {
  background: linear-gradient(160deg, #223039, #2b3d4a);
  border: 1.5px solid #8fbbdf;
  box-shadow: 0 0 52px -10px rgba(143, 187, 223, 0.55);
  transform: rotate(-1deg) translateY(4px);
  position: relative;
}
.tile-blue .dot-live {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8fbbdf;
  box-shadow: 0 0 10px rgba(143, 187, 223, 0.9);
}
.tile-neutral {
  background: var(--surface);
  border: 1px solid var(--border);
  transform: rotate(2deg) translateY(18px);
}
.tile-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tile-title {
  font-size: 17px;
  font-weight: 700;
  display: block;
}
.tile-sub {
  font-size: 13px;
  display: block;
  color: var(--muted);
}
.twilight-note {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: var(--faint);
  width: min(520px, calc(100vw - 40px));
  margin: 56px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
  text-wrap: balance;
}

/* Sections */
.section { max-width: 1100px; margin: 130px auto 0; padding: 0 32px; }
.section-sm { max-width: 720px; margin: 70px auto 0; padding: 0 32px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head[id] { scroll-margin-top: 100px; }
.section[id] { scroll-margin-top: 100px; }
.section-head h2 {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.card {
  padding: 26px 22px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.card h3, .card .card-title { font-size: 16px; font-weight: 700; margin-bottom: 0; }
.card p, .card .card-body { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.card svg { color: var(--muted); margin-bottom: 4px; }

.bullets { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; max-width: 460px; }
.bullet {
  position: relative;
  padding-left: 19px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--soft);
}
.bullet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.bullet strong { color: var(--text); font-weight: 700; }
.bullet span.muted { color: var(--muted); }

.board-card {
  border-radius: 26px;
  background: var(--board);
  border: 1px solid var(--border);
  padding: 34px 30px;
}
.board-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--kicker);
  text-align: center;
  margin-bottom: 22px;
}
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.board-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
}
.board-shared {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, #2a3320, #37432a);
  border: 1px solid rgba(169, 206, 131, 0.16);
}
.pill {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}
.pill-shared { background: rgba(169, 206, 131, 0.14); color: #a9ce83; }
.pill-owner { background: var(--accent-bg); color: var(--accent); }
.pill-paused { background: rgba(224, 133, 115, 0.14); color: #e08573; }
.pill-invited { background: var(--border); color: var(--muted); }

.house-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.house-tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
.house-tab.active { background: var(--text); color: var(--bg); font-weight: 700; }
.member-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.member-row.paused { opacity: 0.6; }
.member-row.invite {
  grid-template-columns: minmax(0, 1fr) auto;
  border-style: dashed;
  border-color: var(--border-alt);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.agent-band {
  border-radius: 28px;
  background: var(--surface-gradient);
  border: 1px solid var(--border);
  padding: 64px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.chat-bubble {
  max-width: 340px;
  padding: 16px 20px;
  font-size: 14.5px;
  line-height: 1.55;
  border-radius: 18px;
}
.chat-user {
  align-self: flex-end;
  background: var(--accent-bg);
  color: #d9e8dc;
  border-radius: 18px 18px 4px 18px;
}
:root[data-theme="light"] .chat-user { color: var(--soft); }
.chat-agent {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--soft);
  border-radius: 18px 18px 18px 4px;
}
.chat-col { display: flex; flex-direction: column; gap: 14px; }

.pricing-card {
  padding: 34px 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pricing-card.featured {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 44px -14px rgba(127, 191, 149, 0.35);
}
.price { display: flex; align-items: baseline; gap: 6px; }
.price-num { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.price-unit { font-size: 15px; color: var(--muted); }

.faq-teaser-list { display: flex; flex-direction: column; gap: 10px; }

.closing { max-width: 700px; margin: 150px auto 0; padding: 0 32px; text-align: center; }
.closing h2 {
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

/* Footer */
.footer {
  max-width: var(--maxw);
  margin: 120px auto 0;
  padding: 34px 32px 44px;
  border-top: 1px solid var(--border-footer);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-left { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--faint); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }

/* Subpages */
.page-hero { max-width: 720px; margin: 66px auto 0; text-align: center; padding: 0 32px; }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 50px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
.page-hero .lede {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 560px;
  margin: 22px auto 0;
}
.content { max-width: 660px; margin: 60px auto 0; padding: 0 32px; }
.content-wide { max-width: 820px; margin: 100px auto 0; padding: 0 32px; }
.content h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.content .sub {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 18px;
}
.content + .content { margin-top: 90px; }

.say-card {
  border-radius: var(--r-lg);
  background: var(--surface-card);
  border: 1px solid var(--border);
  padding: 26px 28px;
}
.say-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.mono-line {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
  color: var(--mono-text);
}
.mono-line .hl { color: var(--gold); }

.detail-row {
  border-radius: 16px;
  background: var(--surface-deep);
  border: 1px solid var(--border);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.detail-row + .detail-row { margin-top: 12px; }
.detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kicker);
  display: block;
  margin-bottom: 4px;
}
.code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.code-block {
  border-radius: 16px;
  background: var(--surface-deep);
  border: 1px solid var(--border);
  padding: 18px 20px;
}
.code-block pre {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--soft);
  white-space: pre-wrap;
}

.step-row {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.step-row + .step-row { margin-top: 10px; }
.step-num {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.step-body { font-size: 14px; line-height: 1.6; color: var(--soft); }
.step-body strong { color: var(--text); }
.step-body code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mono-text);
}

.scope-card {
  padding: 26px 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.scope-card h3 { font-size: 16.5px; font-weight: 700; }
.scope-card .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--kicker);
  margin-top: 6px;
}
.scope-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.bullet-list { display: flex; flex-direction: column; gap: 12px; }
.bullet-item {
  position: relative;
  padding-left: 19px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}
.bullet-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.bullet-item.green::before { background: var(--accent); }
.bullet-item.gold::before { background: var(--gold); }
.bullet-item.gray::before { background: var(--muted); }
.bullet-item strong { color: var(--text); }

.skill-cta {
  border-radius: var(--r-lg);
  background: var(--surface-gradient);
  border: 1px solid var(--border);
  padding: 36px 34px;
  text-align: center;
}
.skill-cta h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.skill-cta p { margin: 10px auto 22px; font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 420px; }
.skill-url { font-family: var(--mono); font-size: 15px; color: var(--gold); margin-bottom: 22px; }

/* FAQ page */
.faq-group { margin-top: 60px; }
.faq-group:first-of-type { margin-top: 70px; }
.faq-group > h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kicker);
  margin-bottom: 16px;
}
.faq-item {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0 24px;
}
.faq-item + .faq-item { margin-top: 10px; }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev { flex: none; color: var(--faint); transition: transform 0.2s ease; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-item p {
  margin: 0;
  padding: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.faq-item a { color: var(--accent); text-decoration: none; }
.faq-item a:hover { text-decoration: underline; }

/* Install */
.install-icon { display: flex; justify-content: center; margin-top: 36px; }
.install-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 72px;
}
.install-tile-icon {
  width: 72px;
  height: 72px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
html[data-theme="light"] .install-tile-icon {
  background-image: url(/assets/lutin-icon.svg);
  filter: drop-shadow(0 10px 24px rgba(27, 29, 25, 0.25));
}
html[data-theme="dark"] .install-tile-icon {
  background-image: url(/assets/lutin-icon-light.svg);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
}
.install-tile-name {
  font-size: 11px;
  font-weight: 400;
  color: var(--text);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.install-card { padding: 28px 26px; border-radius: 20px; }
.install-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.install-step .step-title { font-size: 13.5px; font-weight: 700; color: var(--soft); }
.install-step .step-note { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.install-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--kicker);
  margin-top: auto;
}

.text-link { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-center { text-align: center; }

@media (max-width: 960px) {
  .grid-4, .grid-3, .grid-2, .split, .agent-band, .code-grid { grid-template-columns: 1fr; }
  .split .order-2 { order: 0; }
  .agent-band { padding: 40px 28px; gap: 32px; }
  .nav-links { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .wrap, .nav-in, .hero, .section, .footer, .tiles-row { padding-left: 20px; padding-right: 20px; }
  .nav-in { padding-top: 18px; padding-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile-amber { animation: none; }
}
