/* Keelokit Benchwork — the Keelokit identity (keelokit.com): a cream sky above the surface, a sea that gets
   deeper as you scroll, Cormorant Garamond for display, Karla for text, Fragment Mono for small labels. */
:root {
  --ground: #f6f1e8;
  --ink: #172126;
  --ink-2: #4a5552;
  --line: #e3dccf;
  --card: #fbf8f1;
  --chip: #efe7d6;
  --accent: #114d96;
  --sea-0: #1a64b0;
  --sea-1: #114d96;
  --sea-2: #0b3574;
  --sea-3: #07214e;
  --abyss: #040f28;
  --foam: #f6f1e8;
  --foam-2: rgba(246, 241, 232, 0.72);
  --foam-3: rgba(246, 241, 232, 0.5);
  --glass: rgba(246, 241, 232, 0.06);
  --glass-line: rgba(246, 241, 232, 0.14);
  --board: #fbc82a;
  --foil: #ee7b24;
  --reef: #8fe0c4;
  --err: #ff9a8a;
  --pane-0: #46a3ec; --pane-1: #2479c6; --pane-2: #1a64b0; --pane-line: rgba(223, 243, 255, 0.08);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Fragment Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; color: var(--ink); font: 17px/1.65 var(--font-body); background: linear-gradient(var(--ground) 0 600px, var(--abyss) 600px); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--foil); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--foam); padding: 8px 14px; z-index: 30; }
.skip:focus { left: 8px; }
.mu { color: var(--foam-2); }

/* ---------- the bar: cream over the sky, deep glass over the sea, compact once you scroll ---------- */
.bar { position: sticky; top: 0; z-index: 20; transition: background-color .25s ease, box-shadow .25s ease; }
.bar.is-stuck { background: color-mix(in srgb, var(--ground) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.bar.is-deep { background: rgba(4, 15, 40, 0.82); box-shadow: 0 1px 0 var(--glass-line); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; transition: padding .25s ease; }
.bar.is-stuck .top { padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; letter-spacing: 0.02em; font-size: 18px; color: var(--ink); }
.brand img { border-radius: 8px; box-shadow: 0 4px 12px rgba(17, 77, 150, 0.25); }
.top .links, .top .ends { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 24px); font-size: 15px; }
.top a { text-decoration: none; color: var(--ink-2); }
.top a:hover, .top a[aria-current] { color: var(--ink); }
.top .links a[aria-current] { box-shadow: inset 0 -2px 0 var(--foil); }
.top .signin { color: var(--ink); font-weight: 600; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; font: 600 12px var(--font-body); letter-spacing: 0.08em; color: var(--ink-2); padding: 4px 9px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--foam); }
.top .dl { background: var(--board); color: var(--ink); font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.top .dl:hover { color: var(--ink); filter: brightness(.96); }
.bar.is-deep .brand, .bar.is-deep .top .signin, .bar.is-deep .top a:hover, .bar.is-deep .top a[aria-current] { color: var(--foam); }
.bar.is-deep .top a { color: var(--foam-2); }
.bar.is-deep .top .dl { color: var(--ink); }
.bar.is-deep .lang { border-color: var(--glass-line); }
.bar.is-deep .lang button { color: var(--foam-2); }
.bar.is-deep .lang button[aria-pressed="true"] { background: var(--foam); color: var(--ink); }
@media (max-width: 960px) { .top .links { display: none; } }
@media (max-width: 560px) { .brand span, .top .signin { display: none; } .top { gap: 12px; } }

/* ---------- hero: the cream sky ---------- */
.hero { background: var(--ground); position: relative; padding-bottom: clamp(48px, 7vw, 88px); }
.hero-copy { padding-top: clamp(24px, 4vw, 48px); }
.hero-copy > * { max-width: 640px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.badge { display: inline-block; font: 12px/1.4 var(--font-mono); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip); color: var(--ink); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.hero-eyebrow { margin-top: 22px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(46px, 7.4vw, 96px); line-height: 0.98; letter-spacing: -0.015em; margin-top: 14px; color: var(--ink); max-width: 980px; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; margin-top: 26px; }
.hero .lead-2 { font-size: 15px; color: var(--ink-2); margin-top: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--sea-1); color: var(--foam); text-decoration: none; font: 600 15px var(--font-body); border: 0; cursor: pointer; transition: background-color .2s ease, transform .2s ease; white-space: nowrap; }
.btn:hover { background: var(--sea-2); transform: translateY(-1px); }
.btn.board { background: var(--board); color: var(--ink); }
.btn.board:hover { background: #ffd84f; }
.btn.light { background: var(--foam); color: var(--sea-2); }
.btn.light:hover { background: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* the crew panel: the seats on a sea pane, like the illustrations on keelokit.com */
.hero-art { margin-top: clamp(32px, 5vw, 56px); }
.pane { position: relative; border-radius: 20px; overflow: hidden; background: linear-gradient(var(--pane-0) 0%, var(--pane-1) 38%, var(--pane-2) 100%); box-shadow: 0 24px 50px -28px rgba(7, 33, 78, 0.6); }
.pane::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 26px, var(--pane-line) 26px 28px); pointer-events: none; }
.crew { padding: clamp(18px, 4vw, 44px); }
.seats { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(6px, 1.4vw, 14px); }
.seat { aspect-ratio: 1; border-radius: 28%; background: rgba(4, 15, 40, 0.18); box-shadow: inset 0 0 0 1.5px rgba(223, 243, 255, 0.35); position: relative; transition: background-color .6s ease, box-shadow .6s ease; }
.seat::after { content: ""; position: absolute; inset: 32%; border-radius: 50%; background: rgba(223, 243, 255, 0.35); transition: background-color .6s ease; }
.seat.busy { background: var(--foam); box-shadow: 0 6px 14px -6px rgba(2, 26, 64, .6); }
.seat.busy::after { background: var(--sea-1); }
.seat.help { background: var(--board); box-shadow: 0 6px 14px -6px rgba(2, 26, 64, .6), 0 0 0 5px rgba(251, 200, 42, .18); }
.seat.help::after { background: var(--foil); }
.legend { position: relative; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 22px; color: var(--foam); font-size: 14px; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; box-shadow: inset 0 0 0 1.5px rgba(223, 243, 255, 0.6); }
.dot.busy { background: var(--foam); }
.dot.help { background: var(--board); box-shadow: none; }
.util { margin-left: auto; font: 12px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; background: rgba(4, 15, 40, 0.45); padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.util output { font: 600 16px var(--font-body); color: var(--board); font-variant-numeric: tabular-nums; }

/* ---------- under the surface: one long gradient, darker as you go down ---------- */
.sea { color: var(--foam); background: linear-gradient(180deg, var(--sea-0) 0%, var(--sea-1) 14%, var(--sea-2) 38%, var(--sea-3) 68%, var(--abyss) 100%); position: relative; overflow: hidden; }
.section, .band { padding-block: clamp(64px, 9vw, 120px) 0; }
.band .wrap.note { margin-top: 18px; }
.sea > section:last-of-type { padding-bottom: clamp(64px, 9vw, 120px); }
.depth { font: 12px var(--font-mono); color: var(--foam-3); letter-spacing: 0.06em; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.depth::before { content: ''; width: 18px; border-top: 1px solid var(--foam-3); }
.sea .eyebrow { color: var(--foam-2); margin-bottom: 14px; }
.sea h2 { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.01em; color: var(--foam); max-width: 20ch; }
.sea h3 { font-size: 18px; font-weight: 600; color: var(--foam); margin-bottom: 8px; }
.sub { margin-top: 18px; font-size: 18px; color: var(--foam-2); max-width: 640px; }
.note { color: var(--foam-3); font-size: 14px; margin-top: 18px; }
.note a { color: var(--board); font-weight: 600; text-decoration: none; }
.note a:hover { text-decoration: underline; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two .mu { margin-top: 18px; font-size: 17px; }
.stats { display: grid; gap: 14px; }
.stat { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 18px 22px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 14px; }
.stat b { font: italic 500 40px/1 var(--font-display); color: var(--board); }
.stat span { color: var(--foam-2); font-size: 15.5px; }
.card { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 14px; padding: 24px; transition: border-color .25s ease, background-color .25s ease; }
.card:hover { border-color: rgba(251, 200, 42, 0.5); background: rgba(246, 241, 232, 0.09); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.grid3 p { color: var(--foam-2); font-size: 15.5px; }
.grid3 h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.1; }
.num { display: block; font: 12px var(--font-mono); letter-spacing: 0.06em; color: var(--board); margin-bottom: 14px; text-transform: uppercase; }
.suite.here { border-color: var(--board); background: rgba(251, 200, 42, 0.07); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 20px; color: var(--foam-2); font-size: 15.5px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--reef); }
.ticks.big li { font-size: 17px; color: var(--foam); padding: 14px 0 14px 24px; border-bottom: 1px solid var(--glass-line); }
.ticks.big li::before { top: 1.25em; }

/* ROI */
.roi { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; margin-top: 44px; padding: clamp(20px, 3.5vw, 36px); }
.roi:hover { border-color: var(--glass-line); background: var(--glass); }
.roi-inputs { display: grid; gap: 26px; }
.range { display: grid; gap: 10px; }
.range label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.range output { font: 600 16px var(--font-mono); color: var(--board); font-variant-numeric: tabular-nums; }
.range small { font-size: 13px; color: var(--foam-3); }
input[type="range"] { width: 100%; accent-color: var(--board); height: 28px; }
.roi-out { display: grid; gap: 4px; align-content: start; background: rgba(4, 15, 40, 0.45); border: 1px solid var(--glass-line); border-radius: 14px; padding: 22px; }
.roi-out > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--glass-line); color: var(--foam-2); flex-wrap: wrap; }
.roi-out b { font: 600 20px var(--font-body); color: var(--foam); font-variant-numeric: tabular-nums; }
.roi-out b.ok { color: var(--reef); }
.roi-out .net { border-bottom: 0; padding-top: 18px; }
.roi-out .net span { color: var(--foam); font-weight: 600; }
.roi-out .net b { font: italic 500 44px/1 var(--font-display); color: var(--board); }
.roi-out .net small { flex-basis: 100%; text-align: right; color: var(--foam-3); }

/* fields */
.input { min-height: 50px; border-radius: 12px; background: rgba(4, 15, 40, 0.35); border: 1px solid var(--glass-line); color: var(--foam); padding: 12px 16px; font: 16px var(--font-body); width: 100%; }
textarea.input { resize: vertical; min-height: 96px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23f6f1e8' stroke-opacity='.7' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px; }
select.input option { color: var(--ink); }
.input:focus { outline: none; border-color: var(--board); box-shadow: 0 0 0 3px rgba(251, 200, 42, .22); }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 600; font-size: 15px; }
.err { display: none; color: var(--err); font-size: 13px; }
/* errors show only after the person interacted with the field (or tried to submit) */
.input:user-invalid { border-color: var(--err); }
.input:user-invalid + .err { display: block; }
.lead-form.tried .input:invalid { border-color: var(--err); }
.lead-form.tried .input:invalid + .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* pricing */
.billing { display: inline-flex; align-items: center; gap: 4px; margin-top: 28px; padding: 4px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 999px; }
.billing button { height: 36px; padding: 0 18px; border-radius: 999px; border: 0; background: none; color: var(--foam-2); font: 600 14px var(--font-body); cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--foam); color: var(--ink); }
.billing .save { color: var(--reef); font-size: 13px; font-weight: 600; padding: 0 12px 0 6px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan .ticks { flex: 1; margin-block: 6px 10px; }
.plan h3 { font-family: var(--font-display); font-weight: 500; font-size: 32px; margin: 0; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font: 500 52px/1 var(--font-display); color: var(--foam); }
.price span { color: var(--foam-3); font-size: 14px; }
.plan.featured { border-color: var(--board); background: rgba(251, 200, 42, 0.07); }
.tag { position: absolute; top: -12px; left: 24px; background: var(--board); color: var(--ink); font: 600 11px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }

/* FAQ: native exclusive accordion */
.faq { margin-top: 36px; border-top: 1px solid var(--glass-line); }
.faq details { border-bottom: 1px solid var(--glass-line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font: 500 26px/1.2 var(--font-display); position: relative; color: var(--foam); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--board); border-bottom: 1.5px solid var(--board); transform: translateY(-75%) rotate(45deg); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > div p { color: var(--foam-2); padding-bottom: 22px; max-width: 68ch; font-size: 16px; }
.faq details::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.faq details:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform .25s ease; }
  .faq details::details-content { transition: block-size, content-visibility; transition-duration: .3s; transition-timing-function: ease-in-out; transition-behavior: allow-discrete; }
}
.narrow { width: min(100% - 2 * var(--gutter), 820px); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; padding: clamp(22px, 4vw, 44px); }
.contact:hover { border-color: var(--glass-line); background: var(--glass); }
.contact .mu { margin-top: 18px; font-size: 17px; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; }
.lead-form .full { grid-column: 1 / -1; }
.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.status { font-size: 15px; }
.status.ok { color: var(--reef); }
.status.bad { color: var(--err); }

/* footer on the seabed */
.seabed { position: relative; padding: 72px 0 56px; color: var(--foam-3); font-size: 15px; background: var(--abyss); }
.seabed::before { content: ''; position: absolute; inset: 0 0 auto; height: 60px; background: radial-gradient(60% 100% at 50% 100%, rgba(143, 224, 196, 0.08), transparent); }
.seabed a { color: var(--foam-2); }
.seabed .links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; }
.seabed .links a[aria-current] { color: var(--board); text-decoration: none; }
.seabed .legal { margin-top: 18px; font-size: 13px; }

/* scroll reveal: scroll-driven where supported, an IntersectionObserver fallback in main.js */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes rise { from { opacity: 0; translate: 0 18px; } }
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
  .reveal.io { opacity: 0; translate: 0 18px; transition: opacity .8s ease, translate .8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .reveal.io.in { opacity: 1; translate: 0 0; }
  .hero-copy > * { animation: rise-in .9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bar, .top { transition: none; } }

/* responsive */
@media (max-width: 960px) {
  .two, .roi, .contact { grid-template-columns: 1fr; gap: 32px; }
  .grid3, .plans { grid-template-columns: 1fr; }
  .plans { gap: 26px; }
}
@media (max-width: 560px) {
  .actions .btn { width: 100%; }
  .seats { grid-template-columns: repeat(8, 1fr); }
  .seat:nth-child(n+33) { display: none; }
  .util { margin-left: 0; }
  .lead-form { grid-template-columns: 1fr; }
  .stat { grid-template-columns: 1fr; gap: 6px; }
}
