/* TheOneC website. One dark theme (the product's own), readable at any width. */
:root {
  --bg: #0f0e14; --bg-2: #15131c; --panel: #1b1824; --line: #2c2838; --ink: #ece9f5; --muted: #a8a2ba;
  --accent: #8b5cf6; --accent-2: #b49cff; --ok: #4ade80; --warn: #fbbf24; --err: #fb7185;
  --grad: linear-gradient(90deg, #f43f5e, #f59e0b 25%, #22c55e 50%, #3b82f6 75%, #8b5cf6);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); }
a:hover { color: #fff; }
code { font: .92em var(--mono); background: #ffffff12; padding: .08em .35em; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* header and footer */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - 1160px) / 2)); background: #0f0e14e6; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.1rem; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top nav .nav-cta { color: var(--ink); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 32px 0 48px;
  border-top: 1px solid var(--line); margin-top: 48px; color: var(--muted); font-size: .9rem; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 600 .97rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: #4a4460; color: #fff; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #7c4ef0; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 64px 0 56px; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; color: var(--muted); font-weight: 650; margin-bottom: 14px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.12rem; color: #d6d1e6; max-width: 60ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.fine { font-size: .88rem; color: var(--muted); }
.center { text-align: center; }

/* the code sample */
.sample { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px #0008; }
.sample-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3a3548; }
.sample-name { margin-left: 8px; font: .8rem var(--mono); color: var(--muted); }
.code { margin: 0; padding: 12px 0; overflow-x: auto; font: 13px/1.6 var(--mono); }
.code .row { display: grid; grid-template-columns: 44px max-content; align-items: center; min-height: 1.6em; }
.code .tag { justify-self: start; margin-left: 10px; font: 700 9px/1 var(--sans); letter-spacing: .04em; padding: 3px 4px; border-radius: 3px; color: #0f0e14; }
.code .tag.none { visibility: hidden; }
.code .txt { white-space: pre; padding-right: 16px; color: #e6e1f2; border-left: 3px solid transparent; padding-left: 10px; }
.code .out { border-top: 1px solid var(--line); margin-top: 8px; padding: 10px 16px 0; color: #c8f7c5; white-space: pre; }
.code .out b { color: var(--muted); font-weight: 400; }
.sample figcaption { padding: 10px 14px 12px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); }

/* how it works */
.how { padding: 40px 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps article { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); font-weight: 750; margin-bottom: 12px; }
.steps p { color: #d6d1e6; margin: 0; }

/* audiences */
.audience { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 56px 0; border-top: 1px solid var(--line); }
.audience-copy > p { color: #d6d1e6; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; color: #d6d1e6; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.use { color: var(--muted) !important; font-size: .95rem; }
.lessons { margin: 0 0 18px; padding-left: 22px; color: #d6d1e6; }
.lessons li { margin-bottom: 4px; }
.lessons span { color: var(--muted); font-size: .92rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.audience-art dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0; }
.audience-art dt { color: var(--muted); }
.audience-art dd { margin: 0; }
.shot { margin: 0; }
.shot img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 60px #0008; }
.shot figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* pricing */
.pricing { padding: 56px 0; border-top: 1px solid var(--line); }
.pricing .sub { color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 24px 0 18px; }
.plan { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.plan.featured { border-color: #6d4fd0; box-shadow: 0 0 0 1px #6d4fd0 inset; }
.plan > p { color: #d6d1e6; }
.price { font-size: 1rem; color: var(--muted) !important; }
.price .amount { font-size: 2.1rem; font-weight: 750; color: var(--ink); margin-right: 4px; }
.seats { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 6px; color: var(--muted); }
.seats input { width: 96px; min-height: 40px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 1rem var(--sans); }
.total { min-height: 1.5em; font-weight: 650; color: var(--ink) !important; }
.plan .buy { margin-top: auto; width: 100%; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.notice { background: #2a2140; border: 1px solid #4b3a78; border-radius: 10px; padding: 12px 16px; color: #e3dbff; }

/* limits and FAQ */
.limits { padding: 48px 0; border-top: 1px solid var(--line); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.two p { color: #d6d1e6; }
.faq { padding: 48px 0 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 650; min-height: 32px; }
.faq details p { color: #d6d1e6; margin: 10px 0 4px; }

/* license page and long text */
.license-page { padding: 40px 0; max-width: 760px; }
.license-page .panel { margin-bottom: 18px; }
.license-page form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.license-page label { width: 100%; color: var(--muted); font-size: .9rem; }
.license-page input { flex: 1 1 260px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font: 1rem var(--mono); }
.key-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.key-row code { font-size: 1.05rem; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); overflow-wrap: anywhere; }
.warn { color: var(--warn); }
.error { color: var(--err); background: #3a1620; border: 1px solid #6b2333; border-radius: 10px; padding: 12px 16px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.license-page ol { padding-left: 20px; }
.license-page ol li { margin-bottom: 8px; }
.prose { max-width: 760px; padding: 40px 0; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose p, .prose li { color: #d6d1e6; }

@media (max-width: 900px) {
  .hero, .audience { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 40px; }
  .steps, .plans, .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .top nav a:not(.nav-cta) { display: none; }
  .code { font-size: 11.5px; }
  .code .row { grid-template-columns: 36px max-content; }
  .audience-art dl, .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .audience-art dd, .facts dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.agree { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: #d6d1e6; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.sub-head { font-size: 1rem; margin: 18px 0 10px; color: var(--muted); letter-spacing: .04em; }
