/* pages.css: the inner pages: small app screens (.ui), the platform hub, comparisons, solutions, tools, the blog
   index, forms and the glossary. */

/* ---- small app screens ------------------------------------------------------------------------------------ */
.ui { --c: var(--navy); width: min(440px, 100%); background: #fff; color: var(--ink); border-radius: 3px; padding: 20px; font-size: 13.5px; position: relative; box-shadow: 0 40px 80px -36px rgba(6, 11, 19, .55), 0 0 0 1px rgba(15, 23, 42, .06); }
.ui::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--navy); border-radius: 3px 3px 0 0; }
.ui-wide { width: min(560px, 100%); }
.ui-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--slate-2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.ui-h .i { width: 16px; height: 16px; color: var(--orange); }
.ui-h em { margin-left: auto; font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--navy); background: var(--paper-2); padding: 3px 8px; font-size: 11.5px; }
.ui-rows { list-style: none; display: grid; }
.ui-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ui-rows li span { color: var(--slate); }
.ui-rows li b { font-weight: 650; color: var(--ink); font-family: var(--mono); font-size: 12.5px; text-align: right; }
.ui-rows b.ok { color: #15803d; font-family: var(--sans); }
.ui-rows b.warn { color: #b45309; font-family: var(--sans); }
.ui-rows b.strong { color: var(--navy); font-size: 14px; }
.ui-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.ui-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--slate); }
.ui-arrow .i { width: 14px; height: 14px; color: var(--orange); }
.ui-ticks { list-style: none; display: grid; gap: 9px; }
.ui-ticks li { position: relative; padding-left: 28px; color: var(--slate); }
.ui-ticks li::before { content: ''; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border: 1.5px solid var(--line-2); border-radius: 2px; }
.ui-ticks li.on { color: var(--ink); }
.ui-ticks li.on::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--green); }
.ui-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin-bottom: 12px; }
.ui-facts span { background: var(--paper-2); padding: 10px; font-size: 11.5px; color: var(--slate-2); display: grid; }
.ui-facts b { font-size: 20px; color: var(--navy); font-weight: 800; font-stretch: 108%; }
.ui-title { font-size: 18px; font-weight: 750; color: var(--navy); }
.ui-sub { color: var(--slate-2); font-size: 12.5px; margin: 2px 0 12px; }
.ui-steps { list-style: none; display: flex; gap: 6px; padding: 0; }
.ui-steps li { flex: 1; text-align: center; padding: 8px 2px; background: var(--paper-2); color: var(--slate-2); font-size: 11.5px; }
.ui-steps li.on { background: rgba(34, 197, 94, .14); color: #15803d; font-weight: 650; }
.ui-note { margin-top: 12px; font-size: 12.5px; color: var(--slate); }
.ui-lane { position: relative; height: 30px; background: var(--paper-2); margin-bottom: 10px; }
.ui-lane i { position: absolute; top: 5px; bottom: 5px; border-radius: 2px; }
.ul-a { left: 3%; width: 60%; background: var(--orange); }
.ul-b { left: 63.5%; width: 30%; background: repeating-linear-gradient(45deg, var(--orange) 0 6px, var(--orange-hi) 6px 12px); transform-origin: left; animation: grow 2.6s var(--ease) infinite; }
@keyframes grow { 0% { transform: scaleX(0); } 40%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.ui-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.ui-ba span { height: 96px; background: linear-gradient(180deg, #e2e8f0 0 60%, #cbd5e1 60%); position: relative; font-size: 11px; color: var(--slate); padding: 7px; font-weight: 600; }
.ui-ba .after::after { content: ''; position: absolute; left: 44%; top: 32%; width: 30px; height: 7px; background: #94a3b8; rotate: -12deg; box-shadow: 0 0 0 4px rgba(229, 90, 43, .45); }
.ui-bar { display: grid; grid-template-columns: 96px 1fr 72px; align-items: center; gap: 10px; padding: 7px 0; font-size: 12.5px; }
.ui-bar span { color: var(--slate); }
.ui-bar i { height: 12px; background: linear-gradient(90deg, var(--navy), var(--navy-700)); width: calc(var(--v) * 1%); transform-origin: left; animation: barx 1.4s var(--ease) both; }
.ui-bar i.neg { background: var(--orange); }
.ui-bar b { font-family: var(--mono); font-size: 12px; text-align: right; }
@keyframes barx { from { transform: scaleX(0); } }
.ui-aging { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; height: 120px; margin-bottom: 10px; }
.ui-aging span { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; height: 100%; font-size: 11px; color: var(--slate-2); }
.ui-aging i { align-self: end; width: 100%; height: calc(var(--v) * 1%); min-height: 4px; background: var(--navy); }
.ui-aging span:nth-child(n+3) i { background: var(--orange); }
.ui-aging b { font-family: var(--mono); color: var(--ink); font-size: 12px; }
.ui-aging em { font-style: normal; }
.ui-tree { list-style: none; display: grid; gap: 6px; margin-bottom: 8px; }
.ui-tree li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 11px; background: var(--paper-2); }
.ui-tree li.kid { margin-left: 22px; border-left: 3px solid var(--orange); }
.ui-tree em { font-style: normal; color: var(--slate-2); font-size: 12px; }
.ui-pipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-pipe div { background: var(--paper-2); padding: 8px; display: grid; gap: 6px; align-content: start; min-height: 150px; }
.ui-pipe p { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-2); }
.ui-pipe span { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--orange); padding: 8px; font-size: 12px; font-weight: 600; box-shadow: 0 8px 16px -12px rgba(15, 23, 42, .4); }
.ui-pipe div:last-child span { border-left-color: var(--green); }
.ui-table { display: grid; font-size: 12.5px; }
.ui-table p { display: grid; grid-template-columns: 1fr 1fr 1fr .9fr; gap: 8px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.ui-table .th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-2); font-weight: 700; }
.ui-table span:nth-child(3) { font-family: var(--mono); }
.ok { color: #15803d; font-weight: 650; }
.due { color: var(--orange-lo); font-weight: 650; }
.ui-dark { background: var(--navy-900); color: #cbd5e1; }
.ui-dark .ui-h { color: #94a3b8; }
.ui-dark .ui-h em { background: rgba(255, 255, 255, .07); color: #fff; }
.ui-dark .lj { color: #fdba9c; font-size: 12px; margin: 10px 0 4px; }
.ui-dark .ll { display: flex; justify-content: space-between; gap: 14px; font-size: 12.5px; padding: 2px 0; }
.ui-dark .ll.cr { padding-left: 22px; }
.ui-dark .ll b { color: #fff; font-weight: 500; }
.ui-dark .lok { color: var(--green); text-align: right; margin-top: 12px; }
.ui-board { width: min(520px, 100%); }
.ub-row { display: grid; grid-template-columns: 84px 1fr; align-items: center; height: 34px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--slate); font-weight: 600; }
.ub-row div { position: relative; height: 100%; }
.ub { position: absolute; top: 8px; bottom: 8px; border-radius: 2px; transform-origin: left; animation: barx 1.2s var(--ease) both; }
.ub-in { background: var(--orange); } .ub-conf { background: var(--navy); } .ub-quote { border: 1.5px dashed var(--navy); } .ub-turn { background: repeating-linear-gradient(45deg, #cbd5e1 0 3px, #f1f5f9 3px 6px); }
.ub-today { position: absolute; top: 46px; bottom: 16px; left: calc(20px + 84px + (100% - 124px) * .42); width: 2px; background: var(--orange); }
.ui-phone { display: grid; place-items: center; width: 100%; }
.uph { width: 260px; background: #fff; color: var(--ink); border: 10px solid #0b1220; border-radius: 34px; padding: 18px 16px 22px; display: grid; gap: 11px; font-size: 13px; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .75); }
.uph-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--slate-2); font-weight: 600; }
.uph-hi { font-size: 22px; font-weight: 800; color: var(--navy); }
.uph-sub { font-size: 12px; color: var(--slate-2); margin-top: -8px; }
.uph-due { background: var(--navy); color: #fff; padding: 14px; display: grid; gap: 2px; }
.uph-due span { font-size: 11.5px; color: #c6d5e8; }
.uph-due b { font-size: 23px; font-weight: 800; }
.uph-due em { font-style: normal; font-size: 11.5px; color: #fdba9c; }
.uph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.uph-tiles span { display: flex; flex-direction: column; gap: 6px; padding: 11px; background: var(--paper-2); font-size: 12px; font-weight: 600; color: var(--navy); }
.uph-tiles .i { width: 18px; height: 18px; color: var(--orange); }
.uph-job { border-left: 3px solid var(--orange); background: var(--paper-2); padding: 10px 12px; display: grid; gap: 2px; }
.uph-job b { color: var(--navy); }
.uph-job span { font-size: 11.5px; color: var(--slate); }
.uph-job em { font-style: normal; font-size: 11px; color: var(--orange-lo); font-weight: 650; }
.uph-docs { display: flex; gap: 12px; font-size: 12px; }

/* frames for the screens */
.art-frame { position: relative; display: grid; place-items: center; padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px); }
.art-frame::before { content: ''; position: absolute; inset: 0 8% 0 0; transform: skewX(-10deg); background: linear-gradient(135deg, rgba(30, 58, 95, .08), rgba(229, 90, 43, .1)); }
.art-frame::after { content: ''; position: absolute; width: 72px; aspect-ratio: 1; right: 4%; bottom: 0; background: rgba(229, 90, 43, .18); }
.art-frame > * { position: relative; z-index: 1; }
.phero-art .mf-stage .ui, .phero-art .mf-stage .ui-phone { transform: perspective(1600px) rotateY(-10deg) rotateX(5deg); }
.phero-art .mf-stage .uph { transform: rotate(-3deg); }

.h2-sm { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--navy); }
.connect { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.connect-copy p:last-child { color: var(--slate); margin-top: 12px; }
@media (max-width: 900px) { .connect { grid-template-columns: minmax(0, 1fr); } }

/* ---- platform hub ----------------------------------------------------------------------------------------- */
.hubsec { overflow: hidden; }
.hub-in { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hub-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 20px; }
.hub-copy > p { color: var(--dk-mute); margin-bottom: 26px; font-size: 17px; }
.hub { position: relative; aspect-ratio: 1.15; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines line { stroke: rgba(148, 163, 184, .35); stroke-width: .25; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; transition: stroke-dashoffset 1.2s var(--ease); }
.hub.in .hub-lines line { stroke-dashoffset: 0; stroke-width: 1.5; }
.hub-core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; background: var(--orange); color: #fff; padding: 18px 22px; display: grid; gap: 2px; text-align: center; box-shadow: 0 0 0 10px rgba(229, 90, 43, .15), 0 30px 60px -20px rgba(229, 90, 43, .6); z-index: 2; }
.hub-core span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.hub-core b { font-size: 24px; font-weight: 800; font-stretch: 110%; }
.hub-core small { font-size: 12px; opacity: .9; }
.hub-node { position: absolute; translate: -50% -50%; display: flex; align-items: center; gap: 8px; background: var(--dk-2); border: 1px solid var(--dk-line); padding: 9px 12px; color: #fff; font-size: 13px; white-space: nowrap; opacity: 0; transform: scale(.85); transition: opacity .6s, transform .7s var(--ease); transition-delay: calc(.4s + var(--k) * 80ms); z-index: 1; }
.hub-node .i { width: 17px; height: 17px; color: var(--orange); }
.hub-node b { font-weight: 600; }
.hub.in .hub-node { opacity: 1; transform: none; }
@media (max-width: 960px) { .hub-in { grid-template-columns: minmax(0, 1fr); } .hub { aspect-ratio: .82; } .hub-node { font-size: 11px; padding: 6px 8px; gap: 5px; } .hub-node .i { width: 14px; height: 14px; } .hub-core { padding: 12px 14px; } .hub-core b { font-size: 18px; } }

/* ---- solutions -------------------------------------------------------------------------------------------- */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pain { background: #fff; padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.pain-n { font-family: var(--mono); font-size: 13px; color: var(--orange); font-weight: 700; }
.pain h3 { font-size: 20px; color: var(--navy); }
.pain p { color: var(--slate); font-size: 15.5px; }
.how { display: grid; gap: 18px; }
.how-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); }
.how-row h3 { font-size: 19px; color: var(--navy); }
.how-row p { color: var(--slate); font-size: 15.5px; }
.how-row a { white-space: nowrap; }
@media (max-width: 860px) { .how-row { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* ---- comparisons ------------------------------------------------------------------------------------------ */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; }
.cmp th, .cmp td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.5; }
.cmp thead th { background: var(--navy); color: #fff; font-size: 14px; font-weight: 650; position: sticky; top: 0; }
.cmp thead th.us { background: var(--orange); }
.cmp tbody th { font-weight: 650; color: var(--ink); width: 24%; }
.cmp td { color: var(--slate); }
.cmp td.us { background: rgba(229, 90, 43, .05); color: var(--ink); }
.cmp .y, .cmp .n, .cmp .m { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.cmp .y { color: #15803d; } .cmp .n { color: #b91c1c; } .cmp .m { color: #b45309; }
.fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 22px; }
.fit > div { padding: 30px; border: 1px solid var(--line); background: #fff; }
.fit h3 { font-size: 20px; color: var(--navy); margin-bottom: 14px; }
.fit .them { border-top: 6px solid var(--slate-2); }
.fit .us-box { border-top: 6px solid var(--orange); }

/* ---- tools ------------------------------------------------------------------------------------------------ */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(15, 23, 42, .5); }
.tool-in { padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 18px; align-content: start; }
.tool-out { background: var(--navy); color: #dbe6f3; padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 16px; align-content: start; position: relative; overflow: hidden; }
.tool-out::after { content: ''; position: absolute; width: 120px; aspect-ratio: 1; right: -30px; bottom: -30px; background: rgba(229, 90, 43, .25); }
.tool-out .big { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; color: #fff; line-height: 1; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.tool-out .lab { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fdba9c; }
.tool-out dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; font-size: 15px; position: relative; z-index: 1; }
.tool-out dt { color: #c6d5e8; }
.tool-out dd { margin: 0; color: #fff; font-family: var(--mono); text-align: right; }
.tool-out .work { font-family: var(--mono); font-size: 13px; background: rgba(6, 11, 19, .35); padding: 14px; line-height: 1.7; position: relative; z-index: 1; white-space: pre-wrap; }
.seg-ctl { display: inline-flex; border: 1.5px solid var(--line-2); padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg-ctl label { position: relative; }
.seg-ctl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-ctl span { display: block; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--slate); cursor: pointer; }
.seg-ctl input:checked + span { background: var(--navy); color: #fff; }
.seg-ctl input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 860px) { .tool { grid-template-columns: minmax(0, 1fr); } }

/* ---- blog index ------------------------------------------------------------------------------------------- */
.bfilters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.bfilters button { border: 1.5px solid var(--line-2); background: #fff; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--slate); border-radius: 2px; transition: all .2s; }
.bfilters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; position: relative; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .35); }
.post-card[hidden] { display: none; }
.post-cover { aspect-ratio: 16 / 8.5; position: relative; overflow: hidden; background: var(--navy); }
.post-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-cat { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.post-card h2, .post-card h3 { font-size: 21px; color: var(--navy); line-height: 1.2; }
.post-card p { color: var(--slate); font-size: 15px; }
.post-meta { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--slate-2); }
.post-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.post-feature .post-cover { aspect-ratio: auto; min-height: 320px; }
.post-feature h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
@media (max-width: 800px) { .post-feature { grid-template-columns: minmax(0, 1fr); } .post-feature .post-cover { min-height: 0; aspect-ratio: 16 / 8.5; } }
/* covers drawn from the motif, one composition per post */
.cv { position: absolute; inset: 0; }
.cv i { position: absolute; display: block; }
.cv .p { inset: -20% -10% -20% var(--px, 40%); transform: skewX(-12deg); background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(229, 90, 43, .25)); }
.cv .s { width: var(--sw, 34%); aspect-ratio: 1; left: var(--sx, 58%); top: var(--sy, 14%); border: 2px solid rgba(255, 255, 255, .22); }
.cv .b { width: var(--bw, 16%); aspect-ratio: 1; left: var(--bx, 12%); top: var(--by, 56%); background: var(--orange); }
.cv .d { width: 10px; height: 10px; left: var(--dx, 30%); top: var(--dy, 22%); background: #fff; opacity: .7; }
.cv .g { inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 32px 32px; }
.cv .ic { left: 8%; top: 12%; }
.ahero-art .cv .ic { top: 34%; left: 30%; }
.cv .ic { width: 44px; height: 44px; color: #fff; opacity: .9; }
.cv .ic .i { width: 100%; height: 100%; stroke-width: 1.5; }
.post-card:hover .cv .s { transform: rotate(8deg); }
.cv .s { transition: transform .8s var(--ease); }

/* ---- forms pages (demo, beta) ----------------------------------------------------------------------------- */
.formpage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.formcard { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 44px); box-shadow: 0 50px 100px -60px rgba(15, 23, 42, .6); position: relative; }
.formcard::before { content: ''; position: absolute; inset: -1px -1px auto -1px; height: 8px; background: var(--orange); }
.formcard h2 { font-size: 26px; color: var(--navy); margin-bottom: 6px; }
.formcard > p { color: var(--slate); margin-bottom: 24px; }
.expect { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 28px; }
.expect li { list-style: none; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.expect b { font-family: var(--mono); color: var(--orange); font-size: 14px; }
.expect h3 { font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.expect p { color: var(--slate); font-size: 15.5px; }
@media (max-width: 900px) { .formpage { grid-template-columns: minmax(0, 1fr); } }
.btn[disabled] { opacity: .6; pointer-events: none; }
button.btn { border: 0; cursor: pointer; }

/* ---- glossary --------------------------------------------------------------------------------------------- */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 36px; position: sticky; top: calc(var(--hdr) + 10px); z-index: 5; background: var(--paper); padding: 10px 0; }
.az a { width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid var(--line-2); font-weight: 700; color: var(--navy); text-decoration: none; font-size: 14px; background: #fff; }
.az a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.term { background: #fff; border: 1px solid var(--line); padding: 26px 26px 24px; scroll-margin-top: calc(var(--hdr) + 80px); }
.term dt { font-size: 19px; font-weight: 750; color: var(--navy); margin-bottom: 8px; }
.term dd { margin: 0; color: var(--slate); font-size: 15.5px; line-height: 1.6; }
.term dd a { color: var(--orange-lo); }

/* ---- about ------------------------------------------------------------------------------------------------ */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0; border-top: 1px solid var(--dk-line); }
.principle { padding: 34px 28px 34px 0; border-right: 1px solid var(--dk-line); }
.principle + .principle { padding-left: 28px; }
.principle:last-child { border-right: 0; }
.principle b { display: block; font-family: var(--mono); color: var(--orange); font-size: 13px; margin-bottom: 18px; }
.principle h3 { font-size: 22px; margin-bottom: 10px; }
.principle p { color: var(--dk-mute); font-size: 15.5px; }
@media (max-width: 760px) { .principle { border-right: 0; border-bottom: 1px solid var(--dk-line); padding-left: 0 !important; } }
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 8px; }
.tl { position: relative; padding: 0 0 34px 34px; }
.tl::before { content: ''; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; background: var(--paper); border: 2px solid var(--navy); }
.tl.now::before { background: var(--orange); border-color: var(--orange); }
.tl b { font-family: var(--mono); font-size: 13px; color: var(--orange); }
.tl h3 { font-size: 20px; color: var(--navy); margin: 4px 0 6px; }
.tl p { color: var(--slate); }

/* ---- 404 -------------------------------------------------------------------------------------------------- */
.nf { min-height: 80svh; display: grid; place-items: center; text-align: center; background: var(--dk); color: var(--dk-text); padding: calc(var(--hdr) + 60px) var(--gut) 80px; position: relative; overflow: hidden; }
.nf h1 { font-size: clamp(5rem, 16vw, 11rem); color: #fff; font-stretch: 125%; line-height: .9; }
.nf p { margin: 18px auto 30px; max-width: 520px; font-size: 18px; }
.nf .cta-pair { justify-content: center; }

/* ---- motion polish (fx.js, 16 Oct 2026) ------------------------------------------------------------------- */
/* app screens come alive: rows deal in, boxes tick, bars grow (numbers count in fx.js) */
.fx .ui :is(.ui-h, .ui-rows li, .ui-ticks li, .ui-facts span, .ui-title, .ui-sub, .ui-steps li, .ui-note, .ui-lane, .ui-ba, .ui-bar, .ui-aging span, .ui-tree li, .ui-pipe > div, .ui-table p, .ui-foot > *, .lj, .ll, .lok, .ub-row),
.fx .uph > * { transition: opacity .5s ease, translate .75s var(--ease); transition-delay: calc(min(var(--i, 0), 10) * 70ms); }
.fx .ui:not(.live) :is(.ui-h, .ui-rows li, .ui-ticks li, .ui-facts span, .ui-title, .ui-sub, .ui-steps li, .ui-note, .ui-lane, .ui-ba, .ui-bar, .ui-aging span, .ui-tree li, .ui-pipe > div, .ui-table p, .ui-foot > *, .lj, .ll, .lok, .ub-row),
.fx .uph:not(.live) > * { opacity: 0; translate: 0 10px; }
.fx .ui .ui-ticks li::before { transition: background-color .35s, border-color .35s; transition-delay: calc(var(--i, 0) * 90ms + .45s); }
.fx .ui:not(.live) .ui-ticks li.on::before { background: transparent; border-color: var(--line-2); }
.fx .ui .ui-steps li { transition: opacity .5s, translate .75s var(--ease), background-color .4s, color .4s; transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 160ms + .5s), calc(var(--i, 0) * 160ms + .5s); }
.fx .ui:not(.live) .ui-steps li.on { background: var(--paper-2); color: var(--slate-2); }
.fx .ui .ub, .fx .ui .ui-bar i { animation: none; transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s var(--ease) calc(var(--i, 0) * 90ms + .35s); }
.fx .ui.live .ub, .fx .ui.live .ui-bar i { transform: none; }
.fx .ui .ui-aging i { transform: scaleY(0); transform-origin: 50% 100%; transition: transform 1s var(--ease) calc(var(--i, 0) * 90ms + .3s); }
.fx .ui.live .ui-aging i { transform: none; }
.fx .ui .ui-foot .pill-g { animation: none; }
.fx .ui.live .ui-foot .pill-g { animation: stampIn .6s cubic-bezier(.3, 1.6, .5, 1) both calc(var(--i, 0) * 90ms + .2s); }
@keyframes stampIn { from { scale: .6; opacity: 0; } to { scale: 1; opacity: 1; } }
.ub-today { transform-origin: top; transition: transform .8s var(--ease) 1.2s; }
.fx .ui:not(.live) .ub-today { transform: scaleY(0); }
.fx .uph .uph-due b { font-variant-numeric: tabular-nums; }

/* a glare that follows the cursor across a screen */
.ui, .uph { transition: rotate .4s cubic-bezier(.2, .75, .15, 1); }
.uph { position: relative; }
.ui::after, .uph::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .5), transparent 55%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .35s; }
.ui.glare::after, .uph.glare::after { opacity: 1; }

/* screens in feature rows tip up from lying back as they scroll in */
.frow-art .art-frame { perspective: 1400px; }
.fx .frow-art .art-frame > :is(.ui, .ui-phone) { transform: translateY(calc((1 - var(--tilt, 1)) * 70px)) rotateX(calc((1 - var(--tilt, 1)) * 34deg)) scale(calc(.88 + var(--tilt, 1) * .12)); transform-origin: 50% 100%; }
.art-frame::before { transition: transform 1.2s var(--ease); }
.frow:hover .art-frame::before { transform: skewX(-10deg) translateX(-12px); }
.art-frame::after { transition: transform .8s var(--ease); }
.frow:hover .art-frame::after { transform: translate(-10px, -10px) rotate(90deg); }

/* the hub: data flows from every module into the booking */
.pkt { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--orange); box-shadow: 0 0 14px rgba(229, 90, 43, .9); opacity: 0; z-index: 1; pointer-events: none; }
.hub.in .pkt { animation: pkt 3.2s cubic-bezier(.6, 0, .3, 1) infinite; animation-delay: calc(1.5s + var(--k) * .32s); }
@keyframes pkt { 0% { left: var(--x); top: var(--y); opacity: 0; } 12% { opacity: 1; } 68% { left: 50%; top: 50%; opacity: 1; } 74%, 100% { left: 50%; top: 50%; opacity: 0; } }
.hub.in .hub-core { animation: corePulse 1.6s ease-in-out infinite 1.6s; }
@keyframes corePulse { 50% { box-shadow: 0 0 0 16px rgba(229, 90, 43, .08), 0 30px 70px -18px rgba(229, 90, 43, .75); } }
.hub-node { transition: opacity .6s, transform .7s var(--ease), border-color .3s, background-color .3s; }
.hub-node:hover { border-color: var(--orange); background: #26364d; }

/* comparison tables: Staylio's column fills in, row by row */
.cmp td.us { background: linear-gradient(90deg, rgba(229, 90, 43, .14), rgba(229, 90, 43, .04)) 0 0 / 100% 100% no-repeat; }
.fx .cmp tbody.stg > tr { translate: none !important; }
.fx .cmp tbody.stg td.us { transition: background-size .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + .35s); }
.fx .cmp tbody.stg:not(.st-in) td.us { background-size: 0% 100%; }
.cmp tbody tr { transition: background-color .25s; }
.cmp tbody tr:hover { background: var(--paper); }
.cmp tbody tr:hover td.us { color: var(--navy); }

/* solution rows: the orange rail grows, pains lift */
.how-row { position: relative; border-left-color: transparent; }
.how-row::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 4px; background: var(--orange); transform-origin: 50% 0; transition: transform .9s var(--ease) .2s; }
.js .how-row[data-reveal]:not(.in)::before { transform: scaleY(0); }
.how-row:hover { box-shadow: 0 20px 40px -26px rgba(15, 23, 42, .35); }
.pain { transition: background-color .3s; }
.pain:hover { background: var(--paper); }
.pain::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--ease); }
.pain:hover::after { transform: scaleX(1); }

/* the glossary's letters follow the reading; terms lift */
.az a { transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.az a.on { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-2px); }
.term { transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease); }
.term:hover, .term:target { border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 24px 48px -30px rgba(15, 23, 42, .4); }

/* blog covers breathe */
.cv .b { animation: cvBob 7s ease-in-out infinite alternate; }
.cv .s { animation: cvTurn 16s ease-in-out infinite alternate; }
.cv .d { animation: blink 2.2s steps(1) infinite; }
@keyframes cvBob { to { translate: 0 -10px; } }
@keyframes cvTurn { to { rotate: 6deg; } }
.post-card:hover .cv .b { scale: 1.08; }
.cv .b { transition: scale .6s var(--ease); }

/* calculators: the result pops when it lands; a calendar of the month; the occupancy ring */
.tool-out .big { transform-origin: 0 50%; }
.tool-out .big.pop { animation: pop2 .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop2 { 40% { transform: scale(1.06); color: #fdba9c; } }
.cal { position: relative; z-index: 1; }
.cal:empty { display: none; }
.cal-h { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #c6d5e8; margin-bottom: 8px; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-g b { font-family: var(--mono); font-size: 10.5px; color: #93a9c4; text-align: center; font-weight: 500; padding-bottom: 2px; }
.cal-g i { position: relative; font-style: normal; font-family: var(--mono); font-size: 11.5px; text-align: center; padding: 6px 0; color: #93a9c4; background: rgba(6, 11, 19, .28); transition: background-color .35s, color .35s; transition-delay: calc(min(var(--i, 0), 31) * 22ms); }
.cal-g i.on { background: var(--orange); color: #fff; }
.cal-g i.in::after, .cal-g i.out::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; background: #fff; }
.cal-g i.out { box-shadow: inset 0 0 0 1.5px #fdba9c; }
.cal-k { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 12px; color: #c6d5e8; }
.cal-k span { width: 10px; height: 10px; display: inline-block; margin-right: -8px; }
.cal-k .k-on { background: var(--orange); }
.cal-k .k-in { background: rgba(6, 11, 19, .28); position: relative; }
.cal-k .k-in::after { content: ''; position: absolute; left: 3px; bottom: 1px; width: 4px; height: 4px; background: #fff; }
.cal-k .k-out { box-shadow: inset 0 0 0 1.5px #fdba9c; }
.gauge { --v: 0; position: relative; width: min(240px, 100%); aspect-ratio: 1; display: grid; place-items: center; z-index: 1; }
.gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; overflow: visible; }
.gauge circle { fill: none; stroke-width: 9; }
.g-track { stroke: rgba(6, 11, 19, .35); }
.g-fill { stroke: var(--orange); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v)); transition: stroke-dashoffset 1s var(--ease), stroke .4s; }
.gauge.below .g-fill { stroke: #f59e0b; }
.g-be { opacity: 0; transform-origin: 60px 60px; rotate: calc(var(--be, 0) * 360deg); transition: rotate 1s var(--ease), opacity .3s; }
.g-be line { stroke: #fff; stroke-width: 3; }
.gauge.has-be .g-be { opacity: 1; }
.gauge .big { font-size: clamp(2.2rem, 4vw, 3rem); text-align: center; }
.g-note { position: absolute; bottom: 24%; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: #fdba9c; }
