:root {
  --red: #ea1d2c;
  --red-dark: #b91520;
  --orange: #ff7a00;
  --yellow: #ffd166;
  --cream: #fff7f4;
  --surface: #ffffff;
  --surface-2: #fff1ee;
  --ink: #242124;
  --muted: #6f6260;
  --soft: #f5ece9;
  --line: rgba(36, 33, 36, 0.1);
  --shadow-sm: 0 10px 28px rgba(93, 30, 34, 0.08);
  --shadow-md: 0 22px 60px rgba(93, 30, 34, 0.12);
  --shadow-lg: 0 36px 110px rgba(93, 30, 34, 0.16);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 38px;
  --page: min(1480px, calc(100% - 56px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Nunito Sans", sans-serif;
  background:
    radial-gradient(circle at 85% 0%, rgba(234, 29, 44, 0.14), transparent 32%),
    linear-gradient(180deg, #fff5f2 0 520px, #fff 520px);
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  transition: 0.2s ease;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(234, 29, 44, 0.22);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: var(--page);
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 245, 242, 0.9);
  backdrop-filter: blur(18px);
}

.site-brand,
.site-nav {
  display: flex;
  align-items: center;
}

.site-brand {
  gap: 12px;
  color: var(--red);
  font-weight: 900;
}

.site-brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  mix-blend-mode: multiply;
  clip-path: inset(1px);
}

.site-nav {
  justify-content: center;
  gap: 34px;
  color: #574b49;
  font-size: 0.95rem;
  font-weight: 900;
}

.site-nav a:hover {
  color: var(--red);
}

.header-cta,
.primary-link,
.secondary-link,
.partner-form button,
.primary-button,
.add-button,
.ghost-button,
.danger-button {
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.header-cta,
.primary-link,
.partner-form button,
.primary-button,
.add-button {
  color: #fff;
  background: var(--red);
  box-shadow: 0 16px 34px rgba(234, 29, 44, 0.22);
}

.header-cta {
  padding: 13px 22px;
}

.header-cta:hover,
.primary-link:hover,
.partner-form button:hover,
.primary-button:hover,
.add-button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.app-shell {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  gap: 42px;
  padding: 56px 0 78px;
}

.desktop-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  grid-template-areas:
    "brand form"
    "copy form"
    "actions proof";
  align-items: end;
  gap: 22px 56px;
}

.brand-mark {
  grid-area: brand;
  width: 100px;
  height: 100px;
  object-fit: contain;
  mix-blend-mode: multiply;
  clip-path: inset(1px);
}

.desktop-rail > div:first-of-type {
  grid-area: copy;
}

.eyebrow {
  margin: 0 0 9px;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.7;
}

.desktop-rail h1,
.hero-card h2,
.page-title h2,
.section-heading h2,
.partner-form h2,
.section-copy h2,
.payment-panel h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.desktop-rail h1 {
  max-width: 920px;
  font-size: clamp(3.4rem, 5vw, 5.8rem);
}

.desktop-rail p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
}

.secondary-link,
.ghost-button {
  color: var(--red);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.secondary-link:hover,
.ghost-button:hover {
  color: var(--red-dark);
  background: #fff0ee;
}

.partner-form {
  grid-area: form;
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(234, 29, 44, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.partner-form h2 {
  font-size: 1.75rem;
}

.partner-form label,
.profile-form label,
.checkout-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.partner-form input,
.profile-form input,
.checkout-card input,
.unit-card select,
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.partner-form input,
.profile-form input,
.checkout-card input {
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.partner-form button {
  min-height: 50px;
}

.partner-form small {
  color: var(--muted);
  line-height: 1.45;
}

.proof-row {
  grid-area: proof;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.proof-row div {
  padding: 18px;
  border: 1px solid rgba(234, 29, 44, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
}

.proof-row strong,
.proof-row span {
  display: block;
}

.proof-row strong {
  color: var(--red);
  font-size: 1.35rem;
  font-weight: 900;
}

.proof-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.app-prototype {
  overflow: hidden;
  border: 1px solid rgba(234, 29, 44, 0.1);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 96% 0%, rgba(234, 29, 44, 0.08), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fff8f6 100%);
  box-shadow: var(--shadow-lg);
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.service-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(234, 29, 44, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.logo-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-symbol {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: contain;
  mix-blend-mode: multiply;
  clip-path: inset(1px);
}

.logo-lockup strong,
.logo-lockup small {
  display: block;
}

.logo-lockup strong {
  font-weight: 900;
}

.logo-lockup small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  min-width: 74px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(234, 29, 44, 0.22);
}

.cart-icon,
.search-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 12px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px 2px 4px 4px;
}

.cart-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 9px 0 0 currentColor;
}

.search-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--red);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(45deg);
}

.app-tabs {
  position: sticky;
  top: 78px;
  z-index: 20;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.app-tabs::-webkit-scrollbar,
.category-row::-webkit-scrollbar {
  display: none;
}

.app-tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #5f5250;
  background: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.app-tabs button:hover,
.delivery-options button:hover,
.payment-methods button:hover {
  border-color: rgba(234, 29, 44, 0.24);
  color: var(--red);
  background: #fff2ef;
}

.app-tabs button.active,
.delivery-options button.selected,
.payment-methods button.selected {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
  box-shadow: 0 12px 26px rgba(234, 29, 44, 0.18);
}

.view {
  display: none;
  padding: 32px;
  animation: viewIn 0.28s ease both;
}

.view.active {
  display: block;
}

@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#homeView.active {
  display: block;
}

.hero-card,
.loyalty-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  min-height: 310px;
  margin-bottom: 24px;
  padding: 36px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #e51526 0%, #d91d28 48%, #ff6b00 100%);
  box-shadow: var(--shadow-md);
}

.hero-card::after,
.loyalty-hero::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.42);
}

.hero-card h2 {
  position: relative;
  z-index: 2;
  max-width: 800px;
  font-size: clamp(3.2rem, 5vw, 5.4rem);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-card {
  grid-template-columns: minmax(0, 1fr) 50%;
  align-items: center;
}

.hero-card p,
.loyalty-hero p {
  max-width: 560px;
  margin: 14px 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

.hero-scroller {
  position: absolute;
  right: 0;
  top: -30%;
  bottom: -30%;
  width: 50%;
  display: flex;
  justify-content: center;
  transform: rotate(-12deg);
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  pointer-events: none;
}

.scroller-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scrollVertical 24s linear infinite;
}

.scroller-track img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  border: 4px solid rgba(255, 255, 255, 0.15);
}

@keyframes scrollVertical {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-50% - 10px)); }
}

.controls-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.9fr) minmax(240px, 0.8fr);
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.search-box,
.unit-card,
.quick-info span {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 18px;
}

.unit-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 12px 14px 12px 18px;
}

.unit-card .eyebrow {
  margin-bottom: 4px;
}

.unit-card select {
  font-weight: 900;
}

.ghost-button {
  min-height: 44px;
  padding: 0 16px;
  color: var(--red);
  background: #fff0ee;
  box-shadow: none;
  white-space: nowrap;
}

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

.quick-info span {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 62px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.quick-info strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.section-heading h2,
.page-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.section-heading span,
.text-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 900;
}

.text-button:hover {
  color: var(--red);
}

.category-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.category-card {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.category-card span:first-child {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--red);
  background: #fff0d9;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.category-card small {
  font-weight: 900;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(234, 29, 44, 0.22);
}

.category-card.selected {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.category-card.selected span:first-child {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.product-list,
.cart-list,
.coupon-grid {
  display: grid;
  gap: 18px;
}

.product-list {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.product-card {
  overflow: hidden;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-photo {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  border: 0;
  background: var(--surface-2);
}

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

.product-photo span {
  display: none;
  position: relative;
  z-index: 1;
  color: var(--red);
  font-weight: 900;
}

.product-info {
  display: grid;
  gap: 9px;
  padding: 16px;
}

.product-info h3 {
  margin: 0;
  font-size: 1.08rem;
}

.product-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 5px;
}

.price {
  color: var(--red-dark);
  font-weight: 900;
}

.add-button {
  min-height: 40px;
  padding: 0 15px;
}

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

.order-card,
.kitchen-card,
.checkout-card,
.privacy-card,
.profile-form,
.coupon-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.order-card,
.kitchen-card,
.checkout-card,
.privacy-card,
.profile-form {
  padding: 22px;
}

#ordersView.active,
#cartView.active,
#loyaltyView.active,
#profileView.active {
  max-width: 980px;
  margin: 0 auto;
}

.order-head,
.kitchen-item,
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.order-head {
  margin-bottom: 18px;
}

.order-head strong,
.order-head span,
.kitchen-item strong,
.kitchen-item span,
.cart-item strong,
.cart-item span {
  display: block;
}

.order-head span,
.cart-item span {
  color: var(--muted);
}

.status-badge {
  display: inline-flex !important;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--orange);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(36, 33, 36, 0.12);
  border-radius: 50%;
  background: #fff;
}

.timeline-item.done {
  color: var(--ink);
}

.timeline-item.done .timeline-dot {
  border-color: var(--red);
  background: var(--red);
}

.kitchen-card,
.privacy-card {
  margin-top: 16px;
}

.kitchen-item,
.cart-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.kitchen-item:last-child,
.cart-item:last-child {
  border-bottom: 0;
}

.loyalty-hero {
  display: block;
  min-height: 220px;
}

.loyalty-hero h2 {
  font-size: clamp(2.8rem, 5vw, 4.4rem);
}

.coupon-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 16px;
}

.coupon-card {
  padding: 20px;
  border-style: dashed;
}

.coupon-card strong {
  display: block;
  color: var(--red);
  font-size: 1.25rem;
}

.coupon-card span,
.privacy-card p {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.privacy-card h3,
.kitchen-card h3 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  color: var(--ink) !important;
}

.check-row input {
  width: 18px;
  min-height: auto;
  accent-color: var(--red);
}

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.delivery-options,
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.delivery-options button,
.payment-methods button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
}

.totals {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.totals span,
.totals strong {
  display: flex;
  justify-content: space-between;
}

.totals strong {
  font-size: 1.2rem;
}

.primary-button,
.danger-button {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
}

.danger-button {
  color: var(--red);
  background: #fff0ee;
}

.danger-button:hover {
  background: #ffe1dc;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--cream);
}

.quantity-control button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}

.empty-state {
  padding: 24px;
  border: 1px dashed rgba(36, 33, 36, 0.18);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
  background: #fff;
}

.modal {
  width: min(760px, calc(100% - 28px));
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.modal::backdrop {
  background: rgba(36, 24, 20, 0.48);
  backdrop-filter: blur(7px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 1.4rem;
}

.product-detail-photo {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface-2);
}

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

.product-detail-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.28));
}

.product-detail-photo span {
  display: none;
  position: relative;
  z-index: 1;
}

.product-detail-body,
.payment-panel {
  padding: 24px;
}

.product-detail-body h2 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.product-detail-body p {
  color: var(--muted);
}

.addons {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.addons label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.notice,
.payment-state {
  padding: 13px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--cream);
}

.payment-state {
  margin-bottom: 14px;
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  width: min(420px, calc(100% - 28px));
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow-md);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.landing-section {
  width: var(--page);
  margin: 0 auto 72px;
  padding: 48px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.section-copy {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-copy h2 {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.section-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.benefit-grid,
.flow-grid {
  display: grid;
  gap: 18px;
}

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

.benefit-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(234, 29, 44, 0.1);
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.benefit-grid span,
.flow-grid b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 900;
}

.benefit-grid span {
  color: #fff;
  background: var(--red);
}

.benefit-grid h3 {
  margin: 24px 0 8px;
  font-family: "Fraunces", serif;
  font-size: 1.55rem;
  line-height: 1;
}

.benefit-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.flow-section {
  color: #fff;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 255, 255, 0.18), transparent 26%),
    var(--red);
}

.flow-grid {
  grid-template-columns: repeat(4, 1fr);
}

.flow-grid div {
  display: grid;
  gap: 18px;
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
}

.flow-grid b {
  color: var(--red);
  background: #fff;
}

.flow-grid span {
  align-self: end;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.25;
}

@media (max-width: 1220px) {
  .product-list {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }

  .category-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .controls-panel {
    grid-template-columns: 1fr 1fr;
  }

  .quick-info {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1221px) {
  .controls-panel {
    grid-template-columns: minmax(360px, 1.25fr) minmax(360px, 1fr) minmax(320px, 0.9fr);
  }
}

/* Editorial polish: calmer, product-like and less generated. */
:root {
  --red: #d9232e;
  --red-dark: #a91620;
  --orange: #e86f1a;
  --cream: #faf4f1;
  --surface-2: #fbf6f3;
  --ink: #231f20;
  --muted: #756866;
  --line: rgba(35, 31, 32, 0.09);
  --shadow-sm: 0 8px 22px rgba(75, 35, 30, 0.06);
  --shadow-md: 0 18px 48px rgba(75, 35, 30, 0.09);
  --shadow-lg: 0 24px 70px rgba(75, 35, 30, 0.12);
}

body {
  background:
    linear-gradient(180deg, #fff8f6 0 420px, #fff 420px),
    #fff;
}

.site-header {
  min-height: 72px;
  background: rgba(255, 248, 246, 0.88);
}

.site-brand img,
.logo-symbol,
.brand-mark {
  box-shadow: none;
  border: 1px solid var(--line);
}

.header-cta,
.primary-link,
.partner-form button,
.primary-button,
.add-button,
.cart-pill {
  box-shadow: none;
}

.header-cta:hover,
.primary-link:hover,
.partner-form button:hover,
.primary-button:hover,
.add-button:hover {
  transform: none;
}

.app-shell {
  padding-top: 46px;
}

.desktop-rail {
  gap: 20px 48px;
}

.desktop-rail h1 {
  max-width: 820px;
  font-size: clamp(3.1rem, 4.3vw, 5rem);
  letter-spacing: -0.035em;
}

.desktop-rail p {
  max-width: 680px;
  margin-top: 14px;
  font-size: 1rem;
}

.partner-form,
.app-prototype,
.landing-section {
  box-shadow: var(--shadow-sm);
}

.partner-form {
  background: #fff;
}

.proof-row div {
  background: #fff;
  box-shadow: none;
}

.app-prototype {
  border-radius: 30px;
  background: #fff;
}

.topbar,
.app-tabs {
  background: #fff;
  backdrop-filter: none;
}

.app-tabs {
  top: 72px;
}

.app-tabs button {
  min-height: 40px;
  background: #fff;
}

.view {
  padding: 30px;
}

.hero-card,
.loyalty-hero {
  min-height: 270px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(217, 35, 46, 0.96), rgba(217, 35, 46, 0.9)),
    var(--red);
  box-shadow: none;
}

.hero-card::after,
.loyalty-hero::after {
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-card h2 {
  max-width: 720px;
  font-size: clamp(2.9rem, 4vw, 4.6rem);
  letter-spacing: -0.035em;
}

.hero-card p,
.loyalty-hero p {
  font-size: 1rem;
}

.hero-plate {
  width: 104px;
  height: 104px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
}

.controls-panel {
  border-radius: 24px;
  background: #fbf7f5;
  box-shadow: none;
}

.search-box,
.unit-card,
.quick-info span,
.category-card,
.product-card,
.order-card,
.kitchen-card,
.checkout-card,
.privacy-card,
.profile-form,
.coupon-card {
  box-shadow: none;
}

.search-box,
.unit-card,
.quick-info span {
  background: #fff;
}

.section-heading h2,
.page-title h2 {
  letter-spacing: -0.025em;
}

.category-card {
  min-height: 96px;
}

.category-card:hover,
.product-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.category-card span:first-child {
  background: #f6ebe6;
}

.product-card {
  border-radius: 22px;
}

.product-photo {
  min-height: 180px;
}

.product-info h3 {
  font-size: 1.02rem;
}

.product-info p {
  font-size: 0.88rem;
}

.landing-section {
  border: 1px solid var(--line);
}

.benefit-grid article {
  background: #fff;
}

.flow-section {
  background: #231f20;
}

@media (max-width: 980px) {
  :root {
    --page: calc(100% - 24px);
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    display: none;
  }

  .desktop-rail {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "copy"
      "actions"
      "form"
      "proof";
  }

  .desktop-rail h1 {
    font-size: clamp(3rem, 12vw, 4.8rem);
  }

  .proof-row,
  .benefit-grid,
  .flow-grid,
  .coupon-grid {
    grid-template-columns: 1fr;
  }

  .product-list {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
  }

  .controls-panel,
  .unit-card {
    grid-template-columns: 1fr;
  }

  .quick-info {
    grid-template-columns: 1fr;
  }

  .service-badge {
    display: none;
  }

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

@media (max-width: 640px) {
  .app-shell {
    padding-top: 32px;
  }

  .header-cta {
    display: none;
  }

  .view,
  .landing-section {
    padding: 20px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    min-height: 260px;
    padding: 26px;
  }

  .hero-card h2 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .hero-plate {
    display: none;
  }

  .category-row,
  .product-list {
    grid-template-columns: 1fr;
  }

  .logo-lockup small {
    display: none;
  }
}
