/* Interlock Desk website. One stylesheet for every page. */
:root {
  --ink: #12161C; --ink2: #4F5866; --ink3: #8A919C; --paper: #F1F3F6; --white: #FFFFFF; --rule: #DCE0E6;
  --cobalt: #2446A6; --cobalt-d: #1A3478; --cobalt-l: #A3B8F5; --gain: #1E7044; --loss: #B42318; --amber: #935F00;
  --night: #0E1217; --night2: #171C24; --night-rule: #2A313C; --night-ink: #E9EBEE; --night-ink2: #A9B0BB;
  --max: 1160px; --r: 10px;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img, video { display: block; max-width: 100%; }
a { color: var(--cobalt); }
a:hover { color: var(--cobalt-d); }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.2px; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--cobalt); margin-bottom: 14px; }
.dark .eyebrow { color: var(--cobalt-l); }
.muted { color: var(--ink2); }
.mono { font-family: var(--mono); }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 19px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--ink2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 600; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu .panel { position: absolute; right: 0; top: 52px; width: 230px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 16px 40px rgba(18, 22, 28, .14); padding: 8px; display: grid; }
.menu .panel a { color: var(--ink); text-decoration: none; padding: 12px 14px; border-radius: 6px; font-size: 16px; }
.menu .panel a:hover { background: var(--paper); }
@media (max-width: 760px) { .nav { display: none; } .menu { display: block; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 8px; font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--cobalt-d); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #C5CBD3; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.dark .btn-ghost { color: var(--night-ink); border-color: #3A424F; }
.dark .btn-ghost:hover { border-color: var(--night-ink); color: var(--white); }
.btn-light { background: var(--cobalt-l); color: var(--ink); }
.btn-light:hover { background: #C3D1FA; color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- dark hero */
.dark { background: var(--night); color: var(--night-ink); }
.dark .muted { color: var(--night-ink2); }
.hero { padding: 88px 0 80px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -0.8px; margin-bottom: 20px; }
.hero .lead { font-size: 19px; max-width: 540px; margin-bottom: 32px; }
.hero-side { flex: 1 1 380px; min-width: 0; }
.home-hero .hero-side { max-width: 460px; }
@media (max-width: 760px) { .hero { padding: 56px 0 56px; } .hero .lead { font-size: 17px; } .home-hero .hero-side { display: none; } }

/* paths: the two doors on the home page */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 620px; }
.path { display: block; padding: 20px 22px; border: 1px solid var(--night-rule); border-radius: var(--r); background: var(--night2); color: var(--night-ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.path:hover { border-color: var(--cobalt-l); color: var(--night-ink); transform: translateY(-2px); }
.path b { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--white); }
.path span { font-size: 14.5px; color: var(--night-ink2); line-height: 1.45; display: block; }
@media (max-width: 520px) { .paths { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- sections */
.sec { padding: 88px 0; }
.sec-tight { padding: 64px 0; }
.sec.paper { background: var(--paper); }
.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; }
.sec-head p { margin-top: 12px; color: var(--ink2); }
@media (max-width: 760px) { .sec { padding: 60px 0; } .sec-head { margin-bottom: 32px; } }

/* three steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--cobalt); border: 1px solid var(--cobalt); border-radius: 999px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15.5px; color: var(--ink2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; } .step { display: grid; grid-template-columns: 44px 1fr; } .step .n { grid-row: span 2; margin: 2px 0 0; } }

/* pillars strip */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pillar { padding: 26px 22px 26px 0; }
.pillar + .pillar { padding-left: 22px; border-left: 1px solid var(--rule); }
.pillar svg { margin-bottom: 12px; }
.pillar h3 { font-size: 16px; margin-bottom: 4px; }
.pillar p { font-size: 14.5px; color: var(--ink2); line-height: 1.45; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pillar:nth-child(3) { padding-left: 0; border-left: 0; } .pillar:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (max-width: 520px) { .pillar { padding: 18px 12px 18px 0; } .pillar + .pillar { padding-left: 12px; } .pillar:nth-child(3) { padding-left: 0; } .pillar svg { margin-bottom: 8px; } }

/* feature rows */
.rows { display: grid; gap: 80px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.row.flip { flex-direction: row-reverse; }
.row .pic { flex: 1.4 1 480px; min-width: 0; }
.row .pic.phone { flex: 0 1 300px; }
.row .txt { flex: 1 1 320px; min-width: 0; }
.row h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; margin-bottom: 12px; }
.row .txt p { color: var(--ink2); }
.shot { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 18px 44px rgba(18, 22, 28, .10); }
.shot.phone { border-radius: 26px; max-width: 300px; margin: 0 auto; }
@media (max-width: 760px) { .rows { gap: 56px; } .row, .row.flip { flex-direction: column; align-items: stretch; gap: 22px; } .row .pic, .row .pic.phone { flex: none; } .shot.phone { max-width: 240px; } }

/* video */
.video { width: 100%; height: auto; border-radius: var(--r); background: var(--ink); aspect-ratio: 16 / 9; }

/* FAQ accordion */
.faq { max-width: 820px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--cobalt); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--ink2); max-width: 700px; }

/* call to action band */
.cta { padding: 72px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; max-width: 620px; }

/* footer */
.foot { background: var(--night); color: var(--night-ink2); font-size: 14.5px; }
.foot .wrap { padding-top: 48px; padding-bottom: 36px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--night-rule); }
.foot a { color: var(--night-ink); text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot .legal { padding-top: 22px; font-size: 12.5px; line-height: 1.6; max-width: 900px; }

/* approval card (illustration, animated) */
.card { background: var(--white); color: var(--ink); border-radius: 14px; padding: 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.card-top b { font-size: 18px; font-weight: 600; }
.badge-stack { display: inline-grid; justify-items: end; }
.badge { grid-area: 1 / 1; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge.wait { color: var(--amber); background: rgba(147, 95, 0, .10); }
.badge.run { color: var(--gain); background: rgba(30, 112, 68, .10); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.tile { background: var(--paper); border-radius: 8px; padding: 12px; }
.tile small { display: block; font-size: 12.5px; color: var(--ink2); }
.tile span { font-weight: 600; font-size: 15px; line-height: 1.35; display: block; }
.risk-l { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.risk { border: 1px solid #C5CBD3; border-radius: 8px; padding: 11px 13px; margin-bottom: 14px; display: grid; }
.risk > span { grid-area: 1 / 1; }
.risk .ph { color: var(--ink2); }
.risk .val { font-family: var(--mono); font-weight: 500; justify-self: start; }
.go { position: relative; overflow: hidden; display: grid; text-align: center; font-weight: 600; background: var(--cobalt); color: var(--white); border-radius: 8px; padding: 13px; }
.go > span { grid-area: 1 / 1; position: relative; }
.go .fill { position: absolute; inset: 0; background: rgba(0, 0, 0, .24); transform: scaleX(0); transform-origin: left; }
.card .note { margin-top: 12px; font-size: 12.5px; color: var(--ink2); }

/* motion: the finished state is the default; html.anim (motion allowed) plays into it */
.wait, .ph, .go-a { opacity: 0; }
.anim .ring-a { animation: ringA .95s cubic-bezier(.2, .9, .25, 1.15) .15s both; }
.anim .ring-b { animation: ringB .95s cubic-bezier(.2, .9, .25, 1.15) .15s both; }
@keyframes ringA { from { transform: translateX(-10px); opacity: .25; } }
@keyframes ringB { from { transform: translateX(10px); opacity: .25; } }
.anim .card .wait { animation: hOut 3.9s step-end both; }
.anim .card .run { animation: hIn .45s ease 3.9s both; }
.anim .card .ph { animation: hOut 1.4s ease both; }
.anim .card .val { animation: hType .6s steps(4, end) 1.4s both; }
.anim .card .fill { animation: hFill 1.45s linear 2.4s both; }
.anim .card .go-a { animation: hOut 3.75s step-end both; }
.anim .card .go-b { animation: hIn .35s ease 3.75s both; }
@keyframes hOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes hIn { from { opacity: 0; transform: translateY(4px); } }
@keyframes hType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hFill { 0% { transform: scaleX(0); opacity: 1; } 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* the ladder drawing */
.lad { width: 100%; height: auto; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); }
.lad text { font-family: var(--sans); font-size: 19px; }
.lad .lp { stroke-dasharray: 100; stroke-dashoffset: 0; }
.anim .lad:not(.play) .lp { stroke-dashoffset: 100; }
.anim .lad.play .lp { animation: ldDraw 6s linear .6s both; }
@keyframes ldDraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.anim .lad:not(.play) .ld-dot { fill: var(--white); }
.anim .lad.play .ld-d1 { animation: ldFill .35s ease 1.93s both; }
.anim .lad.play .ld-d2 { animation: ldFill .35s ease 2.22s both; }
.anim .lad.play .ld-d3 { animation: ldFill .35s ease 2.46s both; }
@keyframes ldFill { from { fill: #FFFFFF; } }
.ld-stop { transform: translateY(-130px); }
.anim .lad:not(.play) .ld-stop { transform: translateY(0); }
.anim .lad.play .ld-stop { animation: ldStop 7s ease-in-out both; }
@keyframes ldStop { 0%, 56% { transform: translateY(0); } 61%, 73% { transform: translateY(-70px); } 79%, 91% { transform: translateY(-100px); } 100% { transform: translateY(-130px); } }
.ld-s1, .ld-s2 { opacity: 0; }
.anim .lad:not(.play) .ld-s1 { opacity: 1; }
.anim .lad:not(.play) .ld-s3 { opacity: 0; }
.anim .lad.play .ld-s1 { animation: ldL1 7s both; }
.anim .lad.play .ld-s2 { animation: ldL2 7s both; }
.anim .lad.play .ld-s3 { animation: ldL3 7s both; }
@keyframes ldL1 { 0%, 55% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes ldL2 { 0%, 57% { opacity: 0; } 61%, 76% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes ldL3 { 0%, 78% { opacity: 0; } 83%, 100% { opacity: 1; } }
@media (max-width: 640px) { .lad text { font-size: 26px; } }

/* forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #C5CBD3; border-radius: 8px; background: var(--white); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.form textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; }
#f-status { margin-top: 14px; font-size: 15px; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 20px; margin: 32px 0 8px; }
.prose p { color: var(--ink2); margin-bottom: 10px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .path { transition: none; } }
