/* Ariavo website: the "final direction" (d8), with the serene scroll layer the founders asked for.
   Same components as the console (app.css), kept self-contained so the page loads one stylesheet.
   The website has no dark mode: its contrast comes from the Ivory, Navy and Terracotta sections. */

/* The page has four tones: Ivory (the page), Sea glass (the four steps), Petrol and Sea. Each section is painted in its own.
   (The class .tone-navy keeps its name; it is painted Petrol.) */
:root, .fixed-light, .tone-ivory {
  --bg: #FAF7F0; --panel: #FFFFFF; --panel2: #F1ECE2; --ink: #174A5B; --ink2: #4A6470;
  --rule: #E2DED4; --rule2: #ECE8DF; --stone: #E2DED4;
  --thread: #B83227; --needs: #B83227; --needs-ink: #B83227; --needs-bg: #FFFFFF; --link: #B83227;
  --btn: #174A5B; --btn-ink: #FAF7F0; --heat: #174A5B; --focus: #174A5B; --chip-bg: #FFFFFF;
  --lk-wall: #174A5B; --lk-thread: #B83227;
  --hatch: repeating-linear-gradient(135deg, #E2DED4 0 1.5px, #FFFFFF 1.5px 8px);
  --h1: color-mix(in srgb, #174A5B 8%, #FFFFFF); --h2: color-mix(in srgb, #174A5B 18%, #FFFFFF); --h3: color-mix(in srgb, #174A5B 30%, #FFFFFF);
  --h4: color-mix(in srgb, #174A5B 44%, #FFFFFF); --h5: color-mix(in srgb, #174A5B 70%, #FFFFFF); --h6: color-mix(in srgb, #174A5B 90%, #FFFFFF);
  --ht1: #174A5B; --ht2: #174A5B; --ht3: #174A5B; --ht4: #174A5B; --ht5: #FAF7F0; --ht6: #FAF7F0;
}
:root {
  --sb: #174A5B; --sb-ink: #FAF7F0; --sb-ink2: #DCE2EA; --sb-thread: #F07261; --sb-active: rgba(250, 247, 240, .09);
  --toast: #174A5B; --toast-ink: #FAF7F0; --pw-bg: #FFFFFF; --mk-card: #FAF7F0;
  --serif: Marcellus, Georgia, serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
.tone-navy {
  --bg: #174A5B; --panel: #225868; --ink: #FAF7F0; --ink2: #DCE2EA;
  --rule: #3A6B79; --rule2: #2A5A69;
  --thread: #F07261; --needs: #F07261; --needs-ink: #FAF7F0; --needs-bg: rgba(240, 114, 97, .16); --link: #FAF7F0;
  --btn: #FAF7F0; --btn-ink: #174A5B; --focus: #FAF7F0; --chip-bg: #1E5163;
  --lk-wall: #FAF7F0; --lk-thread: #F07261;
}
.tone-sea {
  --bg: #24527F; --panel: #2E5E8C; --ink: #FAF7F0; --ink2: #E2E8F0;
  --rule: #4A74A0; --rule2: #3A6590;
  --thread: #F07261; --needs: #F07261; --needs-ink: #FAF7F0; --needs-bg: rgba(240, 114, 97, .16); --link: #FAF7F0;
  --btn: #FAF7F0; --btn-ink: #174A5B; --focus: #FAF7F0; --chip-bg: #2A5986;
  --lk-wall: #FAF7F0; --lk-thread: #F07261;
}
section[class*="tone-"], footer[class*="tone-"] { background: var(--bg); color: var(--ink); }

/* Product pictures keep their own light palette whatever the page tone. */
.fixed-light { color: var(--ink); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 16px/24px var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: clip; }
:where(h1, h2, h3, h4, p, ul, ol, figure, dl, dd, fieldset) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 400; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:where(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lab { font: 400 14px/18px var(--serif); letter-spacing: .18em; text-transform: uppercase; color: var(--ink2); }
.lab-rule { display: flex; align-items: center; gap: 12px; }
.lab-rule::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.b { font-weight: 600; }
.mut { color: var(--ink2); }
.k1 { background: var(--h1); color: var(--ht1); } .k2 { background: var(--h2); color: var(--ht2); } .k3 { background: var(--h3); color: var(--ht3); }
.k4 { background: var(--h4); color: var(--ht4); } .k5 { background: var(--h5); color: var(--ht5); } .k6 { background: var(--h6); color: var(--ht6); }

/* buttons, chips, knots */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; font: 600 15px/20px var(--sans); color: var(--ink); background: transparent; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .2s var(--ease), color .2s; }
a.btn, a.btn:hover { text-decoration: none; }
.btn.lg { height: 48px; padding: 0 20px; font-size: 16px; }
.btn-p, a.btn-p { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.btn-p:hover { background: color-mix(in srgb, var(--btn) 88%, var(--ink)); }
.btn-o, a.btn-o { border-color: var(--ink); color: var(--ink); }
.btn-o:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn-t { color: var(--ink2); padding: 0 8px; }
.btn-t:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 4px; border: 1px solid var(--rule); background: var(--chip-bg); font: 400 14px/18px var(--serif); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.chip i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.chip svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip-needs { border-color: var(--needs); color: var(--needs-ink); background: var(--needs-bg); }
.chip-needs i { background: var(--needs); }
.chip-med i { background: transparent; box-shadow: inset 0 0 0 2px var(--needs); }
.chip-ok { border-color: var(--ink); color: var(--ink); }
.chip-mute { color: var(--ink2); }
.thread { position: relative; padding-left: 32px; }
.thread::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--thread); border-radius: 1px; }
.knot { position: absolute; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--needs); box-shadow: 0 0 0 3px var(--bg); transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.knot.done { background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 3px var(--bg); }
.knot.done::after { content: ""; position: absolute; left: 4px; top: 4px; width: 5px; height: 3px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.knot.st { position: relative; display: inline-block; flex: none; }

/* lockup (walls and wordmark follow --lk-wall, the thread --lk-thread) */
.lockup { display: inline-block; padding: 6px 0; line-height: 0; }
.lockup svg { width: 200px; height: auto; display: block; }
.lockup .wall { fill: none; stroke: var(--lk-wall); stroke-linecap: round; }
.lockup .thr { fill: none; stroke: var(--lk-thread); stroke-linecap: round; stroke-linejoin: round; }
.lockup .dot { fill: var(--lk-thread); }
.lockup .wm { fill: var(--lk-wall); }

/* toast */
.toast { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 10px 8px 14px; border-radius: 8px; background: var(--toast); color: var(--toast-ink); font: 600 15px/20px var(--sans); box-shadow: 0 8px 24px rgba(23, 74, 91, .18); animation: toast-in .22s var(--ease); max-width: 100%; }
.toast.leaving { opacity: 0; transition: opacity .22s var(--ease); }
.toast .knot { position: relative; flex: none; box-shadow: inset 0 0 0 2px var(--toast-ink); background: transparent; }
.toast .knot::after { border-color: var(--toast-ink); }
.toast .x { width: 32px; height: 32px; border: 0; background: transparent; color: var(--toast-ink); border-radius: 6px; cursor: pointer; display: grid; place-items: center; flex: none; }
.toast .x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lnk { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font: inherit; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.lnk:hover { text-decoration-thickness: 2px; }
.toast .lnk { color: var(--toast-ink); min-height: 32px; font-weight: 600; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.site-toast { position: fixed; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; pointer-events: none; z-index: 20; padding: 0 20px; }
.site-toast .toast { pointer-events: auto; }

/* ---------- Intro: the thread leads in through the maze, then the page lifts like a curtain ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: none; align-items: center; justify-content: center; }
.loading .preloader, .preloader.exiting { display: flex; }
.loading body { overflow: hidden; }
.preloader svg { width: min(340px, 64vw); height: auto; overflow: visible; }
.preloader .word { fill: var(--lk-wall); opacity: 0; animation: pl-fade .8s ease .15s forwards; }
.preloader .walls { stroke: var(--lk-wall); }
.preloader .walls path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: pl-line 1.1s var(--ease) .25s forwards; }
.preloader .walls path:nth-child(2) { animation-delay: .35s; } .preloader .walls path:nth-child(3) { animation-delay: .45s; }
/* The thread starts at the centre, runs out through the gap and lands as the dot of the i. */
.preloader .dot { fill: var(--lk-thread); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pl-pop .5s var(--ease) 2s forwards; }
.preloader .thread-path { stroke: var(--lk-thread); stroke-dasharray: 100 100; stroke-dashoffset: 100; animation: pl-line-out 1.5s cubic-bezier(.65, 0, .35, 1) .75s forwards; }
.preloader.looping .thread-path { animation: pl-loop-out 2.4s cubic-bezier(.65, 0, .35, 1) infinite; }
.preloader.redraw .thread-path { animation: pl-line-out .8s cubic-bezier(.65, 0, .35, 1) forwards; }
.preloader.exiting { transform: translateY(-100%); transition: transform .95s cubic-bezier(.76, 0, .24, 1) .2s; }
.preloader.exiting svg { opacity: 0; transition: opacity .5s ease .15s; }
@keyframes pl-fade { to { opacity: 1; } }
@keyframes pl-line { to { stroke-dashoffset: 0; } }
@keyframes pl-pop { to { transform: scale(1); } }
@keyframes pl-line-out { from { stroke-dashoffset: -100; } to { stroke-dashoffset: 0; } }
@keyframes pl-loop-out { 0% { stroke-dashoffset: -100; } 48% { stroke-dashoffset: 0; } 62% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }

/* ---------- Page ---------- */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 64px; }
.sec { padding: 56px 0; }
.band { padding: 96px 0; }
.t-h2 { font: 400 40px/46px var(--serif); letter-spacing: -.005em; max-width: 760px; }
.t17 { font-size: 17px; line-height: 26px; }
.lead { font-size: 19px; line-height: 30px; }
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.sec-head .lead { color: var(--ink2); max-width: 680px; }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); color: var(--ink); }
.ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* header */
.hd { border-bottom: 1px solid var(--rule); }
.hd .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; position: relative; }
.hd .lockup { padding: 8px 0; }
.hd-nav { display: flex; align-items: center; gap: 4px; }
a.nl { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 600 15px/20px var(--sans); white-space: nowrap; }
a.nl:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.hd-right { display: flex; align-items: center; gap: 10px; }
.tog { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.tog svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tog:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.menu-btn { display: none; height: 44px; }
.hd-nav .nl-cta { display: none; }
a.nl-demo { flex-direction: column; justify-content: center; align-items: center; line-height: 18px; margin-left: 8px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--thread) 45%, transparent); color: var(--thread); }
a.nl-demo:hover { text-decoration: none; }
a.nl-demo:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.nl-demo small { font: 400 10px/12px var(--serif); letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--thread) 75%, var(--bg)); }

/* hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero h1 { font: 400 56px/60px var(--serif); letter-spacing: -.005em; margin-top: 20px; max-width: 560px; }
.hero h1 .thr-word { color: var(--thread); }
.hero .lead { margin-top: 24px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 15px; line-height: 20px; color: var(--ink2); }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--thread); flex: none; }

/* product window, built from the console's own components */
.pw { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--pw-bg); box-shadow: 0 18px 48px rgba(23, 74, 91, .12); --bg: var(--pw-bg); }
.pw-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 20px; background: var(--sb); color: var(--sb-ink); --lk-wall: #FAF7F0; --lk-thread: #F07261; }
.pw-bar .lockup { padding: 8px 0; }
.pw-bar .lockup svg { width: 150px; }
.pw-bar .lab { color: var(--sb-ink2); letter-spacing: .14em; white-space: nowrap; }
.pw-body { display: flex; align-items: stretch; }
.mk-sb { width: 212px; flex: none; background: var(--sb); color: var(--sb-ink); padding: 2px 16px 20px; --bg: var(--sb); }
.mk-sb.hide { display: none; }
.mk-sb .lab { color: var(--sb-ink2); letter-spacing: .14em; display: block; margin-top: 10px; }
.mk-nav { position: relative; padding-left: 36px; margin-top: 4px; }
.mk-nav::before { content: ""; position: absolute; left: 20px; top: 9px; bottom: 9px; width: 2px; background: var(--sb-thread); border-radius: 1px; }
.mk-nav .it { position: relative; display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 8px 4px 10px; margin-left: -10px; border-radius: 6px; font-size: 14px; line-height: 18px; color: var(--sb-ink); }
.mk-nav .it.on { background: var(--sb-active); }
.mk-nav button.it { width: calc(100% + 10px); border: 0; background: transparent; color: var(--sb-ink); font: inherit; font-size: 14px; line-height: 18px; text-align: left; cursor: pointer; }
.mk-nav button.it:hover { background: var(--sb-active); }
.mk-nav .k { position: absolute; left: -10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--sb); box-shadow: inset 0 0 0 2px var(--sb-thread); }
.mk-nav .it.on .k { background: var(--sb-thread); box-shadow: 0 0 0 3px var(--sb); }
.mk-nav .hotel { font: 400 15px/20px var(--serif); }
.mk-nav .sub { margin-left: 10px; display: none; }
.mk-nav .sub.show { display: block; }
.mk-nav .bd { margin-left: auto; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--sb-thread); font: 600 14px/18px var(--sans); display: inline-flex; align-items: center; justify-content: center; }
.pw-stack { flex: 1; min-width: 0; display: grid; }
.pv { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .26s var(--ease), visibility 0s linear .26s; }
.pv.on { opacity: 1; visibility: visible; transition: opacity .26s var(--ease), visibility 0s; }
.mk-main { padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mk-h { font: 400 22px/28px var(--serif); margin-top: 4px; }
.mk-sub { font-size: 14px; line-height: 20px; color: var(--ink2); margin-top: 2px; }
.mk-lab { display: block; }
.mk-kpis { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.mk-kpi { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.mk-kpi .lab { font-size: 14px; letter-spacing: .12em; }
.mk-kpi .v { font: 400 22px/26px var(--serif); }
.mk-kpi .s { font-size: 14px; line-height: 18px; color: var(--ink2); flex: 1; min-width: 120px; text-align: right; }
.mk-thread { display: flex; flex-direction: column; gap: 12px; }
.mk-dec { position: relative; display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--rule2); }
.mk-dec:last-child { border-bottom: 0; padding-bottom: 0; }
.mk-dec .knot { top: 4px; left: -32px; }
.mk-dec-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mk-meta { font-size: 14px; line-height: 18px; color: var(--ink2); }
.mk-dec-t { font: 600 15px/20px var(--sans); }
.mk-dec-b { font-size: 14px; line-height: 20px; }
.mk-why { font-size: 14px; line-height: 20px; color: var(--ink2); }
.mk-row { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule2); font-size: 14px; line-height: 20px; }
.mk-row:last-child { border-bottom: 0; }
.mk-row .t { flex: 1; min-width: 0; }
.mk-row .n { font-weight: 600; white-space: nowrap; text-align: right; }
.mk-row .n .est { font-weight: 400; color: var(--ink2); }
.mk-row .chip { flex: none; }
.mk-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mk-total { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 20px; }
.mk-banner { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--needs); border-radius: 8px; background: var(--needs-bg); font-size: 14px; line-height: 20px; }
.mk-banner .knot { position: static; flex: none; margin-top: 2px; }
.mk-grid { display: flex; flex-direction: column; gap: 2px; }
.mk-gr { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); gap: 2px; }
.mk-gh { font-size: 14px; line-height: 18px; color: var(--ink2); padding: 2px 4px; white-space: nowrap; }
.mk-gh b { display: block; font-weight: 600; color: var(--ink); }
.mk-rh { font: 600 14px/18px var(--sans); padding: 4px 2px; display: flex; flex-direction: column; }
.mk-rh span { font-weight: 400; color: var(--ink2); font-size: 13px; line-height: 16px; }
.mk-cell { height: 46px; border-radius: 4px; padding: 4px; display: flex; flex-direction: column; justify-content: space-between; font-size: 14px; line-height: 16px; position: relative; overflow: hidden; }
.mk-cell .p { font-weight: 600; display: flex; justify-content: space-between; gap: 2px; white-space: nowrap; }
.mk-cell .o { display: flex; justify-content: space-between; gap: 2px; white-space: nowrap; }
.mk-cell.closed { background: var(--hatch); color: var(--ink2); justify-content: center; }
.mk-cell.pend { box-shadow: inset 0 0 0 2px var(--needs); overflow: visible; }
.mk-cell.pend .knot { left: auto; right: -6px; top: -6px; width: 18px; height: 18px; box-shadow: 0 0 0 2px var(--pw-bg); font: 600 13px/18px var(--sans); color: #FAF7F0; display: flex; align-items: center; justify-content: center; }
.mk-cell s { font-weight: 400; color: inherit; opacity: .8; }
.mk-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; line-height: 18px; color: var(--ink2); }
.mk-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }
.mk-card { background: var(--mk-card); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.mk-partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font-size: 14px; line-height: 20px; }
.mk-owner-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; line-height: 18px; color: var(--ink2); padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.mk-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mk-num { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--rule); padding-top: 8px; min-width: 0; }
.mk-num .lab { font-size: 14px; letter-spacing: .1em; min-height: 36px; }
.mk-num .v { font: 400 26px/32px var(--serif); white-space: nowrap; }
.mk-num .s { font-size: 14px; line-height: 18px; color: var(--ink2); }
.mk-letter { font-size: 15px; line-height: 22px; }
.tabs { display: flex; gap: 2px; margin: 16px 0 0; padding: 0; border-bottom: 1px solid var(--rule); min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; color: var(--ink2); font: 600 15px/20px var(--sans); cursor: pointer; white-space: nowrap; border: 0; background: transparent; box-shadow: inset 0 -2px 0 transparent; transition: color .2s var(--ease), box-shadow .2s var(--ease); border-radius: 4px 4px 0 0; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.caption { margin-top: 12px; font-size: 15px; line-height: 22px; color: var(--ink2); min-height: 44px; }


/* hero reel: a short loop on the Commercial Director's phone (state changes only, per the motion rules) */
.reel { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone { width: 340px; height: 680px; border-radius: 40px; padding: 10px; background: var(--sb); border: 1px solid var(--rule); box-shadow: 0 24px 60px rgba(23, 74, 91, .16); --lk-wall: var(--ink); }
.ps { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: var(--bg); color: var(--ink); padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 19px; }
.ps-head { display: flex; align-items: center; justify-content: space-between; }
.ps-head .lockup { padding: 0; }
.ps-head .lockup svg { width: 104px; }
.ps-time { font: 600 13px/16px var(--sans); color: var(--ink2); }
.ps-title { display: flex; flex-direction: column; }
.ps-h { font: 400 22px/28px var(--serif); }
.ps-sub { font-size: 13px; line-height: 17px; color: var(--ink2); }
.ps-over { border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ps-over .lab { font-size: 12px; letter-spacing: .14em; }
.ps-over li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 18px; transition: opacity .22s var(--ease); }
.ps-over li svg { width: 14px; height: 14px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.js .reel.playing .ps-over li { opacity: 0; }
.js .reel.playing .ps-over li.on { opacity: 1; }
.ps-needs .lab { font-size: 12px; letter-spacing: .14em; }
.ps-list { padding-left: 26px; }
.ps-list.thread::before { left: 6px; top: 12px; bottom: 12px; }
.ps-it { position: relative; border-bottom: 1px solid var(--rule2); }
.ps-it > .knot { left: -26px; top: 9px; width: 14px; height: 14px; }
.ps-it.done > .knot { background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 3px var(--bg); }
.ps-it.done > .knot::after { content: ""; position: absolute; left: 3.5px; top: 3.5px; width: 5px; height: 3px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.ps-c { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .26s var(--ease), opacity .26s var(--ease); }
.ps-in { overflow: hidden; min-height: 0; }
.ps-done { grid-template-rows: 0fr; opacity: 0; }
.ps-it.done > .ps-c:not(.ps-done) { grid-template-rows: 0fr; opacity: 0; }
.ps-it.done > .ps-done { grid-template-rows: 1fr; opacity: 1; }
.ps-w { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; }
.ps-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ps-l1 { color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-l1 b, .ps-l2 b { color: var(--ink); font-weight: 600; }
.ps-l2 { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-why { font-size: 13px; line-height: 17px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ps-ar { font-family: 'Noto Naskh Arabic', 'Geeza Pro', serif; font-size: 15px; line-height: 23px; direction: rtl; text-align: right; unicode-bidi: isolate; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ps-ar bdi { font-family: var(--sans); font-size: 13px; }
.ps-acts { flex: none; display: flex; flex-direction: column; gap: 2px; width: 74px; }
.ps-acts .btn { height: 36px; padding: 0 8px; font-size: 14px; position: relative; }
.ps-acts .btn.tap { background: color-mix(in srgb, var(--btn) 82%, var(--thread)); }
.ps-acts .btn.tap::after { content: ""; position: absolute; inset: -4px; border-radius: 11px; box-shadow: 0 0 0 2px var(--thread); animation: tap .32s var(--ease) forwards; }
@keyframes tap { from { opacity: 1; } to { opacity: 0; } }
.ps-hd { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; min-height: 40px; padding: 10px 0; line-height: 1.35; }
.ps-hd .mut { min-width: 0; }
.ps-undo { margin-left: auto; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.ps-clear { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--ink2); transition: opacity .22s var(--ease); }
.ps-owner { border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 18px; transition: opacity .22s var(--ease); }
.ps-owner .lab { font-size: 12px; letter-spacing: .14em; }
.js .reel.playing .ps-owner { opacity: 0; }
.js .reel.playing .ps-owner.on { opacity: 1; }
.js .reel.playing .ps-clear { opacity: 0; }
.js .reel.playing .ps-clear.on { opacity: 1; }
.ps-toast { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; justify-content: center; pointer-events: none; }
.ps-toast .toast { width: 100%; min-height: 0; padding: 8px 12px; gap: 10px; font-size: 13.5px; line-height: 18px; opacity: 0; transform: translateY(8px); transition: opacity .22s var(--ease), transform .22s var(--ease); animation: none; }
.ps-toast .toast.show { opacity: 1; transform: none; }
.ps { transition: opacity .3s var(--ease); }
.reel.fade .ps > * { opacity: 0; transition: opacity .3s var(--ease); }
.reel-cap { display: flex; align-items: baseline; justify-content: center; gap: 4px 12px; flex-wrap: wrap; max-width: 420px; text-align: center; font-size: 15px; line-height: 22px; color: var(--ink2); }
.reel-cap .lnk { min-height: 32px; font-size: 14px; }

/* the labyrinth: a scroll story. The walls draw, five dead ends appear with the five problems, then the
   thread finds its way to the centre. Scrolling back undoes it. Without motion, everything is shown at once. */
.laby-s { position: relative; }
.laby-pin { padding: 96px 0; }
.laby { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.maze-art { display: block; width: min(420px, 100%, 46vh); height: auto; margin-top: 32px; overflow: visible; }
.maze-art .walls { fill: none; stroke: color-mix(in srgb, var(--ink) 38%, transparent); stroke-width: 7; stroke-linecap: round; }
.maze-art .lost path { fill: none; stroke: var(--thread); stroke-width: 3.5; stroke-linecap: round; opacity: .42; transition: opacity .6s var(--ease); }
.maze-art .thr { fill: none; stroke: var(--thread); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.maze-art .dot { fill: var(--thread); transition: opacity .4s var(--ease); }
.laby-pts { display: flex; flex-direction: column; }
.lp { display: flex; gap: 20px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--rule); transition: opacity .5s var(--ease); }
.lp:last-child { border-bottom: 1px solid var(--rule); }
.lp .num { font: 600 14px/22px var(--sans); letter-spacing: .12em; color: var(--ink2); width: 30px; flex: none; }
.lp-t { font: 400 26px/34px var(--serif); }
.laby-answer { display: flex; align-items: center; gap: 14px; margin-top: 32px; font: 400 30px/38px var(--serif); color: var(--thread); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.laby-answer .knot.done { box-shadow: inset 0 0 0 2px var(--thread), 0 0 0 3px var(--bg); }
.laby-answer .knot.done::after { border-color: var(--thread); }
.laby-answer .knot { width: 20px; height: 20px; }
.laby-myth { margin: 14px 0 0 34px; max-width: 40ch; font: 400 17px/26px var(--sans); color: color-mix(in srgb, var(--ink) 72%, transparent); transition: opacity .6s var(--ease) .1s, transform .6s var(--ease) .1s; }
.story .laby-myth { opacity: 0; transform: translateY(8px); }
.story .laby-myth.on { opacity: 1; transform: none; }
.laby-answer .knot.done::after { left: 5px; top: 5px; width: 7px; height: 4px; }
.story .laby-s.solving .lost path { opacity: .14; }
@media (min-width: 900px) and (min-height: 640px) {
  .reveal-on .laby-s { height: 280vh; }
  .reveal-on .laby-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 0; }
  .reveal-on .laby-pin > .wrap { width: 100%; }
}
.story .lp { opacity: .2; }
.story .lp.on { opacity: 1; }
.story .laby-s.solved .lp { opacity: .5; }
.story .laby-answer { opacity: 0; transform: translateY(10px); }
.story .laby-answer.on { opacity: 1; transform: none; }
.story .maze-art .dot { opacity: 0; }
.story .maze-art .dot.on { opacity: 1; }

/* what we run: the list is the tab set for the product window */
.run { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px); gap: 48px; align-items: start; margin-top: 48px; }
.feat { display: flex; flex-direction: column; }
.fi { position: relative; display: flex; gap: 18px; align-items: flex-start; width: 100%; padding: 18px 12px 18px 16px; border: 0; border-top: 1px solid var(--rule); background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; border-radius: 0; transition: background-color .2s var(--ease); }
.fi:last-child { border-bottom: 1px solid var(--rule); }
.fi:hover { background: color-mix(in srgb, var(--rule) 40%, transparent); }
.fi::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 1px; background: transparent; transition: background-color .2s var(--ease); }
.fi[aria-selected="true"]::before { background: var(--thread); }
.fi[aria-selected="true"] .ico { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.fi-tx { display: flex; flex-direction: column; min-width: 0; }
.fi-t { font: 400 20px/26px var(--serif); }
.fi-p { margin-top: 6px; font-size: 16px; line-height: 24px; color: var(--ink2); }
.pw-col { min-width: 0; position: sticky; top: 24px; }
.pw-col .tabs { display: none; margin: 0 0 12px; }

/* how it works: a carousel on its own stone band */
.tone-glass { --bg: #DCEBE6; --panel: #FFFFFF; --rule: #BCD6CD; --rule2: #CDE2DA; --ink2: #3E5F64; }
.stepper { margin-top: 44px; }
.st-nav { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; --prog: 0; }
.st-nav::before, .st-nav::after { content: ""; position: absolute; left: 30px; right: calc((100% - 48px) / 4 - 30px); top: 7px; height: 2px; border-radius: 1px; background: var(--rule); }
.st-nav::after { background: var(--thread); right: auto; width: calc((3 * (100% - 48px) / 4 + 48px) * var(--prog)); transition: width .7s var(--ease); }
.st-tab { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 30px 0 0; border: 0; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.st-tab .knot { top: 0; left: 22px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--needs), 0 0 0 4px var(--bg); }
.st-tab.past .knot { background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 4px var(--bg); }
.st-tab.past .knot::after { content: ""; position: absolute; left: 4px; top: 4px; width: 5px; height: 3px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.st-tab[aria-selected="true"] .knot { background: var(--needs); box-shadow: 0 0 0 4px var(--bg); }
.st-box { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 22px 22px 20px; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.st-tab:hover .st-box { border-color: var(--ink2); box-shadow: 0 10px 28px rgba(23, 74, 91, .12); }
.st-top { display: flex; justify-content: space-between; align-items: flex-start; }
.st-no { font: 400 40px/1 var(--serif); color: var(--thread); }
.st-ico { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.st-tt { font: 400 24px/30px var(--serif); margin-top: 8px; }
.st-sm { font-size: 15px; line-height: 22px; color: var(--ink2); }
.st-open { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; font: 600 14px/18px var(--sans); color: var(--thread); }
.st-open svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.st-tab[aria-selected="true"] .st-box { background: #174A5B; border-color: #174A5B; color: #FAF7F0; box-shadow: 0 14px 34px rgba(23, 74, 91, .24); }
.st-tab[aria-selected="true"] .st-no, .st-tab[aria-selected="true"] .st-open { color: #F07261; }
.st-tab[aria-selected="true"] .st-sm { color: rgba(250, 247, 240, .86); }
.st-tab[aria-selected="true"] .st-open svg { transform: rotate(90deg); }
.st-stage { margin-top: 18px; }
.st-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 26px 32px; }
.st-card.on { animation: st-in .45s var(--ease); }
.st-head h3 { font: 400 28px/34px var(--serif); margin-top: 4px; }
.st-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.st-facts dt { font: 400 13px/18px var(--serif); letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.st-facts dd { margin-top: 6px; font-size: 17px; line-height: 25px; }

/* team, trust */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.tcard { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.tcard h3 { font: 400 24px/30px var(--serif); }
.tcard p { font-size: 16px; line-height: 24px; color: var(--ink2); }
.cols4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.tcol { border-top: 1px solid var(--rule); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.tcol h3 { font: 400 20px/26px var(--serif); }
.tcol p { font-size: 16px; line-height: 24px; color: var(--ink2); }

/* languages */
.mq { overflow: hidden; margin-top: 48px; padding: 8px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.mq-track { display: flex; width: max-content; animation: mq 60s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-list { display: flex; align-items: center; flex: none; }
.mq-list li { font: 400 36px/56px var(--serif); white-space: nowrap; padding: 0 28px; position: relative; }
.mq-list li:nth-child(even) { color: var(--thread); }
.mq-list li::after { content: "·"; position: absolute; right: -6px; color: var(--ink2); font-size: 28px; }
.mq-list li[lang="ar"] { font-family: 'Noto Naskh Arabic', 'Geeza Pro', serif; font-size: 34px; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* pricing and the fee calculator */
.psteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.pstep { border-top: 1px solid var(--rule); padding-top: 20px; }
.pstep .no { font: 600 14px/18px var(--sans); letter-spacing: .12em; color: var(--ink2); }
.pstep h3 { font: 400 24px/30px var(--serif); margin-top: 8px; }
.pstep p { margin-top: 10px; font-size: 16px; line-height: 24px; color: var(--ink2); }
.capline { margin-top: 32px; font-size: 17px; line-height: 26px; }
/* free audit */
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld label { font: 600 15px/20px var(--sans); }
.fld label span { font-weight: 400; color: var(--ink2); }
.in { height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--bg); color: var(--ink); font: 400 16px/24px var(--sans); width: 100%; transition: border-color .2s var(--ease); }
.in:focus { border-color: var(--ink); }
.in::placeholder { color: var(--ink2); opacity: .8; }
.audit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.apts { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.apts li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 26px; }
.apts svg { width: 18px; height: 18px; flex: none; margin-top: 4px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.form { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 28px 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.form textarea.in { height: 96px; padding: 10px 12px; resize: vertical; }
.form select.in { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M4 6l4 4 4-4' fill='none' stroke='%23E2DED4' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'></path></svg>"); background-repeat: no-repeat; background-position: right 12px center; }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 22px; }
.chk input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.okline { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 26px; animation: row-in .26s var(--ease); }
.okline .knot { margin-top: 5px; }

/* footer */
.ft { border-top: 1px solid var(--rule); padding: 48px 0 56px; }
.ft-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.ft-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.ft p.note { margin-top: 28px; max-width: 720px; font-size: 15px; line-height: 22px; color: var(--ink2); }
.ft .copy { margin-top: 8px; font-size: 15px; line-height: 22px; color: var(--ink2); }

/* ---------- The serene scroll layer ---------- */
/* Ariadne's thread: it wavers down the left margin, curls once at each section, unwinds as you scroll down
   and winds back as you scroll up; a small ball of thread rolls at its tip. Drawn by site.js. */
body { position: relative; }
.spool { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; overflow: visible; display: block; }
.spool path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trail { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 60; pointer-events: none; display: none; }

/* Things arrive quietly as they come into view: a short rise and a fade, a little apart from each other. */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal-on [data-reveal].shown { opacity: 1; transform: none; }

/* reduced motion: every state complete */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pv, .pv.on, .tab, .btn, .knot { transition: none; }
  .mq-track { animation: none; }
  .okline, .toast, .st-card.on { animation: none; }
  .st-nav::after, .lp, .laby-answer, .maze-art .dot, .maze-art .lost path { transition: none; }
  .ps-c, .ps-over li, .ps-clear, .ps-owner, .ps-toast .toast, .fi, .fi::before { transition: none; }
  .ps-acts .btn.tap::after { animation: none; }
  .preloader .word, .preloader .walls path, .preloader .thread-path { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .preloader .dot { animation: none; transform: none; }
  .preloader.exiting { transform: none; opacity: 0; transition: opacity .22s; }
}

/* breakpoints */
@media (max-width: 1100px) {
  .hd .wrap { flex-wrap: wrap; }
  .menu-btn { display: inline-flex; }
  .hd-nav { display: none; flex-direction: column; align-items: stretch; gap: 2px; width: 100%; order: 3; padding: 8px 0 16px; border-top: 1px solid var(--rule); }
  .hd-nav.open { display: flex; }
  .hd-nav .nl { height: 48px; }
  .hd-nav .nl-demo { flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; align-self: flex-start; margin: 4px 0 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 720px; }
  .hero-grid { gap: 48px; }
  .run { grid-template-columns: minmax(0, 1fr); }
  .laby { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .st-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .st-nav::before, .st-nav::after { display: none; }
  .st-box { min-height: 0; }
  .st-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pw-col { position: static; }
  .pw-col .tabs { display: flex; }
  .fi { cursor: default; }
  .cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 36px 0; }
  .band { padding: 64px 0; }
  .hero { padding: 40px 0 36px; }
  .hd .wrap { min-height: 72px; gap: 12px; }
  .hd .lockup svg { width: 170px; }
  .hd-nav .nl-cta { display: inline-flex; margin-top: 8px; align-self: flex-start; }
  .hd-right .btn-cta { display: none; }
  .hero h1 { font-size: 38px; line-height: 44px; margin-top: 16px; }
  .hero .lead { font-size: 17px; line-height: 27px; }
  .phone { width: min(340px, 100%); height: 640px; }
  .fi { padding: 14px 8px 14px 12px; }
  .hero-cta .btn { width: 100%; }
  .t-h2 { font-size: 30px; line-height: 36px; }
  .lead { font-size: 17px; line-height: 27px; }
  .pw-bar .lab { display: none; }
  .mk-sb { display: none; }
  .mk-main { padding: 16px 16px 20px; }
  .mk-nums { grid-template-columns: minmax(0, 1fr); }
  .mk-gr { grid-template-columns: 48px repeat(5, minmax(0, 1fr)); }
  .mk-gr .d6, .mk-gr .d7 { display: none; }
  .mk-partners { grid-template-columns: minmax(0, 1fr); }
  .mk-thread .mk-dec:nth-child(3), .pv[data-view="6"] .mk-row, .pv .mk-sub { display: none; }
  .mk-thread .mk-dec:nth-child(2) { border-bottom: 0; padding-bottom: 0; }
  .tabs { flex-wrap: wrap; overflow: visible; gap: 0; }
  .tab { height: 48px; padding: 0 10px; }
  .btn { height: 44px; }
  .btn.lg { height: 48px; }
  .chk input { width: 24px; height: 24px; }
  .cards3 { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 32px; }
  .cols4 { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 32px; }
  .psteps { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 32px; }
  .mq-list li { font-size: 28px; line-height: 48px; padding: 0 20px; }
  .mq-list li[lang="ar"] { font-size: 27px; }
  .form { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 16px; }
  .form .btn { width: 100%; }
  .ft { padding: 36px 0 40px; }
  .maze-art { width: 240px; margin-top: 24px; }
  .laby-pin { padding: 64px 0; }
  .lp-t { font-size: 20px; line-height: 27px; }
  .laby-answer { font-size: 24px; line-height: 30px; }
  .st-nav { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .st-tab { padding-top: 0; }
  .st-tab .knot { display: none; }
  .st-box { padding: 16px 18px; gap: 6px; }
  .st-no { font-size: 30px; }
  .st-tt { font-size: 21px; line-height: 26px; margin-top: 0; }
  .st-card { padding: 20px; }
  .st-head h3 { font-size: 24px; line-height: 30px; }
  .st-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* ---------- The hotel app, as the product window shows it ---------- */
.pw-bar { justify-content: flex-start; background: #FFFFFF; color: var(--ink); border-bottom: 1px solid var(--rule); --lk-wall: #174A5B; --lk-thread: #B83227; }
.pw-bar .lockup svg { width: 132px; }
.pw-bar .lab { color: var(--ink2); margin-left: auto; }
.ha-mk-hotel { display: inline-flex; align-items: center; gap: 6px; padding-left: 16px; border-left: 1px solid var(--rule); font: 400 17px/22px var(--serif); white-space: nowrap; }
.ha-mk-hotel svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ha-mk-tabs { display: flex; gap: 2px; padding: 0 10px; background: #FFFFFF; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.ha-mk-tabs .it { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 9px; border: 0; background: transparent; color: var(--ink2); font: 600 14px/18px var(--sans); cursor: pointer; white-space: nowrap; }
.ha-mk-tabs .it:hover { color: var(--ink); }
.ha-mk-tabs .it.on { color: var(--ink); }
.ha-mk-tabs .it.on::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 3px; border-radius: 2px; background: var(--thread); }
.dotn { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--needs); color: #FFFFFF; font: 600 11px/14px var(--sans); }
.knot.med { background: var(--bg); box-shadow: inset 0 0 0 2.5px var(--needs), 0 0 0 3px var(--bg); }
.mk-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.mk-card .mk-thread { margin-top: 4px; --bg: var(--mk-card); }
.mk-acts { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; align-items: center; }
.mk-acts .btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.mk-note { flex: 1 1 150px; height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--mk-card); color: var(--ink2); font-size: 13px; }
.mk-list { display: flex; flex-direction: column; }
.mk-li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule2); font-size: 14px; line-height: 19px; }
.mk-li:first-child { border-top: 0; }
.mk-li small, .mk-tr small { display: block; color: var(--ink2); font-size: 13px; line-height: 17px; font-weight: 400; }
.mk-act { justify-content: flex-start; align-items: flex-start; }
.mk-act svg { width: 14px; height: 14px; flex: none; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk-act .mk-meta { margin-left: auto; white-space: nowrap; font-size: 13px; }
.mk-tbl { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 8px; background: var(--mk-card); }
.mk-tr { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.4fr); gap: 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--rule2); font-size: 14px; line-height: 19px; }
.mk-tr:first-child { border-top: 0; }
.mk-th { font: 400 12px/16px var(--serif); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.mk-tr .chip { font-size: 12px; height: 22px; }
.mk-fees .mk-tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mk-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; height: 200px; padding-top: 6px; }
.mk-bar { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 0; }
.mk-bar-c { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; border-bottom: 1px solid var(--ink2); }
.mk-bar-c i { width: 32%; border-radius: 3px 3px 0 0; }
.mk-bar-c .ty { background: var(--heat); }
.mk-bar-c .ly { background: #DDD8CC; }
.mk-bar .m { font-size: 13px; line-height: 16px; color: var(--ink2); }
.mk-bar .r { font: 600 13px/16px var(--sans); }
.ps-nums { display: flex; gap: 14px; font-size: 13px; line-height: 18px; color: var(--ink2); }
.ps-nums b { color: var(--ink); }
@media (max-width: 720px) {
  .mk-two { grid-template-columns: minmax(0, 1fr); }
  .mk-tr { grid-template-columns: minmax(0, 1fr) auto; }
  .mk-tr > span:nth-child(3) { grid-column: 1 / -1; }
  .mk-fees .mk-tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-fees .mk-tr > span:nth-child(3) { grid-column: auto; }
  .ha-mk-hotel { display: none; }
  .mk-bars { height: 160px; gap: 6px; }
}

/* ---------- The demo on a stage: a petrol panel with a browser frame, so the product reads first ---------- */
.pw-stage { position: relative; padding: 16px 20px 6px; border-radius: 18px; background: radial-gradient(120% 90% at 85% 0%, #225868 0%, #174A5B 55%, #123D4B 100%); box-shadow: 0 30px 70px rgba(23, 74, 91, .22); }
.pw-chrome { display: flex; align-items: center; gap: 7px; padding: 0 2px 12px; }
.pw-chrome i { width: 11px; height: 11px; border-radius: 50%; background: rgba(250, 247, 240, .3); }
.pw-chrome i:first-child { background: #F07261; }
.pw-url { margin-left: 10px; max-width: 380px; flex: 1; height: 26px; padding: 0 12px; border-radius: 13px; background: rgba(250, 247, 240, .1); color: rgba(250, 247, 240, .78); font: 400 13px/26px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-stage .pw { border-color: rgba(250, 247, 240, .12); box-shadow: 0 22px 56px rgba(0, 0, 0, .3); }
.pw-stage .caption { color: rgba(250, 247, 240, .86); margin-top: 12px; padding: 0 2px; }
@media (max-width: 720px) {
  .pw-stage { padding: 10px 10px 2px; border-radius: 14px; }
  .pw-url { display: none; }
}

.form-alt { margin: 12px 0 0; font-size: 15px; color: var(--ink2); }

/* ---------- A hotel's upload link (/u/<token>, templates/upload_*.html): the website's look, one column ---------- */
.up-page { background: var(--bg); }
.up-hd .wrap { min-height: 72px; }
.up { max-width: 1040px; padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.up-h1 { margin-top: -8px; }
.up-h2 { font: 400 20px/26px var(--serif); }
.up-small { font-size: 15px; line-height: 22px; }
.up .d-block { display: block; }
.up-problem { padding: 10px 14px; border-left: 3px solid var(--needs); background: var(--panel); }
.up-terms { counter-reset: term; display: flex; flex-direction: column; gap: 18px; margin: 8px 0 0; }
.up-terms li { position: relative; padding-left: 44px; }
.up-terms li::before { counter-increment: term; content: counter(term); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font: 400 15px/1 var(--serif); }
.up-terms p { margin-top: 4px; color: var(--ink2); max-width: 760px; }
.up-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.up-card { align-content: start; }
.up-note { font-size: 15px; line-height: 22px; padding-left: 12px; border-left: 3px solid var(--thread); }
.up-file { height: auto; padding: 10px 12px; }
.up-progress { display: flex; flex-direction: column; gap: 10px; }
.up-progress:empty { display: none; }
.up-progress li { display: grid; gap: 4px; font-size: 15px; line-height: 20px; }
.up-bar { display: block; height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.up-bar i { display: block; width: 0; height: 100%; background: var(--ink); transition: width .2s var(--ease); }
.up-progress li.bad .up-msg { color: var(--needs); }
.up-progress li.bad .up-bar i { background: var(--needs); }
.up-list { margin-top: 12px; }
.up-tbl { width: 100%; border-collapse: collapse; margin-top: 8px; }
.up-tbl td { padding: 12px 8px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.up-tbl td + td { color: var(--ink2); }
.up-ft .copy { margin-top: 6px; }
@media (max-width: 760px) {
  .up { padding-top: 28px; padding-bottom: 48px; }
  .up-grid { grid-template-columns: minmax(0, 1fr); }
  .up-tbl tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--rule); }
  .up-tbl td { display: block; border-bottom: 0; padding: 4px 0; }
}
