/* Forensic Intelligence: shared stylesheet
   Clean, product-first marketing layout: white ground, soft grey washes,
   big rounded media tiles, pill buttons, sticky product sub-navigation. */

:root {
  --ink: #1c2b33;
  --ink-2: #465a69;
  --ink-3: #67788a;
  --line: #dde3e8;
  --wash: #f1f4f7;
  --wash-2: #e7ecf0;
  --white: #ffffff;
  --blue: #0064e0;
  --blue-hover: #0050b8;
  --green: #0a7d3e;
  --green-bg: #e3f5ea;
  --amber: #8a5a00;
  --amber-bg: #fdf1d8;
  --violet: #5b3cc4;
  --violet-bg: #ece7fb;
  --night: #0d1418;
  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(28, 43, 51, .06), 0 8px 28px rgba(28, 43, 51, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--wash); padding: .1em .35em; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 999; }
.skip:focus { inset-inline-start: 16px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------ Global nav */
.gnav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.gnav.scrolled { border-bottom-color: var(--line); }
.has-lnav .gnav { position: relative; }
.gnav-inner { display: flex; align-items: center; height: 64px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; }
.gnav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.gnav-links a {
  display: block; color: var(--ink); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: background .15s; white-space: nowrap;
}
.gnav-links a:hover, .gnav-links a[aria-current="page"] { background: var(--wash); text-decoration: none; }
.gnav-cta { margin-inline-start: auto; }
.menu-btn {
  display: none; margin-inline-start: 8px; width: 44px; height: 44px; border: 0; background: none;
  border-radius: 999px; cursor: pointer; color: var(--ink);
}
.menu-btn:hover { background: var(--wash); }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .gnav-links, .gnav .gnav-cta { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .gnav.open .gnav-links {
    display: flex; flex-direction: column; position: absolute; top: 64px; inset-inline: 0;
    background: #fff; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); gap: 2px;
  }
  .gnav.open .gnav-links a { font-size: 20px; padding: 12px 8px; border-radius: 12px; }
}

/* ------------------------------------------------------------ Local (product) nav */
.lnav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.lnav-inner { display: flex; align-items: center; height: 60px; gap: 24px; }
.lnav-title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); white-space: nowrap; }
.lnav-title img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.lnav-title:hover { text-decoration: none; }
.lnav-links { display: flex; gap: 2px; list-style: none; margin: 0 0 0 8px; padding: 0; overflow-x: auto; scrollbar-width: none; }
.lnav-links::-webkit-scrollbar { display: none; }
.lnav-links a { display: block; color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.lnav-links a:hover { color: var(--ink); background: var(--wash); text-decoration: none; }
.lnav-links a.active { color: var(--ink); background: var(--wash); }
.lnav .btn { margin-inline-start: auto; flex-shrink: 0; }
@media (max-width: 720px) {
  .lnav-inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 8px; gap: 8px 12px; }
  .lnav-links { order: 3; width: 100%; margin: 0 -12px; }
  .lnav .btn { padding: 8px 16px; min-height: 36px; font-size: 14px; }
}

/* ------------------------------------------------------------ Buttons & chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 999px;
  font: 600 15px/1.2 var(--font); letter-spacing: -0.005em;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-secondary { background: transparent; color: var(--ink); border-color: rgba(28, 43, 51, .35); }
.btn-secondary:hover { border-color: var(--ink); background: rgba(28, 43, 51, .04); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef1f4; }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-sm { min-height: 36px; padding: 7px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

.textlink { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.textlink::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); transition: transform .15s; }
.textlink:hover::after { transform: translate(3px, -1px); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-live { color: var(--green); background: var(--green-bg); }
.chip-soon { color: var(--amber); background: var(--amber-bg); }
.chip-dev { color: var(--violet); background: var(--violet-bg); }
.on-dark .chip-live { color: #7ee2a8; background: rgba(126, 226, 168, .14); }
.on-dark .chip-soon { color: #ffd480; background: rgba(255, 212, 128, .14); }
.on-dark .chip-dev { color: #c7b8ff; background: rgba(199, 184, 255, .16); }

.eyebrow { font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin-bottom: 12px; }

/* ------------------------------------------------------------ Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section.wash { background: var(--wash); }
.section-head { max-width: 860px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.display { font-size: clamp(40px, 6.4vw, 80px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.h1 { font-size: clamp(34px, 4.8vw, 60px); letter-spacing: -0.03em; line-height: 1.05; }
.h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.025em; }
.h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.015em; line-height: 1.2; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); line-height: 1.5; margin-top: 18px; }
.section-head .btn-row { margin-top: 28px; }
.section-head.center .btn-row { justify-content: center; }
.muted { color: var(--ink-2); }
.fine { font-size: 13px; color: var(--ink-3); line-height: 1.55; }

/* ------------------------------------------------------------ Home intro */
.intro { padding: clamp(24px, 3.5vw, 48px) 0 clamp(32px, 4vw, 48px); }
.intro .wrap { container-type: inline-size; }
/* Sized so the one-line headline fills the content width (≈14.5em wide); wraps gracefully if a fallback font runs wider. */
.intro-title { font-size: 6.75cqw; font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: clamp(28px, 3.5vw, 48px); align-items: start; }
.intro .lead { margin-top: 0; }
.intro .btn-row { margin-top: 28px; }
@media (max-width: 860px) {
  .intro-title { font-size: clamp(40px, 11cqw, 64px); }
  .intro-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ------------------------------------------------------------ Home hero carousel */
.hero-home { padding: 16px 0 0; }
.carousel { position: relative; }
.slides { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--night); min-height: clamp(560px, 72vh, 760px); }
.slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 24px;
  padding: clamp(32px, 6vw, 80px);
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s;
}
.slide.active { opacity: 1; visibility: visible; }
.slide-copy { position: relative; z-index: 2; color: #fff; max-width: 520px; }
.slide-copy .chip { margin-bottom: 20px; }
.slide-copy h2 { font-size: clamp(40px, 5.6vw, 72px); letter-spacing: -0.035em; line-height: 1.02; }
.slide-copy p { font-size: clamp(18px, 1.6vw, 21px); color: rgba(255, 255, 255, .78); margin: 18px 0 30px; line-height: 1.45; }
.slide-art { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; min-width: 0; }
.slide-bg { position: absolute; inset: 0; z-index: 0; }
.slide--remarque .slide-bg { background: radial-gradient(1000px 600px at 85% 30%, #1f5fd6 0%, rgba(31, 95, 214, 0) 60%), radial-gradient(700px 500px at 60% 110%, #19b6d8 0%, rgba(25, 182, 216, 0) 60%), #0a1530; }
.slide--embroidery .slide-bg { background: radial-gradient(900px 600px at 80% 40%, #1d6e6a 0%, rgba(29, 110, 106, 0) 65%), #0b2a2c; }
.slide--structa .slide-bg { background: radial-gradient(900px 600px at 80% 35%, #3a3fd8 0%, rgba(58, 63, 216, 0) 60%), radial-gradient(600px 400px at 100% 100%, #6a7bff 0%, rgba(106, 123, 255, 0) 60%), #0b0e22; }
.slide--cartdeck .slide-bg { background: radial-gradient(800px 500px at 75% 30%, #c2376b 0%, rgba(194, 55, 107, 0) 60%), radial-gradient(700px 500px at 95% 100%, #f28a2e 0%, rgba(242, 138, 46, 0) 60%), #120b14; }

.carousel-bar { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 18px 0 0; }
.dots { display: flex; gap: 8px; }
.dot { width: 44px; height: 24px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.dot span { display: block; width: 100%; height: 4px; border-radius: 4px; background: var(--wash-2); overflow: hidden; position: relative; }
.dot span::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: var(--start, left); }
.dot[aria-current="true"] span::after { transform: scaleX(1); }
.carousel.playing .dot[aria-current="true"] span::after { transform: scaleX(0); animation: fill var(--dur, 7s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.icon-btn svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .slides { min-height: 760px; }
  .slide { grid-template-columns: 1fr; align-content: start; gap: 28px; }
  .slide-art { align-self: end; }
}

/* ------------------------------------------------------------ Product tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--wash); color: var(--ink); min-height: 520px; isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease;
}
.tile:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-copy { padding: clamp(28px, 3.4vw, 44px); position: relative; z-index: 2; }
.tile-copy .chip { margin-bottom: 16px; }
.tile-copy h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.tile-copy p { color: var(--ink-2); margin-top: 10px; font-size: 18px; max-width: 440px; }
.tile-copy .textlink { margin-top: 18px; }
.tile-art { margin-top: auto; display: flex; justify-content: center; align-items: flex-end; padding: 0 clamp(20px, 3vw, 40px); }
.tile.dark { background: var(--night); color: #fff; }
.tile.dark p { color: rgba(255, 255, 255, .72); }
.tile.dark .textlink { color: #6fb1ff; }
.tile--remarque { background: linear-gradient(180deg, #eaf2ff 0%, #d6e6ff 100%); }
.tile--embroidery { background: #0f3b3c; color: #fff; }
.tile--embroidery p { color: rgba(255, 255, 255, .75); }
.tile--embroidery .textlink { color: #9fe3da; }
.tile--structa { background: linear-gradient(180deg, #eceeff 0%, #dcdffe 100%); }
.tile--cartdeck { background: #16101a; color: #fff; }
.tile--cartdeck p { color: rgba(255, 255, 255, .72); }
.tile--cartdeck .textlink { color: #ffb37a; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 460px; } }

/* ------------------------------------------------------------ Generic cards/grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border-radius: var(--radius); padding: 28px; }
.section.wash .card { background: #fff; }
.section:not(.wash) .card { background: var(--wash); }
.card h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }
.card p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }
.card .glyph {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: #fff; margin-bottom: 20px; font-size: 20px; font-weight: 600;
}
.card .glyph svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------ Rail (horizontal cards) */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.rail-head .section-head { margin-bottom: 0; }
.rail-ctrls { display: flex; gap: 10px; flex-shrink: 0; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 400px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-block: 4px 8px; padding-inline: 0 var(--gutter); margin: 0; margin-inline-end: calc(50% - 50vw);
  scroll-padding: 0;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--wash); display: flex; flex-direction: column; min-height: 480px; }
.section.wash .rail-card { background: #fff; }
.rail-card .rc-art { height: 280px; display: grid; place-items: center; overflow: hidden; position: relative; }
.rail-card .rc-copy { padding: 26px 28px 30px; }
.rail-card h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.rail-card p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }
@media (max-width: 640px) { .rail { grid-auto-columns: 84%; } .rail-ctrls { display: none; } }

/* ------------------------------------------------------------ Product hero */
.phero { padding: clamp(48px, 7vw, 96px) 0 0; text-align: center; }
.phero .chip { margin-bottom: 20px; }
.phero h1 { font-size: clamp(48px, 8vw, 104px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.phero .tagline { font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.02em; margin-top: 14px; color: var(--ink); }
.phero .lead { max-width: 700px; margin: 18px auto 0; }
.phero .btn-row { justify-content: center; margin-top: 30px; }
.phero .meta-line { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.phero-stage {
  margin-top: clamp(40px, 6vw, 72px); border-radius: var(--radius-lg); overflow: hidden; position: relative;
  min-height: 420px; display: grid; place-items: center; padding: clamp(28px, 5vw, 72px) clamp(16px, 4vw, 64px) 0;
}
.phero-stage > .mock, .phero-stage > .shot { align-self: end; }

/* ------------------------------------------------------------ Highlights strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { border-top: 1px solid var(--line); padding-top: 20px; }
.stat b { display: block; font-size: clamp(34px, 4vw, 52px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.stat span { display: block; color: var(--ink-2); margin-top: 10px; font-size: 16px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------ Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(64px, 8vw, 112px); }
.split.flip .split-art { order: 2; }
.split-art { border-radius: var(--radius-lg); overflow: hidden; min-height: 400px; display: grid; place-items: center; padding: clamp(24px, 3vw, 44px); position: relative; }
.split-copy .h2 { margin-bottom: 16px; }
.split-copy p { color: var(--ink-2); font-size: 18px; }
.split-copy p + p { margin-top: 14px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 30px; color: var(--ink); font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/14px no-repeat;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip .split-art { order: 0; } .split-art { min-height: 300px; } }

/* ------------------------------------------------------------ Dark band */
.band { background: var(--night); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 88px); position: relative; overflow: hidden; }
.band .lead, .band p { color: rgba(255, 255, 255, .72); }
.section .band .card { background: rgba(255, 255, 255, .07); }
.band .card h3 { color: #fff; }
.band .card p { color: rgba(255, 255, 255, .66); }
.band .card .glyph { background: #fff; color: var(--night); }

/* ------------------------------------------------------------ Specs */
.specs { border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.spec-row dt { font-weight: 600; }
.spec-row dd { margin: 0; color: var(--ink-2); }
.spec-row dd ul { margin: 0; padding-inline-start: 18px; }
.spec-row dd li + li { margin-top: 4px; }
@media (max-width: 720px) { .spec-row { grid-template-columns: 1fr; gap: 6px; } }

/* ------------------------------------------------------------ Compare cards */
.compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.compare-card { background: var(--wash); border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; }
.compare-card .cc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.compare-card .cc-head img { width: 52px; height: 52px; border-radius: 12px; }
.compare-card h3 { font-size: 26px; letter-spacing: -0.02em; }
.compare-card .sub { color: var(--ink-2); font-size: 15px; }
.compare-card ul { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.compare-card li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ FAQ */
.faq { max-width: 920px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding-block: 24px; padding-inline: 0 48px; font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; inset-inline-end: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .answer { padding: 0 0 26px; padding-inline-end: 48px; color: var(--ink-2); }
.faq .answer p + p { margin-top: 12px; }

/* ------------------------------------------------------------ Final CTA */
.cta-final { text-align: center; }
.cta-final img.app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 24px; box-shadow: var(--shadow); object-fit: cover; }
.cta-final .btn-row { justify-content: center; margin-top: 28px; }

/* ------------------------------------------------------------ More products */
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.more a { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--wash); color: var(--ink); transition: background .15s; }
.more a:hover { text-decoration: none; background: var(--wash-2); }
.more img { width: 56px; height: 56px; border-radius: 13px; object-fit: cover; flex-shrink: 0; }
.more b { display: block; font-size: 18px; letter-spacing: -0.01em; }
.more span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
@media (max-width: 860px) { .more { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Footnotes */
.footnotes { padding: 40px 0 0; }
.footnotes ol { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; }

/* ------------------------------------------------------------ Footer */
.footer { background: var(--wash); margin-top: clamp(64px, 8vw, 104px); padding: 64px 0 40px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--ink-2); line-height: 1.6; }
.footer h4 { font-size: 14px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--ink-2); }
.footer ul a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; color: var(--ink-3); }
.footer-bottom a { color: var(--ink-3); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide { transition: none; }
  .tile, .btn { transition: none; }
}

/* ============================================================ Product mock-ups
   Pure-CSS stand-ins for app screenshots, drawn to look like real macOS windows. */
.mock {
  width: 100%; max-width: 760px; background: #fff; border-radius: 14px 14px 0 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .08);
  overflow: hidden; font-family: var(--font); text-align: left; color: var(--ink);
}
.mock.floating { border-radius: 14px; }
.mock-bar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #f3f4f6; border-bottom: 1px solid #e3e6ea; position: relative; }
.mock-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar em { position: absolute; left: 0; right: 0; text-align: center; font-style: normal; font-size: 12.5px; font-weight: 600; color: #5d6a75; pointer-events: none; }
.mock.dark { background: #16171c; color: #e8e8ee; }
.mock.dark .mock-bar { background: #202128; border-bottom-color: #2b2c35; }
.mock.dark .mock-bar em { color: #9a9cab; }

/* Remarque editor */
.rq-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; }
.rq-src { background: #fbfbfc; border-right: 1px solid #eceef1; padding: 22px 22px; font: 13px/1.75 var(--mono); color: #3b4751; white-space: pre-wrap; }
.rq-src .h { color: #0064e0; font-weight: 700; }
.rq-src .b { color: #c2185b; }
.rq-src .m { color: #7b3fe4; }
.rq-src .q { color: #0a7d3e; }
.rq-src .t { color: #8a5a00; }
.rq-prev { padding: 22px 26px; font-size: 14px; line-height: 1.6; }
.rq-prev h4 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 10px; font-weight: 700; }
.rq-prev .math { font-family: "Times New Roman", Times, serif; font-style: italic; font-size: 15px; }
.rq-prev .callout { margin: 14px 0; border-left: 4px solid #0064e0; background: #eef5ff; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.rq-prev .callout b { color: #0064e0; display: block; font-size: 12px; margin-bottom: 2px; }
.rq-prev mark { background: #fff1a8; padding: 0 2px; border-radius: 3px; }
.rq-prev table { border-collapse: collapse; font-size: 13px; width: 100%; margin-top: 6px; }
.rq-prev th, .rq-prev td { border-bottom: 1px solid #e6e9ed; padding: 6px 8px; text-align: left; }
.rq-prev td:last-child, .rq-prev th:last-child { text-align: right; }
.rq-flow { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 11px; font-weight: 600; }
.rq-flow span { border: 1.5px solid #0064e0; color: #0064e0; border-radius: 6px; padding: 4px 8px; background: #fff; }
.rq-flow i { width: 18px; height: 1.5px; background: #0064e0; position: relative; }
.rq-flow i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left: 5px solid #0064e0; border-right: 0; }
@media (max-width: 640px) { .rq-body { grid-template-columns: 1fr; } .rq-src { border-right: 0; border-bottom: 1px solid #eceef1; } }

/* Structa */
.st-body { display: grid; grid-template-columns: 180px 1fr; min-height: 360px; }
.st-side { background: #f6f7f9; border-right: 1px solid #e6e8ec; padding: 14px 10px; font-size: 13px; }
.st-side h5 { margin: 6px 8px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #8a95a0; }
.st-side div { padding: 6px 8px; border-radius: 7px; display: flex; align-items: center; gap: 8px; color: #33414b; }
.st-side div::before { content: ""; width: 14px; height: 11px; border-radius: 3px; border: 1.5px solid #8a95a0; }
.st-side div.on { background: #4b52e8; color: #fff; }
.st-side div.on::before { border-color: #fff; }
.st-main { padding: 18px 20px; }
.st-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-kpi { border: 1px solid #e6e8ec; border-radius: 10px; padding: 10px 12px; }
.st-kpi small { display: block; font-size: 11px; color: #8a95a0; font-weight: 600; }
.st-kpi b { font-size: 22px; letter-spacing: -0.02em; }
.st-chart { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 14px; padding: 0 2px; border-bottom: 1px solid #e6e8ec; }
.st-chart i { flex: 1; background: linear-gradient(#6a74ff, #4b52e8); border-radius: 4px 4px 0 0; }
.st-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 12.5px; }
.st-table th { text-align: left; color: #8a95a0; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px; border-bottom: 1px solid #e6e8ec; }
.st-table td { padding: 7px 8px; border-bottom: 1px solid #f0f1f4; }
.st-pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #e9ebff; color: #3c43c9; }
.st-pill.g { background: #e3f5ea; color: #0a7d3e; }
.st-pill.a { background: #fdf1d8; color: #8a5a00; }
@media (max-width: 640px) { .st-body { grid-template-columns: 1fr; } .st-side { display: none; } }

/* Structa formula / script snippets */
.code-card { background: #0f1226; color: #d7dbff; border-radius: 16px; padding: 22px 24px; font: 13.5px/1.8 var(--mono); width: 100%; max-width: 520px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.code-card .k { color: #8f9bff; } .code-card .s { color: #7ee2a8; } .code-card .n { color: #ffb37a; } .code-card .c { color: #6b7194; }

/* CartDeck */
.cd-body { padding: 16px; display: grid; grid-template-columns: 1fr 64px; gap: 14px; }
.cd-banks { grid-column: 1 / -1; display: flex; gap: 6px; font-size: 11px; font-weight: 700; }
.cd-banks span { padding: 5px 10px; border-radius: 6px; background: #24252d; color: #9a9cab; }
.cd-banks span.on { background: #f28a2e; color: #16171c; }
.cd-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.pad {
  aspect-ratio: 1.25; border-radius: 9px; padding: 7px; display: flex; flex-direction: column; justify-content: space-between;
  font-size: 10.5px; font-weight: 700; color: rgba(255, 255, 255, .95); line-height: 1.15; position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.pad small { font-weight: 600; opacity: .7; font-size: 9.5px; font-variant-numeric: tabular-nums; }
.pad.live { box-shadow: inset 0 0 0 2px #fff, 0 0 18px rgba(255, 255, 255, .35); }
.pad.live::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 62%; background: #fff; }
.p1 { background: #c2376b; } .p2 { background: #e0632e; } .p3 { background: #d99a1e; } .p4 { background: #3a9d5d; }
.p5 { background: #2d7fd3; } .p6 { background: #6a4fd6; } .p7 { background: #2b2c35; color: #9a9cab; }
.cd-vu { display: flex; gap: 6px; justify-content: center; }
.cd-vu i { width: 14px; border-radius: 4px; background: linear-gradient(to top, #3a9d5d 0 60%, #d99a1e 60% 82%, #c2376b 82%); position: relative; overflow: hidden; }
.cd-vu i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; background: #24252d; height: var(--off, 30%); transition: height .12s; }
.ipad {
  width: 100%; max-width: 560px; background: #0c0c0f; border-radius: 30px; padding: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 2px #2a2a31;
}
.ipad .screen { background: #16171c; border-radius: 16px; padding: 12px; }
.ipad .cd-grid { grid-template-columns: repeat(4, 1fr); }

/* Embroidery */
.shot { width: 100%; height: auto; max-width: 1000px; border-radius: 14px 14px 0 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .08); background: #fff; }
.shot.floating { border-radius: 14px; }
.hoop-art { width: min(440px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.hoop-art img { width: 100%; height: 100%; object-fit: cover; }
.formats { display: flex; flex-wrap: wrap; gap: 10px; }
.formats span { font: 600 15px/1 var(--mono); padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.stitch-line { width: 100%; height: auto; }

/* App icon art for tiles/slides */
.icon-art { width: min(300px, 70%); height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); object-fit: cover; }

@media (max-width: 640px) {
  .phero-stage { min-height: 0; }
  .mock .cd-grid { grid-template-columns: repeat(4, 1fr); }
  .mock .cd-banks span:nth-child(n+4):not(:last-child) { display: none; }
  .pad { font-size: 9.5px; padding: 5px; }
  .brand { font-size: 15px; }
}

/* ------------------------------------------------------------ Back to top */
.to-top {
  position: fixed; inset-inline-end: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 70;
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 14px/1 var(--font); color: #fff; background: rgba(28, 43, 51, .88);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s, background .15s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease, visibility 0s, background .15s; }
.to-top:hover { background: var(--ink); }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .to-top { width: 48px; padding: 0; justify-content: center; } .to-top span { display: none; } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top.show { transform: none; } }

/* ------------------------------------------------------------ Language menu */
.lang-menu { position: relative; margin-inline-start: 4px; }
.lang-menu summary {
  list-style: none; display: flex; align-items: center; gap: 7px; cursor: pointer;
  height: 36px; padding: 0 10px 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); background: #fff; transition: border-color .15s, background .15s; user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--ink-3); background: var(--wash); }
.lang-menu summary img, .lang-menu li img { width: 20px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); object-fit: cover; }
.lang-menu .caret { width: 12px; height: 12px; transition: transform .2s; }
.lang-menu[open] .caret { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 80; margin: 0; padding: 8px; list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px;
  background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(28, 43, 51, .18), 0 0 0 1px rgba(28, 43, 51, .06);
}
.lang-menu li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; white-space: nowrap; }
.lang-menu li a:hover { background: var(--wash); text-decoration: none; }
.lang-menu li a[aria-current="true"] { background: var(--wash); font-weight: 600; }
@media (max-width: 1100px) { .lang-menu { margin-inline-start: auto; } }
@media (max-width: 480px) {
  .lang-menu ul { grid-template-columns: 1fr 1fr; position: fixed; top: 64px; inset-inline: 12px; }
  .lang-menu li a { font-size: 14px; padding: 9px 10px; }
}

/* ------------------------------------------------------------ Right-to-left & scripts */
[dir="rtl"] { --start: right; }
[dir="rtl"] .icon-btn svg, [dir="rtl"] .textlink::after { transform: scaleX(-1); }
[dir="rtl"] .textlink:hover::after { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .mock, [dir="rtl"] .code-card, [dir="rtl"] .formats, [dir="rtl"] .imports,
[dir="rtl"] .rc-code, [dir="rtl"] .log, [dir="rtl"] .math-card, [dir="rtl"] .syntax code { direction: ltr; }
[dir="rtl"] .mock.dark, [dir="rtl"] .st-body { direction: rtl; }
:lang(ar), :lang(fa) { --font: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif; }
:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif; }
:lang(ko) { --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
:lang(ar) body, :lang(fa) body, :lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(fa) h1, :lang(fa) h2, :lang(fa) h3,
:lang(ar) .display, :lang(fa) .display, :lang(ar) .intro-title, :lang(fa) .intro-title,
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(ja) h1, :lang(ja) h2, :lang(ko) h1, :lang(ko) h2,
:lang(zh-Hans) .intro-title, :lang(ja) .intro-title, :lang(ko) .intro-title { letter-spacing: 0; }
:lang(ar) h1, :lang(ar) h2, :lang(fa) h1, :lang(fa) h2, :lang(ar) .intro-title, :lang(fa) .intro-title { line-height: 1.3; }
:lang(ar) .lead, :lang(fa) .lead, :lang(ar) p, :lang(fa) p { line-height: 1.8; }
:lang(fa) .stat b, :lang(ar) .stat b, :lang(fa) .value-row, :lang(ar) .value-row { letter-spacing: 0; }

:lang(hi) { --font: -apple-system, BlinkMacSystemFont, "Kohinoor Devanagari", "Devanagari Sangam MN", "Nirmala UI", "Noto Sans Devanagari", sans-serif; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(hi) .display, :lang(hi) .intro-title, :lang(hi) .stat b { letter-spacing: 0; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) .intro-title { line-height: 1.25; }
:lang(hi) p, :lang(hi) .lead { line-height: 1.75; }

/* ------------------------------------------------------------ Privacy statement */
.zeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.zero { background: var(--wash); border-radius: var(--radius-lg); padding: 28px; }
.zero b { display: block; font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--blue); }
.zero span { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin-top: 10px; }
.zero p { color: var(--ink-2); font-size: 16px; margin-top: 6px; }
@media (max-width: 900px) { .zeros { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .zeros { grid-template-columns: 1fr; } }
.doc { max-width: 780px; margin: 0 auto; font-size: 18px; line-height: 1.65; }
.doc h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; margin: 56px 0 14px; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 24px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 14px; }
.doc ul { margin: 14px 0; padding-inline-start: 22px; display: grid; gap: 10px; }
.doc li b { color: var(--ink); }
.doc-table { margin: 20px 0; border-top: 1px solid var(--line); }
.dt-row { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 17px; }
.dt-app { font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .dt-row { grid-template-columns: 1fr; gap: 4px; } }
:lang(ar) .zero b, :lang(fa) .zero b, :lang(hi) .zero b { letter-spacing: 0; }

/* Collapse the top menu whenever its items don't fit (set by site.js; languages vary in length) */
.gnav.collapsed .gnav-links, .gnav.collapsed .gnav-cta { display: none; }
.gnav.collapsed .menu-btn { display: inline-grid; place-items: center; }
.gnav.collapsed .lang-menu { margin-inline-start: auto; }
.gnav.collapsed.open .gnav-links {
  display: flex; flex-direction: column; position: absolute; top: 64px; inset-inline: 0;
  background: #fff; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); gap: 2px;
}
.gnav.collapsed.open .gnav-links a { font-size: 20px; padding: 12px 8px; border-radius: 12px; }
.gnav.tight .gnav-inner { gap: 14px; }
.gnav.tight .gnav-links { gap: 0; }
.gnav.tight .gnav-links a { padding: 8px 10px; }
.gnav-inner > *, .gnav-links > li { flex-shrink: 0; }

/* ------------------------------------------------------------ Sub-menu transitions
   Driven by site.js so they work in every browser (and from local files): the product
   sub-menu rolls down from beneath the main menu, rolls over the previous product's
   sub-menu, or rolls back up before leaving for a page without one. */
.lnav.sub-pre { transform: translateY(-100%); clip-path: inset(100% 0 0 0); }
.lnav.sub-enter { animation: subnav-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.lnav.sub-leave { animation: subnav-out .34s cubic-bezier(.4, 0, .8, .4) both; }
.lnav-ghost { position: absolute; inset-inline: 0; z-index: 49; pointer-events: none; }
.lnav-ghost .lnav { position: static; animation: none; }
@keyframes subnav-in {
  from { transform: translateY(-100%); clip-path: inset(100% 0 0 0); }
  to   { transform: none; clip-path: inset(0 0 0 0); }
}
@keyframes subnav-out {
  from { transform: none; clip-path: inset(0 0 0 0); }
  to   { transform: translateY(-100%); clip-path: inset(100% 0 0 0); }
}
