/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V4 */

:root {
  --canvas: #f8f7f2;
  --canvas-deep: #efeee7;
  --ink: #0f0f0e;
  --muted: #686862;
  --rule: rgba(15, 15, 14, 0.14);
  --accent: #bbed49;
  --accent-strong: #a8e820;
  --dark: #11120f;
  --dark-soft: #1b1d17;
  --white: #fffef9;
  --shadow-soft: 0 30px 90px rgba(24, 25, 19, 0.13);
  --shadow-float: 0 18px 55px rgba(0, 0, 0, 0.22);
  --radius-control: 999px;
  --radius-card: 32px;
  --ease-smooth-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-quick: 150ms;
  --duration-fast: 250ms;
  --duration-slow: 500ms;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 2%, rgba(187, 237, 73, 0.2), transparent 28rem),
    var(--canvas);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  width: min(100% - 44px, 1400px);
  min-height: 72px;
  margin: 18px auto 0;
  padding: 10px 12px 10px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-control);
  background: rgba(248, 247, 242, 0.72);
  box-shadow: 0 8px 40px rgba(16, 17, 14, 0.06);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 780;
  letter-spacing: 0.04em;
}

.brand img {
  border-radius: 10px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 630;
}

.desktop-nav a,
.nav-cta {
  white-space: nowrap;
}

.desktop-nav a {
  transition: color var(--duration-quick) ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  justify-self: end;
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 720;
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    background var(--duration-quick) ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--dark-soft);
}

.hero {
  width: min(100% - 44px, 1400px);
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 126px) 0 clamp(84px, 9vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 0.92fr);
  gap: clamp(58px, 7vw, 128px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  width: fit-content;
  margin-bottom: 28px;
  padding: 8px 13px 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-control);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.status-dot {
  width: 20px;
  height: 20px;
  border: 6px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(64px, 7.55vw, 122px);
  font-weight: 820;
  letter-spacing: -0.077em;
  line-height: 0.86;
  overflow-wrap: anywhere;
}

.hero-intro {
  max-width: 600px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.024em;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.app-store-button {
  min-height: 68px;
  padding: 11px 25px 11px 19px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 34px rgba(15, 15, 14, 0.16);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.05;
  white-space: nowrap;
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) var(--ease-smooth-out);
}

.app-store-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(15, 15, 14, 0.22);
}

.app-store-button small {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.apple-mark {
  margin-top: -3px;
  font-size: 38px;
  line-height: 1;
}

.hero-note {
  max-width: 165px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 580;
  line-height: 1.45;
}

.product-stage {
  position: relative;
  min-width: 0;
  height: clamp(650px, 73vh, 820px);
  margin: 0;
  padding: 34px 34px 0;
  overflow: hidden;
  border-radius: 46px;
  background:
    linear-gradient(145deg, rgba(187, 237, 73, 0.08), transparent 44%),
    var(--dark);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.product-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 390px;
  height: 390px;
  top: -140px;
  right: -90px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(110px);
  opacity: 0.22;
}

.stage-label {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: rgba(255, 254, 249, 0.58);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-label strong {
  color: var(--accent);
  font-size: 10px;
  font-weight: 720;
}

.screen-wrap {
  position: absolute;
  top: 84px;
  left: 50%;
  width: min(72%, 430px);
  transform: translateX(-50%) rotate(-2.5deg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 54px 54px 0 0;
  box-shadow: var(--shadow-float);
  background: var(--canvas);
}

.screen-wrap img {
  width: 100%;
  height: auto;
}

.macro-float {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 84px;
  width: min(82%, 440px);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 0.8fr repeat(3, 1fr);
  gap: 14px;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 24px;
  background: rgba(248, 247, 242, 0.78);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.macro-float > span {
  align-self: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.macro-float div {
  min-width: 0;
}

.macro-float strong,
.macro-float small {
  display: block;
}

.macro-float strong {
  font-size: 25px;
  letter-spacing: -0.055em;
}

.macro-float small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.product-stage figcaption {
  position: absolute;
  z-index: 5;
  bottom: 24px;
  left: 34px;
  color: rgba(255, 254, 249, 0.62);
  font-size: 11px;
}

.reveal {
  animation: reveal-in var(--duration-slow) var(--ease-smooth-out) both;
}

.reveal-1 {
  animation-delay: 60ms;
}

.reveal-2 {
  animation-delay: 120ms;
}

.reveal-3 {
  animation-delay: 190ms;
}

.reveal-4 {
  animation-delay: 260ms;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 78px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .product-stage {
    height: 780px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero {
    width: min(100% - 28px, 1400px);
  }

  .site-header {
    min-height: 62px;
    margin-top: 10px;
  }

  .brand {
    font-size: 16px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .nav-cta {
    min-height: 42px;
    padding: 0 16px;
    font-size: 13px;
  }

  .hero {
    min-height: 0;
    padding-top: 64px;
    gap: 56px;
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 10px;
  }

  h1 {
    font-size: clamp(52px, 17vw, 78px);
    line-height: 0.9;
  }

  .hero-intro {
    margin-top: 28px;
    font-size: 17px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-note {
    max-width: none;
  }

  .product-stage {
    height: 650px;
    padding: 24px 20px 0;
    border-radius: 34px;
  }

  .stage-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .screen-wrap {
    top: 90px;
    width: 82%;
    border-radius: 44px 44px 0 0;
  }

  .macro-float {
    right: 12px;
    bottom: 72px;
    width: calc(100% - 24px);
    padding: 15px;
    gap: 8px;
  }

  .macro-float > span {
    display: none;
  }

  .macro-float {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-stage figcaption {
    left: 20px;
    bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Full story */

.signal-strip,
.story-section,
.inside-section,
.film-section,
.trust-section,
.final-cta,
.site-footer {
  width: min(100% - 44px, 1400px);
  margin-inline: auto;
}

.signal-strip {
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-strip p {
  margin: 0;
  white-space: nowrap;
}

.signal-strip > span {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-strong);
}

.story-section,
.inside-section,
.film-section,
.trust-section {
  padding-block: clamp(110px, 12vw, 190px);
}

.section-heading {
  margin-bottom: clamp(58px, 7vw, 96px);
}

.section-heading-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(44px, 7vw, 120px);
  align-items: end;
}

.section-heading-center {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.section-index,
.feature-kicker {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-heading h2,
.trust-lead h2,
.atlas-copy h2,
.pro-copy h2,
.final-cta h2,
.legal-hero h1,
.error-page h1 {
  margin: 22px 0 0;
  font-style: normal;
  font-size: clamp(52px, 6.8vw, 104px);
  font-weight: 810;
  letter-spacing: -0.071em;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.section-heading > p,
.section-heading-center > p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.section-heading-center > p {
  margin: 30px auto 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-card {
  position: relative;
  min-height: 570px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.35);
}

.process-number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.1em;
}

.process-card h3 {
  margin: auto 0 0;
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 760;
  letter-spacing: -0.052em;
  line-height: 1;
}

.process-copy {
  margin: 18px 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.chat-sample,
.chat-reply {
  padding: 20px;
  border-radius: 24px;
  font-size: 15px;
  line-height: 1.45;
}

.chat-sample {
  width: 88%;
  margin: 76px 0 12px auto;
  background: var(--ink);
  color: var(--white);
  transform: rotate(1.2deg);
}

.chat-sample span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 254, 249, 0.54);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chat-sample p,
.chat-reply p {
  margin: 0;
}

.chat-reply {
  width: 91%;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(15, 15, 14, 0.1);
  background: rgba(255, 254, 249, 0.82);
  box-shadow: 0 16px 40px rgba(16, 17, 14, 0.07);
  transform: rotate(-1.3deg);
}

.chat-reply img {
  border-radius: 9px;
}

.mini-macros {
  margin: 92px 0 0;
  display: grid;
  gap: 20px;
}

.mini-macros div {
  display: grid;
  grid-template-columns: minmax(70px, auto) minmax(56px, 0.7fr) minmax(80px, 1.3fr);
  gap: 14px;
  align-items: center;
}

.mini-macros strong {
  font-size: clamp(35px, 4vw, 60px);
  letter-spacing: -0.065em;
}

.mini-macros small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-macros i {
  height: 5px;
  border-radius: var(--radius-control);
  background: var(--rule);
  overflow: hidden;
}

.mini-macros i::before {
  content: "";
  display: block;
  width: var(--line-width);
  height: 100%;
  border-radius: inherit;
  background: var(--line-color);
}

.line-protein {
  --line-width: 56%;
  --line-color: #6879ff;
}

.line-carbs {
  --line-width: 74%;
  --line-color: var(--accent-strong);
}

.line-fat {
  --line-width: 38%;
  --line-color: #ff6b45;
}

.portion-control {
  margin: 100px 0 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-control);
  background: var(--white);
  box-shadow: 0 18px 55px rgba(15, 15, 14, 0.1);
}

.portion-control > span {
  padding-left: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 740;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portion-control button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--canvas-deep);
  color: var(--ink);
  font: inherit;
  font-size: 20px;
}

.portion-control strong {
  padding-inline: 4px;
  font-size: 14px;
}

.estimate-note {
  margin-left: auto;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-control);
  color: #496912;
  background: rgba(187, 237, 73, 0.24);
  font-size: 11px;
  font-weight: 700;
}

.estimate-note span {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
}

.inside-section {
  padding-inline: clamp(20px, 4vw, 64px);
  border-radius: clamp(42px, 5vw, 76px);
  background: var(--canvas-deep);
}

.feature-editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-panel {
  position: relative;
  min-width: 0;
  min-height: 720px;
  padding: clamp(28px, 4vw, 54px);
  overflow: hidden;
  border-radius: 38px;
  background: var(--white);
}

.feature-panel-wide {
  grid-column: 1 / -1;
  min-height: 820px;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(400px, 1.22fr);
  gap: clamp(42px, 7vw, 120px);
}

.feature-copy-block {
  position: relative;
  z-index: 2;
}

.feature-copy-block h3 {
  max-width: 560px;
  margin: 22px 0 0;
  font-size: clamp(38px, 4.7vw, 72px);
  font-weight: 780;
  letter-spacing: -0.064em;
  line-height: 0.97;
}

.feature-copy-block > p {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.feature-list {
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.feature-list li {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  font-weight: 680;
}

.feature-list li::after {
  content: "✓";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-size: 11px;
}

.feature-screen {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 14, 0.12);
  background: var(--canvas);
  box-shadow: var(--shadow-soft);
}

.feature-screen img {
  width: 100%;
  height: auto;
}

.feature-screen-thread {
  width: min(45%, 540px);
  right: 7%;
  top: 94px;
  border-radius: 58px 58px 0 0;
  transform: rotate(2deg);
}

.feature-panel-detail {
  background:
    radial-gradient(circle at 88% 10%, rgba(187, 237, 73, 0.28), transparent 18rem),
    var(--white);
}

.feature-panel-detail .feature-copy-block {
  max-width: 420px;
}

.feature-screen-detail {
  width: 54%;
  right: 7%;
  bottom: -230px;
  border-radius: 48px 48px 0 0;
  transform: rotate(3deg);
}

.feature-panel-language {
  padding-bottom: 52px;
  background: var(--dark);
  color: var(--white);
}

.feature-panel-language .feature-kicker {
  color: rgba(255, 254, 249, 0.5);
}

.feature-panel-language blockquote {
  position: relative;
  z-index: 2;
  margin: 72px 0 0;
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.feature-panel-language blockquote strong {
  color: var(--accent);
  font-weight: inherit;
}

.feature-panel-language > p {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 4vw, 54px);
  bottom: 48px;
  max-width: 400px;
  margin: 0;
  color: rgba(255, 254, 249, 0.58);
  font-size: 15px;
  line-height: 1.55;
}

.language-orbit {
  position: absolute;
  right: -82px;
  bottom: -76px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(187, 237, 73, 0.22);
  border-radius: 50%;
}

.language-orbit::before,
.language-orbit::after {
  content: "";
  position: absolute;
  inset: 58px;
  border: 1px solid rgba(187, 237, 73, 0.16);
  border-radius: 50%;
}

.language-orbit::after {
  inset: 120px;
  background: var(--accent);
  box-shadow: 0 0 80px rgba(187, 237, 73, 0.25);
}

.language-orbit span {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
}

.language-orbit span:nth-child(1) {
  top: 22px;
  left: 157px;
}

.language-orbit span:nth-child(2) {
  right: 32px;
  bottom: 70px;
}

.language-orbit span:nth-child(3) {
  left: 32px;
  bottom: 70px;
}

.atlas-section,
.pro-section {
  width: min(100% - 20px, 1560px);
  margin-inline: auto;
  display: grid;
  border-radius: clamp(38px, 5vw, 72px);
  background: var(--dark);
  color: var(--white);
}

.atlas-section {
  min-height: 920px;
  padding: clamp(52px, 8vw, 122px);
  grid-template-columns: minmax(280px, 0.7fr) minmax(420px, 1.3fr);
  gap: clamp(54px, 8vw, 130px);
  align-items: center;
  overflow: hidden;
}

.section-index-dark {
  color: rgba(255, 254, 249, 0.48);
}

.atlas-copy h2 {
  max-width: 620px;
  font-size: clamp(64px, 7.8vw, 118px);
}

.atlas-copy > p,
.pro-copy > p {
  max-width: 510px;
  margin: 34px 0 0;
  color: rgba(255, 254, 249, 0.6);
  font-size: 18px;
  line-height: 1.58;
}

.atlas-statline {
  margin-top: 62px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.atlas-statline div {
  display: grid;
  gap: 4px;
}

.atlas-statline strong {
  color: var(--accent);
  font-size: 38px;
  letter-spacing: -0.055em;
}

.atlas-statline span {
  color: rgba(255, 254, 249, 0.48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-visual {
  position: relative;
  align-self: stretch;
  min-width: 0;
  margin: 0;
}

.atlas-visual img {
  position: absolute;
  width: min(74%, 610px);
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 62px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.46);
  transform: translate(-50%, -43%) rotate(3deg);
}

.atlas-visual::before,
.atlas-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(74%, 610px);
  aspect-ratio: 1320 / 2868;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 62px;
  background: var(--dark-soft);
}

.atlas-visual::before {
  transform: translate(-61%, -49%) rotate(-7deg);
}

.atlas-visual::after {
  z-index: 0;
  transform: translate(-40%, -47%) rotate(10deg);
}

.atlas-visual img {
  z-index: 1;
}

.atlas-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  color: rgba(255, 254, 249, 0.45);
  font-size: 11px;
}

.film-frame {
  position: relative;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 38px;
  background: var(--ink);
  box-shadow: var(--shadow-soft);
}

.film-frame video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: var(--dark);
  object-fit: cover;
}

.film-meta {
  padding: 14px 8px 4px;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 254, 249, 0.48);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(60px, 9vw, 150px);
}

.trust-lead h2 {
  font-size: clamp(58px, 7.3vw, 110px);
}

.trust-lead > p {
  max-width: 470px;
  margin: 32px 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
  font-size: 13px;
  font-weight: 720;
  transition: gap var(--duration-fast) var(--ease-smooth-out);
}

.text-link:hover {
  gap: 14px;
}

.trust-ledger {
  border-top: 1px solid var(--rule);
}

.trust-ledger article {
  padding: 34px 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--rule);
}

.trust-index {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.trust-ledger h3 {
  margin: 0;
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 740;
  letter-spacing: -0.045em;
}

.trust-ledger p {
  max-width: 570px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.pro-section {
  min-height: 760px;
  padding: clamp(54px, 8vw, 116px);
  grid-template-columns: minmax(120px, 0.35fr) minmax(320px, 0.9fr) minmax(300px, 0.75fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  background:
    radial-gradient(circle at 4% 93%, rgba(187, 237, 73, 0.19), transparent 32rem),
    var(--dark);
}

.pro-mark {
  align-self: start;
  display: grid;
  justify-items: start;
  gap: 14px;
}

.pro-mark img {
  border-radius: 23px;
}

.pro-mark span {
  padding: 7px 11px;
  border: 1px solid rgba(187, 237, 73, 0.42);
  border-radius: var(--radius-control);
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.pro-copy h2 {
  max-width: 700px;
  font-size: clamp(58px, 6.8vw, 102px);
}

.pro-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.pro-list li {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 254, 249, 0.84);
  font-size: 14px;
  line-height: 1.45;
}

.pro-list span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 720;
}

.final-cta {
  padding-block: clamp(130px, 17vw, 260px);
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.final-cta > img {
  margin-bottom: 30px;
  border-radius: 25px;
  box-shadow: 0 18px 55px rgba(31, 36, 19, 0.14);
}

.final-cta h2 {
  font-size: clamp(72px, 10.5vw, 160px);
}

.final-cta > p {
  margin: 30px 0 38px;
  color: var(--muted);
  font-size: 19px;
}

.app-store-button-large {
  transform: scale(1.08);
}

.app-store-button-large:hover {
  transform: scale(1.08) translateY(-3px);
}

.site-footer {
  padding: 42px 0 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: end;
  border-top: 1px solid var(--rule);
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 12px;
  font-weight: 680;
}

.site-footer nav a {
  white-space: nowrap;
}

.footer-legal {
  grid-column: 1 / -1;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* 21st.dev-inspired interaction layer: reveal text, scroll motion, marquee, CTA */

.site-header {
  position: sticky;
  top: 18px;
  transition:
    background var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-smooth-out);
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(248, 247, 242, 0.9);
  box-shadow: 0 16px 52px rgba(16, 17, 14, 0.1);
}

.hero {
  position: relative;
}

.hero-title {
  display: grid;
  gap: 0.02em;
}

.hero-line {
  display: block;
  overflow: hidden;
  width: calc(100% + 0.2em);
  padding: 0.12em 0.2em 0.16em 0;
  margin: -0.12em -0.2em -0.16em 0;
  white-space: nowrap;
}

.hero-word {
  display: inline-block;
  transform-origin: 0 100%;
  animation: hero-word-in 760ms var(--ease-smooth-out) both;
  animation-delay: calc(90ms + var(--word-index) * 85ms);
}

.hero-line-accent .hero-word:last-child {
  color: #7cab17;
}

@keyframes hero-word-in {
  from {
    opacity: 0;
    transform: translateY(108%) rotate(2deg);
    filter: blur(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
    filter: blur(0);
  }
}

.hero-note {
  display: grid;
  gap: 2px;
}

.hero-note strong {
  color: var(--ink);
  font-size: 13px;
}

.scroll-cue {
  position: absolute;
  left: 0;
  bottom: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 740;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-style: normal;
  animation: cue-bob 1.8s ease-in-out infinite;
}

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.product-stage {
  --stage-x: 0px;
  --stage-y: 0px;
  --stage-x-reverse: 0px;
  --stage-y-reverse: 0px;
}

.screen-wrap {
  transform: translateX(calc(-50% + var(--stage-x))) translateY(var(--stage-y)) rotate(-2.5deg);
  transition: transform 500ms var(--ease-smooth-out);
}

.product-stage .macro-float {
  transform: translate(var(--stage-x-reverse), var(--stage-y-reverse));
  transition: transform 600ms var(--ease-smooth-out);
}

.signal-strip {
  overflow: hidden;
  justify-content: flex-start;
  gap: 0;
}

.signal-track,
.signal-group {
  width: max-content;
  display: flex;
  align-items: center;
}

.signal-track {
  animation: signal-marquee 28s linear infinite;
  will-change: transform;
}

.signal-group {
  gap: 28px;
  padding-right: 28px;
}

.signal-group p {
  margin: 0;
  white-space: nowrap;
}

.signal-group > span {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-strong);
}

@keyframes signal-marquee {
  to { transform: translateX(-50%); }
}

.conversation-section {
  width: min(100% - 20px, 1560px);
  min-height: 880px;
  margin: 0 auto clamp(110px, 12vw, 190px);
  padding: clamp(56px, 8vw, 120px);
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(460px, 1.18fr);
  gap: clamp(52px, 8vw, 128px);
  align-items: center;
  overflow: hidden;
  border-radius: clamp(38px, 5vw, 72px);
  background:
    radial-gradient(circle at 7% 94%, rgba(187, 237, 73, 0.2), transparent 28rem),
    var(--dark);
  color: var(--white);
}

.conversation-intro .section-index {
  color: rgba(255, 254, 249, 0.48);
}

.conversation-intro h2 {
  margin: 24px 0 0;
  font-size: clamp(56px, 7.5vw, 112px);
  font-weight: 800;
  letter-spacing: -0.074em;
  line-height: 0.9;
}

.conversation-intro h2 span {
  display: block;
}

.conversation-intro h2 span:last-child {
  color: var(--accent);
}

.conversation-intro > p {
  max-width: 520px;
  margin: 34px 0 0;
  color: rgba(255, 254, 249, 0.62);
  font-size: 18px;
  line-height: 1.6;
}

.sentence-demo {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.sentence-demo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -90px;
  background: radial-gradient(circle, rgba(187, 237, 73, 0.13), transparent 62%);
  pointer-events: none;
}

.sentence-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 254, 249, 0.54);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(187, 237, 73, 0.4);
  animation: live-pulse 2s ease-out infinite;
}

@keyframes live-pulse {
  60% { box-shadow: 0 0 0 8px rgba(187, 237, 73, 0); }
  100% { box-shadow: 0 0 0 0 rgba(187, 237, 73, 0); }
}

.sentence-options {
  margin: 28px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sentence-option {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-control);
  background: transparent;
  color: rgba(255, 254, 249, 0.62);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition:
    color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-smooth-out);
}

.sentence-option:hover,
.sentence-option.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-2px);
}

.sentence-response {
  min-height: 380px;
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: var(--canvas);
  color: var(--ink);
}

.sentence-response.is-updating {
  animation: response-enter 480ms var(--ease-smooth-out);
}

@keyframes response-enter {
  from { transform: translateY(6px); filter: blur(4px); opacity: 0.65; }
  to { transform: translateY(0); filter: blur(0); opacity: 1; }
}

.response-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.response-label img {
  border-radius: 9px;
}

.sentence-response > p {
  max-width: 620px;
  margin: 30px 0 42px;
  font-size: clamp(27px, 3.2vw, 46px);
  font-weight: 700;
  letter-spacing: -0.048em;
  line-height: 1.08;
}

.response-macros {
  margin-top: auto;
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid var(--rule);
}

.response-macros div {
  min-width: 0;
}

.response-macros strong,
.response-macros span {
  display: block;
}

.response-macros strong {
  font-size: clamp(25px, 3vw, 42px);
  letter-spacing: -0.06em;
}

.response-macros span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.response-footnote {
  margin-top: 22px;
  color: var(--muted);
  font-size: 10px;
}

.process-card,
.feature-panel,
.film-frame,
.trust-ledger article {
  transition:
    transform 420ms var(--ease-smooth-out),
    border-color var(--duration-fast) ease,
    box-shadow 420ms var(--ease-smooth-out);
}

@media (hover: hover) {
  .process-card:hover {
    z-index: 2;
    border-color: rgba(124, 171, 23, 0.38);
    box-shadow: 0 28px 70px rgba(24, 25, 19, 0.1);
    transform: translateY(-8px);
  }

  .feature-panel:hover {
    box-shadow: 0 32px 90px rgba(24, 25, 19, 0.12);
    transform: translateY(-5px);
  }

  .trust-ledger article:hover {
    transform: translateX(8px);
  }
}

.has-js .motion-target {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(8px);
}

.has-js .motion-target.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 700ms var(--ease-smooth-out),
    transform 700ms var(--ease-smooth-out),
    filter 700ms var(--ease-smooth-out);
  transition-delay: calc(var(--motion-order, 0) * 75ms);
}

.final-cta {
  position: relative;
  width: min(100% - 20px, 1560px);
  min-height: 900px;
  margin-top: clamp(80px, 10vw, 150px);
  padding: clamp(110px, 13vw, 190px) clamp(24px, 6vw, 90px);
  overflow: hidden;
  border-radius: clamp(38px, 5vw, 72px);
  background: var(--dark);
  color: var(--white);
  isolation: isolate;
}

.cta-ambient {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.cta-ambient span {
  position: absolute;
  border: 1px solid rgba(187, 237, 73, 0.16);
  border-radius: 50%;
}

.cta-ambient span:nth-child(1) {
  width: 760px;
  height: 760px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: orbit-breathe 7s ease-in-out infinite;
}

.cta-ambient span:nth-child(2) {
  width: 510px;
  height: 510px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(187, 237, 73, 0.055);
  animation: orbit-breathe 7s 500ms ease-in-out infinite reverse;
}

.cta-ambient span:nth-child(3) {
  width: 300px;
  height: 300px;
  right: -80px;
  top: -90px;
  border: 0;
  background: var(--accent);
  filter: blur(100px);
  opacity: 0.18;
}

@keyframes orbit-breathe {
  0%, 100% { opacity: 0.58; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

.cta-icon-wrap {
  position: relative;
  margin-bottom: 34px;
}

.cta-icon-wrap img {
  border-radius: 25px;
  box-shadow: 0 20px 70px rgba(187, 237, 73, 0.2);
}

.cta-icon-wrap > span {
  position: absolute;
  top: -8px;
  left: 66px;
  width: max-content;
  padding: 7px 10px;
  border: 1px solid rgba(187, 237, 73, 0.32);
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--ink);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.final-cta > .section-index {
  color: rgba(255, 254, 249, 0.48);
}

.final-cta h2 {
  display: grid;
  max-width: 1200px;
  font-size: clamp(70px, 10vw, 154px);
}

.cta-title-accent {
  color: var(--accent);
}

.final-cta > p {
  max-width: 580px;
  margin: 34px 0 42px;
  color: rgba(255, 254, 249, 0.58);
  font-size: 19px;
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.final-cta .app-store-button {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.32);
}

.final-cta .app-store-button > i {
  margin-left: 8px;
  font-style: normal;
  font-size: 16px;
  transition: transform var(--duration-fast) var(--ease-smooth-out);
}

.final-cta .app-store-button:hover > i {
  transform: translate(3px, -3px);
}

.cta-secondary {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 254, 249, 0.76);
  font-size: 12px;
  font-weight: 680;
}

.cta-secondary span {
  margin-left: 8px;
}

.cta-proof {
  margin-top: 54px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  color: rgba(255, 254, 249, 0.48);
  font-size: 10px;
}

.cta-proof > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-proof i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(187, 237, 73, 0.14);
  color: var(--accent);
  font-style: normal;
  font-size: 9px;
}

.mobile-download {
  display: none;
}

@media (max-width: 980px) {
  .conversation-section {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .conversation-intro {
    max-width: 760px;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: 84px;
  }

  .site-header {
    top: 10px;
  }

  .hero-line {
    white-space: normal;
  }

  .scroll-cue {
    display: none;
  }

  .signal-strip {
    width: 100%;
  }

  .signal-track {
    animation-duration: 22s;
  }

  .conversation-section {
    width: min(100% - 12px, 1560px);
    margin-bottom: 96px;
    padding: 72px 20px 20px;
    gap: 46px;
    border-radius: 34px;
  }

  .conversation-intro h2 {
    font-size: clamp(49px, 15vw, 72px);
  }

  .conversation-intro > p {
    font-size: 16px;
  }

  .sentence-demo {
    padding: 12px;
    border-radius: 28px;
  }

  .sentence-demo-head {
    padding: 10px 8px 0;
  }

  .sentence-options {
    flex-wrap: nowrap;
    margin: 24px -12px 14px;
    padding: 0 12px 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sentence-options::-webkit-scrollbar {
    display: none;
  }

  .sentence-option {
    flex: 0 0 auto;
  }

  .sentence-response {
    min-height: 390px;
    padding: 24px 20px;
    border-radius: 22px;
  }

  .sentence-response > p {
    margin-top: 26px;
    font-size: 29px;
  }

  .response-macros {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .final-cta {
    width: min(100% - 12px, 1560px);
    min-height: 760px;
    margin-top: 76px;
    padding: 92px 20px;
    border-radius: 34px;
  }

  .final-cta h2 {
    font-size: clamp(58px, 18vw, 86px);
  }

  .final-cta > p {
    font-size: 17px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-proof {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-download {
    position: fixed;
    z-index: 60;
    right: 10px;
    bottom: 10px;
    left: 10px;
    min-height: 64px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    gap: 11px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    background: rgba(15, 15, 14, 0.9);
    color: var(--white);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
  }

  .mobile-download img {
    border-radius: 11px;
  }

  .mobile-download > span {
    display: grid;
    gap: 2px;
  }

  .mobile-download strong {
    font-size: 13px;
  }

  .mobile-download small {
    color: rgba(255, 254, 249, 0.52);
    font-size: 9px;
  }

  .mobile-download i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    font-style: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-word,
  .signal-track,
  .scroll-cue i,
  .live-indicator i,
  .cta-ambient span {
    animation: none !important;
  }

  .has-js .motion-target,
  .has-js .motion-target.in-view {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Legal and support pages */

/* Guides and tools */

.content-page {
  min-height: 100vh;
}

.content-shell {
  width: min(100% - 44px, 1180px);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 142px) 0 120px;
}

.content-hero {
  max-width: 980px;
  padding-bottom: 58px;
  border-bottom: 1px solid var(--rule);
}

.content-hero h1 {
  margin-top: 18px;
  font-size: clamp(52px, 8.2vw, 112px);
  line-height: 0.91;
}

.content-hero > p {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.52;
}

.content-meta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-meta span,
.content-tag {
  padding: 8px 11px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: 10px;
  font-weight: 740;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.content-grid {
  padding-top: 62px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.content-card {
  min-height: 330px;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(15, 15, 14, 0.1);
  border-radius: 30px;
  background: rgba(255, 254, 249, 0.78);
  transition: transform var(--duration-fast) var(--ease-smooth-out), box-shadow var(--duration-fast) ease;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.content-card h2,
.content-card h3 {
  max-width: 540px;
  margin: 28px 0 0;
  font-size: clamp(29px, 3.2vw, 46px);
  letter-spacing: -0.052em;
  line-height: 1;
}

.content-card p {
  max-width: 580px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.content-card .text-link {
  margin-top: auto;
  padding-top: 28px;
}

.article-layout {
  padding-top: 68px;
  display: grid;
  grid-template-columns: 210px minmax(0, 720px);
  justify-content: space-between;
  gap: clamp(42px, 8vw, 120px);
}

.article-toc {
  position: sticky;
  top: 112px;
  align-self: start;
  display: grid;
  gap: 13px;
  color: var(--muted);
  font-size: 12px;
}

.article-toc a:hover {
  color: var(--ink);
}

.article-body {
  min-width: 0;
}

.article-body section {
  padding: 0 0 58px;
  scroll-margin-top: 110px;
}

.article-body h2 {
  margin: 0 0 18px;
  font-size: clamp(31px, 4vw, 48px);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.article-body h3 {
  margin: 32px 0 12px;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.article-body p,
.article-body li {
  color: #51514c;
  font-size: 17px;
  line-height: 1.75;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
  margin: 18px 0 0;
  padding-left: 24px;
}

.article-body li + li {
  margin-top: 11px;
}

.article-body a:not(.app-store-button):not(.text-link) {
  text-decoration: underline;
  text-decoration-color: var(--accent-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.article-note,
.answer-box {
  margin: 8px 0 46px;
  padding: 26px 28px;
  border-radius: 22px;
  background: rgba(187, 237, 73, 0.13);
}

.article-note strong,
.answer-box strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.article-note p,
.answer-box p {
  margin: 0;
}

.choice-router {
  margin: 8px 0 52px;
}

.choice-router .article-note {
  margin-bottom: 18px;
}

.problem-router {
  padding-top: clamp(84px, 10vw, 136px);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.choice-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  min-height: 300px;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(15, 15, 14, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(187, 237, 73, 0.16), transparent 48%),
    rgba(255, 254, 249, 0.8);
  box-shadow: 0 18px 58px rgba(24, 25, 19, 0.06);
  transition:
    transform var(--duration-fast) var(--ease-smooth-out),
    box-shadow var(--duration-fast) ease;
}

.choice-card:hover,
.choice-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.choice-card h2,
.choice-card h3 {
  margin: 26px 0 0;
  font-size: clamp(25px, 2.5vw, 36px);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.choice-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.choice-card .text-link {
  margin-top: auto;
  padding-top: 24px;
}

.comparison-table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-cta {
  margin-top: 16px;
  padding: 34px;
  border-radius: 28px;
  background: var(--dark);
  color: var(--white);
}

.article-cta h2 {
  color: var(--white);
}

.article-cta p {
  color: rgba(255, 254, 249, 0.64);
}

.article-cta .app-store-button {
  margin-top: 10px;
  color: var(--ink);
  background: var(--accent);
}

.calculator {
  margin-top: 64px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 34px;
  background: var(--dark);
  color: var(--white);
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.macro-inputs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.calculator-checklist {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
}

.calculator-checklist legend {
  margin-bottom: 12px;
  color: rgba(255, 254, 249, 0.62);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calculator-checklist label {
  min-height: 54px;
  padding: 13px 15px;
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 254, 249, 0.78);
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.calculator-checklist input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  flex: 0 0 20px;
  accent-color: var(--accent);
}

.range-result-list .meal-result-row {
  grid-template-columns: minmax(100px, 0.7fr) minmax(150px, 1.3fr);
}

.protein-density-inputs {
  display: grid;
  gap: 12px;
}

.protein-density-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(120px, 0.8fr));
  gap: 12px;
}

.calculator-result small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 254, 249, 0.62);
  font-size: 12px;
  line-height: 1.45;
}

.meal-split-toolbar {
  margin: 24px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.meal-split-toolbar p {
  margin: 0;
  color: rgba(255, 254, 249, 0.62);
  font-size: 14px;
}

.meal-split-toolbar button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.meal-split-toolbar button:hover,
.meal-split-toolbar button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.meal-share-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.meal-result-list {
  margin-top: 28px;
  display: grid;
  gap: 8px;
}

.meal-result-row {
  padding: 15px 17px;
  display: grid;
  grid-template-columns: minmax(78px, 0.7fr) 60px repeat(4, minmax(100px, 1fr));
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
}

.meal-result-row strong {
  color: var(--accent);
}

.meal-result-row span {
  color: rgba(255, 254, 249, 0.68);
  font-size: 13px;
}

.calculator label {
  display: grid;
  gap: 9px;
  color: rgba(255, 254, 249, 0.65);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calculator input,
.calculator select {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-size: 17px;
}

.calculator input:focus,
.calculator select:focus,
.calculator textarea:focus {
  outline: 3px solid rgba(187, 237, 73, 0.28);
  border-color: var(--accent);
}

.calculator-output-label {
  margin-top: 24px;
}

.meal-description-output {
  width: 100%;
  min-height: 132px;
  margin-top: 8px;
  padding: 18px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-size: 16px;
  line-height: 1.55;
}

.calculator-results {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.calculator-result {
  min-height: 118px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.calculator-result strong {
  color: var(--accent);
  font-size: clamp(27px, 4vw, 46px);
  letter-spacing: -0.055em;
}

.calculator-result > span {
  color: rgba(255, 254, 249, 0.52);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calculator-result strong span {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.calculator-help {
  margin: 22px 0 0;
  color: rgba(255, 254, 249, 0.55);
  font-size: 13px;
  line-height: 1.55;
}

.calculator-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 16px 0 20px;
}

.calculator-presets span {
  width: 100%;
  color: rgba(255, 254, 249, 0.54);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calculator-presets button {
  border: 1px solid rgba(255, 254, 249, 0.14);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 254, 249, 0.07);
  color: rgba(255, 254, 249, 0.82);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.calculator-presets button:hover,
.calculator-presets button:focus-visible {
  border-color: rgba(255, 254, 249, 0.34);
  background: rgba(255, 254, 249, 0.12);
}

.recipe-calculator {
  display: grid;
  gap: 12px;
}

.recipe-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.35fr) repeat(4, minmax(105px, 0.7fr));
  gap: 10px;
}

.recipe-row-heading {
  padding: 0 8px;
  color: rgba(255, 254, 249, 0.46);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recipe-row label > span {
  display: none;
}

.recipe-settings {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.recipe-settings label > span {
  color: rgba(255, 254, 249, 0.4);
  font-size: 9px;
}

.calculator-label {
  margin: 24px 0 -12px;
  color: rgba(255, 254, 249, 0.72);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.recipe-summaries {
  margin-top: 8px;
  padding: 4px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.recipe-summaries p {
  margin: 14px 0;
  color: rgba(255, 254, 249, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

.recipe-summaries strong {
  color: var(--white);
}

.week-inputs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.week-target {
  grid-column: span 2;
}

.week-target > span {
  color: rgba(255, 254, 249, 0.4);
  font-size: 9px;
}

.home-resources {
  width: min(100% - 44px, 1400px);
  margin: 0 auto;
  padding: clamp(92px, 12vw, 178px) 0;
}

.home-resources .content-grid {
  padding-top: 46px;
}

.home-link-cluster {
  max-width: 920px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}

.home-link-cluster a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-page,
.error-page {
  min-height: 100vh;
}

.legal-shell {
  width: min(100% - 44px, 1120px);
  margin: 0 auto;
  padding: clamp(88px, 11vw, 164px) 0 120px;
}

.legal-hero {
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}

.legal-hero h1 {
  max-width: 920px;
  font-size: clamp(58px, 9vw, 128px);
}

.legal-hero > p {
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.legal-meta {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.legal-content {
  padding-top: 72px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(40px, 9vw, 130px);
}

.legal-toc {
  position: sticky;
  top: 30px;
  align-self: start;
  display: grid;
  gap: 13px;
  color: var(--muted);
  font-size: 12px;
}

.legal-toc a:hover {
  color: var(--ink);
}

.legal-prose {
  min-width: 0;
}

.legal-prose section {
  padding: 0 0 52px;
  scroll-margin-top: 32px;
}

.legal-prose h2 {
  margin: 0 0 18px;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 750;
  letter-spacing: -0.045em;
}

.legal-prose p,
.legal-prose li {
  color: #51514c;
  font-size: 16px;
  line-height: 1.72;
}

.legal-prose p {
  margin: 0 0 16px;
}

.legal-prose ul {
  margin: 18px 0 0;
  padding-left: 22px;
}

.legal-prose li + li {
  margin-top: 10px;
}

.legal-prose a,
.support-card a {
  text-decoration: underline;
  text-decoration-color: var(--accent-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-callout {
  margin: 10px 0 58px;
  padding: 28px;
  border-left: 5px solid var(--accent);
  border-radius: 0 22px 22px 0;
  background: rgba(187, 237, 73, 0.12);
}

.legal-callout p {
  margin: 0;
  color: var(--ink);
  font-weight: 640;
}

.support-grid {
  padding-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-card {
  min-height: 260px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.42);
}

.support-card-wide {
  grid-column: 1 / -1;
  background: var(--dark);
  color: var(--white);
}

.support-card .feature-kicker {
  margin-bottom: 42px;
}

.support-card-wide .feature-kicker {
  color: rgba(255, 255, 255, 0.5);
}

.support-card h2 {
  margin: auto 0 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.05em;
}

.support-card p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.support-card-wide p {
  color: rgba(255, 255, 255, 0.62);
}

.support-email {
  width: fit-content;
  margin-top: 28px;
  padding: 15px 20px;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none !important;
  white-space: nowrap;
}

.error-page {
  display: grid;
  place-items: center;
}

.error-card {
  width: min(100% - 40px, 900px);
  padding: 72px;
  border-radius: 44px;
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.error-card img {
  margin: 0 auto 24px;
  border-radius: 18px;
}

.error-card p {
  margin: 24px auto 36px;
  color: rgba(255, 255, 255, 0.58);
}

.error-card .nav-cta {
  background: var(--accent);
  color: var(--ink);
}

@media (max-width: 980px) {
  .section-heading-split,
  .trust-section,
  .atlas-section,
  .pro-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-heading-split > p {
    margin-top: 0;
  }

  .process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-card {
    min-height: 500px;
  }

  .chat-sample {
    margin-top: 44px;
  }

  .mini-macros {
    margin-top: 58px;
  }

  .portion-control {
    margin-top: 64px;
  }

  .feature-panel-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-screen-thread {
    width: 46%;
    right: 3%;
    top: auto;
    bottom: -240px;
  }

  .atlas-section {
    min-height: 1260px;
  }

  .atlas-copy {
    position: relative;
    z-index: 3;
  }

  .atlas-visual {
    min-height: 720px;
  }

  .pro-mark {
    align-self: auto;
  }

  .legal-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--rule);
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 720px) {
  .signal-strip,
  .story-section,
  .film-section,
  .trust-section,
  .final-cta,
  .site-footer {
    width: min(100% - 28px, 1400px);
  }

  .signal-strip {
    justify-content: flex-start;
    overflow: hidden;
  }

  .signal-strip p:nth-of-type(n + 3),
  .signal-strip span:nth-of-type(n + 3) {
    display: none;
  }

  .inside-section {
    width: min(100% - 12px, 1400px);
  }

  .section-heading-split {
    gap: 32px;
  }

  .section-heading h2,
  .trust-lead h2,
  .atlas-copy h2,
  .pro-copy h2 {
    font-size: clamp(48px, 15vw, 74px);
  }

  .process-card {
    min-height: 520px;
    padding: 20px;
  }

  .feature-editorial {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-panel,
  .feature-panel-wide {
    grid-column: auto;
    min-height: 720px;
    padding: 28px;
  }

  .feature-panel-wide {
    min-height: 850px;
  }

  .feature-screen-thread {
    width: 78%;
    right: -3%;
    bottom: -310px;
  }

  .feature-panel-detail {
    min-height: 780px;
  }

  .feature-screen-detail {
    width: 72%;
    bottom: -250px;
  }

  .feature-panel-language > p {
    left: 28px;
    right: 28px;
  }

  .atlas-section,
  .pro-section {
    width: min(100% - 12px, 1560px);
    padding: 34px 26px 54px;
  }

  .atlas-section {
    min-height: 1120px;
  }

  .atlas-visual {
    min-height: 620px;
  }

  .atlas-visual img,
  .atlas-visual::before,
  .atlas-visual::after {
    width: 82%;
    border-radius: 42px;
  }

  .film-frame {
    padding: 7px;
    border-radius: 24px;
  }

  .film-frame video {
    border-radius: 18px;
  }

  .pro-section {
    gap: 36px;
  }

  .pro-mark {
    grid-template-columns: auto auto;
    align-items: center;
  }

  .final-cta h2 {
    font-size: clamp(65px, 20vw, 100px);
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
  }

  .footer-legal {
    grid-column: auto;
  }

  .legal-shell {
    width: min(100% - 28px, 1120px);
    padding-top: 72px;
  }

  .content-shell,
  .home-resources {
    width: min(100% - 28px, 1180px);
  }

  .content-grid,
  .choice-grid,
  .calculator-grid,
  .calculator-results {
    grid-template-columns: minmax(0, 1fr);
  }

  .macro-inputs {
    grid-template-columns: minmax(0, 1fr);
  }

  .calculator-checklist {
    grid-template-columns: minmax(0, 1fr);
  }

  .protein-density-row {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .meal-split-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .meal-result-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meal-result-row strong,
  .meal-result-row span:nth-child(2) {
    grid-column: span 1;
  }

  .recipe-settings {
    grid-template-columns: minmax(0, 1fr);
  }

  .recipe-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .recipe-row label:first-child {
    grid-column: 1 / -1;
  }

  .recipe-row-heading {
    display: none;
  }

  .recipe-row label > span {
    display: inline;
  }

  .week-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .week-target {
    grid-column: 1 / -1;
  }

  .content-card {
    min-height: 290px;
  }

  .content-hero h1 {
    font-size: clamp(49px, 16vw, 78px);
  }

  .article-body p,
  .article-body li {
    font-size: 16px;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
  }

  .legal-hero h1 {
    font-size: clamp(52px, 18vw, 84px);
  }

  .legal-content {
    padding-top: 52px;
  }

  .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-card-wide {
    grid-column: auto;
  }

  .support-card {
    min-height: 230px;
    padding: 26px;
  }

  .support-email {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .error-card {
    padding: 50px 24px;
  }
}

/* Keep the enhanced full-bleed components authoritative after legacy breakpoints. */
@media (max-width: 720px) {
  .signal-strip {
    width: 100%;
  }

  .signal-strip .signal-group p,
  .signal-strip .signal-group span {
    display: block;
  }

  .final-cta {
    width: min(100% - 12px, 1560px);
  }

  .final-cta h2 {
    font-size: clamp(58px, 18vw, 86px);
  }
}

/* Per-section motion system - adapted from recommended 21st.dev patterns. */

.page-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}

.page-progress span {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #86b820, var(--accent), #e5ff9b);
  box-shadow: 0 0 18px rgba(187, 237, 73, 0.5);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.motion-section {
  --section-progress: 0;
  --section-shift: 0;
  --section-shift-px: 0px;
  --section-shift-reverse-px: 0px;
  --section-shift-soft: 0px;
  --section-scale: 1;
  --section-rotate: 0deg;
  --section-rotate-reverse: 0deg;
}

.motion-line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0.06em 0.08em 0;
  margin: -0.06em -0.06em -0.08em 0;
}

.motion-line-inner {
  display: block;
}

.has-js .motion-line.motion-target {
  opacity: 1;
  transform: none;
  filter: none;
}

.has-js .motion-line.motion-target .motion-line-inner {
  opacity: 0;
  transform: translateY(112%) rotate(1.5deg);
  filter: blur(8px);
}

.has-js .motion-line.motion-target.in-view .motion-line-inner {
  opacity: 1;
  transform: translateY(0) rotate(0);
  filter: blur(0);
  transition:
    opacity 760ms var(--ease-smooth-out),
    transform 760ms var(--ease-smooth-out),
    filter 760ms var(--ease-smooth-out);
  transition-delay: calc(var(--motion-order, 0) * 90ms);
}

/* Each chapter gets its own entrance grammar instead of a repeated fade. */

.has-js .motion-stack .motion-line.motion-target:not(.in-view) {
  perspective: 900px;
}

.has-js .motion-stack .motion-line.motion-target:not(.in-view) .motion-line-inner {
  transform: translateY(82%) rotateX(-64deg);
  transform-origin: 50% 100%;
}

.has-js .motion-mask .motion-line.motion-target:not(.in-view) .motion-line-inner {
  transform: translateX(-0.42em) skewX(-7deg);
  filter: blur(12px);
}

.has-js .motion-gallery .motion-line.motion-target:not(.in-view) .motion-line-inner {
  clip-path: inset(0 100% 0 0);
  transform: translateY(0);
  letter-spacing: -0.09em;
}

.has-js .motion-gallery .motion-line.motion-target.in-view .motion-line-inner {
  clip-path: inset(0);
  letter-spacing: inherit;
  transition:
    opacity 760ms var(--ease-smooth-out),
    clip-path 1s var(--ease-smooth-out),
    letter-spacing 1s var(--ease-smooth-out),
    filter 760ms var(--ease-smooth-out);
}

.has-js .motion-parallax .motion-line.motion-target:not(.in-view) .motion-line-inner {
  transform: translate3d(0, 0.38em, -80px) scale(0.9);
  filter: blur(10px);
}

.has-js .motion-cinema .motion-line:nth-child(odd).motion-target:not(.in-view) .motion-line-inner {
  transform: translateX(-0.65em);
  filter: blur(9px);
}

.has-js .motion-cinema .motion-line:nth-child(even).motion-target:not(.in-view) .motion-line-inner {
  transform: translateX(0.65em);
  filter: blur(9px);
}

.has-js .motion-ledger .motion-line.motion-target:not(.in-view) .motion-line-inner {
  transform: translateY(-72%) rotate(-2deg);
  filter: blur(7px);
}

.has-js .motion-pro .motion-line.motion-target:not(.in-view) {
  perspective: 900px;
}

.has-js .motion-pro .motion-line.motion-target:not(.in-view) .motion-line-inner {
  transform: translate3d(0.3em, 0, -90px) rotateY(-18deg);
  transform-origin: 0 50%;
  filter: blur(8px);
}

.has-js .motion-orbit .motion-line:nth-child(odd).motion-target:not(.in-view) .motion-line-inner {
  transform: translateX(-0.55em) scale(0.96);
}

.has-js .motion-orbit .motion-line:nth-child(even).motion-target:not(.in-view) .motion-line-inner {
  transform: translateX(0.55em) scale(0.96);
}

.spotlight-surface {
  --spot-x: 50%;
  --spot-y: 50%;
}

.spotlight-surface::after {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--spot-x) var(--spot-y),
    rgba(187, 237, 73, 0.14),
    transparent 58%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.spotlight-surface:hover::after {
  opacity: 1;
}

/* 01 - 21st.dev-style stacking cards that deal into a three-card story */

.motion-stack .process-grid {
  perspective: 1500px;
  transform-style: preserve-3d;
}

.has-js .motion-stack .process-card.motion-target {
  --deal-x: 0%;
  --deal-rotate: 0deg;
  --deal-y: 0deg;
  opacity: 0.22;
  transform: translate3d(var(--deal-x), 112px, -210px) rotateY(var(--deal-y)) rotateZ(var(--deal-rotate)) scale(0.84);
  filter: blur(8px) saturate(0.72);
  transform-origin: 50% 100%;
}

.has-js .motion-stack .process-card:nth-child(1) {
  --deal-x: 104%;
  --deal-rotate: -9deg;
  --deal-y: 12deg;
}

.has-js .motion-stack .process-card:nth-child(3) {
  --deal-x: -104%;
  --deal-rotate: 9deg;
  --deal-y: -12deg;
}

.has-js .motion-stack .process-card.motion-target.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateY(0) rotateZ(0) scale(1);
  filter: blur(0);
  transition:
    opacity 620ms var(--ease-smooth-out),
    transform 1.15s var(--ease-smooth-out),
    filter 820ms var(--ease-smooth-out),
    border-color var(--duration-fast) ease,
    box-shadow 420ms var(--ease-smooth-out);
  transition-delay: calc(80ms + var(--item-index, 0) * 145ms);
}

@media (hover: hover) and (pointer: fine) {
  .motion-stack .process-card.in-view:hover {
    z-index: 5;
    transform: translate3d(0, -16px, 38px) rotateX(2deg) scale(1.018);
    box-shadow: 0 34px 90px rgba(20, 21, 16, 0.17);
  }
}

.motion-stack .process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 28%, rgba(255, 255, 255, 0.7) 48%, transparent 67%);
  opacity: 0;
  transform: translateX(-110%);
  pointer-events: none;
}

.motion-stack .process-card.in-view::before {
  animation: card-sheen 1.05s calc(500ms + var(--item-index, 0) * 130ms) var(--ease-smooth-out) both;
}

@keyframes card-sheen {
  0% { opacity: 0; transform: translateX(-110%); }
  25% { opacity: 0.42; }
  100% { opacity: 0; transform: translateX(110%); }
}

/* 02 - memory echo typography and a hinged conversational card */

.motion-mask .conversation-intro h2 .motion-line {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.motion-mask .conversation-intro h2 .memory-echo {
  position: absolute;
  z-index: -1;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(187, 237, 73, 0.3);
  opacity: 0;
  transform: translate3d(0, 0.34em, -30px) scale(1.035);
  filter: blur(4px);
  pointer-events: none;
}

.motion-mask.in-view .conversation-intro h2 .memory-echo {
  animation: memory-echo 1.35s calc(300ms + var(--echo-index, 0) * 150ms) var(--ease-smooth-out) both;
}

@keyframes memory-echo {
  0% { opacity: 0; transform: translate3d(0, 0.42em, -30px) scale(1.04); filter: blur(6px); }
  34% { opacity: 0.7; }
  100% { opacity: 0; transform: translate3d(0, -0.22em, 0) scale(1); filter: blur(0); }
}

.has-js .motion-mask .conversation-intro.motion-target {
  opacity: 0;
  transform: translateX(-48px);
  filter: blur(8px);
}

.has-js .motion-mask .conversation-intro.motion-target.in-view {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
  transition: opacity 800ms var(--ease-smooth-out), transform 900ms var(--ease-smooth-out), filter 800ms var(--ease-smooth-out);
}

.has-js .motion-mask .sentence-demo.motion-target {
  opacity: 0;
  clip-path: polygon(0 0, 22% 0, 22% 100%, 0 100%);
  transform: perspective(1200px) translateX(54px) rotateY(-12deg) scale(0.965);
  transform-origin: 0 50%;
  filter: blur(6px);
}

.has-js .motion-mask .sentence-demo.motion-target.in-view {
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: perspective(1200px) translateX(0) rotateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 700ms var(--ease-smooth-out) 120ms,
    clip-path 1s var(--ease-smooth-out) 120ms,
    transform 900ms var(--ease-smooth-out) 120ms,
    filter 700ms var(--ease-smooth-out) 120ms;
}

.has-js .motion-mask .sentence-option {
  opacity: 0;
  transform: translateY(16px) scale(0.92);
}

.has-js .motion-mask .sentence-demo.in-view .sentence-option {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 480ms var(--ease-smooth-out), transform 620ms var(--ease-smooth-out), color var(--duration-fast) ease, background var(--duration-fast) ease, border-color var(--duration-fast) ease;
  transition-delay: calc(620ms + var(--option-index, 0) * 90ms);
}

.has-js .motion-mask .sentence-response {
  transform-origin: 50% 0;
}

.has-js .motion-mask .sentence-demo.in-view .sentence-response {
  animation: response-unfold 820ms 760ms var(--ease-smooth-out) both;
}

@keyframes response-unfold {
  from { opacity: 0; transform: perspective(900px) rotateX(-11deg) translateY(24px); filter: blur(6px); }
  to { opacity: 1; transform: perspective(900px) rotateX(0) translateY(0); filter: blur(0); }
}

.motion-mask .sentence-demo {
  translate: 0 var(--section-shift-soft);
  will-change: translate;
}

/* 03 - editorial gallery unfurl */

.has-js .motion-gallery .feature-panel.motion-target {
  opacity: 0;
  clip-path: inset(10% 5% 10% 5% round 54px);
  transform: translateY(68px) scale(0.965);
  filter: blur(7px);
}

.has-js .motion-gallery .feature-panel:nth-child(even).motion-target {
  transform: translateY(68px) translateX(26px) scale(0.965);
}

.has-js .motion-gallery .feature-panel.motion-target.in-view {
  opacity: 1;
  clip-path: inset(0 round 38px);
  transform: translate(0, 0) scale(1);
  filter: blur(0);
  transition:
    opacity 760ms var(--ease-smooth-out),
    clip-path 980ms var(--ease-smooth-out),
    transform 980ms var(--ease-smooth-out),
    filter 760ms var(--ease-smooth-out),
    box-shadow 420ms var(--ease-smooth-out);
  transition-delay: calc(var(--item-index, 0) * 100ms);
}

.motion-gallery .feature-screen-thread {
  translate: 0 var(--section-shift-reverse-px);
  rotate: var(--section-rotate);
  will-change: translate, rotate;
}

.motion-gallery .feature-screen-detail {
  translate: 0 var(--section-shift-px);
  rotate: var(--section-rotate);
  will-change: translate, rotate;
}

.motion-gallery .language-orbit {
  rotate: var(--section-rotate);
  transition: rotate 100ms linear;
}

/* 04 - visual atlas parallax stack */

.motion-parallax .atlas-copy {
  translate: 0 var(--section-shift-soft);
  will-change: translate;
}

.motion-parallax .atlas-visual {
  translate: 0 var(--section-shift-reverse-px);
  will-change: translate;
}

.motion-parallax .atlas-visual img {
  scale: var(--section-scale);
  will-change: scale;
}

.motion-parallax .atlas-visual::before {
  rotate: var(--section-rotate);
}

.motion-parallax .atlas-visual::after {
  rotate: var(--section-rotate-reverse);
}

.has-js .motion-parallax .atlas-visual.motion-target {
  opacity: 0;
  transform: translateY(80px) scale(0.92);
  filter: blur(8px);
}

.has-js .motion-parallax .atlas-visual.motion-target.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity 850ms var(--ease-smooth-out), transform 1.1s var(--ease-smooth-out), filter 850ms var(--ease-smooth-out);
}

/* 05 - cinematic image mask */

.has-js .motion-cinema .film-frame.motion-target {
  opacity: 0;
  clip-path: inset(14% 9% round 90px);
  transform: translateY(54px) scale(0.93);
  filter: blur(9px);
}

.has-js .motion-cinema .film-frame.motion-target.in-view {
  opacity: 1;
  clip-path: inset(0 round 38px);
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity 850ms var(--ease-smooth-out), clip-path 1.15s var(--ease-smooth-out), transform 1.15s var(--ease-smooth-out), filter 850ms var(--ease-smooth-out);
}

.motion-cinema .film-frame {
  scale: var(--section-scale);
  will-change: scale;
}

.motion-cinema .film-frame video {
  transform: scale(1.045);
  transition: transform 1.4s var(--ease-smooth-out);
}

.motion-cinema .film-frame.in-view video {
  transform: scale(1);
}

.motion-cinema .film-frame::after {
  content: "";
  position: absolute;
  inset: 12px 12px 44px;
  border-radius: 28px;
  background: linear-gradient(110deg, transparent 15%, rgba(187, 237, 73, 0.13), transparent 58%);
  opacity: 0;
  transform: translateX(-100%);
  pointer-events: none;
}

.motion-cinema .film-frame.in-view::after {
  animation: cinema-sweep 1.4s 450ms var(--ease-smooth-out) both;
}

@keyframes cinema-sweep {
  0% { opacity: 0; transform: translateX(-100%); }
  35% { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(115%); }
}

/* 06 - trust ledger cascade */

.motion-ledger {
  overflow-x: clip;
}

.motion-ledger .trust-ledger article {
  position: relative;
}

.motion-ledger .trust-ledger article::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-strong), var(--rule));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.has-js .motion-ledger .trust-ledger article.motion-target {
  opacity: 0;
  transform: translateX(52px);
  filter: blur(5px);
}

.has-js .motion-ledger .trust-ledger article.motion-target.in-view {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
  transition: opacity 650ms var(--ease-smooth-out), transform 820ms var(--ease-smooth-out), filter 650ms var(--ease-smooth-out);
  transition-delay: calc(var(--item-index, 0) * 120ms);
}

.motion-ledger .trust-ledger article.in-view::before {
  transform: scaleX(1);
  transition: transform 900ms var(--ease-smooth-out);
  transition-delay: calc(240ms + var(--item-index, 0) * 120ms);
}

.motion-ledger .trust-index {
  transition: color 500ms ease, transform 700ms var(--ease-smooth-out);
}

.motion-ledger article.in-view .trust-index {
  color: #76a416;
  transform: rotate(-8deg);
}

/* 07 - Mori Pro aperture reveal and depth-fold feature stack */

.motion-pro {
  position: relative;
  overflow: hidden;
  perspective: 1400px;
}

.pro-aperture {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.pro-aperture span {
  position: absolute;
  width: 50%;
  height: 50%;
  border: 1px solid rgba(187, 237, 73, 0.08);
  background: linear-gradient(135deg, rgba(187, 237, 73, 0.09), transparent 62%);
  transition: transform 1.25s var(--ease-smooth-out), opacity 900ms ease;
}

.pro-aperture span:nth-child(1) { top: 0; left: 0; transform: translate(44%, 44%); }
.pro-aperture span:nth-child(2) { top: 0; right: 0; transform: translate(-44%, 44%) rotate(90deg); }
.pro-aperture span:nth-child(3) { right: 0; bottom: 0; transform: translate(-44%, -44%) rotate(180deg); }
.pro-aperture span:nth-child(4) { bottom: 0; left: 0; transform: translate(44%, -44%) rotate(270deg); }

.pro-aperture i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(187, 237, 73, 0.4), 0 0 80px rgba(187, 237, 73, 0.4);
  transform: translate(-50%, -50%) scale(0);
}

.motion-pro.in-view .pro-aperture span:nth-child(1) { transform: translate(-14%, -16%); }
.motion-pro.in-view .pro-aperture span:nth-child(2) { transform: translate(14%, -16%) rotate(90deg); }
.motion-pro.in-view .pro-aperture span:nth-child(3) { transform: translate(14%, 16%) rotate(180deg); }
.motion-pro.in-view .pro-aperture span:nth-child(4) { transform: translate(-14%, 16%) rotate(270deg); }
.motion-pro.in-view .pro-aperture i { animation: aperture-pulse 1.1s 320ms var(--ease-smooth-out) both; }

@keyframes aperture-pulse {
  0% { transform: translate(-50%, -50%) scale(0); box-shadow: 0 0 0 0 rgba(187, 237, 73, 0.5); }
  55% { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 0 34px rgba(187, 237, 73, 0); }
  100% { transform: translate(-50%, -50%) scale(0.55); box-shadow: 0 0 0 0 rgba(187, 237, 73, 0); }
}

.motion-pro > :not(.pro-aperture) {
  position: relative;
  z-index: 1;
}

.motion-pro .pro-mark {
  translate: 0 var(--section-shift-reverse-px);
  will-change: translate;
}

.motion-pro .pro-mark img {
  animation: pro-icon-float 4.6s ease-in-out infinite;
}

@keyframes pro-icon-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.has-js .motion-pro .pro-list li.motion-target {
  opacity: 0;
  transform: translate3d(0, 34px, -90px) rotateX(-68deg) scale(0.96);
  transform-origin: 50% 0;
  filter: blur(5px);
}

.has-js .motion-pro .pro-list li.motion-target.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0) scale(1);
  filter: blur(0);
  transition: opacity 580ms var(--ease-smooth-out), transform 920ms var(--ease-smooth-out), filter 640ms var(--ease-smooth-out);
  transition-delay: calc(460ms + var(--item-index, 0) * 125ms);
}

.motion-pro .pro-list li::after {
  content: "";
  width: 6px;
  height: 6px;
  align-self: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(187, 237, 73, 0.35);
  transition: box-shadow 500ms ease;
}

.motion-pro .pro-list li {
  grid-template-columns: 46px 1fr auto;
}

.motion-pro .pro-list li.in-view::after {
  box-shadow: 0 0 0 8px rgba(187, 237, 73, 0);
}

/* 08 - orbit CTA finishing motion */

.motion-orbit .cta-ambient {
  rotate: var(--section-rotate);
  scale: var(--section-scale);
  will-change: rotate, scale;
}

.has-js .motion-orbit .cta-proof > span.motion-target {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
}

.has-js .motion-orbit .cta-proof > span.motion-target.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 560ms var(--ease-smooth-out), transform 680ms var(--ease-smooth-out);
  transition-delay: calc(var(--item-index, 0) * 90ms);
}

.motion-orbit .app-store-button {
  position: relative;
  isolation: isolate;
}

.motion-orbit .app-store-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10px;
  border-radius: 26px;
  background: radial-gradient(circle, rgba(187, 237, 73, 0.46), transparent 66%);
  filter: blur(13px);
  opacity: 0.45;
  animation: cta-nebula 2.8s ease-in-out infinite;
}

@keyframes cta-nebula {
  0%, 100% { opacity: 0.28; transform: scale(0.94); }
  50% { opacity: 0.62; transform: scale(1.08); }
}

@media (max-width: 720px) {
  .page-progress {
    height: 2px;
  }

  .motion-gallery .feature-screen-thread,
  .motion-gallery .feature-screen-detail,
  .motion-parallax .atlas-copy,
  .motion-parallax .atlas-visual,
  .motion-mask .sentence-demo,
  .motion-pro .pro-mark {
    translate: 0 0;
  }

  .has-js .motion-stack .process-card.motion-target,
  .has-js .motion-gallery .feature-panel.motion-target,
  .has-js .motion-parallax .atlas-visual.motion-target,
  .has-js .motion-cinema .film-frame.motion-target {
    transform: translateY(42px) scale(0.98);
  }

  .has-js .motion-stack .process-card.motion-target.in-view,
  .has-js .motion-gallery .feature-panel.motion-target.in-view,
  .has-js .motion-parallax .atlas-visual.motion-target.in-view,
  .has-js .motion-cinema .film-frame.motion-target.in-view {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-progress {
    display: none;
  }

  .motion-line-inner,
  .motion-stack .process-card,
  .motion-mask .conversation-intro,
  .motion-mask .sentence-demo,
  .motion-gallery .feature-panel,
  .motion-gallery .feature-screen-thread,
  .motion-gallery .feature-screen-detail,
  .motion-gallery .language-orbit,
  .motion-parallax .atlas-copy,
  .motion-parallax .atlas-visual,
  .motion-parallax .atlas-visual img,
  .motion-cinema .film-frame,
  .motion-cinema .film-frame video,
  .motion-ledger .trust-ledger article,
  .motion-pro .pro-mark,
  .motion-pro .pro-mark img,
  .motion-pro .pro-aperture span,
  .motion-pro .pro-aperture i,
  .motion-pro .pro-list li,
  .motion-orbit .cta-ambient,
  .motion-orbit .cta-proof > span,
  .motion-orbit .app-store-button::before {
    animation: none !important;
    clip-path: none !important;
    filter: none !important;
    opacity: 1 !important;
    rotate: none !important;
    scale: 1 !important;
    transform: none !important;
    translate: none !important;
    transition: none !important;
  }

  .spotlight-surface::after,
  .motion-stack .process-card::before,
  .motion-cinema .film-frame::after,
  .motion-mask .conversation-intro h2 .memory-echo {
    display: none;
  }
}

/* kJ chart: wide reference tables scroll inside their own container */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.25rem 0; }
.kj-chart-table { min-width: 22rem; width: 100%; }
.kj-chart-table caption { text-align: left; font-weight: 600; padding-bottom: 0.5rem; opacity: 0.75; }
.kj-chart-table tr[data-kj].is-near { background: rgba(122, 143, 106, 0.14); }
.kj-chart-table tr[data-kj].is-match { background: rgba(122, 143, 106, 0.28); font-weight: 600; }

/* small qualifier inside a table header cell */
.table-note { display: block; font-weight: 400; font-size: 0.78em; opacity: 0.7; margin-top: 0.15rem; }
