/* TurnBot — turnbot.app */

:root {
  --paper: #f5f2ea;
  --surface: #fffdf8;
  --ink: #16150f;
  --ink-2: #45423a;
  --muted: #77726a;
  --rule: #e2dbcc;
  --rule-strong: #cfc5b1;
  --accent: #0e6b47;
  --accent-hover: #0a5638;
  --accent-soft: #e1eee6;
  --on-accent: #ffffff;
  --chat-bg: #ebe5d8;
  --bubble-in: #fffdf8;
  --bubble-out: #d9efe1;
  --mark-sim: #f4c4bf;
  --mark-ai: #c9e6ee;
  --band: #16150f;
  --on-band: #f5f2ea;
  --shadow: 0 1px 2px rgba(22, 21, 15, 0.06), 0 12px 32px -12px rgba(22, 21, 15, 0.18);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1120px;
  --gutter: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12120f;
    --surface: #1a1a16;
    --ink: #efebe2;
    --ink-2: #c8c3b8;
    --muted: #96918a;
    --rule: #2b2a24;
    --rule-strong: #3a3830;
    --accent: #4fbf8b;
    --accent-hover: #6acb9c;
    --accent-soft: #17362a;
    --on-accent: #0c1a13;
    --chat-bg: #1f1e19;
    --bubble-in: #2a2923;
    --bubble-out: #1c3a2c;
    --mark-sim: #6a3430;
    --mark-ai: #24505b;
    --band: #efebe2;
    --on-band: #16150f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 36px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ── header ─────────────────────────────────────────────── */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand-mark-bg { fill: var(--accent); }
.brand-mark-fg { fill: var(--paper); }

.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }

.site-header .btn { padding: 9px 16px; font-size: 0.92rem; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
}
@media (max-width: 420px) {
  .site-header .wrap { gap: 16px; }
  .site-header .btn { padding: 8px 12px; font-size: 0.86rem; }
}

/* ── buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[aria-disabled="true"] { cursor: default; opacity: 0.72; }
.btn[aria-disabled="true"]:hover { background: var(--accent); }

/* ── hero ───────────────────────────────────────────────── */

.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 72px; align-items: center; }

.eyebrow { display: inline-block; font-size: 0.95rem; font-weight: 600; color: var(--accent); margin-bottom: 16px; }

.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 13.5em; }

.hl {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--mark-sim) 58%, var(--mark-sim) 92%, transparent 92%);
  padding: 0 0.04em;
}

.lead { margin-top: 24px; font-size: 1.16rem; color: var(--ink-2); max-width: 34em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin: 48px 0 0; padding: 0; border-top: 1px solid var(--rule);
}
.facts div { padding: 16px 18px 0 0; }
.facts div + div { padding-left: 18px; border-left: 1px solid var(--rule); }
.facts dt { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.facts dd { margin: 3px 0 0; font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); }

@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── chat illustration ──────────────────────────────────── */

.chat-figure { margin: 0; }
.chat {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden; max-width: 430px; margin-left: auto;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.chat-avatar { width: 38px; height: 38px; flex: none; }
.chat-name { font-weight: 600; font-size: 0.98rem; line-height: 1.2; }
.chat-status { font-size: 0.8rem; color: var(--muted); }

.chat-body {
  background: var(--chat-bg); padding: 18px 14px 14px;
  display: flex; flex-direction: column; gap: 6px;
  height: 640px; justify-content: flex-end; overflow: hidden; position: relative;
}
.chat-body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 36px; z-index: 1; pointer-events: none;
  background: linear-gradient(var(--chat-bg), transparent);
}

.chat-day {
  align-self: center; font-size: 0.72rem; color: var(--muted);
  background: var(--bubble-in); border-radius: 6px; padding: 3px 10px; margin-bottom: 4px;
}

.msg {
  max-width: 84%; padding: 7px 10px 5px; border-radius: 12px;
  font-size: 0.9rem; line-height: 1.42; box-shadow: 0 1px 0 rgba(22, 21, 15, 0.05);
}
.msg.in { align-self: flex-start; background: var(--bubble-in); border-top-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 4px; }
.msg p + p { margin-top: 2px; }
.msg b { font-weight: 600; }
.msg-meta {
  display: flex; justify-content: flex-end; align-items: center; gap: 3px;
  margin-top: 2px; font-size: 0.68rem; color: var(--muted); line-height: 1;
}
.msg-meta svg { width: 16px; height: 11px; color: var(--accent); }

.file { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; min-width: 228px; padding: 2px 0 0; }
.file-ext {
  width: 34px; height: 42px; border-radius: 5px; display: grid; place-items: end center; padding-bottom: 5px;
  font-size: 0.56rem; font-weight: 700; color: #fff;
}
.file-ext.docx { background: #2f5d9e; }
.file-ext.pdf { background: #c0392b; }
.file-name { display: block; font-weight: 500; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { display: block; font-size: 0.74rem; color: var(--muted); }

.preview {
  height: 56px; margin: 0 -4px 8px; border-radius: 8px; padding: 9px 12px;
  background: #fbfaf7; border: 1px solid rgba(22, 21, 15, 0.08); overflow: hidden;
  display: flex; flex-direction: column; gap: 5px;
}
@media (prefers-color-scheme: dark) { .preview { background: #f1eee6; } }
.preview i { display: block; height: 4px; flex: none; border-radius: 2px; background: #d9d4c9; }
.preview i.s { background: #f0a39b; }
.preview i.a { background: #8fd0de; }
.w90 { width: 90%; } .w75 { width: 75%; } .w82 { width: 82%; } .w60 { width: 60%; } .w95 { width: 95%; } .w48 { width: 48%; }

.chat-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--rule); }
.chat-input { flex: 1; font-size: 0.86rem; color: var(--muted); background: var(--paper); border-radius: 999px; padding: 8px 14px; }
.chat-foot svg { width: 20px; height: 20px; color: var(--muted); flex: none; }

.chat-caption { margin-top: 12px; text-align: right; font-size: 0.8rem; color: var(--muted); max-width: 430px; margin-left: auto; }

@media (max-width: 960px) {
  .chat, .chat-caption { margin-left: 0; margin-right: auto; }
  .chat-caption { text-align: left; }
}
@media (max-width: 480px) {
  .chat-body { height: auto; }
  .chat-body::before { display: none; }
  .file { min-width: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .chat-body > * { animation: rise 0.45s ease both; }
  .chat-body > :nth-child(2) { animation-delay: 0.05s; }
  .chat-body > :nth-child(3) { animation-delay: 0.15s; }
  .chat-body > :nth-child(4) { animation-delay: 0.3s; }
  .chat-body > :nth-child(5) { animation-delay: 0.45s; }
  .chat-body > :nth-child(6) { animation-delay: 0.6s; }
  .chat-body > :nth-child(7) { animation-delay: 0.75s; }
  .chat-body > :nth-child(8) { animation-delay: 0.9s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── sections ───────────────────────────────────────────── */

.section { padding: 96px 0; border-top: 1px solid var(--rule); }
.section.alt { background: var(--surface); }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.section-head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.55rem); max-width: 15em; }
.section-head p { color: var(--ink-2); max-width: 34em; }
.kicker { display: block; font-size: 0.95rem; color: var(--accent); margin-bottom: 10px; font-weight: 600; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 16px; } }

/* comparison */

.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 20px 24px 20px 0; border-bottom: 1px solid var(--rule); }
.compare thead th { padding-top: 0; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.compare thead th:first-child { width: 22%; }
.col-name { display: block; font-size: 1.25rem; }
.col-sub { display: block; margin-top: 2px; font-size: 0.88rem; font-weight: 400; color: var(--muted); }
.compare tbody th { font-weight: 600; font-size: 0.95rem; color: var(--ink); padding-right: 32px; }
.compare td { color: var(--ink-2); width: 39%; }
.tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 5px; vertical-align: 2px;
  font-size: 0.76rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}

.compare-note { margin-top: 22px; font-size: 0.92rem; color: var(--muted); }
.compare-note code { font-family: var(--mono); font-size: 0.86rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 5px; padding: 1px 6px; }

@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .compare tbody th { padding: 0 0 10px; border: 0; font-size: 1rem; }
  .compare td { padding: 6px 0 6px 14px; border: 0; border-left: 2px solid var(--rule-strong); margin-top: 6px; }
  .compare td::before { content: attr(data-col); display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
}

/* steps */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.step-num { font-size: 0.95rem; color: var(--accent); font-weight: 600; }
.steps h3 { margin-top: 10px; font-size: 1.28rem; }
.steps p { margin-top: 10px; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

.commands {
  margin-top: 64px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 32px;
}
.section.alt .commands { background: var(--paper); }
.commands h3 { font-size: 1.3rem; }
.commands > div > p { margin-top: 10px; color: var(--ink-2); }
.cmd-list { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 14px 22px; align-items: baseline; }
.cmd-list dt { font-family: var(--mono); font-size: 0.9rem; font-weight: 500; background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 2px 9px; justify-self: start; }
.cmd-list dd { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 760px) {
  .commands { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .cmd-list { grid-template-columns: 1fr; gap: 4px; }
  .cmd-list dd { margin-bottom: 12px; }
}

/* paying */

.pay { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
.pay h2 { font-size: clamp(1.8rem, 3.2vw, 2.55rem); }
.pay-intro p { margin-top: 18px; color: var(--ink-2); max-width: 30em; }
.pay-list { list-style: none; margin: 0; padding: 0; }
.pay-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.pay-list li:first-child { padding-top: 0; }
.pay-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pay-icon svg { width: 20px; height: 20px; }
.pay-list h3 { font-size: 1.08rem; }
.pay-list p { margin-top: 4px; color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 860px) { .pay { grid-template-columns: 1fr; gap: 32px; } }

/* faq */

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
  padding: 20px 0; font-weight: 600; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-top: 7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 22px 0; color: var(--ink-2); }

/* closing band */

.band { background: var(--band); color: var(--on-band); padding: 80px 0; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 16em; }
.band p { margin-top: 10px; opacity: 0.75; }
.band .btn-primary { background: var(--on-band); color: var(--band); }
.band .btn-primary:hover { background: var(--on-band); opacity: 0.9; }
.band .btn[aria-disabled="true"]:hover { opacity: 0.72; }

/* footer */

.site-footer { padding: 40px 0 56px; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 32px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand .brand { color: var(--ink); font-size: 1rem; }

/* legal pages */

.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc .updated { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.doc h2 { font-size: 1.25rem; margin-top: 44px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent); }

.notfound { padding: 120px 0; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.notfound p { margin: 16px 0 28px; color: var(--ink-2); }

/* accepted payment marks */

.paymarks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.paymark {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; min-width: 46px; padding: 0 9px;
  background: #ffffff; border: 1px solid #e3ddd0; border-radius: 6px;
}
.paymark img { height: 18px; width: auto; }
@media (prefers-color-scheme: dark) { .paymark { border-color: transparent; } }

.secure-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
.secure-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }

.pay-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.pay-strip-label { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.pay-strip-label svg { width: 16px; height: 16px; color: var(--accent); }
.pay-strip .paymarks { margin-top: 0; }
