@font-face {
  font-family: "DM Sans";
  src: url("/marketing/fonts/dm-sans-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/marketing/fonts/dm-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/marketing/fonts/space-grotesk.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --surface: #fffefa;
  --tint: #eae9e2;
  --ink: #282b27;
  --muted: #63665e;
  --line: #d9dad1;
  --accent: #c8462c;
  --accent-soft: #ed7357;
  --accent-ink: #ffffff;
  --scene: #e7e6dc;
  --shadow: #353a2424;
  font-family: "DM Sans", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #22251f;
  --surface: #2b2f27;
  --tint: #30342c;
  --ink: #f5f4e9;
  --muted: #bdc2b3;
  --line: #454b3e;
  --accent: #ff987b;
  --accent-soft: #dd674a;
  --accent-ink: #24251e;
  --scene: #393d32;
  --shadow: #0c100b55;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  font-size: 16px;
  line-height: 1.6;
}

main {
  overflow: clip;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, summary {
  font: inherit;
  color: inherit;
}

button, a, summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
}

button, a, summary {
  touch-action: manipulation;
}

button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, .footer-wordmark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

h1, h2 {
  letter-spacing: -0.065em;
}

h2 {
  font-size: clamp(38px, 4.35vw, 64px);
  line-height: 1.09;
}

h1 em, h2 em {
  font-style: normal;
  color: var(--accent);
}

.shell {
  width: min(1280px, calc(100% - 112px));
  margin-inline: auto;
}

.section-space {
  padding-block: 118px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
  z-index: 10;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.brand img {
  border-radius: 10px;
}

.nav-links, .header-actions, .language-links {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 28px;
  font-size: 13px;
}

.nav-links a, .footer-bottom a {
  transition: color 180ms;
}

.nav-links a:hover, .footer-bottom a:hover {
  color: var(--accent);
}

.header-actions {
  gap: 22px;
  font-size: 12px;
}

.language-links {
  gap: 8px;
}

.language-links a {
  min-height: 44px;
  display: grid;
  place-items: center;
}

.language-links a:not([aria-current]) {
  color: var(--muted);
}

.theme-toggle {
  border: 0;
  background: none;
  min-height: 44px;
  padding: 0 2px;
  font-size: 12px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 22px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 18px;
  font-weight: 700;
}

.nav-cta span {
  font-size: 21px;
  line-height: 1;
}

.mobile-menu {
  display: none;
}

.chapter-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
}

.chapter-nav a {
  width: 28px;
  height: 32px;
  display: grid;
  place-items: center;
}

.chapter-nav a::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--muted);
  border-radius: 50%;
  transition: height 250ms, background 250ms;
}

.chapter-nav a[aria-current]::before {
  height: 20px;
  background: var(--accent);
  border-radius: 4px;
}

.hero {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: min(730px, calc(100dvh - 140px));
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-block: 50px 42px;
}

.hero-copy .eyebrow {
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(68px, 7.1vw, 108px);
  line-height: 0.98;
}

.hero-description {
  color: var(--muted);
  font-size: 17px;
  max-width: 400px;
  line-height: 1.65;
  margin-top: 28px;
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 30px;
}

.button {
  min-height: 54px;
  border-radius: 8px;
  padding: 14px 22px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 220ms, box-shadow 220ms;
}

.button span {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--accent), black 22%);
}

.button-primary:hover {
  box-shadow: 0 8px 0 color-mix(in srgb, var(--accent), black 22%);
}

.button-text {
  padding-inline: 4px;
  gap: 12px;
}

.hero-art {
  position: relative;
  align-self: stretch;
  min-width: 0;
  perspective: 1100px;
  isolation: isolate;
}

.hero-cart {
  position: absolute;
  z-index: 2;
  width: 108%;
  max-width: none;
  right: -11%;
  top: 3%;
  height: 93%;
  object-fit: contain;
  transform: rotate(-7deg) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform 550ms cubic-bezier(0.2, 0.65, 0.3, 1);
  filter: drop-shadow(0 26px 20px var(--shadow));
}

.hero-route {
  position: absolute;
  left: 5%;
  bottom: -12%;
  width: 107%;
  height: 51%;
  border: 72px solid var(--accent-soft);
  border-left: 0;
  border-radius: 0 85px 85px 0;
  transform: rotateX(65deg) rotateZ(-25deg);
  opacity: 0.38;
  box-shadow: 10px 12px 0 color-mix(in srgb, var(--accent-soft), black 12%);
}

.hero-route span {
  position: absolute;
  width: 0;
  height: 0;
  top: -95px;
  left: -50px;
  border-top: 60px solid transparent;
  border-bottom: 60px solid transparent;
  border-right: 76px solid var(--accent-soft);
}

.hero-receipt {
  position: absolute;
  left: 3%;
  top: 17%;
  z-index: 1;
  width: 196px;
  padding: 24px 22px;
  background: var(--surface);
  box-shadow: 0 18px 35px var(--shadow);
  transform: rotate(-13deg);
  font-size: 11px;
  line-height: 1.5;
}

.hero-receipt > span:first-child {
  color: var(--muted);
}

.hero-receipt strong {
  display: block;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 8px 0 22px;
}

.hero-receipt > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block: 10px;
}

.hero-receipt i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.receipt-end {
  display: block;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  margin-top: 18px;
  font-size: 8px;
  letter-spacing: 1px;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  padding-block: 22px 24px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.hero-bottom a {
  display: flex;
  gap: 32px;
  align-items: center;
}

.hero-bottom a span {
  color: var(--accent);
  font-size: 22px;
}

.benefit-strip {
  display: grid;
  grid-template-columns: 1fr;
  border-block: 1px solid var(--line);
  margin-block: 0;
  padding: 36px 0;
  gap: 20px;
  list-style: none;
}

.benefit-strip li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.4;
}

.benefit-strip li > span {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, var(--paper));
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.benefit-strip strong {
  color: var(--ink);
}

.section-intro {
  max-width: 800px;
}

.section-intro p {
  max-width: 540px;
  margin-top: 22px;
  color: var(--muted);
}

.sorting-demo {
  display: grid;
  grid-template-columns: 0.85fr 0.34fr 1.2fr;
  align-items: center;
  max-width: 990px;
  margin: 68px auto 12px;
  padding-inline: 22px;
}

.unsorted-note {
  padding: 36px 34px 28px;
  background: var(--surface);
  transform: rotate(-5deg);
  box-shadow: 0 15px 30px var(--shadow);
  border-top: 6px solid var(--line);
}

.note-heading {
  font-weight: 700;
  font-size: 19px;
}

.unsorted-note ul {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
}

.unsorted-note li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.unsorted-note li::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-right: 12px;
}

.note-footer {
  display: block;
  font-size: 12px;
  margin-top: 24px;
  color: var(--muted);
}

.sorting-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.round-action {
  width: 62px;
  height: 62px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--accent), black 20%);
  font-size: 29px;
  transition: transform 220ms;
}

.round-action:hover {
  transform: translateX(4px);
}

.sorting-action > span {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.sorted-list {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transform: perspective(1000px) rotateY(-7deg) rotateZ(2deg);
  box-shadow: 9px 10px 0 var(--tint), 18px 24px 48px var(--shadow);
}

.demo-app-header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 20px;
}

.demo-app-header img {
  border-radius: 9px;
}

.demo-app-header strong {
  font-size: 16px;
}

.demo-app-header > span {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.demo-route {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-product {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 14px;
  transition: background 400ms;
}

.product-marker {
  width: 12px;
  height: 12px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  flex-shrink: 0;
}

.demo-product small {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}

.is-sorted [data-category="produce"] {
  background: color-mix(in srgb, #8eab74 24%, var(--surface));
}

.is-sorted [data-category="bakery"] {
  background: color-mix(in srgb, #daa751 24%, var(--surface));
}

.is-sorted [data-category="dairy"] {
  background: color-mix(in srgb, #87b1c9 24%, var(--surface));
}

.demo-result {
  font-size: 11px;
  margin-top: 18px;
  color: var(--muted);
  min-height: 18px;
}

.aisles {
  background: var(--tint);
}

.aisle-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 30px;
}

.aisle-copy > p {
  max-width: 370px;
  color: var(--muted);
  margin-top: 24px;
}

.aisle-tabs {
  display: flex;
  flex-direction: column;
  margin-top: 36px;
  max-width: 350px;
}

.aisle-tabs button {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  min-height: 61px;
  padding: 14px 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font-size: 15px;
  transition: color 250ms;
}

.aisle-tabs button > span {
  font-size: 11px;
  font-weight: 400;
}

.aisle-tabs button i {
  margin-left: auto;
  font-style: normal;
  opacity: 0;
  font-size: 24px;
  line-height: 1;
}

.aisle-tabs button[aria-selected="true"] {
  color: var(--accent);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

.aisle-tabs button[aria-selected="true"] i {
  opacity: 1;
}

.aisle-panel {
  height: 610px;
  position: relative;
  min-width: 0;
  isolation: isolate;
}

.aisle-floor {
  position: absolute;
  inset: 30% -5% 4% 0;
  background: var(--scene);
  border-radius: 24px;
  transform: perspective(800px) rotateX(51deg) rotateZ(-19deg);
  box-shadow: 0 14px 0 color-mix(in srgb, var(--scene), black 10%), 0 30px 34px var(--shadow);
}

.floor-route {
  position: absolute;
  inset: 30% 12% 13% 18%;
  border: 23px solid var(--accent-soft);
  border-left: 0;
  border-radius: 0 34px 34px 0;
  opacity: 0.7;
}

.floor-route::after {
  content: "";
  position: absolute;
  top: -35px;
  left: -20px;
  border-right: 38px solid var(--accent-soft);
  border-top: 23px solid transparent;
  border-bottom: 23px solid transparent;
}

.aisle-shelf {
  position: absolute;
  right: -7%;
  top: 0;
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter: drop-shadow(12px 22px 15px var(--shadow));
}

.aisle-cart {
  position: absolute;
  left: -2%;
  bottom: 8%;
  width: 72%;
  height: 64%;
  object-fit: contain;
  filter: drop-shadow(0 17px 12px var(--shadow));
}

.aisle-caption {
  position: absolute;
  bottom: -4%;
  right: 2%;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.aisle-caption strong {
  color: var(--ink);
  margin-right: 8px;
}

.voice {
  text-align: center;
}

.voice-top .eyebrow {
  margin-bottom: 24px;
  color: var(--muted);
}

.voice-top h2 {
  font-size: clamp(60px, 7vw, 104px);
}

.voice-top > p:last-child {
  margin: 20px auto 0;
  color: var(--muted);
}

.voice-example {
  margin-top: 54px;
}

.voice-wave {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.voice-wave i {
  width: 5px;
  height: 15px;
  background: var(--accent-soft);
  border-radius: 5px;
}

.voice-wave i:nth-child(3n) {
  height: 34px;
}

.voice-wave i:nth-child(4n) {
  height: 47px;
}

.voice-wave i:nth-child(5n) {
  height: 24px;
}

.spoken-sentence {
  font-size: clamp(32px, 4.3vw, 62px);
  line-height: 1.25;
  letter-spacing: -2px;
  margin: 25px 0 30px;
}

.button-dark {
  background: var(--ink);
  color: var(--paper);
}

.voice-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 65px;
  margin-top: 24px;
}

.voice-result span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  background: var(--surface);
}

.voice-result span::before {
  content: "✓";
  color: var(--accent);
}

.demo-note {
  color: var(--muted);
  font-size: 11px;
}

.voice-example.is-playing .voice-wave i {
  animation: voice-wave 500ms ease-in-out alternate infinite;
}

.voice-example.is-playing .voice-wave i:nth-child(2n) {
  animation-delay: -300ms;
}

.voice-example.is-playing .voice-wave i:nth-child(3n) {
  animation-delay: -150ms;
}

@keyframes voice-wave {
  to {
    transform: scaleY(0.3);
  }
}

.app-section {
  background: var(--tint);
}

.app-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9%;
  align-items: center;
}

.app-product {
  perspective: 1200px;
  position: relative;
  /* Keep the phone anchored when the accordion changes the grid row height. */
  align-self: start;
  min-height: 670px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-product::before {
  content: "";
  position: absolute;
  inset: 16% 0 13%;
  border: 2px solid var(--line);
  border-radius: 50%;
  transform: rotate(-30deg);
}

.app-phone {
  width: 290px;
  border: 7px solid #383a35;
  border-radius: 36px;
  background: #383a35;
  transform: rotate(-7deg) rotateY(var(--tilt-x, -9deg)) rotateX(var(--tilt-y, 3deg));
  box-shadow: 10px 10px 0 #64685d, 25px 35px 45px var(--shadow);
  overflow: hidden;
  transition: transform 500ms;
}

.app-phone img {
  width: 100%;
  height: auto;
  border-radius: 27px;
}

.app-caption {
  position: absolute;
  left: 15%;
  bottom: -8px;
  font-size: 12px;
  color: var(--muted);
}

.app-copy h2 {
  font-size: clamp(38px, 3.7vw, 55px);
}

.app-copy > p {
  color: var(--muted);
  margin-top: 24px;
  max-width: 450px;
}

.feature-details {
  margin-top: 34px;
}

.feature-details details {
  border-bottom: 1px solid var(--line);
}

.feature-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  list-style: none;
  cursor: pointer;
  padding: 21px 0;
  font-size: 15px;
  font-weight: 700;
}

.feature-details summary::-webkit-details-marker {
  display: none;
}

.feature-details summary span {
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  transition: transform 220ms;
}

.feature-details details[open] summary span {
  transform: rotate(45deg);
}

.feature-details details > p {
  padding: 0 26px 22px 0;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 7px;
  margin-top: 34px;
  font-size: 14px;
  font-weight: 700;
}

.text-link span {
  color: var(--accent);
}

.closing {
  position: relative;
  text-align: center;
  padding-block: 92px 110px;
}

.closing-cart {
  width: 250px;
  height: 170px;
  object-fit: contain;
  margin: 0 auto 24px;
  transform: rotate(-7deg);
  filter: drop-shadow(0 13px 15px var(--shadow));
}

.closing h2 {
  font-size: clamp(52px, 6vw, 88px);
  margin-top: 22px;
}

.closing > p:not(.eyebrow) {
  margin-top: 24px;
  color: var(--muted);
}

.closing .button-row {
  justify-content: center;
}

.footer-wordmark {
  font-size: clamp(68px, 13.7vw, 198px);
  letter-spacing: -0.085em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.2;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.footer-wordmark span {
  color: var(--accent);
  font-size: 0.8em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 28px;
  font-size: 11px;
  color: var(--muted);
}

.footer-bottom nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

/* Scroll-linked depth is enhancement only; the complete page stays visible without it. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-cart {
      animation: cart-depart linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
    @keyframes cart-depart {
      to {
        translate: 80px 95px;
        rotate: 8deg;
      }
    }
  }
}

@media (min-width: 1000px) and (max-height: 800px) {
  .hero-grid {
    min-height: 630px;
  }
  .hero h1 {
    font-size: clamp(70px, 6.7vw, 98px);
  }
}

@media (max-width: 1150px) {
  .shell {
    width: calc(100% - 80px);
  }
  .nav-links {
    gap: 18px;
  }
  .header-actions {
    gap: 15px;
  }
  .hero h1 {
    font-size: 8vw;
  }
  .hero-grid {
    min-height: 650px;
  }
  .hero-receipt {
    left: -2%;
    top: 15%;
    width: 170px;
  }
  .hero-art .hero-cart {
    right: -9%;
    width: 111%;
    top: 9%;
    height: 86%;
  }
  .aisle-panel {
    height: 530px;
  }
  .aisle-caption strong {
    display: block;
  }
  .app-layout {
    gap: 6%;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 8.7vw;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-receipt {
    display: none;
  }
  .hero-art .hero-cart {
    width: 125%;
    right: -20%;
  }
  .hero-bottom {
    font-size: 11px;
  }
  .sorting-demo {
    grid-template-columns: 0.85fr 0.28fr 1.1fr;
    padding-inline: 0;
  }
  .unsorted-note {
    padding: 28px 22px;
  }
  .sorted-list {
    padding: 17px;
  }
  .demo-product {
    padding: 11px 9px;
    gap: 8px;
    font-size: 12px;
  }
  .demo-product small {
    font-size: 9px;
  }
  .sorting-action > span {
    max-width: 70px;
  }
  .aisle-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 18px;
  }
  .aisle-panel {
    height: 480px;
  }
  .aisle-tabs button {
    font-size: 13px;
    gap: 12px;
  }
  .app-phone {
    width: 255px;
  }
  .app-product {
    min-height: 580px;
  }
  .app-copy h2 {
    font-size: 37px;
  }
  .feature-details summary {
    font-size: 13px;
  }
  .footer-bottom {
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 84px;
  }
  .shell {
    width: calc(100% - 40px);
  }
  .section-space {
    padding-block: 76px;
  }
  .site-nav {
    min-height: 70px;
    gap: 12px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .header-actions {
    gap: 13px;
  }
  .header-actions .language-links, .nav-cta {
    display: none;
  }
  .theme-toggle {
    padding-inline: 5px;
  }
  .mobile-menu {
    display: block;
  }
  .mobile-menu summary {
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    cursor: pointer;
  }
  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .mobile-menu summary > span {
    display: block;
    width: 21px;
    height: 2px;
    background: var(--ink);
  }
  .mobile-menu nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 28px var(--shadow);
  }
  .mobile-menu nav a {
    padding: 13px 8px;
    font-size: 16px;
  }
  .chapter-nav {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-copy {
    padding-block: 43px 0;
  }
  .hero-copy .eyebrow {
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-bottom: 22px;
  }
  .hero h1 {
    font-size: clamp(61px, 16.4vw, 106px);
    line-height: 0.98;
  }
  .hero h1 {
    max-width: 510px;
  }
  .hero-description {
    font-size: 14px;
    max-width: 340px;
    margin-top: 22px;
  }
  .hero .button-row {
    margin-top: 22px;
    gap: 16px;
  }
  .button {
    min-height: 51px;
    padding: 13px 18px;
    font-size: 12px;
    gap: 20px;
  }
  .button-text {
    padding-inline: 0;
    gap: 9px;
  }
  .hero-art {
    height: 390px;
    margin-top: 0;
  }
  .hero-art .hero-cart {
    right: -2%;
    top: -4%;
    width: 94%;
    height: 103%;
    transform: rotate(-7deg);
  }
  .hero-route {
    width: 93%;
    left: 8%;
    bottom: -8%;
    height: 50%;
    border-width: 45px;
  }
  .hero-route span {
    top: -58px;
    border-top-width: 36px;
    border-bottom-width: 36px;
    border-right-width: 50px;
  }
  .hero-receipt {
    display: block;
    top: 10%;
    left: 0;
    width: 132px;
    padding: 17px 14px;
    font-size: 8px;
  }
  .hero-receipt strong {
    font-size: 17px;
    margin-bottom: 14px;
  }
  .hero-receipt > div {
    margin-block: 7px;
  }
  .receipt-end {
    font-size: 6px;
    padding-top: 10px;
  }
  .hero-bottom {
    padding-block: 8px 24px;
  }
  .hero-bottom > span {
    display: none;
  }
  .hero-bottom a {
    justify-content: space-between;
    width: 100%;
  }
  .benefit-strip {
    gap: 16px;
    padding-block: 24px;
  }
  h2 {
    font-size: 39px;
  }
  .section-intro p {
    font-size: 14px;
  }
  .sorting-demo {
    grid-template-columns: 1fr;
    margin-top: 42px;
    padding-inline: 15px;
    gap: 26px;
  }
  .unsorted-note {
    padding: 22px;
    margin-right: 26px;
  }
  .unsorted-note ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 17px;
  }
  .unsorted-note li {
    font-size: 12px;
    padding-block: 8px;
  }
  .unsorted-note li::before {
    width: 9px;
    height: 9px;
    margin-right: 7px;
  }
  .note-heading {
    font-size: 17px;
  }
  .note-footer {
    margin-top: 14px;
  }
  .sorting-action {
    flex-direction: row;
    justify-content: center;
    gap: 18px;
  }
  .round-action {
    width: 50px;
    height: 50px;
    font-size: 25px;
  }
  .round-action span {
    display: block;
    transform: rotate(90deg);
  }
  .sorting-action > span {
    max-width: none;
    font-size: 12px;
  }
  .sorted-list {
    margin-left: 10px;
    padding: 19px;
    transform: rotate(2deg);
  }
  .demo-product {
    padding: 12px 9px;
    font-size: 13px;
  }
  .demo-product small {
    font-size: 9px;
  }
  .demo-app-header strong {
    font-size: 15px;
  }
  .aisle-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .aisle-copy > p {
    font-size: 14px;
    max-width: 360px;
  }
  .aisle-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    max-width: none;
    margin-top: 22px;
  }
  .aisle-tabs button {
    min-height: 58px;
    font-size: 12px;
    gap: 8px;
  }
  .aisle-tabs button i {
    font-size: 19px;
  }
  .aisle-panel {
    height: 385px;
  }
  .aisle-shelf {
    width: 78%;
    right: -3%;
    top: 4%;
  }
  .aisle-floor {
    inset: 33% 1% 5%;
  }
  .aisle-cart {
    left: -3%;
    bottom: 7%;
  }
  .aisle-caption {
    font-size: 11px;
    bottom: -4%;
  }
  .voice-top .eyebrow {
    font-size: 9px;
  }
  .voice-top h2 {
    font-size: 60px;
  }
  .voice-top > p:last-child {
    font-size: 14px;
  }
  .voice-top br {
    display: none;
  }
  .voice-example {
    margin-top: 38px;
  }
  .spoken-sentence {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .voice-result {
    gap: 7px;
  }
  .voice-result span {
    font-size: 12px;
    padding: 10px 12px;
    gap: 7px;
  }
  .app-layout {
    grid-template-columns: 1fr;
    gap: 54px;
  }
  .app-product {
    min-height: 580px;
    margin-inline: 10px;
  }
  .app-phone {
    width: 252px;
  }
  .app-caption {
    left: 10%;
    bottom: -10px;
  }
  .app-copy h2 {
    font-size: 40px;
  }
  .app-copy > p {
    font-size: 14px;
  }
  .feature-details summary {
    font-size: 14px;
  }
  .closing {
    padding-block: 68px;
  }
  .closing-cart {
    width: 210px;
    height: 145px;
  }
  .closing .eyebrow {
    font-size: 10px;
  }
  .closing h2 {
    font-size: clamp(40px, 10.6vw, 66px);
  }
  .closing > p:not(.eyebrow) {
    font-size: 14px;
  }
  .closing .button-row {
    flex-direction: column;
    gap: 13px;
  }
  .footer-wordmark {
    font-size: 15vw;
    padding-bottom: 20px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 18px;
  }
  .footer-bottom p {
    width: 100%;
  }
  .footer-bottom nav {
    gap: 14px;
  }
}

@media (max-width: 370px) {
  .shell {
    width: calc(100% - 32px);
  }
  .hero h1 {
    font-size: 16.1vw;
  }
  .hero-art {
    height: 340px;
  }
  .hero .button-row {
    gap: 12px;
  }
  .hero .button {
    font-size: 11px;
    gap: 13px;
  }
  .hero .button-primary {
    padding-inline: 13px;
  }
  .aisle-panel {
    height: 330px;
  }
  .demo-product {
    font-size: 12px;
  }
  .demo-product small {
    font-size: 8px;
  }
  .app-phone {
    width: 230px;
  }
  .app-product {
    min-height: 540px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-cart, .app-phone {
    translate: none !important;
  }
}
