:root {
  color-scheme: light;
  --green: #0b7a3b;
  --green-dark: #075e2d;
  --green-deep: #063f20;
  --green-soft: #e8f5ee;
  --green-line: #c7e6d4;
  --canvas: #fafaf7;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #5b625d;
  --line: #dde2dd;
  --warning: #9a6800;
  --warning-soft: #fff5d6;
  --danger: #a12a2a;
  --danger-soft: #fff0ed;
  --gold: #8a6500;
  --shadow: 0 12px 36px rgba(16, 45, 28, 0.1);
  --nav-height: 76px;
  --header-height: 68px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.app-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  height: var(--app-height, 100dvh);
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 0%, rgba(11, 122, 59, 0.09), transparent 26%),
    var(--canvas);
}

.app-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: var(--header-height);
  padding: max(10px, env(safe-area-inset-top)) 16px 8px;
  border-bottom: 1px solid rgba(11, 122, 59, 0.09);
  background: rgba(250, 250, 247, 0.94);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  color: var(--green-deep);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-mark {
  display: grid;
  width: 36px;
  height: 28px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 8px 4px 8px 4px;
  font-size: 0.75rem;
  letter-spacing: -0.04em;
  transform: rotate(-2deg);
}

.business-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-width: 48px;
  min-height: 48px;
  max-width: 47%;
  padding: 5px 0 5px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
}

.business-switcher span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.business-switcher svg,
.icon-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.view-stack {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
  overflow: hidden;
}

.view {
  height: 100%;
  padding: 16px 16px 28px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  animation: view-in 160ms ease-out;
}

.view::-webkit-scrollbar {
  display: none;
}

.view[hidden] {
  display: none;
}

.view.has-sale-dock {
  padding-bottom: 112px;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bottom-nav {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  padding: 5px 5px max(5px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 24px rgba(16, 45, 28, 0.06);
}

.nav-item {
  display: flex;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border-radius: 14px;
  color: #626a64;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-item svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.8;
}

.nav-item.is-active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 5px;
  font-size: clamp(1.5rem, 7vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h3 {
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.subtle {
  color: var(--muted);
}

.page-intro {
  margin-bottom: 18px;
}

.page-intro p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-card,
.paper-card,
.delivery-card {
  border: 1px solid var(--line);
  border-radius: 22px 14px 22px 14px;
  background: var(--paper);
  box-shadow: 0 5px 18px rgba(18, 54, 31, 0.045);
}

.hero-card {
  position: relative;
  padding: 19px;
  overflow: hidden;
  border-color: var(--green-line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(232, 245, 238, 0.88)),
    var(--paper);
}

.hero-card::after {
  position: absolute;
  top: -25px;
  right: -20px;
  width: 92px;
  height: 92px;
  border: 18px solid rgba(11, 122, 59, 0.08);
  border-radius: 50%;
  content: "";
}

.hero-label {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-number {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(1.9rem, 9vw, 2.2rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-number.is-negative {
  color: var(--danger);
}

.hero-meta {
  position: relative;
  z-index: 1;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.chip-row {
  display: flex;
  gap: 8px;
  margin: 12px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.money-chip {
  min-width: max-content;
  padding: 7px 10px;
  border: 1px solid var(--green-line);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 750;
}

.section-block {
  margin-top: 22px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-note {
  color: var(--muted);
  font-size: 0.78rem;
}

.primary-button,
.secondary-button,
.quiet-button,
.danger-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 17px;
  border-radius: 15px 10px 15px 10px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 14px rgba(11, 122, 59, 0.18);
}

.primary-button:active {
  background: var(--green-dark);
  transform: translateY(1px);
}

.primary-button:disabled {
  border-color: #657169;
  background: #657169;
  box-shadow: none;
  cursor: not-allowed;
}

.secondary-button,
.quiet-button {
  border: 1px solid var(--green-line);
  background: var(--green-soft);
  color: var(--green-deep);
}

.quiet-button {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.danger-button {
  border: 1px solid #ecc8c2;
  background: var(--danger-soft);
  color: var(--danger);
}

.wide-button {
  width: 100%;
}

.button-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 17px;
  border-radius: 20px 12px 20px 12px;
  background: var(--green-deep);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-card p {
  margin: 3px 0 0;
  color: #d7eee0;
  font-size: 0.84rem;
}

.cta-card .primary-button {
  flex: 0 0 auto;
  border-color: #fff;
  background: #fff;
  color: var(--green-deep);
  box-shadow: none;
}

.alert-list,
.summary-list,
.expense-list,
.stock-list,
.business-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.alert-row,
.summary-row,
.expense-row,
.stock-row,
.business-row {
  display: grid;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.alert-row:last-child,
.summary-row:last-child,
.expense-row:last-child,
.stock-row:last-child,
.business-row:last-child {
  border-bottom: 0;
}

.alert-row {
  grid-template-columns: 10px 1fr auto;
}

.alert-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 4px var(--warning-soft);
}

.status-badge {
  display: inline-flex;
  width: max-content;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: #765000;
  font-size: 0.75rem;
  font-weight: 800;
}

.status-badge.is-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-badge.is-ok {
  background: var(--green-soft);
  color: var(--green-dark);
}

.delivery-card {
  padding: 16px;
  border-color: var(--green-line);
  background:
    linear-gradient(145deg, #fff, #f2fbf6);
}

.delivery-head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.delivery-symbol {
  font-size: 1.45rem;
  line-height: 1;
}

.delivery-card h2 {
  margin-bottom: 4px;
}

.delivery-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.delivery-confirmed {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  color: var(--green-dark);
  font-weight: 750;
}

.empty-state {
  padding: 24px 18px;
  border: 1px dashed #b9c5bc;
  border-radius: 18px 12px 18px 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-tile {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px 11px 18px 11px;
  background: var(--paper);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.product-tile.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green-soft);
}

.product-tile.has-warning {
  border-color: #dfb75d;
}

.product-add {
  display: flex;
  min-height: 74px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 13px;
  border: 0;
  background: transparent;
  text-align: left;
}

.product-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-price {
  color: var(--green-deep);
  font-size: 1.02rem;
  font-weight: 850;
}

.product-stock {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.product-stock.is-danger {
  color: var(--danger);
  font-weight: 800;
}

.quantity-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
}

.tile-stepper {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  min-height: 48px;
  border-top: 1px solid var(--green-line);
  background: var(--green-soft);
}

.tile-stepper button,
.tile-stepper span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font-weight: 850;
}

.tile-stepper button:first-child {
  border-right: 1px solid var(--green-line);
}

.tile-stepper button:last-child {
  border-left: 1px solid var(--green-line);
}

.sale-dock {
  position: absolute;
  z-index: 25;
  right: 10px;
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px);
  left: 10px;
  min-height: 72px;
  padding: 9px 9px 9px 15px;
  border-radius: 20px 13px 20px 13px;
  background: var(--green-deep);
  color: #fff;
  box-shadow: 0 14px 35px rgba(6, 63, 32, 0.28);
  transition: transform 180ms ease, opacity 180ms ease;
}

.sale-dock[hidden] {
  display: none;
}

.sale-dock-inner {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sale-dock strong {
  display: block;
  font-size: 1.2rem;
}

.sale-dock small {
  color: #cce7d5;
}

.sale-dock .primary-button {
  min-width: 112px;
  border-color: #fff;
  background: #fff;
  color: var(--green-deep);
  box-shadow: none;
}

.stock-category {
  margin-top: 18px;
}

.stock-category:first-of-type {
  margin-top: 0;
}

.stock-category-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stock-row {
  grid-template-columns: minmax(0, 1fr) auto 30px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.stock-row.is-low {
  margin: 0 -8px;
  padding-right: 8px;
  padding-left: 8px;
  border-radius: 12px;
  background: var(--warning-soft);
}

.stock-main {
  min-width: 0;
}

.stock-main strong,
.expense-main strong {
  display: block;
  overflow: hidden;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-main small,
.expense-main small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.stock-numbers {
  text-align: right;
}

.stock-numbers strong {
  display: block;
}

.stock-numbers small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.row-chevron {
  color: var(--muted);
  font-size: 1.35rem;
  text-align: right;
}

.expense-row,
.summary-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.money-column {
  min-width: 84px;
  font-weight: 800;
  text-align: right;
}

.summary-row.is-emphasis {
  margin: 0 -10px;
  padding: 13px 10px;
  border: 0;
  border-radius: 14px 9px 14px 9px;
  background: var(--green-soft);
  color: var(--green-deep);
}

.summary-label small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.result-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--green-line);
}

.result-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 0.84rem;
}

.result-line strong {
  color: var(--ink);
  text-align: right;
}

.closing-note {
  margin: 24px 0 14px;
  padding: 20px 17px;
  border-radius: 20px 12px 20px 12px;
  background: var(--green-deep);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.4;
}

.handling-credit {
  margin: 16px 0 3px;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.sheet-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-layer[hidden] {
  display: none;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 24, 18, 0.48);
  backdrop-filter: blur(3px);
}

.bottom-sheet {
  position: relative;
  width: min(100%, 620px);
  max-height: min(88vh, 760px);
  max-height: min(88dvh, 760px);
  padding: 8px 18px max(20px, env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 26px 26px 0 0;
  background: var(--canvas);
  box-shadow: 0 -14px 50px rgba(0, 0, 0, 0.18);
  animation: sheet-in 180ms ease-out;
}

@keyframes sheet-in {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
}

.sheet-handle {
  width: 42px;
  height: 5px;
  margin: 2px auto 16px;
  border-radius: 99px;
  background: #c3c9c4;
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.sheet-header h2 {
  margin: 2px 0 3px;
  font-size: 1.35rem;
}

.sheet-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.icon-button,
.text-button {
  display: inline-grid;
  min-width: 48px;
  min-height: 48px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-weight: 800;
}

.form-stack {
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field legend {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid #aeb8b0;
  border-radius: 13px 9px 13px 9px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.field input::placeholder {
  color: #646c66;
  opacity: 1;
}

.field-error {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 0.76rem;
  font-weight: 700;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  border-radius: 14px;
  background: #e6ebe7;
}

.segmented label {
  position: relative;
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 8px;
  border-radius: 11px;
  font-size: 0.78rem;
  text-align: center;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label:has(input:checked) {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 2px 8px rgba(16, 45, 28, 0.08);
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-button {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--green-line);
  border-radius: 18px 11px 18px 11px;
  background: #fff;
  color: var(--green-deep);
  font-weight: 850;
  text-align: left;
}

.payment-button small {
  color: var(--muted);
  font-size: 0.75rem;
}

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

.business-choice {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.business-initial {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px 8px 13px 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 850;
}

.business-choice strong,
.business-choice small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.business-choice small {
  margin-top: 3px;
  color: var(--muted);
}

.sheet-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.link-button {
  min-height: 48px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button.is-danger {
  color: var(--danger);
}

.install-banner {
  margin: 10px 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 10px 12px 14px;
  border: 1px solid var(--green-line);
  border-radius: 17px 11px 17px 11px;
  background: #fff;
  box-shadow: var(--shadow);
}

.install-banner[hidden] {
  display: none;
}

.install-banner strong {
  font-size: 0.84rem;
}

.install-banner p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.install-actions {
  display: flex;
  align-items: center;
}

.install-actions .text-button {
  min-width: auto;
  padding: 0 9px;
}

.toast {
  position: fixed;
  z-index: 150;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 12px 16px;
  border-radius: 13px 9px 13px 9px;
  background: var(--green-deep);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  font-weight: 750;
  text-align: center;
  transform: translateX(-50%);
}

.toast[hidden] {
  display: none;
}

.fatal-error {
  margin: 40px 16px;
  padding: 20px;
  border: 1px solid #ecc8c2;
  border-radius: 18px;
  background: var(--danger-soft);
  color: var(--danger);
}

@media (min-width: 560px) {
  .view {
    width: min(100%, 620px);
    margin: 0 auto;
    padding-right: 24px;
    padding-left: 24px;
  }

  .app-header {
    padding-right: max(24px, calc((100% - 620px) / 2));
    padding-left: max(24px, calc((100% - 620px) / 2));
  }

  .bottom-nav,
  .sale-dock {
    right: 50%;
    left: auto;
    width: min(100%, 620px);
    transform: translateX(50%);
  }

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

@media (max-width: 370px) {
  :root {
    font-size: 15px;
  }

  .app-header {
    padding-right: 11px;
    padding-left: 11px;
  }

  .wordmark {
    gap: 6px;
    font-size: 0.94rem;
  }

  .wordmark-mark {
    width: 32px;
  }

  .view {
    padding-right: 12px;
    padding-left: 12px;
  }

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-card .primary-button {
    width: 100%;
  }

  .nav-item {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
