/* Shared styles for the Turnhuddle site. Same structure as the Kube Console site, recoloured for Claude (terracotta) and Codex (green). */
:root {
  --bg: #faf9f7; --bg-2: #f3f0ec; --text: #16130f; --muted: #5a544c; --faint: #8c857b; --line: #e7e2da; --card: #ffffff;
  --accent: #c2613f; --accent-2: #a9512f; --accent-soft: #f8e9e2;
  --claude: #d97757; --codex: #10a37f; --claude-soft: #f9ebe5; --codex-soft: #e2f4ee;
  --ok: #16a34a; --ok-soft: #e3f6ea; --warn: #b7791f;
  --shadow: 0 1px 2px rgba(22,19,15,.04), 0 16px 48px rgba(120,70,40,.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e0d; --bg-2: #171513; --text: #f2efea; --muted: #aaa298; --faint: #7d766d; --line: #2a2622; --card: #1a1816;
    --accent: #e58a6b; --accent-2: #f0a084; --accent-soft: #2d1d17;
    --claude: #e58a6b; --codex: #2fc79b; --claude-soft: #2d1d17; --codex-soft: #12271f;
    --ok: #3ccf8e; --ok-soft: #13271d; --warn: #f0b44b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 48px rgba(0,0,0,.5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
code { font: 0.9em ui-monospace, "SF Mono", Menlo, monospace; background: var(--bg-2); padding: 1px 6px; border-radius: 5px; }

/* nav */
nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
nav .wrap { display: flex; align-items: center; gap: 26px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.navlinks { display: flex; gap: 22px; margin-left: auto; font-size: 15px; align-items: center; }
.navlinks a { color: var(--muted); }
.navlinks a:hover, .navlinks a.on { color: var(--text); text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 20px; font-weight: 600; font-size: 16px; border: 1px solid transparent; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.navlinks .btn.primary { color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { color: var(--text); border-color: var(--line); background: var(--card); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* hero */
.hero { padding: 76px 0 24px; text-align: center; }
.pill { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 13px; margin-bottom: 22px; }
.pill b { color: var(--accent); font-weight: 600; white-space: nowrap; }
a.pill { transition: border-color .15s, color .15s; }
a.pill:hover { text-decoration: none; border-color: var(--accent); color: var(--text); }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 auto 20px; max-width: 920px; }
.grad { background: linear-gradient(100deg, var(--claude), var(--codex)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 730px; margin: 0 auto 30px; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--faint); margin-top: 14px; }
.shot { margin: 52px auto 0; max-width: 1140px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.shot.small { margin: 0; }
.chrome { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.chrome i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .chrome i:nth-child(2) { background: #febc2e; } .chrome i:nth-child(3) { background: #28c840; }
.chrome span { flex: 1; text-align: center; font-size: 12.5px; color: var(--faint); margin-right: 50px; }
.logos { display: flex; justify-content: center; gap: 12px 28px; flex-wrap: wrap; margin: 36px 0 0; color: var(--muted); font-size: 15px; }
.logos span { display: inline-flex; align-items: center; gap: 8px; }
.mk { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; color: #fff; font: 700 10px/1 -apple-system, sans-serif; font-style: normal; }
.mk.c { background: var(--claude); } .mk.x { background: var(--codex); } .mk.v { background: #0078d4; }

/* sections */
section { padding: 92px 0; }
section.alt { background: var(--bg-2); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 16px; }
.sub { color: var(--muted); font-size: 19px; max-width: 680px; margin: 0 0 44px; }
.center { text-align: center; } .center .sub { margin-left: auto; margin-right: auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step, .feat, .stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.num { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.step h3, .feat h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.step p, .feat p { margin: 0; color: var(--muted); font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split.flip { grid-template-columns: 1.25fr 1fr; }
.split.flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--muted); }
.ticks li::before { content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2613f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks b { color: var(--text); font-weight: 600; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ico { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.ico svg { width: 21px; height: 21px; }
.ico.green { background: var(--codex-soft); color: var(--codex); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.stat b { display: block; font-size: 42px; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15.5px; }

table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 16px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
td .mk { margin-right: 8px; vertical-align: -5px; }
.tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.tag.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.tag.beta { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.table-wrap { overflow-x: auto; border-radius: 16px; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--faint); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin: 12px 0 2px; }
.faq { max-width: 820px; margin: 0 auto; }

.final { text-align: center; padding: 100px 0; }
.final h2 { margin-bottom: 14px; }
footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--faint); font-size: 14.5px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .sp { flex: 1; }
footer a { color: var(--muted); }

/* the relay, drawn in HTML: one card per turn */
.relay { display: grid; gap: 10px; }
.turn { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; position: relative; }
.turn + .turn::before { content: ''; position: absolute; left: 32px; top: -11px; height: 10px; border-left: 2px dashed var(--line); }
.turn .who { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 12px/1 -apple-system, sans-serif; }
.turn .who.you { background: var(--faint); } .turn .who.c { background: var(--claude); } .turn .who.x { background: var(--codex); }
.turn p { margin: 0; font-size: 15.5px; color: var(--muted); } .turn p b { color: var(--text); }
.verdict { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.verdict.go { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.verdict.ok { background: var(--ok-soft); color: var(--ok); }
.turn.done { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.turn.done p { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .steps, .features, .stats, .three { grid-template-columns: 1fr; }
  .split, .split.flip { grid-template-columns: 1fr; gap: 32px; }
  .split.flip > :first-child { order: 0; }
  .navlinks a:not(.btn) { display: none; }
  section { padding: 68px 0; }
  .hero { padding-top: 52px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .chrome span { display: none; }
  .ctas .btn { width: 100%; }
}
@media (max-width: 640px) {
  table thead { display: none; }
  table tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  table tr:last-child { border-bottom: 0; }
  table td { display: block; border: 0; padding: 4px 18px; }
  table td:first-child { font-weight: 600; padding-top: 8px; }
  table td[data-l]::before { content: attr(data-l) ": "; color: var(--faint); font-size: 14px; }
}
