/* Round 2, high-end: "Porcelain Counter".
   Soft Structuralism (porcelain page, diffused ambient shadows, massive Geist) with an asymmetrical
   bento. Every product screen sits in a double bezel: a hairline tray with a glass plate inside. */

:root {
  --bg: #f5f4f1;
  --bg-2: #ecebe6;
  --surface: #ffffff;
  --ink: #111413;
  --ink-2: #49504c;
  --ink-3: #7a817d;
  --hair: rgba(17, 20, 19, 0.07);
  --hair-2: rgba(17, 20, 19, 0.11);
  --shell: rgba(17, 20, 19, 0.032);
  --accent: #16604d;
  --accent-deep: #0c3e32;
  --accent-tint: #e1efe8;
  --amber: #8a5a00;
  --amber-tint: #fbf0d6;
  --night: #0e1211;

  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --r-md: 1.125rem;
  --bz: 0.5rem; /* bezel width */

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-soft: 0 1px 1px rgba(17, 20, 19, 0.03), 0 10px 24px -14px rgba(17, 20, 19, 0.1), 0 36px 72px -40px rgba(17, 20, 19, 0.14);
  --shadow-float: 0 1px 2px rgba(17, 20, 19, 0.04), 0 22px 48px -18px rgba(17, 20, 19, 0.2), 0 80px 140px -60px rgba(12, 62, 50, 0.32);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1360px;
  --sec: clamp(5.5rem, 10vw, 10rem);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
.copy-line { display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 999px;
}

.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 60;
  padding: 0.75rem 1.125rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.5s var(--ease);
}
.skip:focus { transform: none; }

main:focus { outline: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.ico { width: 1.125rem; height: 1.125rem; flex: none; }

/* ------------------------------------------------------------------ floating island nav */

.island-wrap {
  position: fixed;
  top: 1rem;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}
.island {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem;
  padding-left: 1rem;
  border-radius: 999px;
  background: rgba(250, 250, 248, 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 0 0 1px var(--hair), inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 32px -14px rgba(17, 20, 19, 0.22);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.island .brand { margin-right: 0.875rem; }
.brand-mark {
  position: relative;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 0.45rem;
  background: linear-gradient(150deg, #23826a 0%, var(--accent) 45%, var(--accent-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 10px -4px rgba(12, 62, 50, 0.6);
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 0.375rem;
  right: 0.375rem;
  bottom: 0.375rem;
  height: 0.1875rem;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.85);
}
.island-nav { display: flex; gap: 0.125rem; }
.island-nav a {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 450;
  white-space: nowrap;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.island-nav a:hover { background: rgba(17, 20, 19, 0.05); color: var(--ink); }

.preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--amber);
  background: var(--amber-tint);
  box-shadow: inset 0 0 0 1px rgba(138, 90, 0, 0.14);
  white-space: nowrap;
}
.preview-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

/* ------------------------------------------------------------------ buttons (island pills, button-in-button) */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 3.375rem;
  padding: 0.4375rem 0.4375rem 0.4375rem 1.5rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.975rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background-color 0.6s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-orb {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  transition: transform 0.7s var(--ease), background-color 0.6s var(--ease);
}
.btn-orb svg { width: 1rem; height: 1rem; }
.btn:hover .btn-orb { transform: translate(3px, -1px) scale(1.06); }
.btn-down:hover .btn-orb { transform: translateY(2px) scale(1.06); }

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 30px -14px rgba(17, 20, 19, 0.55);
}
.btn-dark:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 20px 40px -16px rgba(17, 20, 19, 0.6); }
.btn-dark .btn-orb { background: rgba(255, 255, 255, 0.12); }
.btn-dark:hover .btn-orb { background: var(--accent); }

.btn-light {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--hair), var(--shadow-soft);
}
.btn-light .btn-orb { background: rgba(17, 20, 19, 0.05); }

.btn-white {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}
.btn-white .btn-orb { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------------ pills, eyebrows, notes */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  width: max-content;
  max-width: 100%;
  padding: 0.4375rem 0.875rem 0.4375rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hair), 0 6px 16px -10px rgba(17, 20, 19, 0.2);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
}
.pulse {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .pulse::after { animation: pulse 2.6s var(--ease-out) infinite; }
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(3); opacity: 0; }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: rgba(17, 20, 19, 0.045);
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.lead {
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34rem;
}

.note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 34rem;
}
.note .ico { margin-top: 0.1rem; }

.orb {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #f3f2ee);
  box-shadow: 0 0 0 1px var(--hair), inset 0 1px 0 #fff, 0 8px 18px -10px rgba(17, 20, 19, 0.25);
}
.orb svg { width: 1.375rem; height: 1.375rem; }
.orb--lg { width: 3.75rem; height: 3.75rem; }
.orb--lg svg { width: 1.625rem; height: 1.625rem; }
.orb--sm { width: 2.25rem; height: 2.25rem; }
.orb--sm svg { width: 1.0625rem; height: 1.0625rem; }
.orb--amber { color: var(--amber); background: var(--amber-tint); box-shadow: 0 0 0 1px rgba(138, 90, 0, 0.14); }
.orb--green { color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px rgba(22, 96, 77, 0.16); }

/* ------------------------------------------------------------------ crops of the real screens (CSS only) */
/* A crop shows the rectangle (cx, cy, cw, ch), in the screenshot's own pixels, scaled to the box. */

.crop {
  --iw: 2560;
  --ih: 1600;
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--cw) / var(--ch);
  background: #eeebe5;
}
.crop > img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  width: calc(100% * var(--iw) / var(--cw));
  height: auto;
  transform: translate(calc(-100% * var(--cx) / var(--iw)), calc(-100% * var(--cy) / var(--ih)));
}
.crop--pay { --cx: 545; --cy: 371; --cw: 958; --ch: 516; }
.crop--pay-sheet { --cx: 540; --cy: 262; --cw: 970; --ch: 626; }
.crop--day { --cx: 0; --cy: 218; --cw: 1280; --ch: 588; }
.crop--offline-bar { --cx: 0; --cy: 137; --cw: 768; --ch: 77; }
.crop--receipt-ids { --cx: 556; --cy: 1190; --cw: 856; --ch: 180; }
.crop--receipts-row { --cx: 40; --cy: 254; --cw: 1030; --ch: 110; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(100svh, 64rem);
  padding: clamp(6.75rem, 6vw + 3rem, 7.5rem) var(--gutter) clamp(4.5rem, 6vw, 6rem);
  overflow-x: clip;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}
.hero::before {
  top: -12rem;
  right: -10rem;
  width: min(68rem, 110vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(22, 96, 77, 0.11), rgba(22, 96, 77, 0.03) 55%, transparent 72%);
}
.hero::after {
  bottom: -14rem;
  left: -16rem;
  width: min(52rem, 100vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(150, 160, 170, 0.16), transparent 70%);
}

.hero-grid {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: 1fr auto auto auto auto auto 1fr;
  column-gap: clamp(2.5rem, 5vw, 5rem);
}
.hero-grid > .status { grid-column: 1; grid-row: 2; margin-bottom: 1.75rem; }
.hero-title { grid-column: 1; grid-row: 3; }
.hero-text { grid-column: 1; grid-row: 4; }
.hero-actions { grid-column: 1; grid-row: 5; }
.hero-note { grid-column: 1; grid-row: 6; }
.hero-stage { grid-column: 2; grid-row: 1 / -1; align-self: center; }

.hero-title {
  font-size: clamp(2.375rem, 1rem + 3.5vw, 3.875rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.048em;
  color: var(--ink);
}
.hero-title .copy-line + .copy-line { margin-top: 0.12em; color: var(--ink-3); }
.hero-text {
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 31rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.hero-note {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hair);
  max-width: 30rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-3);
}
.hero-note .ico { margin-top: 0.05rem; width: 1rem; height: 1rem; }

.hero-stage { position: relative; }

/* the device: a double bezel around the real screen */
.device {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--r-xl);
  cursor: zoom-in;
  transition: transform 0.9s var(--ease);
}
.device:hover { transform: translateY(-4px); }
.device:focus-visible { border-radius: var(--r-xl); outline-offset: 6px; }
.bezel {
  display: block;
  padding: var(--bz);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.45));
  box-shadow: 0 0 0 1px var(--hair), inset 0 1px 0 #fff, var(--shadow-float);
}
.core {
  display: block;
  overflow: hidden;
  border-radius: calc(var(--r-xl) - var(--bz));
  box-shadow: 0 0 0 1px rgba(17, 20, 19, 0.1);
  background: #eeebe5;
}

.float-card {
  position: absolute;
  left: -2.75rem;
  bottom: -2.5rem;
  width: 41%;
  padding: 0.375rem;
  border-radius: 1.375rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 1px var(--hair), inset 0 1px 0 #fff, 0 2px 4px rgba(17, 20, 19, 0.05), 0 30px 60px -20px rgba(17, 20, 19, 0.32);
}
.float-card .crop {
  border-radius: 1rem;
  box-shadow: 0 0 0 1px var(--hair);
  background: #fff;
}

/* hero entrance: CSS only, nothing waits on the script */
@media (prefers-reduced-motion: no-preference) {
  .load { animation: rise 1.1s var(--ease) both; animation-delay: var(--d, 0ms); }
  .load-stage .device { animation: stage-in 1.4s var(--ease) 0.15s both; }
  .load-stage .float-card { animation: float-in 1.2s var(--ease) 0.75s both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(1.5rem); }
}
@keyframes stage-in {
  from { opacity: 0; transform: translateY(3rem) scale(0.97); }
}
@keyframes float-in {
  from { opacity: 0; transform: translate(-1rem, 1.5rem); }
}

/* ------------------------------------------------------------------ sections */

.section {
  padding: var(--sec) var(--gutter);
  scroll-margin-top: 4.5rem;
}
.section h2 {
  font-size: clamp(2rem, 1rem + 2.6vw, 3.25rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.042em;
  color: var(--ink);
}
.section h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.sec-head h2 { max-width: 15ch; }
.sec-head .lead { padding-bottom: 0.35rem; }

/* scroll reveals: added by the script only when motion is welcome */
.motion .reveal {
  opacity: 0;
  transform: translateY(2.25rem);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0ms);
}
.motion .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ product bento */

.product { padding-top: clamp(3.5rem, 6vw, 6rem); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.tile {
  grid-column: span 5;
  padding: var(--bz);
  border-radius: var(--r-xl);
  background: var(--shell);
  box-shadow: 0 0 0 1px var(--hair);
}
.tile-xl { grid-column: span 7; grid-row: span 2; }
.tile-core {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--r-xl) - var(--bz));
  background: var(--surface);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), var(--shadow-soft);
}
.tile-text { padding: 1.875rem 1.875rem 1.5rem; }
.tile-text p { margin-top: 0.5rem; color: var(--ink-2); max-width: 30rem; }

.tile-stage {
  flex: 1;
  display: grid;
  place-items: center;
  margin: 0 0.75rem 0.75rem;
  padding: clamp(1rem, 2.2vw, 2rem);
  border-radius: calc(var(--r-xl) - var(--bz) - 0.75rem);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(180deg, #f1f0ec, #e7e6e0);
  box-shadow: inset 0 0 0 1px var(--hair);
}
.shot {
  width: 100%;
  border-radius: 0.875rem;
  box-shadow: 0 0 0 1px rgba(17, 20, 19, 0.09), 0 2px 4px rgba(17, 20, 19, 0.04), 0 30px 60px -28px rgba(17, 20, 19, 0.35);
}
.tile-stage .shot { max-width: 46rem; }

.peek {
  margin-top: auto;
  padding-left: 1.875rem;
}
.peek .crop {
  border-top-left-radius: 0.875rem;
  box-shadow: 0 0 0 1px var(--hair-2), -12px -12px 40px -24px rgba(17, 20, 19, 0.25);
}

.caption {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* ------------------------------------------------------------------ standalone statement */

.independent { padding-top: 0; }
.statement {
  padding: var(--bz);
  border-radius: calc(var(--r-xl) + 0.5rem);
  background: var(--shell);
  box-shadow: 0 0 0 1px var(--hair);
}
.statement-core {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "orb ." "title text";
  gap: 2rem clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(22, 96, 77, 0.07), transparent 60%),
    var(--surface);
  box-shadow: inset 0 1px 1px #fff, var(--shadow-soft);
}
.section .statement-title {
  font-size: clamp(1.875rem, 1rem + 2.2vw, 2.875rem);
  line-height: 1.06;
}
.statement-title .copy-line + .copy-line { color: var(--accent); }
.statement-core .orb { grid-area: orb; }
.statement-title { grid-area: title; }
.statement-text { grid-area: text; color: var(--ink-2); font-size: 1.0625rem; max-width: 30rem; padding-bottom: 0.3rem; }

/* ------------------------------------------------------------------ split layouts */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split-text > * + * { margin-top: 1.5rem; }
.split-text .eyebrow + h2 { margin-top: 0; }
.split-text .orb + h2 { margin-top: 2rem; }
.split-text .btn { margin-top: 2.25rem; }
.sticky { position: sticky; top: 7rem; align-self: start; }

/* offline flow */
.offline { background: linear-gradient(180deg, transparent, rgba(236, 235, 230, 0.7) 18%, rgba(236, 235, 230, 0.7) 82%, transparent); }
.flow {
  padding: var(--bz);
  border-radius: var(--r-xl);
  background: var(--shell);
  box-shadow: 0 0 0 1px var(--hair);
}
.flow-step {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1rem, 2.4vw, 1.75rem);
  border-radius: calc(var(--r-xl) - var(--bz));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), var(--shadow-soft);
}
.flow-step--amber { background: linear-gradient(180deg, #fffaf0, #fdf5e3); }
.flow-step--green { background: linear-gradient(180deg, #f7fcf9, #eef7f2); }
.strip {
  border-radius: 0.75rem;
  box-shadow: 0 0 0 1px var(--hair-2), 0 10px 24px -16px rgba(17, 20, 19, 0.3);
}
.crop--offline-bar.strip { width: 72%; }
.crop--receipts-row.strip { width: 100%; }
.flow-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem clamp(1rem, 2.4vw, 1.75rem);
}
.flow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(138, 90, 0, 0.35), rgba(22, 96, 77, 0.45));
}

/* equipment */
.split--equip { align-items: start; }
.options { display: grid; gap: 1rem; }
.option {
  padding: var(--bz);
  border-radius: var(--r-xl);
  background: var(--shell);
  box-shadow: 0 0 0 1px var(--hair);
}
.option-core {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: calc(var(--r-xl) - var(--bz));
  background: var(--surface);
  box-shadow: inset 0 1px 1px #fff, var(--shadow-soft);
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
}
.option:hover .option-core { transform: translateY(-2px); }
.option-core p { margin-top: 0.5rem; color: var(--ink-2); }
.options .note { margin-top: 1rem; padding: 0 0.5rem; max-width: none; }

/* setup: a staircase, one step at a time */
.steps {
  list-style: none;
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.step {
  padding: var(--bz);
  border-radius: var(--r-xl);
  background: var(--shell);
  box-shadow: 0 0 0 1px var(--hair);
}
.step:nth-child(2) { margin-top: 2.5rem; }
.step:nth-child(3) { margin-top: 5rem; }
.step:nth-child(4) { margin-top: 7.5rem; }
.step-core {
  display: flex;
  flex-direction: column;
  min-height: 15rem;
  padding: 1.75rem;
  border-radius: calc(var(--r-xl) - var(--bz));
  background: var(--surface);
  box-shadow: inset 0 1px 1px #fff, var(--shadow-soft);
}
.step-num {
  font-size: 3rem;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.05em;
  color: rgba(17, 20, 19, 0.18);
  font-variant-numeric: tabular-nums;
  margin-bottom: auto;
  padding-bottom: 2.5rem;
}
.step:last-child .step-num { color: var(--accent); opacity: 0.55; }
.step-core p { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.9375rem; }

/* faq */
.split--faq { align-items: start; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.faq-shell {
  padding: var(--bz);
  border-radius: var(--r-xl);
  background: var(--shell);
  box-shadow: 0 0 0 1px var(--hair);
}
.faq-core {
  border-radius: calc(var(--r-xl) - var(--bz));
  background: var(--surface);
  box-shadow: inset 0 1px 1px #fff, var(--shadow-soft);
  padding: 0.5rem clamp(1.25rem, 3vw, 2.25rem);
}
.qa + .qa { border-top: 1px solid var(--hair); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
  border-radius: 0.75rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa-orb {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(17, 20, 19, 0.045);
  box-shadow: inset 0 0 0 1px var(--hair);
  transition: transform 0.7s var(--ease), background-color 0.6s var(--ease), color 0.6s var(--ease);
}
.qa-orb svg { width: 1rem; height: 1rem; }
.qa summary:hover .qa-orb { background: rgba(17, 20, 19, 0.08); }
.qa[open] .qa-orb { transform: rotate(45deg); background: var(--ink); color: #fff; }
.qa p {
  padding: 0 3.75rem 1.75rem 0;
  color: var(--ink-2);
  max-width: 44rem;
}
@media (prefers-reduced-motion: no-preference) {
  .qa[open] p { animation: rise 0.7s var(--ease) both; }
}

/* pilot: the dark island */
.pilot-shell {
  padding: var(--bz);
  border-radius: calc(var(--r-xl) + 0.5rem);
  background: var(--shell);
  box-shadow: 0 0 0 1px var(--hair);
}
.pilot-core {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2.25rem, 6vw, 6rem);
  border-radius: var(--r-xl);
  color: #fff;
  background:
    radial-gradient(70% 90% at 100% 100%, rgba(35, 130, 106, 0.42), transparent 65%),
    radial-gradient(60% 70% at 0% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
    var(--night);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 40px 90px -40px rgba(12, 62, 50, 0.6);
}
.pilot-text > * + * { margin-top: 1.5rem; }
.section .pilot-text h2 { color: #fff; max-width: 16ch; }
.pilot-text .lead { color: rgba(255, 255, 255, 0.72); }
.pilot-text .btn { margin-top: 2.25rem; }
.pilot-note { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.5); max-width: 30rem; }
.status--dark {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.status--dark .pulse, .status--dark .pulse::after { background: #5fd3a8; }

.kit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
  justify-self: end;
  width: min(100%, 22rem);
}
.kit-cell {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 1.5rem;
  color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.kit-cell svg { width: 38%; height: 38%; }
.kit-cell:nth-child(2) { transform: translateY(1.5rem); }
.kit-cell:nth-child(4) { transform: translateY(1.5rem); }

/* footer */
.footer {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--hair);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto;
  gap: 2rem;
  align-items: start;
}
.footer-brand p { margin-top: 0.875rem; color: var(--ink-2); max-width: 24rem; }
.footer-note { color: var(--ink-3); font-size: 0.875rem; max-width: 28rem; }
.preview-tag--foot { margin-left: 0; justify-self: start; width: max-content; }

/* ------------------------------------------------------------------ dialogs */

.dlg {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  max-width: none;
  max-height: none;
  overflow: visible;
}
.dlg::backdrop {
  background: rgba(14, 18, 17, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@media (prefers-reduced-motion: no-preference) {
  .dlg[open] { animation: dlg-in 0.7s var(--ease-out) both; }
  .dlg[open]::backdrop { animation: fade 0.5s var(--ease) both; }
}
@keyframes dlg-in {
  from { opacity: 0; transform: translateY(1.25rem) scale(0.97); }
}
@keyframes fade {
  from { opacity: 0; }
}
.dlg-shell {
  height: 100%;
  padding: var(--bz);
  border-radius: calc(var(--r-xl) + 0.25rem);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 50px 120px -30px rgba(0, 0, 0, 0.45);
}
.dlg-core {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: calc(var(--r-xl) + 0.25rem - var(--bz));
  background: var(--bg);
  box-shadow: inset 0 1px 1px #fff;
}

.dlg--demo {
  width: min(76rem, calc(100vw - 2rem));
  height: min(54rem, calc(100dvh - 2rem));
}
.dlg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem 1.875rem;
}
.dlg-head h2 {
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.close {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex: none;
  padding: 0.3125rem 0.3125rem 0.3125rem 1.125rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hair), 0 6px 16px -10px rgba(17, 20, 19, 0.25);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.6s var(--ease);
}
.close:active { transform: scale(0.97); }
.close .btn-orb { width: 2.125rem; height: 2.125rem; background: rgba(17, 20, 19, 0.05); }
.close:hover .btn-orb { transform: rotate(90deg); }

.tabs {
  display: flex;
  gap: 0.375rem;
  padding: 0 1.875rem 1.125rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  flex: none;
  scroll-snap-align: start;
  padding: 0.625rem 1.125rem 0.625rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 20, 19, 0.045);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tab-num {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  background: rgba(17, 20, 19, 0.06);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(17, 20, 19, 0.6);
}
.tab[aria-selected="true"] .tab-num { background: rgba(255, 255, 255, 0.14); }

.panels {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 1.875rem 1.5rem;
}
.panel { display: grid; gap: 1.5rem; }
.panel:focus-visible { border-radius: 1rem; }
.panel-text { color: var(--ink-2); max-width: 44rem; }
.panel .shot--tablet { width: min(100%, 48rem); }
@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) { animation: rise 0.6s var(--ease) both; }
}
.dlg-foot {
  padding: 0.875rem 1.875rem 1.125rem;
  border-top: 1px solid var(--hair);
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.dlg--kit { width: min(34rem, calc(100vw - 2rem)); }
.dlg-core--kit {
  padding: clamp(1.75rem, 5vw, 2.75rem);
  gap: 1.25rem;
  align-items: flex-start;
}
.dlg-core--kit h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.dlg-core--kit .btn { margin-top: 0.75rem; }
.kit--light {
  grid-template-columns: repeat(4, 3.25rem);
  width: auto;
  justify-self: start;
  gap: 0.5rem;
}
.kit--light .kit-cell {
  border-radius: 1rem;
  color: var(--accent);
  background: linear-gradient(180deg, #fff, #f3f2ee);
  box-shadow: 0 0 0 1px var(--hair), inset 0 1px 0 #fff;
  transform: none;
}
.kit--light .kit-cell svg { width: 46%; height: 46%; }

/* ------------------------------------------------------------------ narrower screens */

@media (max-width: 1100px) {
  .island-nav a { padding: 0.5rem 0.625rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(n) { margin-top: 0; }
  .step:nth-child(even) { margin-top: 2.5rem; }
}

@media (max-width: 900px) {
  .island-nav { display: none; }
  .island .brand { margin-right: 0.25rem; }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
  .hero { min-height: 0; }
  .hero-grid > *, .hero-grid > .status { grid-column: 1; grid-row: auto; }
  .hero-grid > .status { margin-bottom: 1.25rem; }
  .hero-stage { order: 1; margin-top: 1.75rem; }
  .hero-text { order: 2; }
  .hero-actions { order: 3; }
  .hero-note { order: 4; }
  .float-card { display: none; }

  .sec-head,
  .split,
  .split--faq,
  .pilot-core,
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-head { align-items: start; gap: 1.25rem; }
  .sticky { position: static; }

  .bento { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .tile, .tile-xl { grid-column: auto; grid-row: auto; }

  .kit { justify-self: start; width: min(100%, 16rem); }
}

@media (max-width: 640px) {
  :root { --r-xl: 1.625rem; --bz: 0.375rem; }
  .island { padding-left: 0.875rem; }
  .preview-tag { padding: 0.4375rem 0.75rem; }
  .hero { padding-top: 6rem; }
  .hero-text { margin-top: 1.75rem; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: 1.75rem; }
  .hero-actions .btn { justify-content: space-between; }
  .hero-note { margin-top: 1.75rem; }

  .tile-text { padding: 1.5rem 1.375rem 1.25rem; }
  .peek { padding-left: 1.375rem; }
  .tile-stage { margin: 0 0.5rem 0.5rem; padding: 1rem; }
  .statement-core { grid-template-columns: minmax(0, 1fr); grid-template-areas: "orb" "title" "text"; gap: 1.25rem; align-items: start; }
  .flow-step { padding: 0.625rem; gap: 0.5rem; }
  .flow-link { padding: 0.75rem 0.625rem; }

  .crop--offline-bar.strip { width: 100%; }
  .option-core { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .kit { width: min(100%, 12rem); gap: 0.625rem; }
  .kit-cell { border-radius: 1.125rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0.875rem; }
  .step:nth-child(n) { margin-top: 0; }
  .step-core { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 1rem; padding: 1.5rem; }
  .step-num { font-size: 1.75rem; padding-bottom: 0; margin-bottom: 0; }
  .step-core h3 { flex: 1; }
  .step-core p { flex-basis: 100%; }

  .qa summary { font-size: 1.0625rem; padding: 1.25rem 0; }
  .qa p { padding-right: 0; }

  .split-text .btn, .pilot-text .btn { width: 100%; justify-content: space-between; white-space: normal; }

  .dlg--demo { width: 100vw; height: 100dvh; }
  .dlg--demo .dlg-shell { padding: 0; border-radius: 0; }
  .dlg--demo .dlg-core { border-radius: 0; }
  .dlg-head { padding: 1rem 1rem 0.875rem 1.25rem; }
  .tabs { padding: 0 1.25rem 1rem; }
  .panels { padding: 0 1.25rem 1.25rem; }
  .dlg-foot { padding: 0.75rem 1.25rem 1rem; }
  .shot { border-radius: 0.625rem; }
}
