:root {
  --bg: #faf7ee;
  --bg-2: #f0eadc;
  --paper: #fffdf6;
  --ink: #0e0e0c;
  --ink-2: #34342e;
  --muted: #737064;
  --line: rgba(14, 14, 12, 0.14);
  --accent: #f6d41a;
  --blue: #2e6bff;
  --focus: rgba(46, 107, 255, 0.28);
  --shadow: 0 24px 70px rgba(14, 14, 12, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(246, 212, 26, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 212, 26, 0.09) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: rgba(250, 247, 238, 0.78);
  backdrop-filter: blur(18px);
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 10px 28px rgba(14, 14, 12, 0.06); }
.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; font-weight: 700; }
.logo-mark { width: 34px; height: 34px; display: block; }
.logo-name span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.nav-links { display: flex; gap: 28px; color: var(--ink-2); font-size: 14px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.pill, .chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 253, 246, 0.72);
  color: var(--ink-2);
  font-size: 13px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 650;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--ink); color: #fffdf6; box-shadow: 4px 4px 0 var(--accent); }
.button.ghost { background: rgba(255, 253, 246, 0.72); color: var(--ink); }
.button.large { min-height: 54px; padding: 0 22px; font-size: 16px; }
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.download-link::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3Cpath d='M12 15V3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3Cpath d='M12 15V3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.icon { width: 18px; height: 18px; }
.hero { padding: 70px 0 56px; overflow: hidden; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--blue); box-shadow: 0 0 0 4px rgba(46, 107, 255, 0.12); }
.hero h1 {
  max-width: 980px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 68px;
  line-height: 0.94;
  letter-spacing: 0;
}
.lede {
  max-width: 720px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.55;
}
.hero .lede { margin: 24px auto 0; text-align: center; }
mark { background: linear-gradient(transparent 48%, rgba(246, 212, 26, 0.76) 48%); color: inherit; padding: 0 2px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; margin-top: 28px; }
.hero-download-meta { min-height: 18px; color: var(--muted); font-size: 12px; font-style: italic; font-weight: 500; }
.release-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.release-link:hover { color: var(--blue); }
.hero-demo {
  max-width: 1040px;
  margin: 40px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.72);
  box-shadow: var(--shadow);
  padding: 16px;
}
.hero-demo { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; align-items: stretch; }
.demo-panel, .widget-panel { min-width: 0; }
.fake-app {
  border: 1px solid rgba(14, 14, 12, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: #fffdf6;
}
.fake-bar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}
.traffic { display: flex; gap: 6px; }
.traffic span { width: 10px; height: 10px; border-radius: 999px; background: var(--line); }
.traffic span:first-child { background: #ff5f56; }
.traffic span:nth-child(2) { background: #ffbd2e; }
.traffic span:nth-child(3) { background: #27c93f; }
.fake-body { min-height: 184px; padding: 22px; position: relative; }
.prompt-label { color: var(--muted); font-family: var(--font-mono); font-size: 12px; margin-bottom: 18px; }
.typing-text { min-height: 104px; max-width: 590px; color: var(--ink-2); font-size: 23px; line-height: 1.3; }
.cursor { display: inline-block; width: 2px; height: 1em; margin-left: 3px; background: var(--blue); transform: translateY(3px); animation: blink 0.85s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hold-controls { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.label, .small { color: var(--muted); font-size: 13px; }
.hold-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--accent);
  padding: 0 16px;
  font-weight: 650;
  cursor: pointer;
}
.hold-btn.active { background: var(--blue); color: white; }
.rec-dot { width: 9px; height: 9px; border-radius: 999px; background: currentColor; }
.align-right { justify-content: flex-end; }
.bars { display: flex; align-items: center; justify-content: center; gap: 3.2px; min-height: 36px; width: 100%; }
.bar { width: 5px; min-height: 4px; border-radius: 999px; background: var(--accent); transition: height 70ms linear; }
.centered { text-align: center; max-width: 38ch; margin: 22px auto 0; }
section { padding: 76px 0; }
section.tight, .support-section { padding-top: 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: end; margin-bottom: 26px; }
h2 { margin: 14px 0 0; font-size: 44px; line-height: 1.03; letter-spacing: 0; }
h3 { margin: 0; font-size: 24px; line-height: 1.1; }
.how-grid, .three-up { display: grid; gap: 16px; }
.how-grid { grid-template-columns: repeat(3, 1fr); }
.three-up { grid-template-columns: repeat(3, 1fr); }
.how-step, .card, .models-card, .faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.82);
  box-shadow: 0 14px 36px rgba(14, 14, 12, 0.06);
}
.how-step { min-height: 268px; padding: 22px; display: flex; flex-direction: column; }
.step-num, .tag, .footer-note, .models-footer {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}
.how-step h3 { margin-top: 28px; font-size: 42px; }
.how-step p, .card p, .card li { color: var(--ink-2); line-height: 1.55; }
.visual { margin-top: auto; min-height: 72px; display: flex; align-items: center; justify-content: center; }
.kbd, .insert-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-bottom-width: 4px;
  border-radius: 8px;
  background: var(--paper);
  padding: 0 14px;
  font-family: var(--font-mono);
}
.card { padding: 24px; }
.card h3 { margin-top: 16px; }
.card ul { margin: 22px 0 0; padding-left: 18px; }
.card li + li { margin-top: 10px; }
.footer-note { margin-top: 28px; }
.text-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.support-cards .card { display: flex; flex-direction: column; }
.support-cards .card p:last-child { margin-top: auto; }
.kofi-link {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; gap: 8px; min-height: 36px;
  border: 0; border-radius: 7px; background: #ff5f5f;
  box-shadow: inset 0 -2px 0 rgba(14, 14, 12, 0.18); color: white; padding: 0 13px 0 9px;
  font-family: Arial, var(--font); font-size: 14px; font-weight: 700; line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.kofi-link:hover {
  transform: translateY(-1px); box-shadow: inset 0 -2px 0 rgba(14, 14, 12, 0.18), 0 5px 12px rgba(14, 14, 12, 0.14);
}
.kofi-cup {
  position: relative; width: 24px; height: 24px; border-radius: 6px; background: #29abe0;
}
.kofi-cup::before {
  content: "";
  position: absolute;
  left: 5px; top: 7px; width: 12px; height: 9px;
  border-radius: 2px 2px 5px 5px; background: white;
}
.kofi-cup::after {
  content: "";
  position: absolute;
  left: 9px; top: 9px; width: 5px; height: 5px;
  border-radius: 999px 999px 0 999px; background: #ff5f5f; transform: rotate(45deg);
}
.models-section { padding-top: 76px; }
.model-choice-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: -8px 0 16px;
}
.model-choice-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.72);
  padding: 16px;
}
.model-choice-strip strong { display: block; margin-top: 8px; font-size: 16px; }
.model-choice-strip p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.models-card { padding: 16px; }
.models-tabs { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.tab-group { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); padding: 4px; }
.tab-btn { border: 0; border-radius: 6px; background: transparent; padding: 10px 14px; color: var(--muted); cursor: pointer; }
.tab-btn.active { background: var(--ink); color: white; }
.providers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hidden, [hidden] { display: none !important; }
.provider-card { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 18px; }
.provider-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}
.provider-card:nth-child(4) b { background: #13ef95; color: var(--ink); }
.provider-card h3 { margin-top: 16px; font-size: 20px; }
.provider-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.models-footer { margin: 18px 0 0; }
.faq-list { display: grid; gap: 10px; }
.faq-q { width: 100%; min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 0; background: transparent; padding: 0 22px; text-align: left; font-weight: 700; cursor: pointer; }
.faq-a { display: none; padding: 0 22px 20px; color: var(--ink-2); line-height: 1.55; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.foot { display: flex; justify-content: space-between; gap: 32px; padding: 44px 0 24px; border-top: 1px solid var(--line); }
.foot-brand { max-width: 430px; }
.foot-brand p, .foot-bottom { color: var(--muted); line-height: 1.5; }
.analytics-note { font-size: 13px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; align-content: flex-start; color: var(--ink-2); }
.external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.external-link::before {
  content: "\2197";
  font-size: 12px;
  line-height: 1;
  transform: translateY(-1px);
}
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 34px; font-size: 13px; }
.legal-hero { padding: 42px 0 20px; }
.legal-hero h1 {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 0;
}
.legal-hero .lede {
  max-width: 660px;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}
.legal-main {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.86);
  box-shadow: 0 14px 36px rgba(14, 14, 12, 0.06);
  padding: 22px;
}
.legal-side {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.74);
  padding: 16px;
}
.legal-section + .legal-section { margin-top: 18px; }
.legal-section h2 { margin: 0; font-size: 18px; line-height: 1.2; }
.legal-section h3 { margin-top: 12px; font-size: 15px; }
.legal-section p, .legal-section li { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.legal-section p, .legal-section ul { margin: 8px 0 0; }
.legal-section ul { padding-left: 18px; }
.legal-section li + li { margin-top: 6px; }
.version-log .version-bullets li { font-size: 15px; }
.version-log .notice-box p { max-width: 760px; }
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.legal-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 7px 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}
.notice-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  padding: 14px;
}
.legal-side h2 { margin-top: 0; font-size: 14px; }
.legal-side nav { display: grid; gap: 7px; margin-top: 10px; color: var(--ink-2); font-size: 13px; }
.legal-side a:hover, .foot nav a:hover { color: var(--blue); }

@media (max-width: 980px) {
  .nav-links, .pill { display: none; }
  .hero h1 { font-size: 54px; }
  .hero-demo, .section-head, .legal-layout { grid-template-columns: 1fr; }
  .how-grid, .three-up, .providers-grid { grid-template-columns: repeat(2, 1fr); }
  .align-right { justify-content: flex-start; margin-top: 16px; }
  .legal-side { position: static; }
}
@media (max-width: 680px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .nav-inner { min-height: 66px; gap: 12px; }
  .logo-name span { display: none; }
  .nav-cta .button { min-height: 36px; padding: 0 12px; font-size: 13px; box-shadow: 3px 3px 0 var(--accent); }
  .nav-cta .icon { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 40px; line-height: 1; }
  .legal-hero h1 { font-size: 30px; }
  .lede { font-size: 17px; }
  h2 { font-size: 33px; }
  section { padding: 64px 0; }
  .how-grid, .three-up, .providers-grid, .model-choice-strip { grid-template-columns: 1fr; }
  .hero-demo, .legal-main { padding: 18px; }
  .typing-text { font-size: 20px; }
  .models-tabs, .foot, .foot-bottom { flex-direction: column; align-items: flex-start; }
}
@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; }
  .button:hover, .kofi-link:hover { transform: none; }
}
