/* Foldnex for Mac & Chrome — Authentic Apple / Teslatlas Design System */
:root {
  color-scheme: light;
  --ink: #111321;
  --muted: #686b7c;
  --blue: #4059e8;
  --blue-hover: #3346b8;
  --blue-tint: #ebedfc;
  --paper: #fbfbfd;
  --navy: #090e20;
  --line: #e6e7ee;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* Isolate foldnex from Magrathean site layout and canvas */
html:has(.foldnex-page) {
  background: var(--paper) !important;
}

body:has(.foldnex-page),
body:has(.foldnex-legal-page) {
  background: var(--paper) !important;
  color: var(--ink) !important;
}

body:has(.foldnex-page) #main-content,
body:has(.foldnex-legal-page) #main-content,
html[data-daylight-text] #main-content:has(.foldnex-page),
html[data-daylight-text] #main-content:has(.foldnex-legal-page) {
  background: transparent !important;
  background-color: transparent !important;
  padding-top: 0 !important;
}

html[data-daylight-text] #main-content .foldnex-page {
  background: var(--paper) !important;
  background-color: #fbfbfd !important;
  color: var(--ink) !important;
}

body:has(.foldnex-page) .site-navbar,
body:has(.foldnex-legal-page) .site-navbar,
body:has(.foldnex-page) .site-day-night-button,
body:has(.foldnex-legal-page) .site-day-night-button,
body:has(.foldnex-page) .world-pilot,
body:has(.foldnex-legal-page) .world-pilot,
body:has(.foldnex-page) #bg,
body:has(.foldnex-legal-page) #bg,
body:has(.foldnex-page) .hero-starfield,
body:has(.foldnex-legal-page) .hero-starfield,
body:has(.foldnex-page) .wave-canvas,
body:has(.foldnex-legal-page) .wave-canvas,
body:has(.foldnex-page) .wave-scrim,
body:has(.foldnex-legal-page) .wave-scrim,
body:has(.foldnex-page) canvas,
body:has(.foldnex-legal-page) canvas {
  display: none !important;
}

/* ==========================================================================
   DAYLIGHT ISOLATION & HIGH-SPECIFICITY OVERRIDES
   Guarantees zero white-on-white text in night mode or any daylight theme.
   ========================================================================== */

/* 1. All headings on light surfaces */
html[data-daylight-text] #main-content .foldnex-page :is(h1, h2, h3, h4, h5, h6):not(.story-section *, .full-access *, .image-dialog *) {
  color: #111321 !important;
  -webkit-text-fill-color: #111321 !important;
  background-image: none !important;
}

/* 2. Heading accents (spans) on light surfaces */
html[data-daylight-text] #main-content .foldnex-page :is(h1, h2, h3, h4, h5, h6):not(.story-section *, .full-access *, .image-dialog *) span {
  color: #4059e8 !important;
  -webkit-text-fill-color: #4059e8 !important;
}

/* 3. Headings on dark navy surfaces */
html[data-daylight-text] #main-content .foldnex-page .story-section :is(h1, h2, h3, h4, h5, h6),
html[data-daylight-text] #main-content .foldnex-page .full-access :is(h1, h2, h3, h4, h5, h6),
html[data-daylight-text] #main-content .foldnex-page .image-dialog :is(h1, h2, h3, h4, h5, h6) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* 4. Story Section Eyebrow on dark navy surfaces */
html[data-daylight-text] #main-content .foldnex-page .story-section .eyebrow {
  color: #9caaff !important;
  -webkit-text-fill-color: #9caaff !important;
}

/* 5. Story Section Paragraphs & Chapter Copy on dark navy surfaces (Teslatlas color #a9adc4) */
html[data-daylight-text] #main-content .foldnex-page .story-section :is(p, li),
html[data-daylight-text] #main-content .foldnex-page .story-section article :is(p, li),
html[data-daylight-text] #main-content .foldnex-page .chapter :is(p, li),
html[data-daylight-text] #main-content .foldnex-page article.chapter :is(p, li) {
  color: #a9adc4 !important;
  -webkit-text-fill-color: #a9adc4 !important;
}

/* 6. Paragraphs and list items on light surfaces (Teslatlas color #686b7c) */
html[data-daylight-text] #main-content .foldnex-page :is(p, li):not(.story-section *, .full-access *, .image-dialog *, .btn-add-chrome *, .store-badge *, .hero-actions *, .facts *) {
  color: #686b7c !important;
  -webkit-text-fill-color: #686b7c !important;
}

/* 7. Access Card — Free & Local (Light Card) */
html[data-daylight-text] #main-content .foldnex-page .access-card:not(.full-access) {
  background: #ffffff !important;
  border-color: #e6e7ee !important;
  color: #111321 !important;
}

html[data-daylight-text] #main-content .foldnex-page .access-card:not(.full-access) h3 {
  color: #111321 !important;
  -webkit-text-fill-color: #111321 !important;
}

html[data-daylight-text] #main-content .foldnex-page .access-card:not(.full-access) .access-top > span {
  color: #686b7c !important;
  -webkit-text-fill-color: #686b7c !important;
  background: #f2f3f8 !important;
}

html[data-daylight-text] #main-content .foldnex-page .access-card:not(.full-access) .day-count {
  color: #111321 !important;
  -webkit-text-fill-color: #111321 !important;
}

html[data-daylight-text] #main-content .foldnex-page .access-card:not(.full-access) .day-count span {
  color: #686b7c !important;
  -webkit-text-fill-color: #686b7c !important;
}

html[data-daylight-text] #main-content .foldnex-page .access-card:not(.full-access) .access-caption {
  color: #686b7c !important;
  -webkit-text-fill-color: #686b7c !important;
}

html[data-daylight-text] #main-content .foldnex-page .access-card:not(.full-access) .access-features li {
  color: #3b3f54 !important;
  -webkit-text-fill-color: #3b3f54 !important;
}

/* 6. Access Card — Task-by-Task AI (Dark Navy Card) */
html[data-daylight-text] #main-content .foldnex-page .access-card.full-access {
  background: #171e43 !important;
  border-color: #242c5c !important;
  color: #ffffff !important;
}

html[data-daylight-text] #main-content .foldnex-page .access-card.full-access h3 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html[data-daylight-text] #main-content .foldnex-page .access-card.full-access .access-top > span {
  color: #c4cdfc !important;
  -webkit-text-fill-color: #c4cdfc !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html[data-daylight-text] #main-content .foldnex-page .access-card.full-access .day-count {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html[data-daylight-text] #main-content .foldnex-page .access-card.full-access .day-count span {
  color: #aeb8e6 !important;
  -webkit-text-fill-color: #aeb8e6 !important;
}

html[data-daylight-text] #main-content .foldnex-page .access-card.full-access .access-caption {
  color: #aeb8e6 !important;
  -webkit-text-fill-color: #aeb8e6 !important;
}

html[data-daylight-text] #main-content .foldnex-page .access-card.full-access .access-features li {
  color: #d1d6f5 !important;
  -webkit-text-fill-color: #d1d6f5 !important;
}

/* 7. General Section Headings & Eyebrows */
html[data-daylight-text] #main-content .foldnex-page .section-heading h2 {
  color: #111321 !important;
  -webkit-text-fill-color: #111321 !important;
}

html[data-daylight-text] #main-content .foldnex-page .eyebrow:not(.story-section *) {
  color: #4059e8 !important;
  -webkit-text-fill-color: #4059e8 !important;
}

html[data-daylight-text] #main-content .foldnex-page .fine-print {
  color: #7a7f96 !important;
  -webkit-text-fill-color: #7a7f96 !important;
}

/* 8. Hero text */
html[data-daylight-text] #main-content .foldnex-page .hero h1 {
  color: #111321 !important;
  -webkit-text-fill-color: #111321 !important;
}

html[data-daylight-text] #main-content .foldnex-page .hero h1 span {
  color: #4059e8 !important;
  -webkit-text-fill-color: #4059e8 !important;
}

html[data-daylight-text] #main-content .foldnex-page .hero .lead {
  color: #686b7c !important;
  -webkit-text-fill-color: #686b7c !important;
}

html[data-daylight-text] #main-content .foldnex-page .hero .source-note {
  color: #7d8299 !important;
  -webkit-text-fill-color: #7d8299 !important;
}

html[data-daylight-text] #main-content .foldnex-page .hero figcaption {
  color: #858797 !important;
  -webkit-text-fill-color: #858797 !important;
}

/* 9. Facts strip */
html[data-daylight-text] #main-content .foldnex-page .facts {
  border-color: #e6e7ee !important;
  color: #686c80 !important;
}

html[data-daylight-text] #main-content .foldnex-page .facts span {
  color: #686c80 !important;
  -webkit-text-fill-color: #686c80 !important;
}

/* 10. Period Section */
html[data-daylight-text] #main-content .foldnex-page .period-section h2 {
  color: #111321 !important;
  -webkit-text-fill-color: #111321 !important;
}

html[data-daylight-text] #main-content .foldnex-page .period-section h2 span {
  color: #4059e8 !important;
  -webkit-text-fill-color: #4059e8 !important;
}

html[data-daylight-text] #main-content .foldnex-page .period-copy p:not(.eyebrow) {
  color: #686b7c !important;
  -webkit-text-fill-color: #686b7c !important;
}

/* 11. Setup Guide (3 Steps) */
html[data-daylight-text] #main-content .foldnex-page .setup-grid h3 {
  color: #111321 !important;
  -webkit-text-fill-color: #111321 !important;
}

html[data-daylight-text] #main-content .foldnex-page .setup-grid p {
  color: #686b7c !important;
  -webkit-text-fill-color: #686b7c !important;
}

/* 12. FAQ */
html[data-daylight-text] #main-content .foldnex-page .faq h2 {
  color: #111321 !important;
  -webkit-text-fill-color: #111321 !important;
}

html[data-daylight-text] #main-content .foldnex-page .faq summary {
  color: #111321 !important;
  -webkit-text-fill-color: #111321 !important;
}

html[data-daylight-text] #main-content .foldnex-page .faq details p {
  color: #686b7c !important;
  -webkit-text-fill-color: #686b7c !important;
}

/* 13. Closing Section */
html[data-daylight-text] #main-content .foldnex-page .closing h2 {
  color: #111321 !important;
  -webkit-text-fill-color: #111321 !important;
}

/* 14. Brand, Header & Footer */
html[data-daylight-text] #main-content .foldnex-page .brand {
  color: #111321 !important;
  -webkit-text-fill-color: #111321 !important;
}

html[data-daylight-text] #main-content .foldnex-page .platform-nav a {
  color: #656879 !important;
  -webkit-text-fill-color: #656879 !important;
}

html[data-daylight-text] #main-content .foldnex-page .platform-nav a:hover {
  color: #111321 !important;
  -webkit-text-fill-color: #111321 !important;
}

html[data-daylight-text] #main-content .foldnex-page .platform-nav a[aria-current="page"] {
  color: #4059e8 !important;
  -webkit-text-fill-color: #4059e8 !important;
}

html[data-daylight-text] #main-content .foldnex-page .store-badge {
  background: #000000 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html[data-daylight-text] #main-content .foldnex-page .store-badge span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html[data-daylight-text] #main-content .foldnex-page .footer {
  background: #fbfbfd !important;
  border-color: #e6e7ee !important;
}

html[data-daylight-text] #main-content .foldnex-page .footer-top .brand {
  color: #111321 !important;
  -webkit-text-fill-color: #111321 !important;
}

html[data-daylight-text] #main-content .foldnex-page .footer nav a {
  color: #61657b !important;
  -webkit-text-fill-color: #61657b !important;
}

html[data-daylight-text] #main-content .foldnex-page .footer nav a:hover {
  color: #4059e8 !important;
  -webkit-text-fill-color: #4059e8 !important;
}

html[data-daylight-text] #main-content .foldnex-page .footer-bottom p {
  color: #8b8d9e !important;
  -webkit-text-fill-color: #8b8d9e !important;
}

html[data-daylight-text] #main-content .foldnex-page .footer-bottom a {
  color: inherit !important;
}

html[data-daylight-text] #main-content .foldnex-page .footer-bottom a:hover {
  color: #4059e8 !important;
}

/* Primary Hero "Add to Chrome" Button */
.foldnex-page .btn-add-chrome {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: #111321 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(17, 19, 33, 0.16);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  text-decoration: none;
}

.foldnex-page .btn-add-chrome:hover {
  background: #1e2436 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(17, 19, 33, 0.22);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.foldnex-page .btn-add-chrome svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.foldnex-page .hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.foldnex-page .closing-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.foldnex-page {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  background: var(--paper) !important;
  background-color: #fbfbfd !important;
  color: var(--ink) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.foldnex-page * {
  box-sizing: border-box;
}

.foldnex-page html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body:has(.image-dialog[open]) {
  overflow: hidden;
}

.foldnex-page a {
  color: inherit;
  text-decoration: none;
}

.foldnex-page button {
  font: inherit;
  cursor: pointer;
}

.foldnex-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.foldnex-page figure,
.foldnex-page h1,
.foldnex-page h2,
.foldnex-page h3,
.foldnex-page p {
  margin: 0;
}

.foldnex-page h1,
.foldnex-page h2,
.foldnex-page h3 {
  letter-spacing: -.055em;
  line-height: 1.04;
  text-wrap: balance;
}

.foldnex-page h1 {
  font-size: clamp(52px, 6.3vw, 92px);
  font-weight: 760;
}

.foldnex-page h2 {
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 730;
}

.foldnex-page h3 {
  font-size: 26px;
  font-weight: 680;
}

.foldnex-page p {
  line-height: 1.6;
  color: var(--muted);
}

.foldnex-page h1 span,
.foldnex-page .period-copy h2 span {
  color: var(--blue);
}

.foldnex-page .wrap {
  width: min(1240px, calc(100% - 112px));
  margin-inline: auto;
}

.foldnex-page .eyebrow {
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
  text-transform: none;
}

.foldnex-page .text-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 650;
}

.foldnex-page .text-link svg {
  width: 22px;
  height: 22px;
  transition: transform 250ms var(--ease);
}

.foldnex-page .text-link:hover svg {
  transform: translateX(4px);
}

/* Header & Navigation */
.foldnex-page .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,251,253,.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: border-color 250ms;
}

.foldnex-page .site-header.scrolled {
  border-color: var(--line);
}

.foldnex-page .nav-wrap {
  width: min(1340px, calc(100% - 80px));
  min-height: 64px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.foldnex-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -.04em;
  color: var(--ink);
}

.foldnex-page .brand img {
  border-radius: 8px;
}

.foldnex-page .platform-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.foldnex-page .platform-nav a {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  color: #656879;
  transition: color 200ms, background 200ms;
}

.foldnex-page .platform-nav a:hover {
  color: var(--ink);
  background: #eeeff5;
}

.foldnex-page .platform-nav a[aria-current="page"] {
  color: var(--blue);
  background: var(--blue-tint);
}

.foldnex-page .store-badge {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  transition: background 150ms ease, transform 150ms ease;
}

.foldnex-page .store-badge:hover {
  background: #1f2430;
  transform: translateY(-1px);
}

.foldnex-page .store-badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.foldnex-page .store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.foldnex-page .store-badge-sub {
  font-size: 9px;
  font-weight: 500;
  opacity: .8;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.foldnex-page .store-badge-main {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* Hero Section — Mac Centered Layout */
.foldnex-page.platform-mac .hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 45px;
  text-align: center;
  padding-block: 70px 80px;
}

.foldnex-page.platform-mac .hero-copy {
  padding: 0;
}

.foldnex-page.platform-mac .hero h1 {
  font-size: clamp(52px, 6.5vw, 92px);
}

.foldnex-page.platform-mac .hero .lead {
  max-width: 680px;
  margin: 28px auto 0;
  font-size: 20px;
  color: var(--muted);
}

.foldnex-page.platform-mac .source-note {
  margin-block: 18px 26px;
  font-size: 13px;
  line-height: 1.7;
  color: #7d8299;
}

.foldnex-page.platform-mac .hero-art {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 1060px;
  margin-inline: auto;
}

.foldnex-page.platform-mac .hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 65%;
  top: 20%;
  left: 0;
  background: radial-gradient(ellipse, #dee5ff 0%, #edf0ff66 45%, transparent 68%);
  filter: blur(45px);
}

.foldnex-page.platform-mac .hero-art img {
  max-height: none;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(17, 19, 33, 0.12), 0 4px 16px rgba(17, 19, 33, 0.06);
  border: 1px solid var(--line);
}

.foldnex-page .hero-art figcaption {
  margin-top: 16px;
  font-size: 11px;
  color: #858797;
  text-align: center;
}

.foldnex-page .screenshot {
  display: block;
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  cursor: zoom-in;
}

.foldnex-page .screenshot img {
  border-radius: 10px;
}

.foldnex-page .enlarge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid #ffffff26;
  border-radius: 10px;
  color: #fff;
  background: rgba(16, 22, 39, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 180ms ease;
}

.foldnex-page .screenshot:hover .enlarge,
.foldnex-page .screenshot:focus .enlarge {
  opacity: 1;
}

/* Facts Strip */
.foldnex-page .facts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 70px;
  padding-block: 34px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: #686c80;
}

.foldnex-page .facts span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 550;
}

.foldnex-page .facts svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
  flex-shrink: 0;
}

/* Story Section — Dark Midnight Navy */
.foldnex-page .story-section {
  background: var(--navy);
  color: #fff;
  padding-block: 110px 80px;
  overflow: clip;
}

.foldnex-page .story-section .eyebrow {
  color: #9caaff;
}

.foldnex-page .story-heading {
  max-width: 900px;
  margin-bottom: 60px;
}

.foldnex-page .story-section h2 {
  font-size: clamp(42px, 5.8vw, 78px);
  color: #fff;
}

.foldnex-page .chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding-block: 60px;
}

.foldnex-page .chapter h3 {
  font-size: clamp(34px, 3.8vw, 50px);
  color: #fff;
}

.foldnex-page .story-section :is(p, li),
.foldnex-page .chapter-copy > p:not(.eyebrow) {
  color: #a9adc4;
  font-size: 17px;
  margin-top: 24px;
  max-width: 440px;
  line-height: 1.65;
}

.foldnex-page.platform-mac .chapter-image {
  max-width: 900px;
  width: 100%;
  margin-inline: auto;
}

.foldnex-page.platform-mac .chapter-image img {
  width: 100%;
  max-height: 700px;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.foldnex-page.platform-mac .story-enhanced {
  display: grid;
  grid-template-columns: .85fr 1.35fr;
  gap: 60px;
}

.foldnex-page .story-enhanced .chapters {
  grid-column: 1;
  grid-row: 1;
}

.foldnex-page .story-enhanced .chapter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(75vh, 560px);
  padding-block: 90px;
}

.foldnex-page .screenshot-stage {
  position: sticky;
  top: 90px;
  height: calc(100vh - 120px);
  max-height: 860px;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.foldnex-page .screenshot-stage .chapter-image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 420ms ease, visibility 420ms;
}

.foldnex-page .screenshot-stage .chapter-image.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.foldnex-page .screenshot-stage .chapter-image .screenshot {
  max-height: 100%;
}

.foldnex-page .screenshot-stage img {
  max-height: calc(100vh - 140px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Period / Provider Summary Section */
.foldnex-page.platform-mac .period-section {
  display: grid;
  grid-template-columns: .85fr 1.3fr;
  align-items: center;
  gap: 70px;
  padding-block: 130px;
}

.foldnex-page .period-copy p:not(.eyebrow) {
  max-width: 440px;
  font-size: 18px;
  margin-top: 26px;
  line-height: 1.65;
}

.foldnex-page.platform-mac .period-section h2 {
  font-size: clamp(38px, 4.4vw, 62px);
}

.foldnex-page.platform-mac .period-section figure {
  max-width: 900px;
  width: 100%;
  justify-self: center;
}

.foldnex-page.platform-mac .period-section img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(17, 19, 33, 0.08);
  border: 1px solid var(--line);
}

/* Access / Engine Matrix */
.foldnex-page .access-section {
  background: #f0f1f7;
  padding-block: 105px;
}

.foldnex-page .section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.foldnex-page .access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1040px;
  margin-inline: auto;
}

.foldnex-page .access-card {
  padding: 40px 44px 34px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.foldnex-page .access-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.foldnex-page .access-top h3 {
  font-size: 22px;
  letter-spacing: -.03em;
  color: var(--ink);
}

.foldnex-page .access-top > span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: #f2f3f8;
  border-radius: 10px;
  padding: 6px 12px;
}

.foldnex-page .day-count {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 28px;
  font-size: clamp(60px, 6.5vw, 96px);
  line-height: 1.05;
  font-weight: 730;
  letter-spacing: -.07em;
  color: var(--ink);
}

.foldnex-page .day-count > span {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--muted);
}

.foldnex-page .access-caption {
  font-size: 16px;
  margin-top: 10px;
  color: var(--muted);
}

.foldnex-page .access-features {
  margin-top: 28px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foldnex-page .access-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #3b3f54;
}

.foldnex-page .access-features svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex-shrink: 0;
}

.foldnex-page .full-access {
  background: #171e43;
  color: #fff;
  border-color: #242c5c;
}

.foldnex-page .full-access .access-top h3 {
  color: #fff;
}

.foldnex-page .full-access .day-count {
  color: #fff;
}

.foldnex-page .full-access .day-count > span {
  color: #aeb8e6;
}

.foldnex-page .full-access .access-caption {
  color: #aeb8e6;
}

.foldnex-page .full-access .access-top > span {
  color: #c4cdfc;
  background: rgba(255, 255, 255, 0.08);
}

.foldnex-page .full-access .access-features li {
  color: #d1d6f5;
}

.foldnex-page .full-access .access-features svg {
  color: #8da0ff;
}

.foldnex-page .fine-print {
  max-width: 760px;
  text-align: center;
  font-size: 12px;
  margin: 32px auto 0;
  color: #7a7f96;
}

/* Setup Guide — 3 Steps */
.foldnex-page .setup {
  padding-block: 120px;
}

.foldnex-page .setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.foldnex-page .setup-grid li {
  position: relative;
}

.foldnex-page .step-icon {
  display: flex;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: var(--blue-tint);
  margin-bottom: 28px;
}

.foldnex-page .step-icon svg {
  width: 26px;
  height: 26px;
}

.foldnex-page .setup-grid h3 {
  font-size: 23px;
  letter-spacing: -.04em;
  margin-bottom: 14px;
  color: var(--ink);
}

.foldnex-page .setup-grid p {
  font-size: 15px;
  max-width: 320px;
  line-height: 1.6;
}

/* FAQ Accordion */
.foldnex-page .faq {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 70px;
  padding-block: 80px;
  border-top: 1px solid var(--line);
}

.foldnex-page .faq h2 {
  font-size: 48px;
  color: var(--ink);
}

.foldnex-page .faq-items {
  display: flex;
  flex-direction: column;
}

.foldnex-page .faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 24px;
}

.foldnex-page .faq details:first-child {
  padding-top: 0;
}

.foldnex-page .faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 18px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -.02em;
}

.foldnex-page .faq summary::-webkit-details-marker {
  display: none;
}

.foldnex-page .faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 26px;
  color: #8a91b0;
  transition: transform 200ms ease;
}

.foldnex-page .faq details[open] summary::after {
  content: "−";
}

.foldnex-page .faq details p {
  padding-top: 16px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.foldnex-page .faq details a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Closing CTA */
.foldnex-page .closing {
  text-align: center;
  padding-block: 100px 120px;
}

.foldnex-page .closing > img {
  border-radius: 10px;
  margin: 0 auto 32px;
  box-shadow: 0 12px 30px rgba(17, 19, 33, 0.08);
}

.foldnex-page .closing h2 {
  font-size: clamp(40px, 5vw, 66px);
  color: var(--ink);
}

.foldnex-page .closing .text-link {
  margin-top: 32px;
}

/* Clean Teslatlas-style Footer */
.foldnex-page .footer {
  border-top: 1px solid var(--line);
  padding-block: 44px 36px;
  background: var(--paper);
}

.foldnex-page .footer-top,
.foldnex-page .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.foldnex-page .footer-top .brand {
  font-size: 17px;
  color: var(--ink);
}

.foldnex-page .footer-top .brand img {
  border-radius: 6px;
}

.foldnex-page .footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 13px;
  color: #61657b;
  font-weight: 550;
}

.foldnex-page .footer nav a:hover {
  color: var(--blue);
}

.foldnex-page .footer-bottom {
  margin-top: 30px;
  align-items: start;
}

.foldnex-page .footer-bottom p {
  font-size: 12px;
  color: #8b8d9e;
  line-height: 1.6;
}

.foldnex-page .footer-bottom p:last-child {
  text-align: right;
}

.foldnex-page .footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foldnex-page .footer-bottom a:hover {
  color: var(--blue);
}

/* Lightbox Dialog */
.foldnex-page .image-dialog {
  width: min(1500px, 96vw);
  max-width: 96vw;
  max-height: 94vh;
  padding: 56px 20px 20px;
  background: #090e20;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: auto;
}

.foldnex-page .image-dialog::backdrop {
  background: rgba(4, 7, 21, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.foldnex-page .image-dialog > img {
  width: auto;
  max-height: none;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 8px;
}

.foldnex-page .dialog-close {
  position: sticky;
  top: 0;
  z-index: 1;
  float: right;
  margin-top: -43px;
  padding: 8px 14px;
  background: #252d4a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: white;
  font-size: 13px;
  font-weight: 600;
}

.foldnex-page .dialog-close span {
  margin-left: 10px;
}

/* Motion & Animation */
@media (prefers-reduced-motion: no-preference) {
  .foldnex-page .intro {
    animation: intro 700ms var(--ease) both;
  }
  .foldnex-page h1.intro {
    animation-delay: 70ms;
  }
  .foldnex-page .lead.intro {
    animation-delay: 130ms;
  }
  .foldnex-page .source-note.intro,
  .foldnex-page .text-link.intro {
    animation-delay: 180ms;
  }
  .foldnex-page .reveal.pending {
    opacity: 0;
    transform: translateY(20px);
  }
  .foldnex-page .reveal {
    transition: opacity 650ms var(--ease), transform 650ms var(--ease);
  }
  @keyframes intro {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Responsive Breakpoints matching Teslatlas */
@media (max-width: 1100px) {
  .foldnex-page .wrap {
    width: calc(100% - 72px);
  }
  .foldnex-page .hero {
    gap: 35px;
  }
  .foldnex-page .hero .lead {
    font-size: 18px;
  }
  .foldnex-page .hero h1 {
    font-size: 62px;
  }
  .foldnex-page .facts {
    gap: 34px;
  }
  .foldnex-page .story-enhanced {
    column-gap: 30px;
  }
  .foldnex-page .period-section {
    gap: 50px;
  }
  .foldnex-page .access-card {
    padding-inline: 28px;
  }
  .foldnex-page .setup-grid {
    gap: 35px;
  }
}

@media (max-width: 979px), (max-height: 699px) {
  .foldnex-page .chapter {
    gap: 36px;
    padding-block: 50px 80px;
  }
  .foldnex-page.platform-mac .chapter {
    grid-template-columns: 1fr;
  }
  .foldnex-page.platform-mac .chapter-copy {
    max-width: 700px;
  }
  .foldnex-page.platform-mac .chapter-copy p {
    max-width: 600px;
  }
  .foldnex-page.platform-mac .chapter-image {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .foldnex-page html {
    scroll-padding-top: 145px;
  }
  .foldnex-page .wrap {
    width: calc(100% - 40px);
  }
  .foldnex-page .nav-wrap {
    width: calc(100% - 36px);
    grid-template-columns: 1fr auto;
    gap: 0;
    padding-top: 8px;
  }
  .foldnex-page .brand {
    font-size: 18px;
  }
  .foldnex-page .brand img {
    width: 26px;
    height: 26px;
  }
  .foldnex-page .store-badge {
    grid-column: 2;
    grid-row: 1;
    padding: 6px 12px;
  }
  .foldnex-page .platform-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: center;
    margin-block: 8px 12px;
    flex-wrap: wrap;
  }
  .foldnex-page .platform-nav a {
    padding: 6px 12px;
    font-size: 12px;
  }
  .foldnex-page.platform-mac .hero {
    gap: 34px;
    padding-block: 44px 42px;
  }
  .foldnex-page.platform-mac .hero h1 {
    font-size: clamp(42px, 11vw, 68px);
  }
  .foldnex-page .eyebrow {
    font-size: 10px;
    margin-bottom: 18px;
  }
  .foldnex-page.platform-mac .hero .lead {
    font-size: 17px;
    margin: 20px auto 0;
  }
  .foldnex-page.platform-mac .source-note {
    font-size: 11px;
    margin-block: 16px 22px;
  }
  .foldnex-page.platform-mac .hero-art {
    max-width: 100%;
  }
  .foldnex-page.platform-mac .hero-art img {
    border-radius: 10px;
  }
  .foldnex-page .facts {
    gap: 16px;
    padding-block: 28px;
    justify-content: space-around;
  }
  .foldnex-page .facts span {
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    text-align: center;
  }
  .foldnex-page .facts svg {
    width: 20px;
    height: 20px;
  }
  .foldnex-page .story-section {
    padding-block: 65px 40px;
  }
  .foldnex-page .story-heading {
    margin-bottom: 35px;
  }
  .foldnex-page .story-section h2 {
    font-size: clamp(38px, 9.5vw, 58px);
  }
  .foldnex-page .chapter {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 35px 50px;
  }
  .foldnex-page .chapter h3 {
    font-size: 34px;
  }
  .foldnex-page .chapter-copy > p:not(.eyebrow) {
    font-size: 15px;
    margin-top: 16px;
  }
  .foldnex-page .chapter-image {
    width: 100%;
    max-width: 100%;
  }
  .foldnex-page.platform-mac .period-section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 70px;
  }
  .foldnex-page.platform-mac .period-copy h2 {
    font-size: 42px;
  }
  .foldnex-page .period-copy p:not(.eyebrow) {
    font-size: 16px;
    margin-top: 20px;
  }
  .foldnex-page .access-section {
    padding-block: 65px;
  }
  .foldnex-page .section-heading {
    margin-bottom: 32px;
  }
  .foldnex-page .access-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 440px;
  }
  .foldnex-page .access-card {
    padding: 28px;
  }
  .foldnex-page .day-count {
    font-size: 72px;
    margin-top: 20px;
  }
  .foldnex-page .setup {
    padding-block: 70px;
  }
  .foldnex-page .setup-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .foldnex-page .setup-grid li {
    padding-left: 78px;
    min-height: 88px;
  }
  .foldnex-page .step-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
  }
  .foldnex-page .setup-grid h3 {
    font-size: 21px;
    margin-bottom: 8px;
  }
  .foldnex-page .setup-grid p {
    font-size: 14px;
    max-width: none;
  }
  .foldnex-page .faq {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 48px;
  }
  .foldnex-page .faq h2 {
    font-size: 38px;
  }
  .foldnex-page .closing {
    padding-block: 60px 80px;
  }
  .foldnex-page .closing h2 {
    font-size: 38px;
  }
  .foldnex-page .closing > img {
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
  }
  .foldnex-page .footer-top,
  .foldnex-page .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .foldnex-page .footer nav {
    gap: 18px;
    font-size: 12px;
  }
  .foldnex-page .footer-bottom p:last-child {
    text-align: left;
  }
  .foldnex-page .image-dialog {
    width: 96vw;
    max-width: 96vw;
    padding: 54px 10px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .foldnex-page html {
    scroll-behavior: auto;
  }
  .foldnex-page *,
  .foldnex-page *::before,
  .foldnex-page *::after {
    animation: none !important;
    transition: none !important;
  }
}
