@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/DMSans-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  src: url("assets/fonts/DMSans-SemiBold.ttf") format("truetype");
}

:root {
  --background: #f9dcc4;
  --background-end: #fdf9f8;
  --brown: #44251c;
  --brown-pressed: #2f1a13;
  --orange: #eb5b25;
  --grey: #686868;
  --surface: #fdf9f8;
  --border: #f2b994;
  --danger: #b42318;
  --shadow: 0 24px 70px rgb(68 37 28 / 18%);
  color: #20110d;
  font-family: "DM Sans", Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: #eee9e6;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(235 91 37 / 28%);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.demo-stage {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 100vh;
  padding: 18px;
}

.demo-device {
  background: linear-gradient(160deg, var(--background), var(--background-end));
  border: 1px solid rgb(68 37 28 / 12%);
  border-radius: 28px;
  box-shadow: var(--shadow);
  height: min(920px, calc(100vh - 68px));
  max-width: 480px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.demo-banner {
  align-items: center;
  background: var(--brown);
  color: var(--surface);
  display: flex;
  font-size: 11px;
  font-weight: 600;
  height: 30px;
  justify-content: center;
  text-transform: uppercase;
}

.demo-banner span {
  border-left: 1px solid rgb(255 255 255 / 45%);
  margin-left: 8px;
  padding-left: 8px;
}

.app-root {
  height: calc(100% - 30px);
}

.reset-demo {
  background: transparent;
  border: 0;
  color: var(--grey);
  font-size: 12px;
  text-decoration: underline;
}

.brand-icon {
  background-color: currentColor;
  display: inline-block;
  height: 28px;
  mask-image: var(--icon);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 28px;
}

.button {
  align-items: center;
  border-radius: 8px;
  display: flex;
  font-weight: 600;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  position: relative;
  width: 100%;
}

.button-primary {
  background: var(--brown);
  border: 1px solid var(--brown);
  color: var(--surface);
}

.button-primary:hover {
  background: var(--brown-pressed);
}

.button-secondary {
  background: var(--surface);
  border: 1px solid var(--brown);
  color: var(--brown);
}

.button-arrow {
  font-size: 25px;
  font-weight: 400;
  position: absolute;
  right: 18px;
}

.small-primary,
.heading-button,
.logout-button {
  align-items: center;
  background: var(--brown);
  border: 0;
  border-radius: 8px;
  color: var(--surface);
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
}

.text-link,
.orange-link,
.inline-button,
.legal-copy button,
.inline-prompt button {
  background: transparent;
  border: 0;
  padding: 0;
}

.orange-link {
  color: var(--orange);
}

.auth-layout {
  background: linear-gradient(160deg, var(--background), var(--background-end));
  height: 100%;
  overflow: hidden;
}

.auth-scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 40px 22px max(22px, env(safe-area-inset-bottom));
  scrollbar-width: thin;
}

.auth-logo {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 290px;
  width: 68%;
}

.auth-intro {
  margin: 26px auto 2px;
  max-width: 390px;
  text-align: center;
}

.auth-intro h1,
.form-heading h1,
.success-panel h1,
.legal-page h1 {
  color: var(--brown);
  font-size: 31px;
  line-height: 1.12;
  margin: 0;
}

.auth-intro p,
.form-heading p {
  color: var(--grey);
  font-size: 17px;
  line-height: 1.35;
  margin: 8px 0 0;
}

.model-wrap {
  height: 390px;
  margin: 0 -96px;
  overflow: hidden;
  position: relative;
}

.model-halo {
  background: rgb(247 199 163 / 45%);
  border-radius: 50%;
  height: 340px;
  left: 50%;
  position: absolute;
  top: 44px;
  transform: translateX(-50%);
  width: 340px;
}

.model-image {
  height: 510px;
  left: 50%;
  object-fit: contain;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 660px;
}

.auth-panel {
  background: rgb(253 249 248 / 97%);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: -84px auto 0;
  max-width: 430px;
  padding: 28px 24px 22px;
  position: relative;
  z-index: 2;
}

.auth-actions,
.registration-form {
  display: grid;
  gap: 16px;
}

.compact-actions {
  gap: 18px;
}

.auth-layout-compact .auth-scroll {
  padding-top: 34px;
}

.auth-layout-compact .auth-logo {
  max-width: 220px;
  width: 55%;
}

.auth-layout-compact .auth-panel {
  margin-top: 28px;
}

.field {
  color: var(--brown);
  display: grid;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
}

.field input,
.field select,
.promo-form input {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--brown);
  min-height: 52px;
  padding: 12px 14px;
  width: 100%;
}

.field input::placeholder,
.promo-form input::placeholder {
  color: #8a7e79;
}

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

.panel-rule {
  background: rgb(68 37 28 / 30%);
  height: 1px;
  margin: 2px 0;
}

.inline-prompt,
.legal-copy {
  color: var(--grey);
  font-size: 13px;
  margin: 0;
  text-align: center;
}

.legal-copy button,
.inline-button {
  color: var(--grey);
  text-decoration: underline;
}

.form-heading {
  margin-bottom: 4px;
  text-align: center;
}

.form-heading h1 {
  font-size: 30px;
}

.form-heading p {
  font-size: 15px;
}

.back-link,
.back-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--brown);
  border-radius: 8px;
  color: var(--brown);
  display: inline-flex;
  min-height: 40px;
  padding: 8px 13px;
}

.back-link {
  margin-bottom: 20px;
}

.form-section {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.form-section h2,
.form-section h3,
.surface-form h3,
.surface-panel h3 {
  color: var(--brown);
  font-size: 18px;
  margin: 0;
}

.form-section p,
.surface-panel p {
  color: var(--grey);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

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

.choice-grid label,
.terms-choice {
  align-items: flex-start;
  color: var(--brown);
  display: flex;
  font-size: 13px;
  gap: 8px;
}

.choice-grid input,
.terms-choice input {
  accent-color: var(--orange);
  height: 18px;
  margin: 0;
  width: 18px;
}

.success-panel {
  display: grid;
  gap: 14px;
  text-align: center;
}

.success-panel p {
  color: var(--grey);
  margin: 0;
}

.success-mark {
  align-items: center;
  background: var(--orange);
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 28px;
  height: 60px;
  justify-content: center;
  margin: 0 auto;
  width: 60px;
}

.status-message,
.toast,
.demo-callout {
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  padding: 10px 12px;
}

.success-message,
.toast {
  background: #eef8f1;
  color: #176b35;
}

.error-message {
  background: #fee4e2;
  color: var(--danger);
}

.legal-page {
  display: grid;
  gap: 15px;
}

.legal-page p {
  color: var(--grey);
  line-height: 1.6;
  margin: 0;
}

.signed-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.app-header {
  background: linear-gradient(160deg, var(--background), #fbe8d8);
  display: grid;
  gap: 10px;
  padding: 15px 20px 14px;
  z-index: 3;
}

.header-top,
.greeting-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.header-logo {
  height: 70px;
  object-fit: contain;
  width: 155px;
}

.cart-button {
  align-items: center;
  background: #f2c4a5;
  border: 0;
  border-radius: 27px;
  color: var(--brown);
  display: flex;
  font-size: 18px;
  gap: 8px;
  height: 52px;
  justify-content: center;
  min-width: 74px;
}

.cart-glyph {
  border: 2px solid currentColor;
  border-top: 0;
  display: inline-block;
  height: 13px;
  position: relative;
  transform: skew(-6deg);
  width: 20px;
}

.cart-glyph::before {
  border-left: 2px solid currentColor;
  content: "";
  height: 8px;
  left: -5px;
  position: absolute;
  top: -7px;
  transform: rotate(-28deg);
}

.cart-glyph::after {
  border-bottom: 3px dotted currentColor;
  bottom: -7px;
  content: "";
  left: 1px;
  position: absolute;
  width: 16px;
}

.greeting-row h1 {
  color: var(--brown);
  font-size: 24px;
  line-height: 1.15;
  margin: 0;
}

.greeting-row p {
  color: var(--grey);
  font-size: 14px;
  margin: 2px 0 0;
}

.logout-button {
  font-size: 13px;
  min-height: 40px;
}

.app-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: var(--border) transparent;
}

.app-content {
  display: grid;
  gap: 16px;
  padding: 6px 20px 24px;
}

.app-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex: 0 0 auto;
  padding-bottom: max(3px, env(safe-area-inset-bottom));
}

.app-footer > p {
  color: var(--grey);
  font-size: 9px;
  margin: 1px 0 2px;
  text-align: center;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 8px 3px 2px;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--grey);
  display: flex;
  flex-direction: column;
  font-size: 10px;
  gap: 2px;
  min-height: 48px;
  min-width: 0;
  padding: 2px;
}

.nav-item .brand-icon {
  height: 23px;
  width: 23px;
}

.nav-item.active {
  color: var(--orange);
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1px 1fr;
  padding: 18px 15px;
}

.summary-column {
  align-content: start;
  display: grid;
  gap: 9px;
  min-width: 0;
}

.summary-column h2 {
  color: var(--brown);
  font-size: 14px;
  margin: 0;
}

.summary-column p {
  color: var(--brown);
  font-size: 12px;
  line-height: 1.35;
  margin: 0;
}

.summary-divider {
  background: rgb(68 37 28 / 35%);
}

.points-row {
  align-items: center;
  color: var(--orange);
  display: flex;
  gap: 7px;
}

.points-row .brand-icon {
  height: 34px;
  width: 34px;
}

.points-row strong {
  font-size: 34px;
}

.summary-column .small-primary {
  font-size: 12px;
  justify-self: start;
  min-height: 38px;
  padding: 8px 13px;
}

.info-line {
  align-items: center;
  color: var(--orange);
  display: flex;
  font-size: 11px;
  font-weight: 600;
  gap: 7px;
  min-width: 0;
}

.info-line .brand-icon {
  flex: 0 0 auto;
  height: 17px;
  width: 17px;
}

.info-line span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.view-link {
  background: transparent;
  border: 0;
  color: var(--brown);
  font-size: 12px;
  justify-self: start;
  padding: 0;
}

.view-link span {
  font-size: 20px;
  vertical-align: -2px;
}

.no-booking {
  color: var(--orange) !important;
  font-weight: 600;
}

.section-title {
  color: var(--brown);
  font-size: 19px;
  margin: 0;
}

.experience-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.experience-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--orange);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 105px;
  padding: 8px 3px;
}

.experience-card .brand-icon {
  height: 43px;
  width: 43px;
}

.experience-card span:last-child {
  color: var(--grey);
  font-size: 11px;
  line-height: 1.15;
  margin-top: 7px;
}

.menu-list,
.card-list {
  display: grid;
  gap: 10px;
}

.menu-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--brown);
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  min-height: 68px;
  padding: 10px 14px;
  text-align: left;
}

.menu-icon {
  color: var(--orange);
  display: grid;
  place-items: center;
}

.menu-icon .brand-icon {
  height: 35px;
  width: 35px;
}

.menu-copy {
  display: grid;
  min-width: 0;
}

.menu-copy strong {
  font-size: 15px;
}

.menu-copy span {
  color: var(--grey);
  font-size: 12px;
  margin-top: 2px;
}

.chevron {
  font-size: 25px;
}

.refer-card {
  align-items: center;
  background: linear-gradient(110deg, var(--background), #fdf0e7);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  padding: 15px;
}

.refer-icon {
  align-items: center;
  background: var(--brown);
  border-radius: 50%;
  color: white;
  display: flex;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.refer-icon .brand-icon {
  height: 30px;
  width: 30px;
}

.refer-copy {
  display: grid;
}

.refer-copy strong {
  color: var(--brown);
  font-size: 14px;
}

.refer-copy span {
  color: var(--grey);
  font-size: 11px;
  line-height: 1.25;
  margin-top: 3px;
}

.refer-card .small-primary {
  font-size: 12px;
  min-height: 40px;
}

.page-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.page-heading h2,
.content-page h2 {
  color: var(--brown);
  font-size: 23px;
  line-height: 1.2;
  margin: 0;
}

.page-heading p {
  color: var(--grey);
  font-size: 13px;
  line-height: 1.4;
  margin: 4px 0 0;
}

.heading-button {
  flex: 0 0 auto;
  font-size: 12px;
  min-height: 40px;
  padding: 8px 12px;
}

.data-card,
.store-card,
.package-card,
.surface-panel,
.surface-form,
.identity-card,
.cart-summary,
.promo-form,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px;
}

.data-card,
.store-card,
.package-card,
.surface-form,
.surface-panel {
  display: grid;
  gap: 9px;
}

.data-card h3,
.data-card h4,
.store-card h3,
.package-card h4,
.cart-item h3 {
  color: var(--brown);
  margin: 0;
}

.data-card h3,
.store-card h3 {
  font-size: 17px;
}

.data-card h4 {
  font-size: 14px;
}

.data-card p,
.store-card p,
.package-card p,
.cart-item p {
  color: var(--grey);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.data-card p strong,
.store-card p strong {
  color: var(--brown);
}

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

.prominent-detail {
  color: var(--brown) !important;
  font-size: 14px !important;
}

.badge {
  background: var(--background);
  border-radius: 20px;
  color: var(--brown);
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 8px;
}

.badge-danger {
  background: #fee4e2;
  color: var(--danger);
}

.badge-promo {
  background: #ffeadf;
  color: var(--orange);
}

.cancelled-card {
  opacity: 0.72;
}

.danger-button,
.remove-button {
  background: white;
  border: 1px solid var(--danger);
  border-radius: 8px;
  color: var(--danger);
  min-height: 38px;
  padding: 8px 12px;
}

.danger-button {
  justify-self: start;
}

.category-heading,
.catalogue-group > h3 {
  color: var(--orange);
  font-size: 18px;
  margin: 4px 0 0;
}

.surface-form {
  gap: 14px;
}

.store-summary,
.booking-confirm,
.demo-callout {
  background: #fff5ed;
  border-left: 3px solid var(--orange);
  display: grid;
  gap: 4px;
  padding: 11px 12px;
}

.store-summary span,
.booking-confirm p {
  color: var(--grey);
  font-size: 12px;
  margin: 0;
}

.time-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}

.time-button {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--brown);
  min-height: 42px;
}

.time-button.selected {
  background: var(--brown);
  border-color: var(--brown);
  color: white;
}

.catalogue-group {
  display: grid;
  gap: 10px;
}

.package-price {
  color: var(--brown) !important;
  font-size: 16px !important;
  font-weight: 600;
}

.package-price span {
  color: var(--orange);
  display: block;
  font-size: 11px;
  margin-top: 3px;
}

.empty-state {
  color: var(--grey);
  font-size: 13px;
  text-align: center;
}

.cart-item {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px;
}

.cart-item > div {
  display: grid;
  gap: 5px;
}

.cart-item strong {
  color: var(--orange);
}

.remove-button {
  flex: 0 0 auto;
}

.cart-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
}

.cart-summary span {
  color: var(--grey);
}

.cart-summary strong {
  color: var(--brown);
}

.promo-form {
  align-items: end;
  display: grid;
  gap: 9px;
  grid-template-columns: 1fr auto;
}

.promo-form label {
  color: var(--brown);
  display: grid;
  font-size: 12px;
  font-weight: 600;
  gap: 5px;
}

.promo-form input {
  min-height: 44px;
}

.promo-form button {
  background: var(--brown);
  border: 0;
  border-radius: 8px;
  color: white;
  min-height: 44px;
  padding: 8px 13px;
}

.surface-panel {
  padding: 17px;
}

.identity-card {
  color: var(--grey);
  display: grid;
  gap: 3px;
}

.identity-card strong {
  color: var(--brown);
  font-size: 20px;
}

.toggle-row {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--brown);
  display: flex;
  justify-content: space-between;
  min-height: 38px;
  padding: 0;
}

.toggle {
  background: #cbc4c1;
  border-radius: 13px;
  display: inline-flex;
  height: 26px;
  padding: 3px;
  transition: background 150ms ease;
  width: 46px;
}

.toggle > span {
  background: white;
  border-radius: 50%;
  height: 20px;
  transition: transform 150ms ease;
  width: 20px;
}

.toggle.checked {
  background: var(--orange);
}

.toggle.checked > span {
  transform: translateX(20px);
}

.field-hint {
  color: var(--grey);
  font-size: 11px;
  margin: 0;
}

.danger-panel {
  border-color: #efb2ad;
}

.store-card details {
  border-top: 1px solid var(--border);
  color: var(--brown);
  margin-top: 3px;
  padding-top: 10px;
}

.store-card summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.hours-list {
  display: grid;
  font-size: 11px;
  gap: 5px 12px;
  grid-template-columns: 1fr auto;
  margin-top: 10px;
}

.hours-list span {
  color: var(--grey);
}

.search-field {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px;
}

.content-page {
  min-height: 310px;
}

.content-page > h3 {
  color: var(--orange);
  font-size: 18px;
}

.content-page > p {
  font-size: 14px;
  line-height: 1.6;
}

.placeholder-illustration {
  align-items: center;
  color: var(--orange);
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: 150px;
}

.placeholder-illustration .brand-icon {
  height: 92px;
  width: 92px;
}

.surface-panel.success-panel {
  min-height: 330px;
  place-content: center;
}

.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  body {
    background: var(--background);
  }

  .demo-stage {
    display: block;
    min-height: 100dvh;
    padding: 0;
  }

  .demo-device {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100dvh;
    max-width: none;
  }

  .reset-demo {
    display: none;
  }
}

@media (max-width: 390px) {
  .app-header,
  .app-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .greeting-row h1 {
    font-size: 21px;
  }

  .summary-card {
    gap: 10px;
    padding: 15px 11px;
  }

  .points-row strong {
    font-size: 29px;
  }

  .experience-card span:last-child {
    font-size: 10px;
  }

  .field-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: no-preference) {
  .app-content,
  .auth-panel {
    animation: enter 180ms ease-out;
  }

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