/* KoinArc Labs: brand tokens */
:root {
  --ink: #030F1F;
  --ink-2: #13223A;
  --paper: #F5F7FB;
  --white: #FFFFFF;
  --slate: #4A566B;
  --slate-2: #667085;
  --line: #DCE2EE;
  --blue: #1858F6;
  --violet: #5B3CF5;
  --magenta: #9F01C7;
  --arc: linear-gradient(90deg, #1858F6 0%, #5B3CF5 55%, #9F01C7 100%);

  --keep: #0B7A63;
  --keep-bg: #E3F4EF;
  --improve: #1858F6;
  --improve-bg: #E6EEFF;
  --retire: #5E687A;
  --retire-bg: #ECEFF4;
  --migrate: #7A23D8;
  --migrate-bg: #F1E7FD;

  --display: "Lexend", system-ui, sans-serif;
  --body: "Public Sans", system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: 16px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--slate); max-width: 38em; }
.measure { max-width: 40em; }
.muted { color: var(--slate); }
.small { font-size: .9rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 247, 251, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: none; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .975rem; }
.nav-links a:hover { color: var(--blue); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); border-radius: var(--r-sm); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 8px var(--gutter) 20px; }
.mobile-menu a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; width: 100%; justify-content: center; border: 0; }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-menu, .mobile-menu.open { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 500; font-size: 1rem; padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; line-height: 1.1; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #B9C3D6; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #E6EEFF; color: var(--ink); }
.nav-links .btn { padding: 10px 18px; font-size: .95rem; color: #fff; }
.nav-links .btn:hover { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding: 88px 0; }
@media (max-width: 719px) { section { padding: 64px 0; } }
.section-head { max-width: 46em; margin-bottom: 44px; }

/* Hero */
.hero { padding: 56px 0 0; position: relative; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: .92fr 1.08fr; gap: 56px; } .hero { padding-top: 64px; } }
.hero h1 { max-width: 12em; }
.hero .lede { margin-bottom: 28px; }
.hero-note { margin-top: 18px; color: var(--slate); font-size: .95rem; }
.hero-arc { margin-top: 56px; height: 120px; position: relative; overflow: hidden; }
.hero-arc svg { position: absolute; left: 50%; transform: translateX(-50%); width: max(1400px, 120vw); height: 120px; }

/* Ledger: the signature element */
.ledger { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 60px -30px rgba(3, 15, 31, .35), 0 2px 6px rgba(3, 15, 31, .04); overflow: hidden; }
.ledger-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.ledger-head strong { font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.ledger-head span { color: var(--slate-2); font-size: .85rem; }
.ledger table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ledger th { text-align: left; font-weight: 500; color: var(--slate-2); font-size: .8rem; padding: 10px 22px; background: #FAFBFD; border-bottom: 1px solid var(--line); }
.ledger td { padding: 14px 22px; border-bottom: 1px solid #EEF1F6; vertical-align: top; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger td.wf { font-weight: 600; color: var(--ink); }
.ledger td.wf { width: 38%; }
.ledger td.wf small.m-why { display: none; color: var(--slate); }
.ledger td.wf small { display: block; font-weight: 400; color: var(--slate-2); font-size: .82rem; margin-top: 2px; }
.ledger td.why { color: var(--slate); }
.ledger td.call { text-align: right; white-space: nowrap; }
.ledger-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 14px 22px; background: #FAFBFD; border-top: 1px solid var(--line); font-size: .85rem; color: var(--slate-2); }
.tally { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 599px) {
  .ledger th.why-h, .ledger td.why { display: none; }
  .ledger td.wf small.m-why { display: block; margin-top: 4px; }
  .ledger td.wf { width: auto; }
  .ledger th, .ledger td { padding-left: 14px; padding-right: 14px; }
  .ledger-head, .ledger-foot { padding-left: 14px; padding-right: 14px; }
}

.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: .8rem; font-weight: 500; padding: 4px 10px 4px 8px; border-radius: 999px; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-keep { color: var(--keep); background: var(--keep-bg); }
.chip-improve { color: #1546C4; background: var(--improve-bg); }
.chip-retire { color: var(--retire); background: var(--retire-bg); }
.chip-migrate { color: var(--migrate); background: var(--migrate-bg); }
.ledger tbody tr { opacity: 1; }
/* Fade-in only when motion is allowed; otherwise rows would stay hidden once animations are disabled */
@media (prefers-reduced-motion: no-preference) {
  .js .ledger tbody tr { opacity: 0; transform: translateY(6px); animation: row-in .5s ease forwards; }
  .js .ledger tbody tr:nth-child(1) { animation-delay: .15s; }
  .js .ledger tbody tr:nth-child(2) { animation-delay: .3s; }
  .js .ledger tbody tr:nth-child(3) { animation-delay: .45s; }
  .js .ledger tbody tr:nth-child(4) { animation-delay: .6s; }
  .js .ledger tbody tr:nth-child(5) { animation-delay: .75s; }
}
@keyframes row-in { to { opacity: 1; transform: none; } }

/* Credentials */
.creds { padding: 0 0 72px; }
.creds-grid { display: grid; gap: 28px; grid-template-columns: 1fr; border-top: 1px solid var(--line); padding-top: 32px; }
@media (min-width: 720px) { .creds-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .creds-grid { grid-template-columns: repeat(4, 1fr); } }
.creds-intro { color: var(--ink); margin: 0 0 4px; font-family: var(--display); font-weight: 500; font-size: 1.1rem; letter-spacing: -0.01em; max-width: 40em; }
.cred h3 { font-size: 1.02rem; margin-bottom: 4px; }
.cred p { color: var(--slate); font-size: .93rem; margin: 0; }

/* Signs list */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.signs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.signs li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.signs li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border: 2px solid var(--slate-2); border-radius: 5px; }

/* Assessment */
.assess { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deliverables { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .deliverables { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.deliverables div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.deliverables dt { font-family: var(--display); font-weight: 600; margin-bottom: 4px; }
.deliverables dd { margin: 0; color: var(--slate); }
.steps { list-style: none; counter-reset: step; margin: 56px 0 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; background: var(--ink); color: #fff; }
@media (min-width: 900px) {
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: 48px; right: -12px; height: 2px; background: var(--line); }
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--slate); font-size: .97rem; margin: 0; }
.assess-cta { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 24px 28px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.assess-cta p { margin: 0; flex: 1 1 320px; }

/* Outcomes (dark) */
.outcomes { background: var(--ink); color: #E8ECF4; position: relative; overflow: hidden; }
.outcomes h2 { color: #fff; }
.outcomes .lede { color: #A9B4C8; }
.outcome-grid { display: grid; gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 720px) { .outcome-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .outcome-grid { grid-template-columns: repeat(4, 1fr); } }
.outcome { background: var(--ink); padding: 28px 24px 32px; }
.outcome h3 { color: #fff; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.outcome h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); }
.outcome p { color: #B7C1D3; margin: 0 0 14px; }
.outcome .eg { font-size: .9rem; color: #8F9BB2; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; margin: 0; }
.o-keep { --c: #2BC79F; }
.o-improve { --c: #5B8DFF; }
.o-retire { --c: #9AA5B8; }
.o-migrate { --c: #B57BFF; }
.outcomes-note { margin-top: 36px; max-width: 46em; color: #A9B4C8; }
.outcomes-note strong { color: #fff; font-weight: 600; }
.outcomes-arc { position: absolute; right: -200px; top: -160px; width: 720px; opacity: .55; pointer-events: none; }

/* AI + sprint */
.ai-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .ai-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; } }
.sprint-panel { border-radius: var(--r-lg); padding: 32px; background: var(--white); border: 1px solid var(--line); position: relative; overflow: hidden; }
.sprint-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--arc); }
.sprint-panel h3 { font-size: 1.45rem; }
.formats { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.formats li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.formats li span { color: var(--slate); font-size: .93rem; text-align: right; }
.uses { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px 24px; }
@media (min-width: 600px) { .uses { grid-template-columns: 1fr 1fr; } }
.uses li { padding-left: 18px; position: relative; color: var(--slate); }
.uses li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--violet); }

/* Also available */
.also { padding-top: 0; }
.also-list { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .also-list { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (min-width: 1040px) { .also-list { grid-template-columns: repeat(3, 1fr); } }
.also-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.also-list strong { display: block; font-family: var(--display); font-weight: 600; }
.also-list span { color: var(--slate); font-size: .95rem; }

/* Check */
.check { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.check-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .check-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; } }
.quiz fieldset { border: 0; margin: 0 0 22px; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.quiz legend { font-family: var(--display); font-weight: 500; font-size: 1.05rem; margin-bottom: 12px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; inset: 0; }
.opts span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .93rem; cursor: pointer; background: var(--paper); transition: border-color .15s, background-color .15s; }
.opts input:hover + span { border-color: #A9B5CB; }
.opts input:checked + span { border-color: var(--blue); background: var(--improve-bg); color: var(--ink); }
.opts input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.quiz-progress { font-size: .9rem; color: var(--slate-2); margin: 0 0 20px; }
.result { display: none; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); padding: 28px; }
.result.show { display: block; }
.meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 12px 0 18px; }
.meter i { display: block; height: 100%; width: 0; background: var(--arc); border-radius: inherit; transition: width .6s ease; }
.result h3 { font-size: 1.5rem; }
.fixes { margin: 6px 0 22px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.fixes li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fixes strong { display: block; font-family: var(--display); font-weight: 600; }
.fixes span { color: var(--slate); font-size: .95rem; }
[aria-invalid=true] { border-color: #C02626 !important; }
.inline-form { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 600px) { .inline-form { grid-template-columns: 1fr 1fr auto; align-items: end; } }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); max-width: 52em; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-family: var(--display); font-weight: 500; font-size: 1.12rem; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { color: var(--slate); max-width: 44em; padding-bottom: 8px; }

/* Contact */
.contact { background: var(--ink); color: #E8ECF4; position: relative; overflow: hidden; }
.contact h2 { color: #fff; }
.contact .lede { color: #A9B4C8; }
.contact-grid { display: grid; gap: 48px; position: relative; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 72px; } }
.next-steps { list-style: none; padding: 0; margin: 28px 0; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 0; color: #C3CCDB; }
.next-steps li::before { content: counter(n); width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #5B6A85; display: grid; place-items: center; font-size: .82rem; font-family: var(--display); color: #fff; }
.contact a { color: #9DB8FF; }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: 28px; }
.form-card a { color: var(--blue); }
.form-status a { color: inherit; }
@media (min-width: 600px) { .form-card { padding: 36px; } }
.fields { display: grid; gap: 16px; }
@media (min-width: 600px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
label.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
label.field em { font-style: normal; font-weight: 400; color: var(--slate-2); }
input[type=text], input[type=email], select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24, 88, 246, .18); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.form-foot p { margin: 0; font-size: .85rem; color: var(--slate-2); max-width: 24em; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); font-size: .95rem; display: none; }
.form-status.ok { display: block; background: var(--keep-bg); color: #075544; }
.form-status.err { display: block; background: #FDECEC; color: #8A1C1C; }
.contact-arc { position: absolute; left: -10%; bottom: -60px; width: 120%; opacity: .5; pointer-events: none; }

/* Footer */
.site-footer { background: #020A16; color: #8F9BB2; padding: 56px 0 40px; font-size: .92rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer img { height: 38px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #C3CCDB; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 24px; display: grid; gap: 8px; font-size: .84rem; }
.legal p { margin: 0; }

/* Sprint page */
.page-hero { padding: 64px 0 56px; }
.tiers { display: grid; gap: 20px; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; }
.tier.rec { border: 2px solid var(--violet); position: relative; }
.tier .badge { align-self: flex-start; font-size: .8rem; font-weight: 600; color: var(--migrate); background: var(--migrate-bg); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.tier h3 { font-size: 1.5rem; margin-bottom: 4px; }
.tier .meta { color: var(--slate); margin-bottom: 16px; }
.tier ul { padding-left: 18px; margin: 0 0 20px; color: var(--slate); }
.tier ul li { margin-bottom: 6px; }
.tier .fit { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .93rem; color: var(--slate); }
.prose { max-width: 44em; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; color: var(--slate); }
