:root {
  color-scheme: light;
  --ink: #11130f;
  --paper: #f3f4ef;
  --surface: #ffffff;
  --muted: #6d7269;
  --line: #dfe2da;
  --acid: #c8f266;
  --acid-dark: #9ed13e;
  --danger: #c94b42;
  --danger-soft: #fff0ed;
  font-family: Arial, "Helvetica Neue", -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #e5e7e1;
  color: var(--ink);
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

.stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 430px) 390px;
  justify-content: center;
  align-items: center;
  gap: clamp(52px, 8vw, 128px);
  padding: 40px;
}

.stage-note { max-width: 420px; }
.stage-kicker {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.stage-note h1 {
  margin: 0;
  font-size: clamp(46px, 5.6vw, 72px);
  line-height: .98;
  letter-spacing: -.06em;
}
.stage-note > p:not(.stage-kicker) {
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.stage-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-tags span {
  padding: 8px 12px;
  border: 1px solid #bfc4ba;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.phone {
  position: relative;
  width: 390px;
  height: min(844px, calc(100vh - 36px));
  min-height: 690px;
  overflow: hidden;
  border: 7px solid var(--ink);
  border-radius: 48px;
  background: var(--paper);
  box-shadow: 0 30px 70px rgba(25, 31, 22, .16);
}
.phone-top {
  height: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 0 20px;
  font-size: 11px;
  font-weight: 800;
}
.phone-top span:last-child { text-align: right; letter-spacing: 2px; }
.dynamic-island {
  width: 88px;
  height: 25px;
  justify-self: center;
  border-radius: 999px;
  background: var(--ink);
}
.demo-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 14px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 10px;
  letter-spacing: .04em;
}
.demo-banner span:last-child { margin-left: auto; color: #c8ccc4; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); }

.app {
  height: calc(100% - 86px);
  overflow-y: auto;
  scrollbar-width: none;
}
.app::-webkit-scrollbar { display: none; }
.screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 20px 46px;
  animation: enter .18s ease-out;
}
@keyframes enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.eyebrow {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.screen h2 {
  margin: 0;
  max-width: 330px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.045em;
}
.subtitle {
  margin: 11px 0 0;
  max-width: 330px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.spacer { flex: 1; min-height: 10px; }

.hero-card {
  min-height: 224px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  border-radius: 13px;
  background: var(--ink);
  color: white;
}
.hero-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 0 44px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}
.hero-card strong {
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.04em;
}

.card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.card.green { border-color: var(--acid-dark); background: var(--acid); }
.card.amber { border-color: #f0ccc6; background: var(--danger-soft); }
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  font-size: 13px;
  font-weight: 800;
}
.field-label {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.field-stack {
  display: grid;
  gap: 14px;
}
.field-group {
  display: grid;
  gap: 7px;
}
.field-group .field-label { margin: 0; }
.template-picker {
  display: flex;
  gap: 7px;
  margin: 0 0 17px;
  overflow-x: auto;
  scrollbar-width: none;
}
.template-picker::-webkit-scrollbar { display: none; }
.template-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.template-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}
textarea, input {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
textarea {
  min-height: 148px;
  resize: vertical;
  padding: 12px;
  line-height: 1.55;
}
input { padding: 13px; font-size: 17px; font-weight: 700; }
textarea:focus, input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--acid);
}
.field-meta {
  display: flex;
  justify-content: space-between;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.warning-copy {
  display: flex;
  gap: 7px;
  margin: 11px 0 0;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.45;
}

.button-stack { display: grid; gap: 9px; }
.btn {
  min-height: 50px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: scale(.985); }
.btn:focus-visible { outline: 3px solid var(--acid); outline-offset: 2px; }
.btn.primary { background: var(--acid); color: var(--ink); }
.btn.primary:hover { background: #d3ff70; }
.btn.secondary { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: white; }
.btn.danger { min-height: 40px; background: transparent; color: var(--danger); }
.btn:disabled { cursor: not-allowed; opacity: .35; }
.fine-print { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }

.contact-row { display: flex; align-items: center; gap: 13px; }
.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acid);
  font-size: 18px;
  font-weight: 900;
}
.contact-name { margin: 0 0 6px; font-weight: 800; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #ecefe8;
  color: #4e554b;
  font-size: 10px;
  font-weight: 800;
}
.pill.warning { background: var(--danger); color: white; }
.detail-list { display: grid; gap: 12px; margin-top: 15px; }
.detail-list.compact { gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.detail-row { display: flex; justify-content: space-between; gap: 18px; font-size: 12px; }
.detail-row span:first-child { color: var(--muted); }
.detail-row span:last-child { text-align: right; font-weight: 700; }
.success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acid);
  font-size: 25px;
  font-weight: 900;
}
.released-copy { margin: 0; font-size: 16px; line-height: 1.65; }
.divider { height: 1px; margin: 15px 0; background: var(--line); }
.role-note {
  display: grid;
  gap: 5px;
  padding: 15px 3px 0;
  font-size: 12px;
  line-height: 1.5;
}
.role-note span { color: var(--muted); }
.privacy-lock {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 35px 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acid);
  font-size: 25px;
  font-weight: 900;
}
.toast {
  position: absolute;
  z-index: 4;
  left: 18px;
  right: 18px;
  bottom: 28px;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--danger);
  color: white;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .18s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 124px;
  height: 5px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

@media (max-width: 850px) {
  body { background: var(--paper); }
  .stage { display: block; min-height: 100vh; padding: 0; }
  .stage-note { display: none; }
  .phone {
    width: 100%;
    height: 100vh;
    min-height: 640px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
