html {
  scroll-behavior: smooth;
}

:root {
  --primary: #d97706;
  --primary-dark: #b45309;
  --primary-ink: #9a4c08;
  --forest: #284c3c;
  --text: #29241f;
  --muted: #71675e;
  --bg: #ffffff;
  --bg-soft: #f7f4ef;
  --bg-warm: #faf7f0;
  --line: #ebe6df;
  --phone-bezel: #1c1c1c;
  --wire-bg: #f0ebe3;
  --wire-block: #ddd5c8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.narrow {
  max-width: 650px;
}

code {
  font-family:
    ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.06);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

/* Hero */
.hero {
  background: var(--bg-warm);
  overflow: clip;
}
.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
}
.brand {
  display: inline-flex;
}
.hero-logo {
  width: 126px;
  height: 70px;
  object-fit: contain;
}
.hero-header nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.hero-header nav a {
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}
.languages {
  padding: 88px 0 72px;
  background:
    radial-gradient(
      ellipse 70% 45% at 50% 0%,
      rgba(217, 119, 6, 0.07),
      transparent 70%
    ),
    var(--bg-warm);
}
.languages__intro {
  text-align: center;
  margin-bottom: 36px;
}
.languages__intro h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.languages__intro .section-lead {
  margin-inline: auto;
}
.languages-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.languages-board .languages-grid {
  width: 100%;
}
.languages-board:not(.is-expanded) .languages-grid > li:nth-child(n + 6) {
  display: none;
}
.languages__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-ink);
}
.languages__chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}
.languages-board.is-expanded .languages__chevron {
  transform: rotate(-135deg) translateY(-1px);
}
@media (max-width: 760px) {
  .languages-board:not(.is-expanded) .languages-grid > li:nth-child(n + 5) {
    display: none;
  }
}
.hero-content {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  align-items: center;
  gap: 12px;
  padding-top: 60px;
  padding-bottom: 72px;
}
.hero-copy {
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-copy .section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  margin-bottom: 25px;
}
.eyebrow-line {
  width: 24px;
  height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.07;
  margin-bottom: 26px;
}
.hero h1 span {
  color: var(--primary);
}
.hero-lead {
  margin-inline: auto;
  font-size: 1rem;
  color: var(--muted);
  max-width: 390px;
  line-height: 1.85;
}
.hero-actions {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 54px;
  background: var(--primary);
  color: #25170b;
  text-decoration: none;
  padding: 17px 23px;
  border: 1px solid #bd6505;
  border-radius: 15px;
  box-shadow:
    0 5px 0 #92400e,
    inset 0 2px 0 #ffffff30;
  font-size: 0.9rem;
  font-weight: 800;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 #92400e,
    inset 0 2px 0 #ffffff30;
}
.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #92400e;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover {
  color: var(--primary-ink);
}
.hero-ios {
  display: inline-block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 25px;
  padding: 8px 0;
  text-underline-offset: 4px;
}
.hero-art {
  min-width: 0;
  margin-right: -45px;
}
.hero-scenes {
  position: relative;
  aspect-ratio: 3 / 2;
  isolation: isolate;
}
.hero-scene {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--bg-warm);
  isolation: isolate;
  opacity: 0;
}
/* Feather the studio backdrop into the original cream without tinting the art. */
.hero-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mask-image:
    linear-gradient(to right, transparent, black 7%, black 93%, transparent),
    linear-gradient(to bottom, transparent, black 9%, black 91%, transparent);
  mask-composite: intersect;
}
.hero-scene.is-active {
  opacity: 1;
}
.scene-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.scene-controls[hidden] {
  display: none;
}
.scene-dots {
  display: flex;
}
.scene-dot {
  width: 32px;
  height: 44px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.scene-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  background: #cfc5b7;
  border-radius: 50%;
  transition: width 0.2s;
}
.scene-dot[aria-pressed="true"]::after {
  width: 22px;
  border-radius: 8px;
  background: var(--primary);
}
.scene-caption {
  color: var(--muted);
  font-size: 0.65rem;
}
.scene-pause {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.65rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.hero-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e8dfd2;
  padding-top: 24px;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 0.7rem;
}
.hero-footnote__steps {
  display: flex;
  gap: 20px;
  align-items: center;
  font-weight: 700;
  color: var(--forest);
}
.hero-footnote i {
  width: 4px;
  height: 4px;
  background: #b4baab;
  border-radius: 50%;
}
:focus-visible {
  outline: 3px solid var(--primary-ink);
  outline-offset: 5px;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 15px;
  background: white;
  color: var(--text);
}

/* —— Section chrome —— */

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-ink);
  margin-bottom: 12px;
}

.section-lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 34rem;
  margin: 0 auto;
}

/* —— Showcase gallery —— */

.showcase {
  padding: 100px 0 40px;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% 0%,
      rgba(217, 119, 6, 0.08),
      transparent 70%
    ),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  overflow: hidden;
}

.showcase-intro {
  text-align: center;
  margin-bottom: 64px;
}

.showcase-intro h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.showcase-gallery {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(12px, 3vw, 36px);
  padding: 0 4% 20px;
  perspective: 1200px;
}

.showcase-item {
  flex: 0 0 auto;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-item--1 {
  transform: rotate(-6deg) translateY(28px);
}

.showcase-item--2 {
  transform: translateY(0);
  z-index: 2;
}

.showcase-item--3 {
  transform: rotate(6deg) translateY(28px);
}

@keyframes phone-rise-left {
  from {
    opacity: 0;
    transform: translateY(48px) rotate(-6deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(28px) rotate(-6deg) scale(1);
  }
}
@keyframes phone-rise-center {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes phone-rise-right {
  from {
    opacity: 0;
    transform: translateY(48px) rotate(6deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(28px) rotate(6deg) scale(1);
  }
}

.showcase-gallery.is-visible .showcase-item--1 {
  animation: phone-rise-left 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
.showcase-gallery.is-visible .showcase-item--2 {
  animation: phone-rise-center 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}
.showcase-gallery.is-visible .showcase-item--3 {
  animation: phone-rise-right 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* —— Feature rows —— */

.features-flow {
  padding: 40px 0 20px;
}

.feature-row {
  padding: 72px 0;
}

.feature-row:nth-child(even) {
  background: var(--bg-soft);
}

.feature-row__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.feature-row--flip .feature-row__inner {
  direction: rtl;
}

.feature-row--flip .feature-row__inner > * {
  direction: ltr;
}

.feature-row__copy h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.feature-row__copy p:not(.section-eyebrow) {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 28rem;
}

.feature-row__media {
  display: flex;
  justify-content: center;
}

[data-reveal] {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.showcase-gallery[data-reveal] {
  /* gallery uses its own child animations */
  opacity: 1;
  transform: none;
}

.showcase-gallery[data-reveal]:not(.is-visible) .showcase-item {
  opacity: 1;
}

/* —— Phone frame / wireframe —— */

.phone {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone__bezel {
  position: relative;
  background: var(--phone-bezel);
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 24px 48px rgba(0, 0, 0, 0.18),
    0 8px 16px rgba(0, 0, 0, 0.08);
  width: 240px;
}

.phone--sm .phone__bezel {
  width: 180px;
  border-radius: 28px;
  padding: 8px;
}
.phone--md .phone__bezel {
  width: 240px;
}
.phone--lg .phone__bezel {
  width: 280px;
  border-radius: 40px;
  padding: 12px;
}

.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 18px;
  background: #0a0a0a;
  border-radius: 20px;
  z-index: 3;
  pointer-events: none;
}

.phone--sm .phone__notch {
  height: 14px;
  top: 12px;
}
.phone--lg .phone__notch {
  height: 20px;
  top: 16px;
}

.phone__screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  overflow: hidden;
  background: var(--wire-bg);
}

.phone--sm .phone__screen {
  border-radius: 22px;
}
.phone--lg .phone__screen {
  border-radius: 30px;
}

.phone__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone__home {
  width: 36%;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  margin: 8px auto 2px;
}

.phone__caption {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  max-width: 220px;
  line-height: 1.4;
}

.phone__caption code {
  font-size: 0.7rem;
  word-break: break-all;
}

/* Wireframe placeholder UI */
.phone__wire {
  height: 100%;
  padding: 36px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(160deg, #f8f3eb 0%, #ebe3d6 100%);
}

.phone__wire-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.phone__wire-time {
  font-size: 0.65rem;
  font-weight: 700;
  color: #8a8074;
}

.phone__wire-dots {
  width: 36px;
  height: 6px;
  border-radius: 3px;
  background: var(--wire-block);
}

.phone__wire-hero {
  height: 28%;
  border-radius: 14px;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 6px,
      rgba(0, 0, 0, 0.03) 6px,
      rgba(0, 0, 0, 0.03) 12px
    ),
    var(--wire-block);
  border: 1.5px dashed #c4b8a6;
}

.phone__wire-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone__wire-lines span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--wire-block);
  width: 100%;
}

.phone__wire-lines span.short {
  width: 55%;
}

.phone__wire-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.phone__wire-blocks div {
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--wire-block);
  border: 1px dashed #c4b8a6;
}

.phone__wire-label {
  margin-top: auto;
  text-align: center;
  padding-top: 8px;
}

.phone__wire-label strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.phone__wire-label code {
  display: inline-block;
  font-size: 0.65rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed #c4b8a6;
  padding: 4px 8px;
  border-radius: 6px;
}

.phone[data-has-image="true"] .phone__bezel {
  animation: none;
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.showcase-item .phone[data-has-image="true"] .phone__bezel,
.feature-row--flip .phone[data-has-image="true"] .phone__bezel {
  animation: none;
}

.feature-row .phone[data-has-image="true"] .phone__bezel {
  animation: none;
}

/* —— App moment (mockup + story) —— */

.app-moment {
  padding: 100px 0 40px;
  background: var(--bg);
}

.app-moment__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
}

.app-moment__copy {
  max-width: 36rem;
}

.app-moment__copy h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.app-moment__copy p:not(.section-eyebrow) {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 500;
  line-height: 1.55;
}

.app-moment__mockup {
  width: 100%;
  display: flex;
  justify-content: center;
}

.app-moment__mockup .app-mockup {
  width: 100%;
  max-width: 420px;
  height: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-moment__mockup .app-mockup:hover {
  transform: translateY(-6px) scale(1.01);
}

/* Download: a primary action and an optional iPhone waitlist */
.get-app {
  padding: 64px 0 80px;
  background: var(--bg);
  scroll-margin-top: 24px;
}
.get-app__inner {
  background: var(--forest);
  color: #fffaf1;
  border-radius: 30px;
  padding: 48px 56px 0;
  box-shadow: 0 7px 0 #193b2e;
}
.get-app__main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  padding-bottom: 38px;
}
.get-app__copy .section-eyebrow {
  color: #efd3a9;
}
.get-app__copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin: 16px 0;
}
.get-app__copy > p:last-child {
  font-size: 0.9rem;
  color: #d5dfd5;
  line-height: 1.7;
}
.get-app__android {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.get-app__android > span {
  font-size: 0.7rem;
  color: #d5dfd5;
}
.get-app__ios {
  border-top: 1px solid #ffffff30;
  scroll-margin-top: 32px;
}
.get-app__ios summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #d5dfd5;
}
.get-app__ios summary::-webkit-details-marker {
  display: none;
}
.get-app__ios summary strong {
  color: #fffaf1;
  font-weight: 600;
  margin-left: 8px;
}
.disclosure-icon {
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.2s;
}
details[open] > summary .disclosure-icon {
  transform: rotate(45deg);
}
.ios-content {
  max-width: 620px;
  padding-bottom: 26px;
}
.ios-content > p {
  color: #d5dfd5;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.get-app :focus-visible {
  outline-color: #f9d59d;
}

.waitlist-form {
  display: flex;
  gap: 12px;
}

.waitlist-form input {
  flex: 1;
  min-width: 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}

.waitlist-form button {
  background: var(--primary);
  color: #25170b;
  border: none;
  border-radius: 16px;
  padding: 18px 28px;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 140px;
  box-shadow:
    0 4px 0 #92400e,
    inset 0 2px 0 #ffffff30;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}

.waitlist-form button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  animation: btn-spin 0.75s linear infinite;
}

.waitlist-message {
  margin-top: 16px;
  font-weight: 600;
  font-size: 1.05rem;
  min-height: 0;
  text-align: center;
}

.waitlist-message.success {
  color: #2e7d32;
}

.waitlist-message.error {
  color: #ffcfbd;
}

.store-link {
  display: inline-block;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.store-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-img {
  height: 40px;
  width: auto;
  display: block;
}

.store-img--lg {
  height: 56px;
}

.store-img--sm {
  height: 36px;
}

footer {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

/* —— Modal —— */

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-backdrop {
  border: 0;
  padding: 0;
  margin: auto;
  max-width: min(420px, calc(100% - 40px));
  width: 100%;
  border-radius: 28px;
  background: white;
  color: var(--text);
}
.modal-backdrop::backdrop {
  background: #191b16a6;
  backdrop-filter: blur(6px);
}
.modal-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 48px 40px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
  transform: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop[open] .modal-card {
  transform: translateY(0) scale(1);
}

.modal-check-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.modal-check {
  width: 72px;
  height: 72px;
}

.modal-check-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: none;
}

.modal-backdrop[open] .modal-check-circle {
  animation: draw-circle 0.5s ease forwards 0.1s;
}

.modal-check-tick {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: none;
}

.modal-backdrop[open] .modal-check-tick {
  animation: draw-tick 0.35s ease forwards 0.55s;
}

@keyframes draw-circle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes draw-tick {
  to {
    stroke-dashoffset: 0;
  }
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.modal-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.modal-close-btn {
  background: var(--primary);
  color: #25170b;
  border: none;
  border-radius: 999px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.modal-close-btn:hover {
  transform: translateY(-2px);
  background-color: var(--primary-dark);
}

/* —— Responsive —— */

@media (max-width: 900px) {
  .feature-row__inner,
  .feature-row--flip .feature-row__inner {
    grid-template-columns: 1fr;
    direction: ltr;
    text-align: center;
    gap: 40px;
  }

  .feature-row__copy p:not(.section-eyebrow) {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-row__media {
    order: -1;
  }

  .get-app__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .showcase-gallery {
    gap: 8px;
  }

  .phone--md .phone__bezel {
    width: 160px;
    border-radius: 26px;
    padding: 8px;
  }
  .phone--lg .phone__bezel {
    width: 200px;
    border-radius: 32px;
    padding: 10px;
  }

  .showcase-item--1,
  .showcase-gallery.is-visible .showcase-item--1 {
    transform: rotate(-4deg) translateY(16px);
  }

  .showcase-item--3,
  .showcase-gallery.is-visible .showcase-item--3 {
    transform: rotate(4deg) translateY(16px);
  }
}

@media (max-width: 768px) {
  .waitlist-form {
    flex-direction: column;
  }

  .get-app {
    padding: 48px 0 80px;
  }

  .app-moment {
    padding: 72px 0 24px;
  }

  .app-moment__inner {
    gap: 36px;
  }

  .app-moment__mockup .app-mockup {
    max-width: 300px;
  }

  .showcase {
    padding: 72px 0 24px;
  }

  .feature-row {
    padding: 56px 0;
  }

  .phone__caption {
    display: none;
  }
}

@media (max-width: 520px) {
  .showcase-gallery {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 28px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .showcase-item {
    scroll-snap-align: center;
  }

  .showcase-item--1,
  .showcase-item--2,
  .showcase-item--3,
  .showcase-gallery.is-visible .showcase-item--1,
  .showcase-gallery.is-visible .showcase-item--2,
  .showcase-gallery.is-visible .showcase-item--3 {
    transform: none;
    animation: none;
  }

  .showcase-gallery.is-visible .showcase-item {
    opacity: 1;
  }

  .phone--md .phone__bezel,
  .phone--lg .phone__bezel {
    width: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .showcase-gallery.is-visible .showcase-item,
  .phone[data-has-image="true"] .phone__bezel {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Compact screens keep the reading order and generous touch targets. */
@media (min-width: 1200px) {
  .container {
    width: min(1180px, 88%);
  }
  .hero-content {
    min-height: 590px;
  }
}
@media (max-width: 1000px) {
  .hero-content {
    padding-top: 44px;
    padding-bottom: 48px;
  }
  .hero-art {
    margin-right: -20px;
  }
  .hero-actions {
    gap: 10px 24px;
  }
  .desktop-break {
    display: none;
  }
  .scene-caption {
    display: none;
  }
  .get-app__inner {
    padding: 36px 32px 0;
  }
}
@media (max-width: 760px) {
  .hero-header {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .hero-logo {
    width: 108px;
    height: 60px;
  }
  .hero-header nav {
    gap: 20px;
  }
  .hero-header nav a {
    font-size: 0.75rem;
  }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 34px;
    padding-bottom: 20px;
    gap: 14px;
  }
  .hero-copy .section-eyebrow {
    justify-content: center;
    font-size: 0.58rem;
    margin-bottom: 22px;
  }
  .eyebrow-line {
    display: none;
  }
  .hero h1 {
    font-size: clamp(2.7rem, 9.6vw, 4.5rem);
    margin-bottom: 20px;
  }
  .hero-lead {
    margin-inline: auto;
    max-width: 440px;
    margin: 0 auto;
    font-size: 0.9rem;
    line-height: 1.75;
  }
  .hero-actions {
    justify-content: center;
    margin-top: 24px;
  }
  .hero-ios {
    margin-top: 14px;
  }
  .hero-art {
    margin: 0 -3%;
  }
  .hero-scenes {
    max-width: 560px;
    margin: auto;
  }
  .scene-controls {
    margin-top: 0;
    gap: 10px;
  }
  .scene-caption {
    display: inline;
  }
  .hero-footnote {
    justify-content: center;
    padding: 20px 0;
  }
  .hero-footnote > span:first-child {
    display: none;
  }
  .showcase-intro {
    margin-bottom: 40px;
  }
  .feature-row__media {
    order: 0;
  }
  .feature-row__inner {
    gap: 30px;
  }
  .feature-row__copy p:not(.section-eyebrow) {
    font-size: 1rem;
  }
  .features-flow {
    padding-top: 0;
  }
  .get-app__main {
    flex-direction: column;
    text-align: center;
    gap: 28px;
    padding-bottom: 30px;
  }
  .get-app__inner {
    border-radius: 24px;
    padding: 32px 24px 0;
  }
  .get-app__ios summary {
    font-size: 0.75rem;
    gap: 12px;
  }
  .get-app__ios summary strong {
    display: block;
    margin: 5px 0 0;
  }
  .waitlist-form {
    gap: 12px;
  }
  .modal-card {
    padding: 36px 24px;
  }
  footer {
    padding: 28px 8px;
  }
}
@media (max-width: 380px) {
  .nav-product {
    display: none;
  }
  .hero-copy .section-eyebrow {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }
  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }
  .hero-actions .btn-primary {
    width: 100%;
  }
  .scene-caption {
    font-size: 0.57rem;
  }
  .get-app__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .footer-links {
    gap: 8px;
    font-size: 0.7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Section navigation destinations */
#about,
#product,
#languages,
#languages-list,
#download,
[id^="lang-"] {
  scroll-margin-top: 24px;
}
.about {
  padding: 76px 0;
  background: var(--bg);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about h2 {
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.04em;
}
.about__copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}
.about__copy p + p {
  margin-top: 16px;
}
.about__copy .about__languages {
  color: var(--forest);
  font-size: 0.85rem;
  font-weight: 700;
}
@media (max-width: 760px) {
  .about {
    padding: 52px 0;
  }
  .languages {
    padding: 56px 0 48px;
  }
  .languages__intro {
    margin-bottom: 28px;
  }
  .about__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about__copy p {
    font-size: 0.95rem;
  }
}
