:root {
  color-scheme: light dark;
  --ink-950: #211728;
  --ink-900: #2e2338;
  --ink-800: #463653;
  --ink-700: #5b4868;
  --ink-600: #725d80;
  --paper-50: #fbf8f4;
  --paper-100: #f5f0eb;
  --paper-200: #ebe3dc;
  --paper-300: #dbd0c9;
  --lavender-300: #d9a9f2;
  --lavender-400: #be82f2;
  --lavender-500: #9a66df;
  --accent-readable: #7b43bd;
  --accent-deep: #7440ad;
  --coral-400: #f18c78;
  --body: #352a3d;
  --muted: #6d6172;
  --surface: #fbf8f4;
  --surface-soft: #f5f0eb;
  --surface-strong: #ebe3dc;
  --line: rgba(46, 35, 56, 0.14);
  --header: rgba(251, 248, 244, 0.84);
  --shadow: 0 28px 80px rgba(46, 35, 56, 0.16);
  --badge-bg: #211728;
  --badge-ink: #ffffff;
  --badge-stroke: rgba(255, 255, 255, 0.18);
  --display: "Newsreader", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100% - 40px));
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--coral-400);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--ink-950);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

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

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: var(--header);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(46, 35, 56, 0.06);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: var(--shell);
  min-height: 72px;
  margin-inline: auto;
}

.brand,
.nav-links a,
.nav-cta {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  justify-self: start;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(46, 35, 56, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  display: grid;
  min-height: 44px;
  place-items: center;
  transition: color 160ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  border-radius: 2px;
  background: var(--accent-readable);
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink-900);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-grid;
  min-height: 44px;
  padding: 0 19px;
  place-items: center;
  justify-self: end;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  box-shadow: 0 8px 22px rgba(46, 35, 56, 0.12);
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-deep);
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 154px 0 92px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 49.92%, rgba(46, 35, 56, 0.055) 49.92% 50.08%, transparent 50.08%),
    var(--surface);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -48% 42%;
  width: 740px;
  height: 740px;
  border: 1px solid rgba(154, 102, 223, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.hero-ambient {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 660px;
  height: 660px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 130, 242, 0.19), transparent 68%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-readable);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  color: var(--ink-950);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 730px;
  font-size: clamp(3.45rem, 6.2vw, 6.15rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2.35rem, 4.2vw, 4.35rem);
  line-height: 1;
}

h3 {
  margin: 0;
  color: var(--ink-950);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.hero-intro {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.65;
}

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

.app-store-badge {
  display: block;
  width: 180px;
  min-height: 60px;
  color: var(--badge-bg);
  border-radius: 11px;
  transition: transform 180ms ease, filter 180ms ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 18px rgba(46, 35, 56, 0.16));
}

.hero-rating {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.hero-rating strong {
  color: var(--ink-950);
}

.stars {
  color: var(--coral-400);
  font-size: 15px;
  letter-spacing: 0.07em;
  line-height: 1;
}

.hero-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-art {
  position: relative;
  min-height: 520px;
}

.manuscript-shadow {
  position: absolute;
  inset: 12% 3% 4% 10%;
  transform: rotate(5deg);
  border-radius: var(--radius-md);
  background: var(--ink-800);
  opacity: 0.13;
  filter: blur(2px);
}

.manuscript {
  position: absolute;
  inset: 5% 7% 8% 4%;
  display: flex;
  flex-direction: column;
  padding: clamp(36px, 5vw, 64px);
  transform: rotate(-2.5deg);
  border: 1px solid rgba(46, 35, 56, 0.12);
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, transparent 0 68px, rgba(241, 140, 120, 0.32) 68px 69px, transparent 69px),
    #fffdf9;
  box-shadow: var(--shadow);
  color: var(--ink-900);
}

.folio {
  display: flex;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(46, 35, 56, 0.12);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.chapter-kicker {
  margin: 54px 0 8px;
  color: var(--accent-readable);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.chapter-title {
  margin: 0;
  color: var(--ink-950);
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.writing-lines {
  display: grid;
  gap: 12px;
  width: 82%;
  margin-top: 34px;
}

.writing-lines i {
  height: 7px;
  border-radius: 9px;
  background: var(--paper-200);
}

.writing-lines i:nth-child(2) {
  width: 88%;
}

.writing-lines i:nth-child(3) {
  width: 94%;
}

.writing-lines i:nth-child(4) {
  width: 61%;
}

.dictation-mark {
  position: absolute;
  right: 34px;
  bottom: 31px;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 25px;
}

.dictation-mark span {
  width: 3px;
  height: 10px;
  border-radius: 99px;
  background: var(--lavender-500);
}

.dictation-mark span:nth-child(2),
.dictation-mark span:nth-child(4) {
  height: 18px;
}

.dictation-mark span:nth-child(3) {
  height: 25px;
}

.hero-icon {
  position: absolute;
  top: -4%;
  right: -1%;
  width: 132px;
  height: 132px;
  border: 5px solid rgba(255, 255, 255, 0.44);
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(46, 35, 56, 0.28);
}

.chapter-tabs {
  position: absolute;
  z-index: 2;
  top: 35%;
  left: -15px;
  display: grid;
  gap: 8px;
}

.chapter-tabs span {
  display: grid;
  width: 50px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px 0 0 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.chapter-tabs .active {
  background: var(--accent-deep);
  color: #fff;
}

.margin-note {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  transform: rotate(-3deg);
  color: var(--coral-400);
  font-family: var(--display);
  font-size: 19px;
  font-style: italic;
}

.feature-section,
.faq-section {
  padding: 128px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.68fr;
  column-gap: 72px;
  align-items: end;
  margin-bottom: 58px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2 {
  max-width: 700px;
}

.section-heading > p:last-child,
.process-intro > p:last-child,
.faq-intro > p:last-child {
  margin: 0;
  color: var(--muted);
}

.feature-composition {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.feature p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(154, 102, 223, 0.12);
  color: var(--lavender-500);
}

.feature-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.feature-lead {
  display: grid;
  grid-column: span 8;
  grid-row: span 2;
  grid-template-columns: 1.04fr 0.96fr;
  min-height: 430px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.7);
}

.feature-lead::after {
  content: "CHAPTERS";
  position: absolute;
  right: -14px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.feature-lead .feature-copy {
  position: relative;
  z-index: 1;
  align-self: start;
}

.feature-lead .feature-icon {
  background: rgba(217, 169, 242, 0.14);
  color: var(--lavender-300);
}

.feature-lead .feature-label {
  margin: 0 0 13px;
  color: var(--lavender-300);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.feature-lead h3 {
  max-width: 490px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
}

.feature-lead p {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.68);
}

.chapter-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  align-content: center;
  padding-left: 32px;
}

.chapter-stack div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 16px;
  transform: translateX(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
}

.chapter-stack div:nth-child(3) {
  transform: translateX(6px);
}

.chapter-stack .selected {
  transform: translateX(-8px);
  border-color: rgba(217, 169, 242, 0.36);
  background: rgba(217, 169, 242, 0.15);
}

.chapter-stack span {
  color: var(--lavender-300);
  font-size: 10px;
}

.chapter-stack b {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
}

.chapter-stack > svg {
  width: 28px;
  margin: 4px 22px 0 auto;
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-linecap: round;
  stroke-width: 2;
}

.feature-medium {
  grid-column: span 4;
  min-height: 260px;
  padding: 30px;
  background:
    radial-gradient(circle at 85% 110%, rgba(190, 130, 242, 0.22), transparent 48%),
    var(--surface-soft);
}

.feature-small {
  grid-column: span 4;
  min-height: 218px;
  padding: 28px;
}

.feature-wide {
  display: grid;
  grid-column: span 8;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, 0.65fr);
  gap: 22px;
  align-items: center;
  min-height: 218px;
  padding: 28px;
}

.feature-wide .feature-icon {
  margin: 0;
}

.feature-wide p {
  margin-top: 6px;
}

.feature-wide blockquote {
  margin: 0;
  padding-left: 20px;
  border-left: 3px solid var(--coral-400);
  color: var(--ink-700);
  font-family: var(--display);
  font-size: 23px;
  font-style: italic;
  line-height: 1.25;
}

.sound-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 42px;
  margin-top: 18px;
}

.sound-wave i {
  width: 4px;
  height: 12px;
  border-radius: 99px;
  background: var(--lavender-400);
}

.sound-wave i:nth-child(2),
.sound-wave i:nth-child(6) {
  height: 22px;
}

.sound-wave i:nth-child(3),
.sound-wave i:nth-child(5) {
  height: 32px;
}

.sound-wave i:nth-child(4) {
  height: 40px;
}

.process-section {
  padding: 128px 0;
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.72);
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(60px, 10vw, 150px);
}

.process-intro {
  position: sticky;
  top: 118px;
  align-self: start;
}

.process-intro h2 {
  color: #fff;
}

.process-intro > p:last-child {
  max-width: 360px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.58);
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.process-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: 0 0 46px;
}

.process-list li + li {
  padding-top: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.process-list li:last-child {
  padding-bottom: 0;
}

.process-list li > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(217, 169, 242, 0.3);
  border-radius: 50%;
  color: var(--lavender-300);
  font-family: var(--display);
  font-size: 22px;
}

.process-list h3 {
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 500;
}

.process-list p {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.rating-section {
  padding: 80px 0;
  background: var(--lavender-300);
}

.rating-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.rating-layout .eyebrow {
  color: var(--ink-800);
}

.rating-layout h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
}

.rating-score {
  display: flex;
  align-items: center;
  gap: 24px;
}

.rating-score > strong {
  color: var(--ink-950);
  font-family: var(--display);
  font-size: clamp(5rem, 9vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.rating-score .stars {
  color: var(--ink-800);
  font-size: 20px;
}

.rating-score p {
  margin: 8px 0 0;
  color: var(--ink-800);
  font-size: 13px;
  font-weight: 600;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(60px, 10vw, 150px);
}

.faq-intro > p:last-child {
  max-width: 360px;
  margin-top: 24px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  min-height: 72px;
  padding: 23px 58px 23px 0;
  color: var(--ink-950);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  list-style: none;
}

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

.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  top: 35px;
  right: 12px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--lavender-500);
  transition: transform 180ms ease;
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: rotate(0);
}

.faq-list details[open] summary {
  color: var(--accent-readable);
}

.faq-list details p {
  max-width: 710px;
  margin: -4px 0 24px;
  padding-right: 48px;
  color: var(--muted);
  font-size: 14px;
}

.final-cta {
  padding: 32px 0 96px;
}

.final-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  padding: clamp(30px, 5vw, 58px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-900);
}

.final-cta-inner::after {
  content: "";
  position: absolute;
  right: 10%;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(217, 169, 242, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.final-cta-inner > * {
  position: relative;
  z-index: 1;
}

.final-cta-inner > img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.final-cta h2 {
  max-width: 680px;
  color: #fff;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
}

.final-cta .eyebrow {
  margin-bottom: 8px;
  color: var(--lavender-300);
}

.final-cta .app-store-badge {
  --badge-ink: #fff;
  --badge-stroke: rgba(255, 255, 255, 0.5);
  color: transparent;
}

.final-cta .app-store-badge svg rect {
  fill: transparent;
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.error-page {
  display: grid;
  min-height: 100svh;
  padding: 32px;
  place-items: center;
  background:
    linear-gradient(90deg, transparent 0 49.92%, rgba(46, 35, 56, 0.07) 49.92% 50.08%, transparent 50.08%),
    var(--surface);
}

.error-manuscript {
  width: min(100%, 650px);
  padding: clamp(34px, 8vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.error-manuscript img {
  width: 72px;
  height: 72px;
  margin-bottom: 32px;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(46, 35, 56, 0.22);
}

.error-manuscript h1 {
  max-width: 520px;
  font-size: clamp(3rem, 9vw, 5.6rem);
}

.error-manuscript > p:not(.eyebrow) {
  max-width: 520px;
  margin: 24px 0 30px;
  color: var(--muted);
}

.error-manuscript .nav-cta {
  display: inline-grid;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 12px;
}

.footer-layout p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--body);
  font-weight: 700;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.footer-links a {
  display: grid;
  min-height: 44px;
  place-items: center;
  font-weight: 600;
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 360ms ease-out, transform 360ms ease-out;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-icon {
    animation: gentle-float 5.4s ease-in-out infinite;
  }

  .dictation-mark span {
    animation: sound-pulse 1.5s ease-in-out infinite alternate;
  }

  .dictation-mark span:nth-child(2) {
    animation-delay: 120ms;
  }

  .dictation-mark span:nth-child(3) {
    animation-delay: 240ms;
  }

  .dictation-mark span:nth-child(4) {
    animation-delay: 360ms;
  }

  .dictation-mark span:nth-child(5) {
    animation-delay: 480ms;
  }
}

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

@keyframes sound-pulse {
  to {
    transform: scaleY(0.55);
  }
}

@media (max-width: 940px) {
  :root {
    --shell: min(100% - 36px, 720px);
  }

  .hero {
    min-height: 0;
    padding-top: 136px;
    background: var(--surface);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 62px;
  }

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

  .hero-art {
    width: min(100%, 620px);
    min-height: 550px;
    margin-inline: auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading > p:last-child {
    max-width: 590px;
    margin-top: 22px;
  }

  .feature-lead {
    grid-column: 1 / -1;
  }

  .feature-medium,
  .feature-small {
    grid-column: span 6;
  }

  .feature-wide {
    grid-column: 1 / -1;
  }

  .process-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .process-intro {
    position: static;
  }

  .rating-layout {
    align-items: flex-end;
  }

  .final-cta-inner {
    grid-template-columns: auto 1fr;
  }

  .final-cta-inner .app-store-badge {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 32px);
    --radius-md: 20px;
    --radius-lg: 26px;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    min-height: 42px;
  }

  .hero {
    padding: 118px 0 72px;
  }

  .hero::after,
  .hero-ambient {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
    line-height: 0.94;
  }

  .hero-intro {
    margin-top: 22px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-top: 28px;
  }

  .hero-art {
    min-height: 405px;
  }

  .manuscript {
    inset: 7% 2% 6% 2%;
    padding: 34px 30px 34px 50px;
    background:
      linear-gradient(90deg, transparent 0 37px, rgba(241, 140, 120, 0.32) 37px 38px, transparent 38px),
      #fffdf9;
  }

  .chapter-kicker {
    margin-top: 34px;
  }

  .hero-icon {
    top: -3%;
    right: 0;
    width: 92px;
    height: 92px;
    border-radius: 23px;
  }

  .chapter-tabs {
    left: -4px;
  }

  .chapter-tabs span {
    width: 38px;
    height: 36px;
  }

  .margin-note {
    right: 4px;
    bottom: -8px;
    font-size: 16px;
  }

  .feature-section,
  .faq-section,
  .process-section {
    padding: 88px 0;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .feature-composition {
    display: block;
  }

  .feature + .feature {
    margin-top: 14px;
  }

  .feature-lead {
    display: block;
    min-height: 0;
    padding: 30px;
  }

  .chapter-stack {
    margin-top: 34px;
    padding: 0;
  }

  .feature-medium,
  .feature-small,
  .feature-wide {
    min-height: 0;
    padding: 26px;
  }

  .feature-wide {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .feature-wide blockquote {
    grid-column: 1 / -1;
    margin-top: 8px;
  }

  .process-list li {
    grid-template-columns: 46px 1fr;
    gap: 16px;
    padding-bottom: 36px;
  }

  .process-list li + li {
    padding-top: 36px;
  }

  .process-list li > span {
    width: 42px;
    height: 42px;
  }

  .rating-section {
    padding: 64px 0;
  }

  .rating-layout {
    display: block;
  }

  .rating-score {
    margin-top: 42px;
  }

  .rating-score > strong {
    font-size: 6rem;
  }

  .faq-layout {
    gap: 42px;
  }

  .final-cta {
    padding: 10px 0 70px;
  }

  .final-cta-inner {
    display: block;
    padding: 30px;
  }

  .final-cta-inner > img {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    border-radius: 18px;
  }

  .final-cta .app-store-badge {
    margin-top: 28px;
  }

  .footer-layout {
    grid-template-columns: 1fr auto;
  }

  .footer-layout > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 410px) {
  .brand span {
    max-width: 122px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-cta {
    padding-inline: 16px;
  }

  .hero-art {
    min-height: 380px;
  }

  .chapter-title {
    font-size: 1.85rem;
  }

  .writing-lines {
    width: 78%;
    margin-top: 24px;
  }

  .rating-score {
    align-items: flex-end;
    gap: 17px;
  }

  .rating-score > strong {
    font-size: 5.2rem;
  }

  .rating-score .stars {
    font-size: 16px;
  }

  .footer-brand span {
    max-width: 150px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink-950: #f9f3fb;
    --ink-900: #f2e9f5;
    --ink-800: #dfd2e5;
    --ink-700: #c7b8ce;
    --ink-600: #aa98b3;
    --paper-50: #18121f;
    --paper-100: #211927;
    --paper-200: #2c2233;
    --paper-300: #3b2d43;
    --accent-readable: #d6a4f3;
    --accent-deep: #7440ad;
    --body: #eee5f1;
    --muted: #b9aabd;
    --surface: #18121f;
    --surface-soft: #211927;
    --surface-strong: #2c2233;
    --line: rgba(226, 210, 233, 0.14);
    --header: rgba(24, 18, 31, 0.86);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    --badge-bg: #f7f0f9;
    --badge-ink: #1c1523;
    --badge-stroke: rgba(28, 21, 35, 0.12);
  }

  .nav-cta,
  .feature-lead,
  .process-section,
  .final-cta-inner {
    background: #2e2338;
    color: #fff;
  }

  .nav-cta:hover {
    background: var(--accent-deep);
  }

  .feature-lead h3,
  .process-intro h2,
  .process-list h3,
  .final-cta h2 {
    color: #fff;
  }

  .manuscript {
    border-color: rgba(255, 255, 255, 0.1);
    background:
      linear-gradient(90deg, transparent 0 68px, rgba(241, 140, 120, 0.35) 68px 69px, transparent 69px),
      #f8f2ec;
    color: #2e2338;
  }

  .folio,
  .chapter-title {
    color: #211728;
  }

  .writing-lines i {
    background: #e6dcd5;
  }

  .chapter-tabs span {
    background: #2c2233;
  }

  .chapter-tabs .active {
    background: var(--accent-deep);
  }

  .rating-section {
    background: #a96fce;
  }

  .rating-layout h2,
  .rating-score > strong,
  .rating-score p {
    color: #211728;
  }

  .rating-layout .eyebrow,
  .rating-score .stars {
    color: #392844;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: currentColor;
  }

  .feature,
  .faq-list,
  .faq-list details {
    border-color: currentColor;
  }
}

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

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

  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

:root{--guide-accent:var(--anchor,var(--green,var(--canopy,var(--slate,#2f6fe4))));--guide-ink:var(--ink,var(--text,#17202a));--guide-muted:var(--muted,var(--ink-soft,#5e6b76));--guide-line:var(--line,rgba(20,35,45,.16));--guide-surface:var(--surface-raised,var(--paper-raised,var(--surface,var(--paper,#fff))));--guide-bg:var(--paper,var(--surface,#fff));--guide-tint:var(--anchor-soft,var(--canopy-soft,var(--slate-wash,rgba(50,110,220,.08))))}
/* Arc Tools SEO guide surfaces */
/* Additive, theme-aware resource surfaces used by generated guide hubs. */
.seo-guides{padding:clamp(3rem,7vw,6rem) 0;border-top:1px solid var(--guide-line)}
.seo-guides-inner,.guide-shell{width:min(100% - 2rem,64rem);margin:0 auto}
.seo-guides-kicker,.guide-kicker{margin:0 0 .55rem;color:var(--guide-accent);font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.seo-guides h2,.guide-hero h1,.guide-article h2{color:var(--guide-ink);font-family:var(--display,var(--body,system-ui));line-height:1.08;letter-spacing:-.025em}
.seo-guides h2{max-width:30rem;margin:.2rem 0 .8rem;font-size:clamp(1.7rem,3vw,2.5rem)}
.seo-guides p,.guide-hero p,.guide-article p,.guide-article li{color:var(--guide-muted);line-height:1.7}
.seo-guides-intro{max-width:44rem;margin:0 0 1.4rem}
.seo-guides-links{display:flex;flex-wrap:wrap;gap:.65rem 1rem;margin:1.25rem 0}
.seo-guides-links a,.guide-nav a{color:var(--guide-accent);font-weight:700;text-decoration:underline;text-decoration-thickness:.08em;text-underline-offset:.16em}
.seo-guides-more{display:inline-flex;align-items:center;min-height:2.75rem;padding:.7rem 1rem;border:1px solid var(--guide-line);border-radius:999px;background:var(--guide-surface);color:var(--guide-ink)!important;text-decoration:none!important}
.guide-page{background:var(--guide-bg);color:var(--guide-ink)}
.guide-shell{padding-block:clamp(2rem,6vw,5rem)}
.guide-nav{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:clamp(2rem,5vw,4rem);font-size:.95rem}
.guide-nav a:first-child{font-weight:700;text-decoration:none}
.guide-hero{max-width:48rem;margin-bottom:clamp(2.5rem,6vw,5rem)}
.guide-hero h1{margin:.2rem 0 1rem;font-size:clamp(2.1rem,5vw,4.5rem)}
.guide-hero .guide-summary{max-width:42rem;font-size:clamp(1.08rem,1.5vw,1.28rem)}
.guide-index-list{display:grid;gap:1rem;margin:2rem 0 0;padding:0;list-style:none}
.guide-index-list li{margin:0}
.guide-index-link{display:block;padding:1.15rem 1.25rem;border:1px solid var(--guide-line);border-radius:1rem;background:var(--guide-surface);text-decoration:none;transition:transform .2s ease,border-color .2s ease}
.guide-index-link:hover,.guide-index-link:focus-visible{transform:translateY(-2px);border-color:var(--guide-accent)}
.guide-index-link strong{display:block;color:var(--guide-ink);font-size:1.08rem;margin-bottom:.3rem}
.guide-index-link span{color:var(--guide-muted)}
.guide-article{max-width:46rem}
.guide-article h2{margin:2.4rem 0 .75rem;font-size:clamp(1.35rem,2.5vw,2rem)}
.guide-article ul{padding-left:1.2rem}
.guide-article li+li{margin-top:.55rem}
.guide-callout{margin:2rem 0;padding:1.1rem 1.25rem;border-left:3px solid var(--guide-accent);background:var(--guide-tint);border-radius:0 .8rem .8rem 0}
.guide-callout p{margin:0}
.guide-footer-links{display:flex;flex-wrap:wrap;gap:1rem;margin-top:2.5rem;padding-top:1.25rem;border-top:1px solid var(--guide-line)}
@media (min-width:48rem){.seo-guides-inner,.guide-shell{width:min(100% - 4rem,64rem)}}
@media (prefers-reduced-motion:reduce){.guide-index-link{transition:none}.guide-index-link:hover{transform:none}}
