:root {
  --paper: #fffaf2;
  --paper-deep: #fff2dc;
  --ink: #34251f;
  --muted: #8b7668;
  --line: #eadbca;
  --orange: #e99543;
  --orange-deep: #c66d2a;
  --yellow: #f7c65f;
  --green: #708b67;
  --green-deep: #4e6e55;
  --cream: #fffdf9;
  --shadow: 0 24px 70px rgba(109, 68, 34, 0.12);
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-synthesis: none;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(247, 198, 95, 0.16), transparent 22rem),
    linear-gradient(180deg, #fffaf2 0%, #fffdf9 52%, #f8f0e4 100%);
}

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

button,
select,
input[type="radio"] {
  -webkit-tap-highlight-color: transparent;
}

button,
select,
input,
textarea {
  font-size: 1rem;
}

.page-glow {
  position: fixed;
  z-index: 0;
  width: 18rem;
  height: 18rem;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(3px);
  opacity: 0.36;
}

.page-glow-left {
  top: 28rem;
  left: -12rem;
  background: var(--yellow);
}

.page-glow-right {
  right: -13rem;
  bottom: 5rem;
  background: #d5e4c7;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 74rem);
  margin: 0 auto;
  padding: 1rem 0 1.4rem;
}

.hero {
  position: relative;
  display: grid;
  min-height: 25rem;
  overflow: hidden;
  border: 1px solid rgba(223, 172, 93, 0.36);
  border-radius: 2rem;
  background:
    linear-gradient(118deg, rgba(255, 251, 241, 0.97), rgba(255, 244, 220, 0.78)),
    var(--paper-deep);
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  right: -4rem;
  bottom: -9rem;
  width: 23rem;
  height: 23rem;
  border: 1px solid rgba(112, 139, 103, 0.23);
  border-radius: 45% 55% 52% 48%;
  content: "";
  transform: rotate(24deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 37rem;
  padding: 2.1rem 1.5rem 2.5rem;
}

.eyebrow,
.section-kicker,
.summary-topline,
.site-footer {
  color: var(--orange-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.9rem;
}

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

h1 {
  max-width: 33rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(2.2rem, 9vw, 4.55rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1.03;
}

h1 em {
  color: var(--orange-deep);
  font-style: normal;
}

.hero-intro {
  max-width: 23rem;
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--green-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-note-dot,
.summary-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0.3rem rgba(112, 139, 103, 0.12);
}

.hero-illustration {
  position: relative;
  min-height: 12rem;
}

.cup {
  position: absolute;
  right: 18%;
  bottom: 1.6rem;
  z-index: 2;
  width: 8.8rem;
  height: 12rem;
  transform: rotate(5deg);
}

.cup-lid {
  position: absolute;
  top: 0;
  left: -0.4rem;
  width: 9.6rem;
  height: 1.5rem;
  border: 0.22rem solid #74523e;
  border-radius: 50%;
  background: #df9850;
}

.cup-lid::after {
  position: absolute;
  top: -2.25rem;
  left: 3.8rem;
  width: 0.45rem;
  height: 2.4rem;
  border-radius: 1rem;
  background: var(--green-deep);
  content: "";
  transform: rotate(5deg);
}

.cup-body {
  position: absolute;
  top: 0.7rem;
  left: 0.35rem;
  width: 8.1rem;
  height: 10.8rem;
  overflow: hidden;
  border: 0.22rem solid #74523e;
  border-top: 0;
  border-radius: 0 0 2.2rem 2.2rem;
  background: linear-gradient(135deg, #f0b260, #dc8742);
}

.cup-body::before {
  position: absolute;
  top: 1.1rem;
  left: -0.5rem;
  width: 9rem;
  height: 1.7rem;
  border-radius: 50%;
  background: rgba(255, 234, 186, 0.5);
  content: "";
  transform: rotate(-12deg);
}

.cup-mark {
  position: absolute;
  top: 4.2rem;
  left: 1.55rem;
  color: #fff6df;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  line-height: 0.95;
  text-align: center;
  transform: rotate(-5deg);
}

.cup-mark b {
  font-family: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.cup-sleeve {
  position: absolute;
  bottom: 2rem;
  left: 0.1rem;
  width: 8.5rem;
  height: 2.7rem;
  background: rgba(105, 63, 39, 0.16);
  transform: rotate(-1deg);
}

.cup-shadow {
  position: absolute;
  right: 12%;
  bottom: 1rem;
  width: 12rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(126, 75, 43, 0.16);
  filter: blur(0.4rem);
  transform: rotate(-4deg);
}

.steam {
  position: absolute;
  z-index: 1;
  width: 1.2rem;
  height: 4.3rem;
  border-left: 0.18rem solid rgba(112, 139, 103, 0.5);
  border-radius: 50%;
  transform: rotate(18deg);
}

.steam-one {
  right: 46%;
  bottom: 12.1rem;
}

.steam-two {
  right: 37%;
  bottom: 12.6rem;
  transform: rotate(-12deg);
}

.steam-three {
  right: 27%;
  bottom: 12rem;
  transform: rotate(20deg);
}

.leaf {
  position: absolute;
  z-index: 2;
  width: 3.3rem;
  height: 1.55rem;
  border-radius: 100% 0 100% 0;
  background: var(--green);
  opacity: 0.86;
}

.leaf::after {
  position: absolute;
  top: 0.7rem;
  left: 0.2rem;
  width: 2.9rem;
  height: 0.08rem;
  background: #e5efce;
  content: "";
  transform: rotate(-27deg);
  transform-origin: left;
}

.leaf-one {
  right: 5%;
  bottom: 5.2rem;
  transform: rotate(24deg);
}

.leaf-two {
  right: 1%;
  bottom: 8rem;
  transform: rotate(-32deg) scale(0.72);
}

.order-layout {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.order-card,
.summary-card {
  border: 1px solid rgba(224, 204, 184, 0.9);
  border-radius: 1.5rem;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 18px 48px rgba(110, 73, 43, 0.07);
}

.order-card {
  padding: 1.35rem;
}

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

.section-kicker {
  margin: 0 0 0.22rem;
  font-size: 0.64rem;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.step-badge {
  flex: 0 0 auto;
  padding: 0.4rem 0.62rem;
  border-radius: 0.7rem;
  color: var(--green-deep);
  background: #edf3e8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.inline-status {
  min-height: 1.4rem;
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.inline-status.is-error {
  color: #b5583d;
}

.field-grid {
  display: grid;
  gap: 0.95rem;
}

.field {
  min-width: 0;
  margin-bottom: 1rem;
}

label,
legend {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.required-mark,
.optional-mark {
  margin-left: 0.2rem;
  color: var(--orange-deep);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.optional-mark {
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  outline: none;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

select {
  cursor: pointer;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #b6a397;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 0.22rem rgba(233, 149, 67, 0.15);
}

select:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.price-panel {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 4.6rem;
  margin: 0.15rem 0 1.15rem;
  padding: 0.8rem 0.9rem;
  border: 1px dashed #e3bd89;
  border-radius: 1rem;
  background: #fff7e8;
}

.price-panel.is-selected {
  border-style: solid;
  background: #fff1d0;
}

.price-panel-icon {
  display: grid;
  flex: 0 0 2.4rem;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  color: #fff9e9;
  background: var(--orange);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.price-label {
  display: block;
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

#selected-price {
  display: block;
  color: var(--orange-deep);
  font-size: 1.45rem;
  line-height: 1.2;
}

.supply-note {
  margin-left: auto;
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}

.choice-fieldset {
  min-width: 0;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

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

.choice-pill {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.choice-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.choice-pill span {
  display: grid;
  min-height: 3rem;
  place-items: center;
  padding: 0.65rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  color: var(--muted);
  background: var(--cream);
  font-size: 0.9rem;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.choice-pill input:checked + span {
  border-color: var(--green);
  color: var(--green-deep);
  background: #eef4e9;
}

.choice-pill input:focus-visible + span {
  outline: 3px solid rgba(233, 149, 67, 0.3);
  outline-offset: 2px;
}

.choice-pill.is-disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.field-help {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3.3rem;
  margin-top: 0.3rem;
  padding: 0.75rem 0.9rem 0.75rem 1.2rem;
  border: 0;
  border-radius: 0.9rem;
  color: #fff9ee;
  background: var(--green-deep);
  box-shadow: 0 0.7rem 1.5rem rgba(78, 110, 85, 0.2);
  cursor: pointer;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.submit-button:not(:disabled):hover {
  background: #3f5f48;
  box-shadow: 0 0.95rem 1.8rem rgba(78, 110, 85, 0.26);
  transform: translateY(-1px);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(233, 149, 67, 0.45);
  outline-offset: 3px;
}

.button-arrow {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  color: var(--green-deep);
  background: #e8f0e1;
  font-size: 1.1rem;
}

.form-status {
  min-height: 1.4rem;
  margin-top: 0.75rem;
  color: var(--green-deep);
  font-size: 0.82rem;
  text-align: center;
}

.form-status.is-error {
  color: #b5583d;
}

.summary-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  background: var(--green-deep);
  color: #f5f0df;
}

.summary-card::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 13rem;
  height: 13rem;
  border: 1px solid rgba(239, 240, 207, 0.2);
  border-radius: 50%;
  content: "";
}

.summary-topline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #d4e4c9;
  font-size: 0.62rem;
}

.summary-dot {
  width: 0.38rem;
  height: 0.38rem;
  background: #f7c65f;
  box-shadow: none;
}

.summary-card h2 {
  margin-top: 0.55rem;
  color: #fff8e6;
}

.summary-drink-art {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  height: 4.4rem;
  margin: 0.6rem 0 0.8rem;
  padding: 0 0.25rem 0.5rem;
  border-bottom: 1px solid rgba(234, 241, 218, 0.25);
}

.summary-drink-art span {
  display: block;
  width: 2rem;
  height: 2.3rem;
  border: 2px solid rgba(255, 248, 230, 0.7);
  border-radius: 0.35rem 0.35rem 0.7rem 0.7rem;
  background: rgba(247, 198, 95, 0.72);
  transform: rotate(-8deg);
}

.summary-drink-art span:nth-child(2) {
  height: 3.2rem;
  background: rgba(227, 150, 77, 0.9);
  transform: rotate(5deg);
}

.summary-drink-art span:nth-child(3) {
  height: 2rem;
  background: rgba(238, 228, 170, 0.72);
  transform: rotate(12deg);
}

.summary-list {
  margin: 0;
}

.summary-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(234, 241, 218, 0.16);
}

.summary-list dt {
  color: #c8d9bf;
  font-size: 0.76rem;
}

.summary-list dd {
  max-width: 65%;
  margin: 0;
  color: #fff8e6;
  font-size: 0.87rem;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
}

.summary-total span {
  color: #c8d9bf;
  font-size: 0.8rem;
}

.summary-total strong {
  color: #f7c65f;
  font-family: Georgia, serif;
  font-size: 1.8rem;
}

.summary-footnote {
  position: relative;
  z-index: 1;
  max-width: 19rem;
  margin: 1.2rem 0 0;
  color: #c8d9bf;
  font-size: 0.72rem;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.2rem 0 0.2rem;
  color: #a28976;
  font-size: 0.58rem;
}

.footer-line {
  display: block;
  flex: 1;
  height: 1px;
  background: #dfcdb9;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 30rem) {
  .site-shell {
    width: min(100% - 3rem, 74rem);
    padding-top: 1.5rem;
  }

  .hero-copy {
    padding: 3rem 2.4rem;
  }

  .order-card,
  .summary-card {
    padding: 1.7rem;
  }
}

@media (min-width: 48rem) {
  .hero {
    min-height: 29rem;
    grid-template-columns: 1.08fr 0.92fr;
  }

  .hero-illustration {
    min-height: auto;
  }

  .cup {
    right: 23%;
    bottom: 2.2rem;
    transform: rotate(5deg) scale(1.12);
  }

  .steam-one {
    right: 52%;
    bottom: 15rem;
  }

  .steam-two {
    right: 42%;
    bottom: 15.4rem;
  }

  .steam-three {
    right: 32%;
    bottom: 15rem;
  }

  .cup-shadow {
    right: 17%;
    bottom: 1.6rem;
  }

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

  .order-card,
  .summary-card {
    padding: 2rem;
  }
}

@media (min-width: 68.75rem) {
  .site-shell {
    padding-top: 2rem;
  }

  .hero-copy {
    padding: 4rem 4.2rem;
  }

  .order-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.75fr);
    align-items: start;
    gap: 1.25rem;
  }

  .summary-card {
    position: sticky;
    top: 1.2rem;
  }
}
