/* ============================================================
   FORM / ONE site - motion and the "who it is for" sections.
   Loaded after site.css. Everything here holds still for
   prefers-reduced-motion (end of file).
   ============================================================ */

/* Header gains a shadow once the page scrolls */
.site-head { transition: box-shadow .25s; }
.site-head.scrolled { box-shadow: 0 6px 24px rgba(24,24,25,.08); }

/* Hero headline: each line rises out of a mask on load */
.hl { display: block; overflow: hidden; padding-bottom: .04em; }
.hl > span { display: block; }
.js .hl > span { transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .loaded .hl > span { transform: none; }
.js .hero-fade { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--d, .5s); }
.js .loaded .hero-fade { opacity: 1; transform: none; }


/* Production types ticker */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); padding: 26px 0; background: var(--white); }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--display); font-size: clamp(30px, 4vw, 50px); color: var(--ink); white-space: nowrap; padding-right: .55em; }
.ticker-track span.slash { color: var(--sage-deep); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Statement that lights up word by word as it scrolls past */
.statement { font-family: var(--display); font-size: clamp(40px, 5.4vw, 78px); line-height: 1.02; color: var(--ink); max-width: 1100px; margin: 0; }
.statement .w { opacity: .14; transition: opacity .25s linear; }
.statement .w.on { opacity: 1; }
.statement .w.s { color: var(--sage-deep); }
.size-note { margin-top: 28px; font-size: 19px; color: var(--grey); max-width: 700px; }
.size-note b { color: var(--ink); }

/* Setup fee line on each plan */
.plan .setup { margin-top: 10px; font-weight: 700; font-size: 15px; color: var(--char); }

/* Bespoke plan: near-black so it reads as a different kind of offer */
.plan.bespoke { background: var(--ink); border-color: var(--ink); color: #c9cbcd; }
.plan.bespoke h3, .plan.bespoke .price { color: var(--white); }
.plan.bespoke .who, .plan.bespoke .setup { color: #b9bbbe; }
.plan.bespoke .users { border-color: rgba(255,255,255,.14); color: var(--white); }
.plan.bespoke .ticks li { color: #d4d6d8; }
.plan.bespoke .ticks li::before { color: var(--sage); }
.plan .price { white-space: nowrap; }
.plan h3 { font-size: 36px; }
.plan.bespoke .price { font-size: 54px; }


/* ---------- Studio is the plan to pick ---------- */
/* Studio stands out by running taller than the others, not wider, so every gap stays 16px */
.plan.pick { margin-bottom: -24px; box-shadow: 0 26px 60px rgba(24,24,25,.16); position: relative; z-index: 1; }
.js [data-stagger].in > .plan.pick { transform: none; }
.js [data-stagger].in > .plan.pick:hover { transform: translateY(-6px); }
.plan.pick .tag { background: var(--ink); }
.plan .value { margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.55); border-radius: 10px; padding: 10px 12px; }

/* ---------- What it replaces: 8 tools against one ---------- */
.save { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.save-row { margin-bottom: 22px; }
.save-lab { font-size: 17px; color: var(--grey); margin-bottom: 8px; }
.save-lab b { font-family: var(--display); font-weight: 400; font-size: 44px; color: var(--ink); margin-right: 6px; }
.save-bar { height: 22px; border-radius: 999px; background: #eef1ef; overflow: hidden; }
.save-bar i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: #8a8d91; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.js .save-cost:not(.in) .save-bar i { width: 0; }
.save-row.us .save-bar i { background: var(--ink); }
.save-total { margin-top: 30px; background: var(--sage); border-radius: 18px; padding: 24px 26px; display: grid; gap: 4px; }
.save-total > span { color: var(--char); font-size: 16px; }
.save-total b { font-family: var(--display); font-weight: 400; font-size: clamp(52px, 6vw, 80px); line-height: 1; color: var(--ink); }
.save-note { margin: 16px 0 0; font-size: 13px; color: var(--mute); }
@media (max-width: 980px) { .save { grid-template-columns: 1fr; gap: 32px; } .plan.pick, .js [data-stagger].in > .plan.pick { transform: none; margin-bottom: 0; } .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } .plan.pick { order: -1; } }
@media (prefers-reduced-motion: reduce) { .save-bar i { transition: none; } .js .save-cost:not(.in) .save-bar i { width: var(--w); } }
/* Counters */
.counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.count { border-top: 2px solid var(--ink); padding-top: 18px; }
.count b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(52px, 6vw, 84px); line-height: 1; color: var(--ink); }
.count span { color: var(--grey); font-size: 16px; }

/* Who it is for: company types as tabs */
.who-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.who-tab { border: 1px solid rgba(255,255,255,.2); background: transparent; color: #c9cbcd; border-radius: 999px; padding: 12px 20px; font: 600 15px var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.who-tab:hover { border-color: var(--sage); color: var(--white); }
.who-tab[aria-selected="true"] { background: var(--sage); border-color: var(--sage); color: var(--ink); }
.who-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.who-panel[hidden] { display: none; }
.who-panel h3 { font-size: clamp(42px, 5vw, 68px); margin-bottom: 16px; }
.who-panel p { font-size: 19px; color: #c9cbcd; }
.who-panel .k { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9a9ca0; margin: 24px 0 12px; display: block; }
.js .who-panel.enter > * { animation: panelIn .6s cubic-bezier(.2,.8,.2,1) both; }
.js .who-panel.enter > *:nth-child(2) { animation-delay: .12s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.role { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; background: var(--white); }
.role:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(24,24,25,.08); border-color: var(--sage-deep); }
.role .n { font-family: var(--display); font-size: 18px; color: var(--sage-deep); }
.role h3 { font-size: 30px; margin: 8px 0 10px; }
.role p { color: var(--grey); font-size: 15.5px; margin: 0 0 14px; }
.role ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--char); }
.role li::before { content: '/ '; color: var(--sage-deep); font-weight: 700; }

/* Pitch to invoice: the words scroll, the screen stays and swaps */
.flow { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.flow-step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .28; transition: opacity .4s; }
.flow-step.on { opacity: 1; }
.flow-step h3 { font-size: clamp(40px, 4.4vw, 60px); margin: 8px 0 14px; }
.flow-step p { color: var(--grey); font-size: 18px; }
.flow-stage { position: sticky; top: 120px; }
.flow-stage .screen-body { position: relative; aspect-ratio: 1550 / 1125; background: var(--white); }
.flow-stage .screen-body img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.04); transition: opacity .6s ease, transform 1s ease; }
.flow-stage .screen-body img.on { opacity: 1; transform: none; }
.flow-bar { height: 4px; background: var(--line); border-radius: 4px; margin-top: 18px; overflow: hidden; }
.flow-bar i { display: block; height: 100%; width: 20%; background: var(--ink); border-radius: 4px; transition: width .5s ease; }
.flow-dots { display: flex; gap: 14px; margin-top: 14px; font-family: var(--display); font-size: 18px; color: #b3b5b8; }
.flow-dots span { transition: color .3s; }
.flow-dots span.on { color: var(--ink); }
.flow-mobile-shot { display: none; margin-top: 18px; }

/* Stagger: children of [data-stagger] arrive one after another */
.js [data-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; transition-delay: var(--d, 0s); }
.js [data-stagger].in > * { opacity: 1; transform: none; }
.js [data-stagger].in > *:hover { transform: translateY(-6px); transition-delay: 0s; }

/* Cards lift */
.card, .int, .plan, .role { transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover, .int:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(24,24,25,.1); }
.plan:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(24,24,25,.1); }

/* Buttons: the arrow nudges */
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }

/* A big slash drifts across the closing band */
.cta { overflow: hidden; position: relative; }
.cta-slash { position: absolute; right: -2%; top: -28%; font-family: var(--display); font-size: 560px; line-height: 1; color: #242426; pointer-events: none; transform: translateX(var(--sx, 0px)); }
.cta .wrap { position: relative; z-index: 1; }

/* Feature page screens drift slightly as they pass */
.drift { transform: translateY(var(--dy, 0px)); will-change: transform; }

@media (max-width: 980px) {
    .roles { grid-template-columns: 1fr 1fr; }
    .who-panel, .flow { grid-template-columns: 1fr; gap: 28px; }
    .flow-stage { display: none; }
    .flow-step { min-height: 0; opacity: 1; padding: 36px 0; border-top: 1px solid var(--line); }
    .flow-mobile-shot { display: block; }
    .counts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .roles, .counts { grid-template-columns: 1fr; }
    .cta-slash { font-size: 320px; top: -8%; }
}
@media (prefers-reduced-motion: reduce) {
    .js .hl > span, .js .hero-fade, .js [data-stagger] > * { transform: none !important; opacity: 1 !important; transition: none !important; }
    .ticker-track { animation: none; }
    .statement .w { opacity: 1; }
    .drift, .cta-slash { transform: none !important; }
    .flow-stage .screen-body img { transition: none; }
}

/* Project management + cost management, side by side */
.pmcm { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pmcm-col { border: 1px solid var(--line); border-radius: 20px; padding: 32px 30px 0; background: var(--mint); overflow: hidden; display: flex; flex-direction: column; }
.pmcm-col h3 { font-size: clamp(38px, 4vw, 54px); margin: 8px 0 14px; }
.pmcm-col .ticks { margin-bottom: 28px; }
.pmcm-col .screen { margin-top: auto; margin-bottom: -40px; }
@media (max-width: 980px) { .pmcm { grid-template-columns: 1fr; } }

/* ---------- Spreadsheets FORM / ONE replaces ----------
   Each file name is struck through, then what replaces it slides in. */
.xl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.xl { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.mint .xl, .sec:not(.dark) .xl { border-bottom-color: var(--line); }
.xl-file { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; color: #9a9ca0; min-width: 0; }
.xl-file svg { width: 22px; height: 22px; flex: none; color: #6f8f78; }
.xl-file s { text-decoration: none; background: linear-gradient(#e05a46, #e05a46) no-repeat 0 55% / 0 2px; transition: background-size .5s ease; transition-delay: calc(var(--d, 0s) + .45s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl-now { display: flex; gap: 10px; align-items: baseline; font-size: 16px; color: var(--white); opacity: 0; transform: translateX(-14px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--d, 0s) + .8s); }
.xl-now b { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--sage); letter-spacing: .04em; flex: none; }
.mint .xl-now { color: var(--ink); }
.mint .xl-now b { color: var(--sage-deep); }
.mint .xl-file { color: var(--mute); }
.js .xl-list.in .xl-file s { background-size: 100% 2px; }
.js .xl-list.in .xl-now { opacity: 1; transform: none; }
html:not(.js) .xl-now { opacity: 1; transform: none; }
.save-intro { font-size: 19px; color: var(--grey); margin-top: 18px; }
.save h2 { font-size: clamp(48px, 5.8vw, 80px); }
@media (max-width: 980px) { .xl-list { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .xl { grid-template-columns: 1fr; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .xl-now { opacity: 1 !important; transform: none !important; transition: none !important; } .xl-file s { background-size: 100% 2px; transition: none; } }

/* Features: compact "still using spreadsheets?" callout */
.covered { padding: 72px 0; }
.covered-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.covered h2 { font-size: clamp(40px, 4.6vw, 64px); margin-bottom: 16px; }
.covered p { color: var(--grey); font-size: 18px; }
.covered .btn svg { transform: rotate(90deg); }
.covered-cards { display: grid; gap: 12px; }
.covered-cards .card { padding: 20px 22px; }
.covered-cards .card h3 { font-size: 26px; margin-bottom: 6px; }
.covered-cards .card .k { margin-bottom: 8px; }
@media (max-width: 980px) { .covered-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Bring your history with you */
.history { padding: 80px 0; background: var(--white); }
.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.history h2 { font-size: clamp(44px, 5vw, 70px); margin-bottom: 16px; }
.history p { color: var(--grey); font-size: 18px; }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.history-list li { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-weight: 600; color: var(--ink); background: var(--mint); }
.history-list .tick { font-family: var(--display); font-size: 24px; color: var(--sage-deep); line-height: 1; }
@media (max-width: 980px) { .history-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) { .history-list { grid-template-columns: 1fr; } }

/* User-driven roadmap */
.road { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.road h2 { font-size: clamp(48px, 5.6vw, 80px); }
.road-intro { font-size: 19px; color: #c9cbcd; margin: 18px 0 26px; }
.road-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.road-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); color: #b9bbbe; font-size: 16px; }
.road-steps li b { display: block; color: var(--white); font-size: 18px; margin-bottom: 2px; }
.road-steps .n { font-family: var(--display); font-size: 26px; color: var(--sage); line-height: 1.1; }
@media (max-width: 980px) { .road { grid-template-columns: 1fr; gap: 32px; } }

/* Spreadsheets: before (a real-looking sheet) and after (FORM / ONE) */
.ba { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
.ba-k { display: block; font-family: var(--display); font-size: 22px; letter-spacing: .04em; color: var(--sage); margin-bottom: 12px; }
.xls { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); font: 13px/1.3 Calibri, "Segoe UI", Arial, sans-serif; color: #222; }
.xls-bar { background: #217346; color: #fff; padding: 8px 12px; font-size: 12.5px; }
.xls table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.xls th, .xls td { border: 1px solid #d4d4d4; padding: 7px 8px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xls thead th, .xls tbody th { background: #f1f1f1; color: #666; font-weight: 400; text-align: center; width: 30px; }
.xls thead th { width: auto; }
.xls thead th:first-child { width: 30px; }
.xls tr.h td { font-weight: 700; background: #fafafa; }
.xls tr.t td { font-weight: 700; border-top: 2px solid #999; }
.xls td:nth-child(6) { color: #b45309; font-style: italic; }
.xls td.err { color: #c00; font-weight: 700; }
.js .ba .ba-col:first-child.reveal.in .xls { animation: sheetTilt 1.2s .5s ease forwards; }
@keyframes sheetTilt { to { transform: rotate(-2deg) scale(.97); filter: saturate(.6); opacity: .85; } }
@media (max-width: 980px) { .ba { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .js .ba .ba-col:first-child.reveal.in .xls { animation: none; } }
