:root {
  --bg-main: #fcf6f0;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --line: #eee3da;
  --line-strong: rgba(237, 115, 58, 0.16);
  --ink: #342b28;
  --muted: #7d726d;
  --fire: #f08249;
  --fire-deep: #e46b31;
  --plum: #f08249;
  --plum-soft: rgba(240, 130, 73, 0.08);
  --success: #2d8d64;
  --shadow: 0 18px 48px rgba(111, 72, 46, 0.07);
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(240, 130, 73, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 219, 195, 0.42), transparent 22%),
    linear-gradient(180deg, var(--bg-main) 0%, #fffaf7 48%, #ffffff 100%);
}

button,
textarea,
a {
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 20px 32px;
}

.card {
  width: min(1120px, 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 28px 30px 28px;
}

.hero-topline {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hero-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--fire), #eb6e36);
  color: white;
  font-size: 24px;
  box-shadow: 0 12px 22px rgba(228, 107, 49, 0.18);
}

.hero-copy {
  display: flex;
  align-items: center;
}

.eyebrow,
.section-kicker,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.eyebrow,
.section-kicker {
  color: var(--plum);
  background: rgba(240, 130, 73, 0.04);
  border: 1px solid var(--line-strong);
}

.status-pill {
  color: var(--muted);
  background: #fbf7f4;
  border: 1px solid var(--line);
}

h1 {
  margin: 14px 0 0;
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: none;
  white-space: nowrap;
}

.subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 680px;
}

.proof-row,
.quick-start,
.weekly-note,
.result-panel {
  margin-top: 18px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(420px, 1.14fr);
  gap: 16px;
  margin-top: 14px;
  align-items: stretch;
}

.workflow-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fffdfb;
  padding: 16px;
  height: 100%;
}

.mode-card {
  background: #fffefc;
  display: flex;
  align-items: flex-start;
}

.input-card {
  background: #fffefa;
  border-color: rgba(237, 115, 58, 0.14);
  box-shadow: 0 10px 24px rgba(111, 72, 46, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mode-card .mode-panel,
.input-card .input-label {
  margin-top: 0;
}

.mode-panel {
  width: 100%;
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.helper-head {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 4px;
}

.helper-note,
.preview-strip,
.mode-description,
.input-helper,
.result-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.helper-note,
.result-summary {
  max-width: 320px;
}

.helper-note {
  max-width: none;
  text-align: left;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  line-height: 1.25;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.chip:hover,
.chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(240, 130, 73, 0.24);
  box-shadow: 0 8px 18px rgba(111, 72, 46, 0.06);
}

.chip.active {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--fire), #eb6e36);
}

.example-chip {
  color: var(--fire-deep);
  background: rgba(240, 130, 73, 0.025);
  border-color: rgba(240, 130, 73, 0.1);
}

.input-label {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
}

.proof-row,
.spotlight-grid,
.result-grid {
  display: grid;
  gap: 10px;
}

.proof-row {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.88;
}

.proof-row strong {
  color: var(--ink);
  font-weight: 700;
}

.preview-strip {
  margin-top: 12px;
  gap: 10px;
}

.spotlight-card,
.result-block,
.weekly-note {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.spotlight-card,
.result-block,
.weekly-note {
  padding: 14px 16px;
}

.spotlight-label {
  color: var(--fire-deep);
  font-size: 13px;
  font-weight: 700;
}

.spotlight-card p,
.weekly-list,
.result-block p,
.result-list {
  margin: 8px 0 0;
  line-height: 1.8;
  font-size: 15px;
}

#result-hook,
#result-close {
  white-space: pre-line;
}

.weekly-note {
  background: #fffdfb;
  margin-top: 36px;
  border-color: rgba(238, 227, 218, 0.78);
}

.weekly-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--plum-soft);
  color: var(--plum);
  font-size: 11px;
  font-weight: 800;
}

.weekly-list,
.result-list {
  padding-left: 18px;
}

.weekly-list li + li,
.result-list li + li {
  margin-top: 8px;
}

.text-area {
  width: 100%;
  min-height: 112px;
  margin-top: 10px;
  padding: 18px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.85;
  resize: vertical;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.text-area:focus {
  outline: none;
  border-color: rgba(240, 130, 73, 0.3);
  box-shadow: 0 0 0 4px rgba(240, 130, 73, 0.08);
}

.button-row,
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-row {
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(111, 72, 46, 0.1);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--fire), #eb6e36);
}

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.hint {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--success);
  font-size: 14px;
}

.spotlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.spotlight-card.quiet,
.weekly-note,
.hero-block {
  background: #fff;
}

.result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.result-block.wide {
  grid-column: 1 / -1;
}

.result-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--plum-soft);
  color: var(--plum);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.headline {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.4;
  font-weight: 800;
}

.footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  justify-content: flex-start;
}

.footer-link {
  color: var(--fire-deep);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.result-panel.flash {
  animation: result-flash 0.3s ease;
}

@keyframes result-flash {
  from { opacity: 0.5; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .card {
    width: 100%;
    padding: 20px 16px;
    border-radius: 20px;
  }

  h1 {
    font-size: 30px;
    max-width: none;
    white-space: normal;
  }

  .hero-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 24px;
  }

  .proof-row {
    grid-template-columns: repeat(2, max-content);
  }

  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .workflow-card {
    padding: 16px;
    border-radius: 18px;
  }

  .result-header,
  .spotlight-grid,
  .result-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }

  .result-summary {
    max-width: none;
    text-align: left;
  }

  .button-row .btn {
    width: 100%;
  }

  .headline {
    font-size: 24px;
  }
}
