:root {
  --bg: #071018;
  --bg-2: #0b151e;
  --panel: #0d1822;
  --panel-2: #101d27;
  --panel-3: #12212c;
  --text: #f1f5f8;
  --muted: #9da9b5;
  --muted-2: #6f7d8b;
  --line: #253643;
  --line-soft: rgba(116, 143, 161, 0.16);
  --accent: #ff684b;
  --accent-2: #ff805f;
  --accent-soft: rgba(255, 104, 75, 0.12);
  --cyan: #35c8f2;
  --violet: #c26cff;
  --danger: #ff9a80;
  --container: 1440px;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --header-h: 68px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 3%, rgba(28, 56, 72, 0.28), transparent 28%),
    radial-gradient(circle at 12% 24%, rgba(255, 104, 75, 0.055), transparent 23%),
    linear-gradient(180deg, #081119 0%, #071018 58%, #081119 100%);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("assets/images/textures/texture-noise-dark.webp");
  mix-blend-mode: screen;
}
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 104, 75, 0.055), transparent 38%);
  animation: atmosphere 18s ease-in-out infinite alternate;
}
@keyframes atmosphere {
  from {
    transform: translate3d(-4%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(5%, 3%, 0) scale(1.08);
  }
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  color: inherit;
}
::selection {
  background: rgba(255, 104, 75, 0.28);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 2000;
  background: #fff;
  color: #111;
  padding: 8px 12px;
}
.shell {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}
.eyebrow {
  color: var(--accent-2);
  font:
    750 0.74rem/1.3 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.045em;
  line-height: 1.05;
}
h1 {
  font-size: clamp(3rem, 6.4vw, 6.25rem);
  margin-bottom: 22px;
  font-weight: 800;
}
h2 {
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  margin-bottom: 18px;
  font-weight: 760;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.lead {
  font-size: clamp(1.05rem, 1.55vw, 1.36rem);
  color: #b4bec8;
  max-width: 760px;
  line-height: 1.55;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.section {
  position: relative;
  padding: 86px 0;
  border-top: 1px solid var(--line-soft);
}
.section-tight {
  position: relative;
  padding: 58px 0;
  border-top: 1px solid var(--line-soft);
}
.section-label {
  font:
    750 0.75rem/1.2 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  color: var(--accent);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.45fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 30px;
}
.section-heading-row p {
  margin: 0;
  color: var(--muted);
}

/* Header */
.site-header {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 16, 24, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(111, 139, 157, 0.17);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.22rem;
  font-weight: 760;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.brand img {
  width: 27px;
  height: 27px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a,
.footer-links a {
  font-size: 0.86rem;
  color: #d3dbe1;
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.footer-links a:hover {
  color: var(--accent-2);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  color: #d8e0e6;
  transition: 0.18s ease;
}
.icon-btn:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--accent);
}
.search-box {
  height: 36px;
  width: 218px;
  border: 1px solid var(--line);
  background: rgba(12, 23, 32, 0.86);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 7px;
}
.search-box svg {
  width: 16px;
  color: #82909c;
  flex: none;
}
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #dce4ea;
  font-size: 0.78rem;
}
.search-box input::placeholder {
  color: #667582;
}
.search-shortcut {
  color: #71808d;
  border-left: 1px solid var(--line);
  padding-left: 8px;
  font:
    600 0.68rem ui-monospace,
    monospace;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 7px;
}
.ui-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
}
.ui-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Shared technical background */
.tech-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(69, 99, 117, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 99, 117, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.35), transparent);
}
.tech-field::before,
.tech-field::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--accent);
  box-shadow: 0 0 14px 4px rgba(255, 104, 75, 0.35);
  animation: nodePulse 3.8s ease-in-out infinite;
}
.tech-field::before {
  left: 35%;
  top: 17%;
}
.tech-field::after {
  right: 14%;
  bottom: 26%;
  animation-delay: -1.7s;
}
@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Hero */
.home-hero {
  position: relative;
  min-height: 565px;
  display: flex;
  align-items: center;
  padding: 54px 0 48px;
  overflow: hidden;
}
.home-hero::after {
  content: "";
  position: absolute;
  left: 34%;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px rgba(255, 104, 75, 0.35);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(650px, 1.38fr);
  gap: 42px;
  align-items: center;
  z-index: 1;
}
.hero-copy {
  padding-left: 4px;
}
.hero-copy h1 {
  font-size: clamp(3.4rem, 5.7vw, 5.9rem);
  max-width: 620px;
}
.hero-copy .lead {
  max-width: 570px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 760;
  font-size: 0.89rem;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  transform: translateX(-135%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transition: transform 0.55s ease;
}
.btn:hover::after {
  transform: translateX(135%) skewX(-20deg);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  border-color: #ff7658;
  background: linear-gradient(135deg, #ff7859, #ff5f43);
  color: #081018;
  box-shadow: 0 10px 28px rgba(255, 104, 75, 0.16);
}
.btn-primary:hover {
  box-shadow: 0 14px 35px rgba(255, 104, 75, 0.25);
}
.btn-secondary {
  background: rgba(18, 31, 42, 0.72);
  color: #edf3f7;
}
.btn-small {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 0.78rem;
}
.microcopy {
  font-size: 0.78rem;
  color: #7f8c98;
  max-width: 600px;
}

/* Code workbench */
.workbench {
  position: relative;
  min-height: 445px;
  border: 1px solid #354956;
  background: linear-gradient(180deg, rgba(13, 24, 33, 0.98), rgba(9, 18, 26, 0.98));
  box-shadow:
    0 22px 68px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.015) inset;
  display: grid;
  grid-template-columns: 170px minmax(280px, 1fr) 190px;
  overflow: hidden;
  border-radius: 7px;
  animation: workbenchFloat 8s ease-in-out infinite;
}
.workbench::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 104, 75, 0.025) 50%,
    transparent 100%
  );
}
@keyframes workbenchFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.wb-files,
.wb-code,
.wb-path {
  min-width: 0;
}
.wb-files {
  border-right: 1px solid var(--line);
  padding-bottom: 18px;
}
.wb-code {
  border-right: 1px solid var(--line);
}
.wb-tabbar {
  height: 45px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 13px;
  font-size: 0.73rem;
  color: #b7c1ca;
  background: rgba(255, 255, 255, 0.016);
}
.wb-tabbar .dots {
  display: flex;
  gap: 6px;
  margin-right: 12px;
}
.wb-tabbar .dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4f5c66;
}
.wb-tabbar .dots i:first-child {
  background: #ff694b;
}
.wb-tabbar .dots i:nth-child(2) {
  background: #e5a23f;
}
.wb-tabbar .dots i:nth-child(3) {
  background: #4dbb73;
}
.file-list {
  padding: 13px 12px 0;
  font:
    500 0.68rem/1.85 ui-monospace,
    SFMono-Regular,
    monospace;
  color: #8795a2;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.file-row.active {
  color: #e7edf2;
}
.file-dot {
  width: 8px;
  height: 6px;
  border: 1px solid #6d7b86;
  border-radius: 1px;
}
.code-lines {
  padding: 15px 14px;
  font:
    500 0.68rem/1.78 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  color: #c1cad2;
  overflow: hidden;
}
.code-lines .line {
  white-space: nowrap;
}
.ln {
  display: inline-block;
  width: 28px;
  color: #51606d;
}
.syn-key {
  color: #ff6681;
}
.syn-type {
  color: #48c8ef;
}
.syn-string {
  color: #e6cb69;
}
.syn-fn {
  color: #6ea8ff;
}
.syn-comment {
  color: #56765e;
}
.wb-path {
  padding: 16px 12px;
}
.wb-path h4 {
  margin: 0 0 13px;
  font-size: 0.85rem;
}
.path-list {
  position: relative;
  padding-left: 16px;
}
.path-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  bottom: 10px;
  width: 1px;
  background: #72808b;
}
.path-step {
  position: relative;
  padding: 0 0 18px 13px;
  font-size: 0.69rem;
  color: #8e9aa5;
}
.path-step::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid #aab5be;
  border-radius: 50%;
  background: #101b24;
}
.path-step strong {
  display: block;
  color: #d8e0e6;
  font-size: 0.72rem;
}
.path-step.active strong {
  color: var(--accent);
}
.path-step.active::before {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 104, 75, 0.08);
}
.path-quote {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  color: #84909b;
  font:
    italic 0.67rem/1.5 Georgia,
    serif;
  text-align: right;
}

/* Mission */
.mission-grid {
  display: grid;
  grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1fr) 170px;
  gap: 50px;
  align-items: start;
}
.mission-title h2 {
  font-size: clamp(2rem, 3vw, 3.05rem);
}
.mission-copy {
  border-left: 1px solid var(--line);
  padding-left: 38px;
  color: #b5bfc7;
}
.mission-copy p:last-child {
  margin-bottom: 0;
}
.comment-stack {
  border-left: 1px solid var(--line);
  padding-left: 26px;
  color: #4d5e6a;
  font:
    600 0.8rem/1.7 ui-monospace,
    monospace;
}

/* Catalogue */
.catalog-section {
  background: linear-gradient(180deg, rgba(7, 16, 24, 0.25), rgba(8, 17, 25, 0.7));
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  perspective: 900px;
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  transform: translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.18s ease;
}
.product-card:hover,
.product-card:focus-visible {
  --lift: -7px;
  outline: none;
}
.cover-frame {
  position: relative;
  aspect-ratio: 3/4;
  border: 1px solid #3b4a55;
  background: #0d1821;
  overflow: hidden;
  box-shadow: 0 15px 36px rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.cover-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.07) 48%,
    transparent 62%
  );
  transform: translateX(-110%);
  transition: transform 0.7s ease;
}
.product-card:hover .cover-frame::after {
  transform: translateX(110%);
}
.product-card:hover .cover-frame {
  border-color: rgba(255, 104, 75, 0.5);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.32),
    0 0 18px rgba(255, 104, 75, 0.08);
}
.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: coverFloat 7s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.55s);
}
.product-card:hover .cover-frame img {
  transform: scale(1.025) translateY(-2px);
}
@keyframes coverFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -2px;
  }
}
.product-card-body {
  padding: 12px 2px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card h3 {
  font-size: 0.96rem;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}
.product-tagline {
  font-size: 0.72rem;
  line-height: 1.45;
  color: #8795a1;
  min-height: 3.15em;
  margin-bottom: 9px;
}
.product-price {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 800;
  margin-top: auto;
  margin-bottom: 8px;
}
.product-card .btn {
  width: 100%;
  min-height: 35px;
  font-size: 0.72rem;
  padding: 0 8px;
  background: transparent;
  border-color: #ff6749;
  color: #eaf0f4;
}
.product-card:hover .btn {
  background: rgba(255, 104, 75, 0.07);
}
.catalog-loading {
  grid-column: 1/-1;
  color: var(--muted);
  padding: 30px 0;
}

/* Benefit / FAQ */
.benefit-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) repeat(3, minmax(0, 1fr));
  gap: 0;
}
.benefit-intro {
  padding-right: 50px;
}
.benefit-item {
  border-left: 1px solid var(--line);
  padding: 4px 34px;
}
.benefit-icon,
.topic-icon,
.module-icon {
  width: 38px;
  height: 38px;
  color: var(--accent);
  margin-bottom: 18px;
}
.benefit-item p {
  color: #8f9ca8;
  font-size: 0.87rem;
  margin-bottom: 0;
}
.faq-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 22px;
}
.faq-head h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}
.support-link {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  background: rgba(13, 24, 33, 0.7);
  border-radius: 5px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 18px;
  font-size: 0.82rem;
  font-weight: 730;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.05rem;
  color: #8fa0ad;
  transition:
    transform 0.2s ease,
    color 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-item p {
  padding: 0 18px 17px;
  color: #8996a1;
  font-size: 0.76rem;
  line-height: 1.55;
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0 42px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 0.75fr 1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.footer-brand .brand {
  font-size: 1.1rem;
}
.footer-tag {
  margin: 8px 0 0 36px;
  color: #8f9ba6;
  font-size: 0.74rem;
  line-height: 1.45;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-legal {
  border-left: 1px solid var(--line);
  padding-left: 32px;
  color: #788692;
  font-size: 0.7rem;
}
.footer-legal p {
  margin: 0 0 6px;
}

/* Generic page hero */
.page-hero {
  position: relative;
  min-height: 410px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(520px, 1.28fr);
  gap: 54px;
  align-items: center;
}
.page-hero h1 {
  font-size: clamp(3.25rem, 5.6vw, 5.5rem);
}
.page-hero .lead {
  max-width: 620px;
}
.page-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.page-hero .workbench {
  min-height: 330px;
  grid-template-columns: 150px 1fr 170px;
}
.page-hero .file-list {
  font-size: 0.61rem;
}
.page-hero .code-lines {
  font-size: 0.61rem;
}
.page-hero .wb-path {
  font-size: 0.61rem;
}

/* About */
.about-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.editorial-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 28, 38, 0.86), rgba(10, 20, 28, 0.94));
  padding: 34px;
  border-radius: 6px;
}
.editorial-panel p {
  color: #a9b4bd;
}
.editorial-panel .benefit-icon {
  margin-bottom: 24px;
}
.principles-heading {
  display: grid;
  grid-template-columns: 0.75fr 1fr 160px;
  gap: 38px;
  align-items: center;
  margin-bottom: 26px;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.principle {
  border: 1px solid var(--line);
  padding: 28px;
  background: rgba(11, 22, 30, 0.72);
  border-radius: 5px;
}
.principle h3 {
  font-size: 1.05rem;
}
.principle p {
  font-size: 0.82rem;
  color: #94a1ac;
}
.about-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 245px;
  padding: 38px;
  background: #0b151e;
  display: grid;
  grid-template-columns: 1.2fr 0.5fr;
  gap: 30px;
  align-items: center;
}
.about-cta .cta-geometry {
  position: absolute;
  right: 0;
  top: 0;
  width: 64%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  pointer-events: none;
}
.about-cta-copy,
.about-cta-actions {
  position: relative;
  z-index: 1;
}
.about-cta-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

/* Contact */
.contact-hero-visual {
  position: relative;
  min-height: 310px;
}
.contact-bubble {
  position: absolute;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}
.contact-bubble.back {
  width: 58%;
  left: 13%;
  top: 18%;
  animation: bubbleA 7s ease-in-out infinite;
}
.contact-bubble.front {
  width: 48%;
  left: 43%;
  top: 37%;
  animation: bubbleB 6.2s ease-in-out infinite;
}
.contact-quote {
  position: absolute;
  right: 2%;
  top: 20%;
  width: 210px;
  color: #82909b;
  font:
    italic 0.8rem/1.55 Georgia,
    serif;
  text-align: right;
}
.contact-code {
  position: absolute;
  right: 4%;
  bottom: 12%;
  color: #536675;
  font:
    0.75rem/1.7 ui-monospace,
    monospace;
}
@keyframes bubbleA {
  0%,
  100% {
    transform: translate(0, 0) rotate(-1deg);
  }
  50% {
    transform: translate(-4px, -7px) rotate(1deg);
  }
}
@keyframes bubbleB {
  0%,
  100% {
    transform: translate(0, 0) rotate(1deg);
  }
  50% {
    transform: translate(5px, 6px) rotate(-1deg);
  }
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
}
.contact-card {
  border: 1px solid var(--line);
  background: rgba(12, 24, 33, 0.78);
  padding: 30px;
  border-radius: 6px;
}
.contact-card p {
  color: #a5b0ba;
}
.contact-direct {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 770;
  text-decoration: none;
  padding: 22px 0 10px;
}
.notice {
  border: 1px solid #304654;
  background: rgba(18, 33, 43, 0.7);
  padding: 18px;
  border-radius: 5px;
  color: #9ba8b2;
  font-size: 0.8rem;
}
.form-grid {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 0.75rem;
  color: #c7d0d7;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: #0b151e;
  border: 1px solid #314350;
  color: #edf2f6;
  border-radius: 4px;
  padding: 12px 13px;
  outline: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 104, 75, 0.08);
}
.field textarea {
  min-height: 132px;
  resize: vertical;
}
.form-note {
  color: #748390;
  font-size: 0.72rem;
}
.support-topics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.support-topic {
  border: 1px solid var(--line);
  padding: 22px;
  background: rgba(12, 24, 33, 0.66);
  border-radius: 5px;
}
.support-topic h3 {
  font-size: 0.95rem;
}
.support-topic p {
  font-size: 0.77rem;
  color: #85939f;
  margin: 0;
}

/* Product page */
.product-page {
  padding-top: 28px;
}
.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #92a0ab;
  text-decoration: none;
  font-size: 0.78rem;
  margin: 8px 0 22px;
}
.product-hero-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 305px;
  gap: 42px;
  align-items: start;
}
.product-cover-stage {
  margin: 0;
  position: sticky;
  top: 96px;
}
.product-cover-stage img {
  width: 100%;
  border: 1px solid rgba(255, 104, 75, 0.5);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(255, 104, 75, 0.08);
  animation: coverHeroFloat 7s ease-in-out infinite;
}
@keyframes coverHeroFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0);
  }
  50% {
    transform: translateY(-5px) rotateX(1deg);
  }
}
.product-intro {
  padding-top: 28px;
}
.product-intro h1 {
  font-size: clamp(3rem, 5vw, 5.6rem);
}
.product-copy {
  color: #aeb8c1;
  font-size: 0.98rem;
  max-width: 700px;
}
.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.purchase-summary {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0e1a23, #0a141c);
  padding: 22px;
  position: sticky;
  top: 96px;
}
.meta-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.meta-row:last-of-type {
  border-bottom: 0;
}
.meta-row .ui-icon {
  color: #adbac4;
}
.meta-label {
  color: #71818d;
  font-size: 0.7rem;
}
.meta-value {
  font-size: 0.83rem;
  color: #d9e1e7;
}
.purchase-summary .price-big {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
}
.purchase-summary .btn {
  width: 100%;
  margin-top: 16px;
}
.secure-note {
  font-size: 0.67rem;
  color: #71818d;
  text-align: center;
  margin: 10px 0 0;
}
.module-section-head {
  display: grid;
  grid-template-columns: 0.78fr 1fr 160px;
  gap: 38px;
  align-items: start;
  margin-bottom: 24px;
}
.module-section-head h2 {
  font-size: clamp(2.1rem, 3.2vw, 3.5rem);
}
.module-section-head p {
  color: #9aa7b2;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.module-card {
  display: grid;
  grid-template-columns: 56px 46px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  background: rgba(12, 24, 33, 0.67);
  padding: 18px;
  min-height: 132px;
  border-radius: 5px;
}
.module-no {
  color: var(--accent);
  font:
    700 0.95rem ui-monospace,
    monospace;
}
.module-icon {
  width: 32px;
  height: 32px;
  margin: 0;
  color: var(--accent);
}
.module-card:nth-child(3n + 2) .module-icon {
  color: var(--violet);
}
.module-card:nth-child(3n + 3) .module-icon {
  color: var(--cyan);
}
.module-card h3 {
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 1px 0 0;
  letter-spacing: -0.02em;
}
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 54px;
}
.audience-panel {
  border-left: 1px solid var(--line);
  padding-left: 34px;
}
.audience-list {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}
.audience-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: #929fab;
  font-size: 0.8rem;
}
.audience-item .ui-icon {
  width: 18px;
  height: 18px;
  color: #8ea0ae;
  flex: none;
}
.usage-icons {
  display: flex;
  gap: 30px;
  margin-top: 24px;
}
.usage-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 0.72rem;
  color: #93a0ab;
}
.usage-item .ui-icon {
  color: var(--accent);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.related-card {
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(12, 24, 33, 0.7);
  padding: 10px;
  border-radius: 4px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 104, 75, 0.55);
}
.related-card img {
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 8px;
}
.related-card h3 {
  font-size: 0.75rem;
  margin-bottom: 4px;
}
.related-card .related-price {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
}

/* Loading */
.loading-main {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  padding: 78px 0 30px;
}
.loading-center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
  position: relative;
}
.handoff-ring {
  width: 110px;
  height: 110px;
  margin: 0 auto 28px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(var(--accent) var(--progress, 32%), #2a3540 0);
  animation: ringSpin 2.6s linear infinite;
}
.handoff-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--bg);
}
.handoff-ring::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  top: 3px;
  left: 50%;
  box-shadow: 0 0 18px 4px rgba(255, 104, 75, 0.35);
}
@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}
.loading-center h1 {
  font-size: clamp(3.2rem, 6vw, 5.8rem);
}
.loading-center .lead {
  margin-inline: auto;
}
.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 720px;
  margin: 38px auto 0;
}
.checkout-step {
  position: relative;
  padding-top: 34px;
  color: #7e8b97;
  font-size: 0.78rem;
}
.checkout-step::before {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(50% - 9px);
  width: 16px;
  height: 16px;
  border: 2px solid #788691;
  border-radius: 50%;
  background: var(--bg);
  z-index: 2;
}
.checkout-step::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #33434f;
}
.checkout-step:last-child::after {
  display: none;
}
.checkout-step.done,
.checkout-step.active {
  color: #e1e7eb;
}
.checkout-step.done::before {
  background: var(--accent);
  border-color: var(--accent);
}
.checkout-step.done::after {
  background: var(--accent);
}
.checkout-step.active::before {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 104, 75, 0.08);
}
.checkout-step strong {
  display: block;
  font-size: 0.9rem;
  color: inherit;
}
.loading-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.loading-panel {
  border: 1px solid var(--line);
  background: rgba(12, 24, 33, 0.75);
  padding: 28px;
  border-radius: 5px;
}
.order-summary {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: center;
}
.order-summary img {
  width: 96px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--line);
}
.order-summary h3 {
  font-size: 1.05rem;
}
.order-summary .price-big {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 800;
}
.summary-table {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: #8997a2;
}
.summary-row span:last-child {
  color: #c8d0d6;
  text-align: right;
}
.next-list {
  display: grid;
  gap: 22px;
}
.next-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
}
.next-item .topic-icon {
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid var(--line);
  padding: 9px;
}
.next-item h3 {
  font-size: 0.94rem;
}
.next-item p {
  font-size: 0.78rem;
  color: #8996a1;
  margin: 0;
}
.payment-fallback {
  margin-top: 18px;
  border: 1px solid rgba(255, 104, 75, 0.48);
  background: rgba(255, 104, 75, 0.045);
  padding: 22px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  align-items: center;
}
.payment-fallback[hidden] {
  display: none;
}
.payment-fallback .topic-icon {
  margin: 0;
}
.payment-fallback h3 {
  margin-bottom: 5px;
}
.payment-fallback p {
  margin: 0;
  color: #92a0aa;
  font-size: 0.78rem;
}
.payment-fallback-actions {
  display: grid;
  gap: 8px;
}

/* Legal */
.legal-hero {
  position: relative;
  min-height: 392px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.legal-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 54px;
  align-items: center;
}
.legal-hero h1 {
  font-size: clamp(3.4rem, 5.7vw, 5.6rem);
}
.legal-editor {
  margin-left: auto;
  width: min(100%, 650px);
  border: 1px solid var(--line);
  background: #0b161f;
  box-shadow: var(--shadow);
}
.legal-editor-inner {
  display: grid;
  grid-template-columns: 150px 1fr;
}
.legal-editor .file-list {
  border-right: 1px solid var(--line);
  min-height: 225px;
}
.legal-editor .code-lines {
  min-height: 225px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.content-nav {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  padding: 20px;
  background: rgba(10, 20, 28, 0.68);
  border-radius: 5px;
}
.content-nav strong {
  display: block;
  font-size: 0.76rem;
  margin-bottom: 14px;
}
.content-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9aa7b1;
  text-decoration: none;
  padding: 9px 6px;
  border-left: 2px solid transparent;
  font-size: 0.79rem;
}
.content-nav a:hover {
  color: #e0e7ec;
  border-left-color: var(--accent);
  padding-left: 11px;
}
.legal-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 27, 37, 0.82), rgba(10, 20, 28, 0.92));
  padding: 24px 30px 16px;
  border-radius: 6px;
}
.legal-meta {
  color: #74838f;
  font-size: 0.72rem;
  text-align: right;
  margin-bottom: 5px;
}
.legal-card > p:first-of-type {
  color: #aab5be;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.legal-section {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.legal-section:last-child {
  border-bottom: 0;
}
.legal-no {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background: #152531;
  color: #b9c5ce;
  font:
    700 0.83rem ui-monospace,
    monospace;
}
.legal-section h2 {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal-section p,
.legal-section li {
  color: #9aa7b2;
  font-size: 0.82rem;
}
.legal-section ul {
  padding-left: 18px;
  margin-bottom: 0;
}
.legal-section a {
  color: var(--accent);
}
.privacy-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.privacy-mini-editor {
  width: min(100%, 470px);
  border: 1px solid #3b4b56;
  background: #0b161f;
  box-shadow: var(--shadow);
}
.privacy-mini-editor .code-lines {
  padding: 20px;
  font-size: 0.75rem;
  min-height: 210px;
}
.refund-visual {
  position: relative;
  min-height: 280px;
}
.refund-visual .refund-doc {
  position: absolute;
  width: 43%;
  left: 29%;
  top: 4%;
  filter: drop-shadow(0 24px 45px rgba(0, 0, 0, 0.3));
  animation: refundFloat 7s ease-in-out infinite;
}
.refund-visual .refund-arrow {
  position: absolute;
  width: 24%;
  left: 57%;
  top: 41%;
  filter: drop-shadow(0 0 18px rgba(255, 104, 75, 0.2));
  animation: refundArrow 6s ease-in-out infinite;
}
@keyframes refundFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-6px) rotate(1deg);
  }
}
@keyframes refundArrow {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(7deg);
  }
}

/* Content expansion system */
.content-expansion {
  overflow: hidden;
}
.topic-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.topic-matrix-item {
  position: relative;
  min-height: 240px;
  padding: 28px 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 27, 37, 0.55), rgba(9, 19, 27, 0.38));
  overflow: hidden;
}
.topic-matrix-item::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 135px;
  height: 135px;
  border: 1px solid rgba(255, 104, 75, 0.12);
  transform: rotate(45deg);
  transition:
    transform 0.45s ease,
    border-color 0.45s ease;
}
.topic-matrix-item:hover::after {
  transform: rotate(52deg) translate(-5px, -5px);
  border-color: rgba(255, 104, 75, 0.34);
}
.topic-index {
  position: absolute;
  right: 20px;
  top: 17px;
  color: #536773;
  font:
    700 0.76rem ui-monospace,
    monospace;
}
.topic-matrix-item .topic-icon {
  margin: 0 0 24px;
  color: var(--accent);
  width: 32px;
  height: 32px;
}
.topic-matrix-item:nth-child(3n + 2) .topic-icon {
  color: var(--cyan);
}
.topic-matrix-item:nth-child(3n + 3) .topic-icon {
  color: var(--violet);
}
.topic-matrix-item h3 {
  font-size: 1.1rem;
}
.topic-matrix-item p {
  margin: 0;
  color: #8f9ca7;
  font-size: 0.82rem;
  max-width: 330px;
}
.workflow-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: start;
}
.workflow-intro {
  position: sticky;
  top: 108px;
}
.workflow-intro h2 {
  font-size: clamp(2.1rem, 3.5vw, 3.7rem);
}
.workflow-intro .comment-stack {
  margin-top: 30px;
  max-width: 170px;
}
.workflow-steps {
  border-top: 1px solid var(--line);
}
.workflow-step {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.workflow-step > span {
  font:
    800 0.86rem ui-monospace,
    monospace;
  color: var(--accent);
}
.workflow-step h3 {
  font-size: 1.05rem;
  margin-bottom: 7px;
}
.workflow-step p {
  margin: 0;
  color: #8f9ca7;
  font-size: 0.84rem;
  max-width: 700px;
}
.workflow-step::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.55s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.workflow-step:hover::after {
  width: 100%;
}
.progression-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.progression-card {
  position: relative;
  padding: 28px 24px;
  min-height: 270px;
  border-right: 1px solid var(--line);
  background: rgba(11, 22, 30, 0.55);
}
.progression-card:last-child {
  border-right: 0;
}
.progression-no {
  display: inline-flex;
  color: var(--accent);
  font:
    800 0.8rem ui-monospace,
    monospace;
  margin-bottom: 44px;
}
.progression-card h3 {
  font-size: 1.08rem;
}
.progression-card p {
  color: #8e9ba6;
  font-size: 0.8rem;
}
.mono-note {
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: #5d7180;
  font:
    650 0.67rem ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.progression-card::before {
  content: "";
  position: absolute;
  top: 29px;
  left: 58px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 104, 75, 0.5), transparent);
}
.writing-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 62px;
}
.writing-copy {
  padding-right: 24px;
}
.writing-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.writing-checklist article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.writing-checklist .ui-icon {
  color: var(--accent);
  width: 30px;
  height: 30px;
}
.writing-checklist h3 {
  font-size: 1rem;
}
.writing-checklist p {
  margin: 0;
  color: #8e9ba5;
  font-size: 0.8rem;
}
.contact-prep-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 58px;
  align-items: start;
}
.support-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.support-checklist article {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 15px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 22, 30, 0.45);
}
.support-checklist article:nth-child(2n) {
  border-right: 0;
}
.support-checklist article:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.support-checklist .ui-icon {
  color: var(--accent);
  width: 28px;
  height: 28px;
}
.support-checklist h3 {
  font-size: 0.98rem;
}
.support-checklist p {
  margin: 0;
  color: #8e9ba6;
  font-size: 0.79rem;
}
.resource-link-grid,
.policy-link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.resource-link-card,
.policy-link {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: start;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 22px;
  background: rgba(12, 24, 33, 0.6);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.resource-link-card:hover,
.policy-link:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 104, 75, 0.5);
  background: rgba(15, 29, 39, 0.78);
}
.resource-link-card > .ui-icon,
.policy-link > .ui-icon {
  color: var(--accent);
  width: 28px;
  height: 28px;
}
.resource-link-card h3,
.policy-link h3 {
  font-size: 0.96rem;
  margin-bottom: 7px;
}
.resource-link-card p,
.policy-link p {
  font-size: 0.76rem;
  color: #84929d;
  margin: 0;
}
.resource-link-card > span:last-child,
.policy-link > span:last-child {
  color: var(--accent);
}
.legal-summary-section {
  background: linear-gradient(180deg, rgba(9, 19, 27, 0.18), rgba(12, 24, 33, 0.28));
}
.legal-summary-head {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 46px;
  align-items: end;
  margin-bottom: 24px;
}
.legal-summary-head h2 {
  font-size: clamp(2rem, 3.2vw, 3.35rem);
}
.legal-summary-head > p {
  color: #8d9aa5;
  margin: 0;
}
.legal-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.legal-summary-grid article {
  padding: 24px;
  border-right: 1px solid var(--line);
  min-height: 195px;
  background: rgba(11, 22, 30, 0.58);
}
.legal-summary-grid article:last-child {
  border-right: 0;
}
.legal-summary-grid .ui-icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 25px;
}
.legal-summary-grid h3 {
  font-size: 1rem;
}
.legal-summary-grid p {
  margin: 0;
  color: #8f9ca7;
  font-size: 0.78rem;
}
.policy-links-section {
  background: rgba(5, 13, 19, 0.2);
}
.policy-link-grid {
  grid-template-columns: repeat(3, 1fr);
}
.data-flow-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 62px;
}
.data-flow-steps {
  border-top: 1px solid var(--line);
}
.data-flow-steps article {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.data-flow-steps article > span {
  color: var(--accent);
  font:
    800 0.85rem ui-monospace,
    monospace;
}
.data-flow-steps h3 {
  font-size: 1.02rem;
}
.data-flow-steps p {
  margin: 0;
  color: #8e9ba6;
  font-size: 0.82rem;
}
.refund-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.refund-case-grid article {
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 190px;
  background: rgba(11, 22, 30, 0.55);
}
.refund-case-grid .ui-icon {
  color: var(--accent);
  width: 30px;
  height: 30px;
  margin-bottom: 24px;
}
.refund-case-grid h3 {
  font-size: 1rem;
}
.refund-case-grid p {
  color: #8e9ba6;
  font-size: 0.78rem;
  margin: 0;
}
.checkout-context {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: rgba(8, 18, 26, 0.65);
}
.checkout-context article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 20px;
  border-right: 1px solid var(--line);
}
.checkout-context article:last-child {
  border-right: 0;
}
.checkout-context .ui-icon {
  color: var(--accent);
  width: 25px;
  height: 25px;
}
.checkout-context h3 {
  font-size: 0.86rem;
  margin-bottom: 6px;
}
.checkout-context p {
  font-size: 0.72rem;
  color: #82909b;
  margin: 0;
}
.product-receive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.product-receive-grid article {
  padding: 25px;
  min-height: 200px;
  border-right: 1px solid var(--line);
  background: rgba(11, 22, 30, 0.55);
}
.product-receive-grid article:last-child {
  border-right: 0;
}
.product-receive-grid .ui-icon {
  color: var(--accent);
  width: 30px;
  height: 30px;
  margin-bottom: 26px;
}
.product-receive-grid h3 {
  font-size: 1rem;
}
.product-receive-grid p {
  margin: 0;
  color: #8d9aa5;
  font-size: 0.78rem;
}
.product-workflow .workflow-intro {
  position: relative;
  top: auto;
}
.purchase-check-panel {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 55px;
  border: 1px solid var(--line);
  padding: 30px;
  background: linear-gradient(110deg, rgba(255, 104, 75, 0.04), rgba(11, 22, 30, 0.7) 42%);
}
.purchase-check-panel h2 {
  font-size: clamp(2rem, 3vw, 3.25rem);
}
.purchase-check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 26px;
}
.purchase-check-list p {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 13px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: #98a5af;
}
.purchase-check-list .ui-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.purchase-check-list a {
  color: var(--accent);
}

/* Content-rich homepage and product detail expansions */
.store-facts {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 18, 26, 0.52);
}
.store-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.store-facts article {
  padding: 24px 26px;
  min-height: 150px;
  border-right: 1px solid var(--line-soft);
}
.store-facts article:last-child {
  border-right: 0;
}
.fact-kicker {
  display: block;
  color: var(--accent);
  font:
    750 0.67rem/1.2 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 12px;
}
.store-facts strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
}
.store-facts p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  max-width: 270px;
}
.learning-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.learning-rail::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), #36c9f2 42%, #bd6cff 72%, var(--accent));
}
.learning-rail article {
  padding: 48px 26px 26px;
  border-right: 1px solid var(--line);
  min-height: 250px;
  position: relative;
}
.learning-rail article:last-child {
  border-right: 0;
}
.learning-rail article > span {
  position: absolute;
  top: 11px;
  left: 24px;
  background: var(--bg);
  padding: 0 7px;
  color: var(--accent);
  font:
    700 0.7rem ui-monospace,
    monospace;
}
.learning-rail h3 {
  font-size: 1.1rem;
}
.learning-rail p {
  font-size: 0.8rem;
  color: #8f9ca7;
}
.learning-rail small {
  display: block;
  margin-top: 20px;
  color: #70808c;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font:
    700 0.64rem ui-monospace,
    monospace;
}
.featured-product-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 104, 75, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(11, 22, 30, 0.38), rgba(7, 16, 24, 0.82));
}
.featured-product {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  gap: 64px;
  align-items: center;
}
.featured-cover-wrap {
  max-width: 410px;
  margin: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.44));
  animation: featuredFloat 8s ease-in-out infinite;
}
@keyframes featuredFloat {
  50% {
    transform: translateY(-8px) rotate(0.3deg);
  }
}
.featured-cover-wrap img {
  border-radius: 8px;
}
.featured-copy {
  max-width: 760px;
}
.featured-copy h2 {
  font-size: clamp(2.6rem, 5vw, 5rem);
}
.lead-small {
  font-size: 1.12rem;
  color: #b8c3cb;
  line-height: 1.55;
}
.featured-copy > p:not(.lead-small) {
  color: var(--muted);
  max-width: 720px;
}
.featured-facts {
  display: flex;
  flex-wrap: wrap;
  margin: 24px 0 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.featured-facts span {
  padding: 12px 18px 12px 0;
  margin-right: 18px;
  color: #aab6bf;
  font-size: 0.78rem;
}
.featured-facts span + span {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.lesson-split,
.product-example-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  gap: 56px;
  align-items: start;
}
.lesson-copy p,
.example-copy p {
  color: #a0adb8;
}
.lesson-copy code {
  font:
    600 0.9em ui-monospace,
    monospace;
  color: #dbe6ec;
}
.lesson-points {
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.lesson-points li {
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: #a7b3bd;
}
.lesson-points li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 21px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(255, 104, 75, 0.22);
}
.code-study-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 25, 34, 0.96), rgba(8, 18, 26, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-study-head {
  height: 45px;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font:
    0.72rem ui-monospace,
    monospace;
  color: #aab5be;
}
.code-study-panel pre {
  margin: 0;
  padding: 26px;
  overflow: auto;
  background: linear-gradient(90deg, rgba(255, 104, 75, 0.025), transparent 42%);
  font:
    500 0.78rem/1.8 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  color: #d8e2e8;
  min-height: 245px;
}
.code-study-note {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.015);
}
.code-study-note strong {
  color: var(--accent);
  font-size: 0.76rem;
}
.code-study-note p {
  margin: 0;
  color: #8e9ba6;
  font-size: 0.76rem;
}
.depth-comparison {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.depth-comparison article {
  padding: 34px 28px;
  min-height: 250px;
}
.depth-label {
  color: var(--accent);
  font:
    700 0.68rem ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.depth-comparison h3 {
  font-size: 1.45rem;
  margin-top: 18px;
}
.depth-comparison p {
  color: #96a4ae;
  max-width: 510px;
}
.depth-connector {
  display: grid;
  place-items: center;
  position: relative;
}
.depth-connector::before {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: var(--line);
}
.depth-connector span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent);
  background: var(--bg);
  transform: rotate(45deg);
  z-index: 1;
  box-shadow: 0 0 14px rgba(255, 104, 75, 0.22);
}
.product-comparison-section {
  background: linear-gradient(180deg, rgba(10, 20, 29, 0.9), rgba(7, 16, 24, 0.96));
}
.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}
.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line-soft);
  font-size: 0.78rem;
}
.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: 0;
}
.comparison-table th {
  font:
    750 0.66rem ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #738390;
  background: #0a141d;
}
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}
.comparison-table tbody tr {
  transition: background 0.18s ease;
}
.comparison-table tbody tr:hover {
  background: rgba(255, 104, 75, 0.035);
}
.comparison-table td {
  color: #9eabb5;
}
.comparison-table td strong {
  color: #eef4f7;
}
.comparison-table td small {
  display: block;
  color: #657783;
  max-width: 300px;
  margin-top: 4px;
}
.table-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.table-link:hover {
  text-decoration: underline;
}
.audience-editorial {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) 1.35fr;
  gap: 70px;
}
.audience-editorial > div:first-child {
  position: sticky;
  top: calc(var(--header-h) + 38px);
  align-self: start;
}
.audience-lines {
  border-top: 1px solid var(--line);
}
.audience-lines article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 24px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.audience-lines article > span {
  font:
    700 0.72rem ui-monospace,
    monospace;
  color: var(--accent);
}
.audience-lines h3 {
  font-size: 1.25rem;
}
.audience-lines p {
  margin: 0;
  color: #8f9da8;
  max-width: 680px;
}
.final-cta-section {
  padding-top: 70px;
  padding-bottom: 92px;
}
.final-cta-panel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  padding: 44px 46px;
  border: 1px solid rgba(255, 104, 75, 0.38);
  background: linear-gradient(
    120deg,
    rgba(255, 104, 75, 0.055),
    rgba(11, 23, 32, 0.88) 46%,
    rgba(13, 25, 35, 0.92)
  );
  position: relative;
  overflow: hidden;
}
.final-cta-panel::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -45%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 104, 75, 0.16);
  transform: rotate(45deg);
  background-image:
    linear-gradient(rgba(255, 104, 75, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 104, 75, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
}
.final-cta-panel > div {
  position: relative;
  z-index: 1;
}
.final-cta-panel h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  max-width: 900px;
}
.final-cta-panel p {
  color: #95a2ad;
  max-width: 830px;
}
.final-cta-actions {
  align-self: center;
}
.final-cta-actions .btn {
  display: flex;
  margin-bottom: 10px;
}
.product-overview-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  gap: 56px;
}
.product-overview-grid p {
  color: #a0adb7;
  max-width: 800px;
}
.overview-rail {
  border-top: 1px solid var(--line);
}
.overview-rail > div {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.overview-rail span {
  color: #6f7f8c;
  font-size: 0.75rem;
}
.overview-rail strong {
  font-size: 0.82rem;
  color: #dbe4e9;
  text-align: right;
}
.module-card p {
  margin: 8px 0 0;
  color: #7f8f9b;
  font-size: 0.72rem;
  line-height: 1.5;
}
.audience-prereq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.learning-outcomes-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  padding: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 104, 75, 0.025), transparent 36%);
}
.learning-outcomes-panel p {
  color: #94a2ad;
}
.learning-outcomes-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.learning-outcomes-panel li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: #93a0aa;
  font-size: 0.82rem;
}
.learning-outcomes-panel li:last-child {
  border-bottom: 0;
}
.learning-outcomes-panel li strong {
  display: inline-block;
  min-width: 74px;
  color: var(--accent);
  font:
    750 0.72rem ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.practice-brief {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(12, 23, 32, 0.65);
}
.practice-brief .ui-icon {
  color: var(--accent);
}
.practice-brief h3 {
  font-size: 0.9rem;
}
.practice-brief p {
  margin: 0;
  font-size: 0.78rem;
}
.boundary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.boundary-grid article {
  padding: 34px 36px;
}
.boundary-grid article + article {
  border-left: 1px solid var(--line);
}
.boundary-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.boundary-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
  color: #8f9ca7;
  font-size: 0.8rem;
}
.boundary-list li::before {
  content: "×";
  position: absolute;
  left: 3px;
  color: #87949f;
  font-weight: 800;
}
.boundary-list.positive li::before {
  content: "✓";
  color: var(--accent);
}

/* Reveal + scroll motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  clip-path: inset(0 0 14% 0);
  transition:
    opacity 0.65s ease,
    transform 0.75s cubic-bezier(0.18, 0.7, 0.2, 1),
    clip-path 0.85s cubic-bezier(0.2, 0.75, 0.2, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}
[data-reveal="line"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
}
[data-reveal="line"].is-visible {
  clip-path: inset(0 0 0 0);
}
[data-parallax] {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

/* Responsive */
@media (max-width: 1280px) {
  :root {
    --container: 1160px;
  }
  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-tagline {
    min-height: auto;
  }
  .product-card h3 {
    font-size: 1rem;
  }
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(560px, 1.2fr);
  }
  .workbench {
    grid-template-columns: 145px 1fr 165px;
  }
  .product-hero-grid {
    grid-template-columns: 240px minmax(0, 1fr) 280px;
  }
}
@media (max-width: 1040px) {
  .topic-matrix {
    grid-template-columns: 1fr 1fr;
  }
  .progression-grid {
    grid-template-columns: 1fr 1fr;
  }
  .progression-card:nth-child(2) {
    border-right: 0;
  }
  .progression-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .writing-layout,
  .contact-prep-layout,
  .data-flow-layout,
  .purchase-check-panel {
    grid-template-columns: 1fr;
  }
  .workflow-layout {
    grid-template-columns: 1fr;
  }
  .workflow-intro {
    position: relative;
    top: auto;
  }
  .resource-link-grid {
    grid-template-columns: 1fr 1fr;
  }
  .legal-summary-grid,
  .refund-case-grid,
  .product-receive-grid {
    grid-template-columns: 1fr 1fr;
  }
  .legal-summary-grid article:nth-child(2),
  .refund-case-grid article:nth-child(2),
  .product-receive-grid article:nth-child(2) {
    border-right: 0;
  }
  .legal-summary-grid article:nth-child(-n + 2),
  .product-receive-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .policy-link-grid {
    grid-template-columns: 1fr 1fr;
  }
  .checkout-context {
    grid-template-columns: 1fr 1fr;
  }
  .checkout-context article:nth-child(2) {
    border-right: 0;
  }
  .checkout-context article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .shell {
    width: min(calc(100% - 36px), var(--container));
  }
  .search-box {
    display: none;
  }
  .hero-grid,
  .page-hero-grid,
  .legal-hero-grid {
    grid-template-columns: 1fr;
  }
  .home-hero {
    padding-top: 72px;
  }
  .hero-copy h1 {
    max-width: 760px;
  }
  .workbench {
    max-width: 850px;
  }
  .mission-grid,
  .principles-heading,
  .module-section-head {
    grid-template-columns: 1fr;
  }
  .comment-stack {
    display: none;
  }
  .benefit-layout {
    grid-template-columns: 1fr 1fr;
  }
  .benefit-intro {
    grid-column: 1/-1;
    padding: 0 0 24px;
  }
  .benefit-item:nth-of-type(2) {
    border-left: 0;
  }
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-pair,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .product-hero-grid {
    grid-template-columns: 220px 1fr;
  }
  .purchase-summary {
    position: relative;
    top: auto;
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 26px;
  }
  .purchase-summary .btn,
  .secure-note {
    grid-column: 1/-1;
  }
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .loading-panels {
    grid-template-columns: 1fr;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .content-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  .content-nav strong {
    width: 100%;
  }
  .content-nav a {
    border-left: 0;
    border-bottom: 1px solid transparent;
    padding: 6px;
  }
  .content-nav a:hover {
    padding-left: 6px;
    border-bottom-color: var(--accent);
  }
}
@media (max-width: 760px) {
  .topic-matrix,
  .progression-grid,
  .writing-checklist,
  .support-checklist,
  .legal-summary-grid,
  .refund-case-grid,
  .product-receive-grid,
  .checkout-context {
    grid-template-columns: 1fr;
  }
  .topic-matrix-item {
    min-height: 210px;
  }
  .progression-card {
    border-right: 0;
    border-bottom: 1px solid var(--line) !important;
    min-height: 235px;
  }
  .progression-card:last-child {
    border-bottom: 0 !important;
  }
  .writing-checklist article,
  .support-checklist article,
  .legal-summary-grid article,
  .product-receive-grid article,
  .checkout-context article {
    border-right: 0;
    border-bottom: 1px solid var(--line) !important;
  }
  .writing-checklist article:last-child,
  .support-checklist article:last-child,
  .legal-summary-grid article:last-child,
  .product-receive-grid article:last-child,
  .checkout-context article:last-child {
    border-bottom: 0 !important;
  }
  .resource-link-grid,
  .policy-link-grid {
    grid-template-columns: 1fr;
  }
  .legal-summary-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .purchase-check-list {
    grid-template-columns: 1fr;
  }
  .workflow-step {
    grid-template-columns: 46px 1fr;
  }
  .contact-prep-layout,
  .writing-layout,
  .data-flow-layout {
    gap: 32px;
  }

  :root {
    --header-h: 62px;
  }
  .shell {
    width: min(calc(100% - 28px), var(--container));
  }
  .site-header {
    height: var(--header-h);
  }
  .header-inner {
    gap: 12px;
  }
  .brand {
    font-size: 1.05rem;
  }
  .brand img {
    width: 24px;
    height: 24px;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: 14px;
    right: 14px;
    background: #0a141c;
    border: 1px solid var(--line);
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px;
  }
  .header-tools .icon-btn {
    display: none;
  }
  .home-hero {
    min-height: auto;
    padding: 56px 0 36px;
  }
  .hero-grid {
    gap: 34px;
  }
  .hero-copy h1 {
    font-size: clamp(3rem, 14vw, 4.35rem);
  }
  .hero-actions {
    display: grid;
  }
  .btn {
    width: 100%;
  }
  .workbench {
    min-height: 360px;
    grid-template-columns: 112px 1fr;
  }
  .wb-path {
    display: none;
  }
  .wb-files {
    font-size: 0.55rem;
  }
  .file-list {
    font-size: 0.56rem;
    padding-inline: 8px;
  }
  .code-lines {
    font-size: 0.55rem;
    padding-inline: 9px;
  }
  .wb-tabbar {
    font-size: 0.59rem;
    padding-inline: 8px;
  }
  .mission-grid {
    gap: 20px;
  }
  .mission-copy {
    border-left: 0;
    padding-left: 0;
  }
  .section,
  .section-tight {
    padding: 60px 0;
  }
  .section-heading-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .cover-frame {
    aspect-ratio: 3/4;
  }
  .product-card h3 {
    font-size: 0.9rem;
  }
  .product-tagline {
    font-size: 0.68rem;
  }
  .benefit-layout {
    grid-template-columns: 1fr;
  }
  .benefit-item {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .faq-head {
    align-items: start;
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-links {
    justify-content: flex-start;
  }
  .footer-legal {
    border-left: 0;
    padding-left: 0;
  }
  .footer-tag {
    margin-left: 34px;
  }
  .page-hero {
    min-height: auto;
    padding: 56px 0 34px;
  }
  .page-hero .workbench {
    min-height: 300px;
  }
  .about-pair,
  .principles-grid,
  .support-topics {
    grid-template-columns: 1fr;
  }
  .about-cta {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .about-cta .cta-geometry {
    width: 100%;
    opacity: 0.28;
  }
  .contact-hero-visual {
    min-height: 260px;
  }
  .contact-quote {
    display: none;
  }
  .contact-bubble.back {
    width: 68%;
    left: 3%;
  }
  .contact-bubble.front {
    width: 58%;
    left: 37%;
  }
  .product-page {
    padding-top: 10px;
  }
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .product-cover-stage {
    position: relative;
    top: auto;
    max-width: 280px;
    margin-inline: auto;
  }
  .product-intro {
    padding-top: 0;
  }
  .product-intro h1 {
    font-size: clamp(3rem, 14vw, 4.3rem);
  }
  .purchase-summary {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .module-grid {
    grid-template-columns: 1fr;
  }
  .module-card {
    grid-template-columns: 46px 38px 1fr;
  }
  .audience-panel {
    border-left: 0;
    padding-left: 0;
  }
  .usage-icons {
    flex-direction: column;
    gap: 14px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .loading-main {
    padding-top: 56px;
  }
  .checkout-steps {
    grid-template-columns: 1fr;
    max-width: 360px;
    text-align: left;
  }
  .checkout-step {
    padding: 0 0 24px 44px;
  }
  .checkout-step::before {
    left: 5px;
    top: 2px;
  }
  .checkout-step::after {
    left: 14px;
    top: 18px;
    width: 2px;
    height: calc(100% - 3px);
  }
  .order-summary {
    grid-template-columns: 72px 1fr;
  }
  .order-summary img {
    width: 72px;
  }
  .order-summary .price-big {
    grid-column: 2;
  }
  .payment-fallback {
    grid-template-columns: 38px 1fr;
  }
  .payment-fallback-actions {
    grid-column: 1/-1;
  }
  .legal-hero {
    min-height: auto;
    padding: 52px 0 32px;
  }
  .legal-editor {
    width: 100%;
  }
  .legal-editor-inner {
    grid-template-columns: 110px 1fr;
  }
  .legal-editor .file-list {
    font-size: 0.53rem;
  }
  .legal-editor .code-lines {
    font-size: 0.55rem;
  }
  .legal-card {
    padding: 18px;
  }
  .legal-section {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }
  .legal-no {
    width: 34px;
    height: 34px;
  }
  .content-nav {
    padding: 14px;
  }
  .privacy-mini-editor {
    max-width: 100%;
  }
  .refund-visual {
    min-height: 230px;
  }
}
@media (max-width: 430px) {
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-card-body {
    padding-top: 8px;
  }
  .product-tagline {
    display: none;
  }
  .product-price {
    font-size: 0.8rem;
  }
  .product-card .btn {
    font-size: 0.65rem;
  }
  .cover-frame {
    aspect-ratio: 3/4;
  }
  .workbench {
    grid-template-columns: 96px 1fr;
  }
  .file-list {
    font-size: 0.49rem;
  }
  .code-lines {
    font-size: 0.49rem;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
  .module-card {
    grid-template-columns: 38px 32px 1fr;
    padding: 14px;
  }
}

@media (max-width: 1040px) {
  .store-facts-grid {
    grid-template-columns: 1fr 1fr;
  }
  .store-facts article:nth-child(2) {
    border-right: 0;
  }
  .store-facts article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }
  .learning-rail {
    grid-template-columns: 1fr 1fr;
  }
  .learning-rail::before {
    display: none;
  }
  .learning-rail article:nth-child(2) {
    border-right: 0;
  }
  .learning-rail article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .featured-product,
  .lesson-split,
  .product-example-grid,
  .audience-editorial,
  .product-overview-grid,
  .audience-prereq-grid,
  .learning-outcomes-panel,
  .final-cta-panel {
    grid-template-columns: 1fr;
  }
  .featured-cover-wrap {
    max-width: 330px;
  }
  .audience-editorial > div:first-child {
    position: relative;
    top: auto;
  }
  .depth-comparison {
    grid-template-columns: 1fr 70px 1fr;
  }
}
@media (max-width: 760px) {
  .store-facts-grid,
  .learning-rail {
    grid-template-columns: 1fr;
  }
  .store-facts article,
  .learning-rail article {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .store-facts article:last-child,
  .learning-rail article:last-child {
    border-bottom: 0;
  }
  .store-facts article {
    min-height: auto;
    padding: 20px;
  }
  .learning-rail article {
    min-height: auto;
    padding: 38px 18px 22px;
  }
  .featured-product {
    gap: 32px;
  }
  .featured-cover-wrap {
    max-width: 270px;
  }
  .featured-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .featured-facts span {
    margin: 0;
    padding: 10px;
  }
  .featured-facts span + span {
    border-left: 0;
  }
  .featured-facts span:nth-child(even) {
    border-left: 1px solid var(--line);
  }
  .depth-comparison {
    grid-template-columns: 1fr;
  }
  .depth-connector {
    display: flex;
    gap: 14px;
    padding: 10px 0;
  }
  .depth-connector::before {
    left: 12%;
    right: 12%;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .code-study-note {
    grid-template-columns: 1fr;
  }
  .code-study-panel pre {
    font-size: 0.7rem;
    padding: 18px;
    min-height: 0;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 13px 12px;
  }
  .audience-editorial {
    gap: 32px;
  }
  .final-cta-panel {
    padding: 28px 22px;
    gap: 24px;
  }
  .learning-outcomes-panel {
    padding: 24px 18px;
    gap: 24px;
  }
  .boundary-grid {
    grid-template-columns: 1fr;
  }
  .boundary-grid article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .boundary-grid article {
    padding: 26px 22px;
  }
  .product-overview-grid,
  .audience-prereq-grid,
  .product-example-grid {
    gap: 28px;
  }
  .overview-rail {
    margin-top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  [data-parallax] {
    transform: none !important;
  }
  .product-card {
    transform: none !important;
  }
}

/* ==========================================================================\n   SORYVENX MOTION SYSTEM — production\n   Visual design is unchanged; this layer adds subject-driven movement only.\n   ========================================================================== */
:root {
  --page-progress: 0;
  --pointer-x: 0;
  --pointer-y: 0;
  --pointer-x-deg: 0deg;
  --pointer-y-deg: 0deg;
  --pointer-x-px: 0px;
  --pointer-y-px: 0px;
}
html.motion-enabled {
  overflow-x: clip;
}
body.motion-enabled {
  isolation: isolate;
  overflow-x: clip;
}
body.motion-enabled > header,
body.motion-enabled > main,
body.motion-enabled > footer,
body.motion-enabled > .skip-link {
  position: relative;
  z-index: 1;
}

/* Persistent page progress — functional motion, not decorative noise. */
.motion-enabled .site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: scaleX(var(--page-progress));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), #ff9b69 54%, #4dcdf2);
  box-shadow: 0 0 14px rgba(255, 104, 75, 0.28);
  pointer-events: none;
}

/* Swift/code-inspired atmospheric field. */
.motion-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}
.motion-atmosphere::before,
.motion-atmosphere::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 46vw;
  height: 46vw;
  min-width: 520px;
  min-height: 520px;
  opacity: 0.13;
  will-change: transform;
  filter: blur(1px);
}
.motion-atmosphere::before {
  left: -24vw;
  top: 1vh;
  background: radial-gradient(
    circle,
    rgba(255, 104, 75, 0.28),
    rgba(255, 104, 75, 0.08) 28%,
    transparent 68%
  );
  animation: ambientGlowA 19s ease-in-out infinite alternate;
}
.motion-atmosphere::after {
  right: -28vw;
  top: 28vh;
  background: radial-gradient(
    circle,
    rgba(67, 198, 237, 0.18),
    rgba(109, 91, 255, 0.07) 31%,
    transparent 68%
  );
  animation: ambientGlowB 24s ease-in-out infinite alternate;
}
@keyframes ambientGlowA {
  to {
    transform: translate3d(10vw, 8vh, 0) scale(1.14);
  }
}
@keyframes ambientGlowB {
  to {
    transform: translate3d(-12vw, 10vh, 0) scale(0.9);
  }
}
.motion-token {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font:
    650 var(--size)/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  letter-spacing: -0.08em;
  color: rgba(155, 180, 195, var(--alpha));
  text-shadow: 0 0 16px rgba(73, 198, 235, 0.08);
  transform: translate3d(0, 0, 0) rotate(var(--rot)) scale(var(--scale));
  transform-origin: center;
  will-change: transform, opacity;
  animation: swiftTokenDrift var(--dur) cubic-bezier(0.37, 0.06, 0.22, 1) var(--delay) infinite;
}
.motion-token.accent {
  color: rgba(255, 116, 84, var(--alpha));
  text-shadow: 0 0 18px rgba(255, 104, 75, 0.15);
}
.motion-token.word {
  letter-spacing: 0.02em;
  font-weight: 560;
}
@keyframes swiftTokenDrift {
  0% {
    transform: translate3d(-10px, -6vh, 0) rotate(var(--rot)) scale(var(--scale));
    opacity: 0.35;
  }
  38% {
    opacity: 1;
  }
  72% {
    transform: translate3d(var(--drift), 8vh, 0) rotate(calc(var(--rot) + 5deg)) scale(var(--scale));
    opacity: 0.82;
  }
  100% {
    transform: translate3d(calc(var(--drift) * -0.35), 17vh, 0) rotate(calc(var(--rot) + 11deg))
      scale(var(--scale));
    opacity: 0.2;
  }
}

/* Existing technical grids become visibly alive without changing art direction. */
.motion-enabled .tech-field {
  animation: gridDrift 18s linear infinite;
  background-position:
    0 0,
    0 0;
}
.motion-enabled .tech-field::before {
  animation: nodeTravelA 8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}
.motion-enabled .tech-field::after {
  animation: nodeTravelB 10s cubic-bezier(0.45, 0, 0.2, 1) -3.4s infinite;
}
@keyframes gridDrift {
  to {
    background-position:
      42px 42px,
      42px 42px;
  }
}
@keyframes nodeTravelA {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.35;
  }
  35% {
    transform: translate3d(84px, 42px, 0);
    opacity: 1;
  }
  70% {
    transform: translate3d(126px, -42px, 0);
    opacity: 0.55;
  }
}
@keyframes nodeTravelB {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.28;
  }
  42% {
    transform: translate3d(-84px, -42px, 0);
    opacity: 1;
  }
  76% {
    transform: translate3d(-126px, 42px, 0);
    opacity: 0.52;
  }
}
.motion-enabled .home-hero::after {
  transform-origin: 50% 50%;
  animation:
    heroLineSweep 1.45s cubic-bezier(0.2, 0.78, 0.2, 1) 0.12s both,
    heroLinePulse 5.8s ease-in-out 1.6s infinite;
}
@keyframes heroLineSweep {
  from {
    transform: scaleX(0.02);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}
@keyframes heroLinePulse {
  50% {
    opacity: 0.48;
    box-shadow: 0 0 30px rgba(255, 104, 75, 0.52);
  }
}

/* Hero/editor stage: independent planes + pointer/scroll perspective. */
.motion-stage {
  --motion-p: 0;
  --stage-lift: 0px;
  --stage-rx: 0deg;
  --stage-ry: 0deg;
  transform-style: preserve-3d;
  will-change: transform;
}
.motion-enabled .home-hero .workbench.motion-stage,
.motion-enabled .page-hero .workbench.motion-stage,
.motion-enabled .legal-editor.motion-stage,
.motion-enabled .privacy-mini-editor.motion-stage {
  animation: none;
  transform: perspective(1200px)
    translate3d(var(--pointer-x-px), calc(var(--stage-lift) + var(--parallax-y, 0px)), 0)
    rotateX(var(--pointer-y-deg)) rotateY(var(--pointer-x-deg));
  transition:
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}
.motion-enabled .home-hero .workbench.motion-stage {
  box-shadow:
    0 32px 86px rgba(0, 0, 0, 0.44),
    0 0 40px rgba(255, 104, 75, 0.055);
}
.motion-enabled .workbench.motion-stage .wb-files,
.motion-enabled .workbench.motion-stage .wb-code,
.motion-enabled .workbench.motion-stage .wb-path {
  will-change: transform;
  transition: transform 0.12s linear;
}
.motion-enabled .workbench.motion-stage .wb-files {
  transform: translate3d(var(--wb-files-x, 0px), var(--wb-files-y, 0px), 18px);
}
.motion-enabled .workbench.motion-stage .wb-code {
  transform: translate3d(var(--wb-code-x, 0px), var(--wb-code-y, 0px), 34px);
}
.motion-enabled .workbench.motion-stage .wb-path {
  transform: translate3d(var(--wb-path-x, 0px), var(--wb-path-y, 0px), 50px);
}
.motion-enabled .wb-code {
  position: relative;
  overflow: hidden;
}
.motion-enabled .wb-code::after,
.motion-enabled .legal-editor .code-lines::after,
.motion-enabled .privacy-mini-editor .code-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 46px;
  top: -60px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 104, 75, 0.035),
    rgba(91, 205, 238, 0.045),
    transparent
  );
  border-top: 1px solid rgba(255, 111, 79, 0.08);
  animation: codeScan 6.4s linear infinite;
}
@keyframes codeScan {
  to {
    transform: translateY(620px);
  }
}

/* Scroll-linked heading drift remains constrained to headlines only. */
.motion-heading {
  transform: translate3d(var(--heading-shift, 0px), 0, 0);
  will-change: transform;
}

/* Catalogue / product imagery: scroll depth + stronger premium hover response. */
.motion-enabled .product-card {
  --scroll-lift: 0px;
  --glare-x: 50%;
  --glare-y: 50%;
  transform: translate3d(0, calc(var(--lift) + var(--scroll-lift)), 0) rotateX(var(--rx))
    rotateY(var(--ry));
}
.motion-enabled .cover-frame {
  transform-style: preserve-3d;
}
.motion-enabled .cover-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at var(--glare-x) var(--glare-y),
    rgba(255, 255, 255, 0.2),
    rgba(255, 149, 113, 0.07) 20%,
    transparent 47%
  );
  mix-blend-mode: screen;
  transition: opacity 0.2s ease;
}
.motion-enabled .product-card:hover .cover-frame::before {
  opacity: 0.72;
}
.motion-enabled .product-card .cover-frame img {
  will-change: transform;
  transform: translate3d(0, var(--cover-drift, 0px), 16px) scale(var(--cover-scale, 1));
  animation: coverFloat 5.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.63s);
}
.motion-enabled .product-card:hover .cover-frame img {
  --cover-scale: 1.045;
}
.motion-enabled .featured-cover-wrap {
  animation: featuredFloatStrong 7.8s ease-in-out infinite;
  transform: translate3d(0, var(--featured-scroll, 0px), 0) rotate(var(--featured-rotate, 0deg));
  will-change: transform;
}
@keyframes featuredFloatStrong {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 0 -11px;
    rotate: 0.55deg;
  }
}
.motion-enabled .product-cover-stage.motion-stage {
  transform: perspective(1100px) translate3d(var(--product-x, 0px), var(--product-y, 0px), 0)
    rotateX(var(--product-rx, 0deg)) rotateY(var(--product-ry, 0deg));
  will-change: transform;
}
.motion-enabled .product-cover-stage.motion-stage img {
  animation: coverHeroFloatStrong 6.6s ease-in-out infinite;
  transform-origin: 50% 56%;
}
@keyframes coverHeroFloatStrong {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotateZ(-0.15deg) scale(1);
  }
  50% {
    transform: translate3d(0, -9px, 22px) rotateZ(0.35deg) scale(1.008);
  }
}

/* Learning path + sticky storytelling: the line physically progresses with scroll. */
.motion-enabled .learning-rail::before {
  opacity: 0.22;
}
.motion-enabled .learning-rail::after {
  content: "";
  position: absolute;
  left: 4%;
  top: 21px;
  height: 2px;
  width: 92%;
  transform: scaleX(var(--learning-progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), #36c9f2 42%, #bd6cff 72%, var(--accent));
  box-shadow: 0 0 16px rgba(255, 104, 75, 0.2);
  pointer-events: none;
}
.motion-enabled .learning-rail article {
  transition:
    background 0.35s ease,
    transform 0.35s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.motion-enabled .learning-rail article.is-motion-active {
  background: linear-gradient(180deg, rgba(255, 104, 75, 0.048), rgba(11, 22, 30, 0.2));
  transform: translateY(-4px);
}
.motion-enabled .workflow-steps {
  position: relative;
  padding-left: 20px;
}
.motion-enabled .workflow-steps::before,
.motion-enabled .workflow-steps::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
}
.motion-enabled .workflow-steps::before {
  background: rgba(105, 128, 143, 0.28);
}
.motion-enabled .workflow-steps::after {
  bottom: auto;
  height: var(--workflow-height, 0%);
  background: linear-gradient(var(--accent), #4dcdf2);
  box-shadow: 0 0 12px rgba(255, 104, 75, 0.25);
}
.motion-enabled .workflow-step {
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    padding-left 0.35s ease;
}
.motion-enabled .workflow-step.is-motion-active {
  transform: translateX(8px);
  background: linear-gradient(90deg, rgba(255, 104, 75, 0.035), transparent 64%);
  padding-left: 8px;
}
.motion-enabled .workflow-step.is-motion-active > span {
  text-shadow: 0 0 16px rgba(255, 104, 75, 0.45);
}

/* Section reveal: mask + edge draw. This replaces the old fade-up as the main entrance language. */
.motion-enabled [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(0.992);
  clip-path: inset(0 0 22% 0 round 2px);
  filter: saturate(0.85);
  transition:
    opacity 0.6s ease,
    transform 0.82s cubic-bezier(0.16, 0.78, 0.2, 1),
    clip-path 0.92s cubic-bezier(0.16, 0.76, 0.18, 1),
    filter 0.7s ease;
}
.motion-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  clip-path: inset(0 0 0 0 round 2px);
  filter: saturate(1);
}
.motion-enabled [data-reveal="line"] {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 100% 0 0);
}
.motion-enabled [data-reveal="line"].is-visible {
  clip-path: inset(0 0 0 0);
}

/* Contact layers remain physically independent. */
.motion-enabled .contact-hero-visual.motion-stage {
  transform: perspective(1100px) translate3d(var(--pointer-x-px), var(--stage-lift), 0)
    rotateX(var(--contact-rx, 0deg)) rotateY(var(--contact-ry, 0deg));
  will-change: transform;
}
.motion-enabled .contact-bubble.back {
  animation: contactBackFloat 7.4s ease-in-out infinite;
  transform: translate3d(var(--contact-back-x, 0px), var(--contact-back-y, 0px), 0)
    rotate(var(--contact-back-r, 0deg));
}
.motion-enabled .contact-bubble.front {
  animation: contactFrontFloat 6.2s ease-in-out -1.3s infinite;
  transform: translate3d(var(--contact-front-x, 0px), var(--contact-front-y, 0px), 30px)
    rotate(var(--contact-front-r, 0deg));
}
@keyframes contactBackFloat {
  50% {
    translate: -7px -8px;
    rotate: -0.7deg;
  }
}
@keyframes contactFrontFloat {
  50% {
    translate: 8px -13px;
    rotate: 1deg;
  }
}

/* Refund illustration has two independent motion layers. */
.motion-enabled .refund-visual.motion-stage {
  transform: translate3d(0, var(--stage-lift), 0);
  will-change: transform;
}
.motion-enabled .refund-doc {
  animation: refundDocFloat 7.5s ease-in-out infinite;
  transform: translate3d(var(--refund-doc-x, 0px), var(--refund-doc-y, 0px), 0)
    rotate(var(--refund-doc-r, 0deg));
}
.motion-enabled .refund-arrow {
  animation: refundArrowOrbit 9s ease-in-out infinite;
  transform: translate3d(var(--refund-arrow-x, 0px), var(--refund-arrow-y, 0px), 20px)
    rotate(var(--refund-arrow-r, 0deg));
}
@keyframes refundDocFloat {
  50% {
    translate: -5px -9px;
    rotate: -0.45deg;
  }
}
@keyframes refundArrowOrbit {
  0%,
  100% {
    rotate: -2deg;
  }
  50% {
    translate: 8px -7px;
    rotate: 8deg;
  }
}

/* About CTA: reveal geometry independently from the content. */
.motion-enabled .about-cta .cta-geometry {
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition:
    clip-path 1.25s cubic-bezier(0.2, 0.78, 0.2, 1),
    transform 0.2s linear;
  will-change: clip-path, transform;
}
.motion-enabled .about-cta.is-visible .cta-geometry,
.motion-enabled .about-cta:has(.cta-geometry.is-visible) .cta-geometry {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Loading has a clearly visible subject/system handoff motion immediately. */
.motion-enabled .loading-center::before,
.motion-enabled .loading-center::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48px;
  border: 1px solid rgba(255, 104, 75, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.motion-enabled .loading-center::before {
  width: 190px;
  height: 190px;
  margin: -40px 0 0 -95px;
  animation: handoffOrbit 9s linear infinite;
}
.motion-enabled .loading-center::after {
  width: 150px;
  height: 150px;
  margin: -20px 0 0 -75px;
  border-color: rgba(73, 199, 235, 0.09);
  animation: handoffOrbit 7s linear reverse infinite;
}
@keyframes handoffOrbit {
  to {
    transform: rotate(360deg);
  }
}
.motion-enabled .handoff-ring {
  box-shadow:
    0 0 0 1px rgba(255, 104, 75, 0.08),
    0 0 42px rgba(255, 104, 75, 0.11);
  animation:
    ringSpin 2.25s linear infinite,
    ringBreath 2.8s ease-in-out infinite;
}
@keyframes ringBreath {
  50% {
    filter: brightness(1.17);
    scale: 1.035;
  }
}
.motion-enabled .checkout-step.active::before {
  animation: checkoutPulse 1.4s ease-out infinite;
}
@keyframes checkoutPulse {
  50% {
    box-shadow: 0 0 0 12px rgba(255, 104, 75, 0);
    border-color: #ff8b6e;
  }
}
.motion-enabled .order-summary img {
  animation: orderCoverFloat 5.6s ease-in-out infinite;
}
@keyframes orderCoverFloat {
  50% {
    transform: translateY(-5px) rotate(0.5deg);
  }
}

/* Interaction motion. */
.motion-enabled .btn .ui-icon {
  transition: transform 0.28s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.motion-enabled .btn:hover .ui-icon {
  transform: translateX(5px);
}
.motion-enabled .btn:active {
  transform: translateY(0) scale(0.985);
}
.motion-enabled .nav-links a {
  position: relative;
}
.motion-enabled .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.3s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.motion-enabled .nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}
.motion-enabled .related-card {
  transform: translate3d(0, var(--related-drift, 0px), 0);
  will-change: transform;
}
.motion-enabled .faq-item {
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}
.motion-enabled .faq-item:hover {
  border-color: rgba(255, 104, 75, 0.33);
  transform: translateY(-2px);
}
.motion-enabled .faq-item[open] {
  background: linear-gradient(180deg, rgba(255, 104, 75, 0.04), rgba(13, 24, 33, 0.76));
  border-color: rgba(255, 104, 75, 0.28);
}
.motion-enabled .faq-item summary::after {
  transition:
    transform 0.32s cubic-bezier(0.2, 0.75, 0.2, 1),
    color 0.2s ease;
}

/* Legal navigation becomes scroll-aware without rewriting legal content. */
.motion-enabled .content-nav a {
  position: relative;
  transition:
    color 0.2s ease,
    padding-left 0.25s ease,
    border-color 0.2s ease;
}
.motion-enabled .content-nav a.is-motion-active {
  color: #f3f6f8;
  border-left-color: var(--accent);
  padding-left: 11px;
  background: linear-gradient(90deg, rgba(255, 104, 75, 0.055), transparent);
}
.motion-enabled .legal-section {
  position: relative;
}
.motion-enabled .legal-section::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 55%);
  transform: scaleX(var(--legal-line, 0));
  transform-origin: 0 50%;
}

/* Mobile: retain identity, remove expensive depth/cursor behavior. */
@media (max-width: 760px) {
  .motion-token:nth-child(n + 7) {
    display: none;
  }
  .motion-token {
    --alpha: 0.065 !important;
  }
  .motion-atmosphere::before,
  .motion-atmosphere::after {
    width: 90vw;
    height: 90vw;
    min-width: 0;
    min-height: 0;
    opacity: 0.08;
  }
  .motion-enabled .home-hero .workbench.motion-stage,
  .motion-enabled .page-hero .workbench.motion-stage,
  .motion-enabled .legal-editor.motion-stage,
  .motion-enabled .privacy-mini-editor.motion-stage,
  .motion-enabled .contact-hero-visual.motion-stage,
  .motion-enabled .refund-visual.motion-stage,
  .motion-enabled .product-cover-stage.motion-stage {
    transform: translate3d(0, var(--stage-lift, 0px), 0);
  }
  .motion-enabled .workbench.motion-stage .wb-files,
  .motion-enabled .workbench.motion-stage .wb-code,
  .motion-enabled .workbench.motion-stage .wb-path {
    transform: none;
  }
  .motion-enabled .product-card {
    --rx: 0deg !important;
    --ry: 0deg !important;
    --scroll-lift: 0px !important;
  }
  .motion-enabled .product-card:hover {
    --lift: -3px;
  }
  .motion-heading {
    transform: none;
  }
  .motion-enabled .workflow-step.is-motion-active {
    transform: translateX(4px);
  }
}

/* Accessibility: motion is decorative; reduced motion exposes all content instantly. */
@media (prefers-reduced-motion: reduce) {
  .motion-atmosphere {
    display: none !important;
  }
  .motion-enabled .site-header::after {
    transition: none !important;
  }
  .motion-enabled .home-hero .workbench.motion-stage,
  .motion-enabled .page-hero .workbench.motion-stage,
  .motion-enabled .legal-editor.motion-stage,
  .motion-enabled .privacy-mini-editor.motion-stage,
  .motion-enabled .contact-hero-visual.motion-stage,
  .motion-enabled .refund-visual.motion-stage,
  .motion-enabled .product-cover-stage.motion-stage {
    transform: none !important;
  }
  .motion-enabled .workbench.motion-stage .wb-files,
  .motion-enabled .workbench.motion-stage .wb-code,
  .motion-enabled .workbench.motion-stage .wb-path,
  .motion-heading {
    transform: none !important;
  }
  .motion-enabled .workflow-intro,
  .motion-enabled .product-cover-stage,
  .motion-enabled .purchase-summary,
  .motion-enabled .content-nav,
  .motion-enabled .audience-editorial > div:first-child {
    position: relative !important;
    top: auto !important;
  }
  .motion-enabled [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
  }
  .motion-enabled .about-cta .cta-geometry {
    clip-path: none !important;
  }
  .motion-enabled .learning-rail article.is-motion-active,
  .motion-enabled .workflow-step.is-motion-active {
    transform: none !important;
  }
}

/* ---------- Content + Motion V2 refinement ---------- */

/* Product cover art moves on a slightly deeper plane than the card shell. */
.motion-enabled .product-card .cover-frame img {
  transform: translate3d(
      var(--cover-x, 0px),
      calc(var(--cover-drift, 0px) + var(--cover-y, 0px)),
      22px
    )
    scale(var(--cover-scale, 1));
}

/* True SVG learning path: progress is drawn, not faked with a width bar. */
.learning-path-svg {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 76px;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}
.learning-path-base,
.learning-path-progress {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.learning-path-base {
  stroke: rgba(106, 130, 146, 0.28);
}
.learning-path-progress {
  stroke: url(#learningPathGradient);
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--learning-progress, 0));
  filter: drop-shadow(0 0 5px rgba(255, 104, 75, 0.32));
}
.learning-path-nodes circle {
  fill: #071018;
  stroke: #526879;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition:
    stroke 0.3s ease,
    fill 0.3s ease,
    filter 0.3s ease;
}
.motion-enabled .learning-rail::before,
.motion-enabled .learning-rail::after {
  display: none;
}
.motion-enabled .learning-rail article > span {
  z-index: 3;
}
.motion-enabled .learning-rail article.is-motion-active > span {
  color: #fff;
}
.motion-enabled .learning-rail article:nth-of-type(1).is-motion-active ~ .learning-path-svg {
  opacity: 1;
}

/* Section-specific Swift motifs. These stay behind HTML copy and never carry essential text. */
.motif-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.motif-section > .shell,
.motif-section > .product-story-layout {
  position: relative;
  z-index: 1;
}
.section-motif {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.68;
}
.section-motif span {
  position: absolute;
  right: clamp(2%, 7vw, 9%);
  font:
    800 clamp(2.3rem, 6vw, 6.4rem)/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: -0.08em;
  color: rgba(111, 143, 162, 0.045);
  white-space: nowrap;
  transform: translate3d(0, var(--motif-y, 0px), 0);
  will-change: transform;
}
.section-motif span:nth-child(1) {
  top: 10%;
  right: 4%;
  color: rgba(255, 104, 75, 0.055);
}
.section-motif span:nth-child(2) {
  top: 46%;
  right: 18%;
  font-size: clamp(2rem, 4.8vw, 5rem);
  color: rgba(75, 198, 235, 0.045);
}
.section-motif span:nth-child(3) {
  top: 76%;
  right: 6%;
  font-size: clamp(1.9rem, 4vw, 4.3rem);
  color: rgba(188, 105, 255, 0.04);
}

/* Homepage: an information-dense systems map rather than another card grid. */
.systems-map-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 70px;
  align-items: start;
}
.systems-map-intro {
  position: sticky;
  top: 108px;
}
.systems-map-intro h2 {
  font-size: clamp(2.3rem, 4vw, 4.4rem);
}
.systems-map-lines {
  border-top: 1px solid var(--line);
}
.systems-map-lines article {
  display: grid;
  grid-template-columns: minmax(150px, 0.48fr) minmax(250px, 1fr) minmax(165px, 0.48fr);
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.systems-map-lines article::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.systems-map-lines article:hover::after {
  transform: scaleX(1);
}
.systems-map-lines h3 {
  font-size: 1.08rem;
  margin: 0 0 7px;
}
.systems-map-lines p {
  margin: 0;
  color: #8f9ca7;
  font-size: 0.82rem;
}
.systems-map-lines strong {
  font-size: 0.76rem;
  color: #aab5bd;
  font-weight: 650;
  line-height: 1.5;
}
.systems-code {
  font:
    700 0.72rem ui-monospace,
    monospace;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.systems-map-lines article:nth-child(2) .systems-code {
  color: var(--cyan);
}
.systems-map-lines article:nth-child(3) .systems-code {
  color: var(--violet);
}
.systems-map-lines article:nth-child(4) .systems-code {
  color: #ff9a76;
}

/* Product page: sticky storytelling that keeps native scroll and changes a live visual by stage. */
.product-story-section {
  padding: 78px 0 62px;
  position: relative;
}
.product-story-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: start;
}
.product-story-visual {
  position: sticky;
  top: 92px;
  height: min(72vh, 690px);
  min-height: 540px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 24, 33, 0.88), rgba(7, 16, 24, 0.94));
  overflow: hidden;
  display: grid;
  place-items: center;
  perspective: 1000px;
}
.story-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 119, 136, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 119, 136, 0.075) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.55) 72%, transparent);
}
.story-grid::before,
.story-grid::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 104, 75, 0.14);
  border-radius: 50%;
}
.story-grid::before {
  width: 430px;
  height: 430px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.story-grid::after {
  width: 250px;
  height: 250px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.story-cover {
  position: relative;
  z-index: 3;
  width: min(48%, 280px);
  max-height: 72%;
  object-fit: contain;
  border: 1px solid rgba(255, 104, 75, 0.42);
  box-shadow:
    0 25px 62px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(255, 104, 75, 0.09);
  transform: translate3d(0, var(--story-cover-y, 0px), 44px) rotate(var(--story-cover-r, 0deg))
    scale(var(--story-cover-scale, 1));
  will-change: transform;
  transition: filter 0.35s ease;
}
.story-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.story-paths path {
  fill: none;
  stroke: rgba(255, 104, 75, 0.34);
  stroke-width: 1.3;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--story-line, 0));
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgba(255, 104, 75, 0.2));
}
.story-topic {
  position: absolute;
  z-index: 4;
  max-width: 39%;
  padding: 8px 10px;
  border-left: 2px solid var(--accent);
  background: rgba(7, 16, 24, 0.82);
  font:
    650 0.66rem/1.35 ui-monospace,
    monospace;
  color: #aebac2;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.75, 0.2, 1),
    border-color 0.3s ease,
    color 0.3s ease;
}
.topic-a {
  left: 5%;
  top: 15%;
  transform: translate3d(
    calc(var(--story-progress, 0) * 9px),
    calc(var(--story-progress, 0) * -8px),
    0
  );
}
.topic-b {
  right: 5%;
  top: 25%;
  border-color: var(--cyan);
  transform: translate3d(
    calc(var(--story-progress, 0) * -11px),
    calc(var(--story-progress, 0) * 6px),
    0
  );
}
.topic-c {
  right: 7%;
  bottom: 12%;
  border-color: var(--violet);
  transform: translate3d(
    calc(var(--story-progress, 0) * -6px),
    calc(var(--story-progress, 0) * -12px),
    0
  );
}
.story-depth-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  color: #657784;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font:
    700 0.6rem ui-monospace,
    monospace;
}
.product-story-steps {
  border-top: 1px solid var(--line);
}
.product-story-step {
  min-height: 46vh;
  padding: 54px 4px 44px;
  border-bottom: 1px solid var(--line);
  position: relative;
  opacity: 0.46;
  transform: translate3d(18px, 0, 0);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.product-story-step > span {
  position: absolute;
  right: 0;
  top: 34px;
  font:
    800 3.6rem/1 ui-monospace,
    monospace;
  color: rgba(110, 133, 148, 0.1);
  transition:
    color 0.35s ease,
    transform 0.45s ease;
}
.product-story-step h2 {
  font-size: clamp(2rem, 3vw, 3.3rem);
  max-width: 720px;
}
.product-story-step p {
  max-width: 720px;
  color: #98a5af;
}
.product-story-step strong {
  color: #dfe7ec;
}
.product-story-step.is-motion-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.product-story-step.is-motion-active > span {
  color: rgba(255, 104, 75, 0.42);
  transform: translateX(-8px);
}
.product-story-step.is-motion-active .eyebrow {
  text-shadow: 0 0 15px rgba(255, 104, 75, 0.3);
}

/* Slightly richer continuous life in sticky product storytelling. */
.motion-enabled .product-story-visual::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(
    from 180deg,
    transparent,
    rgba(255, 104, 75, 0.045),
    transparent 28%,
    rgba(64, 202, 242, 0.035),
    transparent 52%
  );
  animation: storyAtmosphereSpin 18s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes storyAtmosphereSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .systems-map-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .systems-map-intro {
    position: relative;
    top: auto;
  }
  .systems-map-lines article {
    grid-template-columns: 150px 1fr;
  }
  .systems-map-lines article > strong {
    grid-column: 2;
  }
  .product-story-layout {
    grid-template-columns: 300px 1fr;
    gap: 34px;
  }
  .product-story-visual {
    min-height: 500px;
    height: 65vh;
  }
  .product-story-step {
    min-height: 42vh;
  }
}

@media (max-width: 760px) {
  .learning-path-svg {
    display: none;
  }
  .section-motif span:nth-child(n + 2) {
    display: none;
  }
  .section-motif span {
    right: -4%;
    font-size: 3rem;
    opacity: 0.75;
  }
  .systems-map-lines article {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 22px 0;
  }
  .systems-map-lines article > strong {
    grid-column: auto;
  }
  .product-story-section {
    padding: 58px 0 34px;
  }
  .product-story-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .product-story-visual {
    position: relative;
    top: auto;
    height: 390px;
    min-height: 0;
  }
  .story-cover {
    width: 44%;
    max-height: 70%;
  }
  .story-topic {
    font-size: 0.56rem;
    max-width: 42%;
  }
  .product-story-step {
    min-height: 0;
    padding: 32px 0;
    opacity: 1;
    transform: none;
  }
  .product-story-step > span {
    font-size: 2.3rem;
    top: 23px;
  }
  .product-story-step.is-motion-active > span {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-motif {
    display: none !important;
  }
  .learning-path-progress {
    stroke-dashoffset: 0 !important;
  }
  .product-story-visual {
    position: relative !important;
    top: auto !important;
  }
  .product-story-step {
    opacity: 1 !important;
    transform: none !important;
  }
  .story-cover,
  .story-topic {
    transform: none !important;
  }
  .product-story-visual::after {
    display: none !important;
  }
}
.learning-path-nodes circle.is-motion-active {
  fill: var(--accent);
  stroke: #ffd0c4;
  filter: drop-shadow(0 0 7px rgba(255, 104, 75, 0.55));
}

/* ==========================================================================
   FINAL FIDELITY + MOTION V3
   Keeps the approved Soryvenx visual system while hardening navigation and
   making Swift-specific motion visible, layered, and interaction-rich.
   ========================================================================== */

/* Navigation must remain above every visual/motion layer. */
.site-header {
  z-index: 220;
  isolation: isolate;
}
.header-inner {
  position: relative;
  z-index: 3;
}
.nav-links,
.header-tools,
.nav-toggle,
.brand {
  position: relative;
  z-index: 4;
  pointer-events: auto;
}
.nav-links a {
  padding: 23px 2px 21px;
}
.nav-links a[aria-current="page"] {
  color: #fff;
}
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
  opacity: 0.8;
}
.motion-atmosphere,
.tech-field,
.section-motif {
  pointer-events: none !important;
}
main {
  position: relative;
  z-index: 1;
}

/* Stronger approved technical hierarchy without changing the palette. */
.section-heading-row h2,
.module-section-head h2,
.principles-heading h2 {
  max-width: 940px;
}
.editorial-panel,
.legal-card,
.loading-panel,
.purchase-summary,
.contact-card {
  box-shadow:
    0 24px 65px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.018);
}
.page-hero,
.legal-hero,
.home-hero {
  isolation: isolate;
}
.page-hero-grid,
.legal-hero-grid,
.hero-grid {
  z-index: 2;
}

/* Scroll-drawn section dividers. The base divider remains readable without JS. */
.motion-enabled main > .section::after,
.motion-enabled main > .section-tight::after,
.motion-enabled [data-product-detail] .section::after,
.motion-enabled [data-product-detail] .section-tight::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 104, 75, 0.88) 18%,
    rgba(53, 200, 242, 0.58) 48%,
    rgba(194, 108, 255, 0.42) 72%,
    transparent 100%
  );
  transform: scaleX(var(--section-progress, 0));
  transform-origin: 0 50%;
  opacity: 0.42;
  filter: drop-shadow(0 0 5px rgba(255, 104, 75, 0.24));
  will-change: transform;
}

/* Hero entrance is a real masked composition reveal, not a generic fade-up. */
.motion-enabled .home-hero .hero-copy,
.motion-enabled .page-hero-grid > div:first-child,
.motion-enabled .legal-hero-grid > div:first-child {
  animation: heroCopyMask 0.92s cubic-bezier(0.2, 0.78, 0.2, 1) both;
}
.motion-enabled .home-hero .workbench,
.motion-enabled .page-hero .workbench,
.motion-enabled .legal-editor,
.motion-enabled .privacy-mini-editor,
.motion-enabled .contact-hero-visual,
.motion-enabled .refund-visual {
  animation: heroStageReveal 1.12s cubic-bezier(0.16, 0.84, 0.24, 1) 0.08s both;
}
@keyframes heroCopyMask {
  from {
    clip-path: inset(0 18% 0 0);
    transform: translate3d(-22px, 0, 0);
    filter: blur(3px);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}
@keyframes heroStageReveal {
  from {
    clip-path: inset(7% 6% 8% 8%);
    opacity: 0.25;
    filter: blur(7px);
    transform: perspective(1100px) translate3d(28px, 10px, 0) rotateY(-3.5deg) scale(0.975);
  }
  to {
    clip-path: inset(0);
    opacity: 1;
    filter: blur(0);
    transform: perspective(1100px) translate3d(0, 0, 0) rotateY(0) scale(1);
  }
}

/* Code itself stays readable while one line behaves like an active editor line. */
.code-lines .line {
  position: relative;
  border-radius: 2px;
  transition:
    background 0.28s ease,
    color 0.28s ease,
    transform 0.28s ease;
}
.code-lines .line::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: transparent;
  box-shadow: none;
  transition: 0.28s ease;
}
.code-lines .line.is-code-active {
  background: linear-gradient(
    90deg,
    rgba(255, 104, 75, 0.075),
    rgba(53, 200, 242, 0.024) 58%,
    transparent
  );
  transform: translateX(2px);
}
.code-lines .line.is-code-active::before {
  background: var(--accent);
  box-shadow: 0 0 9px rgba(255, 104, 75, 0.55);
}
.workbench .path-list::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 1px;
  height: 36%;
  background: linear-gradient(var(--accent), var(--cyan), transparent);
  box-shadow: 0 0 9px rgba(255, 104, 75, 0.38);
  animation: studyPathTrace 4.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes studyPathTrace {
  0% {
    transform: translateY(0) scaleY(0.2);
    opacity: 0.25;
  }
  45% {
    transform: translateY(74%) scaleY(1);
    opacity: 1;
  }
  100% {
    transform: translateY(175%) scaleY(0.3);
    opacity: 0;
  }
}
.path-step.active::after {
  content: "";
  position: absolute;
  left: -22px;
  top: -4px;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(255, 104, 75, 0.36);
  border-radius: 50%;
  animation: pathNodeOrbit 3.4s ease-in-out infinite;
}
@keyframes pathNodeOrbit {
  50% {
    transform: scale(1.38);
    opacity: 0.18;
  }
}

/* Magnetic buttons: subtle, premium, and still fully usable as native links. */
.motion-enabled .btn {
  --mag-x: 0px;
  --mag-y: 0px;
  --btn-y: 0px;
  transform: translate3d(var(--mag-x), calc(var(--mag-y) + var(--btn-y)), 0);
  will-change: transform;
}
.motion-enabled .btn:hover {
  --btn-y: -2px;
}
.motion-enabled .btn:active {
  --btn-y: 1px;
  transition-duration: 0.08s;
}
.motion-enabled .btn .ui-icon {
  transform: translateX(var(--arrow-x, 0px));
  transition: transform 0.2s ease;
}

/* Product cards: independent artwork plane + border trace + realistic depth. */
.motion-enabled .product-card {
  isolation: isolate;
}
.motion-enabled .product-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
      125deg,
      rgba(255, 104, 75, 0.78),
      transparent 30%,
      transparent 68%,
      rgba(53, 200, 242, 0.55)
    )
    border-box;
  mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.motion-enabled .product-card:hover::after {
  opacity: 0.62;
}
.motion-enabled .product-card:hover .cover-frame img {
  filter: saturate(1.08) contrast(1.035) drop-shadow(0 16px 22px rgba(0, 0, 0, 0.28));
}
.motion-enabled .product-card .product-price {
  transition:
    transform 0.28s ease,
    color 0.28s ease;
  text-shadow: none;
}
.motion-enabled .product-card:hover .product-price {
  transform: translateX(3px);
  color: #ff8a6d;
  text-shadow: 0 0 18px rgba(255, 104, 75, 0.18);
}

/* Product hero gains a technical orbit while the cover remains the real approved asset. */
.motion-enabled .product-cover-stage {
  isolation: isolate;
  overflow: visible;
}
.motion-enabled .product-cover-stage::before,
.motion-enabled .product-cover-stage::after {
  content: "";
  position: absolute;
  inset: 9% -7%;
  border: 1px solid rgba(255, 104, 75, 0.16);
  pointer-events: none;
  z-index: -1;
  transform: rotate(2deg);
  animation: productOrbitFrame 8s ease-in-out infinite;
}
.motion-enabled .product-cover-stage::after {
  inset: 15% -12%;
  border-color: rgba(53, 200, 242, 0.1);
  transform: rotate(-3deg);
  animation-delay: -4s;
  animation-direction: reverse;
}
@keyframes productOrbitFrame {
  50% {
    transform: rotate(-1.5deg) scale(1.025);
    opacity: 0.38;
  }
}

/* Sticky product storytelling changes its technical light as the active story changes. */
.product-story-section {
  --story-accent: #ff684b;
}
.product-story-visual {
  transition:
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}
.product-story-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--story-accent) 16%, transparent),
    transparent 63%
  );
  filter: blur(10px);
  transition: background 0.5s ease;
  animation: storyCoreBreathe 5.6s ease-in-out infinite;
}
@keyframes storyCoreBreathe {
  50% {
    transform: scale(1.08);
    opacity: 0.62;
  }
}
.product-story-section .story-paths path {
  stroke: color-mix(in srgb, var(--story-accent) 60%, transparent);
  transition: stroke 0.45s ease;
}
.product-story-section .story-cover {
  border-color: color-mix(in srgb, var(--story-accent) 55%, transparent);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.45),
    0 0 34px color-mix(in srgb, var(--story-accent) 15%, transparent);
  transition:
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    filter 0.35s ease;
}
.product-story-section .product-story-step.is-motion-active .eyebrow {
  color: var(--story-accent);
  transition: color 0.35s ease;
}
.product-story-section .product-story-step.is-motion-active > span {
  color: color-mix(in srgb, var(--story-accent) 52%, transparent);
}

/* Contact / refund hero objects remain separate animation layers, per the asset plan. */
.motion-enabled .contact-bubble {
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.32))
    drop-shadow(0 0 18px rgba(255, 104, 75, 0.055));
}
.motion-enabled .contact-hero-visual::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 13%;
  top: 52%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 104, 75, 0.38),
    rgba(53, 200, 242, 0.2),
    transparent
  );
  transform: rotate(-9deg) scaleX(0.78);
  animation: contactSignal 4.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes contactSignal {
  50% {
    transform: rotate(-5deg) scaleX(1);
    opacity: 0.35;
  }
}
.motion-enabled .refund-doc {
  filter: drop-shadow(0 25px 32px rgba(0, 0, 0, 0.34));
}
.motion-enabled .refund-arrow {
  filter: drop-shadow(0 0 12px rgba(255, 104, 75, 0.2));
}

/* Legal pages stay document-like, but the active reading surface is clearly alive. */
.motion-enabled .legal-card {
  position: relative;
  overflow: hidden;
}
.motion-enabled .legal-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, var(--accent), rgba(53, 200, 242, 0.45), transparent);
  transform: translateY(calc((var(--page-progress, 0) * 180%) - 70%));
  opacity: 0.34;
  pointer-events: none;
  will-change: transform;
}
.content-nav a[aria-current="location"],
.content-nav a.is-motion-active {
  font-weight: 650;
}

/* FAQ motion: content remains native <details>, but response is more intentional. */
.faq-item {
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}
.faq-item[open] {
  border-color: rgba(255, 104, 75, 0.38);
  background: linear-gradient(135deg, rgba(255, 104, 75, 0.045), rgba(12, 25, 34, 0.82));
  transform: translateY(-1px);
}
.faq-item summary::after {
  transition:
    transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.25s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}
.faq-item[open] p {
  animation: faqMaskIn 0.42s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}
@keyframes faqMaskIn {
  from {
    clip-path: inset(0 0 100%);
    transform: translateY(-5px);
  }
  to {
    clip-path: inset(0);
    transform: none;
  }
}

/* Footer is an intentional end state, matching the mockups' technical divider language. */
.site-footer {
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 3%,
    rgba(255, 104, 75, 0.42) 25%,
    rgba(92, 120, 138, 0.22) 57%,
    transparent 96%
  );
}
.footer-links a {
  position: relative;
}
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.footer-links a:hover::after,
.footer-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile: preserve identity while avoiding expensive perspective/cursor work. */
@media (max-width: 760px) {
  .nav-links {
    z-index: 250;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
  }
  .nav-links a {
    padding: 13px 12px;
  }
  .motion-enabled .btn {
    transform: translate3d(0, var(--btn-y, 0px), 0) !important;
  }
  .motion-enabled .product-cover-stage::before,
  .motion-enabled .product-cover-stage::after {
    inset: 11% 2%;
    animation-duration: 11s;
  }
  .motion-enabled .contact-hero-visual::after {
    opacity: 0.22;
  }
  .motion-enabled main > .section::after,
  .motion-enabled main > .section-tight::after {
    opacity: 0.26;
  }
  .code-lines .line.is-code-active {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-enabled .home-hero .hero-copy,
  .motion-enabled .page-hero-grid > div:first-child,
  .motion-enabled .legal-hero-grid > div:first-child,
  .motion-enabled .home-hero .workbench,
  .motion-enabled .page-hero .workbench,
  .motion-enabled .legal-editor,
  .motion-enabled .privacy-mini-editor,
  .motion-enabled .contact-hero-visual,
  .motion-enabled .refund-visual {
    animation: none !important;
    clip-path: none !important;
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .workbench .path-list::after,
  .path-step.active::after,
  .product-cover-stage::before,
  .product-cover-stage::after,
  .contact-hero-visual::after,
  .product-story-visual::before {
    animation: none !important;
    display: none !important;
  }
  .code-lines .line.is-code-active {
    background: transparent !important;
    transform: none !important;
  }
  .code-lines .line.is-code-active::before {
    display: none !important;
  }
  .motion-enabled main > .section::after,
  .motion-enabled main > .section-tight::after,
  .motion-enabled [data-product-detail] .section::after,
  .motion-enabled [data-product-detail] .section-tight::after {
    display: none !important;
  }
  .motion-enabled .btn {
    transform: none !important;
  }
}

/* ==========================================================================\n   SORYVENX V5 — consolidated production structure\n   One authoritative layer for navigation, footer, legal pages and concise\n   product pages. Older iterative layout patches were removed.\n   ========================================================================== */

[id] {
  scroll-margin-top: calc(var(--header-live-h, var(--header-h)) + 20px);
}
#catalog,
#curriculum,
#faq,
#latest-updates {
  scroll-margin-top: calc(var(--header-live-h, var(--header-h)) + 22px);
}

/* Header / navigation ----------------------------------------------------- */
.site-header {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 1400;
  isolation: isolate;
  overflow: visible;
  background: rgba(7, 16, 24, 0.9);
  border-bottom: 1px solid rgba(111, 139, 157, 0.17);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    height 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.site-header.is-scrolled {
  height: 54px;
  background: rgba(7, 16, 24, 0.97);
  border-bottom-color: rgba(111, 139, 157, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}
.site-header::before,
.site-header::after,
.header-inner::before,
.header-inner::after {
  pointer-events: none !important;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 3;
}
.site-header .brand,
.site-header .brand img,
.site-header .nav-links a {
  transition:
    font-size 0.22s ease,
    width 0.22s ease,
    height 0.22s ease,
    padding 0.22s ease,
    color 0.18s ease;
}
.site-header.is-scrolled .brand {
  font-size: 1rem;
}
.site-header.is-scrolled .brand img {
  width: 23px;
  height: 23px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.45vw, 24px);
  margin-left: auto;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-header:not(.nav-fit-collapse) .nav-links {
  display: flex !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  max-width: none !important;
  z-index: 5 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}
.site-header:not(.nav-fit-collapse) .nav-links a {
  position: relative;
  z-index: 6;
  pointer-events: auto !important;
  white-space: nowrap;
  font-size: clamp(0.7rem, 0.72vw, 0.82rem);
  padding: 23px 1px 21px;
}
.site-header.is-scrolled:not(.nav-fit-collapse) .nav-links a {
  padding: 16px 1px 15px;
}
.nav-links a[aria-current] {
  color: #fff;
}
.nav-links a[aria-current]::after {
  transform: scaleX(1);
  transform-origin: left;
  opacity: 0.9;
}
.site-header .brand,
.site-header .nav-toggle {
  position: relative;
  z-index: 8;
  pointer-events: auto;
}
.site-header:not(.nav-fit-collapse) .nav-toggle {
  display: none !important;
}
.site-header.nav-fit-collapse .nav-toggle {
  display: grid !important;
  place-items: center !important;
  margin-left: auto;
  flex: 0 0 auto;
}

/* Dedicated mobile/tablet panel: never reuses desktop geometry. */
.site-header.nav-fit-collapse .nav-links {
  display: flex !important;
  position: fixed !important;
  top: calc(var(--header-live-h, var(--header-h)) + 10px) !important;
  left: 12px !important;
  right: 12px !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  max-height: calc(100dvh - var(--header-live-h, var(--header-h)) - 22px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  padding: 10px !important;
  gap: 2px !important;
  flex-direction: column !important;
  align-items: stretch !important;
  background: rgba(8, 18, 26, 0.99) !important;
  border: 1px solid rgba(105, 132, 149, 0.32) !important;
  border-radius: 8px !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.58) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1450 !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-8px) scale(0.985) !important;
  transform-origin: top center;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease !important;
}
.site-header.nav-fit-collapse .nav-links.open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}
.site-header.nav-fit-collapse .nav-links a {
  width: 100% !important;
  padding: 14px 13px !important;
  border-radius: 5px !important;
  font-size: 0.9rem !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}
.site-header.nav-fit-collapse .nav-links a:hover,
.site-header.nav-fit-collapse .nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1390;
  background: rgba(2, 8, 12, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
}
.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.nav-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
@media (min-width: 981px) {
  .site-header.nav-fit-collapse .nav-links {
    left: auto !important;
    right: 24px !important;
    width: min(390px, calc(100vw - 48px)) !important;
  }
}
@media (max-width: 760px) {
  .site-header.is-scrolled {
    height: 52px;
  }
  .site-header.nav-fit-collapse .nav-links {
    left: 10px !important;
    right: 10px !important;
    top: calc(var(--header-live-h, var(--header-h)) + 8px) !important;
  }
}

/* Homepage content rhythm / active anchors -------------------------------- */
.mission-grid {
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr) !important;
  gap: clamp(28px, 5vw, 72px) !important;
  align-items: start !important;
  padding-block: 6px !important;
}
.mission-copy {
  max-width: 720px !important;
}
.mission-copy p {
  font-size: clamp(0.92rem, 1.25vw, 1.08rem) !important;
  line-height: 1.72 !important;
  margin: 0 !important;
}
.workflow-layout {
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr) !important;
  gap: clamp(30px, 5vw, 72px) !important;
}
.workflow-intro p {
  max-width: 560px;
}
.workflow-step {
  padding-block: 20px !important;
}
.latest-updates-section {
  overflow: hidden;
}
.latest-updates-section::before {
  content: "update / changelog";
  position: absolute;
  right: 4%;
  top: 22px;
  color: rgba(113, 137, 153, 0.08);
  font:
    800 clamp(3rem, 8vw, 8rem)/1 ui-monospace,
    monospace;
  letter-spacing: -0.08em;
  pointer-events: none;
}
.latest-updates-section .section-heading-row {
  margin-bottom: 20px !important;
}
.updates-timeline {
  border-top: 1px solid var(--line);
  position: relative;
}
.updates-timeline article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 36px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.updates-timeline article::before {
  content: "";
  position: absolute;
  left: 168px;
  top: 30px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255, 104, 75, 0.45);
}
.updates-timeline time {
  color: var(--accent);
  font:
    700 0.78rem ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.updates-timeline h3 {
  font-size: 1.25rem;
}
.updates-timeline p {
  color: var(--muted);
  max-width: 900px;
  margin: 0;
}
.updates-timeline code {
  color: #d9e7ee;
  background: #0d1922;
  border: 1px solid var(--line);
  padding: 0.08em 0.35em;
  border-radius: 3px;
}
.faq-grid {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  max-width: 980px;
  margin: 0 auto;
}
.faq-head {
  max-width: 980px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.faq-item {
  border-radius: 4px !important;
  background: rgba(13, 24, 33, 0.58) !important;
}
.faq-item summary {
  padding: 17px 20px !important;
  font-size: 0.88rem !important;
}
.faq-item p {
  padding: 0 20px 18px !important;
  font-size: 0.8rem !important;
  max-width: 860px;
}
.final-cta-panel {
  padding: clamp(28px, 4vw, 48px) !important;
}

/* About ------------------------------------------------------------------ */
.about-intro-section {
  padding: 66px 0 52px;
  border-top: 0;
  position: relative;
  overflow: hidden;
}
.about-intro-section::before {
  content: "ABOUT / SORYVENX";
  position: absolute;
  right: 4%;
  top: 26px;
  color: rgba(113, 137, 153, 0.055);
  font:
    800 clamp(2.8rem, 7vw, 7rem)/1 ui-monospace,
    monospace;
  letter-spacing: -0.08em;
  pointer-events: none;
}
.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.55fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: end;
}
.about-intro-copy {
  max-width: 790px;
  position: relative;
  z-index: 1;
}
.about-intro-copy h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  max-width: 820px;
  margin-bottom: 20px;
}
.about-intro-copy .lead {
  max-width: 690px;
  margin-bottom: 0;
}
.about-facts {
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.about-fact {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.about-fact span {
  font:
    700 0.67rem/1.3 ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7f8d98;
}
.about-fact strong {
  font-size: 0.87rem;
  color: #dce4e9;
  font-weight: 650;
}
.about-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
.about-story h2 {
  font-size: clamp(2rem, 3vw, 3.25rem);
  max-width: 520px;
}
.about-story-copy {
  max-width: 700px;
}
.about-story-copy p {
  color: #aab6bf;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 15px;
}
.about-method,
.about-principles-list {
  max-width: 1000px;
  margin: 0 auto;
}
.about-method-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.about-method-row:first-child {
  border-top: 1px solid var(--line-soft);
}
.about-method-row > span {
  font:
    750 0.72rem/1.3 ui-monospace,
    monospace;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.about-method-row h3 {
  font-size: 1rem;
  margin: 0;
}
.about-method-row p {
  color: #95a3ae;
  font-size: 0.83rem;
  line-height: 1.65;
  margin: 0;
  max-width: 680px;
}
.about-principles-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.about-principle-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
  gap: 34px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}
.about-principle-row h3 {
  margin: 0;
  font-size: 1rem;
}
.about-principle-row p {
  margin: 0;
  color: #98a6b0;
  font-size: 0.84rem;
  line-height: 1.65;
  max-width: 720px;
}
.about-note {
  margin-top: 24px;
  color: #768692;
  font-size: 0.76rem;
}

/* Legal pages ------------------------------------------------------------ */
.policy-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.27fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}
.policy-sidebar {
  position: sticky;
  top: calc(var(--header-live-h, var(--header-h)) + 24px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 23, 32, 0.76);
  padding: 18px;
}
.policy-sidebar a {
  color: #b9c4cc;
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 400;
}
.policy-sidebar a:hover,
.policy-sidebar a:focus-visible {
  color: var(--accent-2);
}
.policy-document {
  min-width: 0;
}
.policy-section {
  padding: 0 0 34px;
  margin: 0 0 34px;
  border-bottom: 1px solid var(--line-soft);
}
.policy-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
.policy-section h2 {
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  margin: 0 0 18px;
}
.policy-section p,
.policy-section li {
  color: #b1bec7;
  font-size: 0.92rem;
  line-height: 1.78;
}
.policy-section p {
  margin: 0 0 14px;
}
.policy-section ul,
.policy-section ol {
  margin: 10px 0 18px;
  padding-left: 24px;
}
.policy-section li {
  margin: 7px 0;
}
.policy-section a {
  color: var(--accent-2);
  text-underline-offset: 3px;
  font-weight: 400;
}
.policy-section a:hover,
.policy-section a:focus-visible {
  color: #fff;
}
.policy-updated {
  font:
    700 0.72rem/1.4 ui-monospace,
    monospace !important;
  color: #8f9ca6 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.policy-intro {
  padding-top: 0;
}
.policy-document .policy-brand {
  font-weight: 800;
  color: #eef4f7;
}
.policy-document .policy-editable {
  font-weight: 800;
  color: #d8edf2;
  background: rgba(53, 200, 242, 0.06);
  border-bottom: 1px solid rgba(53, 200, 242, 0.3);
  padding: 0 0.15em;
}

/* Product page: strong old visual hierarchy, much shorter content ---------- */
.product-copy {
  max-width: 720px !important;
}
.compact-module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.product-module-card {
  grid-template-columns: 42px minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: 74px !important;
  padding: 14px 16px !important;
}
.product-module-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
}
.product-module-card .module-no {
  font-size: 0.78rem;
}
.product-more-modules {
  max-width: 980px;
  margin-top: 12px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.curriculum-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-soft);
}
.curriculum-row:last-child {
  border-bottom: 0;
}
.curriculum-row > span {
  color: var(--accent);
  font:
    700 0.72rem/1 ui-monospace,
    monospace;
  letter-spacing: 0.06em;
}
.curriculum-row > strong {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #dce4e9;
}
.curriculum-more summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 2px;
  color: var(--accent-2);
  font-weight: 750;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.curriculum-more summary::-webkit-details-marker {
  display: none;
}
.curriculum-more summary::after {
  content: "+";
  font-size: 1rem;
  color: #91a0ab;
}
.curriculum-more[open] summary::after {
  content: "−";
}
.curriculum-more-list {
  border-top: 1px solid var(--line-soft);
}
.product-fit-outcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}
.product-fit-card,
.product-outcome-card {
  border: 1px solid var(--line);
  background: rgba(12, 24, 33, 0.7);
  padding: clamp(22px, 3vw, 30px);
  border-radius: 6px;
}
.product-fit-card h2,
.product-outcome-card h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.55rem);
  margin-bottom: 22px;
}
.fit-line {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.fit-line > span {
  display: block;
  color: #7f8d98;
  font:
    700 0.66rem/1.35 ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}
.fit-line h3 {
  font-size: 0.98rem;
  margin-bottom: 7px;
}
.fit-line p {
  color: #9cabb5;
  font-size: 0.84rem;
  line-height: 1.65;
  margin: 0;
}
.product-outcome-list {
  margin: 0;
  padding-left: 20px;
  color: #aeb9c1;
}
.product-outcome-list li {
  margin: 10px 0;
  font-size: 0.86rem;
  line-height: 1.55;
}
.product-outcome-list strong {
  color: #e4ebef;
}
.product-example-final-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: stretch;
}
.product-example-compact {
  border: 1px solid var(--line);
  background: rgba(12, 24, 33, 0.58);
  padding: clamp(22px, 3vw, 30px);
  border-radius: 6px;
}
.product-example-compact h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.7rem);
}
.product-example-compact > p {
  color: #aeb9c1;
  font-size: 0.88rem;
  line-height: 1.65;
}
.product-final-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 104, 75, 0.07), rgba(255, 255, 255, 0.015));
  padding: 24px;
  margin-top: 22px;
}
.product-final-compact h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  margin-bottom: 10px;
}
.product-final-compact p {
  margin-bottom: 0;
}
.final-product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.compact-related-wrap {
  margin-top: 24px;
}
.compact-related-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
  color: #7f8d98;
  font:
    700 0.69rem/1.3 ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.compact-related-label a {
  color: var(--accent-2);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}
.related-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 640px;
  gap: 12px;
}

/* Footer / contact ------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  padding: 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 3%,
    rgba(255, 104, 75, 0.42) 25%,
    rgba(92, 120, 138, 0.22) 57%,
    transparent 96%
  );
}
.footer-main {
  width: min(calc(100% - 48px), 1180px) !important;
  display: grid !important;
  grid-template-columns: minmax(360px, 1.25fr) minmax(170px, 0.48fr) minmax(240px, 0.72fr) !important;
  gap: clamp(46px, 7vw, 90px) !important;
  align-items: start !important;
  padding: 44px 0 34px !important;
}
.footer-contact,
.footer-nav,
.footer-policies {
  min-width: 0;
}
.footer-heading {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
  color: #7f8d98;
  margin: 0 0 12px !important;
}
.footer-nav-grid,
.footer-policies {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
  width: 100%;
}
.footer-nav a,
.footer-policies a {
  display: block;
  width: max-content;
  max-width: 100%;
  color: #c7d0d7;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.45;
  position: relative;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}
.footer-nav a[aria-current],
.footer-policies a[aria-current] {
  color: #fff;
}
.footer-nav a::after,
.footer-policies a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.24s ease;
  opacity: 0.85;
}
.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-nav a[aria-current]:hover,
.footer-nav a[aria-current]:focus-visible,
.footer-policies a:hover,
.footer-policies a:focus-visible,
.footer-policies a[aria-current]:hover,
.footer-policies a[aria-current]:focus-visible {
  color: var(--accent-2) !important;
  transform: translateX(2px);
}
.footer-nav a:hover::after,
.footer-nav a:focus-visible::after,
.footer-policies a:hover::after,
.footer-policies a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.contact-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}
.contact-lines p {
  margin: 0 !important;
  color: #aeb9c1 !important;
  font-size: 0.79rem !important;
  line-height: 1.55 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere;
}
.contact-lines p strong:not([data-contact-field]) {
  color: #e3e9ed;
  font-weight: 700;
}
.contact-lines .owner-line {
  margin-bottom: 3px !important;
  color: #c5ced5 !important;
}
.contact-lines [data-contact-field] {
  display: inline;
  font-weight: 700;
  color: #dbe8ed;
}
.contact-lines [data-contact-field].editable-placeholder {
  padding: 0.05em 0.3em;
  border-bottom: 1px solid rgba(53, 200, 242, 0.3);
  background: rgba(53, 200, 242, 0.045);
  color: #b9e0e8;
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.contact-page-lines {
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.contact-page-lines p {
  font-size: 0.92rem !important;
}
.footer-contact-lines {
  max-width: 430px;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  min-height: 24px;
}
.footer-social-link {
  display: grid;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  text-decoration: none !important;
  overflow: hidden !important;
  line-height: 0 !important;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    opacity 0.18s ease;
}
.footer-social-link img {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}
.footer-social-link:hover,
.footer-social-link:focus-visible {
  transform: translateY(-1px) scale(1.08);
  filter: brightness(1.08);
}
.footer-social-link.is-placeholder {
  opacity: 0.78;
}
.footer-social-link.is-placeholder:hover,
.footer-social-link.is-placeholder:focus-visible {
  opacity: 1;
}
.footer-bottom {
  width: min(calc(100% - 48px), 1180px);
  border-top: 1px solid var(--line-soft);
  padding: 16px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: #697985;
  font-size: 0.68rem;
}
.footer-bottom span:last-child {
  text-align: right;
}

/* Back to top ------------------------------------------------------------ */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(111, 139, 157, 0.3);
  background: rgba(10, 20, 28, 0.92);
  color: #dce4e9;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease,
    background 0.18s ease,
    border-color 0.18s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: #10202b;
  border-color: rgba(53, 200, 242, 0.55);
  color: var(--accent-2);
}

/* Performance budget ---------------------------------------------------- */
.motion-paused .workbench,
.motion-paused .workbench::after,
.motion-paused .tech-field,
.motion-paused .tech-field::before,
.motion-paused .tech-field::after,
.motion-paused .product-card .cover-frame img,
.motion-paused .featured-cover-wrap,
.motion-paused .product-cover-stage img,
.motion-paused .contact-bubble,
.motion-paused .contact-hero-visual::after,
.motion-paused .refund-doc,
.motion-paused .refund-arrow,
.motion-paused .loading-center::before,
.motion-paused .loading-center::after,
.motion-paused .handoff-ring,
.motion-paused .order-summary img {
  animation-play-state: paused !important;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .about-intro-grid,
  .about-story {
    grid-template-columns: 1fr;
  }
  .about-facts {
    max-width: 650px;
  }
  .policy-layout {
    grid-template-columns: 1fr;
  }
  .policy-sidebar {
    position: relative;
    top: auto;
    display: flex;
    flex-direction: column;
  }
  .footer-main {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 38px 0 30px !important;
  }
  .footer-nav,
  .footer-policies {
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
  .product-fit-outcome-grid,
  .product-example-final-grid {
    grid-template-columns: 1fr;
  }
  .product-final-compact {
    grid-template-columns: 1fr;
  }
  .final-product-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 760px) {
  .mission-grid,
  .workflow-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .faq-grid,
  .faq-head {
    max-width: none;
  }
  .updates-timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 22px !important;
  }
  .updates-timeline article::before {
    left: 0;
    top: 30px;
  }
  .about-method-row {
    grid-template-columns: 44px 1fr;
    gap: 12px 16px;
  }
  .about-method-row p {
    grid-column: 2;
  }
  .about-principle-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .about-fact {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .compact-module-grid {
    grid-template-columns: 1fr;
  }
  .curriculum-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .related-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
  .product-final-compact {
    padding: 20px;
  }
  .final-product-actions {
    display: grid;
  }
  .final-product-actions .btn {
    width: 100%;
  }
  .compact-related-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .footer-main,
  .footer-bottom {
    width: min(calc(100% - 28px), 1180px) !important;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .footer-bottom span:last-child {
    text-align: left;
  }
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
  .motion-atmosphere {
    display: none !important;
  }
  .motion-enabled .product-card .cover-frame img {
    animation: none !important;
  }
}
@media (max-width: 430px) {
  .related-grid-compact {
    grid-template-columns: 1fr 1fr;
  }
  .footer-social-link {
    width: 24px !important;
    height: 24px !important;
  }
  .footer-social-link img {
    width: 20px !important;
    height: 20px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header .brand,
  .site-header .brand img,
  .site-header .nav-links,
  .site-header .nav-links a,
  .nav-backdrop,
  .back-to-top,
  .footer-social-link,
  .footer-nav a,
  .footer-policies a {
    transition: none !important;
  }
  .footer-social-link,
  .footer-nav a,
  .footer-policies a {
    transform: none !important;
  }
}

/* Retained guide page design */
body.guide-page main {
  color-scheme: dark;
  --bg: #0a141c;
  --panel: #101f2a;
  --ink: #edf3f6;
  --muted: #abbac5;
  --line: #2c3e4b;
  --accent: #ff704e;
  --shell: 1240px;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
}
body.guide-page main * {
  box-sizing: border-box;
}
body.guide-page main a {
  color: inherit;
  text-underline-offset: 5px;
}
body.guide-page main a:hover {
  color: var(--accent);
}
body.guide-page main button,
body.guide-page main a {
  -webkit-tap-highlight-color: transparent;
}
body.guide-page main button,
body.guide-page main input {
  font: inherit;
}
body.guide-page main button {
  cursor: pointer;
}
body.guide-page main img,
body.guide-page main svg {
  max-width: 100%;
  display: block;
}
body.guide-page main img {
  height: auto;
}
body.guide-page main pre {
  max-width: 100%;
  overflow: auto;
}
body.guide-page main h1,
body.guide-page main h2,
body.guide-page main h3,
body.guide-page main p {
  margin-top: 0;
}
body.guide-page main h1,
body.guide-page main h2,
body.guide-page main h3 {
  line-height: 1.12;
  letter-spacing: -0.04em;
}
body.guide-page main h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  margin-bottom: 1.5rem;
}
body.guide-page main h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.5rem;
}
body.guide-page main h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
body.guide-page main p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}
body.guide-page main a:focus-visible,
body.guide-page main button:focus-visible,
body.guide-page main summary:focus-visible {
  outline: 3px solid #7bd8fb;
  outline-offset: 5px;
}
body.guide-page main .shell {
  width: min(var(--shell), calc(100% - 64px));
  margin-inline: auto;
}
body.guide-page main .section {
  padding-block: 88px;
}
body.guide-page main .section-bottom {
  padding-bottom: 88px;
}
body.guide-page main .band {
  background: #0e1b25;
  border-block: 1px solid var(--line);
}
body.guide-page main .eyebrow {
  font:
    600 0.8rem/1.5 ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}
body.guide-page main .lead {
  font-size: 1.2rem;
  max-width: 640px;
  line-height: 1.7;
}
body.guide-page main .micro {
  font-size: 0.875rem;
  margin: 1.5rem 0 0;
}
body.guide-page main .hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-block: 105px;
}
body.guide-page main .hero h1 span {
  color: var(--accent);
}
body.guide-page main .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
body.guide-page main .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  background: var(--accent);
  color: #14191b;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 5px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
body.guide-page main .button:hover {
  background: #ff8f73;
  color: #111;
}
body.guide-page main .button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #567080;
}
body.guide-page main .button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
body.guide-page main .text-link {
  display: inline-block;
  font-weight: 700;
}
body.guide-page main .code-window {
  border: 1px solid #3c5363;
  border-radius: 10px;
  overflow: hidden;
  background: #101f2a;
  box-shadow: 15px 18px 0 #14232d;
}
body.guide-page main .window-bar,
body.guide-page main .window-foot {
  padding: 16px 22px;
  font:
    0.8rem/1.6 ui-monospace,
    monospace;
  color: var(--muted);
  background: #142530;
}
body.guide-page main .window-bar {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
body.guide-page main .window-bar span {
  color: var(--accent);
  letter-spacing: 5px;
}
body.guide-page main .code-window pre {
  font:
    0.96rem/2 ui-monospace,
    monospace;
  padding: 24px;
  margin: 0;
}
body.guide-page main .code-comment {
  color: #8da6b7;
}
body.guide-page main .code-key {
  color: #80cce8;
}
body.guide-page main .code-string {
  color: #ff9b7e;
}
body.guide-page main .window-foot {
  border-top: 1px solid var(--line);
}
body.guide-page main .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
body.guide-page main .split p {
  margin-bottom: 24px;
}
body.guide-page main .section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}
body.guide-page main .section-heading h2 {
  margin-bottom: 0;
}
body.guide-page main .section-heading > p {
  margin: 0;
  max-width: 400px;
}
body.guide-page main .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
body.guide-page main .product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
body.guide-page main .product-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  color: inherit;
}
body.guide-page main .product-card img {
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
}
body.guide-page main .card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
body.guide-page main .card-body h3 {
  font-size: 1.45rem;
}
body.guide-page main .card-body p {
  font-size: 0.9375rem;
  flex: 1;
}
body.guide-page main .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
body.guide-page main .price {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.15rem;
}
body.guide-page main .card-action {
  font-size: 0.875rem;
  color: var(--accent);
}
body.guide-page main .section-action {
  margin-top: 32px;
  text-align: center;
}
body.guide-page main .benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 40px;
}
body.guide-page main .feature-icon {
  color: var(--accent);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: #1e2c33;
  border-radius: 8px;
  margin-bottom: 22px;
}
body.guide-page main .feature-icon svg {
  width: 26px;
  height: 26px;
}
body.guide-page main .benefit-grid p {
  font-size: 0.9375rem;
}
body.guide-page main .free-panel {
  padding: 48px;
  border: 1px solid #6f594c;
  border-radius: 8px;
  background: #1b252a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
body.guide-page main .free-panel h2 {
  margin-bottom: 16px;
}
body.guide-page main .free-panel p:last-child {
  margin-bottom: 0;
}
body.guide-page main .free-panel .button {
  flex-shrink: 0;
}
body.guide-page main .faq-list {
  border-top: 1px solid var(--line);
}
body.guide-page main details {
  border-bottom: 1px solid var(--line);
}
body.guide-page main summary {
  cursor: pointer;
  padding: 24px 42px 24px 0;
  position: relative;
  list-style: none;
  font-size: 1.08rem;
  line-height: 1.5;
}
body.guide-page main summary::-webkit-details-marker {
  display: none;
}
body.guide-page main summary:after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 23px;
  color: var(--accent);
  font-size: 1.4rem;
}
body.guide-page main details[open] > summary:after {
  content: "−";
}
body.guide-page main details > p {
  max-width: 900px;
  padding-right: 32px;
}
body.guide-page main .page-intro {
  padding-block: 72px 48px;
  max-width: var(--shell);
}
body.guide-page main .page-intro h1 {
  max-width: 950px;
}
body.guide-page main .prose {
  max-width: 850px;
}
body.guide-page main .prose h2 {
  font-size: 1.65rem;
  margin-top: 38px;
}
body.guide-page main .prose h3 {
  margin-top: 28px;
}
body.guide-page main .prose p,
body.guide-page main .prose li {
  color: var(--muted);
}
body.guide-page main .prose li {
  margin-bottom: 9px;
}
body.guide-page main .prose h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}
body.guide-page main .policy-original nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
}
body.guide-page main .policy-original section {
  margin-bottom: 30px;
}
body.guide-page main .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
body.guide-page main .panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
body.guide-page main .panel h2 {
  font-size: 1.5rem;
}
body.guide-page main .update-item {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-bottom: 35px;
}
body.guide-page main .update-item time {
  color: var(--accent);
  font:
    0.875rem ui-monospace,
    monospace;
}
body.guide-page main .curriculum-item {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 24px;
  background: var(--panel);
}
body.guide-page main .curriculum-item ul {
  columns: 2;
  column-gap: 45px;
  padding: 0 0 16px 22px;
  color: var(--muted);
}
body.guide-page main .curriculum-item li {
  break-inside: avoid;
  margin-bottom: 12px;
}
body.guide-page main .curriculum-item .text-link {
  margin-bottom: 24px;
}
body.guide-page main .product-hero {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 65px;
  align-items: start;
}
body.guide-page main .product-cover {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}
body.guide-page main .product-hero h1 {
  font-size: clamp(2.6rem, 4.5vw, 4.4rem);
}
body.guide-page main .product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0;
}
body.guide-page main .product-facts span {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.875rem;
  color: var(--muted);
}
body.guide-page main .purchase-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 24px 0 16px;
}
body.guide-page main .product-detail-section {
  margin-top: 70px;
}
body.guide-page main .module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  counter-reset: module;
}
body.guide-page main .module-grid li {
  display: flex;
  gap: 16px;
  align-items: start;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  counter-increment: module;
}
body.guide-page main .module-grid li:before {
  content: counter(module, decimal-leading-zero);
  color: var(--accent);
  font:
    0.9rem/1.7 ui-monospace,
    monospace;
}
body.guide-page main .product-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
body.guide-page main .product-notes h2 {
  font-size: 1.7rem;
}
body.guide-page main .loading-section {
  padding-block: 85px;
  min-height: 60vh;
  display: grid;
  place-items: center;
}
body.guide-page main .loading-card {
  text-align: center;
  padding: 48px;
  max-width: 740px;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
body.guide-page main .loading-card .actions {
  justify-content: center;
  margin-top: 24px;
}
body.guide-page main .status-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
}
body.guide-page main .spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 26px;
}
body.guide-page main .order-line {
  border-block: 1px solid var(--line);
  padding: 18px;
  margin-top: 24px;
}
body.guide-page main .error-panel {
  max-width: 800px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 40px;
  border-radius: 8px;
}
body.guide-page main .error-panel h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}
body.guide-page main .noscript {
  padding: 20px;
  background: #273846;
}
body.guide-page main [hidden] {
  display: none !important;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1100px) {
  body.guide-page main .hero {
    gap: 36px;
  }
  body.guide-page main .code-window pre {
    font-size: 0.8rem;
  }
}
@media (max-width: 1000px) {
  body.guide-page main .hero {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-block: 72px;
  }
  body.guide-page main .hero h1 {
    font-size: 3.5rem;
  }
  body.guide-page main .split {
    gap: 40px;
  }
  body.guide-page main .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.guide-page main .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.guide-page main .product-hero {
    gap: 32px;
  }
}
@media (max-width: 700px) {
  body.guide-page main .shell {
    width: calc(100% - 40px);
  }
  body.guide-page main .hero {
    grid-template-columns: 1fr;
    padding-block: 54px;
    gap: 40px;
  }
  body.guide-page main .hero h1 {
    font-size: clamp(2.8rem, 10.6vw, 4.3rem);
  }
  body.guide-page main .hero .lead {
    font-size: 1.0625rem;
  }
  body.guide-page main .code-window {
    box-shadow: 7px 8px 0 #14232d;
  }
  body.guide-page main .code-window pre {
    font-size: 0.82rem;
    padding: 20px;
  }
  body.guide-page main .section {
    padding-block: 54px;
  }
  body.guide-page main .section-bottom {
    padding-bottom: 54px;
  }
  body.guide-page main .split,
  body.guide-page main .contact-grid,
  body.guide-page main .product-hero,
  body.guide-page main .product-notes {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  body.guide-page main .section-heading {
    display: block;
  }
  body.guide-page main .section-heading > p {
    margin-top: 20px;
  }
  body.guide-page main .product-grid {
    gap: 18px;
  }
  body.guide-page main .card-body {
    padding: 18px;
  }
  body.guide-page main .card-body h3 {
    font-size: 1.2rem;
  }
  body.guide-page main .card-meta {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }
  body.guide-page main .benefit-grid {
    gap: 24px;
  }
  body.guide-page main .free-panel {
    padding: 28px;
    display: block;
  }
  body.guide-page main .free-panel .button {
    margin-top: 24px;
  }
  body.guide-page main .page-intro {
    padding-block: 48px 30px;
  }
  body.guide-page main .product-cover {
    max-width: 430px;
    margin-inline: auto;
  }
  body.guide-page main .module-grid {
    grid-template-columns: 1fr;
  }
  body.guide-page main .product-detail-section {
    margin-top: 45px;
  }
  body.guide-page main .curriculum-item ul {
    columns: 1;
  }
  body.guide-page main .loading-card,
  body.guide-page main .error-panel {
    padding: 28px 22px;
  }
  body.guide-page main .loading-section {
    padding-block: 50px;
  }
  body.guide-page main .panel {
    padding: 24px;
  }
  body.guide-page main .prose h2 {
    font-size: 1.5rem;
  }
  body.guide-page main .free-panel h2 {
    font-size: 2rem;
  }
  body.guide-page main .window-foot {
    font-size: 0.75rem;
  }
  body.guide-page main summary {
    font-size: 1rem;
  }
}
@media (max-width: 430px) {
  body.guide-page main .product-grid {
    grid-template-columns: 1fr;
  }
  body.guide-page main .benefit-grid {
    grid-template-columns: 1fr;
  }
  body.guide-page main .benefit-grid article {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0 18px;
  }
  body.guide-page main .benefit-grid .feature-icon {
    grid-row: 1/3;
  }
  body.guide-page main .benefit-grid h3 {
    margin-bottom: 10px;
  }
  body.guide-page main .benefit-grid p {
    margin-bottom: 8px;
  }
  body.guide-page main .hero .actions {
    align-items: stretch;
    flex-direction: column;
  }
  body.guide-page main .code-window pre {
    font-size: 0.74rem;
  }
  body.guide-page main .window-bar,
  body.guide-page main .window-foot {
    padding-inline: 16px;
  }
  body.guide-page main .product-hero h1 {
    font-size: 2.6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.guide-page main *,
  body.guide-page main *:before,
  body.guide-page main *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* Shared footer icon alignment; original footer typography is retained. */
.footer-socials {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.footer-social-link {
  display: grid !important;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.footer-social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.9);
}
.restored-action {
  text-align: center;
  margin-top: 32px;
}
.restored-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.restored-benefits article {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
}
.restored-benefit-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 20px;
}
.restored-page-intro {
  padding-top: 80px;
  padding-bottom: 40px;
}
.restored-page-body {
  padding-bottom: 80px;
}
.restored-prose {
  max-width: 1000px;
}
.restored-update {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  margin-bottom: 24px;
}
.restored-curriculum {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.restored-curriculum summary {
  cursor: pointer;
  font-weight: 700;
}
.restored-curriculum ul {
  color: var(--muted);
  line-height: 1.8;
}
body.guide-page main {
  --ink: #edf3f6;
  --shell: 1240px;
  color: var(--ink);
}
body.guide-page main h1,
body.guide-page main h2 {
  max-width: none;
}
@media (max-width: 1000px) {
  .site-header {
    transform: none !important;
    backdrop-filter: none !important;
  }
  .site-header .header-inner {
    transform: none !important;
  }
  .site-header .nav-links {
    display: none !important;
  }
  .site-header .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .site-header .nav-links.open {
    display: flex !important;
    position: fixed !important;
    top: var(--header-live-h, 72px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    max-height: calc(100dvh - var(--header-live-h, 72px)) !important;
    overflow-y: auto !important;
    transform: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: #101d27 !important;
    padding: 16px 24px !important;
    z-index: 100 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .site-header .nav-links.open a {
    padding: 14px 8px !important;
    white-space: normal !important;
  }
  body.nav-open {
    overflow: hidden !important;
  }
  .restored-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .restored-benefits {
    grid-template-columns: 1fr;
  }
  .restored-page-intro {
    padding-top: 44px;
  }
}

/* Center the five-guide home collection without changing the full catalog. */
#catalog .section-heading-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
#catalog .section-heading-row > p {
  max-width: 620px;
  margin: 0 auto;
}
#catalog .section-heading-row h2 {
  margin-inline: auto;
}
#catalog .catalog-grid[data-limit="5"] {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 210px));
  justify-content: center;
  gap: 24px;
  max-width: 1146px;
  margin-inline: auto;
}
#catalog .restored-action {
  margin-top: 36px;
}

/* Free guide: existing cover, balanced copy and a natural-sized action. */
.free-guide-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 650px);
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 88px);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(255, 104, 75, 0.32);
  background:
    radial-gradient(ellipse at 18% 50%, rgba(255, 104, 75, 0.1), transparent 48%),
    linear-gradient(135deg, #111b24, #0a1720);
  overflow: hidden;
}
.free-guide-art {
  width: 100%;
  max-width: 260px;
  margin-inline: auto;
}
.free-guide-art a {
  display: block;
}
.free-guide-art img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #45525a;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.4),
    0 0 35px rgba(255, 104, 75, 0.07);
}
.free-guide-copy {
  min-width: 0;
}
.free-guide-copy h2 {
  margin: 12px 0 20px;
}
.free-guide-copy > p {
  max-width: 570px;
  color: var(--muted);
}
.free-guide-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}
.free-guide-facts span {
  border: 1px solid var(--line);
  padding: 6px 11px;
  font-size: 0.85rem;
  color: var(--muted);
}
.free-guide-copy .btn {
  display: inline-flex;
  width: auto;
  min-height: 48px;
  height: auto;
  padding: 14px 24px;
}

/* Two compact editorial panels in the original Soryvenx palette. */
.updates-intro {
  text-align: center;
  padding-bottom: 38px;
}
.updates-intro h1 {
  font-size: clamp(2.3rem, 4.5vw, 4.2rem);
  max-width: 950px;
  margin-inline: auto;
}
.updates-intro .lead {
  margin-inline: auto;
}
.updates-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 1120px;
}
.catalog-update {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  background: linear-gradient(135deg, #11212c, #0b1720);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
}
.catalog-update:nth-child(2) {
  border-top-color: var(--cyan);
}
.update-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.update-topline .eyebrow {
  margin: 0;
}
.update-number {
  color: var(--muted-2);
  font:
    500 1.1rem ui-monospace,
    monospace;
}
.catalog-update h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  margin: 0 0 18px;
}
.catalog-update p {
  color: var(--muted);
  margin: 0 0 28px;
}
.update-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
}
.catalog-update:nth-child(2) .update-link {
  color: var(--cyan);
}
@media (max-width: 1000px) {
  #catalog .catalog-grid[data-limit="5"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  #catalog .catalog-grid[data-limit="5"] > .product-card {
    flex: 0 1 calc((100% - 48px) / 3);
    max-width: 230px;
  }
  .free-guide-feature {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 32px;
  }
}
@media (max-width: 650px) {
  #catalog .catalog-grid[data-limit="5"] {
    gap: 18px;
  }
  #catalog .catalog-grid[data-limit="5"] > .product-card {
    flex-basis: calc((100% - 18px) / 2);
  }
  .free-guide-feature {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .free-guide-art {
    max-width: 200px;
  }
  .free-guide-facts {
    justify-content: center;
  }
  .free-guide-copy > p {
    margin-inline: auto;
  }
  .updates-pair {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 380px) {
  #catalog .catalog-grid[data-limit="5"] > .product-card {
    flex-basis: 100%;
    max-width: 250px;
  }
}
