@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-elev: #111111;
  --bg-header: rgba(0, 0, 0, 0.78);
  --ink: #f5f5f5;
  --muted: rgba(245, 245, 245, 0.64);
  --faint: rgba(245, 245, 245, 0.42);
  --line: rgba(245, 245, 245, 0.14);
  --fill: #ffffff;
  --fill-ink: #0a0a0a;
  --chip: #161616;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --pine: #f5f5f5;
  --pine-deep: #ffffff;
  --pine-ink: #0a0a0a;
  --paper: #000000;
  --soon-bg: #1a1408;
  --soon-ink: #f3d48a;
  --soon-line: rgba(243, 212, 138, 0.35);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-elev: #f6f6f6;
  --bg-header: rgba(255, 255, 255, 0.82);
  --ink: #0a0a0a;
  --muted: rgba(10, 10, 10, 0.62);
  --faint: rgba(10, 10, 10, 0.45);
  --line: rgba(10, 10, 10, 0.12);
  --fill: #0a0a0a;
  --fill-ink: #ffffff;
  --chip: #f3f3f3;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  --pine: #0a0a0a;
  --pine-deep: #000000;
  --pine-ink: #ffffff;
  --paper: #ffffff;
  --soon-bg: #fff8e8;
  --soon-ink: #6a4b05;
  --soon-line: rgba(106, 75, 5, 0.28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--fill);
  color: var(--fill-ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}
.wrap-narrow { width: min(760px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 72px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: var(--bg-header);
  border-bottom: 1px solid var(--line);
}
.site-header .connect-apps {
  background: var(--fill);
  color: var(--fill-ink);
  border-color: transparent;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1280px, calc(100% - 40px));
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 15px;
  flex: none;
}
.wordmark .mark { display: block; width: 18px; height: 18px; border-radius: 5px; }
.brand-line { display: inline-flex; align-items: center; gap: 10px; }
.brand-line .mark { display: block; width: 18px; height: 18px; border-radius: 5px; }
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-item { position: relative; }
.nav-link, .menu-button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.011em;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.nav-link:hover, .menu-button:hover,
.nav-item.is-open .menu-button,
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--chip);
}
.menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 520px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
}
.nav-item.is-open .menu-panel { display: grid; }
.menu-panel a {
  display: block;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
}
.menu-panel a:hover { background: var(--chip); }
.menu-panel strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.menu-panel span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.theme-toggle, .mobile-toggle {
  appearance: none;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.mobile-toggle { display: none; }
.signin {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--fill-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.011em;
}
.signin:hover { opacity: 0.88; }

.todo-banner {
  margin: 0;
  padding: 14px 0;
  background: var(--soon-bg);
  color: var(--soon-ink);
  border-bottom: 1px solid var(--soon-line);
  font-size: 14px;
  line-height: 1.45;
}
.todo-banner .wrap { width: min(1200px, calc(100% - 48px)); }
.todo-banner strong { font-weight: 600; }

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 48px 0 72px;
}
.kicker {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero h1, .page-title {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.hero h1 {
  font-size: clamp(3.4rem, 7.4vw, 6.4rem);
  max-width: 11ch;
}
.lede {
  margin: 24px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.015em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.pill, .btn.btn-fill, .btn.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.011em;
  border: 1px solid transparent;
  cursor: pointer;
}
.pill-fill, .btn.btn-fill {
  background: var(--fill);
  color: var(--fill-ink);
}
.pill-line, .btn.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.pill:hover, .btn:hover { transform: none; }

.stage-frame {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-elev);
  padding: 18px;
  min-height: 280px;
}
.stage-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.term {
  margin: 0;
  min-height: 220px;
  padding: 16px;
  border-radius: 12px;
  background: #0c0c0c;
  color: #ececec;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.term .dim { color: #8d8d8d; }
.term .ok { color: #d7d7d7; }

.band {
  border-top: 1px solid var(--line);
  padding: 96px 0;
}
.band h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 16ch;
}
.band .sub {
  margin: 16px 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 17px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  text-decoration: none;
}
a.card:hover { background: var(--bg-elev); }
.card em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.card strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.page-hero { padding: 72px 0 28px; }
.page-title {
  font-size: clamp(3rem, 6vw, 5rem);
  max-width: 16ch;
}
.crumb {
  margin: 0 0 18px;
  color: var(--faint);
  font-size: 13px;
}
.crumb a { color: var(--muted); text-decoration: none; }
.prose { padding-bottom: 80px; }
.prose p, .prose li { color: var(--muted); font-size: 17px; line-height: 1.55; }
.prose h2 {
  margin: 40px 0 8px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.prose a { color: var(--ink); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.seg {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  gap: 2px;
}
.seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.seg button[aria-selected="true"] {
  background: var(--fill);
  color: var(--fill-ink);
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.price {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  min-height: 240px;
}
.price b { display: block; font-size: 32px; font-weight: 500; letter-spacing: -0.04em; margin: 12px 0; }
.price ul { margin: 0; padding-left: 18px; color: var(--muted); }
.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 18px 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-item .faq-a { display: none; margin: 0 0 18px; color: var(--muted); }
.faq-item.is-open .faq-a { display: block; }

.search {
  width: 100%;
  margin: 8px 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--muted);
}
.filters a[aria-current="page"] { color: var(--fill-ink); background: var(--fill); border-color: transparent; }
.bot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.bot-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bot-card:hover { background: var(--bg-elev); }
.bot-card small { color: var(--faint); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.bot-card p { margin: 0; color: var(--muted); font-size: 14px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  min-height: 160px;
}
.news-card span { color: var(--faint); font-size: 13px; }
.news-card strong { font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 28px;
}
.site-footer h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.site-footer a { display: block; text-decoration: none; color: var(--muted); font-size: 14px; padding: 4px 0; }
.site-footer a:hover { color: var(--ink); }
.foot-brand { font-size: 15px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.foot-brand p { margin: 10px 0 0; color: var(--muted); font-weight: 400; font-size: 14px; max-width: 24rem; }
.foot-end {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.foot-end a { display: inline; padding: 0; }

.tool-main { padding: 28px 0 72px; }
.tool-main .flow { width: min(760px, 100%); margin: 0; padding: 0 0 24px; }
.tool-main .name {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 8px;
}
.tool-main .line { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.03em; margin: 0; max-width: none; }
.live b { color: var(--ink); }
.list button, .tab { color: var(--ink); border-radius: 999px; }
.tab.active { background: var(--fill); color: var(--fill-ink); }
.msg { color: var(--muted); }
.msg.err { color: #e7b3b3; }
[data-theme="light"] .msg.err { color: #8a1f1f; }

@media (max-width: 980px) {
  .hero, .split, .card-grid, .price-grid, .bot-grid, .news-grid, .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 0; }
}
@media (max-width: 760px) {
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-header .wrap { gap: 8px; }
  .header-actions .connect-apps { padding-right: 8px; }
  .signin { padding: 0 12px; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    flex-direction: column;
    align-items: stretch;
  }
  .site-header.is-nav-open .primary-nav { display: flex; }
  .menu-panel {
    position: static;
    min-width: 0;
    box-shadow: none;
    margin: 4px 0 8px;
  }
  .header-actions .connect-apps-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hero, .split, .card-grid, .price-grid, .bot-grid, .news-grid, .foot-grid { grid-template-columns: 1fr; }
  .wrap, .todo-banner .wrap { width: min(1200px, calc(100% - 32px)); }
  .signin span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
