/* Cleave v2 mock: the clean modern product-site standard (bar: cal.com, Clerk, dub.co, Linear, Vercel, Stripe, Notion).
   White ground, zinc greys, near-black ink and primary; colour only in the data. Geist for Latin, Anuphan for Thai. */
:root {
  color-scheme: light;
  --bg: #ffffff; --subtle: #fafafa; --wash: #f4f4f5; --line: #e8e8ea; --line-2: #d9d9de;
  --ink: #111113; --ink-2: #3f3f46; --mute: #63636b;
  --green: #15803d; --green-bg: #ecfdf3; --green-line: #bbe5c8;
  --red: #b42318; --red-bg: #fef1f0;
  --blue: #2563eb; --blue-bg: #eef3ff;
  --amber-bg: #fffbeb; --amber-line: #fde68a; --amber-ink: #92400e;
  --sans: "Geist", "Anuphan", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --r-card: 12px; --r-ctl: 8px;
  --pad: max(16px, calc((100vw - 1200px) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); font-feature-settings: "tnum" 0; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #dbe7ff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
#skip { position: absolute; left: 16px; top: 8px; transform: translateY(-200%); background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 20; border: 1px solid var(--line); }
#skip:focus { transform: none; }
.frame { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-ctl);
  border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s; }
.btn:hover { background: var(--subtle); border-color: #c4c4cb; }
.btn:active { transform: translateY(1px); }
.btn.p { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.p:hover { background: #2a2a2e; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.ghost { border-color: transparent; color: var(--mute); }
.btn.ghost:hover { color: var(--ink); background: var(--wash); }
.btn.block { width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* header */
#site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 32px; height: 60px; padding: 0 var(--pad);
  background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 600 17px var(--sans); letter-spacing: -.02em; }
.logo { width: 20px; height: 20px; fill: var(--ink); }
.links { display: flex; gap: 24px; font-size: 14px; color: var(--mute); }
.links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.lang button { border: 0; background: none; border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 500; color: var(--mute); cursor: pointer; }
.lang [aria-pressed="true"] { background: var(--wash); color: var(--ink); }

/* footer */
#site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 40px var(--pad) 48px; display: grid; grid-template-columns: 1fr auto; gap: 24px; font-size: 14px; color: var(--mute); }
.foot-brand p { margin-top: 10px; max-width: 40ch; }
.foot-brand .brand { color: var(--ink); }
.foot-links { display: flex; gap: 24px; align-items: start; }
.foot-links a:hover { color: var(--ink); }
.copy { grid-column: 1 / -1; font-size: 13px; }

/* hub: hero */
.hero { text-align: center; padding: 88px 0 0; }
.hero h1 { font-size: 60px; line-height: 1.15; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 span { display: inline-block; }
.hero-sub { font-size: 18px; color: var(--ink-2); max-width: 58ch; margin: 20px auto 0; text-wrap: pretty; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.demo { margin: 64px auto 0; max-width: 1040px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--subtle); font-size: 13px; }
.demo-file { font-weight: 500; }
.demo-count { color: var(--green); font-weight: 500; }
.demo .table-wrap { border: 0; border-radius: 0; margin: 0; }

.works { display: flex; align-items: center; justify-content: center; gap: 12px 32px; flex-wrap: wrap; padding: 48px 0 0; font-size: 14px; color: var(--mute); }
.works ul { display: flex; gap: 12px 28px; flex-wrap: wrap; justify-content: center; }
.works li { font-weight: 600; color: #52525b; letter-spacing: -.01em; }

/* hub: sections */
.section { padding-top: 112px; scroll-margin-top: 72px; }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head h2, .closing h2 { font-size: 36px; line-height: 1.2; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.section-head p { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { grid-column: span 2; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; overflow: hidden;
  transition: border-color .2s, box-shadow .2s; }
.tile.w3 { grid-column: span 3; }
.tile:hover { border-color: var(--line-2); box-shadow: 0 12px 32px -20px rgba(17,17,19,.25); }
.tile-copy { padding: 24px 24px 20px; }
.tile h3 { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; }
.tile-copy p { margin-top: 6px; font-size: 15px; color: var(--mute); }
.tile .scene { flex: 1; margin: 0 24px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--subtle); overflow: hidden; min-height: 190px; position: relative; }
.tile-go { display: inline-flex; align-items: center; gap: 6px; padding: 14px 24px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.tile:hover .tile-go { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tile.wide { flex-direction: row; }
.tile.wide .tile-copy { flex: 1; display: flex; flex-direction: column; padding: 32px; }
.tile.wide .tile-go { border: 0; padding: 0; margin-top: auto; }
.tile.wide .stack { font-size: 13px; color: var(--mute); margin: 12px 0 24px; }
.poll { flex: 1.3; display: grid; grid-template-columns: 1fr 1fr; min-height: 240px; }
.poll div { display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: #fff; }
.poll div:first-child { background: #c8323a; } .poll div:last-child { background: var(--blue); }
.poll b { font-size: 36px; line-height: 1; font-weight: 600; } .poll span { margin-top: 6px; font-weight: 500; }

.closing { margin-top: 112px; padding: 72px 24px; text-align: center; border: 1px solid var(--line); border-radius: 20px; background: var(--subtle); scroll-margin-top: 72px; }
.closing p { margin-top: 12px; font-size: 16px; color: var(--ink-2); }

/* hub: previews (real tool output on sample data) */
.mini { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; font-variant-numeric: tabular-nums; }
.mini th, .mini td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.mini th { font-weight: 500; font-size: 12px; color: var(--mute); }
.mini .was { color: #8b8b93; text-decoration: line-through; margin-right: 6px; }
.mini .ok { color: var(--green); font-weight: 500; background: var(--green-bg); }
.note { font-size: 13px; color: var(--mute); padding: 10px 12px; }
.kp { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border-bottom: 1px solid var(--line); }
.kp div { padding: 12px 14px; } .kp div + div { border-left: 1px solid var(--line); }
.kp small { display: block; font-size: 12px; color: var(--mute); }
.num { font-weight: 600; font-variant-numeric: tabular-nums; }
.kp .num { font-size: 20px; letter-spacing: -.02em; }
.up { color: var(--green); } .down { color: var(--red); }
.spark { width: 100%; height: 90px; display: block; margin-top: 8px; }
.alpha { display: flex; gap: 12px; align-items: center; padding: 16px 16px 10px; }
.alpha .num { font-size: 36px; letter-spacing: -.03em; color: var(--ink); }
.alpha .num.low { color: var(--red); }
.alpha span:last-child { font-size: 13px; color: var(--mute); line-height: 1.4; }
.lk { padding: 0 16px 16px; display: grid; gap: 8px; }
.lk div { display: grid; grid-template-columns: 54px 1fr 38px; gap: 10px; align-items: center; font-size: 13px; }
.lk b { height: 6px; border-radius: 3px; background: #e4e4e7; display: block; position: relative; overflow: hidden; }
.lk b i { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 3px; }
.lk .weak b i { background: var(--red); } .lk .weak span { color: var(--red); }
.snippet { font: 400 12.5px/1.7 var(--mono); padding: 14px 16px; color: #3f3f46; white-space: pre; overflow: hidden; margin: 0; }
.snippet .c { color: #71717a; }

/* tool page */
.tool-head { padding-top: 40px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--mute); }
.crumbs a:hover { color: var(--ink); }
.tool-head h1 { margin-top: 12px; font-size: 32px; line-height: 1.25; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.tool-lede { margin-top: 8px; font-size: 16px; color: var(--ink-2); max-width: 70ch; }
.tool { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 32px; }
.panel { border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; min-width: 0; }
.side section { padding: 20px; }
.side section + section { border-top: 1px solid var(--line); }
.side h2, .results h2 { font-size: 14px; font-weight: 600; letter-spacing: -.005em; margin-bottom: 12px; }
.drop { border: 1px dashed var(--line-2); border-radius: 10px; padding: 20px 16px; text-align: center; background: var(--subtle); transition: border-color .15s, background-color .15s; }
.drop.over { border-color: var(--blue); background: var(--blue-bg); }
.drop p { font-size: 14px; color: var(--mute); }
.drop .row { margin-top: 10px; display: flex; justify-content: center; }
.drop .file { margin-top: 8px; font-weight: 500; color: var(--ink); word-break: break-all; }
.drop label.btn { height: 32px; font-size: 13px; }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; cursor: pointer; }
.toggle input { appearance: none; flex: none; width: 34px; height: 20px; margin: 0; border-radius: 999px; cursor: pointer;
  background: radial-gradient(circle at 10px 50%, #fff 7px, transparent 7.5px) #d4d4d8; transition: background-color .15s; }
.toggle input:checked { background: radial-gradient(circle at 24px 50%, #fff 7px, transparent 7.5px) var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mute); min-width: 0; }
.field select, .field input, textarea { height: 36px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: 0 10px; background: #fff; font-size: 14px; color: var(--ink); width: 100%; min-width: 0; }
.field select:focus, .field input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px #e4e4e7; }
textarea { height: auto; min-height: 140px; padding: 10px; font: 400 12.5px/1.6 var(--mono); resize: vertical; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fold { margin-top: 14px; }
.fold summary { cursor: pointer; font-size: 14px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.fold summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.fold[open] summary::after { transform: rotate(-135deg); }
.fold summary::-webkit-details-marker { display: none; }
.fold > :not(summary) { margin-top: 12px; }
.status:not(:empty) { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--green-bg); color: var(--green); font-size: 14px; }
.status[data-error="true"] { background: var(--red-bg); color: var(--red); }

.results { padding: 20px; }
.results-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.results-head h2 { font-size: 16px; margin-bottom: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--mute); }
.meta span { white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; }
.stat { padding: 14px 16px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat small { display: block; font-size: 13px; color: var(--mute); }
.stat .num { display: block; margin-top: 2px; font-size: 24px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.hl .num { color: var(--green); }
.notice { margin-top: 16px; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber-ink); font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 14px; font-size: 13px; color: var(--mute); }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.legend .tip { margin-left: auto; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sw.fixed { background: var(--green-bg); box-shadow: inset 0 0 0 1px var(--green-line); }
.sw.gone { height: 2px; width: 14px; background: #a1a1aa; }

/* data table + before | after split */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 16px; max-height: 520px; background: #fff; }
.data { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 14px; font-variant-numeric: tabular-nums; }
.data th, .data td { height: 38px; padding: 0 14px; border-bottom: 1px solid #f0f0f2; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data th { position: sticky; top: 0; z-index: 1; background: #fff; font-size: 13px; font-weight: 500; color: var(--mute); border-bottom-color: var(--line); }
.data td.fixed { background: var(--green-bg); color: var(--green); font-weight: 500; }
.data tr.removed td { color: #6b6b73; text-decoration: line-through; background: var(--subtle); }
.data td.changed-before { background: var(--red-bg); color: var(--red); }
.split { position: relative; }
.split-before { position: absolute; inset: 0; background: #fff; clip-path: inset(0 calc(100% - var(--x)) 0 0); pointer-events: none; }
.split-before td { color: #52525b; }
.split-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--ink); cursor: ew-resize; touch-action: none; z-index: 2; }
.split-handle::before { content: ""; position: absolute; inset: 0 -12px; }
.split-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; padding: 5px 10px;
  background: var(--ink); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; box-shadow: 0 4px 12px -4px rgba(0,0,0,.35); }
.split-knob .ico { width: 14px; height: 14px; stroke-width: 2; }
.split-handle:focus-visible { outline: none; }
.split-handle:focus-visible .split-knob { outline: 2px solid var(--ink); outline-offset: 3px; }

.cta { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--subtle); }
.cta p { font-size: 16px; color: var(--ink-2); max-width: 62ch; }
.cta-go { display: flex; gap: 8px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 960px) {
  .tool { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.w3 { grid-column: span 1; }
  .tile.wide { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .links { display: none; }
  #site-header { gap: 12px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 16px; }
  .demo { margin-top: 40px; }
  .section { padding-top: 72px; }
  .section-head h2, .closing h2 { font-size: 28px; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide { flex-direction: column; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .results-head { flex-direction: column; }
  .legend .tip { margin-left: 0; }
  #site-footer { grid-template-columns: 1fr; }
  .tool-head h1 { font-size: 26px; }
  .crumbs a, .foot-links a { display: inline-block; padding: 11px 0; margin: -11px 0; } /* 44px tap height on phones */
  .data th, .data td { padding: 0 10px; }
}

/* logo: the faceted green mark, no word */
.logo { width: 30px; height: 30px; display: block; }
#site-footer .logo { width: 28px; height: 28px; }

/* hub cards in the Fastwork-cover style: white cards, real program screens; title, picture and link line up across each row */
.bento { gap: 20px; }
body[data-page="index"] .tile { border: 1px solid var(--line); border-radius: 24px; background: #fff; transition: border-color .2s; }
body[data-page="index"] .tile:not(.wide) { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 0; }
body[data-page="index"] .tile:not(.wide) .tile-go { align-self: end; }
body[data-page="index"] .tile:hover { border-color: #c4c4cb; }
body[data-page="index"] .tile-copy { padding: 32px 32px 24px; }
.tile-k { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--wash); font-size: 13px; font-weight: 500; color: var(--ink-2); }
body[data-page="index"] .tile h3 { margin-top: 14px; font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
body[data-page="index"] .tile-copy p { font-size: 16px; margin-top: 8px; }
body[data-page="index"] .tile .scene { margin: 0 32px; height: 260px; min-height: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
body[data-page="index"] .tile.w3 .scene { height: 300px; }
body[data-page="index"] .tile .scene > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
body[data-page="index"] .tile-go { border-top: 0; padding: 20px 32px 28px; font-size: 16px; }
body[data-page="index"] .tile.wide .tile-copy { padding: 40px; }
body[data-page="index"] .tile.wide .poll { border-radius: 0 24px 24px 0; overflow: hidden; }
@media (max-width: 680px) {
  body[data-page="index"] .tile { border-radius: 20px; }
  body[data-page="index"] .tile-copy { padding: 24px 24px 18px; }
  body[data-page="index"] .tile h3 { font-size: 22px; }
  body[data-page="index"] .tile .scene, body[data-page="index"] .tile.w3 .scene { margin: 0 24px; height: 220px; }
  body[data-page="index"] .tile-go { padding: 18px 24px 24px; }
  body[data-page="index"] .tile.wide .poll { border-radius: 0 0 20px 20px; }
}
