:root {
  color-scheme: light;
  --rust: #b85c38;
  --rust-deep: #8f4322;
  --rust-pale: #f0dcd0;
  --forest: #365748;
  --forest-pale: #dce8df;
  --page: #f7f4ec;
  --surface: #fffdf8;
  --ink: #1c1917;
  --body: #403a35;
  --muted: #706960;
  --line: #ded5c7;
  --shadow: 0 14px 34px rgba(49, 38, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

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

button {
  border: 0;
  color: inherit;
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(184, 92, 56, 0.35);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  width: min(960px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(247, 244, 236, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body::before {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 29;
  height: 68px;
  border-bottom: 1px solid rgba(222, 213, 199, 0.85);
  background: rgba(247, 244, 236, 0.94);
  content: "";
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand span,
.footer-brand div {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  font-size: 17px;
  font-weight: 900;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.header-link {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 9px 0;
  color: var(--rust-deep);
  font-size: 16px;
  font-weight: 800;
}

main {
  overflow: hidden;
}

.hero,
.section-inner,
.questionnaire,
footer {
  width: min(960px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.hero {
  padding: clamp(52px, 9vw, 92px) 0 clamp(44px, 8vw, 76px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rust-deep);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.headline-primary,
.headline-accent {
  display: block;
  white-space: nowrap;
}

.headline-accent {
  color: var(--rust-deep);
}

.hero-lead {
  max-width: 700px;
  margin-bottom: 19px;
  color: var(--body);
  font-size: clamp(18px, 2.3vw, 21px);
}

.key-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--forest);
  font-weight: 900;
  list-style: none;
}

.key-points li::before {
  margin-right: 7px;
  content: "✓";
}

.offer-example {
  display: grid;
  gap: 3px;
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 16px;
}

.offer-example strong {
  margin-bottom: 3px;
  color: var(--body);
  font-size: 19px;
}

.offer-example span {
  color: var(--body);
}

.offer-example p {
  margin: 5px 0 0;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.button.primary {
  background: var(--rust-deep);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(143, 67, 34, 0.18);
}

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

.app-preview {
  padding: clamp(40px, 7vw, 66px) 0;
  background: #efeade;
}

.section-heading {
  max-width: 700px;
}

.section-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1.17;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.screen-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  gap: clamp(18px, 5vw, 42px);
  justify-content: center;
  margin-top: 28px;
}

.screen-pair figure {
  margin: 0;
}

.screen-pair a {
  display: block;
  height: 430px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screen-pair picture,
.screen-pair img {
  display: block;
  width: 100%;
}

.screen-pair img {
  height: auto;
}

.screen-pair figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.screen-pair figcaption strong {
  font-size: 19px;
}

.screen-pair figcaption span {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.coupon-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.coupon-flow li {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-right: 1px solid var(--line);
}

.coupon-flow li:last-child {
  border-right: 0;
}

.coupon-flow span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rust-pale);
  color: var(--rust-deep);
  font-size: 15px;
  font-weight: 900;
}

.coupon-flow strong {
  font-size: 17px;
}

.questionnaire {
  max-width: 800px;
  padding: clamp(46px, 8vw, 78px) 0 58px;
}

.questionnaire-heading {
  margin-bottom: 30px;
}

.event-form {
  border-top: 1px solid var(--line);
}

.form-progress {
  display: grid;
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.form-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-progress strong {
  color: var(--rust-deep);
  font-size: 16px;
}

.form-progress span {
  color: var(--muted);
  font-size: 15px;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: var(--rust-deep);
  transition: width 180ms ease;
}

.form-step {
  padding: 30px 0 8px;
}

.step-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 24px;
}

.step-heading > span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rust-pale);
  color: var(--rust-deep);
  font-weight: 900;
}

.step-heading h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.3;
}

.step-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 16px;
}

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

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

.field.wide {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--body);
  font-weight: 800;
}

.field > span,
.field-group legend {
  font-size: 17px;
}

.field input,
.field textarea,
.number-field {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.field input,
.field textarea {
  padding: 12px 14px;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.file-field input:focus-visible + .file-preview {
  border-color: var(--rust);
  outline: 3px solid rgba(184, 92, 56, 0.14);
  outline-offset: 1px;
}

.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.step-actions .button {
  min-width: 180px;
}

.button.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--body);
}

.upload-list {
  display: grid;
  gap: 16px;
}

.file-field {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.file-field label {
  display: grid;
  gap: 2px;
}

.file-field label strong {
  font-size: 19px;
}

.file-field label small,
.file-field > p {
  color: var(--muted);
  font-size: 14px;
}

.file-field input[type="file"] {
  min-height: 52px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font: inherit;
  font-size: 15px;
}

.file-field input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 10px;
  padding: 6px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--rust-pale);
  color: var(--rust-deep);
  font-weight: 800;
}

.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-preview figure {
  width: 88px;
  margin: 0;
}

.file-preview img {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
}

.file-preview figcaption {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-group {
  min-width: 0;
  margin: 0;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.field-group legend {
  margin-bottom: 11px;
  color: var(--body);
  font-weight: 900;
}

.choice-row,
.binary-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-row label,
.binary-choice label {
  position: relative;
}

.choice-row input,
.binary-choice input {
  position: absolute;
  opacity: 0;
}

.choice-row span,
.binary-choice span {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--body);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.choice-row input:checked + span,
.binary-choice input:checked + span {
  border-color: var(--rust);
  background: var(--rust-pale);
  color: var(--rust-deep);
}

.choice-row input:focus-visible + span,
.binary-choice input:focus-visible + span {
  outline: 3px solid rgba(184, 92, 56, 0.25);
  outline-offset: 2px;
}

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

.binary-choice label {
  flex: 1;
}

.binary-choice span {
  width: 100%;
}

.popular-dishes {
  margin-top: 4px;
}

.field-error {
  min-height: 22px;
  margin: 6px 0 0;
  color: #9f2f28;
  font-size: 14px;
  font-weight: 800;
}

.number-field {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.number-field input {
  min-width: 0;
  border: 0;
  outline: 0;
}

.number-field em {
  padding-right: 14px;
  color: var(--muted);
  font-style: normal;
}

.offer-total {
  display: block;
  margin-top: 16px;
  padding: 16px;
  border-left: 4px solid var(--forest);
  background: var(--forest-pale);
  color: var(--forest);
  font-size: 18px;
  font-weight: 900;
}

.standard-rules {
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.standard-rules strong {
  font-size: 18px;
}

.standard-rules ul {
  margin: 8px 0 0;
  padding-left: 22px;
  color: var(--body);
  font-size: 15px;
}

.consent-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 20px;
  color: var(--body);
  font-size: 15px;
}

.consent-row input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--rust-deep);
}

.form-status {
  min-height: 28px;
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 800;
}

.form-status[data-tone="error"] {
  color: #9f2f28;
}

.form-status[data-tone="loading"] {
  color: var(--rust-deep);
}

.form-status[data-tone="success"] {
  color: var(--forest);
}

.success-panel {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--forest);
}

.success-panel strong {
  font-size: 25px;
}

.success-panel p {
  margin: 5px 0 0;
  color: var(--body);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 16px;
}

.footer-brand span {
  margin-top: 2px;
  font-size: 13px;
}

footer > a {
  min-height: 44px;
  padding: 9px 0;
  color: var(--rust-deep);
  font-weight: 800;
}

.mobile-action {
  display: none;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 72px;
  }

  body {
    font-size: 17px;
  }

  body::before {
    height: 62px;
  }

  .site-header {
    width: calc(100% - 28px);
    min-height: 62px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 16px;
  }

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

  .header-link {
    font-size: 15px;
  }

  .hero,
  .section-inner,
  .questionnaire,
  footer {
    width: min(100% - 28px, 620px);
  }

  .hero {
    padding: 32px 0 38px;
  }

  .eyebrow {
    font-size: 13px;
  }

  h1 {
    margin-bottom: 15px;
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.15;
  }

  .hero-lead {
    margin-bottom: 16px;
    font-size: 18px;
  }

  .key-points {
    gap: 5px 16px;
    margin-bottom: 14px;
    font-size: 16px;
  }

  .offer-example {
    margin-bottom: 20px;
    font-size: 15px;
  }

  .button {
    width: 100%;
    min-height: 54px;
  }

  .app-preview {
    padding: 34px 0 30px;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .screen-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
  }

  .screen-pair a {
    height: 330px;
    border-radius: 20px;
  }

  .screen-pair figcaption {
    display: grid;
    gap: 1px;
    margin-top: 7px;
  }

  .screen-pair figcaption strong {
    font-size: 17px;
  }

  .screen-pair figcaption span {
    font-size: 13px;
    text-align: left;
  }

  .coupon-flow {
    margin-top: 22px;
    padding-top: 14px;
  }

  .coupon-flow li {
    display: grid;
    grid-template-columns: 26px minmax(0, auto);
    gap: 5px;
    padding: 0 5px;
  }

  .coupon-flow span {
    width: 25px;
    height: 25px;
    font-size: 13px;
  }

  .coupon-flow strong {
    font-size: 14px;
    line-height: 1.3;
  }

  .questionnaire {
    padding: 40px 0 38px;
  }

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

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

  .field-grid {
    gap: 14px;
  }

  .form-progress {
    padding: 16px 0;
  }

  .form-step {
    padding-top: 24px;
  }

  .step-heading h3 {
    font-size: 23px;
  }

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

  .step-actions .button:only-child {
    grid-column: 1 / -1;
  }

  .step-actions .button {
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 16px;
  }

  .binary-grid {
    gap: 0;
  }

  .offer-total {
    font-size: 17px;
  }

  footer {
    padding-bottom: 22px;
  }

  .mobile-action {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: block;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    visibility: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 0s linear 180ms;
  }

  .mobile-action.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .mobile-action a {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--rust-deep);
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
  }
}

@media (max-width: 350px) {
  .screen-pair a {
    height: 285px;
  }

  .coupon-flow strong {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mobile-action {
    transition: none;
  }
}
