:root {
  --bg: #faf7f1;
  --bg-warm: #f8f3ea;
  --green: #063f2a;
  --green-deep: #043d29;
  --green-text: #063524;
  --green-soft: #eaf4ec;
  --green-soft-2: #f0f6f1;
  --paper: #fffdf8;
  --paper-warm: #fbf6ec;
  --line: #e7d8c8;
  --line-green: #d8e2d6;
  --muted: #5f6f68;
  --muted-light: #87958f;
  --accent: #d86f45;
  --accent-soft: #f6e1d5;
  --danger: #a8331e;
  --success: #16744c;
  --shadow-card: 0 18px 44px rgba(78, 57, 32, .09);
  --shadow-light: 0 10px 24px rgba(78, 57, 32, .07);
  --radius-large: 28px;
  --radius-card: 18px;
  --radius-small: 12px;
  --radius-pill: 999px;
  --font-sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
}

body {
  color: var(--green-text);
  font-family: var(--font-sans);
  letter-spacing: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(216, 111, 69, .08), transparent 28%),
    radial-gradient(circle at 92% 22%, rgba(6, 63, 42, .08), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-warm));
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .7;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  left: 12px;
  top: 12px;
  transform: translateY(-140%);
  border-radius: var(--radius-small);
  background: var(--green);
  padding: 10px 12px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(216, 111, 69, .45);
}

.h5-shell,
.h5-viewport {
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  position: relative;
}

.h5-shell {
  isolation: isolate;
}

.slide-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scroll-behavior: smooth;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slide-track::-webkit-scrollbar {
  display: none;
}

.h5-slide {
  flex: 0 0 100vw;
  min-width: 100vw;
  width: 100vw;
  height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: hidden;
}

.slide-card {
  --slide-baseline-bottom: 24px;
  width: min(100%, 430px);
  height: calc(100svh - 24px);
  max-height: 820px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(231, 216, 200, .78);
  border-radius: var(--radius-large);
  display: flex;
  flex-direction: column;
  padding: 20px;
  background:
    radial-gradient(circle at 90% 18%, rgba(234, 244, 236, .78), transparent 32%),
    linear-gradient(180deg, var(--paper), var(--paper-warm));
  box-shadow: var(--shadow-card);
}

.slide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(6, 53, 36, .018) 0 1px, transparent 1px 16px),
    linear-gradient(120deg, rgba(255, 255, 255, .55), transparent 42%);
}

.slide-card > * {
  position: relative;
  z-index: 1;
}

.cover-card .hero-copy {
  margin-top: clamp(10px, 2.2svh, 18px);
}

.cover-card .cover-actions {
  margin-top: auto;
  margin-bottom: var(--slide-baseline-bottom);
}

.how-card .feature-carousel {
  margin-top: auto;
  margin-bottom: var(--slide-baseline-bottom);
}

.scenario-card-shell .scene-output {
  margin-top: auto;
  margin-bottom: var(--slide-baseline-bottom);
}

.system-card .collab-result-card {
  margin-top: auto;
  margin-bottom: var(--slide-baseline-bottom);
}

.invite-card .co-create-panel {
  margin-top: clamp(14px, 2.6svh, 22px);
}

.invite-action {
  margin-bottom: 0;
}

.slide-topbar,
.form-topbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.top-pill,
.form-step-pill {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .14em;
}

.hero-copy,
.slide-copy,
.invite-copy {
  display: grid;
  gap: 14px;
}

.hero-copy h1,
.slide-copy h2,
.invite-copy h2 {
  color: var(--green);
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.08;
  font-weight: 900;
}

.cover-slide .hero-copy h1 {
  font-size: 33px;
  line-height: 1.13;
}

.hero-copy h1 span {
  display: inline-block;
}

.hero-copy h1 .title-context {
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-size: .66em;
  line-height: 1.28;
  font-weight: 820;
}

.hero-copy h1 .title-core {
  font-size: 1em;
  font-weight: 930;
}

.hero-copy h1 .title-close {
  margin-top: 4px;
  font-size: .98em;
  font-weight: 900;
}

.slide-copy h2,
.invite-copy h2 {
  font-family: var(--font-sans);
  font-size: 32px;
  line-height: 1.12;
}

.hero-copy p:not(.eyebrow),
.slide-copy p:not(.eyebrow),
.invite-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 650;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-align: center;
  font-weight: 900;
}

.primary-action {
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 22px rgba(6, 63, 42, .16);
}

.secondary-action {
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(216, 226, 214, .72);
}

.swipe-cue {
  position: absolute;
  z-index: 5;
  right: 12px;
  top: 54%;
  width: 17px;
  height: 17px;
  border-top: 2px solid rgba(6, 53, 36, .34);
  border-right: 2px solid rgba(6, 53, 36, .34);
  transform: rotate(45deg);
  pointer-events: none;
  animation: cueDrift 1.9s var(--ease) infinite;
}

.cover-slide .swipe-cue {
  top: 48%;
  right: 14px;
}

.invite-slide .swipe-cue {
  display: none;
}

@keyframes cueDrift {
  0%, 100% {
    opacity: .35;
    translate: 0 0;
  }
  50% {
    opacity: .62;
    translate: 5px 0;
  }
}

.cover-card {
  gap: 12px;
}

.variable-stage {
  min-height: clamp(176px, 28svh, 212px);
  position: relative;
  margin-top: clamp(14px, 2.6svh, 22px);
}

.variable-line {
  position: absolute;
  left: 16px;
  right: 12px;
  top: 112px;
  height: 1px;
  background: rgba(138, 112, 88, .3);
}

.variable-card {
  position: absolute;
  z-index: 2;
  width: 84px;
  min-height: 54px;
  border: 1px solid rgba(231, 216, 200, .95);
  border-radius: 15px;
  display: grid;
  justify-items: start;
  gap: 5px;
  padding: 10px;
  text-align: left;
  color: var(--green);
  background: rgba(255, 253, 248, .92);
  box-shadow: var(--shadow-light);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
  animation: cardFloat 2.8s var(--ease) infinite alternate;
}

.variable-card small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.variable-card strong {
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

.variable-card.is-active {
  border-color: rgba(216, 111, 69, .48);
  background: #fffaf4;
  transform: translateY(-3px) rotate(var(--rotate, 0deg));
}

.variable-late {
  --rotate: -4deg;
  left: 8px;
  top: 18px;
  transform: rotate(-4deg);
}

.variable-takeout {
  --rotate: 4deg;
  right: 6px;
  top: 12px;
  transform: rotate(4deg);
  animation-delay: .16s;
}

.variable-sleep {
  --rotate: 4deg;
  left: 10px;
  top: 150px;
  transform: rotate(4deg);
  animation-delay: .28s;
}

.variable-tired {
  --rotate: -3deg;
  right: 6px;
  top: 154px;
  transform: rotate(-3deg);
  animation-delay: .42s;
}

@keyframes cardFloat {
  from { translate: 0 0; }
  to { translate: 0 -5px; }
}

.recalculate-card {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 74px;
  width: 170px;
  min-height: 88px;
  transform: translateX(-50%);
  border-radius: 22px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 16px;
  color: #fff;
  text-align: center;
  background: var(--green);
  box-shadow: 0 24px 44px rgba(6, 63, 42, .18);
}

.recalculate-card small {
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  letter-spacing: .12em;
  font-weight: 900;
}

.recalculate-card strong {
  font-size: 24px;
  line-height: 1.08;
  font-weight: 900;
}

.recalculate-card span {
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 700;
}

.cover-actions {
  display: grid;
  gap: 11px;
  margin-top: 4px;
  padding-bottom: 0;
}

.cover-closeout {
  position: relative;
  min-height: 42px;
  border: 1px solid rgba(216, 226, 214, .72);
  border-radius: var(--radius-pill);
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  color: rgba(6, 53, 36, .72);
  background:
    linear-gradient(180deg, rgba(234, 244, 236, .78), rgba(255, 253, 248, .68));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.cover-closeout span {
  position: relative;
  white-space: nowrap;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 900;
}

.cover-closeout span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: rgba(6, 63, 42, .52);
  vertical-align: 1px;
}

.cover-closeout span:nth-of-type(2)::before {
  background: rgba(216, 111, 69, .58);
}

.cover-closeout i {
  height: 1px;
  min-width: 14px;
  background: rgba(6, 63, 42, .18);
}

.how-card {
  gap: 16px;
}

.timeline-card {
  border: 1px solid rgba(231, 216, 200, .9);
  border-radius: 24px;
  display: grid;
  gap: 14px;
  padding: 18px 16px 18px 28px;
  background: rgba(255, 253, 248, .8);
  box-shadow: var(--shadow-light);
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: 13px;
  top: -18px;
  bottom: -18px;
  width: 2px;
  background: rgba(6, 63, 42, .42);
}

.timeline-step:first-child::before {
  top: 50%;
}

.timeline-step:last-child::before {
  bottom: 50%;
}

.timeline-step > span {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 5px solid var(--green-soft);
  border-radius: 50%;
  background: var(--green);
}

.timeline-step div {
  border-radius: 16px;
  padding: 13px 14px;
  background: var(--green-soft-2);
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.timeline-step.is-active div {
  background: var(--green-soft);
  transform: translateX(2px);
}

.timeline-step strong {
  display: block;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.timeline-step p {
  margin-top: 5px;
  color: var(--green-text);
  font-size: 12px;
  line-height: 1.4;
}

.feature-carousel {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 12px;
  margin-top: 2px;
}

.feature-rail {
  display: flex;
  gap: 12px;
  margin: 0 -20px;
  padding: 0 20px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.feature-rail::-webkit-scrollbar {
  display: none;
}

.feature-card {
  flex: 0 0 78%;
  min-height: 156px;
  border: 1px solid rgba(231, 216, 200, .94);
  border-radius: 18px;
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  text-align: left;
  color: var(--green-text);
  background: rgba(255, 253, 248, .88);
  box-shadow: var(--shadow-light);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), background 180ms var(--ease);
}

.feature-card span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  background: var(--green-soft);
  font-size: 18px;
  font-weight: 900;
}

.feature-card strong {
  font-size: 20px;
  font-weight: 900;
}

.feature-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.feature-card.is-active {
  border-color: rgba(6, 63, 42, .28);
  background: #fff;
  transform: translateY(-2px);
}

.feature-dots {
  display: flex;
  gap: 7px;
}

.feature-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-green);
}

.feature-dots span.is-active {
  width: 24px;
  border-radius: var(--radius-pill);
  background: var(--green);
}

.work-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.scenario-card-shell {
  gap: 16px;
}

.scenario-stack {
  position: relative;
  flex: 1 1 auto;
  min-height: 318px;
}

.scenario-card {
  position: absolute;
  left: 0;
  right: 0;
  min-height: 44px;
  height: 124px;
  border: 1px solid rgba(231, 216, 200, .95);
  border-radius: 20px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  text-align: left;
  color: var(--green-text);
  background: var(--paper);
  box-shadow: var(--shadow-light);
  transition: transform 240ms var(--ease), opacity 240ms var(--ease), border-color 240ms var(--ease);
}

.scenario-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.scenario-card strong {
  color: var(--green);
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.scenario-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.scenario-card[data-stack-position="front"] {
  z-index: 5;
  transform: translateY(0) rotate(-2deg);
}

.scenario-card[data-stack-position="middle"] {
  z-index: 3;
  transform: translateY(98px) rotate(2deg) scale(.98);
  background: var(--green-soft);
}

.scenario-card[data-stack-position="back"] {
  z-index: 1;
  transform: translateY(196px) rotate(-1deg) scale(.96);
  background: #fff9ef;
}

.scenario-card.is-active {
  border-color: rgba(6, 63, 42, .32);
}

.scenario-card:not(.is-active) {
  opacity: .88;
}

.scene-output {
  border: 1px solid rgba(231, 216, 200, .92);
  border-radius: 20px;
  display: grid;
  gap: 9px;
  padding: 16px;
  color: var(--green-text);
  background: rgba(255, 253, 248, .9);
  box-shadow: var(--shadow-light);
}

.scene-output span {
  width: max-content;
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.scene-output h3 {
  color: var(--green);
  font-size: 22px;
  line-height: 1.1;
}

.scene-output p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.system-card {
  gap: 14px;
}

.system-heading {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
}

.system-heading .collab-pill {
  position: absolute;
  right: 0;
  top: 0;
}

.system-heading h2 {
  color: var(--green);
  font-size: 28px;
  line-height: 1.15;
}

.system-heading .eyebrow {
  margin-bottom: 9px;
}

.system-heading p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.collab-pill {
  border-radius: var(--radius-pill);
  padding: 7px 10px;
  color: #fff;
  background: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.collab-pill.is-pulsing {
  animation: softPulse 520ms var(--ease);
}

@keyframes softPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.system-main-card {
  border-radius: 20px;
  display: grid;
  gap: 10px;
  padding: 18px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 16px 34px rgba(6, 63, 42, .16);
}

.system-main-card strong {
  font-size: 21px;
  line-height: 1.1;
  font-weight: 900;
}

.system-main-card p {
  color: rgba(255, 255, 255, .8);
  font-size: 12.5px;
  line-height: 1.48;
  font-weight: 650;
}

.system-steps {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.system-steps span {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-pill);
  padding: 5px 8px;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .08);
  font-size: 10px;
  font-weight: 900;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.area-card {
  min-height: 126px;
  border: 1px solid rgba(231, 216, 200, .86);
  border-radius: 17px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
  color: var(--green-text);
  text-align: left;
  background: rgba(255, 253, 248, .86);
  box-shadow: var(--shadow-light);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.area-card span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
}

.area-card strong {
  color: var(--green);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
}

.area-card p {
  color: var(--muted);
  font-size: 10.8px;
  line-height: 1.38;
}

.area-card em {
  color: var(--green-text);
  font-size: 10.8px;
  line-height: 1.38;
  font-style: normal;
  font-weight: 800;
}

.area-card.is-active {
  border-color: rgba(6, 63, 42, .3);
  background: var(--green-soft);
  transform: translateY(-2px);
}

.collab-result-card {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 1px solid rgba(231, 216, 200, .78);
  border-radius: 20px;
  display: grid;
  gap: 9px;
  min-height: 126px;
  padding: 15px 15px 13px;
  margin-top: 15px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .97), rgba(251, 246, 236, .95));
  box-shadow:
    0 11px 22px rgba(78, 57, 32, .055),
    inset 0 1px 0 rgba(255, 255, 255, .72);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.collab-result-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 14px;
  right: 14px;
  bottom: -7px;
  height: 18px;
  border: 1px solid rgba(216, 226, 214, .64);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(234, 244, 236, .58);
}

.collab-result-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 12px;
  right: 12px;
  top: 11px;
  height: 32px;
  border-radius: 14px;
  background: rgba(234, 244, 236, .5);
}

.collab-result-card > * {
  position: relative;
  z-index: 1;
}

.collab-result-card > span {
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.collab-result-card p {
  color: var(--green);
  display: grid;
  gap: 3px;
  font-size: 15.5px;
  line-height: 1.34;
}

.collab-result-card p strong {
  color: var(--green);
  font-size: 15.8px;
  line-height: 1.28;
  font-weight: 900;
}

.collab-result-card p small {
  color: rgba(6, 53, 36, .78);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 760;
}

.result-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 1px;
}

.result-pills em {
  border: 1px solid rgba(216, 226, 214, .82);
  border-radius: var(--radius-pill);
  padding: 5px 8px;
  color: rgba(6, 53, 36, .76);
  background: rgba(255, 253, 248, .72);
  font-size: 10px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
}

.collab-result-card.is-updating {
  animation: resultSettle 240ms var(--ease);
}

@keyframes resultSettle {
  0% {
    opacity: .72;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.invite-card {
  gap: 8px;
}

.invite-copy {
  margin-top: 12px;
}

.co-create-panel {
  border: 1px solid rgba(231, 216, 200, .92);
  border-radius: 28px;
  display: grid;
  align-content: center;
  gap: 13px;
  min-height: 306px;
  padding: 19px 18px 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, .94), rgba(255, 251, 244, .9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 12px 26px rgba(78, 57, 32, .06);
}

.co-create-intro {
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

.co-create-kicker {
  border: 1px solid rgba(216, 226, 214, .82);
  border-radius: var(--radius-pill);
  padding: 6px 10px 5px;
  color: rgba(6, 63, 42, .78);
  background: rgba(234, 244, 236, .78);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .12em;
}

.co-create-title {
  color: var(--green);
  font-size: clamp(22px, 5.8vw, 26px);
  line-height: 1.12;
  font-weight: 900;
}

.co-create-steps {
  list-style: none;
  margin: 1px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.co-create-step {
  border: 1px solid rgba(216, 226, 214, .68);
  border-radius: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  min-height: 50px;
  padding: 9px 11px;
  cursor: default;
  color: var(--green);
  background: rgba(240, 246, 241, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .56);
}

.step-index {
  border-radius: var(--radius-pill);
  min-width: 28px;
  padding: 4px 0;
  color: rgba(6, 63, 42, .66);
  background: rgba(234, 244, 236, .82);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.co-create-step strong {
  display: block;
  margin-bottom: 3px;
  color: var(--green);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.co-create-step em {
  display: block;
  color: rgba(6, 53, 36, .62);
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.32;
  font-weight: 650;
}

.co-create-note {
  color: rgba(6, 53, 36, .68);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 720;
  text-align: left;
}

.invite-action {
  width: 100%;
  margin-top: 14px;
  margin-bottom: 0;
}

.invite-slide .reservation-start-btn {
  background: var(--green);
  box-shadow: 0 10px 22px rgba(6, 63, 42, .16);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms var(--ease);
}

.invite-slide .reservation-start-btn:active {
  transform: translateY(1px);
  box-shadow: 0 7px 16px rgba(6, 63, 42, .14);
}

.slide-progress {
  position: fixed;
  z-index: 18;
  top: calc(env(safe-area-inset-top) + 22px);
  right: calc(env(safe-area-inset-right) + 22px);
  display: flex;
  gap: 7px;
  pointer-events: none;
}

.progress-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0;
  background: rgba(6, 63, 42, .22);
  pointer-events: auto;
  transition: width 180ms var(--ease), background 180ms var(--ease);
}

.progress-dot.is-active {
  width: 24px;
  background: var(--green);
}

.reservation-flow {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100vw;
  height: 100svh;
  display: grid;
  place-items: start center;
  padding: calc(env(safe-area-inset-top) + 12px) 12px 12px;
  color: var(--green-text);
  background:
    radial-gradient(circle at 16% 8%, rgba(216, 111, 69, .08), transparent 28%),
    linear-gradient(180deg, #faf7f1, #f8f3ea);
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 220ms var(--ease), transform 220ms var(--ease);
}

.reservation-flow[hidden] {
  display: none;
}

.reservation-flow.is-open {
  opacity: 1;
  transform: translateX(0);
}

.h5-shell.is-form-open .h5-viewport {
  visibility: hidden;
}

.reservation-form {
  width: min(calc(100vw - 24px), 430px);
  height: min(720px, calc(100svh - 24px));
  max-height: calc(100svh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(231, 216, 200, .9);
  border-radius: var(--radius-large);
  padding: 20px;
  background:
    repeating-linear-gradient(0deg, rgba(6, 53, 36, .016) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, var(--paper), var(--paper-warm));
  box-shadow: var(--shadow-card);
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  font-size: 28px;
  line-height: 1;
}

.form-status {
  margin: 8px 0 0;
  border-radius: var(--radius-small);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: var(--danger);
  background: rgba(168, 51, 30, .08);
}

.form-status.is-success {
  color: var(--success);
  background: rgba(22, 116, 76, .08);
}

.form-step {
  flex: 1 1 auto;
  min-height: 0;
  display: none;
  flex-direction: column;
  gap: 15px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 4px 12px;
  scrollbar-width: none;
}

.form-step::-webkit-scrollbar {
  display: none;
}

.form-step.is-active {
  display: flex;
}

.form-step[hidden] {
  display: none;
}

.form-step h2 {
  color: var(--green);
  font-size: 32px;
  line-height: 1.12;
}

#step-three-title {
  font-size: 25px;
  line-height: 1.16;
}

.form-step p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.52;
}

.form-note {
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--green-soft-2);
  font-size: 12px !important;
}

.field {
  display: grid;
  gap: 9px;
}

.field label,
.field legend {
  color: var(--green-text);
  font-size: 14px;
  font-weight: 900;
}

fieldset.field {
  margin: 0;
  border: 0;
  padding: 0;
}

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(216, 226, 214, .94);
  border-radius: 16px;
  outline: none;
  background: var(--green-soft-2);
  color: var(--green-text);
  padding: 14px 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #95a39c;
}

.option,
.privacy-option {
  border: 1px solid rgba(231, 216, 200, .88);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: var(--green-text);
  background: rgba(255, 253, 248, .84);
  box-shadow: 0 8px 16px rgba(78, 57, 32, .05);
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 800;
}

.option {
  min-height: 52px;
}

.option input,
.privacy-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.option:has(input:checked),
.privacy-option:has(input:checked) {
  border-color: rgba(6, 63, 42, .28);
  background: var(--green-soft);
}

.privacy-option {
  align-items: flex-start;
  font-weight: 650;
}

.field.is-invalid input[type="text"],
.field.is-invalid select,
.field.is-invalid textarea,
.choice-field.is-invalid,
.privacy-option.is-invalid {
  border-color: rgba(168, 51, 30, .64);
  background: rgba(168, 51, 30, .06);
}

.choice-field.is-invalid,
.privacy-option.is-invalid {
  border: 1px solid rgba(168, 51, 30, .48);
  border-radius: 16px;
  padding: 10px;
}

.choice-field.is-invalid::after,
.privacy-option.is-invalid::after {
  display: block;
  margin-top: 8px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.choice-field.is-invalid::after {
  content: "至少选择一个真实卡点";
}

.privacy-option.is-invalid {
  flex-wrap: wrap;
}

.privacy-option.is-invalid::after {
  content: "请先勾选隐私同意";
  flex-basis: 100%;
  padding-left: 30px;
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 11px;
  margin-top: auto;
}

.form-next,
.submit-btn {
  width: 100%;
  min-height: 54px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(6, 63, 42, .14);
}

.form-step[data-form-step="1"] .form-next {
  margin-top: 0;
}

.success-step {
  justify-content: center;
  text-align: center;
}

.success-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  color: #fff;
  background: var(--success);
  font-size: 34px;
  font-weight: 900;
}

.success-qr-list {
  border: 1px solid rgba(6, 63, 42, .14);
  border-radius: var(--radius-card);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: rgba(255, 253, 246, .74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 12px 28px rgba(6, 63, 42, .08);
}

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

.success-qr-card {
  min-width: 0;
  border: 1px solid rgba(6, 63, 42, .12);
  border-radius: 18px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 10px 8px;
  color: var(--green);
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(237, 245, 239, .72));
  box-shadow: 0 8px 18px rgba(6, 63, 42, .08);
}

.success-qr-card img {
  width: 112px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #fff;
  object-fit: cover;
}

.success-qr-card span,
.qr-empty {
  color: rgba(6, 45, 31, .72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.qr-empty {
  grid-column: 1 / -1;
  margin: 0;
}

.variable-card:focus-visible,
.feature-card:focus-visible,
.scenario-card:focus-visible,
.area-card:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.progress-dot:focus-visible,
.icon-button:focus-visible,
.top-pill:focus-visible {
  outline: 3px solid rgba(216, 111, 69, .36);
  outline-offset: 3px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(6, 63, 42, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 0 0 3px rgba(6, 63, 42, .09);
}

.option:focus-within,
.privacy-option:focus-within {
  outline: 2px solid rgba(6, 63, 42, .22);
  outline-offset: 2px;
}

@media (min-width: 760px) {
  .h5-slide {
    padding: 28px;
  }

  .slide-card {
    height: min(820px, calc(100svh - 56px));
  }
}

@media (max-width: 374px) {
  .h5-slide,
  .reservation-flow {
    padding: 10px;
  }

  .slide-card,
  .reservation-form {
    padding: 16px;
  }

  .hero-copy h1 {
    font-size: 29px;
  }

  .cover-slide .hero-copy h1 {
    font-size: 29px;
  }

  .slide-copy h2,
  .invite-copy h2 {
    font-size: 29px;
  }

  .variable-card {
    width: 84px;
  }

  .area-card {
    min-height: 126px;
  }
}

@media (max-height: 760px) {
  .slide-card {
    padding: 16px;
  }

  .brand {
    font-size: 22px;
  }

  .hero-copy h1 {
    font-size: 33px;
  }

  .cover-slide .hero-copy h1 {
    font-size: 30px;
    line-height: 1.13;
  }

  .slide-copy h2,
  .invite-copy h2 {
    font-size: 28px;
  }

  .hero-copy,
  .slide-copy,
  .invite-copy {
    gap: 10px;
  }

  .cover-card {
    gap: 9px;
  }

  .variable-stage {
    min-height: 178px;
    margin-top: 12px;
  }

  .variable-line {
    top: 88px;
  }

  .variable-card {
    width: 82px;
    min-height: 50px;
  }

  .variable-late {
    top: 8px;
  }

  .variable-takeout {
    top: 6px;
  }

  .variable-sleep {
    top: 108px;
  }

  .variable-tired {
    top: 112px;
  }

  .recalculate-card {
    top: 46px;
    width: 158px;
    min-height: 80px;
  }

  .cover-actions {
    gap: 9px;
  }

  .cover-closeout {
    min-height: 38px;
    gap: 6px;
    padding: 0 10px;
  }

  .cover-closeout span {
    font-size: 9.6px;
  }

  .cover-closeout span::before {
    width: 5px;
    height: 5px;
    margin-right: 4px;
  }

  .timeline-card {
    gap: 7px;
    padding: 11px 10px 11px 22px;
    border-radius: 20px;
  }

  .how-card {
    gap: 10px;
  }

  .how-slide .slide-topbar {
    min-height: 36px;
  }

  .how-slide .top-pill {
    padding: 6px 12px;
  }

  .how-slide .slide-copy {
    gap: 8px;
  }

  .how-slide .slide-copy h2 {
    font-size: 26px;
    line-height: 1.08;
  }

  .how-slide .slide-copy p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.45;
  }

  .timeline-step {
    grid-template-columns: 22px 1fr;
    gap: 8px;
  }

  .timeline-step::before {
    left: 10px;
    top: -12px;
    bottom: -12px;
  }

  .timeline-step > span {
    width: 16px;
    height: 16px;
    border-width: 4px;
  }

  .timeline-step div {
    padding: 9px 11px;
    border-radius: 14px;
  }

  .timeline-step strong {
    font-size: 13px;
  }

  .timeline-step p {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.32;
  }

  .feature-carousel {
    min-height: 184px;
    gap: 9px;
    margin-top: 0;
  }

  .feature-card {
    flex-basis: 72%;
    min-height: 136px;
    gap: 8px;
    padding: 12px;
  }

  .feature-card span {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .feature-card strong {
    font-size: 17px;
  }

  .feature-card p {
    font-size: 11.5px;
    line-height: 1.35;
  }

  .scenario-stack {
    min-height: 280px;
  }

  .scenario-card {
    height: 110px;
  }

  .scenario-card[data-stack-position="middle"] {
    transform: translateY(86px) rotate(2deg) scale(.98);
  }

  .scenario-card[data-stack-position="back"] {
    transform: translateY(172px) rotate(-1deg) scale(.96);
  }

  .area-card {
    min-height: 108px;
    padding: 10px;
    gap: 6px;
  }

  .system-card {
    gap: 11px;
  }

  .system-heading h2 {
    font-size: 25px;
  }

  .system-heading .eyebrow {
    margin-bottom: 7px;
  }

  .system-heading p:not(.eyebrow) {
    font-size: 10.8px;
    line-height: 1.38;
  }

  .system-main-card {
    padding: 14px;
  }

  .system-main-card strong {
    font-size: 19px;
  }

  .system-main-card p,
  .area-card p,
  .area-card em {
    font-size: 9.8px;
    line-height: 1.32;
  }

  .collab-result-card {
    gap: 6px;
    min-height: 112px;
    padding: 12px 13px 10px;
    margin-top: 11px;
  }

  .collab-result-card p strong {
    font-size: 13.4px;
    line-height: 1.28;
  }

  .collab-result-card p small {
    font-size: 11.2px;
    line-height: 1.35;
  }

  .result-pills {
    gap: 6px;
  }

  .result-pills em {
    padding: 4px 7px;
    font-size: 9.5px;
  }

  .invite-copy {
    margin-top: 12px;
  }

  .co-create-panel {
    gap: 10px;
    min-height: 298px;
    padding: 14px;
  }

  .co-create-intro {
    gap: 7px;
  }

  .co-create-title {
    font-size: clamp(21px, 5.5vw, 24px);
  }

  .co-create-steps {
    gap: 7px;
  }

  .co-create-step {
    min-height: 47px;
    padding: 8px 10px;
  }

  .co-create-step em {
    font-size: 11px;
    line-height: 1.28;
  }

  .co-create-note {
    font-size: 12.5px;
    line-height: 1.38;
  }

  .invite-action {
    margin-top: 14px;
  }

  .form-step {
    gap: 12px;
    padding-top: 14px;
  }

  .form-step h2 {
    font-size: 27px;
  }

  #step-three-title {
    font-size: 23px;
  }

  .field textarea {
    min-height: 92px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
