/* site-next (2026-11-26): the new dark hero and the scroll story. Loaded after styles.css; the sections
   below the story still use styles.css unchanged. Mobile first.
   Modes (classes on <html>, set in <head> and by next.js):
     .gl        motion is allowed and WebGL exists: try the live 3D scene
     .scene-on  the hero scene runs (its still picture stays hidden)
     .gl-off    the scene failed; the still pictures show (same as no JavaScript or reduced motion) */

:root {
  --night: #0E1016;        /* stage background, darker than Carbon */
  --night-2: #12141B;
  --on-dark: #F5F4EF;      /* Porcelain on dark */
  --on-dark-2: #AEB3C2;    /* secondary text on dark (8.6:1 on --night) */
  --on-dark-3: #8A90A0;    /* small print on dark (5.6:1) */
  --line-dark: rgba(245, 244, 239, .12);
  --blue-line: #8D9BFF;    /* Precision Blue, lifted for lines and text on dark */
  --mark-on-dark: #5B6EFF; /* the logo's M on dark backgrounds (the yellow point stays readable on it) */
}

/* ---------- Shared: dark buttons, Example tag ---------- */
.btn--line { background: transparent; color: var(--on-dark); border-color: rgba(245, 244, 239, .26); }
@media (hover: hover) and (pointer: fine) {
  .btn--line:hover { border-color: var(--blue-line); }
  .btn--line:hover::after { opacity: .3; transform: translate(4px, 4px); border-color: var(--blue-line); }
}
.hx .btn:focus-visible, .story :focus-visible { outline-color: var(--blue-line); }
.ex { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; margin-right: 8px; border: 1px solid rgba(245, 244, 239, .55); border-radius: 4px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark); vertical-align: 1px; }

/* ---------- The 3D stage (hero and story share it) ---------- */
.scene { position: relative; }
.scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 700ms ease; }
.scene__labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.scene__still { position: absolute; inset: 0; display: block; }
.scene__still img { width: 100%; height: 100%; object-fit: contain; }
html:not(.gl) .scene__canvas, html:not(.gl) .scene__labels { display: none; }
html.gl .scene__still { display: none; }
html.scene-on .hx .scene__canvas, .story__scene.is-ready .scene__canvas { opacity: 1; }

/* Labels that follow points of the 3D scene (scene3d.js sets transform and opacity every frame) */
.lbl { position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; will-change: transform, opacity; font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: #E5E9FF; font-variant-numeric: tabular-nums; }
.lbl--dim { translate: -50% calc(-100% - 6px); color: #C9CFEA; }
.lbl--scan { translate: 4px -50%; }
.lbl__chip { display: inline-block; padding: 4px 7px 3px; border-radius: 3px; background: var(--yellow); color: var(--ink); }
.lbl__chip b { font-weight: 500; }
.lbl--part { display: flex; align-items: center; gap: 8px; translate: 0 -50%; }
.lbl--part::before { content: ""; width: 16px; height: 1px; background: rgba(229, 233, 255, .5); }
.lbl__num { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border: 1px solid var(--blue-line); border-radius: 4px; background: rgba(14, 16, 22, .72); color: #D3D9FF; }
.lbl__name { display: flex; flex-direction: column; gap: 3px; font: 600 14px/1.15 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--on-dark); opacity: 0; transform: translateX(-6px); transition: opacity 280ms ease, transform 420ms var(--ease-snap); }
.lbl__name small { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: #9AA0B0; }
.lbl--part.is-open .lbl__name { opacity: 1; transform: none; }
@media (max-width: 1279px) { .lbl__name small { display: none; } }
.lbl--reading { display: flex; align-items: baseline; gap: 10px; translate: 0 -100%; }
.lbl__score { font: 600 44px/1 var(--font-head); letter-spacing: -.035em; text-transform: none; color: var(--on-dark); }
.lbl__score b { font-weight: 600; }
.lbl__sub { font-size: 11px; color: var(--on-dark-2); }
.lbl__sub i { font-style: normal; margin-left: 6px; padding: 2px 5px 1px; border: 1px solid rgba(245, 244, 239, .5); border-radius: 3px; color: var(--on-dark); }
.lbl--target { translate: -50% calc(-100% - 4px); color: var(--yellow); font-size: 10.5px; }
@media (max-width: 767px) {
  .lbl { font-size: 10px; }
  .lbl__name { display: none; }
  .lbl--part::before { width: 8px; }
  .lbl--scan { translate: calc(-100% - 30px) calc(-100% - 5px); } /* phone: inside the page, above the line */
  .lbl__num { min-width: 24px; height: 18px; padding: 0 4px; }
  .lbl__score { font-size: 28px; }
  .lbl__sub { font-size: 9.5px; }
  .lbl--target { font-size: 9px; }
}

/* ---------- 02 Hero ---------- */
.hx {
  position: relative; display: flex; flex-direction: column; overflow: clip; isolation: isolate;
  color: var(--on-dark);
  background:
    radial-gradient(70% 60% at 50% 72%, rgba(64, 85, 232, .16), rgba(64, 85, 232, 0) 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.hx__inner { order: 1; position: relative; z-index: 2; padding-top: 26px; }
.hx__stage { order: 2; height: clamp(340px, 50svh, 520px); margin-top: 6px; --cx: .5; --cy: .5; --aw: 1; }
.hx__foot { order: 3; position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 28px; }
.hx__copy { max-width: 620px; }
.hx__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-line); }
.hx__kicker i { width: 14px; height: 1px; background: rgba(141, 155, 255, .55); }
.hx h1 { font-size: clamp(44px, 12vw, 72px); line-height: .97; letter-spacing: -.048em; color: #F7F6F2; text-wrap: wrap; }
.hx__lede { margin-top: 18px; max-width: 33em; font-size: 16px; line-height: 1.55; color: var(--on-dark-2); }
.hx__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hx__actions .btn { flex: 1 1 auto; }
.hx__assure { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--on-dark-2); }
@media (min-width: 768px) { .hx__lede { font-size: 18px; } .hx__assure { font-size: 15px; } .hx__inner { padding-top: 40px; } }
.hx__assure svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--blue-line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hx__cap { font-size: 13px; line-height: 1.5; color: var(--on-dark-3); }
.hx__replay { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 12px; border: 1px solid rgba(245, 244, 239, .2); border-radius: 6px; background: transparent; color: var(--on-dark); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.hx__replay svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .hx__replay:hover { border-color: var(--blue-line); } }
html:not(.gl) .hx__replay { display: none; }
@media (min-width: 560px) { .hx__actions .btn { flex: 0 0 auto; } }

@media (min-width: 1024px) {
  .hx { display: block; min-height: max(660px, calc(100svh - var(--nav-h))); }
  .hx__stage { position: absolute; inset: 0; height: auto; margin: 0; --cx: .69; --cy: .5; --aw: .55; }
  .hx__inner { display: flex; align-items: center; min-height: inherit; padding-block: 40px 104px; pointer-events: none; }
  .hx__copy { max-width: min(46%, 640px); pointer-events: auto; }
  .hx h1 { font-size: clamp(76px, 7vw, 116px); }
  .hx__lede { font-size: 19.5px; max-width: 26em; }
  .hx__foot { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 30px; }
  .hx__cap { max-width: 62%; }
  .scene__still img { object-fit: cover; object-position: 70% 50%; }
}

/* ---------- 03 How it works: the scroll story ---------- */
.story {
  position: relative; color: var(--on-dark);
  background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
  border-bottom: 1px solid #23273A;
}
.story__stage { padding-block: 72px 88px; }
.story__scene { display: none; }
.story__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.story__kicker { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); }
.story__kicker span { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border: 1px solid var(--blue-line); border-radius: 5px; color: var(--blue-line); letter-spacing: 0; }
.story__count { display: none; font-size: 12.5px; color: var(--on-dark-3); }
.story__count b { font-weight: 500; color: var(--on-dark); margin-right: 6px; }
.story__steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 56px; }
.story__step { display: grid; gap: 22px; }
.story__num { font-size: 12.5px; color: var(--blue-line); margin-bottom: 10px; }
.story__step h3 { font-size: clamp(48px, 13vw, 64px); line-height: .95; letter-spacing: -.048em; color: #F7F6F2; }
.story__step p:not(.story__num) { margin-top: 14px; max-width: 30em; font-size: 17px; line-height: 1.55; color: var(--on-dark-2); }
/* The stills are cut from the live scene; fade their edges so the floor glow has no hard border. */
.story__still { width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 97%); mask-image: linear-gradient(to bottom, #000 62%, transparent 97%); }
.story__rail { display: none; }
.split { display: grid; gap: 12px; max-width: 420px; margin: 22px 0 0; }
.split div { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.split div::after { content: ""; grid-column: 1 / -1; height: 4px; border-radius: 2px; background: linear-gradient(#6274FF, #6274FF) left / calc(var(--w) * 1%) 100% no-repeat, rgba(245, 244, 239, .1); transition: background-size 700ms var(--ease-snap); }
.split dt { font-size: 14.5px; color: #D5D8E0; }
.split dd { margin: 0; font-size: 13px; color: var(--blue-line); }
@media (min-width: 900px) {
  .story__step { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 40px; }
}

/* With 3D: a tall section; the stage sticks to the screen while the scroll drives the scene. */
html.gl .story { height: 420svh; scroll-margin-top: calc(-1 * (var(--nav-h) + 12px)); }
html.gl .story__stage { position: sticky; top: 0; height: 100svh; padding: 0; overflow: hidden; }
html.gl .story__scene { display: block; position: absolute; inset: 0; --cx: .5; --cy: .655; --aw: .98; }
html.gl .story__inner { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; padding-top: calc(var(--nav-h) + 18px); padding-bottom: 18px; pointer-events: none; }
html.gl .story__count { display: block; }
html.gl .story__steps { position: relative; display: block; margin-top: 16px; min-height: 11.5em; }
html.gl .story__step { position: absolute; top: 0; left: 0; right: 0; display: block; opacity: 0; transform: translateY(16px); transition: opacity 260ms ease, transform 420ms var(--ease-snap); }
html.gl .story__step.is-past { transform: translateY(-16px); }
html.gl .story__step.is-active { opacity: 1; transform: none; transition: opacity 380ms ease 80ms, transform 520ms var(--ease-snap) 80ms; }
html.gl .story__step:not(.is-active) .split div::after { background-size: 0 100%, auto; }
html.gl .story__num { display: none; }
html.gl .story__step h3 { font-size: clamp(44px, 12vw, 64px); }
html.gl .story__step p:not(.story__num) { font-size: 15.5px; margin-top: 10px; }
html.gl .story__still { display: none; }
html.gl .story__rail { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: auto; padding-top: 12px; pointer-events: auto; }
.story__track { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(245, 244, 239, .14); }
.story__track i { position: absolute; inset: 0; background: var(--blue-line); transform-origin: left; transform: scaleX(0); }
.story__rail button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 0; border: 0; background: none; text-align: left; font: 500 13px/1.2 var(--font-body); color: var(--on-dark-3); cursor: pointer; }
.story__rail button b { font-size: 11px; font-weight: 500; color: inherit; }
.story__rail button.is-done { color: var(--on-dark-2); }
.story__rail button[aria-current] { color: var(--on-dark); }
.story__rail button[aria-current] b { color: var(--yellow); }
@media (max-width: 767px) {
  html.gl .story__rail button { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 12px; }
  html.gl .split { gap: 8px; margin-top: 14px; }
  html.gl .split dt { font-size: 13px; }
}
@media (min-width: 768px) {
  html.gl .story { height: 460svh; }
  html.gl .story__step h3 { font-size: clamp(64px, 7vw, 116px); }
  html.gl .story__step p:not(.story__num) { font-size: 18px; margin-top: 16px; }
}
@media (min-width: 1024px) {
  html.gl .story__scene { --cx: .67; --cy: .5; --aw: .58; }
  html.gl .story__inner { padding-bottom: 32px; }
  html.gl .story__steps { margin-top: auto; width: min(40%, 520px); min-height: 22em; }
  html.gl .story__rail { width: min(40%, 520px); margin-top: auto; }
  html.gl .story__rail button { font-size: 14px; }
}
@media (hover: hover) and (pointer: fine) { .story__rail button:hover { color: var(--on-dark); } }

/* ---------- Story labels that follow the 3D story scene (story3d.js) ---------- */
.lbl--route { display: flex; flex-direction: column; align-items: center; gap: 3px; translate: -50% 0; }
.lbl__route { padding: 3px 8px 2px; border: 1px solid var(--blue-line); border-radius: 4px; background: rgba(14, 16, 22, .78); color: #F5F4EF; font-size: 12px; text-transform: none; letter-spacing: .02em; }
.lbl--route small { font-size: 10px; color: #9AA0B0; }
.lbl--count { display: flex; align-items: center; gap: 12px; translate: 0 -100%; text-transform: none; letter-spacing: 0; }
.lbl--count b { font: 600 46px/1 var(--font-head); letter-spacing: -.04em; color: #F7F6F2; }
.lbl--count span { display: flex; flex-direction: column; gap: 4px; font: 600 15px/1.1 var(--font-body); color: #F5F4EF; }
.lbl--count small { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: #9AA0B0; }
.lbl--sec, .lbl--block { display: flex; align-items: center; gap: 8px; translate: 0 -100%; }
.lbl--sec .lbl__name, .lbl--block .lbl__name { opacity: 1; transform: none; }
.lbl__chip-blue { padding: 4px 7px 3px; border-radius: 3px; background: var(--blue); color: #fff; }
.lbl--block .lbl__num { min-width: 26px; height: 20px; font-size: 10.5px; }
.lbl--block .lbl__name { font-size: 12.5px; }
@media (max-width: 767px) {
  .lbl__route { font-size: 10px; padding: 2px 5px 1px; }
  .lbl--route small { display: none; }
  .lbl--count b { font-size: 30px; }
  .lbl--count span { font-size: 12px; }
  .lbl--count small, .lbl--block .lbl__name { display: none; }
  .lbl--sec .lbl__name { display: flex; font-size: 12px; }
  .lbl--sec .lbl__name small { display: none; }
}
@media (max-width: 1279px) { .lbl--count small { display: block; } }

/* ---------- Story layers for steps 02-04 (story-layers.js), 3D mode only ---------- */
.sx { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
html:not(.gl) .sx { display: none; }
.sx__view { position: absolute; left: 16px; right: 16px; top: calc(var(--nav-h) + 200px); bottom: 72px; }
@media (min-width: 768px) { .sx__view { left: 32px; right: 32px; top: calc(var(--nav-h) + 240px); bottom: 84px; } }
@media (min-width: 1024px) { .sx__view { left: 42%; right: 3%; top: calc(var(--nav-h) + 60px); bottom: 44px; } }
.sx-layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; visibility: hidden; will-change: transform, opacity; }

/* 02 Section settings (a dark technical panel, the section's schema in plain words) */
.sx-set { width: 300px; padding: 18px 18px 14px; border: 1px solid #2C3145; border-radius: 14px; background: #141722; color: #E5E9FF; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.sx-set__kicker { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-line); }
.sx-set__kicker b { margin-left: 6px; color: #F5F4EF; font-weight: 500; }
.sx-set__title { margin: 4px 0 10px; font: 600 20px/1.2 var(--font-head); letter-spacing: -.02em; color: #F7F6F2; }
.sx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px; margin: 0 -10px; border-bottom: 1px solid rgba(245, 244, 239, .07); font-size: 13.5px; color: #AEB3C2; opacity: .42; transition: opacity 240ms ease, background-color 240ms ease; }
.sx-row em { display: inline-flex; align-items: center; gap: 7px; font-style: normal; color: #F5F4EF; }
.sx-row.is-on { opacity: 1; }
.sx-row.is-hot { background: rgba(141, 155, 255, .1); box-shadow: inset 2px 0 0 var(--blue-line); }
.sx-ph { color: #6F7586 !important; }
.sx-sw { width: 12px; height: 12px; border-radius: 3px; background: #FCF6EF; border: 1px solid rgba(0, 0, 0, .2); display: inline-block; }
.sx-seg--static { gap: 4px !important; }
.sx-seg--static i { display: inline-grid; place-items: center; width: 24px; height: 22px; border: 1px solid #3A4058; border-radius: 4px; font: 500 12px var(--font-mono); font-style: normal; color: #AEB3C2; }
.sx-seg--static i.on { border-color: var(--blue-line); background: rgba(141, 155, 255, .18); color: #fff; }
.sx-set__kicker--blocks { margin-top: 14px; }
.sx-blocks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; opacity: .42; transition: opacity 240ms ease; }
.sx-blocks.is-on { opacity: 1; }
.sx-blocks li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid #2C3145; border-radius: 8px; font-size: 13px; color: #F5F4EF; }
.sx-blocks li b { display: inline-grid; place-items: center; min-width: 24px; height: 18px; border: 1px solid var(--blue-line); border-radius: 4px; font-size: 10px; font-weight: 500; color: #D3D9FF; }
.sx-blocks li span { margin-left: auto; color: #9AA0B0; font-size: 12px; }
.sx-set__add { margin-top: 10px; font-size: 12.5px; color: var(--blue-line); }

/* 03 The theme editor at work (light, like Shopify's editor) */
.sx-ed { width: 880px; height: 540px; overflow: hidden; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 50px 100px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06); }
.sx-ed__bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-bottom: 1px solid #E3E5EA; font-size: 14px; }
.sx-ed__gc { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--ink); color: #fff; font: 600 10px var(--font-head); }
.sx-ed__sep { width: 1px; height: 20px; background: #D5D8E0; }
.sx-ed__pg { color: #5C6270; font-size: 13.5px; }
.sx-ed__pg::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border: solid #5C6270; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sx-ed__chip { margin-left: auto; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 5px; background: var(--yellow); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.sx-ed__save { display: inline-grid; height: 30px; padding: 0 14px; border-radius: 7px; background: var(--ink); color: #fff; font: 600 13px/30px var(--font-body); transition: background-color 200ms ease, color 200ms ease; }
.sx-ed__save span { grid-area: 1 / 1; text-align: center; }
.sx-ed__save span + span, .sx-ed__save.is-saved span:first-child { visibility: hidden; }
.sx-ed__save.is-saved span + span { visibility: visible; }
.sx-ed__save.is-saved { background: var(--soft); color: #2B3AB0; }
.sx-ed__body { display: grid; grid-template-columns: 280px 1fr; height: calc(100% - 46px); }
.sx-ed__side { position: relative; overflow: hidden; border-right: 1px solid #E3E5EA; }
.sx-ed__panel { position: absolute; left: 16px; right: 16px; top: 16px; transition: opacity 260ms ease, transform 380ms var(--ease-snap); }
.sx-ed[data-phase="hero"] [data-panel="cards"], .sx-ed[data-phase="cards"] [data-panel="hero"] { opacity: 0; transform: translateX(14px); }
.sx-ed__crumb { margin-bottom: 14px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.sx-ed__crumb i { font-style: normal; margin: 0 4px; color: #B4B9C4; }
.sx-field { margin-bottom: 14px; }
.sx-field__l { margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: #3A3E4B; }
.sx-input { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 11px; border: 1px solid #C9CDD6; border-radius: 8px; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
.sx-input--area { align-items: flex-start; min-height: 62px; font-size: 12.5px; color: #3A3E4B; }
.sx-field.is-live .sx-input, .sx-field.is-live .sx-seg { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(64, 85, 232, .16); }
.sx-caret { display: none; width: 1.5px; height: 17px; margin-left: -6px; background: var(--blue); }
.sx-field.is-typing .sx-caret { display: inline-block; animation: sx-blink 1s steps(1) infinite; }
@keyframes sx-blink { 50% { opacity: 0; } }
.sx-seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); height: 38px; border: 1px solid #C9CDD6; border-radius: 8px; }
.sx-seg i { position: relative; z-index: 1; display: grid; place-items: center; font: 500 13.5px var(--font-mono); font-style: normal; color: #5C6270; }
.sx-seg__thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 6px; background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--blue); transform: translateX(100%); transition: transform 380ms var(--ease-snap); }
.sx-seg.is-two .sx-seg__thumb { transform: translateX(0); }
.sx-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sx-mini li { padding: 8px 10px; border: 1px solid #E3E5EA; border-radius: 7px; font-size: 12.5px; color: #3A3E4B; }
.sx-ed__files { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px; border-radius: 10px; background: #F4F5F8; opacity: 0; }
.sx-ed__files p { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.sx-ed__files ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; font-size: 11.5px; color: #3A3E4B; }
.sx-ed__files li.is-hot { color: #2B3AB0; }
.sx-ed__files em { margin-left: 6px; padding: 1px 5px; border-radius: 3px; background: var(--yellow); color: var(--ink); font-style: normal; font-size: 10px; text-transform: uppercase; }
.sx-ed__preview { padding: 18px; background: #ECEDF1; overflow: hidden; }
.sx-ed__win { height: 100%; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 6px 22px rgba(25, 27, 36, .14); }
.sx-ed__page { will-change: transform; }

/* The Golden Crumb page as live HTML (the editor preview and the draft in step 04). Sizes in cqw follow
   the demo picture (1200 x 1180 px), so it lines up with the original picture. Demo content only. */
.gc { position: relative; container-type: inline-size; width: 100%; background: #FCF6EF; color: #3B2A1A; font-family: Georgia, "Times New Roman", serif; --c: 0; }
.gc__hd { display: flex; align-items: center; gap: 1.85cqw; height: 5.75cqw; padding: 0 3.33cqw; background: #fff; border-bottom: 1px solid rgba(60, 42, 25, .08); font-size: 1.42cqw; }
.gc__hd b { margin-right: auto; font-size: 1.85cqw; font-weight: 700; }
.gc__hero { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 37.83cqw; padding-bottom: 1cqw; text-align: center; background: linear-gradient(135deg, #F4E3C6, #E8C797); }
.gc__h { min-height: 1.1em; margin: 0; font-size: 4.35cqw; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.gc__sub { max-width: 46cqw; margin: 2.1cqw 0 2.6cqw; font-size: 1.55cqw; line-height: 1.7; }
.gc__btn { display: inline-flex; align-items: center; height: 4.33cqw; padding: 0 2.3cqw; border-radius: 99px; background: #3C2A19; color: #FFF8EE; font: 600 1.35cqw/1 system-ui, -apple-system, "Segoe UI", sans-serif; }
.gc__btn--tan { background: #E9C99A; color: #3B2A1A; }
.gc__cards { position: relative; height: calc((25.86 + 16.2 * var(--c)) * 1cqw); }
.gc__card { position: absolute; top: calc((5.95 + var(--y2) * var(--c)) * 1cqw); left: calc((var(--x3) + (var(--x2) - var(--x3)) * var(--c)) * 1cqw); width: calc((26.9 + 14.5 * var(--c)) * 1cqw); height: 14cqw; display: flex; flex-direction: column; gap: 1.2cqw; padding: 2.2cqw; border-radius: 1.17cqw; background: #fff; box-shadow: 0 .7cqw 2.2cqw rgba(60, 42, 25, .12); }
.gc__card b { font-size: 1.75cqw; font-weight: 700; }
.gc__card span { font-size: 1.3cqw; line-height: 1.5; }
.gc__cta { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2cqw; height: 22.5cqw; background: #3C2A19; color: #FFF8EE; }
.gc__cta b { font-size: 2.17cqw; font-weight: 700; }
.gc__ft { display: flex; align-items: center; justify-content: center; height: 6.4cqw; font-size: 1.12cqw; color: #8A7A68; }
.gc__sel { position: absolute; left: .4cqw; right: .4cqw; top: 5.75cqw; height: 37.83cqw; border: 2px solid var(--blue); border-radius: 4px; pointer-events: none; transition: top 420ms var(--ease-snap), height 420ms var(--ease-snap); }
.gc__sel::before { position: absolute; left: -2px; top: -2px; padding: 3px 7px; border-radius: 3px 0 4px 0; background: var(--blue); color: #fff; font: 600 11px/1.2 var(--font-body); content: "Hero"; }
.sx-ed[data-phase="cards"] .gc__sel { top: 43.58cqw; height: calc((25.86 + 16.2 * var(--c)) * 1cqw); }
.sx-ed[data-phase="cards"] .gc__sel::before { content: "Product cards"; }
.gc__sub-b, .gc__missing { display: none; }
.gc--draft:is([data-round="1"], [data-round="2"]) .gc__sub-a { display: none; }
.gc--draft:is([data-round="1"], [data-round="2"]) .gc__sub-b { display: inline; }
.gc--draft[data-round="1"] .gc__ft { visibility: hidden; }
.gc--draft[data-round="1"] .gc__missing { position: absolute; left: 1.5cqw; right: 1.5cqw; bottom: .6cqw; display: flex; align-items: center; justify-content: center; height: 5.2cqw; border: .25cqw dashed #C9A97A; border-radius: .8cqw; font-size: 1.2cqw; color: #A8875A; text-transform: uppercase; letter-spacing: .06em; }

/* 04 Match: original vs draft, over rounds */
.sx-cmp { width: 880px; color: var(--on-dark); }
.sx-cmp__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sx-rounds { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.sx-rounds li { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid rgba(245, 244, 239, .14); border-radius: 99px; font-size: 13px; color: var(--on-dark-3); transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease; }
.sx-rounds b { font-size: 12px; font-weight: 500; }
.sx-rounds li.is-done { color: var(--on-dark-2); }
.sx-rounds li.is-on { border-color: var(--blue-line); background: rgba(141, 155, 255, .14); color: #fff; }
.sx-cmp__main { display: grid; grid-template-columns: 470px 1fr; gap: 30px; align-items: start; }
.sx-frame { position: relative; aspect-ratio: 1200 / 1180; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 40px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06); }
.sx-frame__orig { position: absolute; inset: 0; width: 100%; height: 100%; }
.sx-frame__draft { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.sx-frame__tag { position: absolute; top: 10px; z-index: 3; padding: 4px 7px 3px; border-radius: 4px; background: rgba(25, 27, 36, .8); color: #fff; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.sx-frame__tag--l { left: 10px; } .sx-frame__tag--r { right: 10px; }
.sx-slider { position: absolute; top: 0; bottom: 0; left: 50%; z-index: 2; width: 0; }
.sx-slider::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(25, 27, 36, .25); }
.sx-slider i { position: absolute; top: 50%; left: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.sx-slider i::before, .sx-slider i::after { content: ""; position: absolute; top: 9px; width: 2px; height: 12px; background: var(--blue); }
.sx-slider i::before { left: 11px; } .sx-slider i::after { right: 11px; }
.sx-mark { position: absolute; z-index: 2; left: calc(var(--l) * 1%); top: calc(var(--t) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); border: 2px solid var(--yellow); border-radius: 6px; opacity: 0; transition: border-color 240ms ease; }
.sx-mark b { position: absolute; left: -11px; top: -11px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 11.5px; font-weight: 500; transition: background-color 240ms ease; }
.sx-mark.is-fixed { border-color: rgba(141, 155, 255, .55); border-style: dashed; }
.sx-mark.is-fixed b { background: var(--blue-line); color: #fff; }
.sx-score__num { display: flex; align-items: baseline; gap: 2px; font: 600 60px/1 var(--font-head); letter-spacing: -.04em; color: #F7F6F2; }
.sx-score__num span { margin-left: 14px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-2); }
.sx-cmp.is-hit .sx-score__num span { color: var(--yellow); }
.sx-ruler { position: relative; height: 10px; margin-top: 34px; border-radius: 5px; background: rgba(245, 244, 239, .1); }
.sx-ruler__fill { position: absolute; inset: 0; border-radius: 5px; background: #6274FF; transform-origin: left; transform: scaleX(0); }
.sx-ruler__ghost { position: absolute; top: -4px; bottom: -4px; left: calc(var(--v) * 1%); width: 2px; background: rgba(245, 244, 239, .5); opacity: 0; transition: opacity 240ms ease; }
.sx-ruler__ghost.is-on { opacity: 1; }
.sx-ruler__target { position: absolute; top: -8px; bottom: -8px; left: calc(var(--v) * 1%); width: 2px; background: var(--yellow); }
.sx-ruler__target b { position: absolute; right: 6px; top: -18px; font-size: 10.5px; font-weight: 500; white-space: nowrap; color: var(--yellow); letter-spacing: .04em; text-transform: uppercase; }
.sx-ruler__scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; color: var(--on-dark-3); }
.sx-diffs { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; }
.sx-diffs li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid rgba(245, 244, 239, .1); border-radius: 10px; background: rgba(245, 244, 239, .03); opacity: 0; transition: border-color 240ms ease; }
.sx-diffs li > b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 11.5px; font-weight: 500; }
.sx-diffs li > span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 600; color: #F5F4EF; }
.sx-diffs small { font: 500 10.5px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--on-dark-3); }
.sx-diffs em { font-style: normal; font-size: 11px; color: var(--yellow); white-space: nowrap; }
.sx-diffs li.is-fixed > b { background: var(--blue-line); color: #fff; }
.sx-diffs li.is-fixed em { color: var(--blue-line); }

/* Phone and tablet versions of the layers (designed at 358 px wide) */
@media (max-width: 1023px) {
  html.gl .split { display: none; } /* no room next to the check on small screens; section 05 explains the score */
  .sx-set { width: 358px; padding: 14px 14px 12px; }
  .sx-set .sx-row:not([data-row="2"]), .sx-set__add { display: none; }
  .sx-set__title { margin-bottom: 4px; font-size: 17px; }
  .sx-blocks { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .sx-blocks li { flex-direction: column; align-items: flex-start; gap: 3px; padding: 6px 7px; font-size: 11.5px; }
  .sx-blocks li span { margin-left: 0; font-size: 10.5px; }
  .sx-ed { width: 358px; height: 470px; }
  .sx-ed__bar { height: 40px; gap: 8px; padding: 0 10px; font-size: 12.5px; }
  .sx-ed__sep, .sx-ed__pg { display: none; }
  .sx-ed__save { height: 26px; padding: 0 10px; font-size: 12px; line-height: 26px; }
  .sx-ed__body { grid-template-columns: 1fr; grid-template-rows: 250px 1fr; height: calc(100% - 40px); }
  .sx-ed__preview { order: -1; padding: 10px; }
  .sx-ed__side { border-right: 0; border-top: 1px solid #E3E5EA; }
  .sx-ed__panel { left: 12px; right: 12px; top: 12px; }
  .sx-ed__panel .sx-field:not(.is-live) { display: none; }
  .sx-ed__crumb { margin-bottom: 10px; }
  .sx-ed__files { left: 12px; right: 12px; bottom: 10px; padding: 8px 10px; }
  .sx-ed__files ul { grid-template-columns: 1fr; gap: 3px; font-size: 10.5px; }
  .sx-ed__files li:not(.is-hot) { display: none; }
  .sx-cmp { width: 358px; }
  .sx-cmp__top { margin-bottom: 12px; }
  .sx-rounds { gap: 5px; }
  .sx-rounds li { height: 28px; padding: 0 9px; font-size: 11.5px; gap: 5px; }
  .sx-rounds b { font-size: 10.5px; }
  .sx-cmp .ex { display: none; }
  .sx-cmp__main { grid-template-columns: 1fr; gap: 14px; }
  .sx-frame { width: 300px; margin-inline: auto; }
  .sx-score__num { font-size: 40px; }
  .sx-ruler { margin-top: 22px; }
  .sx-diffs { display: none; }
}

/* ---------- 01 The nav (nav.js): one slim, solid bar fixed at the top. 72 px, 56 px after the hero.
   The page keeps a fixed 72 px top padding, so the shrink moves no content. Mobile first. ---------- */
html, body { background: var(--night); } /* the whole page is dark now */
body { padding-top: var(--nav-h); }
html { scroll-padding-top: 0; }
main > section, .ft { scroll-margin-top: 72px; } /* the slim bar (56 px) + 16 px */
html.gl .story { scroll-margin-top: 0; } /* the pinned stage is made to sit under the bar */
.nav.nv { position: fixed; top: 0; left: 0; right: 0; background: transparent; }
.nav.nv::after { display: none; }
.nv__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--porcelain); box-shadow: inset 0 -1px 0 var(--grey); transition: background-color 240ms ease; }
.nav--dark .nv__bg, .nv--open .nv__bg { background: var(--night); box-shadow: inset 0 -1px 0 var(--line-dark); }
.nv__bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; height: var(--nav-h); transition: height 260ms var(--ease-snap); }
.nv { height: var(--nav-h); transition: height 260ms var(--ease-snap); }
.nv.is-slim, .nv.is-slim .nv__bar { height: 56px; }
@media (max-width: 767px) { .nv.is-slim, .nv.is-slim .nv__bar { height: 52px; } }
.nv__brand { flex: none; transform-origin: left center; transition: transform 260ms var(--ease-snap); }
.nv.is-slim .nv__brand { transform: scale(.86); }
.nav--dark .nv__brand, .nv--open .nv__brand { color: var(--on-dark); }
.nav--dark .nv__brand .mark, .nv--open .nv__brand .mark { color: var(--mark-on-dark); }
/* the logo point stays yellow on every background (it sits on the blue M) */
.nv__links, .nv__signin { display: none; }
.nv__end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nv__cta { min-height: 38px; padding: 0 13px; font-size: 14px; transition: opacity 200ms ease, visibility 0s, background-color var(--t-hover) ease; }
/* "Start a build" once per screen: the bar's button steps aside while another one is on screen */
.nv.has-cta .nv__cta, .nv--open .nv__cta { opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s 160ms; }
/* Desktop: the bar's Start a build always shows (a bar with only "Sign in" at the right looked empty). The hide rule above is for phones. */
@media (min-width: 1024px) { .nv.has-cta:not(.nv--open) .nv__cta { opacity: 1; visibility: visible; } }
.nv__toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--grey); border-radius: 8px; background: var(--white); cursor: pointer; }
.nav--dark .nv__toggle, .nv--open .nv__toggle { background: transparent; border-color: rgba(245, 244, 239, .24); }
.nv__burger { position: relative; width: 18px; height: 12px; }
.nv__burger i { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: transform var(--t-state) var(--ease-snap), opacity var(--t-state); }
.nav--dark .nv__burger i, .nv--open .nv__burger i { background: var(--on-dark); }
.nv__burger i:nth-child(1) { top: 0; } .nv__burger i:nth-child(2) { top: 5px; } .nv__burger i:nth-child(3) { top: 10px; }
.nv--open .nv__burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nv--open .nv__burger i:nth-child(2) { opacity: 0; }
.nv--open .nv__burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nv :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.nav--dark :focus-visible, .nv--open :focus-visible { outline-color: var(--blue-line); }

/* Thin progress line along the bottom edge (desktop only): blue fill for the scroll, yellow tick at Pricing */
.nv__ruler { display: none; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 7px; pointer-events: none; color: rgba(25, 27, 36, .22); }
.nav--dark .nv__ruler { color: rgba(245, 244, 239, .18); }
.nv__ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: repeating-linear-gradient(to right, currentColor 0 1px, transparent 1px 80px) left bottom / 100% 6px no-repeat; }
.nv__fill { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.nav--dark .nv__fill { background: #6E80FF; }
.nv__target { position: absolute; bottom: 0; left: 100%; width: 2px; height: 8px; margin-left: -1px; background: var(--yellow); }
html:not(.js) .nv__ruler { display: none !important; }

/* The viewfinder frame: the logo's four corner brackets, moved by transforms (spring, interruptible) */
.vf { position: absolute; left: 0; top: 0; z-index: 3; display: none; pointer-events: none; color: var(--blue); }
.nav--dark .vf { color: var(--blue-line); }
.vf i { position: absolute; left: 0; top: 0; width: 9px; height: 9px; border: 0 solid currentColor; transition: transform 440ms cubic-bezier(.34, 1.42, .5, 1), opacity 200ms ease; }
.vf i:nth-child(1) { border-top-width: 2px; border-left-width: 2px; }
.vf i:nth-child(2) { margin-left: -9px; border-top-width: 2px; border-right-width: 2px; }
.vf i:nth-child(3) { margin: -9px 0 0 -9px; border-right-width: 2px; border-bottom-width: 2px; }
.vf i:nth-child(4) { margin-top: -9px; border-left-width: 2px; border-bottom-width: 2px; }
.vf.is-off i { opacity: 0; }
.vf.is-lock i { animation: vf-lock 560ms ease; }
@keyframes vf-lock { 0%, 100% { border-color: currentColor; } 30%, 55% { border-color: var(--yellow); } }

/* Phone and tablet menu: a full-screen carbon panel, numbered links, the frame on the current one */
.nv__menu { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; padding: calc(var(--nav-h) + 22px) var(--gutter) 28px; overflow-y: auto; background: var(--night); color: var(--on-dark); }
.nv__menu[hidden] { display: none; }
.nv__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nv__list a { position: relative; display: flex; align-items: baseline; gap: 14px; padding: 12px 12px; color: var(--on-dark); text-decoration: none; }
.nv__list b { min-width: 22px; font-size: 12px; font-weight: 500; color: var(--blue-line); }
.nv__list span { display: flex; flex-direction: column; gap: 4px; font: 600 26px/1.1 var(--font-head); letter-spacing: -.025em; }
.nv__list small { font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-3); }
.nv__list a[aria-current]::before { content: ""; position: absolute; inset: 0; pointer-events: none; --c: var(--blue-line); --l: 10px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w), linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w), linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w), linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w), linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l);
  background-repeat: no-repeat; }
.nv__list a[aria-current] b { color: var(--yellow); }
.nv__list a:focus-visible { outline: 2px solid var(--blue-line); outline-offset: 2px; }
.nv__menu-end { display: grid; gap: 14px; margin-top: auto; padding-top: 26px; }
.nv__menu-signin { padding: 8px; text-align: center; color: #D5D8E0; text-decoration: none; }
html.nv-lock { overflow: hidden; }
html.motion .nv--open .nv__list li, html.motion .nv--open .nv__menu-end { animation: nv-in 460ms var(--ease-snap) backwards; animation-delay: calc(var(--i) * 45ms + 40ms); }
@keyframes nv-in { from { opacity: 0; transform: translateY(14px); } }

/* Without JavaScript: the links stay visible on small screens, as a plain row under the bar */
@media (max-width: 1023px) {
  html:not(.js) body { padding-top: 0; }
  html:not(.js) .nav.nv { position: relative; height: auto; }
  html:not(.js) .nv__bar { flex-wrap: wrap; height: auto; min-height: var(--nav-h); padding-block: 10px; }
  html:not(.js) .nv__links { order: 5; display: flex; flex-wrap: wrap; gap: 8px 18px; width: 100%; }
  html:not(.js) .nv__links a { color: var(--ink); font-size: 15px; text-decoration: none; }
  html:not(.js) .nav--dark .nv__links a { color: #D5D8E0; }
  html:not(.js) .nv__toggle { display: none; }
}
@media (max-width: 359px) { .nv__brand .brand__word { display: none; } }

@media (min-width: 1024px) {
  .vf, .nv__ruler { display: block; }
  .nv__toggle, .nv__menu { display: none !important; }
  .nv__links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
  .nv__links a { position: relative; padding: 6px 2px; color: var(--ink); text-decoration: none; font-size: 15px; }
  .nav--dark .nv__links a { color: #D5D8E0; }
  .nv__links a[aria-current] { color: var(--ink); font-weight: 500; }
  .nav--dark .nv__links a[aria-current] { color: #fff; }
  .nv--vf .nv__links a:focus-visible { outline: none; } /* the frame is the focus ring */
  .nv__end { gap: 20px; margin-left: 0; padding-left: 24px; border-left: 1px solid var(--grey); }
  .nav--dark .nv__end { border-left-color: var(--line-dark); }
  .nv__signin { display: inline; padding: 6px 2px; color: var(--ink); text-decoration: none; font-size: 15px; }
  .nav--dark .nv__signin { color: #D5D8E0; }
  .nv__cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
  .nv.is-slim .nv__cta { min-height: 38px; }
}
@media (min-width: 1024px) and (max-width: 1199px) { .nv__wide { display: none; } }

/* Reduced motion (or ?motion=off): the same states, changed at once */
html:not(.motion) .nv, html:not(.motion) .nv *, html:not(.motion) .vf i { transition: none !important; animation: none !important; }

/* ---------- Phone layout of the hero: the 3D scene first, a shorter text block under it ---------- */
@media (max-width: 1023px) {
  .hx__stage { order: 0; height: clamp(290px, 41svh, 420px); margin-top: 0; }
  .hx__inner { order: 1; padding-top: 2px; }
  .hx__kicker, .hx__more { display: none; }
  .hx h1 { font-size: clamp(38px, 10.6vw, 60px); }
  .hx__lede { margin-top: 12px; }
  .hx__actions { margin-top: 18px; }
  .hx__assure { margin-top: 12px; }
  .hx__foot { order: 3; padding-top: 14px; padding-bottom: 20px; }
  .hx__cap { font-size: 12px; }
}

/* ---------- Phone layout of the story: the picture fills the screen, a short caption sits at the bottom ---------- */
@media (max-width: 767px) {
  html.gl .story { height: 330svh; }
  html.gl .story__scene { --cy: .4; --aw: .98; }
  html.gl .story__inner { padding-top: calc(var(--nav-h) + 8px); padding-bottom: 10px; }
  html.gl .story__inner::before { content: ""; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); bottom: 0; z-index: -1; height: 40%; background: linear-gradient(rgba(14, 16, 22, 0), rgba(14, 16, 22, .9) 38%, var(--night)); pointer-events: none; }
  html.gl .story__steps { margin-top: auto; min-height: 7.6em; }
  html.gl .story__step h3 { font-size: 40px; }
  html.gl .story__step p:not(.story__num) { margin-top: 8px; font-size: 15px; line-height: 1.45; }
  html.gl .story__rail { margin-top: 10px; }
  .sx__view { top: calc(var(--nav-h) + 44px); bottom: 216px; }
}

/* ---------- Lower page sections: one dark style all the way down ---------- */
.lx { position: relative; overflow-x: clip; padding-block: clamp(64px, 9vw, 128px); background: var(--night); color: var(--on-dark); border-top: 1px solid #1B1F2C; }
.lx--alt { background: var(--night-2); }
.lx__head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.lx__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); }
.lx__kicker span { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border: 1px solid var(--blue-line); border-radius: 5px; color: var(--blue-line); letter-spacing: 0; }
.lx h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.045em; color: #F7F6F2; }
.lx__line { margin-top: 16px; max-width: 30em; font-size: clamp(16.5px, 1rem + .3vw, 19px); line-height: 1.5; color: var(--on-dark-2); }
.lx__points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.lx__points li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #E5E7EE; }
.lx__points li::before { content: ""; flex: none; width: 14px; height: 8px; margin-top: -4px; border: solid var(--blue-line); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.lx__grid { display: grid; gap: 36px; }
@media (min-width: 1024px) {
  .lx__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: 72px; }
  .lx__grid .lx__head { margin-bottom: 0; }
  .lx__grid--top { align-items: start; }
}
.ex { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px solid rgba(245, 244, 239, .55); border-radius: 4px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark); vertical-align: 1px; }

/* Reveals: sections place in once (opacity + 24 px). Only when nav.js says motion is on. */
html.rv-on .rv { transition: opacity 700ms ease, transform 800ms var(--ease-snap); }
html.rv-on .rv:not(.is-in) { opacity: 0; transform: translateY(24px); }

/* 02 The check: the compare demo on a dark panel */
.lx .compare { padding: 14px; border: 1px solid #262B3B; border-radius: 16px; background: #151824; color: var(--on-dark); }
.lx .compare__bar .ex { margin-left: auto; }
/* phone: the check keeps the picture, the score and the numbered list; the sub-scores live in the story */
@media (max-width: 767px) {
  .lx .subs { display: none; }
  .lx .compare__bar { gap: 8px; }
  .lx .seg button { padding: 8px 10px; font-size: 13px; }
}
.lx .seg { border-color: #2C3145; background: #0F121A; }
.lx .seg button { color: #C9CDD8; }
.lx .seg button[aria-checked="true"] { background: var(--blue); color: #fff; }
.lx .seg--rounds button[aria-checked="true"] { background: #F5F4EF; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .lx .seg button[aria-checked="false"]:hover { background: #1E2232; } }
.lx .pane__label { color: var(--on-dark-3); }
.lx .pane__shot { border-color: #2C3145; }
.lx .score__label { color: var(--on-dark-3); }
.lx .score__num { color: #F7F6F2; }
.lx .score__state { color: var(--yellow); }
.lx .score__state.is-under { color: var(--on-dark-2); }
.lx .ruler__track::before { border-right-color: #6A7184; background: linear-gradient(#6A7184, #6A7184) 0 100% / 100% 1px no-repeat, repeating-linear-gradient(90deg, #6A7184 0 1px, transparent 1px 10%) 0 100% / 100% 12px no-repeat, repeating-linear-gradient(90deg, #3E4458 0 1px, transparent 1px 2%) 0 100% / 100% 6px no-repeat; }
.lx .ruler__fill { background: #6E80FF; }
.lx .ruler__target { border-left-color: var(--yellow); }
.lx .ruler__needle::before { background: #6E80FF; box-shadow: 0 0 0 2px #151824; }
.lx .ruler__ghosts i { background: #8A90A0; }
.lx .sub dt { color: #D5D8E0; }
.lx .sub dt small { color: var(--on-dark-3); }
.lx .diffs__title { color: #F5F4EF; }
.lx .diffs__title .mono { color: var(--on-dark-3); }
.lx .diffs li { border-color: #2A2F42; background: rgba(245, 244, 239, .02); color: #E5E7EE; }
.lx .diffs li span { color: var(--on-dark-2); }
.lx .diffs li strong { color: #F5F4EF; }
.lx .diffs em { color: var(--yellow); }
.lx .diffs li.is-fixed { background: transparent; }
.lx .diffs li > b, .sx-ed__chip, .kit__chip { color: var(--ink); }
.lx .diffs li.is-fixed b { background: var(--blue-line); color: #fff; }
.lx .diffs li.is-fixed em { color: var(--blue-line); }
.lx .diffs li.is-hot { border-color: var(--blue-line); }
.lx .slider__grip { box-shadow: 0 0 0 3px #151824; }
@media (min-width: 1024px) { .lx .compare { padding: 22px; } .lx .compare__body { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; } }

/* 03 What you get: one composed picture: the theme in the editor, its files, the match report */
.kit { position: relative; margin: 0; padding: 0 0 70px; }
.kit__ed { position: relative; overflow: hidden; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.kit__bar { display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 0 14px; border-bottom: 1px solid #E3E5EA; font-size: 14px; }
.kit__chip { padding: 4px 8px 3px; border-radius: 4px; background: var(--yellow); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
.kit__body { display: grid; grid-template-columns: 38% 1fr; }
.kit__list { list-style: none; margin: 0; padding: 12px; display: grid; gap: 6px; align-content: start; border-right: 1px solid #E3E5EA; font-size: 13px; }
.kit__list li { padding: 8px 10px; border: 1px solid #E3E5EA; border-radius: 7px; }
.kit__list li.is-on { border-color: var(--blue); background: var(--soft); color: #2B3AB0; font-weight: 600; }
.kit__body img { width: calc(100% - 24px); margin: 12px; border-radius: 6px; box-shadow: 0 6px 22px rgba(25, 27, 36, .14); }
.kit__files, .kit__report { position: absolute; padding: 14px 16px; border: 1px solid #2C3145; border-radius: 12px; background: #161925; box-shadow: 0 24px 50px rgba(0, 0, 0, .55); }
.kit__files { left: -4%; bottom: 0; display: grid; gap: 5px; font-size: 12px; color: #C9CDD8; }
.kit__files p, .kit__report p { margin-bottom: 4px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-line); }
.kit__report { right: -3%; bottom: 22px; display: grid; gap: 8px; width: 220px; font-size: 13px; color: #E5E7EE; }
.kit__report i { margin-left: 6px; font-style: normal; color: var(--on-dark-3); }
.kit__report span { position: relative; display: flex; justify-content: space-between; padding-bottom: 6px; }
.kit__report span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: linear-gradient(#6E80FF, #6E80FF) left / calc(var(--v) * 1%) 100% no-repeat, rgba(245, 244, 239, .1); }
.kit__report b { font-weight: 500; color: var(--on-dark-2); }
html.rv-on .kit .kit__files, html.rv-on .kit .kit__report { transition: opacity 600ms ease 300ms, transform 800ms var(--ease-snap) 300ms; }
html.rv-on .kit:not(.is-in) .kit__files { opacity: 0; transform: translate(-24px, 16px); }
html.rv-on .kit:not(.is-in) .kit__report { opacity: 0; transform: translate(24px, 16px); }
html.rv-on .kit .kit__report span::after { transition: background-size 900ms var(--ease-snap) 600ms; }
html.rv-on .kit:not(.is-in) .kit__report span::after { background-size: 0 100%, auto; }
@media (max-width: 767px) {
  .kit { padding-bottom: 150px; }
  .kit__files { left: 0; bottom: 0; }
  .kit__report { right: 0; bottom: 64px; width: 190px; }
  .kit__list { font-size: 11.5px; padding: 8px; }
}

/* 04 Draft first: the publish card stays light (it is Shopify's admin) on the dark band */
.lx .lib { max-width: 620px; }
.lx .lib__card { border: 0; color: var(--ink); box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.lx .lib figcaption { color: var(--on-dark-3); }
.lx .lib figcaption .ex { margin-right: 6px; }

/* 05 Pricing: the web plans as one row; the desktop app for agencies as one row that opens */
.prices { display: grid; gap: 14px; }
.prow { border: 1px solid #262B3B; border-radius: 16px; background: #151824; color: var(--on-dark); }
.prow--web { display: grid; gap: 18px; padding: 22px; }
.prow__head h3 { font-size: 20px; letter-spacing: -.02em; color: #F7F6F2; }
.prow__head .mono { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .04em; color: var(--on-dark-3); }
.prow__plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.prow__plans li { display: grid; gap: 4px; align-content: start; padding: 12px 14px; border-left: 1px solid #2C3145; }
.prow__name { font-size: 13px; font-weight: 600; color: var(--on-dark-2); }
.prow__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
.prow__price strong { font: 600 28px/1.1 var(--font-head); letter-spacing: -.03em; color: #F7F6F2; }
.prow__price span, .prow__plans small { font-size: 12.5px; color: var(--on-dark-3); }
.prow__cta { justify-self: start; }
.prow--desk summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; }
.prow--desk summary::-webkit-details-marker { display: none; }
.prow--desk .prow__head { display: block; }
.prow--desk h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.prow__toggle { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--blue-line); }
.prow__toggle::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform 240ms var(--ease-snap); }
.prow--desk[open] .prow__toggle::after { transform: rotate(-135deg); margin-top: 3px; }
.prow__plans--desk { padding: 0 22px 8px; }
.prow__plans--desk .pcard__buy { margin-top: 8px; display: grid; gap: 6px; }
.prow__plans--desk .btn { min-height: 38px; font-size: 13px; }
.prow .btn--soon { background: transparent; color: var(--on-dark-3); border-color: #2C3145; }
.prow__note { padding: 0 22px 14px; font-size: 13.5px; color: var(--on-dark-3); }
.prow--web .prow__note { padding: 0; }
.lx .fineprint { margin-top: 14px; color: var(--on-dark-3); }
@media (min-width: 1024px) {
  .prow--web { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 26px 28px; column-gap: 28px; }
  .prow--web .prow__head { grid-column: 1 / -1; }
  .prow--web .prow__plans { grid-column: 1; }
  .prow--web .prow__cta { grid-column: 2; grid-row: 2; justify-self: end; }
  .prow__plans li { padding: 6px 18px; }
  .prow__price strong { font-size: 34px; }
  .prices { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 767px) {
  .prow__plans { gap: 0; }
  .prow__plans li { padding: 6px 8px; }
  .prow__price strong { font-size: 22px; }
  .prow__plans small { font-size: 11px; line-height: 1.3; }
  .prow--desk summary { flex-direction: column; align-items: flex-start; }
  .prow__plans--desk { grid-template-columns: 1fr; }
  .prow__plans--desk li { border-left: 0; border-top: 1px solid #2C3145; padding: 12px 0; }
}

/* 06 FAQ: six questions */
.qa { border-top: 1px solid #262B3B; }
.qa details { border-bottom: 1px solid #262B3B; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; cursor: pointer; list-style: none; font: 600 17px/1.35 var(--font-body); color: #F5F4EF; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--blue-line), var(--blue-line)) center / 12px 1.5px no-repeat, linear-gradient(var(--blue-line), var(--blue-line)) center / 1.5px 12px no-repeat; transition: transform 240ms var(--ease-snap); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa__a { padding: 0 2px 18px; display: grid; gap: 8px; font-size: 15.5px; line-height: 1.55; color: var(--on-dark-2); max-width: 36em; }
html.motion .qa details[open] .qa__a { animation: qa-in 260ms var(--ease-snap); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-4px); } }

/* 07 Final call to action: the logo mark registers in a calm 6 s loop */
.fin { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 140px); background: linear-gradient(180deg, var(--night-2), var(--night)); color: var(--on-dark); border-top: 1px solid #1B1F2C; }
.fin__grid { display: grid; gap: 44px; align-items: center; }
.fin h2 { max-width: 15ch; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.045em; color: #F7F6F2; }
.fin p { margin: 16px 0 28px; max-width: 30em; font-size: clamp(16.5px, 1rem + .3vw, 19px); color: var(--on-dark-2); }
.fin__mark { position: relative; justify-self: center; width: min(72vw, 400px); aspect-ratio: 1; color: var(--blue-line); }
.fin__mark svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.fin__ruler { position: absolute; left: -30%; right: -30%; top: 50%; height: 12px; margin-top: -6px; opacity: .45; -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  background: repeating-linear-gradient(90deg, var(--blue-line) 0 1px, transparent 1px 8px) 0 100% / 40px 5px repeat-x, repeating-linear-gradient(90deg, var(--blue-line) 0 1px, transparent 1px 40px) 0 100% / 40px 12px repeat-x; }
.fm { transform-box: fill-box; transform-origin: center; }
.fm--b { stroke: #F5F4EF; stroke-width: 1.2; }
.fm--m { fill: var(--mark-on-dark); }
.fm--dot { fill: var(--yellow); }
@media (min-width: 900px) { .fin__grid { grid-template-columns: 1.15fr 1fr; } .fin__mark { width: min(100%, 420px); } }
@media (max-width: 767px) { .fin__mark { width: min(64vw, 280px); } }
/* the loop: the yellow point drops into the M's V, lands, then the corners close and blink yellow and the point pulses */
html.motion .fin .fm--tl { animation: fm-tl 6s var(--ease-snap) infinite; }
html.motion .fin .fm--tr { animation: fm-tr 6s var(--ease-snap) infinite; }
html.motion .fin .fm--br { animation: fm-br 6s var(--ease-snap) infinite; }
html.motion .fin .fm--bl { animation: fm-bl 6s var(--ease-snap) infinite; }
html.motion .fin .fm--dot { animation: fm-dot 6s ease infinite; }
html.motion .fin .fin__ruler { animation: fm-ruler 3s linear infinite; }
html.motion .fin.is-off *, html.motion .fin.is-off .fm { animation-play-state: paused; }
@keyframes fm-tl { 0%, 6% { transform: translate(2px, 2px); stroke: #F5F4EF; } 16%, 74% { transform: none; stroke: #F5F4EF; } 80% { transform: translate(2px, 2px); stroke: var(--yellow); } 86%, 100% { transform: translate(2px, 2px); stroke: #F5F4EF; } }
@keyframes fm-tr { 0%, 6% { transform: translate(-2px, 2px); stroke: #F5F4EF; } 16%, 74% { transform: none; stroke: #F5F4EF; } 80% { transform: translate(-2px, 2px); stroke: var(--yellow); } 86%, 100% { transform: translate(-2px, 2px); stroke: #F5F4EF; } }
@keyframes fm-br { 0%, 6% { transform: translate(-2px, -2px); stroke: #F5F4EF; } 16%, 74% { transform: none; stroke: #F5F4EF; } 80% { transform: translate(-2px, -2px); stroke: var(--yellow); } 86%, 100% { transform: translate(-2px, -2px); stroke: #F5F4EF; } }
@keyframes fm-bl { 0%, 6% { transform: translate(2px, -2px); stroke: #F5F4EF; } 16%, 74% { transform: none; stroke: #F5F4EF; } 80% { transform: translate(2px, -2px); stroke: var(--yellow); } 86%, 100% { transform: translate(2px, -2px); stroke: #F5F4EF; } }
@keyframes fm-dot { 0%, 10% { transform: translateY(-30px); opacity: 0; animation-timing-function: cubic-bezier(.55, 0, .85, .35); } 16% { opacity: 1; } 40% { transform: none; animation-timing-function: ease-out; } 44% { transform: scale(1.18, .82); } 49%, 76% { transform: none; } 81% { transform: scale(1.6); } 88%, 92% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
@keyframes fm-ruler { to { background-position: -40px 100%, -40px 100%; } }
/* still pose (reduced motion): registered and locked */
html:not(.motion) .fin .fm--tl { transform: translate(2px, 2px); }
html:not(.motion) .fin .fm--tr { transform: translate(-2px, 2px); }
html:not(.motion) .fin .fm--br { transform: translate(-2px, -2px); }
html:not(.motion) .fin .fm--bl { transform: translate(2px, -2px); }

/* Footer, dark */
.ft { position: relative; padding-block: 40px 34px; background: var(--night); color: var(--on-dark-2); border-top: 1px solid #1B1F2C; }
.ft__inner { display: grid; gap: 16px; }
.ft__brand { color: var(--on-dark); }
.ft__brand .mark { width: 28px; height: 28px; color: var(--mark-on-dark); }
.ft__brand .brand__word { font-size: 22px; }
.ft__tag { font-size: 12.5px; letter-spacing: .04em; color: var(--on-dark-3); }
.ft__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ft__links a { padding: 6px 0; font-size: 15px; color: #D5D8E0; text-decoration: none; }
.ft__links a:hover { color: #fff; }
.ft__legal { max-width: 80ch; font-size: 13px; color: var(--on-dark-3); }
@media (min-width: 900px) { .ft__inner { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 32px; } .ft__legal { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid #1B1F2C; } }
