:root {
  --bg: #fff8f3;
  --panel: #ffffff;
  --ink: #2b1d18;
  --muted: #7a6860;
  --line: #f1d9c9;
  --peach: #ff8f73;
  --peach-deep: #f05d4f;
  --leaf: #3c9a62;
  --gold: #f2b84b;
  --shadow: 0 18px 45px rgba(104, 55, 30, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 181, 126, 0.28), transparent 34%),
    linear-gradient(180deg, #fff4ea 0%, var(--bg) 44%, #ffffff 100%);
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 16px calc(28px + env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  min-height: 214px;
  overflow: hidden;
  padding: 24px 22px;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(135deg, #fff0e5, #ffe6cc 52%, #ffd8c4);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 260px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #9a4d2d;
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.hero-art {
  position: absolute;
  inset: 0;
}

.peach {
  position: absolute;
  border-radius: 48% 52% 54% 46% / 50% 48% 52% 50%;
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.55), transparent 18%),
    linear-gradient(135deg, #ffc282 0%, #ff876e 58%, #ef5b55 100%);
  box-shadow: inset -14px -18px 22px rgba(189, 55, 41, 0.16), 0 18px 36px rgba(212, 86, 53, 0.22);
}

.peach::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: 2px;
  height: 72%;
  background: rgba(172, 70, 50, 0.22);
  border-radius: 999px;
  transform: rotate(10deg);
}

.peach-a {
  right: -12px;
  top: 42px;
  width: 132px;
  height: 126px;
}

.peach-b {
  right: 78px;
  bottom: -24px;
  width: 78px;
  height: 74px;
  opacity: 0.88;
}

.leaf {
  position: absolute;
  width: 74px;
  height: 34px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #69bd70, var(--leaf));
  transform: rotate(-22deg);
}

.leaf-a {
  right: 70px;
  top: 28px;
}

.leaf-b {
  right: 18px;
  bottom: 44px;
  width: 58px;
  height: 27px;
  transform: rotate(26deg);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.tab {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.tab.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--peach), var(--peach-deep));
  box-shadow: 0 10px 22px rgba(240, 93, 79, 0.26);
}

.panel {
  padding: 18px;
  border: 1px solid rgba(241, 217, 201, 0.9);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(104, 55, 30, 0.08);
}

.page {
  display: none;
}

.page.is-active {
  display: block;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.step {
  min-height: 32px;
  border-radius: 999px;
  color: var(--muted);
  background: #fff4ec;
  font-size: 13px;
  font-weight: 800;
  line-height: 32px;
  text-align: center;
}

.step.is-active {
  color: #7a320f;
  background: #ffe0bd;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffdfb;
  outline: 0;
}

input {
  height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  min-height: 92px;
  padding: 12px 14px;
}

input:focus,
textarea:focus {
  border-color: var(--peach);
  box-shadow: 0 0 0 3px rgba(255, 143, 115, 0.18);
}

.primary-btn {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--peach), var(--peach-deep));
  box-shadow: 0 14px 26px rgba(240, 93, 79, 0.24);
  font-weight: 900;
}

.primary-btn:disabled {
  opacity: 0.68;
}

.success-strip,
.result-box,
.shipment-card {
  border-radius: 8px;
  background: #fff7ef;
}

.success-strip {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-left: 4px solid var(--leaf);
  color: var(--muted);
}

.success-strip strong {
  color: var(--ink);
}

.result-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #f2d7c3;
  line-height: 1.6;
}

.result-box.success {
  border-color: rgba(60, 154, 98, 0.35);
  background: #f0fbf3;
}

.shipment-card {
  display: grid;
  gap: 16px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #f2d7c3;
}

.shipment-card h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.shipment-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.shipment-card dl div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
  word-break: break-all;
}

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

.demo-note {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #6d5549;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 10;
  width: min(88vw, 360px);
  padding: 12px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(43, 29, 24, 0.92);
  text-align: center;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

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

.is-hidden {
  display: none !important;
}

@media (max-width: 360px) {
  .app-shell {
    padding-inline: 12px;
  }

  .hero {
    padding-inline: 18px;
  }

  h1 {
    font-size: 28px;
  }

  .peach-a {
    right: -34px;
  }
}
