:root {
  --bg: #f7f1ea;
  --surface: #fffaf5;
  --surface-soft: #f3ebe3;
  --text: #2b221c;
  --muted: #8b7b70;
  --line: #eadfd5;
  --line-strong: #d9cabe;
  --accent: #f26532;
  --accent-dark: #d94f24;
  --accent-soft: #fff0e8;
  --danger: #b44537;
  --success: #2f7d4f;
  --warning: #a36217;
  --shadow: 0 22px 60px rgba(105, 61, 32, 0.12);
  --soft-shadow: 0 12px 34px rgba(105, 61, 32, 0.09);
  font-family: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #faf6f0 0%, var(--bg) 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

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

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

button {
  cursor: pointer;
}

.flash-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.flash {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  padding: 12px 14px;
  font-size: 14px;
}

.flash-error {
  border-color: #ffd1cc;
  color: var(--danger);
}

.flash-success {
  border-color: #cbead6;
  color: var(--success);
}

.flash-info {
  color: #5d5048;
}

.product-page {
  background:
    radial-gradient(circle at 18% 75%, rgba(255, 248, 239, 0.95), rgba(255, 248, 239, 0) 28%),
    linear-gradient(180deg, #faf6f0 0%, var(--bg) 100%);
}

.presale-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 48px auto 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  gap: 48px;
  align-items: start;
}

.topbar,
.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-logo {
  width: 76px;
  max-height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 7px 10px rgba(176, 30, 12, 0.24));
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-copy strong {
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
}

.brand-copy small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.nav-actions,
.dashboard-top nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #6f6259;
  font-size: 14px;
}

.nav-actions a,
.dashboard-top nav a {
  transition: color 160ms ease;
}

.nav-actions a:hover,
.dashboard-top nav a:hover {
  color: var(--text);
}

.nav-strong {
  font-weight: 800;
}

.hero-copy {
  min-width: 0;
}

.hero-intro {
  margin-top: 74px;
}

.hero-pill,
.section-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff7c45);
  color: #ffffff;
  padding: 7px 18px;
  font-size: 15px;
  font-weight: 800;
}

.section-label {
  margin: 0 0 14px;
  padding: 5px 13px;
  font-size: 12px;
  text-transform: uppercase;
}

.hero-intro h1 {
  margin: 28px 0 10px;
  font-size: 55px;
  line-height: 1.05;
  font-weight: 900;
}

.hero-intro p {
  margin: 0;
  font-size: 20px;
  color: #4d3f35;
  font-weight: 600;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  margin-top: 36px;
}

.robot-wrap {
  position: absolute;
  inset: -42px 8px 0 170px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
}

.hero-robot {
  width: 320px;
  max-width: none;
  max-height: 650px;
  object-fit: contain;
  transform: translateX(40px);
  filter: drop-shadow(0 34px 42px rgba(0, 0, 0, 0.13));
}

.feature-rail {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 34px;
  width: 275px;
  padding-top: 42px;
}

.feature-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
}

.feature-icon,
.benefit-icon,
.field-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fffdf9;
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--line);
  font-size: 18px;
}

.feature-item h2,
.benefit-card h2 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 900;
}

.feature-item p,
.benefit-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.feature-price {
  align-items: start;
  margin-top: 10px;
}

.feature-price-spacer {
  width: 46px;
  height: 1px;
}

.feature-price-box {
  min-width: 210px;
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.feature-price-box span {
  display: block;
  color: var(--text);
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

.feature-price-box strong {
  display: block;
  color: var(--accent);
  background: linear-gradient(135deg, #f26532 0%, #ff7c45 45%, #d94f24 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 8px rgba(242, 101, 50, 0.16));
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.benefit-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  align-items: center;
  width: min(520px, 100%);
  min-height: 82px;
  background: rgba(255, 250, 245, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 28px;
  box-shadow: var(--soft-shadow);
}

.benefit-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.benefit-list li {
  position: relative;
  padding-left: 14px;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.schedule-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 26px;
  color: #6f6259;
  font-size: 14px;
}

.reserve-panel {
  background: rgba(255, 250, 245, 0.96);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 44px 34px 30px;
}

.panel-heading h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.panel-heading p {
  margin: 0 0 34px;
  color: var(--muted);
}

.login-hint,
.config-box,
.success-box {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 12px 14px;
  margin-bottom: 18px;
  color: #6f6259;
  font-size: 14px;
}

.success-box {
  background: #f2fbf5;
  border-color: #cbead6;
  color: var(--success);
}

.config-box {
  background: #fff5eb;
  border-color: #f2cfa9;
  color: var(--warning);
}

.reserve-form {
  display: grid;
  gap: 20px;
}

.field-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
}

.field-row:first-of-type {
  border-top-color: var(--line-strong);
}

.field-copy {
  display: grid;
  gap: 6px;
}

.field-copy strong,
.note-field strong,
.product-summary h3 {
  font-size: 15px;
  font-weight: 900;
}

.field-copy input,
.field-copy select,
.note-field textarea,
.stack-form input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  background: #fffdf9;
  color: var(--text);
  font-size: 15px;
  min-height: 38px;
  padding: 0 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field-copy input:focus,
.field-copy select:focus,
.note-field textarea:focus,
.stack-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 101, 50, 0.12);
  background: #ffffff;
}

.field-copy input::placeholder,
.note-field textarea::placeholder,
.stack-form input::placeholder {
  color: #b8aba1;
}

.field-copy select {
  appearance: auto;
  color: #9b8d82;
}

.field-copy select:disabled,
.region-selects select:disabled {
  background: #f8f2ec;
  color: #b8aba1;
}

.region-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.region-selects select {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fffdf9;
  color: #9b8d82;
  padding: 0 10px;
}

.region-selects select:enabled {
  color: var(--text);
}

.field-copy strong span {
  color: #9b8d82;
  font-weight: 500;
}

.identity-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.identity-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 14px;
  background: #fffdf9;
  color: #5d5048;
  font-size: 14px;
  font-weight: 800;
}

.identity-options label:has(input:checked) {
  border-color: rgba(242, 101, 50, 0.48);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.identity-options input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

.organization-input {
  display: none;
  height: 36px;
  border: 1px solid var(--line-strong) !important;
  border-radius: 10px;
  margin-top: 2px;
  padding: 0 12px;
}

.organization-input.is-visible {
  display: block;
}

.product-summary {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.product-summary h3 {
  margin: 0;
}

.product-card {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 20px;
  align-items: center;
  background: #f5ede5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 16px;
}

.product-card img {
  width: 74px;
  height: 104px;
  object-fit: contain;
  object-position: top center;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.1));
}

.product-info {
  display: grid;
  gap: 7px;
}

.product-info strong {
  font-size: 18px;
}

.product-info span {
  color: var(--muted);
  font-size: 13px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.price strong {
  font-size: 30px;
  line-height: 1;
}

.price span {
  color: #777777;
  font-size: 12px;
}

.feature-card-link {
  grid-template-columns: 82px 1fr auto;
}

.feature-link {
  min-height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--accent), #ff7c45);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.note-field {
  display: grid;
  gap: 12px;
}

.note-field strong span {
  color: #9b8d82;
  font-weight: 500;
}

.note-field textarea {
  min-height: 104px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fffdf9;
}

.agree-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6f6259;
  font-size: 14px;
}

.agree-line input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.agree-link {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-open {
  overflow: hidden;
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 34, 28, 0.46);
  backdrop-filter: blur(5px);
}

.legal-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(82vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(217, 202, 190, 0.85);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(43, 34, 28, 0.28);
  overflow: hidden;
  outline: none;
}

.legal-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.legal-modal__header p {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.legal-modal__header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.legal-modal__close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fffdf9;
  color: var(--text);
}

.legal-modal__body {
  overflow-y: auto;
  padding: 22px 24px 24px;
}

.legal-modal__footer {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 245, 0.94);
}

.legal-modal__confirm {
  width: 100%;
  min-height: 48px;
}

.legal-section {
  display: grid;
  gap: 16px;
  color: #4d3f35;
}

.legal-section section {
  display: grid;
  gap: 7px;
}

.legal-updated {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-summary {
  border: 1px solid rgba(242, 101, 50, 0.18);
  border-radius: 12px;
  background: var(--accent-soft);
  color: #5b3b2d;
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.65;
}

.legal-section h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.legal-section p {
  margin: 0;
  color: #5f524a;
  font-size: 14px;
  line-height: 1.78;
}

.primary-button,
.secondary-button,
.ghost-danger {
  min-height: 54px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  padding: 0 22px;
  font-size: 16px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), #ff7c45);
  color: #ffffff;
}

.secondary-button {
  background: #fffdf9;
  color: var(--text);
}

.ghost-danger {
  min-height: 42px;
  border-color: #f1c3bf;
  background: #fff7f6;
  color: var(--danger);
  font-size: 14px;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.form-footnote {
  margin: -6px 0 0;
  text-align: center;
  color: #a0a0a0;
  font-size: 13px;
}

.site-footer {
  width: min(800px, calc(100% - 48px));
  margin: 44px auto 28px;
  text-align: center;
  color: #b0b0b0;
  font-size: 13px;
}

.site-footer p {
  margin: 8px 0;
}

.auth-page,
.dashboard-page {
  background: var(--bg);
}

.auth-shell {
  width: min(460px, calc(100% - 40px));
  margin: 48px auto;
}

.auth-brand {
  margin-bottom: 24px;
}

.auth-card,
.table-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.auth-card {
  padding: 34px;
}

.auth-card h1,
.dashboard-heading h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
}

.auth-card p,
.dashboard-heading p {
  margin: 0;
  color: var(--muted);
}

.stack-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

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

.stack-form label span {
  font-size: 14px;
  font-weight: 800;
}

.stack-form input {
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 14px;
  background: #fffdf9;
}

.auth-switch {
  margin-top: 22px;
  text-align: center;
}

.auth-switch a {
  font-weight: 900;
  border-bottom: 1px solid var(--text);
}

.dashboard-top {
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 0;
  padding: 18px 0;
}

.dashboard-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 36px auto 60px;
}

.dashboard-heading {
  margin-bottom: 24px;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.split-heading-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stats-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--soft-shadow);
}

.stats-grid span,
.muted {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stats-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
}

.stats-grid-simple {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.table-panel {
  padding: 22px;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.panel-title-row h2 {
  margin: 0;
  font-size: 20px;
}

.panel-title-row a {
  color: #6f6259;
  font-weight: 800;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.address-cell {
  max-width: 240px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  background: #f1e9e0;
  color: #6f6259;
  white-space: nowrap;
}

.status-paid,
.status-confirmed {
  background: #e8f7ed;
  color: var(--success);
}

.status-pending,
.status-unpaid {
  background: #fff5db;
  color: var(--warning);
}

.status-cancelled,
.status-cancel_requested {
  background: #fff0ef;
  color: var(--danger);
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions form {
  margin: 0;
}

.table-actions button,
.danger-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent-dark);
  font-weight: 900;
}

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

.muted-text {
  color: var(--muted);
  font-size: 14px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs a {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  color: #6f6259;
  font-weight: 800;
  font-size: 14px;
}

.filter-tabs a.active {
  background: linear-gradient(135deg, var(--accent), #ff7c45);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn-export:hover {
  background: linear-gradient(135deg, var(--accent), #ff7c45);
  color: #ffffff;
}

.order-list {
  display: grid;
  gap: 14px;
}

.order-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr 0.7fr 0.7fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.order-card-simple {
  grid-template-columns: 1.2fr 1.2fr 0.8fr 0.7fr auto;
}

.order-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-actions form {
  margin: 0;
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.empty-state h2 {
  margin: 0 0 8px;
  color: var(--text);
}

.features-page {
  background: var(--bg);
}

.features-top {
  margin-top: 30px;
}

.features-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 34px auto 72px;
}

.features-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  padding: 52px;
  overflow: hidden;
}

.features-hero h1 {
  margin: 0 0 14px;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 900;
}

.features-hero p {
  margin: 0;
  max-width: 560px;
  color: #6f6259;
  font-size: 18px;
}

.features-hero img {
  width: 330px;
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.12));
}

.feature-detail-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.feature-detail {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  padding: 30px 34px;
}

.feature-detail > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff7c45);
  color: #ffffff;
  font-weight: 900;
}

.feature-detail h2 {
  margin: 16px 0 4px;
  font-size: 28px;
  line-height: 1.2;
}

.feature-detail h3 {
  margin: 0 0 18px;
  color: #6f6259;
  font-size: 18px;
}

.feature-detail ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  color: #4d3f35;
}

@media (max-width: 1040px) {
  .presale-shell {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .reserve-panel {
    margin-top: 8px;
  }

  .hero-stage {
    min-height: 510px;
  }

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

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

  .order-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-card-simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .presale-shell,
  .dashboard-top,
  .dashboard-shell {
    width: min(100% - 28px, 560px);
  }

  .presale-shell {
    margin-top: 22px;
    gap: 26px;
  }

  .topbar,
  .dashboard-top,
  .split-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .nav-actions,
  .dashboard-top nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .topbar .nav-actions {
    margin-left: auto;
    justify-content: flex-end;
    gap: 10px;
  }

  .brand-logo {
    width: 66px;
    max-height: 38px;
  }

  .brand-copy strong {
    font-size: 21px;
  }

  .brand-copy small {
    font-size: 11px;
  }

  .hero-intro {
    margin-top: 34px;
  }

  .hero-intro h1 {
    font-size: 42px;
  }

  .hero-intro p {
    font-size: 17px;
  }

  .hero-stage {
    min-height: 900px;
    margin-top: 24px;
  }

  .robot-wrap {
    inset: 240px -50px 0 96px;
    justify-content: flex-end;
  }

  .hero-robot {
    width: min(92vw, 370px);
    max-width: none;
    transform: none;
  }

  .feature-rail {
    width: 100%;
    gap: 18px;
    padding-top: 0;
  }

  .feature-item {
    width: min(100%, 330px);
  }

  .feature-price {
    width: min(68vw, 260px);
    grid-template-columns: 1fr;
    margin-top: 54px;
    transform: translateX(-6px);
  }

  .feature-price-spacer {
    display: none;
  }

  .feature-price-box {
    min-width: 0;
    gap: 8px;
    padding-top: 0;
  }

  .feature-price-box span {
    font-size: 30px;
  }

  .feature-price-box strong {
    font-size: clamp(36px, 10vw, 44px);
  }

  .benefit-card {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 0;
    grid-template-columns: 44px 1fr;
    align-items: start;
    gap: 14px;
    margin-top: 0;
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.98);
    box-shadow: 0 16px 38px rgba(105, 61, 32, 0.12);
  }

  .benefit-card .benefit-icon {
    width: 44px;
    height: 44px;
    margin-top: 2px;
  }

  .benefit-card h2 {
    margin-bottom: 9px;
    font-size: 18px;
    line-height: 1.25;
  }

  .benefit-list {
    gap: 8px;
    font-size: 14px;
    line-height: 1.35;
  }

  .benefit-list li {
    padding-left: 14px;
  }

  .schedule-line {
    margin-top: 20px;
    gap: 10px;
    font-size: 13px;
    line-height: 1.55;
  }

  .reserve-panel,
  .auth-card,
  .table-panel {
    border-radius: 16px;
    padding: 24px 18px;
  }

  .legal-modal {
    align-items: end;
    justify-items: stretch;
    padding: 0;
  }

  .legal-modal__dialog {
    width: 100%;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
  }

  .legal-modal__header {
    padding: 18px 18px 14px;
  }

  .legal-modal__header h2 {
    font-size: 21px;
  }

  .legal-modal__close {
    width: 38px;
    height: 38px;
  }

  .legal-modal__body {
    padding: 18px;
  }

  .legal-modal__footer {
    padding: 14px 18px 18px;
  }

  .legal-summary,
  .legal-section p {
    font-size: 13px;
  }

  .product-card {
    grid-template-columns: 70px 1fr;
  }

  .product-card .price,
  .product-card .feature-link {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .region-selects {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .stats-grid-simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-card {
    grid-template-columns: 1fr;
  }

  .data-table {
    min-width: 760px;
  }

  .features-shell {
    width: min(100% - 28px, 560px);
    margin-top: 22px;
  }

  .features-hero {
    border-radius: 16px;
    padding: 28px 20px;
  }

  .features-hero h1 {
    font-size: 38px;
  }

  .features-hero p {
    font-size: 16px;
  }

  .features-hero img {
    width: 260px;
    justify-self: center;
  }

  .feature-detail {
    padding: 24px 20px;
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 58px;
  }

  .brand-copy strong {
    font-size: 19px;
  }

  .hero-intro h1 {
    font-size: 36px;
  }

  .hero-stage {
    min-height: 880px;
  }

  .robot-wrap {
    inset: 334px -14px 0 64px;
  }

  .hero-robot {
    width: min(85vw, 330px);
  }

  .feature-price {
    width: 68vw;
    margin-top: 52px;
    transform: translateX(-8px);
  }

  .benefit-card {
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 16px 14px;
  }

  .benefit-card .benefit-icon {
    width: 42px;
    height: 42px;
  }

  .benefit-card h2 {
    font-size: 17px;
  }

  .benefit-list {
    font-size: 13px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid-simple {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .feature-icon,
  .benefit-icon,
  .field-icon {
    width: 40px;
    height: 40px;
  }
}
