:root {
  --ink: #20242b;
  --ink-soft: #4c4b45;
  --paper: #fbf5eb;
  --paper-warm: #f3e8d7;
  --stone: #d6c9b5;
  --terracotta: #b94f2b;
  --terracotta-dark: #83381f;
  --gold: #dda339;
  --gold-light: #ffe1a0;
  --blue: #b9d3fa;
  --green: #bfdbc5;
  --rose: #e9b7ba;
  --line: rgba(55, 43, 28, 0.18);
  --line-strong: rgba(151, 76, 42, 0.55);
  --shadow: 0 24px 60px rgba(55, 35, 16, 0.2);
  --shadow-strong: 0 30px 76px rgba(32, 22, 12, 0.32);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
  --header-gap: 1rem;
  --header-height: 80px;
  --header-offset: calc(var(--header-gap) + var(--header-height));
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-padding-top: calc(var(--header-offset) + 1rem);
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 243, 202, 0.62), transparent 0 18rem),
    radial-gradient(circle at 88% 8%, rgba(210, 120, 54, 0.16), transparent 0 22rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0 42%, rgba(255, 255, 255, 0.2) 78%),
    linear-gradient(180deg, rgba(252, 247, 239, 0.86), rgba(246, 236, 220, 0.9)),
    url("images/roman-road-background.jpg") center top / cover no-repeat;
  font-family: var(--sans);
  overflow-x: hidden;
}

body::before,
body::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
}

body::before {
  display: none;
}

body::after {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(84, 65, 39, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 65, 39, 0.14) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 82%, transparent);
}

body > * {
  position: relative;
  z-index: 1;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: var(--header-gap);
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--max));
  max-height: calc(100vh - (var(--header-gap) * 2));
  margin: 0 auto;
  padding: 0.78rem;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  background: rgba(253, 248, 240, 0.94);
  box-shadow: 0 18px 44px rgba(55, 38, 18, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
  font-weight: 700;
  color: var(--ink);
}

.brand-title {
  overflow: hidden;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(45, 31, 12, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.site-nav a:not(.button),
.site-nav button:not(.button) {
  padding: 0.62rem 0.85rem;
  border-radius: 12px;
  color: rgba(32, 36, 43, 0.88);
  font-weight: 600;
}

.site-nav a:not(.button):hover {
  color: var(--terracotta-dark);
  background: rgba(185, 79, 43, 0.07);
}

.language-picker {
  display: inline-flex;
  align-items: center;
  margin-right: 0.8rem;
}

.language-picker select {
  min-height: 42px;
  padding: 0 2rem 0 0.82rem;
  border: 1px solid rgba(185, 79, 43, 0.2);
  border-radius: 12px;
  color: rgba(32, 36, 43, 0.88);
  background-color: rgba(255, 250, 243, 0.78);
  font-weight: 700;
  cursor: pointer;
}

.language-picker select:focus-visible {
  outline: 3px solid rgba(221, 163, 57, 0.35);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 250, 243, 0.95);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 0.82rem 1.35rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff8ef;
  background: linear-gradient(180deg, #bf5a2f, #a84220);
  box-shadow: 0 14px 30px rgba(164, 66, 32, 0.28);
}

.button-secondary {
  color: var(--ink);
  border-color: rgba(40, 36, 27, 0.12);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 0 12px 26px rgba(55, 35, 16, 0.12);
}

.button-cream,
.button-gold {
  color: var(--ink);
}

.button-cream {
  background: #fff7ea;
}

.button-gold {
  background: linear-gradient(180deg, #efbd52, #d99b2d);
  box-shadow: 0 16px 34px rgba(187, 117, 28, 0.26);
}

.button-small {
  min-height: 44px;
  padding-inline: 1.05rem;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.nav-download-links {
  gap: 0.35rem;
}

.nav-download-links .button-small {
  min-height: 42px;
  padding-inline: 0.9rem;
}

.cta-download-links {
  justify-content: center;
}

.section-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.section-full {
  min-height: calc(100vh - 90px);
  display: grid;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
}

.section-panel,
.section-stack {
  padding: clamp(3.5rem, 6vw, 6.5rem) 0;
}

section[id] {
  scroll-margin-top: 120px;
}

.intro-road {
  position: relative;
  min-height: calc(100svh - 90px);
  overflow: hidden;
  color: #fff7ea;
  background:
    linear-gradient(90deg, rgba(18, 16, 13, 0.78) 0%, rgba(30, 22, 15, 0.58) 42%, rgba(30, 22, 15, 0.18) 74%),
    linear-gradient(180deg, rgba(18, 16, 13, 0.32), rgba(18, 16, 13, 0.16)),
    url("images/roman-road-background.jpg") center center / cover no-repeat;
}

.intro-road::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(251, 245, 235, 0.92));
}

.intro-road .section-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: inherit;
}

.intro-copy {
  width: min(calc(100% - 30px), 670px);
  margin-left: 20px;
  margin-top: 40px;
  padding: clamp(1rem, 2vw, 1.6rem) 0;
}

.intro-copy p {
  margin: 0;
  color: rgba(255, 248, 236, 0.94);
  font-family: var(--serif);
  font-size: clamp(1.32rem, 1.85vw, 1.902rem);
  font-weight: 650;
  line-height: 1.4;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.intro-copy p + p {
  margin-top: clamp(1rem, 2.1vw, 1.55rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-copy,
.hero-visual,
.plaque,
.visual-frame,
.principle-card,
.pricing-card {
  min-width: 0;
}

.availability,
.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--terracotta-dark);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability {
  max-width: 36rem;
  letter-spacing: 0.02em;
  line-height: 1.32;
  text-transform: none;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
.section-heading h2,
.plaque h2,
.cta-panel h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.92;
}

h1 {
  max-width: 12ch;
  font-size: 4.8rem;
}

.hero-lead {
  max-width: 34rem;
  margin: 1.2rem 0 0;
  color: rgba(32, 36, 43, 0.9);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.hero-answer-list {
  display: grid;
  gap: 0.65rem;
  max-width: 36rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(32, 36, 43, 0.74);
  font-size: 1rem;
  line-height: 1.42;
}

.hero-answer-list li {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(120, 91, 52, 0.18);
  border-radius: 12px;
  background: rgba(255, 250, 242, 0.68);
}

.hero-answer-list strong {
  color: var(--terracotta-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
  min-height: 500px;
}

.hero-screenshot {
  position: absolute;
  right: 0;
  top: 1.9rem;
  width: min(100%, 720px);
  transform: rotate(3deg);
}

.hero-screenshot img,
.screenshot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-screenshot img {
  height: auto;
  border-radius: 28px;
  filter: drop-shadow(0 30px 48px rgba(37, 25, 12, 0.24));
}

.hero-step {
  position: absolute;
  z-index: 3;
  max-width: 190px;
  padding: 0.72rem 0.86rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 16px;
  color: #fff7e6;
  background: rgba(33, 30, 25, 0.9);
  box-shadow: 0 20px 40px rgba(25, 18, 10, 0.25);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.18;
  transform: rotate(-3deg);
}

.hero-step span {
  display: block;
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.hero-step-import {
  left: 11%;
  top: calc(6% + 10px);
}

.hero-step-focus {
  left: 5%;
  /* top: calc(49% - 80px); */
  top: 30%;
}

.hero-step-analyse {
  left: 20%;
  top: 54%;
}

.hero-step-translate {
  right: 6%;
  top: 56%;
  max-width: 205px;
}

.walkthrough {
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.78), rgba(243, 232, 213, 0.62));
}

.walkthrough-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.walkthrough-video {
  position: relative;
  width: min(100%, 50vw, 580px);
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(151, 119, 78, 0.24);
  border-radius: 24px;
  background: rgba(32, 36, 43, 0.92);
  box-shadow: var(--shadow);
}

.walkthrough-video iframe {
  display: block;
  width: 100%;
  border: 0;
  aspect-ratio: 16 / 9;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 2rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.55rem, 5vw, 4.8rem);
}

.section-heading p {
  margin: 1rem auto 0;
  max-width: 740px;
  color: rgba(32, 36, 43, 0.78);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.38;
}

.principles {
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.82), rgba(243, 232, 213, 0.72));
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 1rem;
  border: 2px solid rgba(159, 75, 38, 0.52);
  border-radius: 28px;
  background: rgba(255, 250, 241, 0.68);
  box-shadow: var(--shadow);
}

.principle-card {
  min-height: 360px;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border: 1px solid rgba(165, 86, 47, 0.46);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(247, 238, 225, 0.86));
  text-align: center;
}

.principle-emphasis {
  border-color: rgba(224, 167, 57, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin: 0 auto 1.3rem;
  border: 1px solid rgba(48, 51, 56, 0.18);
  border-radius: 999px;
  background: rgba(250, 244, 234, 0.84);
}

.icon-circle svg,
.stone-button svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-circle.gold {
  color: #c68c24;
}

.principle-card h3,
.pricing-card h3,
.process-path h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 0.98;
}

.principle-card p {
  max-width: 280px;
  margin: 0.9rem auto 0;
  color: var(--ink-soft);
  font-size: 1.16rem;
  line-height: 1.32;
}

.feature-list {
  display: grid;
  gap: clamp(3.5rem, 6vw, 6rem);
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.feature-split.reverse {
  grid-template-columns: minmax(420px, 1.08fr) minmax(0, 0.92fr);
}

.plaque {
  position: relative;
  padding: clamp(1.6rem, 3vw, 3rem);
  border: 1px solid rgba(147, 72, 42, 0.42);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), transparent 35%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.94), rgba(244, 234, 219, 0.9));
  box-shadow: var(--shadow);
}

.plaque::before,
.plaque::after {
  position: absolute;
  left: 1rem;
  right: 1rem;
  height: 5px;
  content: "";
  border-block: 1px solid rgba(147, 72, 42, 0.32);
}

.plaque::before { top: 0.8rem; }
.plaque::after { bottom: 0.8rem; }

.plaque-border {
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.24),
    var(--shadow);
}

.plaque h2 {
  font-size: 3rem;
}

.plaque p:not(.eyebrow) {
  max-width: 540px;
  margin: 1.1rem 0 0;
  color: rgba(32, 36, 43, 0.86);
  font-size: clamp(1.1rem, 1.75vw, 1.38rem);
  line-height: 1.38;
}

.plaque p.rights-note {
  margin-top: 1rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(120, 91, 52, 0.2);
  border-radius: 12px;
  background: rgba(255, 248, 236, 0.72);
  color: rgba(32, 36, 43, 0.62);
  font-size: 0.76rem;
  line-height: 1.34;
}

.visual-frame {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(151, 119, 78, 0.24);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.78), rgba(237, 225, 207, 0.68));
  box-shadow: var(--shadow);
}

.visual-frame::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.4;
  background:
    repeating-radial-gradient(circle at 15% 24%, rgba(114, 99, 70, 0.18) 0 1px, transparent 1px 18px),
    linear-gradient(120deg, transparent 0 40%, rgba(244, 177, 62, 0.45) 48%, transparent 56%);
  pointer-events: none;
}

.screenshot-frame {
  padding: clamp(0.8rem, 1.3vw, 1rem);
}

.screenshot-frame img {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  box-shadow: 0 22px 46px rgba(34, 24, 13, 0.22);
}

.screenshot-frame:not(.tablet-frame) img {
  object-position: 44% 52%;
}

.tablet-frame img {
  object-position: center top;
}

.capture-frame {
  min-height: 470px;
  padding: 0;
}

.capture-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.capture-beam {
  position: absolute;
  z-index: 2;
  left: 18%;
  right: 16%;
  top: 48%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 126, 0.96), transparent);
  box-shadow:
    0 0 18px rgba(255, 205, 102, 0.86),
    0 0 42px rgba(242, 167, 49, 0.42);
}

.scan-line {
  position: absolute;
  z-index: 2;
  left: 10%;
  right: 12%;
  top: 49%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(225, 166, 52, 0.95), transparent);
  box-shadow: 0 0 22px rgba(225, 166, 52, 0.75);
}

.overlay-chip {
  position: absolute;
  z-index: 3;
  padding: 0.58rem 0.78rem;
  border-radius: 999px;
  color: #fff7ec;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(58, 34, 18, 0.2);
}

.overlay-chip-primary {
  left: 1.7rem;
  top: 1.7rem;
  background: rgba(145, 53, 28, 0.9);
}

.overlay-chip-secondary {
  right: 1.7rem;
  bottom: 1.7rem;
  background: rgba(32, 36, 43, 0.82);
}

.interaction-panel {
  display: grid;
  align-content: center;
  padding: clamp(1.3rem, 3vw, 3rem);
}

.latin-closeup {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  max-width: 560px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.word-chip {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 9px;
  padding: 0.08em 0.18em;
  color: rgba(32, 36, 43, 0.76);
  background: transparent;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.word-chip:hover,
.word-chip.is-selected {
  color: var(--ink);
  background: rgba(255, 243, 216, 0.7);
  border-color: rgba(188, 83, 46, 0.72);
}

.gloss-popover {
  position: relative;
  z-index: 2;
  width: min(100%, 280px);
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border: 2px solid rgba(176, 75, 42, 0.72);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 34px rgba(96, 51, 27, 0.18);
}

.gloss-popover span {
  display: block;
  color: rgba(32, 36, 43, 0.6);
  font-weight: 700;
}

.gloss-popover strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.35rem;
}

.mini-device {
  position: absolute;
  z-index: 1;
  inset: 2rem;
  overflow: hidden;
  border: 12px solid #17191d;
  border-radius: 32px;
  background: #fff8ed;
  box-shadow: 0 22px 42px rgba(25, 18, 10, 0.24);
}

.mini-bar {
  height: 52px;
  background: linear-gradient(180deg, #d24a29, #b54124);
}

.mini-device p {
  max-width: 560px;
  margin: 2rem;
  color: #282a2f;
  font-size: clamp(1.12rem, 2vw, 1.65rem);
  line-height: 1.55;
}

.mini-device mark {
  border-radius: 8px;
  padding: 0 0.2em;
  background: rgba(224, 171, 70, 0.55);
}

.morph-popover {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: min(420px, calc(100% - 4rem));
  padding: 1rem;
  border: 2px solid rgba(176, 75, 42, 0.68);
  border-radius: 15px;
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 18px 36px rgba(88, 47, 25, 0.2);
}

.morph-popover span {
  color: rgba(32, 36, 43, 0.62);
  font-weight: 700;
}

.morph-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.morph-grid button {
  min-height: 40px;
  border: 1px solid rgba(160, 133, 95, 0.48);
  border-radius: 9px;
  color: rgba(38, 42, 49, 0.72);
  background: rgba(255, 248, 236, 0.9);
  font-weight: 800;
}

.morph-grid button.is-active {
  color: #fff9f1;
  border-color: rgba(179, 66, 38, 0.95);
  background: linear-gradient(180deg, #c95735, #ac3f25);
}

.section-dark {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: #fff1d9;
  background:
    radial-gradient(circle at 50% 62%, rgba(232, 165, 58, 0.2), transparent 0 18rem),
    linear-gradient(180deg, rgba(19, 17, 15, 0.96), rgba(33, 29, 25, 0.96)),
    url("images/roman-road-background.jpg") center 62% / cover;
}

.section-dark::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(11, 10, 9, 0.66);
}

.section-dark .section-inner {
  position: relative;
  z-index: 1;
}

.dark-heading p {
  color: rgba(255, 241, 217, 0.82);
}

.process-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.process-path::before {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 52px;
  height: 12px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, #ffca70, #ffaf36, #ffdc92);
  box-shadow: 0 0 28px rgba(255, 191, 69, 0.78);
}

.process-path article {
  position: relative;
  z-index: 1;
  text-align: center;
}

.stone-button {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 0 auto 1.15rem;
  border-radius: 999px;
  color: var(--gold-light);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 246, 218, 0.2), transparent 0 3rem),
    linear-gradient(180deg, #5d5148, #292521);
  box-shadow:
    inset 0 0 0 10px rgba(99, 81, 67, 0.5),
    0 22px 42px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(232, 165, 58, 0.22);
}

.process-path h3 {
  color: rgba(255, 241, 217, 0.95);
  font-weight: 500;
}

.comparison-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  contain: layout paint;
  padding: 1rem;
  border: 1px solid rgba(100, 80, 50, 0.24);
  border-radius: 22px;
  background: rgba(255, 250, 241, 0.76);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: clamp(1rem, 1.6vw, 1.23rem);
}

.comparison-table th,
.comparison-table td {
  padding: 1.15rem;
  border: 1px solid rgba(70, 62, 50, 0.34);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
}

.comparison-table thead th:nth-child(2),
.comparison-table tbody td:first-of-type {
  position: relative;
  background: rgba(255, 241, 216, 0.76);
  box-shadow:
    inset 0 0 0 3px rgba(185, 79, 43, 0.72),
    0 0 24px rgba(185, 79, 43, 0.18);
  font-weight: 800;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 880px;
  margin: 0 auto;
}

.pricing-card {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid rgba(49, 43, 34, 0.22);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.pricing-light {
  background: rgba(255, 250, 241, 0.82);
}

.pricing-accent {
  color: #fff7ec;
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(184, 79, 43, 0.96), rgba(139, 55, 31, 0.98));
}

.pricing-card ul {
  display: grid;
  gap: 0.78rem;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 1.8rem;
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
}

.pricing-card li::before {
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  content: "";
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 2px, transparent 2px),
    #222832;
}

.pricing-accent li::before {
  background:
    radial-gradient(circle at 50% 50%, var(--terracotta-dark) 0 2px, transparent 2px),
    #fff3df;
}

.pricing-card p {
  color: rgba(32, 36, 43, 0.72);
  font-style: italic;
}

.pricing-accent p {
  color: rgba(255, 246, 230, 0.82);
}

.pricing-card .button {
  width: 100%;
  margin-top: 0.5rem;
}

.pricing-card .download-links {
  margin-top: 0.5rem;
}

.pricing-card .download-links .button {
  flex: 1 1 150px;
  width: auto;
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid rgba(100, 80, 50, 0.22);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 14px 34px rgba(55, 35, 16, 0.1);
}

.faq-list summary {
  padding: 1.05rem 1.2rem;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 1.2rem 1.2rem;
  color: rgba(32, 36, 43, 0.76);
  font-size: 1.05rem;
  line-height: 1.45;
}

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

.privacy-grid article {
  padding: 1.35rem;
  border: 1px solid rgba(100, 80, 50, 0.22);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.78);
  box-shadow: 0 14px 34px rgba(55, 35, 16, 0.1);
}

.privacy-grid h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.privacy-grid p {
  margin: 0.55rem 0 0;
  color: rgba(32, 36, 43, 0.76);
  font-size: 1.06rem;
  line-height: 1.4;
}

.homepage-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.final-cta {
  min-height: 82vh;
}

.cta-panel {
  max-width: 540px;
  margin: 0 auto;
  padding: 2.4rem;
  border: 1px solid rgba(50, 44, 34, 0.3);
  border-radius: 24px;
  background: rgba(255, 250, 241, 0.86);
  box-shadow: var(--shadow-strong);
  text-align: center;
}

.cta-panel img {
  width: 136px;
  height: 136px;
  margin: -88px auto 1.25rem;
  border-radius: 31px;
  box-shadow: 0 20px 44px rgba(50, 34, 14, 0.28);
}

.cta-panel h2 {
  font-size: clamp(2.55rem, 4.8vw, 4.2rem);
}

.cta-panel p {
  max-width: 400px;
  margin: 1rem auto 1.5rem;
  color: rgba(32, 36, 43, 0.76);
  font-size: 1.18rem;
  line-height: 1.34;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem 1.6rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 2px solid rgba(39, 36, 30, 0.76);
  color: rgba(32, 36, 43, 0.72);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  transition-delay: calc(var(--stagger-index, 0) * 70ms);
}

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

  .button,
  .reveal,
  .stagger > * {
    transition: none;
  }

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

@media (max-width: 980px) {
  .hero-grid,
  .feature-split,
  .feature-split.reverse {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-screenshot {
    position: relative;
    inset: auto;
    transform: none;
  }

  .hero-screenshot img {
    border-radius: 22px;
  }

  .hero-step {
    position: static;
    max-width: none;
    margin-top: 0.6rem;
    transform: none;
  }

  h1 {
    font-size: 4.2rem;
  }

  .plaque h2 {
    font-size: 2.75rem;
  }

  .principle-grid,
  .pricing-grid,
  .process-path,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .process-path::before {
    display: none;
  }
}

@media (max-width: 740px) {
  :root {
    --header-gap: max(0.5rem, calc(env(safe-area-inset-top) + 0.5rem));
  }

  html,
  body {
    background-color: #1f1a14;
  }

  .site-header {
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .brand-title {
    font-size: clamp(1.2rem, 5.2vw, 1.42rem);
    font-weight: 800;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .button,
  .site-nav .download-links,
  .language-picker,
  .language-picker select {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .site-nav .download-links .button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .section-full {
    min-height: auto;
    padding: 3rem 0;
  }

  .walkthrough-grid {
    grid-template-columns: 1fr;
  }

  .walkthrough-video {
    width: 100%;
    max-width: 640px;
    justify-self: center;
  }

  .intro-road {
    min-height: auto;
    padding: 5.5rem 0 6rem;
    background:
      linear-gradient(90deg, rgba(18, 16, 13, 0.84) 0%, rgba(30, 22, 15, 0.62) 58%, rgba(30, 22, 15, 0.2) 100%),
      url("images/roman-road-background.jpg") 43% center / cover no-repeat;
  }

  .intro-road .section-inner {
    min-height: auto;
  }

  .intro-copy {
    width: min(calc(100% - 30px), 620px);
  }

  .intro-copy p {
    font-size: 1.24rem;
    line-height: 1.25;
  }

  h1 {
    max-width: 10.5ch;
    font-size: 3.25rem;
  }

  .plaque h2 {
    font-size: 2.25rem;
  }

  .section-heading h2,
  .cta-panel h2 {
    font-size: 2.35rem;
  }

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

  .hero-actions .download-links {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    max-width: 100%;
  }

  .availability,
  .hero-lead {
    overflow-wrap: anywhere;
  }

  .principle-grid {
    padding: 0.7rem;
    border-radius: 22px;
  }

  .principle-card {
    min-height: auto;
  }

  .comparison-table {
    min-width: 0;
    table-layout: auto;
    font-size: 0.82rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.65rem;
    overflow-wrap: anywhere;
  }

  .comparison-table thead th {
    font-size: 0.86rem;
  }

  .visual-frame {
    min-height: 360px;
    border-radius: 22px;
  }

  .mini-device {
    inset: 1rem;
    border-width: 9px;
  }

  .mini-device p {
    margin: 1rem;
    font-size: 1rem;
  }

  .morph-popover {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
  }

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

  .comparison-table-wrap {
    margin-inline: -0.4rem;
  }

  .cta-panel {
    padding: 2rem 1.2rem;
  }
}

.resource-body {
  background:
    radial-gradient(circle at 18% 9%, rgba(255, 243, 202, 0.62), transparent 0 17rem),
    radial-gradient(circle at 88% 8%, rgba(108, 118, 82, 0.16), transparent 0 18rem),
    linear-gradient(180deg, rgba(252, 247, 239, 0.92), rgba(246, 236, 220, 0.94)),
    url("images/roman-road-background.jpg") center top / cover no-repeat;
}

.resource-main {
  padding-top: calc(var(--header-offset) + 1rem);
}

.resource-site-header {
  overflow-y: visible;
}

.resource-hero {
  min-height: min(780px, calc(100vh - var(--header-offset) - 1rem));
}

.resource-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.resource-hero-copy h1 {
  max-width: 13ch;
}

.resource-visual {
  display: grid;
  place-items: center;
  min-height: 470px;
  padding: clamp(1rem, 2.5vw, 2rem);
}

.resource-illustration-svg {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  height: auto;
}

.resource-plate {
  fill: rgba(255, 250, 241, 0.72);
  stroke: rgba(145, 83, 48, 0.22);
  stroke-width: 2;
}

.resource-background-contour,
.resource-contour {
  fill: none;
  stroke: rgba(108, 93, 64, 0.18);
  stroke-width: 3;
  stroke-linecap: round;
}

.resource-map-panel rect,
.resource-tablet > rect:first-child,
.resource-manuscript > rect:first-child {
  fill: url("#resourceStone");
  stroke: rgba(145, 83, 48, 0.28);
  stroke-width: 2.5;
}

.resource-manuscript > rect:first-child {
  fill: rgba(255, 248, 234, 0.94);
}

.resource-stone {
  fill: rgba(246, 236, 220, 0.94);
  stroke: rgba(147, 72, 42, 0.36);
  stroke-width: 3;
}

.resource-paper {
  fill: rgba(255, 250, 241, 0.96);
  stroke: rgba(90, 70, 45, 0.28);
  stroke-width: 2;
}

.resource-paper.warm {
  fill: rgba(255, 241, 216, 0.94);
}

.resource-panel-shape {
  fill: rgba(255, 250, 241, 0.9);
  stroke: rgba(90, 70, 45, 0.28);
  stroke-width: 2;
}

.resource-panel-shape.warm {
  fill: rgba(255, 241, 216, 0.92);
}

.resource-ink-line,
.resource-book-line {
  fill: none;
  stroke: rgba(32, 36, 43, 0.62);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-book-line {
  stroke: rgba(255, 248, 236, 0.64);
  stroke-width: 5;
}

.resource-route,
.resource-road,
.resource-scan {
  fill: none;
  stroke: var(--gold);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-road {
  stroke-width: 18;
}

.resource-scan {
  stroke: var(--gold-light);
  stroke-width: 7;
}

.resource-contour,
.resource-shelf,
.resource-corner {
  fill: none;
  stroke: rgba(108, 93, 64, 0.28);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-shelf {
  stroke: rgba(127, 52, 29, 0.42);
  stroke-width: 8;
}

.resource-corner {
  stroke: rgba(127, 52, 29, 0.62);
  stroke-width: 8;
}

.resource-highlight {
  fill: rgba(241, 197, 107, 0.64);
  stroke: rgba(185, 79, 43, 0.38);
  stroke-width: 2;
}

.resource-highlight.pale {
  fill: rgba(191, 219, 197, 0.72);
}

.resource-highlight.cool {
  fill: rgba(185, 211, 250, 0.66);
}

.resource-dot,
.resource-lens {
  fill: var(--terracotta);
  stroke: rgba(255, 250, 241, 0.84);
  stroke-width: 5;
}

.resource-dot.muted,
.resource-lens {
  fill: var(--olive, #6c7652);
}

.resource-book.red {
  fill: #a64f2f;
}

.resource-book.gold {
  fill: #d89a3d;
}

.resource-book.blue {
  fill: #2c465f;
}

.resource-book.green {
  fill: #6c7652;
}

.resource-book {
  stroke: rgba(45, 35, 24, 0.28);
  stroke-width: 2;
}

.resource-popover rect {
  fill: rgba(255, 253, 248, 0.98);
  stroke: rgba(176, 75, 42, 0.72);
  stroke-width: 3;
}

.resource-popover path {
  fill: rgba(255, 253, 248, 0.98);
  stroke: rgba(176, 75, 42, 0.72);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-popover path:not(:first-of-type) {
  fill: none;
  stroke: rgba(32, 36, 43, 0.62);
  stroke-width: 7;
}

.resource-callout rect,
.resource-callout path:first-child {
  fill: rgba(255, 253, 248, 0.98);
  stroke: rgba(176, 75, 42, 0.72);
  stroke-width: 3;
}

.resource-callout-line {
  fill: none;
  stroke: rgba(32, 36, 43, 0.62);
  stroke-width: 7;
  stroke-linecap: round;
}

.resource-two-column,
.resource-fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.resource-step-list {
  display: grid;
  gap: 1rem;
}

.resource-step {
  position: relative;
  min-height: 132px;
  padding: 1.25rem 1.25rem 1.25rem 5.15rem;
  border: 1px solid rgba(100, 80, 50, 0.22);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.8);
  box-shadow: 0 14px 34px rgba(55, 35, 16, 0.1);
}

.resource-step span {
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #fff7ec;
  background: linear-gradient(180deg, #bf5a2f, #a84220);
  font-weight: 900;
}

.resource-step h3,
.resource-card strong {
  font-family: var(--serif);
}

.resource-step h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.resource-step p {
  margin: 0.45rem 0 0;
  color: rgba(32, 36, 43, 0.76);
  font-size: 1.03rem;
  line-height: 1.42;
}

.resource-fit-band {
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.82), rgba(239, 227, 209, 0.74));
}

.resource-fit-grid {
  align-items: center;
}

.resource-fit-grid h2 {
  max-width: 14ch;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.94;
}

.resource-check-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-check-list li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid rgba(100, 80, 50, 0.22);
  border-radius: 16px;
  background: rgba(255, 250, 241, 0.82);
  color: rgba(32, 36, 43, 0.82);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  font-weight: 700;
  line-height: 1.32;
}

.resource-check-list li::before {
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  width: 1.2rem;
  height: 1.2rem;
  content: "";
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 2px, transparent 2px),
    var(--terracotta);
}

.resource-lens-band {
  padding: clamp(4rem, 7vw, 7rem) 0;
}

.resource-lens-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center;
}

.resource-lens-copy h2,
.resource-lab-card .resource-latin-line,
.resource-move-card h3 {
  font-family: var(--serif);
}

.resource-lens-copy h2 {
  max-width: 12ch;
  color: rgba(255, 241, 217, 0.96);
  font-size: clamp(2.45rem, 4.8vw, 4.4rem);
  line-height: 0.94;
}

.resource-lens-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 1rem 0 0;
  color: rgba(255, 241, 217, 0.8);
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  line-height: 1.42;
}

.resource-lab-card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgba(255, 241, 217, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.12), transparent 46%),
    rgba(255, 248, 236, 0.08);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
}

.resource-lab-card::before {
  position: absolute;
  inset: 1rem;
  content: "";
  border: 1px solid rgba(241, 197, 107, 0.22);
  border-radius: 18px;
  pointer-events: none;
}

.resource-lab-card span {
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-lab-card .resource-latin-line {
  margin: 0.9rem 0 1.15rem;
  color: #fff7ec;
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 1.05;
}

.resource-lab-card ol {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding-left: 1.35rem;
  color: rgba(255, 241, 217, 0.82);
  font-size: 1.04rem;
  line-height: 1.42;
}

.resource-move-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.resource-move-card {
  min-height: 280px;
  padding: clamp(1.25rem, 2.4vw, 1.8rem);
  border: 1px solid rgba(100, 80, 50, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(247, 238, 225, 0.86));
  box-shadow: 0 14px 34px rgba(55, 35, 16, 0.1);
}

.resource-move-card span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 999px;
  color: #fff7ec;
  background: linear-gradient(180deg, #bf5a2f, #a84220);
  font-weight: 900;
}

.resource-move-card h3 {
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  line-height: 0.98;
}

.resource-move-card p {
  margin: 0.8rem 0 0;
  color: rgba(32, 36, 43, 0.76);
  font-size: 1.05rem;
  line-height: 1.42;
}

.resource-mini-method {
  display: grid;
  align-content: center;
  padding: clamp(1.2rem, 3vw, 2.4rem);
}

.resource-mini-method .latin-closeup {
  max-width: 560px;
}

.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.resource-card {
  display: grid;
  gap: 0.6rem;
  min-height: 190px;
  padding: 1.25rem;
  border: 1px solid rgba(100, 80, 50, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(247, 238, 225, 0.86));
  box-shadow: 0 14px 34px rgba(55, 35, 16, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 79, 43, 0.42);
  box-shadow: 0 20px 42px rgba(55, 35, 16, 0.15);
}

.resource-card span,
.resource-card small {
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resource-card strong {
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.02;
}

.resource-card small {
  align-self: end;
  color: rgba(32, 36, 43, 0.58);
}

.resource-hub-section:nth-of-type(even) {
  background: rgba(255, 250, 241, 0.36);
}

.resource-final {
  min-height: auto;
  padding-top: 8rem;
}

.resource-footer {
  border-top-color: rgba(39, 36, 30, 0.32);
}

@media (max-width: 980px) {
  .resource-hero-grid,
  .resource-two-column,
  .resource-fit-grid,
  .resource-lens-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 740px) {
  .resource-main {
    padding-top: 7.25rem;
  }

  .resource-site-header {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .resource-site-header .brand {
    flex: 0 0 auto;
  }

  .resource-site-header .brand span {
    display: none;
  }

  .resource-site-header .site-nav {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    margin-left: 0;
    overflow-x: auto;
  }

  .resource-site-header .site-nav a:not(.button) {
    white-space: nowrap;
  }

  .resource-site-header .button {
    width: auto;
    min-width: max-content;
  }

  .resource-hero-copy h1 {
    max-width: 12ch;
  }

  .resource-visual {
    min-height: 330px;
    padding: 0.8rem;
  }

  .resource-step {
    min-height: auto;
    padding-left: 4.7rem;
  }

  .resource-card-grid,
  .resource-move-grid {
    grid-template-columns: 1fr;
  }
}

/* Resource library refinement: product-led pages matching the main site. */
.resource-site-header .resource-language-picker {
  margin-right: 0.35rem;
}

.resource-site-header .resource-language-picker select {
  max-width: 210px;
}

.resource-hero-premium {
  min-height: min(780px, calc(100svh - var(--header-offset)));
  padding-block: clamp(3rem, 5vw, 5rem);
}

.resource-hero-premium .resource-hero-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr);
  align-items: center;
}

.resource-hero-copy h1 {
  max-width: 14ch;
  overflow-wrap: anywhere;
  font-size: clamp(3.25rem, 5.4vw, 5.8rem);
}

.resource-hero-copy .hero-lead {
  max-width: 38rem;
}

.resource-hero-frame,
.resource-context-frame,
.resource-road-frame {
  isolation: isolate;
}

.resource-hero-frame {
  min-height: clamp(390px, 39vw, 520px);
}

.resource-hero-frame img,
.resource-context-frame img,
.resource-road-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.resource-hero-frame.screenshot-frame img,
.resource-context-frame.screenshot-frame img {
  object-fit: contain;
  object-position: 48% 52%;
}

.resource-hero-frame.capture-frame img,
.resource-context-frame.capture-frame img {
  object-position: center;
}

.resource-context-frame {
  min-height: clamp(420px, 42vw, 540px);
}

.resource-road-frame {
  min-height: clamp(440px, 46vw, 610px);
  padding: 0;
}

.resource-road-frame img {
  object-position: center;
}

.resource-road-frame::after,
.resource-context-frame::after,
.resource-hero-frame::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(0deg, rgba(37, 25, 12, 0.12), transparent 42%);
}

.resource-method-panel {
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.84), rgba(243, 232, 213, 0.74));
}

.resource-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  border: 2px solid rgba(159, 75, 38, 0.46);
  border-radius: 28px;
  background: rgba(255, 250, 241, 0.68);
  box-shadow: var(--shadow);
}

.resource-step-grid .resource-step {
  min-height: 272px;
  padding: clamp(1.15rem, 2vw, 1.55rem);
  border-color: rgba(165, 86, 47, 0.42);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.94), rgba(247, 238, 225, 0.88));
  box-shadow: none;
}

.resource-step-grid .resource-step span {
  position: static;
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.resource-step-grid .resource-step h3 {
  font-size: clamp(1.5rem, 2.35vw, 2.1rem);
  line-height: 1;
}

.resource-lens-band {
  background:
    radial-gradient(circle at 74% 42%, rgba(232, 165, 58, 0.18), transparent 0 18rem),
    linear-gradient(180deg, rgba(19, 17, 15, 0.92), rgba(33, 29, 25, 0.95)),
    url("images/roman-road-background.jpg") center 58% / cover;
}

.resource-lab-card {
  backdrop-filter: blur(3px);
}

.resource-move-grid {
  gap: 1.1rem;
}

.resource-move-card {
  min-height: 300px;
}

.resource-mini-method {
  min-height: 430px;
}

.resource-mini-method .latin-closeup {
  font-size: clamp(2.2rem, 4.2vw, 3.65rem);
}

.resource-fit-grid h2 {
  max-width: 16ch;
}

.resource-final {
  padding-bottom: 3rem;
}

@media (max-width: 1100px) {
  .resource-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .resource-hero-premium .resource-hero-grid {
    grid-template-columns: 1fr;
  }

  .resource-hero-frame,
  .resource-road-frame {
    min-height: 430px;
  }
}

@media (max-width: 900px) {
  .resource-site-header .brand span,
  .resource-site-header .resource-nav-support,
  .resource-site-header .site-nav .button {
    display: none;
  }

  .resource-site-header .site-nav a:not(.button) {
    padding-inline: 0.62rem;
  }
}

@media (max-width: 740px) {
  .resource-main {
    padding-top: 7.6rem;
  }

  .resource-site-header .resource-language-picker,
  .resource-site-header .resource-language-picker select {
    width: auto;
    min-width: max-content;
    max-width: 42vw;
  }

  .resource-site-header .site-nav {
    overflow-x: visible;
  }

  .resource-site-header .resource-nav-home,
  .resource-site-header .resource-nav-method,
  .resource-site-header .resource-nav-support,
  .resource-site-header .site-nav .button {
    display: none;
  }

  .resource-site-header .site-nav a:not(.button) {
    padding-inline: 0.58rem;
    font-size: 0.94rem;
  }

  .resource-site-header .resource-language-picker select {
    min-height: 40px;
    max-width: 154px;
    padding-left: 0.65rem;
    padding-right: 1.65rem;
  }

  :lang(ja) .resource-hero-copy h1,
  :lang(zh-Hans) .resource-hero-copy h1,
  :lang(ko) .resource-hero-copy h1 {
    font-size: clamp(2.45rem, 11vw, 3.2rem);
    line-height: 1.02;
  }

  .resource-hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.85rem, 13vw, 3.7rem);
  }

  .resource-hero-frame,
  .resource-context-frame,
  .resource-road-frame,
  .resource-mini-method {
    min-height: 350px;
  }

  .resource-step-grid {
    grid-template-columns: 1fr;
    padding: 0.7rem;
    border-radius: 22px;
  }

  .resource-step-grid .resource-step {
    min-height: auto;
  }

  .resource-lab-card .resource-latin-line {
    font-size: clamp(1.65rem, 9vw, 2.35rem);
  }

  .resource-fit-grid h2 {
    max-width: 100%;
  }

  .overlay-chip-secondary {
    right: 1rem;
    bottom: 1rem;
  }
}

.library-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 9%, rgba(255, 243, 202, 0.58), transparent 0 17rem),
    radial-gradient(circle at 84% 10%, rgba(185, 79, 43, 0.13), transparent 0 20rem),
    linear-gradient(180deg, rgba(252, 247, 239, 0.94), rgba(246, 236, 220, 0.96)),
    url("images/roman-road-background.jpg") center top / cover no-repeat;
}

.library-main {
  padding-top: calc(var(--header-offset) + 1rem);
}

.library-header {
  overflow-y: visible;
}

.library-header .brand img {
  flex: 0 0 54px;
}

.library-header .language-picker {
  margin-right: 0;
}

.library-header .language-picker select {
  min-width: 148px;
}

.library-hero {
  min-height: min(720px, calc(100svh - var(--header-offset)));
}

.library-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.library-copy h1 {
  max-width: 12ch;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.2vw, 5.45rem);
  line-height: 0.94;
  overflow-wrap: anywhere;
}

.library-copy .hero-lead {
  max-width: 40rem;
}

.library-frame {
  min-height: clamp(390px, 42vw, 560px);
}

.library-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.library-frame.screenshot-frame img {
  object-fit: contain;
  object-position: center;
}

.library-article {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
}

.library-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: start;
}

.library-section.reverse {
  grid-template-columns: minmax(420px, 1.14fr) minmax(0, 0.86fr);
}

.library-note {
  padding: clamp(1.25rem, 2.4vw, 1.9rem);
  border: 1px solid rgba(100, 80, 50, 0.22);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 14px 34px rgba(55, 35, 16, 0.1);
}

.library-note h2,
.library-note h3,
.library-card strong {
  font-family: var(--serif);
}

.library-note h2 {
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  line-height: 0.98;
}

.library-note h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1;
}

.library-note p,
.library-note li {
  color: rgba(32, 36, 43, 0.78);
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.42;
}

.library-note p {
  margin: 1rem 0 0;
}

.library-list {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.library-list li {
  position: relative;
  padding: 0.82rem 0.9rem 0.82rem 2.5rem;
  border: 1px solid rgba(120, 91, 52, 0.18);
  border-radius: 13px;
  background: rgba(255, 248, 236, 0.68);
}

.library-list li::before {
  position: absolute;
  top: 1.05rem;
  left: 0.9rem;
  width: 0.8rem;
  height: 0.8rem;
  content: "";
  border-radius: 999px;
  background: var(--terracotta);
}

.library-quote {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid rgba(255, 241, 217, 0.24);
  border-radius: 22px;
  color: rgba(255, 241, 217, 0.92);
  background:
    linear-gradient(135deg, rgba(255, 248, 236, 0.12), transparent 46%),
    rgba(255, 248, 236, 0.08);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

.library-quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.library-quote small {
  display: block;
  margin-top: 1rem;
  color: var(--gold-light);
  font-weight: 900;
}

.library-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.library-card {
  display: grid;
  gap: 0.6rem;
  min-height: 190px;
  padding: 1.25rem;
  border: 1px solid rgba(100, 80, 50, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(247, 238, 225, 0.86));
  box-shadow: 0 14px 34px rgba(55, 35, 16, 0.1);
}

.library-card span,
.library-card small {
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.library-card strong {
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.02;
}

.library-card small {
  align-self: end;
  color: rgba(32, 36, 43, 0.58);
}

.library-dark {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: #fff1d9;
  background:
    radial-gradient(circle at 68% 48%, rgba(232, 165, 58, 0.18), transparent 0 18rem),
    linear-gradient(180deg, rgba(19, 17, 15, 0.94), rgba(33, 29, 25, 0.96)),
    url("images/roman-road-background.jpg") center 58% / cover;
}

.library-dark::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(11, 10, 9, 0.66);
}

.library-dark .section-inner {
  position: relative;
  z-index: 1;
}

.library-dark .library-section {
  align-items: center;
}

.library-dark h2 {
  color: rgba(255, 241, 217, 0.96);
}

.library-dark p,
.library-dark li {
  color: rgba(255, 241, 217, 0.8);
}

.library-footer {
  padding: 3rem 0;
}

.library-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.25rem;
  color: rgba(32, 36, 43, 0.72);
  font-weight: 800;
}

.pseo-body .library-copy h1 {
  max-width: 13ch;
}

.pseo-actions .button {
  max-width: 100%;
}

.pseo-section-space {
  margin-top: clamp(1rem, 3vw, 2rem);
}

.pseo-related,
.pseo-faq {
  padding: clamp(3rem, 6vw, 5.5rem) 0 0;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid rgba(100, 80, 50, 0.2);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 12px 28px rgba(55, 35, 16, 0.08);
}

.faq-item summary {
  padding: 1rem 1.2rem;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.faq-item p {
  margin: 0;
  padding: 0 1.2rem 1.2rem;
  color: rgba(32, 36, 43, 0.72);
  font-size: 1.06rem;
  line-height: 1.42;
}

[data-language-panel][hidden] {
  display: none;
}

@media (max-width: 980px) {
  .library-hero-grid,
  .library-section,
  .library-section.reverse {
    grid-template-columns: 1fr;
  }

  .library-frame {
    min-height: 380px;
  }

  .library-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .library-header .brand span,
  .library-header .nav-method,
  .library-header .nav-secondary,
  .library-header .nav-download-links,
  .library-header .nav-download {
    display: none;
  }
}

@media (max-width: 740px) {
  .library-main {
    padding-top: 7.6rem;
  }

  .library-header {
    flex-wrap: nowrap;
  }

  .library-header .site-nav {
    display: flex;
    width: auto;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    overflow: visible;
  }

  .library-header .site-nav a:not(.button) {
    padding-inline: 0.58rem;
  }

  .library-header .site-nav a[data-resource-nav="home"] {
    display: none;
  }

  .library-header .language-picker {
    width: auto;
    margin-left: auto;
  }

  .library-header .language-picker select {
    min-width: 132px;
    max-width: 132px;
  }

  .library-copy h1 {
    font-size: clamp(2.8rem, 12vw, 3.7rem);
  }

  :lang(de) .library-copy h1,
  :lang(es) .library-copy h1,
  :lang(it) .library-copy h1 {
    font-size: clamp(2.55rem, 11vw, 3.3rem);
  }

  .library-frame {
    min-height: 330px;
  }
}
