/*
 * aztuzlu.com (K-086): the brand site, in the design language the user set for it — Apple-like
 * product page, a warm stone light ground, one cinematic dark "studio" section, tile-red accent.
 * Its tokens are its own and live here, apart from the panel's (packages/design).
 */
:root {
  --bg-primary: #fbfbfd;
  --bg-secondary: #f4f3ef;
  --bg-dark: #0d0d0f;
  --bg-dark-card: #18181c;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-on-dark: #fbfbfd;
  --text-on-dark-soft: #a1a1a6;
  --accent-primary: #d94625;
  --accent-hover: #bf3b1d;
  --accent-trust: #0066cc;
  --border-subtle: rgba(29, 29, 31, 0.08);
  --border-strong: rgba(29, 29, 31, 0.16);
  --border-dark: rgba(251, 251, 253, 0.12);
  --paper: #fbf8f0;
  --paper-ink: #2b2620;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --move: 0.5s var(--ease);
  --font-sans:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-end: max(20px, env(safe-area-inset-right, 0px));
  --wide: 1180px;
  --nav: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font: 400 17px / 1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-trust);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent-trust);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--bg-primary);
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter) var(--gutter-end);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0 0 14px;
  font: 600 13px / 1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.display {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.lead {
  margin: 18px auto 0;
  max-width: 680px;
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.5;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* Buttons: pills, the tile red for the one main action. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.5s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  min-height: 60px;
  padding: 0 30px;
  background: var(--accent-primary);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--text-primary);
}

/* 0. Sticky glass bar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav);
  background: rgba(251, 251, 253, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition:
    background-color var(--move),
    border-color var(--move),
    color var(--move);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.wordmark {
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.04em;
}

.wordmark .dot {
  color: var(--accent-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-inline-start: auto;
}

.nav-login {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
}

.nav-start {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s var(--ease);
}

.nav-start:hover {
  background: var(--accent-primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.nav-sheet {
  display: none;
}

/* Over the dark studio the bar turns dark too, as on a product page. */
.nav.is-dark {
  background: rgba(13, 13, 15, 0.72);
  border-bottom-color: var(--border-dark);
  color: var(--text-on-dark);
}

.nav.is-dark .badge {
  border-color: var(--border-dark);
  color: var(--text-on-dark-soft);
}

.nav.is-dark .nav-start {
  background: var(--text-on-dark);
  color: var(--bg-dark);
}

.nav.is-dark .nav-toggle {
  border-color: var(--border-dark);
}

/* 1. Hero */
.hero {
  padding-block: clamp(56px, 9vw, 112px) clamp(56px, 7vw, 96px);
  text-align: center;
}

.pill {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin: 0 0 28px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.pill span + span::before {
  content: "·";
  margin-inline-end: 10px;
  color: var(--text-secondary);
}

.hero h1 {
  font-size: clamp(40px, 6.6vw, 72px);
}

.hero h1 .line {
  display: block;
}

.hero h1 .line + .line {
  color: var(--text-secondary);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.trust-line {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.trust-line .num {
  color: var(--text-primary);
}

/* The hero stage: the printed menu, the reading light, the phone. */
.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(64px, 160px) minmax(0, 1fr);
  align-items: center;
  max-width: 1040px;
  margin: clamp(48px, 7vw, 88px) auto 0;
  padding: clamp(24px, 4vw, 56px);
  border-radius: 36px;
  background: var(--bg-secondary);
  text-align: start;
}

.paper {
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
  padding: 28px 26px 24px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(43, 38, 32, 0.035) 27px 28px),
    var(--paper);
  color: var(--paper-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow:
    0 1px 0 rgba(43, 38, 32, 0.06),
    0 24px 40px -24px rgba(43, 38, 32, 0.45);
  transform: rotate(-2.5deg);
  overflow: hidden;
}

.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translateX(-120%);
  animation: read-sweep 4.8s var(--ease) infinite;
}

.paper-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
}

.paper-sub {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-align: center;
  opacity: 0.7;
}

.paper h3 {
  margin: 14px 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.paper ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.paper li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.9;
}

.paper li .name {
  flex: none;
}

.paper li .lead-dots {
  flex: 1;
  border-bottom: 1.5px dotted rgba(43, 38, 32, 0.4);
  transform: translateY(-4px);
}

.paper li .price {
  flex: none;
  font-weight: 700;
}

/* A price changed by pen: the reason paper menus age. */
.paper .pen {
  position: relative;
}

.paper .pen s {
  opacity: 0.5;
  text-decoration-color: #b8321a;
  text-decoration-thickness: 2px;
}

.paper .pen em {
  display: inline-block;
  margin-inline-start: 6px;
  font-style: normal;
  font-weight: 800;
  color: #b8321a;
  transform: rotate(-8deg) translateY(-1px);
}

.beam {
  position: relative;
  align-self: stretch;
  overflow: hidden;
}

.beam::before {
  content: "";
  position: absolute;
  inset-block: 18% 18%;
  inset-inline: 50% auto;
  width: 2px;
  background: linear-gradient(var(--border-strong), var(--accent-primary), var(--border-strong));
  opacity: 0.6;
}

.chip-flow {
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-primary);
  box-shadow: 0 8px 24px -12px rgba(29, 29, 31, 0.35);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  animation: chip-flow 4.8s var(--ease) infinite;
}

.chip-flow:nth-child(2) {
  animation-delay: 1.6s;
}

.chip-flow:nth-child(3) {
  animation-delay: 3.2s;
}

.chip-flow .num {
  color: var(--accent-primary);
}

/* Phones */
.phone {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 300 / 620;
  padding: 11px;
  border-radius: 52px;
  background: linear-gradient(145deg, #3a3a3e, #1a1a1d 40%, #2a2a2e);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 44px 80px -36px rgba(13, 13, 15, 0.55),
    0 18px 36px -20px rgba(13, 13, 15, 0.35);
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  inset-inline-start: 50%;
  z-index: 3;
  width: 92px;
  height: 26px;
  margin-inline-start: -46px;
  border-radius: 999px;
  background: #050506;
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 42px;
  background: var(--bg-primary);
}

.stage .phone {
  justify-self: start;
}

.status {
  display: flex;
  justify-content: space-between;
  padding: 16px 26px 0;
  font-size: 12px;
  font-weight: 700;
}

.urlbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 26px 14px 0;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(29, 29, 31, 0.06);
  font: 600 11px / 1 var(--font-mono);
  color: var(--text-primary);
}

.urlbar svg {
  width: 10px;
  height: 10px;
  flex: none;
}

/* The menu inside a phone, as the real menu page draws it, small. */
.menu {
  height: 100%;
  overflow: hidden;
  padding: 14px 14px 0;
}

.menu-head {
  padding: 4px 4px 10px;
}

.menu-head h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.menu-head p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--text-secondary);
}

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 4px 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

.langs span {
  padding: 3px 7px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
}

.langs span.on {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.tabs {
  display: flex;
  gap: 14px;
  margin: 0 -14px 8px;
  padding: 8px 18px;
  border-block: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}

.tabs span {
  color: var(--text-secondary);
}

.tabs span.on {
  color: var(--text-primary);
  box-shadow: 0 2px 0 var(--accent-primary);
}

.items {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.06);
}

.item img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
}

.item .what {
  min-width: 0;
}

.item .what b {
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.item .what small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-secondary);
}

.item .cost {
  font: 700 12px / 1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 2. Three steps, the phone holding still while they pass */
.steps {
  padding-block: clamp(72px, 10vw, 140px);
}

.steps-head {
  text-align: center;
}

.steps-head h2,
.section-title {
  font-size: clamp(34px, 5vw, 56px);
}

.steps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(40px, 6vw, 80px);
}

.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72vh;
  max-width: 520px;
  opacity: 0.32;
  transition: opacity var(--move);
}

.step.is-active {
  opacity: 1;
}

.step-num {
  font: 700 clamp(64px, 9vw, 112px) / 1 var(--font-mono);
  letter-spacing: -0.06em;
  color: var(--border-strong);
  transition: color var(--move);
}

.step.is-active .step-num {
  color: var(--accent-primary);
}

.step h3 {
  margin: 18px 0 0;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.step p {
  margin: 14px 0 0;
  font-size: 18px;
  color: var(--text-secondary);
}

.step .eyebrow {
  margin: 20px 0 0;
}

.steps-phone {
  position: sticky;
  top: calc(var(--nav) + 6vh);
  align-self: start;
  display: grid;
  justify-items: center;
  padding-top: 6vh;
}

.steps-phone .phone {
  width: min(100%, 320px);
}

.step-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity var(--move),
    transform var(--move);
}

.step-screen.is-on {
  opacity: 1;
  transform: none;
}

.step-inline {
  display: none;
}

/* Screen 1: the camera reading the paper */
.cam {
  height: 100%;
  background: #121214;
  color: var(--text-on-dark);
}

.cam-view {
  position: absolute;
  inset: 58px 18px 130px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 40%, #2b2b30, #121214 70%);
}

.cam-view .paper {
  width: 82%;
  padding: 16px 14px;
  font-size: 9px;
  transform: rotate(-4deg) scale(0.98);
}

.cam-view .paper::after {
  display: none;
}

.cam-view .paper h3 {
  margin: 8px 0 2px;
  font-size: 8px;
}

.cam-view .paper .paper-title {
  font-size: 10px;
}

.cam-view .paper .paper-sub {
  margin-bottom: 8px;
  font-size: 7px;
}

.cam-view .paper li {
  line-height: 1.7;
}

.corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid var(--text-on-dark);
}

.corner.tl {
  top: 14px;
  inset-inline-start: 14px;
  border-inline-end: 0;
  border-bottom: 0;
  border-start-start-radius: 10px;
}

.corner.tr {
  top: 14px;
  inset-inline-end: 14px;
  border-inline-start: 0;
  border-bottom: 0;
  border-start-end-radius: 10px;
}

.corner.bl {
  bottom: 14px;
  inset-inline-start: 14px;
  border-inline-end: 0;
  border-top: 0;
  border-end-start-radius: 10px;
}

.corner.br {
  bottom: 14px;
  inset-inline-end: 14px;
  border-inline-start: 0;
  border-top: 0;
  border-end-end-radius: 10px;
}

.scanline {
  position: absolute;
  inset-inline: 10%;
  top: 12%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-primary);
  box-shadow: 0 0 18px 4px rgba(217, 70, 37, 0.55);
  animation: scan 2.6s var(--ease) infinite alternate;
}

.cam-status {
  position: absolute;
  inset-inline: 0;
  bottom: 92px;
  text-align: center;
  font: 600 11px / 1.4 var(--font-mono);
  color: var(--text-on-dark-soft);
}

.cam-count {
  color: var(--text-on-dark);
}

.shutter {
  position: absolute;
  bottom: 26px;
  inset-inline-start: 50%;
  width: 58px;
  height: 58px;
  margin-inline-start: -29px;
  border: 4px solid var(--text-on-dark);
  border-radius: 50%;
  background: var(--text-on-dark);
  box-shadow: 0 0 0 4px #121214 inset;
}

/* Screen 2: one price, changed and published */
.edit {
  height: 100%;
  padding: 58px 16px 0;
  background: var(--bg-secondary);
}

.edit-title {
  margin: 0 4px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

.edit-card {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.06);
}

.edit-card img {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
}

.edit-name {
  display: block;
  margin-top: 12px;
  font-size: 15px;
}

.edit-label {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.edit-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 12px 14px;
  border: 2px solid var(--text-primary);
  border-radius: 12px;
  font: 700 22px / 1 var(--font-mono);
}

.edit-field .caret {
  width: 2px;
  height: 22px;
  background: var(--accent-primary);
  animation: blink 1s steps(1) infinite;
}

.typing .old {
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-inline-end: 8px;
  font-size: 15px;
}

.edit-go {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin-top: 14px;
  border-radius: 14px;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.toast {
  position: absolute;
  inset-inline: 22px;
  bottom: 30px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--text-primary);
  color: var(--text-on-dark);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  animation: toast 4s var(--ease) infinite;
}

/* Screen 3: the address and the QR code */
.publish {
  display: grid;
  align-content: start;
  justify-items: center;
  height: 100%;
  padding: 70px 22px 0;
  text-align: center;
}

.publish-qr {
  width: 172px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 40px -24px rgba(29, 29, 31, 0.5);
}

.publish-name {
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 800;
}

.publish-url {
  margin: 8px 0 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-secondary);
  font: 700 12px / 1 var(--font-mono);
}

.publish-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 20px;
  border-radius: 14px;
  background: var(--text-primary);
  color: var(--text-on-dark);
  font-size: 13px;
  font-weight: 700;
}

.publish-note {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--text-secondary);
}

/* 3. The dark studio */
.studio {
  position: relative;
  padding-block: clamp(96px, 12vw, 160px);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  text-align: center;
}

.studio::before,
.studio::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 140px;
  pointer-events: none;
}

.studio::before {
  top: -140px;
  background: linear-gradient(rgba(13, 13, 15, 0), var(--bg-dark));
}

.studio::after {
  bottom: -140px;
  background: linear-gradient(var(--bg-dark), rgba(13, 13, 15, 0));
}

.studio .eyebrow {
  color: #ef6a4c;
}

.studio .section-title {
  color: var(--text-on-dark);
}

.studio .lead {
  color: var(--text-on-dark-soft);
}

.compare {
  --pos: 50%;
  position: relative;
  max-width: 960px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 4 / 3;
  background: var(--bg-dark-card);
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, 0.8);
  user-select: none;
  touch-action: pan-y;
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare .raw {
  filter: brightness(0.75) contrast(0.85) saturate(0.7) blur(0.6px);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-label {
  position: absolute;
  top: 18px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(13, 13, 15, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-on-dark);
  font-size: 13px;
  font-weight: 600;
}

.compare-label.before {
  inset-inline-start: 18px;
}

.compare-label.after {
  inset-inline-end: 18px;
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: var(--pos);
  z-index: 2;
  width: 2px;
  margin-inline-start: -1px;
  background: var(--text-on-dark);
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: var(--text-on-dark);
  color: var(--bg-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.compare-handle svg {
  width: 22px;
  height: 22px;
}

.compare input {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare:has(input:focus-visible) .compare-handle {
  outline: 3px solid #ef6a4c;
  outline-offset: 3px;
}

.studio-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--text-on-dark-soft);
}

.studio-facts li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-end: 10px;
  border-radius: 50%;
  background: #ef6a4c;
  transform: translateY(-2px);
}

.studio-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-on-dark-soft);
  opacity: 0.8;
}

/* 4. Try it here */
.lab {
  padding-block: clamp(96px, 11vw, 150px) clamp(72px, 9vw, 120px);
  background: var(--bg-secondary);
}

.lab-head {
  text-align: center;
}

.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1000px;
  margin: clamp(40px, 6vw, 72px) auto 0;
}

.panel {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 28px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
}

.panel-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel > p {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.control {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.control-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.control-hint {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-secondary);
}

.price-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.stepper {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: transparent;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}

.stepper:hover {
  border-color: var(--text-primary);
}

.price-input {
  position: relative;
  flex: 1;
}

.price-input input {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 16px;
  border: 2px solid var(--text-primary);
  border-radius: 16px;
  background: #fff;
  font: 700 22px / 1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.price-input span {
  position: absolute;
  inset-inline-end: 16px;
  top: 50%;
  transform: translateY(-50%);
  font: 700 20px / 1 var(--font-mono);
  color: var(--text-secondary);
}

.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: start;
  cursor: pointer;
}

/* The real checkbox stays under its picture, so keyboards and screen readers get a checkbox. */
.switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-track {
  position: relative;
  flex: none;
  width: 58px;
  height: 34px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.18);
  transition: background-color 0.4s var(--ease);
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(29, 29, 31, 0.25);
  transition: transform 0.5s var(--ease);
}

.switch-input:checked + .switch-track {
  background: var(--accent-primary);
}

.switch-input:checked + .switch-track::after {
  transform: translateX(24px);
}

[dir="rtl"] .switch-input:checked + .switch-track::after {
  transform: translateX(-24px);
}

.switch-input:focus-visible + .switch-track {
  outline: 3px solid var(--accent-trust);
  outline-offset: 3px;
}

.lang-set {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.lang-set legend {
  padding: 0;
}

.lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lang-row button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.lang-row button[aria-pressed="true"] {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--bg-primary);
}

.lab-phone {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.lab-phone figcaption {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

.lab-phone figcaption .num {
  color: var(--text-primary);
  font-weight: 700;
}

.lab-phone .phone {
  width: min(100%, 330px);
}

.lab-menu .item {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
}

.lab-menu .item img {
  width: 58px;
  height: 58px;
}

.lab-menu .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.lab-menu .cost {
  position: relative;
  transition: color 0.5s var(--ease);
}

.lab-menu .approx {
  display: block;
  margin-top: 3px;
  font: 600 10px / 1.2 var(--font-mono);
  color: var(--text-secondary);
  text-align: end;
}

.lab-menu .sold-badge {
  display: none;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 10px;
  font-weight: 700;
  width: fit-content;
}

.lab-menu .item.is-sold .cost {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.lab-menu .item.is-sold img {
  filter: grayscale(0.8);
  opacity: 0.6;
}

.lab-menu .item.is-sold .sold-badge {
  display: block;
}

.lab-menu .item.is-fresh {
  box-shadow:
    0 0 0 2px var(--accent-primary),
    0 1px 2px rgba(29, 29, 31, 0.06);
}

.updated {
  position: absolute;
  inset-inline-end: 0;
  top: -22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-primary);
  color: #fff;
  font: 700 10px / 1 var(--font-sans);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
  pointer-events: none;
}

.item.is-fresh .updated {
  opacity: 1;
  transform: none;
}

.lab-menu .rate-note {
  margin: 10px 4px 0;
  font-size: 9px;
  color: var(--text-secondary);
}

/* 5. Trust */
.trust {
  padding-block: clamp(80px, 10vw, 140px);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 6vw, 64px);
}

.fact {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 26px;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  background: var(--bg-primary);
}

.fact-big {
  font: 700 clamp(40px, 4.6vw, 56px) / 1 var(--font-mono);
  letter-spacing: -0.05em;
  color: var(--text-primary);
}

.fact-big .unit {
  font-size: 0.42em;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.fact-title {
  margin: 22px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fact p {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--text-secondary);
}

/* 6. Pricing */
.pricing {
  padding-block: clamp(72px, 9vw, 120px) clamp(80px, 10vw, 140px);
  background: var(--bg-secondary);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: clamp(40px, 6vw, 64px) auto 0;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 40px);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  background: var(--bg-primary);
}

.plan.is-main {
  border-color: var(--text-primary);
  box-shadow: 0 30px 60px -40px rgba(29, 29, 31, 0.35);
}

.plan-tag {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 16px 0 0;
  font: 700 clamp(56px, 7vw, 76px) / 1 var(--font-mono);
  letter-spacing: -0.06em;
}

.plan-per {
  font: 600 18px / 1 var(--font-sans);
  letter-spacing: 0;
  color: var(--text-secondary);
}

.plan-sub {
  margin: 6px 0 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.plan ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}

/* biome-ignore lint/style/noDescendingSpecificity: a plan's own list, not an override */
.plan li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  font-size: 16px;
}

.plan li svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent-primary);
}

.plan p.plan-text {
  margin: 20px 0 0;
  font-size: 17px;
  color: var(--text-secondary);
}

.plan .btn {
  margin-top: auto;
}

/* 7. Questions */
.faq {
  padding-block: clamp(80px, 10vw, 140px);
}

.faq-list {
  max-width: 820px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  border-top: 1px solid var(--border-subtle);
}

.faq details {
  border-bottom: 1px solid var(--border-subtle);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 18px 4px;
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-inline-end: 2.5px solid var(--text-primary);
  border-bottom: 2.5px solid var(--text-primary);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.5s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(225deg) translate(-3px, -3px);
}

.faq .answer {
  overflow: hidden;
}

.faq .answer p {
  margin: 0;
  padding: 0 4px 26px;
  max-width: 680px;
  font-size: 17px;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  padding-block: 64px 36px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

/* biome-ignore lint/style/noDescendingSpecificity: the footer's own text */
.footer-brand p {
  margin: 12px 0 0;
  max-width: 300px;
  color: var(--text-secondary);
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer ul a {
  color: var(--text-primary);
}

.footer-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
}

/* biome-ignore lint/style/noDescendingSpecificity: the footer's own text */
.footer-strip p {
  margin: 0;
}

/* Appearing on the way down: up a little, from a touch smaller. */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

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

.reveal-late {
  transition-delay: 0.12s;
}

@keyframes read-sweep {
  0%,
  15% {
    transform: translateX(-120%);
  }
  70%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes chip-flow {
  0% {
    opacity: 0;
    transform: translate(-30%, -50%) scale(0.92);
  }
  18% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(60%, -50%) scale(1);
  }
}

@keyframes scan {
  from {
    top: 12%;
  }
  to {
    top: 86%;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes toast {
  0%,
  35% {
    opacity: 0;
    transform: translateY(10px);
  }
  45%,
  85% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: none;
  }
}

/* Narrower screens: one column, the phone after each step, no sticky stage. */
@media (max-width: 1000px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-login {
    display: none;
  }

  .nav-sheet.is-open {
    position: absolute;
    top: var(--nav);
    inset-inline: 0;
    display: grid;
    gap: 4px;
    padding: 10px var(--gutter-end) 18px var(--gutter);
    background: rgba(251, 251, 253, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
  }

  .nav-sheet a {
    display: flex;
    align-items: center;
    min-height: 48px;
    font-size: 17px;
    font-weight: 600;
    color: inherit;
  }

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

  .steps-phone {
    display: none;
  }

  .step {
    min-height: 0;
    max-width: none;
    margin-bottom: 64px;
    opacity: 1;
  }

  .step .step-num {
    color: var(--accent-primary);
  }

  .step-inline {
    display: grid;
    justify-items: center;
    margin-top: 28px;
  }

  .step-inline .phone {
    width: min(100%, 300px);
  }

  .step-inline .step-screen {
    position: absolute;
    opacity: 1;
    transform: none;
  }

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

  .lab-phone {
    order: -1;
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .badge {
    display: none;
  }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 8px;
    border-radius: 28px;
  }

  .paper {
    justify-self: center;
    width: min(100%, 320px);
  }

  .stage .phone {
    justify-self: center;
    width: min(100%, 280px);
  }

  .beam {
    height: 72px;
    width: 100%;
  }

  .beam::before {
    inset-block: 0;
    inset-inline: 50% auto;
    height: 100%;
  }

  .chip-flow {
    inset-inline-start: 50%;
    animation-name: chip-flow-down;
  }

  .compare {
    aspect-ratio: 3 / 4;
    border-radius: 22px;
  }

  .compare-label {
    top: 12px;
    font-size: 11px;
  }

  .compare-label.before {
    inset-inline-start: 12px;
  }

  /* The two labels would touch on a phone: the engine's goes to the bottom corner. */
  .compare-label.after {
    top: auto;
    bottom: 12px;
    inset-inline-end: 12px;
  }

  .trust-grid,
  .price-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-row .btn {
    width: 100%;
  }
}

@keyframes chip-flow-down {
  0% {
    opacity: 0;
    transform: translate(-50%, -140%);
  }
  20%,
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 60%);
  }
}

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

  *,
  *::before,
  *::after {
    /* biome-ignore lint/complexity/noImportantStyles: reduced motion must win over every animation */
    animation: none !important;
    /* biome-ignore lint/complexity/noImportantStyles: and over every transition */
    transition-duration: 0.01ms !important;
  }

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

  .chip-flow {
    display: none;
  }
}
