: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;
  --image-scrim: #878683;
  --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;
}

.context-trail {
  display: flex;
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 22px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.context-trail a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.context-trail strong {
  color: var(--ink);
}

.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 .offer-recommendation {
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 800;
}

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

.offer-example small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.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;
}

.redemption-guide {
  margin: 30px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.redemption-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
}

.redemption-heading h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
}

.redemption-heading p {
  margin: 0;
  color: var(--body);
  font-size: 17px;
  font-weight: 700;
}

.redemption-steps {
  display: grid;
  max-width: 760px;
  margin: 20px auto 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 32px);
}

.redemption-step {
  margin: 0;
}

.redemption-step > a {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: var(--image-scrim);
  box-shadow: var(--shadow);
}

.redemption-step img {
  display: block;
  width: 100%;
  height: auto;
}

.redemption-step figcaption {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.redemption-step figcaption span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rust-pale);
  color: var(--rust-deep);
  font-size: 16px;
  font-weight: 900;
}

.redemption-step figcaption strong {
  font-size: 18px;
  line-height: 1.45;
}

.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 {
  border-color: var(--rust);
  outline: 3px solid rgba(184, 92, 56, 0.14);
  outline-offset: 1px;
}

.field input[aria-invalid="true"] {
  border-color: #9f2f28;
  outline-color: rgba(159, 47, 40, 0.16);
}

.field-inline-error {
  margin: 0;
  color: #9f2f28;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.field-inline-error:empty {
  display: none;
}

.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: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

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

.file-field-heading > div {
  display: grid;
  gap: 2px;
}

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

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

.file-field-heading [data-photo-count] {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--rust-pale);
  color: var(--rust-deep);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
}

.file-field > p[data-tone="loading"] {
  color: var(--rust-deep);
  font-weight: 800;
}

.file-field > p[data-tone="success"] {
  color: var(--forest);
  font-weight: 800;
}

.file-field > p[data-tone="error"] {
  color: #9f2f28;
  font-weight: 800;
}

.photo-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0.01;
  white-space: nowrap;
}

.photo-picker-button {
  display: inline-flex;
  width: fit-content;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1.5px solid rgba(184, 92, 56, 0.46);
  border-radius: 12px;
  background: var(--rust-pale);
  color: var(--rust-deep);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
}

.photo-picker-button > span[aria-hidden="true"] {
  font-size: 22px;
  line-height: 1;
}

.photo-picker-button.is-disabled {
  border-color: var(--line);
  background: var(--page);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.file-field:has(.photo-file-input:focus-visible) .photo-picker-button {
  outline: 3px solid rgba(184, 92, 56, 0.2);
  outline-offset: 2px;
}

.file-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}

.file-preview:empty {
  display: none;
}

.photo-thumbnail {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
}

.photo-preview-button {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: zoom-in;
}

.photo-preview-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.photo-preview-button:hover img {
  transform: scale(1.035);
}

.photo-preview-button:focus-visible {
  outline: 3px solid rgba(184, 92, 56, 0.32);
  outline-offset: 2px;
}

.photo-remove-button {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.2);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

body.photo-lightbox-open {
  overflow: hidden;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100svh;
  place-items: center;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 13, 12, 0.9);
  cursor: zoom-out;
}

.photo-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 900px);
  height: 100%;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  padding: max(64px, env(safe-area-inset-top)) 8px
    max(24px, env(safe-area-inset-bottom));
  outline: 0;
  pointer-events: none;
}

.photo-lightbox-dialog figure {
  display: grid;
  min-width: 0;
  max-height: 100%;
  grid-column: 2;
  gap: 12px;
  justify-items: center;
  margin: 0;
  pointer-events: auto;
}

.photo-lightbox-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100svh - 150px);
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.32);
}

.photo-lightbox-dialog figcaption {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.photo-lightbox-close,
.photo-lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.photo-lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 14px;
  width: 48px;
  height: 48px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.photo-lightbox-nav {
  width: 48px;
  height: 48px;
  font-size: 38px;
  line-height: 1;
}

.photo-lightbox-nav.previous {
  grid-column: 1;
}

.photo-lightbox-nav.next {
  grid-column: 3;
}

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

.field-group legend {
  float: left;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  color: var(--body);
  font-weight: 900;
}

.field-group legend + * {
  clear: both;
}

.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-grid .field-group {
  padding-top: 16px;
  padding-bottom: 20px;
}

.binary-choice label {
  flex: 1;
}

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

/* 第 5 步沿用分類題的卡片與圓形選項，避免操作途中像切換到另一份問卷。 */
.form-step[data-step="5"] .field-group {
  margin: 20px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.form-step[data-step="5"] .field-group legend {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 22px;
}

.form-step[data-step="5"] .choice-row,
.form-step[data-step="5"] .binary-choice {
  gap: 10px;
}

.form-step[data-step="5"] .choice-row span,
.form-step[data-step="5"] .binary-choice span {
  width: auto;
  min-width: 0;
  padding: 10px 16px;
  border-width: 2px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 17px;
}

.form-step[data-step="5"] .binary-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.form-step[data-step="5"] .binary-grid .field-group {
  padding: 20px;
}

.form-step[data-step="5"] .binary-choice label {
  flex: 0 0 auto;
}

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

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

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

.opening-hours-group {
  padding-top: 0;
}

.hours-help {
  clear: both;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.hours-apply-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 11px 16px;
  border: 1px solid rgba(184, 92, 56, 0.45);
  border-radius: 999px;
  background: var(--rust-pale);
  color: var(--rust-deep);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.hours-apply-button:hover {
  border-color: var(--rust);
}

.hours-week-card {
  clear: both;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.hours-day-item {
  border-bottom: 1px solid var(--line);
}

.hours-day-item:last-child {
  border-bottom: 0;
}

.hours-day-row {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}

.hours-day-row:hover {
  background: #fff9f2;
}

.hours-day-item[data-expanded="true"] > .hours-day-row {
  background: var(--rust-pale);
}

.hours-day-left,
.hours-day-right {
  display: flex;
  min-width: 0;
  align-items: center;
}

.hours-day-left {
  flex: 0 0 74px;
  gap: 9px;
}

.hours-day-left strong {
  font-size: 17px;
}

.hours-day-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
}

.hours-day-row[data-state="open"] .hours-day-dot {
  background: var(--rust);
}

.hours-day-row[data-state="closed"] .hours-day-dot {
  background: var(--muted);
}

.hours-day-row[data-state="error"] .hours-day-dot {
  background: #9f2f28;
}

.hours-day-right {
  flex: 1;
  justify-content: flex-end;
  gap: 9px;
}

.hours-day-summary {
  overflow-wrap: anywhere;
  color: var(--body);
  font-size: 15px;
  font-weight: 800;
  text-align: right;
}

.hours-day-row[data-state="unset"] .hours-day-summary,
.hours-day-row[data-state="closed"] .hours-day-summary {
  color: var(--muted);
}

.hours-day-row[data-state="error"] .hours-day-summary {
  color: #9f2f28;
}

.hours-day-chevron {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  transition: transform 160ms ease;
}

.hours-day-item[data-expanded="true"] .hours-day-chevron {
  transform: rotate(90deg);
}

.hours-field-error {
  margin-top: 10px;
}

.hours-inline-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-top: 1px solid rgba(184, 92, 56, 0.25);
  background: #fff9f2;
  outline: 0;
}

.hours-inline-editor[hidden] {
  display: none;
}

.hours-status-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.hours-status-toggle button {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--page);
  color: var(--muted);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.hours-status-toggle button[data-hours-status="open"].is-active {
  border-color: var(--rust);
  background: var(--rust-pale);
  color: var(--rust-deep);
}

.hours-status-toggle button[data-hours-status="closed"].is-active {
  border-color: #c47b70;
  background: #f9e7e2;
  color: #8d332b;
}

.hours-slot-editor {
  display: grid;
  gap: 12px;
}

.hours-slot-editor[hidden] {
  display: none;
}

.hours-slot-block {
  display: grid;
  gap: 8px;
}

.hours-slot-block + .hours-slot-block {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hours-slot-header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hours-slot-label {
  color: var(--muted);
  font-size: 16px;
}

.hours-time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.hours-time-separator {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.hours-time-control {
  position: relative;
  display: grid;
  min-height: 68px;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 1px 6px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page);
  cursor: pointer;
}

.hours-time-caption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.hours-time-value {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hours-time-indicator {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.hours-time-control input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  opacity: 0;
}

.hours-time-control:focus-within {
  border-color: var(--rust);
  outline: 3px solid rgba(184, 92, 56, 0.14);
  outline-offset: 1px;
}

.hours-remove-slot {
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 10px;
  background: transparent;
  color: var(--rust-deep);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.hours-remove-slot:hover {
  background: var(--rust-pale);
}

.hours-add-slot {
  justify-self: start;
  min-height: 46px;
  padding: 9px 14px;
  border: 1px solid rgba(184, 92, 56, 0.34);
  border-radius: 12px;
  background: var(--rust-pale);
  color: var(--rust-deep);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.hours-add-slot:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

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

.hours-done-button {
  min-height: 54px;
  border-radius: 12px;
  background: var(--ink);
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.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;
}

.offer-total[data-tone="error"] {
  border-left-color: var(--rust-deep);
  background: var(--rust-pale);
  color: var(--rust-deep);
}

.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);
}

.success-line-card {
  display: grid;
  justify-items: start;
  gap: 9px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid rgba(35, 156, 75, 0.3);
  border-radius: 16px;
  background: #eefbf2;
  color: var(--ink);
}

.success-line-card .success-line-kicker {
  color: #147631;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.success-line-card > strong {
  color: var(--ink);
  font-size: 23px;
}

.success-line-card > p {
  margin: 0;
}

.success-line-card .success-store-name {
  color: #147631;
  font-size: 17px;
  font-weight: 800;
}

.line-community-button {
  width: 100%;
  margin-top: 5px;
  background: #06c755;
  color: #071f10;
  box-shadow: 0 10px 24px rgba(6, 199, 85, 0.2);
}

.line-community-button:hover {
  background: #05b94f;
}

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;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
}

.footer-links a {
  color: var(--rust-deep);
  font-size: 16px;
  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;
  }

  .context-trail {
    width: min(100% - 32px, 960px);
    padding-top: 16px;
    font-size: 13px;
  }

  .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);
  }

  .footer-links {
    justify-content: flex-start;
  }

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

  .eyebrow {
    margin-bottom: 10px;
    font-size: 16px;
    letter-spacing: 0.01em;
    line-height: 1.4;
  }

  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: 17px;
  }

  .offer-example {
    margin-bottom: 20px;
    gap: 5px;
    color: var(--body);
    font-size: 17px;
    line-height: 1.55;
  }

  .offer-example strong {
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.4;
  }

  .offer-example span {
    color: var(--ink);
    font-weight: 700;
  }

  .offer-example p {
    margin-top: 7px;
    color: var(--body);
    font-size: 17px;
    font-weight: 700;
  }

  .offer-example small {
    font-size: 16px;
  }

  .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: 18px;
  }

  .redemption-guide {
    margin-top: 22px;
    padding-top: 18px;
  }

  .redemption-heading {
    display: grid;
    gap: 3px;
  }

  .redemption-heading h3 {
    font-size: 24px;
  }

  .redemption-heading p {
    color: var(--ink);
    font-size: 17px;
  }

  .redemption-steps {
    max-width: 340px;
    margin-top: 16px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .redemption-step > a {
    border-radius: 20px;
  }

  .redemption-step figcaption {
    margin-top: 10px;
  }

  .redemption-step figcaption strong {
    font-size: 18px;
  }

  .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;
  }

  .hours-inline-editor {
    padding: 12px;
  }

  .hours-time-row {
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 4px;
  }

  .hours-time-control {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px;
  }

  .hours-time-value {
    font-size: 16px;
  }

  .hours-time-indicator {
    display: none;
  }
}

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

  .mobile-action {
    transition: none;
  }
}
