:root {
  --ink: #1a1208;
  --paper: #f5f0e8;
  --aged: #e8e0cc;
  --sepia: #b8a882;
  --rust: #8b3a1a;
  --faded: #6b5f4a;
  --margin: clamp(2rem, 8vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(16px, 1.1vw, 20px);
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--margin);
  background: rgba(245, 240, 232, 0.93);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sepia);
}

.nav-logo {
  font-family: 'Cormorant SC', serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-logo-i {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--rust);
  line-height: 1;
  user-select: none;
  animation: logo-pulse 3s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1.5px solid var(--rust);
  border-radius: 50%;
}

@keyframes logo-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.nav-toggle-input {
  display: none;
}

.nav-toggle-label {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  cursor: pointer;
  position: relative;
  background: transparent;
  font-family: 'Cormorant SC', serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--rust);
}

.nav-toggle-label::after {
  content: 'MENU';
  display: inline-block;
}

.nav-toggle-label span {
  position: relative;
  width: 1.2rem;
  height: 1px;
  background: var(--rust);
  border-radius: 99px;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 1px;
  background: var(--rust);
  border-radius: 99px;
  transform-origin: center;
  transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle-label span::before {
  top: -4px;
}

.nav-toggle-label span::after {
  top: 4px;
}


.nav-logo a {
  color: inherit;
  text-decoration: none;
}

.nav-logo a:hover {
  color: inherit;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Cormorant SC', serif;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faded);
  text-decoration: none;
  transition: color 0.25s;
}

.nav-links a.active {
  color: var(--rust);
  text-decoration: none;
}

@media (max-width: 850px) {
  .nav-links a {
    display: block;
    width: 100%;
    position: relative;
  }

  .nav-links a.active::after {
    content: '';
    position: absolute;
    left: -1rem;
    right: 0;
    bottom: -0.1rem;
    height: 1px;
    background: var(--rust);
  }
  nav {
    flex-wrap: wrap;
    padding: 1rem clamp(1.5rem, 5vw, 3rem);
    gap: 1rem;
  }

  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(184, 168, 130, 0.22);
  }

  .nav-links a {
    padding: 0.6rem 0;
  }

  .nav-toggle-input:checked + .nav-toggle-label + .nav-links {
    display: flex;
  }

  /* Animate hamburger → X when open */
  .nav-toggle-input:checked + .nav-toggle-label span {
    background: transparent;
  }
  .nav-toggle-input:checked + .nav-toggle-label span::before {
    top: 0;
    transform: rotate(45deg);
  }
  .nav-toggle-input:checked + .nav-toggle-label span::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

.nav-links a:hover { color: var(--rust); }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-label {
  font-family: 'Cormorant SC', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--sepia);
  text-transform: uppercase;
  white-space: nowrap;
}

.section-rule { flex: 1; height: 1px; background: var(--aged); }

.hero {
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 14rem var(--margin) 4rem;
  position: relative;
}

.hero-rule {
  width: 4rem;
  height: 1px;
  background: var(--sepia);
  margin-bottom: 2rem;
}

.hero-rule.hero-rule--wide {
  width: calc(100% - 2 * var(--margin));
  margin: 0 auto 2rem;
  background: transparent;
  border-top: 1px solid var(--sepia);
}

.hero > .page-marquee,
.inner-hero > .page-marquee {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: 0.35rem 0;
}

.page-marquee__track {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 120s linear infinite;
  will-change: transform;
}

.page-marquee__item {
  font-family: 'Cormorant SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--sepia);
  opacity: 0.85;
  text-transform: uppercase;
}

.page-marquee__item:not(:first-child)::before,
.page-marquee__item:last-child::after {
  content: '·';
  display: inline-block;
  margin: 0 0.4rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-eyebrow {
  font-family: 'Cormorant SC', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.hero-title em { font-style: italic; color: var(--rust); }

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-style: italic;
  color: var(--faded);
  max-width: 36rem;
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.hero-decoration {
  position: absolute;
  right: var(--margin);
  top: 55%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(12rem, 22vw, 22rem);
  color: var(--aged);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.catalog {
  padding: 5rem var(--margin);
  border-top: 1px solid var(--sepia);
}

.about-section {
  padding: 5rem var(--margin);
  border-top: 1px solid var(--sepia);
}

.pricing-note {
  padding: 5rem var(--margin);
  border-top: 1px solid var(--sepia);
}

.pricing-note .about-body {
  max-width: 110ch;
}

.about-body {
}

.about-body p {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 2;
  color: var(--ink);
  margin-bottom: 1.8rem;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  border: 1px solid var(--sepia);
}

.catalog-item {
  display: flex;
  flex-direction: column;
  padding: 3rem 2.5rem;
  border-bottom: 1px solid var(--sepia);
  cursor: pointer;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.catalog-item:last-child { border-right: none; }

.catalog-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.catalog-item:hover { background: var(--aged); }
.catalog-item:hover::after { transform: scaleX(1); }

.catalog-num {
  font-family: 'Cormorant SC', serif;
  font-size: 0.7rem;
  color: var(--sepia);
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}

.catalog-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.1;
  margin-bottom: 0.8rem;
  color: var(--ink);
}

.catalog-title em { font-style: italic; color: var(--rust); }

.catalog-desc {
  font-size: 0.88rem;
  color: var(--faded);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.catalog-arrow {
  margin-top: auto;
  font-family: 'Cormorant SC', serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--rust);
  text-transform: uppercase;
}

.ornament {
  text-align: center;
  color: var(--sepia);
  font-size: 2rem;
  padding: 2rem;
}

.ornament-diamond {
  display: inline-block;
  position: relative;
  width: 3rem;
  height: 3rem;
  transform: rotate(45deg);
  border: 0.2rem solid var(--sepia);
  box-sizing: border-box;
}

.ornament-diamond::after {
  content: '';
  position: absolute;
  inset: 25%;
  background: var(--sepia);
}

.colophon {
  padding: 3rem var(--margin);
  border-top: 1px solid var(--sepia);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.colophon-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--sepia);
}

.colophon-text a {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--rust);
  border-radius: 999px;
  background: rgba(216, 208, 190, 0.18);
  color: var(--rust);
  font-family: 'Cormorant SC', serif;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.colophon-text a:hover {
  background: var(--rust);
  color: var(--paper);
  transform: translateY(-1px);
}

.colophon-mark {
  font-family: 'Cormorant SC', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--sepia);
}

.inner-hero {
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 14rem var(--margin) 4rem;
  border-bottom: 1px solid var(--sepia);
  position: relative;
  overflow: hidden;
}

.inner-hero.about-aīris-page {
  padding-top: 14rem;
}

.inner-hero.about-aīris-page .inner-title {
  font-size: clamp(4rem, 10vw, 9rem);
}

.privacy-page .inner-hero {
  text-align: center;
}

.error-page .inner-hero {
  min-height: 100vh;
  justify-content: center;
  padding: 8rem var(--margin) 5rem;
  border-bottom: none;
  text-align: center;
}

.error-page .inner-tagline {
  margin: 0 auto;
  max-width: 42rem;
}

.error-page .button-row {
  justify-content: center;
}

.breadcrumb {
  font-family: 'Cormorant SC', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--sepia);
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

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

.breadcrumb a:hover { color: var(--rust); }

.inner-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.privacy-page .inner-hero .inner-title,
.contact-page .inner-hero .inner-title {
  margin-top: 2.5rem;
}

.inner-title em { font-style: italic; color: var(--rust); }

.inner-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--faded);
  max-width: 38rem;
  line-height: 1.9;
}

.inner-deco {
  position: absolute;
  right: var(--margin);
  top: 55%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(6rem, 14vw, 14rem);
  color: var(--aged);
  line-height: 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  pointer-events: none;
}

.airis-chat-hero .inner-deco {
  top: 55%;
  transform: translateY(-50%);
}

.app-page-body {
  padding: 5rem var(--margin);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .app-page-body { grid-template-columns: 1fr; gap: 3rem; }
}

.app-meta-icon {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.8rem;
  color: var(--rust);
  margin-bottom: 1.5rem;
  line-height: 1;
  font-style: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.icon-diamond {
  display: inline-block;
  position: relative;
  width: 2.8rem;
  height: 2.8rem;
  transform: rotate(45deg);
  border: 0.25rem solid currentColor;
  box-sizing: border-box;
}

.icon-diamond::after {
  content: '';
  position: absolute;
  inset: 25%;
  background: currentColor;
}

.icon-large {
  width: clamp(4rem, 10vw, 8rem);
  height: clamp(4rem, 10vw, 8rem);
}

.icon-small {
  width: 2.8rem;
  height: 2.8rem;
}

.app-meta-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.app-meta-name em { font-style: italic; color: var(--rust); }

.app-meta-type {
  font-family: 'Cormorant SC', serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.app-meta-desc {
  font-size: 1rem;
  color: var(--ink);
  line-height: 2;
  margin-bottom: 1.5rem;
}

.app-sibling {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--aged);
}

.app-sibling-label {
  font-family: 'Cormorant SC', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--sepia);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.app-sibling-link {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--rust);
  text-decoration: none;
}

.app-sibling-link:hover { text-decoration: underline; }

.external-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--rust);
  color: var(--paper);
  font-family: 'Cormorant SC', serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--rust);
  border: 1px solid rgba(179, 104, 64, 0.3);
  font-family: 'Cormorant SC', serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 1.8rem;
  margin-left: 0.85rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.download-link:hover {
  background: rgba(255,255,255,1);
  border-color: var(--rust);
}

.download-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0.15rem;
  border-radius: 50%;
  background: transparent;
  color: var(--rust);
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.6rem;
}

.button-row .download-icon {
  margin-top: 0;
}

.lang-card {
  position: relative;
  padding: 3.5rem 3rem;
  transition: background 0.3s;
  border-radius: 1.25rem;
  border: 1px solid rgba(184, 168, 130, 0.22);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lang-card .download-icon {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  border-color: rgba(179, 104, 64, 0.35);
}

.nav-right .download-icon {
  position: static;
  margin-left: 0.65rem;
  border-color: rgba(179, 104, 64, 0.25);
}

.nav-status-label {
  margin-left: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.nav-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-left: 0.8rem;
  border: 1px solid rgba(184,168,130,0.25);
  border-radius: 0.85rem;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.nav-help:hover,
.nav-help:focus-visible {
  background: rgba(237, 229, 210, 0.92);
  border-color: rgba(179,104,64,0.4);
  transform: translateY(-1px);
}

.download-icon:hover,
.download-icon:focus-visible {
  color: var(--paper);
  background: var(--rust);
  border-color: var(--rust);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.6rem;
}

.external-button:hover {
  background: #6d3115;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(26, 18, 8, 0.12);
}

.external-button:focus-visible {
  outline: 2px solid var(--aged);
  outline-offset: 4px;
}

.colophon .external-button {
  padding: 0.65rem 0.95rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.colophon .privacy-link {
  color: var(--rust);
  text-decoration: none;
  font-family: 'Cormorant SC', serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.colophon .privacy-link:hover {
  text-decoration: underline;
}

.colophon-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  white-space: nowrap;
  margin-top: 0.25rem;
}

.colophon-separator {
  color: var(--sepia);
  font-family: 'Cormorant SC', serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.privacy-body {
  text-align: center;
  max-width: 58ch;
  margin: 0 auto;
}

.privacy-body h2,
.privacy-body p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.privacy-body .external-button,
.lang-body .external-button {
  margin-top: 3rem;
}

.contact-page .inner-hero {
  padding-top: 16rem;
}

.contact-page .privacy-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
}

.contact-page .privacy-body .external-button {
  margin-bottom: 1.5rem;
}

.contact-page .privacy-body p {
  max-width: 44rem;
}

.privacy-body .drop-cap::first-letter {
  float: none;
  display: inline-block;
  margin-right: 0.12em;
}

.privacy-body ul {
  display: inline-block;
  text-align: left;
  margin: 1.5rem auto;
}


.features-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--faded);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--aged);
}

.feature-block {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--aged);
}

.feature-block:last-child { border-bottom: none; }

.feature-group .feature-block { border-bottom: none; }

.feature-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.setup-section {
  padding: 5rem var(--margin);
  max-width: 720px;
}

.instruction-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0.5rem;
}

.instruction-tab {
  border: 1px solid var(--aged);
  background: transparent;
  color: var(--faded);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.instruction-tab.active,
.instruction-tab:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.instruction-panel {
  display: none;
}

.instruction-panel.active {
  display: block;
}

.code-box {
  display: block;
  background: var(--aged);
  color: var(--ink);
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-box code {
  white-space: pre-wrap;
}

.support-note {
  font-size: 0.88rem;
  color: var(--faded);
  margin-top: 0.75rem;
  line-height: 1.7;
}

/* ── Help button (?) ─────────────────────────────────────── */
.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: #8B3A0F;
  color: #fff;
  cursor: pointer;
  z-index: 9000;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 10px 28px rgba(139,58,15,0.30), 0 0 0 rgba(255,255,255,0);
  animation: help-glow 1.8s ease-in-out infinite;
}
.help-icon:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(139,58,15,0.35), 0 0 20px rgba(255,255,255,0.18); }
.help-icon.clicked { animation: none; }

@keyframes help-glow {
  0% { transform: scale(1); box-shadow: 0 10px 28px rgba(139,58,15,0.30), 0 0 0 rgba(255,255,255,0); }
  50% { transform: scale(1.04); box-shadow: 0 14px 34px rgba(139,58,15,0.35), 0 0 18px rgba(255,255,255,0.18); }
  100% { transform: scale(1); box-shadow: 0 10px 28px rgba(139,58,15,0.30), 0 0 0 rgba(255,255,255,0); }
}

/* ── Help modal ──────────────────────────────────────────── */
.help-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 1rem 2rem;
}
.help-modal.open { display: flex; }

.help-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(245, 240, 232, 0.6);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.help-modal__box {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--aged);
  border-radius: 1rem;
  padding: 3rem 3rem 2rem;
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1;
}

.help-modal__close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--faded);
  cursor: pointer;
  line-height: 1;
}
.help-modal__close:hover { color: var(--ink); }

.help-modal__box a {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid var(--sepia);
  transition: border-color 0.2s, color 0.2s;
}
.help-modal__box a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.help-modal__heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  margin-bottom: 2rem;
  color: var(--ink);
}
.help-modal__heading em { font-style: italic; color: var(--rust); }

.option-label {
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.help-modal__box a {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid var(--sepia);
  transition: border-color 0.2s, color 0.2s;
}
.help-modal__box a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

@media (max-width: 600px) {
  .help-modal { padding: 1rem 0.5rem; align-items: flex-end; }
  .help-modal__box { border-radius: 1rem 1rem 0 0; max-height: 90vh; padding: 2rem 1.5rem 1.5rem; }
}

/* ── Setup instructions section ─────────────────────────── */
.setup-section {
  padding: 5rem var(--margin);
  border-top: 1px solid var(--sepia);
  max-width: 52rem;
}

.setup-section .features-heading {
  margin-bottom: 3rem;
}

.setup-intro {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--faded);
  line-height: 1.9;
  margin-bottom: 3rem;
  max-width: 40rem;
}

.os-switcher {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.os-tab {
  font-family: 'Cormorant SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--sepia);
  background: transparent;
  color: var(--sepia);
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.os-tab.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.os-tab:hover:not(.active) {
  border-color: var(--ink);
  color: var(--ink);
}

.os-panel { display: none; }
.os-panel.active { display: block; }

.setup-step {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--aged);
}

.setup-step:last-child { border-bottom: none; }

.setup-step-num {
  font-family: 'Cormorant SC', serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.setup-step-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.setup-step-desc {
  font-size: 0.88rem;
  color: var(--faded);
  line-height: 1.8;
  margin-bottom: 0;
}

.code-block {
  display: block;
  background: var(--aged);
  border-left: 2px solid var(--rust);
  padding: 0.9rem 1.2rem;
  margin: 0.9rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-all;
  border-radius: 0 0.4rem 0.4rem 0;
}

.setup-divider {
  font-family: 'Cormorant SC', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--sepia);
  text-transform: uppercase;
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--aged);
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--faded);
  line-height: 1.75;
}

.pullquote {
  margin: 0 var(--margin) 5rem;
  padding: 3rem 4rem;
  border-left: 3px solid var(--rust);
  background: var(--aged);
}

.pullquote p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.5;
  color: var(--ink);
}

.pullquote cite {
  display: block;
  margin-top: 1rem;
  font-family: 'Cormorant SC', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--rust);
  font-style: normal;
}

.lang-intro {
  padding: 4rem var(--margin);
  max-width: 64rem;
  margin: 0 auto;
}

.lang-body {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 2;
  color: var(--ink);
}

.lang-body p + p { margin-top: 1.2em; }

.drop-cap::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 4.5em;
  float: left;
  line-height: 0.75;
  margin-right: 0.08em;
  margin-top: 0.06em;
  color: var(--rust);
}

.lang-cards {
  margin: 0 var(--margin) 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: transparent;
}

.lang-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 1.25rem;
  overflow: hidden;
}

.lang-card-link:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}

.lang-card {
  position: relative;
  background: var(--paper);
  padding: 3.5rem 3rem;
  transition: background 0.3s, transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 1.25rem;
  border: 1px solid rgba(184, 168, 130, 0.22);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lang-card:hover {
  background: var(--aged);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(26, 18, 8, 0.08);
}

.lang-card.coming-soon {
  color: rgba(51, 51, 51, 0.55);
  background: rgba(245, 243, 236, 0.92);
  border-color: rgba(184, 168, 130, 0.12);
}

.lang-card.coming-soon .lang-card-link,
.lang-card.coming-soon .download-icon {
  pointer-events: none;
}

.lang-card.coming-soon .lang-card-name,
.lang-card.coming-soon .lang-card-sub,
.lang-card.coming-soon .lang-card-desc {
  color: rgba(51, 51, 51, 0.55);
}

.lang-card.coming-soon .download-icon {
  opacity: 0.35;
}

.lang-card.coming-soon::after {
  content: "Arriving soon";
  position: absolute;
  top: 1.4rem;
  right: 1rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(216, 208, 190, 1);
  color: var(--rust);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
}

.pill-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(216, 208, 190, 1);
  color: var(--rust);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-card.coming-soon:hover {
  background: rgba(245, 243, 236, 1);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(26, 18, 8, 0.08);
}

.lang-card-glyph {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  color: var(--rust);
  line-height: 1;
  margin-bottom: 1.4rem;
  font-style: italic;
}

.lang-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.lang-card-name em { font-style: italic; color: var(--rust); }

.lang-card-sub {
  font-family: 'Cormorant SC', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.lang-card-desc {
  font-size: 0.92rem;
  color: var(--faded);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.lang-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lang-card-features li {
  font-size: 0.85rem;
  color: var(--faded);
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  line-height: 1.6;
}

.lang-card-features li::before {
  content: '—';
  color: var(--rust);
  flex-shrink: 0;
}

@media (max-width: 700px) { .lang-cards { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  .hero-decoration, .inner-deco { display: none; }
  .nav-links { gap: 1rem; }
  .colophon { flex-direction: column; gap: 1rem; text-align: center; }
  .pullquote { margin: 0 1.5rem 3rem; padding: 1.5rem; }

  /* General mobile layout */
  .hero {
    min-height: auto;
    padding: 8rem 1.5rem 5.5rem;
  }
  .catalog {
    padding: 3rem 1.5rem;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .inner-hero {
    min-height: auto;
    padding: 8rem 1.5rem 5.5rem;
  }
  .inner-hero.about-aīris-page {
    padding-top: 7rem;
  }
  .hero .hero-title {
    margin-bottom: 1.6rem;
  }
  .hero-subtitle,
  .inner-tagline {
    margin-bottom: 4rem;
  }
  body.home-page .hero-subtitle {
    margin-bottom: 5rem;
  }

  body.speak-page .inner-tagline {
    margin-bottom: 2rem;
  }

  .hero {
    padding-bottom: 5rem;
  }

  .app-page-body {
    padding: 3rem 1.5rem;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .lang-intro {
    padding: 2.5rem 1.5rem;
  }
  .lang-cards {
    margin: 0 1.5rem 3rem;
    justify-items: center;
  }
  .lang-card {
    min-width: 0;
    overflow: visible;
    padding: 4.5rem 1.5rem 2rem;
  }
  .lang-card-link {
    min-width: 0;
    overflow: visible;
  }
  .lang-card-name {
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  .lang-card.coming-soon::after {
    top: 1.2rem;
    right: 1.2rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
  }

  html,
  body {
    overflow-x: hidden;
  }

  .hero,
  .inner-hero {
    overflow-x: hidden;
  }

  .hero > .page-marquee,
  .inner-hero > .page-marquee {
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 0.12rem 0;
  }

  .page-marquee__item {
    font-size: 0.36rem;
    letter-spacing: 0.12em;
  }
}
