/* Sushi public site and customer portal (plan 015). Palette, type and materials come from
   openbot/docs/design/sushi-rebrand.html: Nori is the default ground, Shari (light) follows the
   viewer's system. Fonts are the app's own bundled latin subsets (OFL, see /licenses). */

@font-face {
  font-family: "M PLUS 1";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/m-plus-1-latin.woff2") format("woff2");
}
@font-face {
  font-family: "M PLUS 1 Code";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/m-plus-1-code-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Dela Gothic One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dela-gothic-one-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --page: #070908;
  --page-line: rgba(214, 232, 220, 0.1);
  --canvas: #0f1311;
  --surface: #161b18;
  --raised: #1d231f;
  --pressed: #2b352e;
  --hover: rgba(226, 240, 230, 0.05);
  --line: rgba(214, 232, 220, 0.08);
  --line-strong: rgba(214, 232, 220, 0.15);
  --ink: #eeece5;
  --ink-2: #cfd3ce;
  --muted: #9aa39d;
  --dim: #6d766f;
  --sake: #ff7a5a;
  --sake-hover: #ff8f73;
  --sake-text: #ff9678;
  --sake-soft: rgba(255, 122, 90, 0.14);
  --on-sake: #1a0e0a;
  --wasabi: #a3c94b;
  --wasabi-text: #b8d86a;
  --wasabi-soft: rgba(163, 201, 75, 0.14);
  --tamago: #f2c14e;
  --tamago-text: #f5cf72;
  --tamago-soft: rgba(242, 193, 78, 0.14);
  --maguro-text: #ff7079;
  --maguro-soft: rgba(232, 67, 79, 0.15);
  --nori: #131915;
  --rice: #f4f1ea;
  --belt: #050706;
  --belt-raised: #121714;
  --plate-face: #1a201c;
  --win-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(214, 232, 220, 0.1);
  --card-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.6);
  --stage-glow: rgba(255, 196, 150, 0.08);
  --font-ui: "M PLUS 1", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --font-code: "M PLUS 1 Code", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-display: "Dela Gothic One", "M PLUS 1", system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --page: #e6e9e3;
    --page-line: rgba(20, 35, 27, 0.12);
    --canvas: #fafaf7;
    --surface: #ffffff;
    --raised: #f3f5f0;
    --pressed: #e5eae2;
    --hover: rgba(20, 35, 27, 0.045);
    --line: rgba(20, 35, 27, 0.09);
    --line-strong: rgba(20, 35, 27, 0.16);
    --ink: #141a16;
    --ink-2: #2f3732;
    --muted: #5b655e;
    --dim: #7f8882;
    --sake: #ec5b3c;
    --sake-hover: #f06b4e;
    --sake-text: #c4432a;
    --sake-soft: rgba(236, 91, 60, 0.11);
    --on-sake: #fff8f5;
    --wasabi: #6a9a22;
    --wasabi-text: #4c7410;
    --wasabi-soft: rgba(106, 154, 34, 0.12);
    --tamago: #e2a91a;
    --tamago-text: #8a6300;
    --tamago-soft: rgba(226, 169, 26, 0.16);
    --maguro-text: #b3202e;
    --maguro-soft: rgba(209, 47, 61, 0.1);
    --plate-face: #ffffff;
    --win-shadow: 0 50px 110px -40px rgba(30, 45, 35, 0.45), 0 0 0 1px rgba(20, 35, 27, 0.1);
    --card-shadow: 0 24px 60px -34px rgba(30, 45, 35, 0.35);
    --stage-glow: rgba(255, 226, 200, 0.6);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
canvas,
iframe {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
::selection {
  background: var(--sake-soft);
}
:focus-visible {
  outline: 2px solid var(--sake);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 50;
  background: var(--surface);
  padding: 8px 12px;
}
.wrap {
  width: min(100%, var(--wide));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow-wrap {
  width: min(100%, 560px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.mono {
  font-family: var(--font-code);
}
.eyebrow {
  font: 500 12px/1.4 var(--font-code);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sake-text);
  margin: 0 0 14px;
}
.muted {
  color: var(--muted);
}
.dim {
  color: var(--dim);
}
.small {
  font-size: 13px;
}
.center {
  text-align: center;
}

/* ───────── Top bar ───────── */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--page-line);
}
.bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-tile {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--nori);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 6px 16px -8px rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.logo-tile img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  object-position: 0 0;
}
.logo-word {
  font: 400 22px/1 var(--font-display);
  letter-spacing: -0.01em;
}
.logo-kanji {
  font-size: 10px;
  line-height: 1.05;
  writing-mode: vertical-rl;
  color: var(--dim);
  letter-spacing: 0.1em;
}
.bar-links {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.bar-links a,
.bar-actions a.quiet,
.bar-actions button.quiet {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.bar-links a:hover,
.bar-links a[aria-current="page"],
.bar-actions a.quiet:hover {
  color: var(--ink);
  background: var(--hover);
}
.bar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bar-actions form {
  margin: 0;
}
@media (max-width: 860px) {
  .bar-links {
    display: none;
  }
}

/* ───────── Buttons ───────── */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  background: var(--sake);
  color: var(--on-sake);
  font: 600 15px/1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--sake) 70%, transparent);
  white-space: nowrap;
}
.btn:hover {
  background: var(--sake-hover);
}
.btn:active {
  transform: translateY(1px);
}
.btn.sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}
.btn.lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn.ghost:hover {
  background: var(--hover);
}
.btn.quiet-btn {
  background: var(--raised);
  color: var(--ink);
  box-shadow: none;
}
.btn.quiet-btn:hover {
  background: var(--pressed);
}
.btn.danger {
  background: transparent;
  color: var(--maguro-text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--maguro-text) 40%, transparent);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn.block {
  width: 100%;
}
.linkish {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: var(--sake-text);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  padding: clamp(36px, 6vw, 72px) 0 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 720px;
  background: radial-gradient(ellipse 60% 55% at 50% 30%, var(--stage-glow), transparent 70%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  text-align: center;
  max-width: 1040px;
  margin-inline: auto;
}
.hero h1 {
  font: 400 clamp(38px, 6vw, 72px) / 1.04 var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.hero h1 .sake {
  color: var(--sake);
}
.hero-lede {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-2);
  max-width: 680px;
  margin: 24px auto 0;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--dim);
}
.hero-pieces {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 2vw, 18px);
  margin: 0 auto 26px;
}
.hero-pieces .piece {
  width: clamp(44px, 6vw, 64px);
  height: clamp(44px, 6vw, 64px);
}

/* A rendered piece: the baked still, then the live engine draws over it (data-drawn hides the still). */
.piece {
  position: relative;
  width: 56px;
  height: 56px;
  flex: none;
}
.piece .still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.piece canvas.still[data-drawn="1"] {
  background: none;
}

/* ───────── The window that holds the live app ───────── */
.stage {
  position: relative;
  margin: clamp(40px, 6vw, 72px) auto 0;
  width: min(100%, 1240px);
  padding-inline: var(--gutter);
}
.window {
  position: relative;
  border-radius: 16px;
  background: var(--canvas);
  box-shadow: var(--win-shadow);
  overflow: hidden;
}
.window-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
}
.window-bar .title {
  margin-inline: auto;
  font: 500 12px/1 var(--font-code);
  color: var(--dim);
  letter-spacing: 0.04em;
}
.window-bar .live-dot {
  font: 500 11px/1 var(--font-code);
  color: var(--wasabi-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.window-bar .live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wasabi);
  box-shadow: 0 0 0 4px var(--wasabi-soft);
}
.window-body {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 420px;
  max-height: 780px;
  width: 100%;
  background: var(--canvas);
}
.window-body > img,
.window-body > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: top left;
}
.window-body > iframe {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.window-body.ready > iframe {
  opacity: 1;
}
.window-body .launch {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--page) 70%, transparent));
  transition: opacity 0.4s var(--ease);
}
.window-body.ready .launch,
.window-body.loading .launch {
  opacity: 0;
  pointer-events: none;
}
.launch-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--card-shadow), inset 0 0 0 1px var(--line);
  text-align: center;
  max-width: 340px;
}
.launch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.window-body .spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  font: 500 12px/1 var(--font-code);
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.window-body.loading .spinner {
  opacity: 1;
}
.stage-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--dim);
}
@media (max-width: 720px) {
  .window-body {
    aspect-ratio: 4 / 5;
    min-height: 0;
  }
  .window-body > img {
    object-position: 8% top;
  }
}

/* ───────── The belt: plates carried slowly across ───────── */
.belt {
  position: relative;
  margin-top: clamp(48px, 7vw, 84px);
  height: 96px;
  background: var(--belt);
  border-block: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.belt::before,
.belt::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.belt::before {
  left: 0;
  background: linear-gradient(90deg, var(--belt), transparent);
}
.belt::after {
  right: 0;
  background: linear-gradient(270deg, var(--belt), transparent);
}
.belt-track {
  display: flex;
  gap: 28px;
  width: max-content;
  height: 100%;
  align-items: center;
  padding-left: 28px;
  animation: belt 60s linear infinite;
}
.belt-plate {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #22291f 0 54%, #151a16 55% 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.05), 0 8px 14px -8px rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
}
.belt-plate.sake {
  background: radial-gradient(circle at 50% 42%, #2a221e 0 54%, #3a2620 55% 100%);
}
.belt-plate.tamago {
  background: radial-gradient(circle at 50% 42%, #2a2719 0 54%, #3b3218 55% 100%);
}
.belt-plate .still {
  width: 58px;
  height: 58px;
  background-size: 700% 100%;
  background-repeat: no-repeat;
}
@keyframes belt {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .belt-track {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ───────── Sections ───────── */
.section {
  padding: clamp(64px, 10vw, 128px) 0;
  position: relative;
}
.section + .section {
  border-top: 1px solid var(--page-line);
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head.center {
  margin-inline: auto;
}
.section h2 {
  font: 400 clamp(30px, 4.4vw, 52px) / 1.06 var(--font-display);
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.section h2 .sake {
  color: var(--sake);
}
.section-head p {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-2);
  margin: 18px 0 0;
  text-wrap: pretty;
}

/* Team cards: a rendered piece and what that agent does for you. */
.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1000px) {
  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .team {
    grid-template-columns: 1fr;
  }
}
.member {
  background: var(--canvas);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: start;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.member:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--card-shadow);
}
.member .piece {
  grid-row: span 2;
  width: 64px;
  height: 64px;
}
.member h3 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 700;
}
.member p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.member .says {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--raised);
  font-size: 13.5px;
  color: var(--ink-2);
}
.member .says b {
  color: var(--ink);
  font-weight: 600;
}

/* Feature rows: copy beside a real render of the app. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.feature + .feature {
  margin-top: clamp(64px, 9vw, 112px);
}
.feature.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature.flip .feature-copy {
  order: 2;
}
.feature h3 {
  font: 400 clamp(24px, 3vw, 34px) / 1.12 var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}
.feature-copy p {
  color: var(--ink-2);
  margin: 16px 0 0;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
  font-size: 15px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--wasabi);
  border-bottom: 2px solid var(--wasabi);
  transform: rotate(-45deg);
}
.shot {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--win-shadow);
  background: var(--canvas);
}
.shot img {
  width: 100%;
  height: auto;
}
@media (max-width: 860px) {
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
  }
  .feature.flip .feature-copy {
    order: 0;
  }
}

/* Sushi World: a poster until the visitor steps inside. */
.world {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--win-shadow);
  aspect-ratio: 16 / 9;
  background: #0b0e0c center / cover no-repeat;
}
.world > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.world iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.world .enter {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(18px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 6, 0.82));
  color: #eeece5;
}
.world .enter p {
  margin: 0;
  max-width: 460px;
  font-size: 14px;
  color: rgba(238, 236, 229, 0.78);
}
.world.open .enter {
  display: none;
}
@media (max-width: 720px) {
  .world {
    aspect-ratio: 4 / 5;
  }
}

/* Steps for a server: ordered, delivered, yours. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}
.step {
  counter-increment: step;
  background: var(--canvas);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 24px;
}
.step::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sake-soft);
  color: var(--sake-text);
  font: 600 14px/1 var(--font-code);
  margin-bottom: 14px;
}
.step h3 {
  margin: 0;
  font-size: 18px;
}
.step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}
.steps + .feature {
  margin-top: clamp(56px, 8vw, 96px);
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ───────── Pricing ───────── */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 28px;
}
.plan.featured {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sake) 60%, transparent), var(--card-shadow);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sake) 7%, var(--canvas)), var(--canvas) 55%);
}
.plan .tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font: 500 11px/1 var(--font-code);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sake-text);
  background: var(--sake-soft);
  padding: 6px 8px;
  border-radius: 999px;
}
.plan h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}
.plan .blurb {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  min-height: 3.2em;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 22px 0 4px;
}
.price strong {
  font: 400 44px/1 var(--font-display);
  letter-spacing: -0.02em;
}
.price span {
  color: var(--muted);
  font-size: 14px;
}
.plan .ticks {
  margin: 18px 0 26px;
}
.plan .ticks li {
  font-size: 14.5px;
}
.plan form,
.plan .plan-action {
  margin-top: auto;
}
.fineprint {
  margin-top: 22px;
  color: var(--dim);
  font-size: 13px;
  text-align: center;
}

/* Downloads */
.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.download {
  background: var(--canvas);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 22px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.download h3 {
  margin: 0;
  font-size: 17px;
}
.download p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13.5px;
}
@media (max-width: 860px) {
  .downloads {
    grid-template-columns: 1fr;
  }
}

/* Private by design */
.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 28px;
}
.promise h3 {
  margin: 0;
  font-size: 17px;
}
.promise p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}
.promise::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--sake);
  margin-bottom: 16px;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin-inline: auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font: 400 24px/1 var(--font-ui);
  color: var(--dim);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 18px;
  color: var(--ink-2);
  max-width: 680px;
}

/* Closing call */
.closing {
  text-align: center;
  padding: clamp(72px, 10vw, 128px) 0;
}
.closing h2 {
  font: 400 clamp(32px, 5vw, 60px) / 1.04 var(--font-display);
  margin: 0;
  text-wrap: balance;
}
.closing p {
  color: var(--ink-2);
  margin: 18px auto 0;
  max-width: 560px;
}

/* Footer */
.foot {
  border-top: 1px solid var(--page-line);
  padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px));
  font-size: 13px;
  color: var(--dim);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
}

/* ───────── Forms: sign in, create account ───────── */
.auth {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 48px 0 72px;
}
.auth-card {
  width: min(100%, 440px);
  background: var(--canvas);
  border-radius: 24px;
  box-shadow: var(--card-shadow), inset 0 0 0 1px var(--line);
  padding: clamp(24px, 5vw, 40px);
}
.auth-card .piece {
  width: 72px;
  height: 72px;
  margin: -6px auto 10px;
}
.auth-card h1 {
  font: 400 30px/1.1 var(--font-display);
  margin: 0;
  text-align: center;
  letter-spacing: -0.01em;
}
.auth-card .sub {
  text-align: center;
  color: var(--muted);
  margin: 10px 0 26px;
  font-size: 15px;
}
.auth-switch {
  text-align: center;
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.auth-switch a {
  color: var(--sake-text);
}
.fields {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 6px;
}
.field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: 400 15px/1.4 var(--font-ui);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--sake) 70%, transparent);
  box-shadow: 0 0 0 4px var(--sake-soft);
}
.field .hint {
  font-size: 12.5px;
  color: var(--dim);
}
.field .error {
  font-size: 13px;
  color: var(--maguro-text);
}
.notice,
.alert {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 16px;
}
.notice {
  background: var(--wasabi-soft);
  color: var(--wasabi-text);
}
.alert {
  background: var(--maguro-soft);
  color: var(--maguro-text);
}
.warn {
  background: var(--tamago-soft);
  color: var(--tamago-text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 0 0 16px;
}

/* ───────── Portal (Manage) ───────── */
.portal {
  padding: clamp(28px, 5vw, 56px) 0 96px;
}
.portal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.portal-head h1 {
  font: 400 clamp(28px, 4vw, 40px) / 1.05 var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}
.portal-head p {
  margin: 8px 0 0;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  font-size: 14.5px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tabs a:hover {
  color: var(--ink);
}
.tabs a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--sake);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.panel {
  background: var(--canvas);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(18px, 3vw, 26px);
  min-width: 0;
}
.panel + .panel {
  margin-top: 16px;
}
.grid-2 > .panel + .panel {
  margin-top: 0;
}
.grid-2 + .panel,
.panel + .grid-2 {
  margin-top: 16px;
}
.panel h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.panel .panel-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.big-figure {
  font: 400 40px/1 var(--font-display);
  letter-spacing: -0.02em;
  margin: 10px 0 6px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 12px/1 var(--font-ui);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--muted);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill.ok {
  background: var(--wasabi-soft);
  color: var(--wasabi-text);
}
.pill.wait {
  background: var(--tamago-soft);
  color: var(--tamago-text);
}
.pill.bad {
  background: var(--maguro-soft);
  color: var(--maguro-text);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.actions form {
  margin: 0;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rows > li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.rows > li:first-child {
  border-top: 0;
}
.rows .grow {
  flex: 1;
  min-width: 0;
}
.rows .title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rows .meta {
  font-size: 13px;
  color: var(--muted);
}
.rows form {
  margin: 0;
}
.empty {
  color: var(--muted);
  font-size: 14.5px;
  padding: 8px 0;
  margin: 0;
}
.server-plate {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 50% 42%, var(--raised) 0 52%, var(--pressed) 53% 100%);
  display: grid;
  place-items: center;
  font: 600 13px/1 var(--font-code);
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
table.list {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.list th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 12.5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.list td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.list td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.code-box {
  font: 500 15px/1.5 var(--font-code);
  background: var(--raised);
  border-radius: 12px;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  user-select: all;
}
.choice {
  display: grid;
  gap: 10px;
}
.choice label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  background: var(--surface);
}
.choice label:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--sake);
  background: color-mix(in srgb, var(--sake) 5%, var(--surface));
}
.choice input {
  margin-top: 4px;
  accent-color: var(--sake);
}
.choice .grow {
  flex: 1;
}
.choice .price-tag {
  font-weight: 700;
  white-space: nowrap;
}
.continue {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}

/* Baked stills from the app's pieces engine: one 128px frame per mood (scripts/render-sushi-art.ts). */
.still-sake,
.still-tamago,
.still-maguro,
.still-kappa,
.still-ebi,
.still-uni,
.still-ikura,
.still-inari,
.still-saba,
.still-california {
  background-size: 700% 100%;
  background-repeat: no-repeat;
}
.still-sake {
  background-image: url("/assets/pieces/sake.webp");
}
.still-tamago {
  background-image: url("/assets/pieces/tamago.webp");
}
.still-maguro {
  background-image: url("/assets/pieces/maguro.webp");
}
.still-kappa {
  background-image: url("/assets/pieces/kappa.webp");
}
.still-ebi {
  background-image: url("/assets/pieces/ebi.webp");
}
.still-uni {
  background-image: url("/assets/pieces/uni.webp");
}
.still-ikura {
  background-image: url("/assets/pieces/ikura.webp");
}
.still-inari {
  background-image: url("/assets/pieces/inari.webp");
}
.still-saba {
  background-image: url("/assets/pieces/saba.webp");
}
.still-california {
  background-image: url("/assets/pieces/california.webp");
}
.mood-idle {
  background-position: 0.0% 0;
}
.mood-waiting {
  background-position: 16.6667% 0;
}
.mood-responded {
  background-position: 33.3333% 0;
}
.mood-failed {
  background-position: 50.0% 0;
}
.mood-connecting {
  background-position: 66.6667% 0;
}
.mood-asleep {
  background-position: 83.3333% 0;
}
.mood-working {
  background-position: 100.0% 0;
}
table.list a,
.rows .title a {
  color: var(--ink);
  text-decoration: none;
}
table.list a:hover,
.rows .title a:hover {
  color: var(--sake-text);
}
table.list td a {
  color: var(--sake-text);
}
details.confirm > summary {
  list-style: none;
}
details.confirm > summary::-webkit-details-marker {
  display: none;
}
details.confirm[open] > summary {
  display: none;
}
.member h3 .role {
  display: block;
  font: 500 12px/1.4 var(--font-code);
  letter-spacing: 0.04em;
  color: var(--dim);
  margin-top: 2px;
}

/* "See if Sushi fits" (SF-25): a call or a note, side by side. */
.talk {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px;
  align-items: stretch;
}
.talk-card {
  position: relative;
  background: var(--canvas);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(22px, 3.4vw, 34px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.talk-call {
  background: linear-gradient(180deg, color-mix(in srgb, var(--sake) 7%, var(--canvas)), var(--canvas) 60%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sake) 45%, transparent), var(--card-shadow);
}
.talk-call .piece {
  width: 72px;
  height: 72px;
  margin: -6px 0 6px -6px;
}
.talk-card h3 {
  font: 400 clamp(22px, 2.4vw, 28px) / 1.15 var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
}
.talk-card > p {
  color: var(--ink-2);
  margin: 10px 0 0;
}
.talk-call .ticks {
  margin: 20px 0 28px;
}
.talk-call .btn {
  margin-top: auto;
  align-self: flex-start;
}
.talk-note form {
  margin-top: 20px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.chips {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 0;
  margin-bottom: 8px;
}
.chips label {
  position: relative;
  cursor: pointer;
}
.chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.chips input:checked + span {
  box-shadow: inset 0 0 0 2px var(--sake);
  background: color-mix(in srgb, var(--sake) 8%, var(--surface));
  color: var(--ink);
}
.chips input:focus-visible + span {
  outline: 2px solid var(--sake);
  outline-offset: 3px;
}
.talk-note .btn {
  align-self: flex-start;
}
.talk-sent {
  margin: auto 0;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px 0;
}
.talk-sent .piece {
  width: 80px;
  height: 80px;
}
.talk-sent p {
  color: var(--ink-2);
  margin: 0;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .talk {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.talk-note .fields > .btn {
  justify-self: start;
  min-width: 180px;
}
@media (max-width: 560px) {
  .talk-note .fields > .btn {
    justify-self: stretch;
  }
}

/* Sushi Mobile (SF-34): real app screens in a phone body drawn here, three fanned. */
.phones {
  position: relative;
  height: clamp(420px, 46vw, 600px);
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  margin: 0;
  position: absolute;
  aspect-ratio: 9 / 20;
  height: 100%;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2a302c, #0b0d0c 40%, #161a17);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 26%;
  height: 22px;
  translate: -50% 0;
  border-radius: 999px;
  background: #050605;
  z-index: 2;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 38px;
  background: #0f1311;
}
.phone-front {
  z-index: 2;
}
.phone-back {
  height: 86%;
  opacity: 0.92;
  filter: saturate(0.9);
}
.phone-left {
  translate: -58% 4%;
  rotate: -5deg;
}
.phone-right {
  translate: 58% 4%;
  rotate: 5deg;
}
@media (max-width: 860px) {
  .phones {
    height: 520px;
  }
}
@media (max-width: 520px) {
  .phones {
    height: 440px;
    overflow: clip;
  }
  .phone-left {
    translate: -38% 6%;
  }
  .phone-right {
    translate: 38% 6%;
  }
}

/* The night shift (SF-35 "story"): two series, validated with the dataviz checks on both surfaces. */
:root {
  --series-agents: #e8573a;
  --series-you: #4a90d9;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --series-agents: #d9502f;
    --series-you: #2f78c4;
  }
}
.night {
  background: var(--canvas);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(18px, 3vw, 32px);
}
.night-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.night-stat {
  border-radius: 16px;
  background: var(--raised);
  padding: 18px;
}
.night-stat strong {
  display: block;
  font: 400 clamp(34px, 4vw, 48px) / 1 var(--font-display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.night-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.night-chart {
  margin: 0;
}
.night-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}
.night-plot {
  position: relative;
}
.night-plot svg {
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}
.night-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.night-tick,
.night-note {
  fill: var(--dim);
  font: 500 12px var(--font-code);
}
.night-lane {
  fill: var(--ink-2);
  font: 600 14px var(--font-ui);
}
.night-you,
.night-agents {
  stroke-width: 10;
  stroke-linecap: round;
}
.night-you {
  stroke: var(--series-you);
}
.night-off {
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-dasharray: 2 7;
  stroke-linecap: round;
}
.night-agents {
  stroke: var(--series-agents);
  opacity: 0.35;
}
.night-hit {
  fill: transparent;
  cursor: pointer;
}
.night-dot {
  fill: var(--series-agents);
  stroke: var(--canvas);
  stroke-width: 2;
  transition: opacity 0.5s var(--ease), r 0.3s var(--ease);
}
.night-mark:hover .night-dot,
.night-mark:focus-visible .night-dot {
  r: 9;
}
.night-mark:focus {
  outline: none;
}
.night-head {
  stroke: var(--ink);
  stroke-width: 2;
  opacity: 0;
}
.night.playing .night-head {
  opacity: 0.5;
}
.night.playing .night-mark:not(.on) .night-dot {
  opacity: 0;
}
.night-tip {
  position: absolute;
  z-index: 3;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--card-shadow), inset 0 0 0 1px var(--line-strong);
  font-size: 13px;
  color: var(--ink);
  pointer-events: none;
  translate: -50% calc(-100% - 14px);
}
.night-tip b {
  display: block;
  font: 500 12px var(--font-code);
  color: var(--muted);
  margin-bottom: 4px;
}
.night-feed {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.night-feed li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--raised);
  font-size: 13.5px;
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease);
}
.night-feed time {
  grid-row: span 2;
  font: 500 12px/1.6 var(--font-code);
  color: var(--muted);
  white-space: nowrap;
}
.night-feed b {
  font-weight: 700;
}
.night-feed span {
  color: var(--ink-2);
}
.night.playing .night-feed li:not(.on) {
  opacity: 0;
  translate: 0 6px;
}
.night-foot {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 13px;
}
.night-cta {
  margin-top: 28px;
}
@media (max-width: 900px) {
  .night-feed {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .night-stats {
    gap: 8px;
  }
  .night-stat {
    padding: 12px;
  }
  .night-stat strong {
    font-size: 26px;
  }
  .night-stat span {
    font-size: 12px;
  }
  /* The timeline keeps a readable size on a phone and scrolls sideways. */
  .night-plot {
    overflow-x: auto;
    margin-inline: -4px;
    padding: 0 4px 6px;
  }
  .night-plot svg {
    min-width: 720px;
  }
}
