@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/instrument-sans.woff2") format("woff2");
}

/*
  Tokens
  Dark base: icon field #486064
  Light accent: sleeve magenta
  Radius: 14px surfaces, pill buttons
  Stack: nav 20, menu 25, grain 1
*/
:root {
  color-scheme: dark;
  --bg: #2d4246;
  --ink: #e8f2f3;
  --muted: #c5d4d6;
  --brand: #486064;
  --accent: #8ec4c8;
  --line: #5a7377;
  --surface: #243538;
  --cta: #8ec4c8;
  --cta-text: #122022;
  --on-accent: #f3fbfb;
  --shadow: 18px 40px rgb(0 0 0 / 0.35);
  --radius: 14px;
  --radius-pill: 999px;
  --max: 1200px;
  --font: "Instrument Sans", "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3d0dc;
  --ink: #1f1520;
  --muted: #6b4a56;
  --brand: #c23b6e;
  --accent: #c23b6e;
  --line: #e0a8bc;
  --surface: #fff4f8;
  --cta: #c23b6e;
  --cta-text: #fff6f8;
  --on-accent: #fff6f8;
  --shadow: 18px 40px rgb(194 59 110 / 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 55% at 92% 12%, rgb(72 96 100 / 0.45), transparent 58%),
    radial-gradient(ellipse 45% 40% at 0% 28%, rgb(72 96 100 / 0.22), transparent 50%),
    var(--bg);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(ellipse 70% 55% at 92% 12%, rgb(194 59 110 / 0.32), transparent 58%),
    radial-gradient(ellipse 45% 40% at 0% 28%, rgb(194 59 110 / 0.16), transparent 50%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 30;
  padding: 0.5rem 0.8rem;
  background: var(--cta);
  color: var(--cta-text);
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site {
  position: relative;
  z-index: 2;
}

.icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  vertical-align: -0.15em;
}

.icon-apple {
  --icon: url("/images/icons/apple-logo.svg");
}

.icon-rows {
  --icon: url("/images/icons/rows.svg");
}

.icon-heart {
  --icon: url("/images/icons/heart.svg");
}

.icon-search {
  --icon: url("/images/icons/search.svg");
}

.icon-barcode {
  --icon: url("/images/icons/barcode.svg");
}

.icon-caret {
  --icon: url("/images/icons/caret-down.svg");
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--cta);
  color: var(--cta-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0 2rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 14ch;
}

.hero .lede {
  margin: 0 0 1.5rem;
  max-width: 42ch;
  font-size: 1.125rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  padding: 0.35rem 3rem 0.65rem 0.35rem;
}

.hero-stack {
  position: relative;
  width: min(100%, 15.5rem);
  aspect-ratio: 9 / 16;
}

.hero-shot {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-shot-back {
  z-index: 1;
  transform: translate(2.7rem, 0.4rem);
  opacity: 0.62;
}

.hero-shot-mid {
  z-index: 2;
  transform: translate(1.8rem, 0.27rem);
  opacity: 0.74;
}

.hero-shot-near {
  z-index: 3;
  transform: translate(0.9rem, 0.14rem);
  opacity: 0.88;
}

.hero-shot-front {
  z-index: 4;
  box-shadow: 0 var(--shadow);
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem 3rem;
    align-items: center;
    padding: 2.75rem 0 2.5rem;
  }

  .hero-visual {
    justify-content: flex-end;
    padding: 0.45rem 3.4rem 0.75rem 0.5rem;
  }

  .hero-stack {
    width: min(100%, 17rem);
  }

  .hero-shot-back {
    transform: translate(3.15rem, 0.45rem);
  }

  .hero-shot-mid {
    transform: translate(2.1rem, 0.3rem);
  }

  .hero-shot-near {
    transform: translate(1.05rem, 0.15rem);
  }
}

.section {
  padding: 4.5rem 0;
}

.hero + .section {
  padding-top: 1.25rem;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  max-width: 18ch;
}

.section p {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

.crate-grid {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tile-copy {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem 0.75rem;
}

.tile h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.tile-copy .icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.15rem;
}

.tile-copy p {
  margin: 0.35rem 0 0;
  max-width: none;
  font-size: 0.95rem;
}

.shot {
  display: block;
  width: min(100%, 14.5rem);
  max-height: 20rem;
  margin: 0.35rem auto 1.1rem;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.shot-pair {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem 1.1rem;
}

.shot-pair .shot {
  width: min(42%, 11.5rem);
  max-height: 18rem;
  margin: 0;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--bg);
}

.shot-flow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: var(--radius-pill);
  background: var(--cta);
  color: var(--cta-text);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.2);
}

.shot-flow-arrow {
  width: 1.15rem;
  height: 1.15rem;
  transform: rotate(-90deg);
  vertical-align: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .shot-flow-arrow {
    animation: flow-nudge 1.6s ease-in-out infinite;
  }
}

@keyframes flow-nudge {
  0%,
  100% {
    transform: rotate(-90deg) translateY(0);
  }

  50% {
    transform: rotate(-90deg) translateY(0.2rem);
  }
}

.tile-scan {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .crate-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tile-scan {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-right: 0.35rem;
  }

  .tile-scan .tile-copy {
    flex: 1 1 auto;
    max-width: 22rem;
    align-items: flex-start;
    padding: 1.5rem 0.5rem 1.5rem 1.5rem;
  }

  .tile-scan .shot-pair {
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
    align-items: center;
    gap: 0.45rem;
    padding: 1rem 1.1rem 1rem 0;
  }

  .tile-scan .shot-pair .shot {
    width: 13.5rem;
    max-height: 22rem;
  }

  .shot-flow {
    width: 2.4rem;
    height: 2.4rem;
  }
}

@media (min-width: 1100px) {
  .tile-scan .tile-copy {
    max-width: 24rem;
  }

  .tile-scan .shot-pair .shot {
    width: 15rem;
    max-height: 26rem;
  }
}

.faq-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary .icon-caret {
  transition: transform 0.2s ease;
}

.faq-list details[open] summary .icon-caret {
  transform: rotate(180deg);
}

.faq-list details p {
  margin: 0.7rem 0 0;
  max-width: none;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  color: var(--accent);
}

.theme-btn {
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
}

.legal {
  padding: 2.5rem 0 5rem;
}

.legal h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.legal .date {
  color: var(--muted);
  margin: 0 0 2rem;
}

.legal h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.legal p,
.legal li {
  max-width: 65ch;
  color: var(--ink);
}

.legal ul {
  padding-left: 1.2rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-visual {
    animation: rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
  }

  .reveal {
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-transparency: reduce) {
  body::before {
    display: none;
  }
}
