/* Manrope: SIL Open Font License; see manrope-license.txt. Served locally. */
@font-face {font-family:Manrope;font-style:normal;font-weight:200 800;font-display:swap;src:url("manrope-latin.woff2") format("woff2");}
/* AlgoSouk / Connected Markets. Original implementation inspired by Genesis FX.
   Shared visual system; no third-party brand assets, licensed fonts or graphics-library dependency. */
:root {
 --bg:#050b09;--panel:#0c1510;--panel2:#142119;--ink:#edf2ed;--muted:#9aa79f;
 --line:#26382c;--accent:#b7ead0;--accent-deep:#173d2c;--gold:#cbb58a;--souk-red:#ef897a;
 --header:#060c09e8;--radius:18px;--content-width:1264px;
}
:root[data-theme=light] {
 --bg:#f5f7f2;--panel:#fff;--panel2:#eaf0e8;--ink:#172c20;--muted:#5d6b61;
 --line:#d2dfd4;--accent:#285e42;--accent-deep:#dcebdd;--gold:#8c713f;--souk-red:#b44d3d;--header:#f5f7f2ec;
}
html {scroll-padding-top:110px;}
body {font-family:'Helvetica Neue',Arial,sans-serif;background:var(--bg);}
body::before {content:'';position:absolute;top:0;left:0;right:0;height:650px;pointer-events:none;z-index:-1;background:radial-gradient(ellipse 45% 75% at 50% 0,#226a443d,transparent 80%);}
.preview-strip {min-height:25px;padding-block:6px;background:transparent;border-bottom:0;font-size:8px;letter-spacing:.04em;opacity:.8;}
.site-header.app-header {max-width:none;width:100%;padding:16px max(32px,calc((100% - 1344px)/2));min-height:82px;gap:32px;border:0;background:transparent;position:relative;z-index:40;}
.brand {font-size:25px;font-weight:600;letter-spacing:-1px;flex-shrink:0;}
.brand-light,.brand .souk-word {color:var(--souk-red);font-weight:500;}
.main-nav {margin-inline:auto;align-self:center;display:flex;align-items:center;gap:5px;padding:5px 8px;min-height:44px;background:linear-gradient(120deg,#ffffff09,#a6e7bc04);border:1px solid var(--line);border-radius:16px;box-shadow:inset 0 1px 0 #fff1;}
.nav-item {border:0!important;border-radius:10px;min-height:32px;padding:8px 14px;font-size:11px;font-weight:500;white-space:nowrap;}
.nav-item.active {background:var(--panel2);color:var(--ink);}
.nav-item:hover {background:var(--panel2);}
.main-nav .nav-item::after {display:none;}
.header-actions {gap:12px;margin-left:0;}
.header-actions .button {min-height:36px;padding:9px 22px;border-radius:30px;font-size:11px;}
.header-actions .wireframe-link {display:none;}
.button {border-radius:30px;min-height:44px;padding:12px 23px;font-size:12px;font-weight:500;gap:17px;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s;}
.button.primary {color:#07150d;background:linear-gradient(100deg,#e4eee7,#c6f5dd);border:1px solid #d3f9e2;box-shadow:3px 0 22px #5af2b238,inset 0 1px 0 #fff9;}
.button.primary:hover {box-shadow:4px 0 28px #5af2b250;transform:translateY(-1px);}
.button.secondary {background:var(--panel2);color:var(--ink);border-color:var(--line);}
.button.secondary:hover {border-color:var(--accent);background:var(--accent-deep);}
.hero,.app-header + main > .hero {width:100%;max-width:none;padding:38px 24px 62px;margin:0;display:flex;flex-direction:column;align-items:center;gap:0;border:0;overflow:clip;position:relative;}
.hero-copy {max-width:940px;width:100%;text-align:center;position:relative;z-index:3;}
.hero-kicker {display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:7px 13px;border:1px solid var(--line);border-radius:30px;background:#0d2a1b55;color:var(--muted);font-size:9px;font-weight:500;}
.hero-kicker .status-dot {width:5px;height:5px;background:var(--accent);box-shadow:0 0 10px #75dba54d;}
.hero h1 {margin:22px 0 16px;font-size:clamp(40px,4.75vw,69px);line-height:1.08;letter-spacing:-.045em;font-weight:450;}
.hero h1 em {font:inherit;color:var(--ink);}
.hero h1 .souk-word {font:inherit;color:var(--souk-red);}
.hero-subtitle {margin:0 0 14px;font-size:clamp(16px,1.55vw,22px);font-weight:500;letter-spacing:-.025em;color:var(--ink);}
.hero-copy > p {font-size:13px;line-height:1.8;max-width:610px;margin:0 auto 24px;color:var(--muted);}
.hero-term,.hero-term:hover {color:var(--souk-red);font-weight:500;}
.hero-definition {text-align:left;}
.hero .landing-actions {width:100%;max-width:450px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.hero .landing-actions .button {min-width:0;width:100%;min-height:43px;font-size:11px;padding:12px 17px;border-radius:30px;white-space:normal;}
.hero .landing-actions .secondary {background:var(--panel2);}
.wt-hero-launch {display:inline-flex;margin:20px 0 0;font-size:10px;font-weight:500;gap:8px;}
.wt-hero-launch > span:first-child {width:20px;height:20px;font-size:7px;border-color:var(--line);}
.wt-hero-launch small {font-size:9px;}
.hero-scene {height:440px;max-width:1120px;width:100%;position:relative;margin-top:12px;pointer-events:none;}
#souk-globe {width:100%;height:100%;display:block;}
.globe-caption {position:absolute;bottom:80px;left:0;right:0;display:flex;justify-content:space-between;gap:30px;max-width:1060px;margin:auto;color:var(--muted);font:8px var(--mono);letter-spacing:.12em;}
.hero-visual {position:relative;z-index:2;max-width:1080px;width:100%;margin:-84px 0 0;padding:24px 28px;background:linear-gradient(140deg,#0c1d13f5,#080f0bf5);border:1px solid #2f5940;border-top:2px solid #729e77;border-radius:22px;box-shadow:0 -10px 70px #3bb47a12,0 35px 80px #0005;isolation:isolate;}
:root[data-theme=light] .hero-visual {background:var(--panel);border-color:var(--line);box-shadow:0 15px 50px #14251b12;}
.visual-heading {margin:0 0 24px;padding:0 0 18px;border-bottom:1px solid var(--line);border-top:0;}
.visual-heading .eyebrow {color:var(--muted);font-size:8px;letter-spacing:.07em;gap:8px;}
.visual-heading > .mono {font-size:8px;}
.terminal-dot {width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px #92f5b7;}
.preview-intro {position:absolute;left:28px;top:93px;max-width:340px;}
.preview-intro > .eyebrow {font-size:7px;letter-spacing:.06em;margin-bottom:12px;color:var(--muted);}
.preview-intro strong {font-size:27px;line-height:1.2;letter-spacing:-.035em;font-weight:450;}
.preview-intro strong > span {color:var(--accent);}
.hero .signal-wall {width:58%;margin:0 0 0 auto;min-height:0;height:136px;}
.hero .signal-wall svg {height:100%;width:100%;}
.visual-legend {justify-content:flex-end;gap:16px;font-size:8px;margin-top:12px;}
.hero-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:25px 0 0;padding-top:23px;border-top:1px solid var(--line);gap:0;}
.hero-stats > div {justify-content:center;gap:12px;padding-inline:18px;}
.hero-stats > div:first-child {padding-left:18px;}
.hero-stats strong {font-size:31px;font-weight:450;letter-spacing:-.04em;}
.hero-stats span {font-size:10px;line-height:1.5;}
.hero-visual > .visual-note {font-size:9px;margin:18px 0 0;text-align:center;}
.hero-footnote {margin-top:26px;gap:18px;font:9px var(--mono);color:var(--muted);letter-spacing:.015em;}
.souk-journey,.catalog-section {width:calc(100% - 80px);max-width:var(--content-width);margin-inline:auto;}
.souk-journey {border:1px solid var(--line);border-radius:20px;background:radial-gradient(ellipse at top right,#24613d16,transparent 55%),var(--panel);padding:32px;margin-block:12px 64px;}
.souk-journey-heading {margin-bottom:26px;gap:24px;align-items:center;}
.souk-journey-heading .eyebrow {font-size:9px;color:var(--muted);}
.souk-journey-heading h2 {font-size:30px;font-weight:450;letter-spacing:-.04em;line-height:1.2;}
.walkthrough-invitation {padding:0 0 26px;border-bottom:1px solid var(--line);margin-bottom:28px;}
.walkthrough-invitation strong {font-size:15px;font-weight:500;}
.walkthrough-invitation p {font-size:12px;}
.walkthrough-length {display:none;}
.wt-entry-actions .button {font-size:10px;min-width:112px;min-height:37px;padding:10px 16px;}
.souk-journey-grid {gap:30px;}
.souk-journey-grid article {border:0;padding:0;}
.journey-number {font:9px var(--mono);color:var(--souk-red);letter-spacing:.08em;}
.souk-journey-grid h3 {font-size:18px;font-weight:450;letter-spacing:-.03em;margin:18px 0 10px;}
.souk-journey-grid p {font-size:12px;line-height:1.8;}
.catalog-section,.souk-journey + .catalog-section {padding:0 0 60px;}
.section-heading {margin-bottom:30px;align-items:flex-end;gap:30px;}
.section-heading .eyebrow {font-size:9px;color:var(--muted);}
.section-heading h2 {font-size:clamp(30px,3.3vw,46px);font-weight:450;letter-spacing:-.045em;line-height:1.15;}
.section-heading > p {font-size:12px;line-height:1.8;}
.category-tabs {gap:25px;margin-bottom:24px;}
.category-tabs button {font-size:12px;}
.toolbar {border:1px solid var(--line);border-radius:14px;padding:10px;background:var(--panel);gap:12px;}
.search-box {border:0;background:transparent;}
.search-box input {font-size:12px;}
.toolbar .button {min-height:39px;font-size:11px;padding:10px 16px;}
.discovery-collections button,.market-chips button {border-radius:30px;font-size:10px;}
.market-row {margin-top:24px;padding-bottom:20px;}
.results-line {margin:22px 0 18px;font-size:10px;}
.product-grid {gap:23px;}
.product-card {background:linear-gradient(145deg,var(--panel2),var(--panel) 65%);border:1px solid var(--line);border-radius:18px;box-shadow:inset 0 1px 0 #ffffff05;transition:transform .2s,border-color .2s,box-shadow .2s;}
.product-card:hover {border-color:#527963;transform:translateY(-3px);box-shadow:0 14px 40px #0002;}
.card-top {padding:23px 23px 0;}
.type-label {font-size:8px;letter-spacing:.05em;}
.mode-label {border-radius:4px;font-size:7px;}
.card-visual {height:132px;margin:20px 23px 0;}
.card-content {padding:23px;display:flex;flex:1;flex-direction:column;}
.card-title {font-size:24px;line-height:1.2;letter-spacing:-.04em;font-weight:450;}
.publisher {font-size:10px;}
.card-summary {font-size:12px;line-height:1.8;margin-block:16px 20px;}
.card-content .tags {margin-top:auto;gap:6px;}
.tag {border-radius:5px;font-size:8px;padding:4px 7px;}
.card-metrics {margin-top:22px;padding-top:18px;gap:18px;}
.card-metrics strong {font-size:17px;font-weight:450;}
.card-metrics span {font-size:9px;}
.card-footer {margin-top:auto;background:var(--bg);padding:20px 23px;min-height:88px;gap:12px;}
.price {font-size:20px;font-weight:450;letter-spacing:-.035em;}
.card-detail {width:35px;height:35px;border-radius:50%;}
.return-chart {padding-inline:23px;}
.return-chart .card-visual {margin-inline:0;}
.return-chart-head {font-size:10px;margin-top:22px;}
.return-chart-head strong {font-size:19px;}
.return-chart-dates {font-size:9px;}
.product-dialog,.compare-dialog,.docs-dialog {border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);}
.detail-title {font-weight:450;letter-spacing:-.04em;}
.detail-tabs button {font-size:12px;}
.site-footer {border-top:1px solid var(--line);font-size:10px;padding-block:30px;}
@media(max-width:1100px) {
 .site-header.app-header {gap:20px;padding-inline:24px;}
 .main-nav {gap:1px;padding:5px;}
 .nav-item {padding:8px 10px;font-size:10px;}
 .header-actions {gap:10px;}
 .hero,.app-header + main > .hero {padding-top:36px;}
 .hero-scene {height:400px;}
 .globe-caption {left:24px;right:24px;bottom:75px;font-size:7px;}
}
@media(max-width:800px) {
 .site-header.app-header {padding:12px 20px;display:grid;grid-template-columns:1fr auto;gap:16px;}
 .brand {font-size:24px;}
 .header-actions {grid-column:2;grid-row:1;}
 .main-nav {grid-row:2;grid-column:1/-1;width:100%;justify-content:center;overflow-x:auto;scrollbar-width:none;min-width:0;}
 .nav-item {padding:8px 13px;font-size:11px;flex-shrink:0;}
 .nav-item#docs-open {display:flex;}
 .hero,.app-header + main > .hero {padding:30px 20px 42px;}
 .hero h1 {font-size:clamp(36px,6vw,54px);}
 .hero-copy > p {max-width:550px;}
 .hero-scene {height:350px;max-width:750px;}
 .globe-caption {left:5px;right:5px;font-size:6px;}
 .hero-visual {margin-top:-66px;padding:22px;}
 .preview-intro {position:static;max-width:none;margin-bottom:18px;}
 .preview-intro strong {font-size:26px;}
 .preview-intro strong br {display:none;}
 .hero .signal-wall {width:100%;height:120px;}
 .hero-stats strong {font-size:28px;}
 .hero-stats span {font-size:9px;}
 .souk-journey,.catalog-section {width:calc(100% - 40px);}
 .souk-journey {padding:26px;margin-bottom:48px;}
 .souk-journey-grid {grid-template-columns:1fr;gap:22px;}
 .souk-journey-grid article + article {border-top:1px solid var(--line);padding-top:22px;}
 .souk-journey-grid h3 {margin-top:10px;}
}
@media(max-width:480px) {
 .preview-strip {font-size:7px;line-height:1.6;padding-inline:20px;}
 .site-header.app-header {gap:14px;}
 .main-nav {justify-content:flex-start;}
 .nav-item {font-size:10px;padding:8px 12px;}
 .hero,.app-header + main > .hero {padding-top:26px;}
 .hero-kicker {font-size:8px;padding:7px 11px;}
 .hero h1 {font-size:clamp(32px,8.4vw,40px);line-height:1.13;letter-spacing:-.045em;margin-top:22px;}
 .hero-subtitle {font-size:16px;line-height:1.45;max-width:300px;margin:0 auto 14px;}
 .hero-copy > p {font-size:12px;line-height:1.8;max-width:340px;}
 .hero .landing-actions {gap:10px;max-width:350px;}
 .hero .landing-actions .button {font-size:9px;padding:11px 10px;min-height:43px;gap:8px;}
 .wt-hero-launch {font-size:10px;}
 .wt-hero-launch small {font-size:8px;}
 .hero-scene {height:280px;width:calc(100% + 40px);max-width:none;margin-top:5px;}
 .globe-caption {display:none;}
 .hero-visual {padding:18px;border-radius:18px;margin-top:-46px;}
 .visual-heading {padding-top:0;border-top:0;margin-bottom:20px;gap:12px;}
 .visual-heading .eyebrow,.visual-heading > .mono {font-size:6px;}
 .preview-intro > .eyebrow {font-size:6px;}
 .preview-intro strong {font-size:22px;}
 .preview-intro strong br {display:block;}
 .hero .signal-wall {height:98px;}
 .hero-stats > div {flex-direction:column;gap:6px;padding:0 6px;text-align:center;}
 .hero-stats > div:first-child {padding-left:6px;}
 .hero-stats strong {font-size:25px;}
 .hero-stats span {font-size:8px;text-align:center;}
 .hero-visual > .visual-note {font-size:8px;line-height:1.7;}
 .visual-legend {font-size:7px;justify-content:center;gap:10px;}
 .hero-footnote {gap:10px;font-size:7px;flex-wrap:wrap;justify-content:center;}
 .souk-journey {padding:22px;}
 .souk-journey-heading {flex-direction:column;align-items:flex-start;gap:15px;}
 .souk-journey-heading h2 {font-size:26px;}
 .walkthrough-invitation {gap:14px;}
 .wt-entry-actions {width:100%;}
 .wt-entry-actions .button {flex:1;min-width:0;}
 .section-heading {flex-direction:column;align-items:flex-start;gap:14px;}
 .section-heading h2 {font-size:34px;}
 .category-tabs {gap:23px;}
 .card-content {padding:22px;}
 .card-top {padding:22px 22px 0;}
 .card-visual {margin-inline:22px;}
 .return-chart {padding-inline:22px;}
 .return-chart .card-visual {margin-inline:0;}
 .card-footer {padding:20px 22px;}
}
@media(prefers-reduced-motion:reduce) {
 html {scroll-behavior:auto;}
 .button,.product-card {transition:none;}
 .button:hover,.product-card:hover {transform:none;}
}
/* Identical palette, proportions and controls throughout account workspaces. */
.member-workspace {--surface:var(--panel);--raised:var(--panel2);--text:var(--ink);}
.member-workspace main {max-width:calc(var(--content-width) + 64px);padding-top:44px;}
.member-workspace .page-heading h1 {font-size:clamp(34px,3.8vw,52px);font-weight:450;line-height:1.1;letter-spacing:-.045em;}
.member-workspace .page-heading p:not(.eyebrow) {font-size:14px;max-width:570px;line-height:1.8;}
.member-workspace .eyebrow {color:var(--muted);font-size:9px;}
.member-workspace .panel {background:linear-gradient(140deg,var(--panel2),var(--panel) 70%);border-radius:18px;padding:28px;box-shadow:inset 0 1px 0 #ffffff04;}
.member-workspace .panel h2 {font-size:23px;font-weight:450;letter-spacing:-.035em;}
.member-workspace .summary-strip {background:var(--panel);border-radius:16px;padding-block:24px;}
.member-workspace .summary-strip strong {font-size:30px;font-weight:450;letter-spacing:-.035em;}
.member-workspace .summary-strip span {font-size:11px;}
.member-workspace .workspace-tabs {gap:30px;}
.member-workspace .workspace-tabs a.active {color:var(--ink);border-color:var(--accent);}
.member-workspace button,.member-workspace .button {border-radius:30px;font-size:12px;min-height:43px;padding:12px 19px;}
.member-workspace .primary {background:var(--accent);color:var(--bg);border-color:var(--accent);}
.member-workspace .starter-callout {background:var(--bg);border-radius:12px;padding:20px;}
.member-workspace .submission-row,.member-workspace .review-card {border-radius:15px;}
.member-workspace .badge {border-radius:30px;font-size:9px;padding:5px 9px;}
.member-workspace .auth-shell {border-radius:22px;overflow:hidden;}
.member-workspace .auth-intro {background:radial-gradient(ellipse at top,#27644433,transparent),var(--panel);}
.member-workspace .auth-intro h2 {font-size:clamp(34px,3.3vw,48px);font-weight:450;line-height:1.13;letter-spacing:-.04em;}
.member-workspace .notice {border-radius:12px;}
@media(max-width:600px) {
 .member-workspace main {padding-top:28px;}
 .member-workspace .panel {padding:21px;}
 .member-workspace .summary-strip {padding-block:20px;}
 .member-workspace .summary-strip strong {font-size:23px;}
 .member-workspace .summary-strip span {font-size:9px;}
 .member-workspace .page-heading h1 {font-size:35px;}
 .member-workspace .workspace-tabs {gap:22px;}
 .member-workspace .workspace-tabs span {font-size:12px;}
}

.globe-caption {display:none;}
.hero-copy > p {font-size:14px;}
.hero .landing-actions .button {min-height:46px;font-size:12px;}
@media(max-width:480px) {
 .hero-copy > p {font-size:13px;}
 .hero .landing-actions .button {font-size:10px;min-height:46px;}
}

/* Scroll choreography follows the native page rather than replacing scrolling. */
.hero-scene {position:sticky;top:80px;flex-shrink:0;transform-origin:50% 60%;}
.motion-ready .hero-scene {transform:translate3d(0,var(--scene-shift,0px),0) scale(var(--scene-scale,1));}
.motion-ready .hero-copy {transform:translate3d(0,var(--copy-shift,0px),0);}
.motion-ready .hero-visual {transform:translate3d(0,var(--preview-shift,0px),0);}
.motion-ready .hero-visual::before {content:'';position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;box-shadow:0 -8px 55px #52d28d18;opacity:var(--preview-glow,.4);}
.product-card:focus-within {border-color:#527963;box-shadow:0 14px 40px #0002;}
.button > span:last-child {transition:transform .22s ease;}
.button:hover > span:last-child {transform:translate(2px,-2px);}
.motion-enter {animation:market-enter .7s cubic-bezier(.2,.65,.25,1) backwards;animation-delay:var(--enter-delay,0ms);}
@keyframes market-enter {from {opacity:.18;transform:translate3d(0,22px,0);} to {opacity:1;transform:translate3d(0,0,0);}}
@keyframes floating-nav-enter {from {opacity:.6;transform:translate(-50%,-7px);} to {opacity:1;transform:translate(-50%,0);}}
@media(min-width:801px) {
 .is-scrolled .site-header .main-nav {position:fixed;z-index:90;left:50%;top:13px;width:max-content;max-width:calc(100vw - 40px);margin:0;transform:translateX(-50%);background:linear-gradient(110deg,#102318ee,#0b140fee);backdrop-filter:blur(20px);box-shadow:0 10px 35px #0004,inset 0 1px 0 #fff1;animation:floating-nav-enter .3s ease-out;}
 :root[data-theme=light].is-scrolled .site-header .main-nav {background:#f4f8f0ef;box-shadow:0 8px 24px #193b2014;}
}
@media(max-width:800px) {
 .hero-scene {top:120px;}
 .site-header.app-header {position:sticky;top:0;background:var(--header);backdrop-filter:blur(18px);}
}
@media(prefers-reduced-motion:reduce) {
 .hero-scene {position:relative;top:auto;}
 .motion-ready .hero-scene,.motion-ready .hero-copy,.motion-ready .hero-visual {transform:none;}
 .motion-enter,.is-scrolled .site-header .main-nav {animation:none;}
 .button > span:last-child {transition:none;}
 .button:hover > span:last-child {transform:none;}
}

/* Pinned architectural story, with a foreground panel travelling through the scene. */
.market-experience {width:100%;height:190vh;position:relative;margin-top:12px;}
.experience-pin {position:sticky;top:0;height:100vh;width:100%;isolation:isolate;overflow:clip;}
.experience-pin .hero-scene {position:absolute;inset:0;top:0;height:100%;width:100%;max-width:none;margin:0;transform-origin:50% 50%;}
.experience-pin .hero-visual {position:absolute;top:0;left:50%;margin:0;width:calc(100% - 40px);max-width:1080px;transform:translate3d(-50%,var(--stage-preview-y,48vh),0);opacity:var(--stage-preview-opacity,1);will-change:transform;}
@media(max-width:600px) {
 .market-experience {height:155svh;width:calc(100% + 32px);}
 .experience-pin {height:100svh;}
 .experience-pin .hero-visual {width:calc(100% - 32px);}
}
@media(prefers-reduced-motion:reduce) {
 .market-experience {height:auto;}
 .experience-pin {position:relative;height:auto;overflow:visible;}
 .experience-pin .hero-scene {position:relative;height:380px;transform:none;}
 .experience-pin .hero-visual {position:relative;left:auto;margin:-55px auto 0;transform:none;opacity:1;will-change:auto;}
}

@media(prefers-reduced-motion:no-preference) {
 .main-nav {animation:market-nav-breathe 4s ease-in-out infinite;}
 .hero-copy > .hero-kicker,.hero-copy > h1,.hero-copy > .hero-subtitle,.hero-copy > p,.hero-copy > .landing-actions {animation:market-enter .85s cubic-bezier(.2,.65,.25,1) backwards;}
 .hero-copy > h1 {animation-delay:.08s;}
 .hero-copy > .hero-subtitle {animation-delay:.16s;}
 .hero-copy > p {animation-delay:.23s;}
 .hero-copy > .landing-actions {animation-delay:.3s;}
}
@keyframes market-nav-breathe {0%,100% {box-shadow:0 0 18px #9bdcb307;} 50% {box-shadow:0 0 30px #9bdcb31a;}}

@media(max-width:600px) and (prefers-reduced-motion:no-preference) {
 .market-experience {height:135svh;}
 .experience-pin {height:75svh;}
}

/* Let the market itself appear in the opening viewport, before the scroll story. */
@media(min-width:1000px) {
 .hero,.app-header + main > .hero {padding-top:20px;}
 .hero-copy {max-width:1220px;}
 .hero h1 {font-size:clamp(43px,4.05vw,60px);margin:18px 0 12px;}
 .hero h1 br {display:none;}
 .hero-subtitle {margin-bottom:10px;}
 .hero-copy > p {margin-bottom:18px;}
 .wt-hero-launch {margin-top:14px;}
 .market-experience {margin-top:-75px;width:calc(100% + 48px);}
 .experience-pin .hero-scene {height:66vh;max-height:680px;}
}
@media(max-width:999px) and (min-width:601px) {
 .market-experience {margin-top:-20px;}
 .experience-pin .hero-scene {height:65vh;}
}
@media(max-width:600px) {
 .hero h1 {font-size:36px;margin-block:16px 10px;}
 .hero-copy > p {line-height:1.6;margin-bottom:16px;}
 .hero-subtitle {font-size:16px;margin-bottom:10px;}
 .wt-hero-launch {margin-top:12px;}
 .market-experience {margin-top:-65px;}
 .experience-pin .hero-scene {height:50svh;}
}
@media(prefers-reduced-motion:reduce) {
 .market-experience {margin-top:0;}
 .experience-pin .hero-scene {height:360px;max-height:none;}
}

/* Opening chapter: the souk surrounds the headline; the pinned story follows below. */
.hero,.app-header + main > .hero {padding-top:0;}
.hero-intro {position:relative;isolation:isolate;width:calc(100% + 48px);min-height:calc(100svh - 110px);display:grid;place-items:center;padding:50px 24px 70px;}
.hero-backdrop {position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:clip;opacity:.85;}
.hero-backdrop canvas {display:block;width:100%;height:100%;}
.hero-backdrop::after {content:'';position:absolute;inset:0;background:radial-gradient(ellipse 47% 50% at 50% 46%,#050b09e8 12%,#050b09b0 48%,transparent 100%),linear-gradient(0deg,var(--bg),transparent 16%,transparent 88%,var(--bg));}
.hero-intro .hero-copy {z-index:1;}
.hero-intro h1 {font-size:clamp(42px,5.1vw,74px);line-height:1.08;text-shadow:0 3px 25px #050b09;}
.hero-intro h1 br {display:block;}
.hero-intro .hero-copy > p {max-width:620px;}
.market-experience {margin-top:0;}
.experience-pin .hero-scene {height:100%;max-height:none;}
:root[data-theme=light] .hero-backdrop::after {background:radial-gradient(ellipse 48% 55% at 50% 46%,#f5f7f2ed 12%,#f5f7f2af 50%,transparent 100%),linear-gradient(0deg,var(--bg),transparent 18%,transparent 88%,var(--bg));}
:root[data-theme=light] .hero-intro h1 {text-shadow:0 3px 25px #f5f7f2;}
@media(max-width:800px) {
 .hero-intro {min-height:calc(100svh - 150px);padding-top:35px;}
 .hero-backdrop {opacity:.7;}
}
@media(max-width:600px) {
 .hero-intro {width:calc(100% + 40px);min-height:max(630px,calc(100svh - 150px));padding:35px 20px 60px;}
 .hero-intro h1 {font-size:38px;}
 .hero-backdrop::after {background:radial-gradient(ellipse 70% 43% at 50% 45%,#050b09ed 20%,#050b09a0 72%,transparent 100%),linear-gradient(0deg,var(--bg),transparent 18%,transparent 90%,var(--bg));}
 .market-experience {margin-top:0;}
 .experience-pin .hero-scene {height:100%;}
}
@media(prefers-reduced-motion:reduce) {
 .experience-pin .hero-scene {height:380px;}
}

/* One canvas and one uninterrupted sticky scene from headline through preview. */
.market-experience {height:255svh;margin-top:0;width:calc(100% + 48px);}
.experience-pin {height:100svh;}
.experience-pin .hero-scene {position:absolute;inset:0;height:100%;max-height:none;z-index:0;}
.experience-pin .hero-scene::after {content:'';position:absolute;inset:0;pointer-events:none;opacity:var(--intro-opacity,1);background:radial-gradient(ellipse 47% 50% at 50% 46%,#050b09e8 12%,#050b09b0 48%,transparent 100%);}
.experience-pin .hero-intro {position:absolute;inset:0;width:100%;height:100%;min-height:0;z-index:1;padding:35px 24px 80px;transform:translate3d(0,var(--intro-y,0px),0);opacity:var(--intro-opacity,1);}
.experience-pin .hero-visual {z-index:2;}
:root[data-theme=light] .experience-pin .hero-scene::after {background:radial-gradient(ellipse 47% 50% at 50% 46%,#f5f7f2ed 12%,#f5f7f2af 48%,transparent 100%);}
@media(max-width:600px) {
 .market-experience {height:220svh;width:calc(100% + 40px);}
 .experience-pin {height:100svh;}
 .experience-pin .hero-intro {padding:25px 20px 110px;}
}
@media(prefers-reduced-motion:reduce) {
 .market-experience {height:auto;}
 .experience-pin {position:relative;height:auto;overflow:visible;}
 .experience-pin .hero-scene {position:absolute;top:0;height:calc(100svh - 110px);transform:none;}
 .experience-pin .hero-scene::after {opacity:1;}
 .experience-pin .hero-intro {position:relative;min-height:calc(100svh - 110px);transform:none;opacity:1;}
 .experience-pin .hero-visual {position:relative;left:auto;transform:none;opacity:1;margin:20px auto 0;}
}

/* Metrics reflow by card width, rather than squeezing three fixed columns. */
.card-metrics {grid-template-columns:repeat(auto-fit,minmax(min(100%,104px),1fr));column-gap:16px;row-gap:18px;align-items:start;}
.card-metrics > div {min-width:0;}
.card-metrics span {line-height:1.4;min-height:2.8em;margin-bottom:6px;overflow-wrap:anywhere;}
.card-metrics strong {white-space:normal;overflow-wrap:anywhere;line-height:1.35;}

/* AlgoSouk typography and spacing: one scale across market and member views. */
:root {--font-sans:Manrope,'Helvetica Neue',Arial,sans-serif;--space-unit:8px;--content-width:1264px;}
body,.member-workspace {font-family:var(--font-sans);font-size:15px;line-height:1.65;-webkit-font-smoothing:antialiased;}
button,input,select,textarea {font-family:inherit;}
button,.button,a {text-underline-offset:4px;}
h1,h2,h3,h4,p {text-wrap:pretty;}
.brand {font-family:var(--font-sans);font-size:29px;font-weight:750;letter-spacing:-.065em;line-height:1.15;}
.brand-light,.brand .souk-word {font-weight:500;letter-spacing:-.06em;}
.site-header.app-header {padding:18px max(32px,calc((100% - 1264px)/2));gap:24px;}
.main-nav {padding:5px;gap:3px;border-radius:16px;}
.nav-item {font-size:12px;line-height:1.4;letter-spacing:-.015em;font-weight:600;padding:10px 15px;min-height:38px;}
.header-actions .button {font-size:12px;min-height:40px;padding:10px 22px;font-weight:650;}
.preview-strip {font-size:9px;line-height:1.6;letter-spacing:.035em;}
.hero-intro .hero-copy {max-width:1100px;}
.hero-kicker {font:500 11px/1.5 var(--font-sans);letter-spacing:.025em;padding:8px 14px;gap:9px;}
.hero-intro h1 {font-family:var(--font-sans);font-size:clamp(46px,5.3vw,78px);font-weight:500;line-height:1.08;letter-spacing:-.04em;margin:24px 0 20px;text-wrap:balance;}
.hero-intro h1 .souk-word {font-weight:500;}
.hero-subtitle {font-size:clamp(18px,1.6vw,23px);font-weight:550;line-height:1.45;letter-spacing:-.025em;margin:0 auto 16px;}
.hero-intro .hero-copy > p {font-size:15px;line-height:1.85;letter-spacing:-.008em;max-width:675px;margin:0 auto 28px;}
.hero .landing-actions {max-width:530px;gap:14px;}
.hero .landing-actions .button {min-height:50px;padding:14px 20px;font-size:13px;font-weight:650;line-height:1.4;gap:16px;letter-spacing:-.01em;}
.wt-hero-launch {margin-top:22px;font-size:11px;line-height:1.5;gap:10px;}
.wt-hero-launch small {font-size:10px;color:var(--muted);}
.hero-definition {font:450 13px/1.65 var(--font-sans);letter-spacing:0;}
.hero-footnote {font-size:10px;line-height:1.7;margin-top:28px;}
.hero-visual {padding:28px 32px;border-radius:22px;}
.visual-heading {padding-bottom:20px;margin-bottom:26px;}
.visual-heading .eyebrow,.visual-heading > .mono {font-size:9px;letter-spacing:.08em;line-height:1.5;}
.preview-intro {left:32px;top:102px;max-width:340px;}
.preview-intro > .eyebrow {font-size:9px;line-height:1.6;letter-spacing:.08em;}
.preview-intro strong {font-size:29px;line-height:1.3;letter-spacing:-.04em;font-weight:550;}
.visual-legend {font-size:10px;line-height:1.5;gap:16px;}
.hero-stats {padding-top:24px;margin-top:28px;}
.hero-stats strong {font-size:34px;font-weight:550;letter-spacing:-.045em;font-variant-numeric:tabular-nums;}
.hero-stats span {font-size:11px;line-height:1.55;}
.hero-visual > .visual-note {font-size:10px;line-height:1.6;margin-top:22px;}
.souk-journey {padding:36px;margin-bottom:72px;}
.souk-journey-heading {align-items:center;margin-bottom:28px;gap:24px;}
.souk-journey-heading .eyebrow,.section-heading .eyebrow {font-size:10px;letter-spacing:.12em;line-height:1.6;}
.souk-journey-heading h2 {font-size:31px;line-height:1.25;font-weight:550;letter-spacing:-.04em;}
.walkthrough-invitation {padding-bottom:28px;margin-bottom:32px;}
.walkthrough-invitation strong {font-size:17px;font-weight:600;line-height:1.5;}
.walkthrough-invitation p,.souk-journey-grid p {font-size:13px;line-height:1.85;}
.wt-entry-actions .button {font-size:11px;min-height:40px;min-width:124px;}
.souk-journey-grid {gap:32px;}
.journey-number {font-size:10px;line-height:1.5;letter-spacing:.1em;}
.souk-journey-grid h3 {font-size:19px;line-height:1.45;letter-spacing:-.025em;font-weight:600;margin:18px 0 12px;}
.section-heading {margin-bottom:32px;gap:32px;}
.section-heading h2 {font-size:clamp(32px,3.1vw,46px);font-weight:550;line-height:1.18;letter-spacing:-.045em;margin-top:12px;}
.section-heading > p {font-size:13px;line-height:1.8;max-width:290px;}
.category-tabs {gap:28px;margin-bottom:24px;}
.category-tabs button {font-size:13px;font-weight:600;padding-bottom:15px;}
.search-box input {font-size:13px;line-height:1.6;}
.toolbar {padding:12px;gap:12px;}
.toolbar .button {font-size:12px;min-height:42px;}
.discovery-collections button,.market-chips button {font-size:11px;line-height:1.4;padding:8px 12px;}
.results-line {font-size:11px;line-height:1.7;margin:24px 0;}
.product-grid {gap:24px;}
.card-top {padding:24px 24px 0;}
.type-label {font-size:10px;line-height:1.5;letter-spacing:.065em;}
.mode-label {font-size:9px;line-height:1.4;letter-spacing:.025em;}
.card-visual {margin:20px 24px 0;height:140px;}
.card-content {padding:24px;}
.card-title {font-family:var(--font-sans);font-size:24px;font-weight:600;line-height:1.28;letter-spacing:-.04em;margin-bottom:10px;}
.publisher {font-size:11px;line-height:1.7;gap:8px;flex-wrap:wrap;}
.card-summary {font-size:13px;line-height:1.85;margin:18px 0 24px;min-height:3.7em;}
.card-content .tags {gap:6px;}
.tag {font-size:9px;line-height:1.55;padding:4px 8px;}
.card-metrics {margin-top:24px;padding-top:22px;column-gap:16px;row-gap:20px;grid-template-columns:repeat(auto-fit,minmax(min(100%,106px),1fr));}
.card-metrics span {font-size:10px;line-height:1.5;min-height:3em;margin-bottom:6px;}
.card-metrics strong {font-size:18px;font-weight:550;line-height:1.4;letter-spacing:-.025em;font-variant-numeric:tabular-nums;}
.card-footer {padding:22px 24px;min-height:92px;gap:12px;}
.price {font-size:21px;font-weight:600;letter-spacing:-.04em;line-height:1.4;font-variant-numeric:tabular-nums;}
.compare-check {font-size:10px;gap:7px;}
.card-detail {width:36px;height:36px;flex-shrink:0;}
.card-audience,.return-chart-head,.return-chart-dates {font-size:11px;line-height:1.6;}
.return-chart-head strong {font-size:20px;font-weight:600;}
.detail-title,.detail-top h2,#detail-title {font-family:var(--font-sans);font-weight:550;line-height:1.15;letter-spacing:-.045em;}
.detail-tabs button {font-size:13px;line-height:1.5;font-weight:600;}
.detail-body {font-size:14px;line-height:1.85;}
.site-footer {font-size:11px;line-height:1.8;padding-block:32px;}
.member-workspace {--sans:var(--font-sans);}
.member-workspace .page-heading {margin-bottom:32px;}
.member-workspace .page-heading h1 {font-family:var(--font-sans);font-size:clamp(36px,3.7vw,54px);font-weight:550;line-height:1.15;letter-spacing:-.045em;}
.member-workspace .page-heading p:not(.eyebrow) {font-size:15px;line-height:1.85;max-width:650px;}
.member-workspace .eyebrow {font-size:10px;letter-spacing:.1em;line-height:1.6;}
.member-workspace .panel {padding:32px;}
.member-workspace .panel h2 {font-family:var(--font-sans);font-size:24px;line-height:1.35;letter-spacing:-.035em;font-weight:600;}
.member-workspace .panel p {line-height:1.85;}
.member-workspace button,.member-workspace .button {font-size:13px;font-weight:600;line-height:1.45;min-height:46px;}
.member-workspace .summary-strip strong {font-size:32px;font-weight:550;font-variant-numeric:tabular-nums;}
.member-workspace .summary-strip span {font-size:12px;line-height:1.6;}
.member-workspace .workspace-tabs {gap:28px;}
.member-workspace .auth-intro h2 {font-family:var(--font-sans);font-weight:550;letter-spacing:-.04em;}
@media(max-width:1100px) {
 .site-header.app-header {padding-inline:24px;gap:18px;}
 .nav-item {font-size:11px;padding-inline:11px;}
 .preview-intro {max-width:270px;}
 .preview-intro strong {font-size:25px;}
}
@media(max-width:800px) {
 .site-header.app-header {padding:16px 20px;gap:16px;}
 .main-nav {justify-content:space-between;gap:0;}
 .nav-item {padding:9px 11px;font-size:11px;}
 .hero-intro h1 {font-size:clamp(40px,7vw,57px);letter-spacing:-.048em;}
 .hero-intro .hero-copy > p {font-size:14px;max-width:580px;}
 .hero-visual {padding:24px;}
 .preview-intro {position:static;max-width:none;margin-bottom:22px;}
 .preview-intro strong {font-size:26px;}
 .section-heading {align-items:flex-start;}
 .souk-journey {padding:28px;}
 .category-tabs {gap:24px;}
 .card-top {padding:22px 22px 0;}
 .card-content {padding:22px;}
 .card-visual {margin-inline:22px;}
 .card-footer {padding:22px;}
}
@media(max-width:480px) {
 .brand {font-size:26px;}
 .nav-item {padding:9px 8px;font-size:10px;}
 .hero-intro h1 {font-size:clamp(34px,8.9vw,43px);line-height:1.13;letter-spacing:-.047em;margin:20px 0 18px;}
 .hero-subtitle {font-size:17px;line-height:1.55;max-width:340px;}
 .hero-intro .hero-copy > p {font-size:13px;line-height:1.85;margin-bottom:24px;}
 .hero-kicker {font-size:10px;}
 .hero .landing-actions {gap:10px;}
 .hero .landing-actions .button {font-size:11px;line-height:1.45;padding:12px 10px;min-height:50px;gap:8px;}
 .wt-hero-launch {font-size:10px;gap:8px;margin-top:18px;}
 .wt-hero-launch small {font-size:9px;}
 .hero-visual {padding:22px 20px;}
 .visual-heading .eyebrow,.visual-heading > .mono {font-size:8px;}
 .preview-intro strong {font-size:23px;}
 .hero-stats > div {padding-inline:8px;gap:7px;}
 .hero-stats > div:first-child {padding-left:8px;}
 .hero-stats strong {font-size:27px;}
 .hero-stats span {font-size:9px;}
 .visual-legend {font-size:9px;gap:10px;}
 .hero-visual > .visual-note {font-size:9px;}
 .souk-journey {padding:24px;margin-bottom:56px;}
 .souk-journey-heading h2 {font-size:27px;}
 .souk-journey-grid {gap:28px;}
 .section-heading h2 {font-size:33px;}
 .category-tabs {gap:21px;}
 .category-tabs button {font-size:12px;}
 .card-title {font-size:24px;}
 .member-workspace main {padding-top:28px;}
 .member-workspace .panel {padding:24px 20px;}
 .member-workspace .page-heading h1 {font-size:36px;}
 .member-workspace .workspace-tabs {gap:22px;}
}

.experience-pin .hero-intro {padding:clamp(40px,7vh,80px) 24px clamp(160px,22vh,220px);}
@media(max-width:600px) {
 .experience-pin .hero-intro {padding:40px 20px clamp(180px,26vh,240px);}
}

/* A restrained souk accent: brass, warm paper and architectural geometry. */
:root {--gold:#c8aa74;--ink:#f1eee5;--souk-brass-line:#b99a613b;--souk-lattice:#c8aa7412;}
:root[data-theme=light] {--bg:#f7f5ee;--ink:#23362a;--gold:#96733e;--souk-brass-line:#a5844838;--souk-lattice:#96733e12;}
body::before {background:radial-gradient(ellipse 45% 75% at 50% 0,#226a442b,transparent 80%),radial-gradient(ellipse 55% 45% at 100% 0,#b18b4910,transparent 85%);}
.main-nav {border-color:var(--souk-brass-line);box-shadow:inset 0 1px 0 #d9c3910b;}
.hero-kicker {border-color:var(--souk-brass-line);color:var(--gold);background:color-mix(in srgb,var(--bg) 80%,transparent);}
.hero-kicker .status-dot {background:var(--gold);box-shadow:0 0 10px #c8aa7430;}
.hero-visual {border-color:var(--souk-brass-line);border-top:1px solid var(--gold);border-radius:32px 32px 18px 18px;}
.visual-heading .eyebrow,.souk-journey-heading .eyebrow,.section-heading .eyebrow,.member-workspace .eyebrow {color:var(--gold);}
.souk-journey,.member-workspace .auth-intro {position:relative;isolation:isolate;}
.souk-journey {border-color:var(--souk-brass-line);background:radial-gradient(ellipse at top right,#b18b4910,transparent 60%),var(--panel);border-radius:28px 28px 18px 18px;}
.souk-journey::after,.member-workspace .auth-intro::after {content:'';position:absolute;z-index:-1;right:0;top:0;width:180px;height:180px;border-top-right-radius:inherit;pointer-events:none;background:repeating-linear-gradient(45deg,transparent 0 21px,var(--souk-lattice) 21px 22px,transparent 22px 42px),repeating-linear-gradient(-45deg,transparent 0 21px,var(--souk-lattice) 21px 22px,transparent 22px 42px);mask-image:radial-gradient(ellipse at top right,#000,transparent 74%);}
.journey-number {color:var(--gold);}
.product-card {border-color:color-mix(in srgb,var(--line) 78%,var(--gold));border-radius:24px 24px 16px 16px;}
.product-card:hover,.product-card:focus-within {border-color:color-mix(in srgb,var(--gold) 65%,var(--line));box-shadow:0 12px 36px #0002,inset 0 1px 0 #c8aa740d;}
.type-label {color:var(--gold);}
.mode-label {border-color:var(--souk-brass-line);}
.card-detail {border-color:var(--souk-brass-line);}
.card-detail:hover {border-color:var(--gold);color:var(--gold);}
.member-workspace .panel {border-color:color-mix(in srgb,var(--line) 84%,var(--gold));}
.member-workspace .workspace-tabs a.active {border-color:var(--gold);}
.site-footer {border-top-color:var(--souk-brass-line);}
@media(max-width:600px) {
 .souk-journey::after,.member-workspace .auth-intro::after {width:120px;height:120px;}
 .hero-visual {border-radius:26px 26px 16px 16px;}
}
