/*
 * Kojuka site. Warm neutrals, a serif for headings and a clay accent, so the
 * page sits comfortably next to Claude, where the product lives.
 */
:root {
  /* Dark by default; the header toggle sets data-theme="light". */
  --bg: #262624;
  --bg-2: #1f1e1d;
  --surface: #30302e;
  --text: #faf9f5;
  --text-2: #c2c0b6;
  --text-3: #9c9a92;
  --border: rgba(222, 220, 209, 0.15);
  --border-2: rgba(222, 220, 209, 0.08);
  --accent: #d97757;
  --accent-hover: #e0896c;
  --accent-text: #1f1e1d;
  --accent-soft: rgba(217, 119, 87, 0.16);
  --claude: #b09cf5;
  --claude-soft: rgba(176, 156, 245, 0.16);
  --you: #7fb6de;
  --you-soft: rgba(127, 182, 222, 0.16);
  --success: #7cc287;
  --warning: #e2b24e;
  --danger: #ec8a80;
  --user-bubble: #141413;
  --shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(222, 220, 209, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.35), 0 0 0 0.5px rgba(222, 220, 209, 0.15);
  color-scheme: dark;
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
}

:root[data-theme="light"] {
  --bg: #faf9f5;
  --bg-2: #f5f4ed;
  --surface: #ffffff;
  --text: #141413;
  --text-2: #3d3d3a;
  --text-3: #73726c;
  --border: rgba(31, 30, 29, 0.15);
  --border-2: rgba(31, 30, 29, 0.08);
  --accent: #c6613f;
  --accent-hover: #b35535;
  --accent-text: #ffffff;
  --accent-soft: rgba(217, 119, 87, 0.12);
  --claude: #7b5cd6;
  --claude-soft: rgba(123, 92, 214, 0.12);
  --you: #2c6e9e;
  --you-soft: rgba(44, 110, 158, 0.12);
  --success: #3a7d44;
  --warning: #9a6b00;
  --danger: #b4443a;
  --user-bubble: #f0eee6;
  --shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.035), 0 0 0 0.5px rgba(31, 30, 29, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(31, 30, 29, 0.08), 0 0 0 0.5px rgba(31, 30, 29, 0.15);
  color-scheme: light;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: currentColor;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 6.5vw, 4rem);
}
h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}
p {
  margin: 0;
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .wrap {
    padding: 0 28px;
  }
}
.narrow {
  max-width: 720px;
}

.muted {
  color: var(--text-3);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 0.5px solid var(--border-2);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--accent);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a:not(.button) {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 8px 12px;
  border-radius: var(--r-md);
}
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--r-md);
  background: none;
  color: var(--text-2);
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--bg-2);
  color: var(--text);
}
.theme-toggle .sun,
:root[data-theme="light"] .theme-toggle .moon {
  display: none;
}
:root[data-theme="light"] .theme-toggle .sun {
  display: block;
}
.nav a:not(.button):hover {
  background: var(--bg-2);
  color: var(--text);
}
@media (max-width: 640px) {
  .nav a:not(.button) {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  text-align: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  border: 0.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: 500 0.9375rem/20px var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
}
.button:hover {
  background: var(--bg-2);
}
.button:active {
  transform: scale(0.98);
}
.button-primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-text);
}
.button-primary:hover {
  background: var(--accent-hover);
}
.button-small {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 0.875rem;
}
.button-wide {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 32px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-2);
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.eyebrow .pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
}
.hero h1 {
  max-width: 14ch;
  margin: 0 auto;
}
.lede {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--text-2);
  max-width: 38rem;
  margin: 20px auto 0;
  text-wrap: pretty;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.fine-print {
  font-size: 0.875rem;
  color: var(--text-3);
  margin-top: 14px;
}
.center {
  text-align: center;
}

/* ---------- The conversation ---------- */

.convo-wrap {
  padding-top: 40px;
  padding-bottom: 24px;
}
.convo {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}
.convo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--border-2);
  font-size: 0.875rem;
  color: var(--text-2);
}
.convo-bar .dots {
  display: flex;
  gap: 6px;
  margin-right: 8px;
}
.convo-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.convo-bar .chip {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-3);
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}
.convo-body {
  padding: 28px clamp(16px, 4vw, 40px) 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.msg-user {
  align-self: flex-end;
  max-width: 85%;
  background: var(--user-bubble);
  border-radius: var(--r-lg);
  padding: 10px 16px;
  font-size: 0.9375rem;
}
.msg-claude {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
}
.msg-claude p + p {
  margin-top: 10px;
}
.tool-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 0.8125rem;
  color: var(--text-3);
  border: 0.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 6px 12px;
}
.tool-line svg {
  width: 14px;
  height: 14px;
}
.tool-line .ok {
  color: var(--success);
}
.composer {
  margin: 12px clamp(12px, 3vw, 28px) clamp(12px, 3vw, 24px);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 14px 14px 10px 16px;
}
.composer .placeholder {
  color: var(--text-3);
  font-size: 0.9375rem;
}
.composer .row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.composer .plus {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  border: 0.5px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-3);
}
.composer .send {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--accent-text);
  display: grid;
  place-items: center;
}

/* The summary card, matching the one Kojuka shows in Claude */
.mini-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  font-family: var(--sans);
}
.mini-card .head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.mini-card .head strong {
  font-weight: 600;
  font-size: 0.9375rem;
}
.cap {
  font-size: 0.8125rem;
  color: var(--text-3);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}
.stat {
  background: var(--bg-2);
  border-radius: var(--r-md);
  padding: 10px 12px;
}
.stat .num {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.mini-card .moves {
  margin-top: 10px;
}
.mini-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* Reveal the conversation in order, once. main.js adds .reveal-on only while
   the page is visible, and removes it after the sequence so nothing stays hidden. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on .reveal {
    opacity: 0;
    transform: translateY(6px);
    animation: reveal 0.5s ease forwards;
    animation-delay: calc(var(--i, 0) * 450ms + 300ms);
  }
  @keyframes reveal {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}
.section-head {
  max-width: 40rem;
  margin-bottom: 40px;
}
.section-head p {
  color: var(--text-2);
  margin-top: 14px;
  font-size: 1.0625rem;
}
.section-alt {
  background: var(--bg-2);
}
.section-head .kicker,
.kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

/* Demo video */
.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.video-frame video,
.video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.video-poster {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
}
.play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-text);
  margin-bottom: 8px;
}
.poster-title {
  font-family: var(--serif);
  font-size: 1.375rem;
}
.poster-sub {
  color: var(--text-3);
  font-size: 0.9375rem;
  max-width: 30rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.step {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.step h3 {
  margin-bottom: 6px;
}
.step p {
  color: var(--text-2);
  font-size: 0.9375rem;
}
.step code,
.prose code,
.plain-list code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-2);
  border-radius: 4px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}
.steps-vertical {
  grid-template-columns: 1fr;
  margin: 32px 0 56px;
}

/* ---------- Board ---------- */

.views-grid {
  display: grid;
  gap: 24px;
}
.panel {
  background: var(--bg);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 0.5px solid var(--border-2);
}
.panel-head strong {
  font-weight: 600;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 12px;
  padding: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.col {
  background: var(--bg-2);
  border-radius: var(--r-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 4px;
}
.col-head .total {
  margin-left: auto;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot, var(--text-3));
}
.deal {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.875rem;
}
.deal .title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deal .meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.deal.lifted {
  transform: rotate(-2deg);
  box-shadow: var(--shadow-lg);
  outline: 1.5px solid var(--accent);
}
.overdue {
  color: var(--danger);
}
.who {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 1px 8px;
}
.who.claude {
  color: var(--claude);
  background: var(--claude-soft);
}
.who.you {
  color: var(--you);
  background: var(--you-soft);
}

.features {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.features li h3 {
  margin-bottom: 4px;
}
.features li p {
  color: var(--text-2);
  font-size: 0.9375rem;
}
.features .icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Pricing ---------- */

.price-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 5vw, 40px);
}
.price-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 6px;
  font-size: clamp(2.75rem, 8vw, 3.5rem);
}
.price-unit {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text-3);
  letter-spacing: 0;
}
.price-note {
  color: var(--text-2);
}
.spots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.includes {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  border-top: 0.5px solid var(--border);
}
.includes li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border-2);
  color: var(--text-2);
  font-size: 0.9375rem;
}
.includes li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%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 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sold-out .spots {
  background: var(--bg-2);
  color: var(--text-3);
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 0.5px solid var(--border);
}
.faq {
  border-bottom: 0.5px solid var(--border);
}
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: var(--text-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%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 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s;
}
.faq[open] summary::after {
  transform: rotate(180deg);
}
.faq p {
  color: var(--text-2);
  padding-bottom: 16px;
}
.faq a {
  color: var(--accent);
}

/* ---------- Closing CTA ---------- */

.closing {
  text-align: center;
}
.closing h2 {
  max-width: 18ch;
  margin: 0 auto;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 40px 0 56px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-inner a {
  color: var(--text-2);
}

/* ---------- Setup, thanks and privacy pages ---------- */

main.section h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
}
main.section .lede {
  margin-left: 0;
  margin-right: 0;
}
main.section h2 {
  font-size: 1.625rem;
  margin: 40px 0 12px;
}
main.section > .wrap > p {
  margin-top: 16px;
}
.plain-list,
.prose ul {
  padding-left: 1.2em;
  color: var(--text-2);
}
.plain-list li,
.prose li {
  margin: 8px 0;
}
.prose p {
  margin: 12px 0;
  color: var(--text-2);
}
.prose a,
.plain-list a,
main.section .fine-print a {
  color: var(--accent);
}
