/* Ordinate 2D website: shared by index.html and pricing.html. */
:root {
    --bg: #faf9f6; --surface: #ffffff; --ink: #141821; --dim: #596273; --line: #e4e1da;
    --accent: #1e40af; --accent-ink: #ffffff; --accent-weak: #e8edfb; --hot: #c2410c; --ok: #166534; --warn: #92400e;
    --serif: "STIX Two Text", "Times New Roman", Times, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --grid: rgba(20, 24, 33, .06); --logo-blue: #1E40AF; --logo-orange: #C2410C;
}
@media (prefers-color-scheme: dark) {
    :root { --bg: #0f1218; --surface: #171b23; --ink: #eceff4; --dim: #9aa4b4; --line: #272d38;
            --accent: #8fb0ff; --accent-ink: #0f1218; --accent-weak: #1b2542; --hot: #f59e5b; --ok: #4ade80; --warn: #fbbf24; --grid: rgba(236, 239, 244, .06); --logo-blue: #8FB0FF; --logo-orange: #F59E5B; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }
.eyebrow { font: 600 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--hot); margin: 0 0 14px; }
.lead { font-size: 20px; color: var(--dim); max-width: 680px; margin: 18px 0 0; }
.sub { color: var(--dim); max-width: 660px; margin: 12px 0 0; }

/* header */
header.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.nav .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand .logo-inline { height: 26px; width: auto; display: block; }
.nav a.link { color: var(--dim); text-decoration: none; font-size: 15px; }
.nav a.link:hover { color: var(--ink); }
.spacer { flex: 1; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 15px var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.big { padding: 14px 26px; font-size: 16px; }
.nav .btn { white-space: nowrap; }
@media (max-width: 860px) { .nav a.link { display: none; } .nav .btn { padding: 9px 14px; font-size: 14px; } }

/* hero */
.hero { position: relative; padding: 52px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px;
    -webkit-mask-image: linear-gradient(#000 18%, transparent 58%); mask-image: linear-gradient(#000 18%, transparent 58%); }
.hero::after { content: ""; position: absolute; left: 24px; top: 0; bottom: 0; width: 1px; background: var(--hot); opacity: .35; z-index: -1; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); max-width: 860px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.reassure { color: var(--dim); font-size: 14px; margin: 14px 0 0; }

section { padding: 80px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }

/* hero video */
.stage { margin: 28px 0 0; }
.stage-view { position: relative; }
.stage-toggle { position: absolute; right: calc(3% + 8px); bottom: 10px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; opacity: .75; transition: opacity .15s; }
.stage-toggle:hover, .stage-toggle:focus-visible { opacity: 1; }
.stage-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.stage-toggle .i-play, .stage-toggle.paused .i-pause { display: none; }
.stage-toggle.paused .i-play { display: block; }
@media (min-width: 1200px) { .stage { width: min(100vw, 1480px); position: relative; left: 50%; transform: translateX(-50%); } }
.stage-video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; background: var(--bg);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.stage figcaption { color: var(--dim); font-size: 14px; margin-top: 10px; text-align: center; }

@media (max-width: 700px) {
    .hero::after { left: 10px; }
    .stage { margin-top: 20px; --pan: calc(100vw - 48px - 680px); }
    .stage-view { overflow: hidden; }
    .stage-toggle { right: 8px; bottom: 8px; }
    .stage-video { width: 680px; max-width: none; -webkit-mask-image: none; mask-image: none; animation: pan 16s ease-in-out infinite alternate; }
    .stage figcaption { text-align: left; }
    @keyframes pan { from { transform: translateX(0); } to { transform: translateX(var(--pan)); } }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) { .stage-video { animation: none; transform: translateX(calc(var(--pan) / 2)); } }

/* second section: text panel on the left (60%), a fading stack of exported images on the right (40%) */
.split-grid { display: grid; grid-template-columns: 3fr 2fr; align-items: stretch; margin-top: 8px; background: var(--accent-weak); border-radius: 28px; overflow: hidden; }
.split-text { padding: 56px 24px 48px 56px; position: relative; z-index: 1; }
.results { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 22px; }
.results li { display: grid; grid-template-columns: 44px 1fr; gap: 6px 10px; }
.results .num { font: 600 13px/1.9 var(--mono); color: var(--hot); }
.results h3 { font-size: 20px; margin: 0 0 4px; }
.results p { margin: 0; color: var(--dim); font-size: 16px; }
.split-visual { position: relative; }
.reel { position: absolute; inset: 0; overflow: hidden; z-index: 2;
    -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
.reel-track { display: flex; flex-direction: column; animation: reel 60s linear infinite; will-change: transform; }
.reel:hover .reel-track { animation-play-state: paused; }
.reel-list { display: flex; flex-direction: column; padding: 0 28px 28px 4px; gap: 28px; }
.sheet { width: calc(100% - 56px); margin: 0 auto; background: #fff; color: #111; border: 1px solid var(--line); border-radius: 2px; padding: 26px 30px 24px; box-shadow: 0 18px 34px -20px rgba(20, 24, 33, .5); font: 400 10.4px/1.45 var(--serif); text-align: justify; hyphens: auto; }
.sheet .run { display: flex; justify-content: space-between; font: 400 8.5px var(--serif); font-style: italic; color: #555; border-bottom: .5px solid #999; padding-bottom: 4px; margin-bottom: 14px; }
.sheet h4 { font: 700 16px/1.2 var(--serif); margin: 0 0 6px; text-align: center; }
.sheet .by { text-align: center; font-style: italic; margin: 0 0 10px; }
.sheet .abs { margin: 0 14px 10px; font-size: 9.6px; }
.sheet h5 { font: 700 10.4px var(--serif); margin: 10px 0 3px; text-align: left; }
.sheet p { margin: 0 0 5px; }
.sheet .eq { display: flex; justify-content: space-between; align-items: center; margin: 5px 0 7px; padding-left: 10%; }
.sheet .eq > span { flex: 1; text-align: center; font-size: 11px; }
.sheet .eq b { font-weight: 400; }
.sheet .fr { display: inline-flex; flex-direction: column; text-align: center; vertical-align: middle; font-size: 10px; }
.sheet .fr > span:first-child { border-bottom: .6px solid #111; padding: 0 3px 1px; }
.sheet figure { margin: 8px 0; }
.sheet figure .pic { height: 140px; display: flex; align-items: center; justify-content: center; }
.sheet figure img { max-width: 100%; max-height: 100%; }
.sheet figcaption { font-size: 9.2px; margin-top: 3px; text-align: center; }
.sheet .refs { margin: 0; padding-left: 16px; font-size: 8.8px; line-height: 1.35; text-align: left; }
@keyframes reel { to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .reel-track { animation: none; } }
@media (max-width: 860px) {
    .split-grid { grid-template-columns: 1fr; }
    .split-grid { border-radius: 20px; }
    .split-text { padding: 36px 24px 8px; }
    .split-visual { height: 420px; }
    .reel { inset: 0; }
    .sheet { width: calc(100% - 48px); }
}

/* four things */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 36px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--bg); }
section.alt .card { background: var(--bg); }
.card .num { font: 600 13px var(--mono); color: var(--hot); }
.card h3 { margin: 8px 0 8px; }
.card p { margin: 0; color: var(--dim); font-size: 16px; }

/* gallery */
.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-top: 36px; }
.fig { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.fig:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(20, 24, 33, .45); }
.fig .img { height: 220px; display: flex; align-items: center; justify-content: center; padding: 18px; }
.fig img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.fig .cap { border-top: 1px solid var(--line); padding: 12px 16px; font: 15px var(--serif); font-style: italic; color: #2b3240; display: flex; justify-content: space-between; gap: 8px; }
.fig .cap span:last-child { font: 600 12px var(--mono); font-style: normal; color: var(--accent); white-space: nowrap; align-self: center; }
.note { color: var(--dim); font-size: 15px; margin-top: 18px; }
.topics { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; }
.topics li { font-size: 14px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--ink); }
@media (max-width: 640px) {
    .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
    .fig .img { height: 150px; padding: 10px; }
    .fig .cap { font-size: 14px; padding: 9px 12px; }
    .fig .cap span:last-child { display: none; }
    .fig:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* the studio window */
.window { margin-top: 36px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 60px -36px rgba(20, 24, 33, .45); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.window-bar span { flex: 1; text-align: center; font: 500 12px var(--mono); color: var(--dim); margin-right: 44px; }
.window img { display: block; width: 100%; height: auto; }

/* steps */
.steps { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 36px; counter-reset: s; }
.step { position: relative; padding-top: 52px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font: 600 17px var(--serif); }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--dim); }

/* lists */
.two { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
ul.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
ul.ticks li { position: relative; padding: 0 0 12px 30px; color: var(--ink); }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* pricing and form */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 36px; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: var(--bg); }
.plan.now { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.plan h3 { margin: 0; }
.plan .price { font: 600 32px var(--serif); margin: 8px 0 4px; }
.plan .price small { font: 400 15px var(--sans); color: var(--dim); }
.plan ul { padding-left: 20px; color: var(--dim); margin: 12px 0 0; font-size: 16px; }
.tag { display: inline-block; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: var(--accent-weak); color: var(--accent); margin-bottom: 10px; }
form { display: grid; gap: 16px; max-width: 580px; margin-top: 28px; }
label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
input[type=email], select, textarea { font: 16px var(--sans); padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0; }
legend { font-size: 15px; font-weight: 500; padding: 0 6px; }
fieldset label { display: flex; gap: 10px; font-weight: 400; padding: 3px 0; align-items: center; }
#form-status { min-height: 1.4em; font-size: 15px; } #form-status.ok { color: var(--ok); } #form-status.warn { color: var(--warn); }

/* faq */
.faq { margin-top: 32px; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font: 600 19px/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 24px var(--sans); color: var(--accent); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--dim); max-width: 720px; }
.closing { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 28px 32px; border-radius: 20px; background: var(--accent-weak); }
.closing h3 { font-size: 26px; }
.closing p { margin: 6px 0 0; color: var(--dim); }

footer { padding: 40px 0 56px; color: var(--dim); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: baseline; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer nav a { color: var(--dim); text-decoration: none; }
footer nav a:hover { color: var(--ink); text-decoration: underline; }

.nav a.link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* the updates and price-survey form, in a dialog (site.js) */
dialog#wl-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--line); border-radius: 18px; padding: 32px 32px 28px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
dialog#wl-dialog::backdrop { background: rgba(15, 18, 24, .55); backdrop-filter: blur(3px); }
dialog#wl-dialog h2 { font-size: clamp(24px, 4vw, 30px); padding-right: 32px; }
dialog#wl-dialog form { max-width: none; margin-top: 22px; }
.dlg-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 22px/1 var(--sans); cursor: pointer; }
.dlg-close:hover { border-color: var(--dim); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
label.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
label.consent input { margin-top: 4px; }
@media (max-width: 560px) { dialog#wl-dialog { padding: 26px 20px 22px; } }

/* pricing page */
.page-head { padding: 64px 0 8px; }
.page-head h1 { font-size: clamp(36px, 5.5vw, 56px); }
.beta-note { margin-top: 28px; padding: 14px 18px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent-weak); color: var(--ink); font-size: 15px; max-width: 820px; }
.plans .plan { display: flex; flex-direction: column; }
.plans .plan .tag { align-self: flex-start; }
.plan .who { color: var(--dim); font-size: 15px; margin: 4px 0 0; }
.plan .plan-foot { margin-top: auto; padding-top: 22px; }
.compare-wrap { position: relative; margin-top: 36px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { position: sticky; top: 0; background: var(--surface); font: 600 18px var(--serif); padding-top: 18px; padding-bottom: 14px; }
.compare thead th small { display: block; font: 400 13px var(--sans); color: var(--dim); margin-top: 2px; }
.compare th[scope=row] { text-align: left; font-weight: 400; color: var(--ink); width: 46%; }
.compare td, .compare thead th:not(:first-child) { width: 18%; }
.compare tbody.group th[scope=rowgroup] { text-align: left; font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hot); background: var(--bg); padding-top: 14px; padding-bottom: 8px; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare .yes, .compare .no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-weight: 700; font-size: 14px; }
.compare .yes { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.compare .no { color: var(--dim); opacity: .7; }
.compare .txt { color: var(--dim); font-size: 14px; }
.compare .soon { display: inline-block; margin-left: 6px; font: 600 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 99px; background: var(--accent-weak); color: var(--accent); vertical-align: 2px; }
.compare .now-col { background: color-mix(in srgb, var(--accent-weak) 45%, transparent); }
@media (max-width: 640px) {
    table.compare { min-width: 0; font-size: 13.5px; }
    .compare th, .compare td { padding: 10px 6px; }
    .compare th[scope=row] { padding-left: 12px; width: 43%; }
    .compare thead th { font-size: 15px; }
    .compare thead th small { font-size: 11px; }
    .compare tbody.group th[scope=rowgroup] { padding-left: 12px; }
    .compare .txt { font-size: 12px; }
    .compare .soon { margin-left: 0; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
