:root {
  color-scheme: light;
  --page: #fbf8fa;
  --stage: #fbf8fa;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.86);
  --ink: #191719;
  --muted: #8a858a;
  --line: rgba(20, 18, 20, 0.055);
  --line-strong: rgba(20, 18, 20, 0.1);
  --accent: #ef6f91;
  --accent-deep: #111111;
  --danger: #b54857;
  --warning-bg: rgb(255 240 242);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.08);
  --soft-shadow: 0 10px 24px rgba(0, 0, 0, 0.045);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(circle at 52% 28%, rgba(255, 226, 235, 0.72), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 50% 74%, rgba(255, 232, 238, 0.74), rgba(255, 255, 255, 0) 36%),
    var(--stage);
}

.app-shell::after {
  display: none;
}

.topbar {
  position: absolute;
  left: 0;
  top: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 clamp(20px, 5vw, 84px);
  pointer-events: none;
}

.brand,
.topnav a,
.topnav button {
  pointer-events: auto;
}

.brand {
  display: grid;
  grid-template-columns: 40px auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  font-weight: 650;
  letter-spacing: 0;
}

.brand::before {
  content: "";
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 32%, #fff9cf 0 12%, transparent 13%),
    radial-gradient(circle at 68% 36%, #ff78a0 0 34%, transparent 35%),
    radial-gradient(circle at 38% 72%, #ffb2b8 0 28%, transparent 29%),
    linear-gradient(135deg, #ffe38c, #f06c96 62%, #7c68ff);
  box-shadow: 0 8px 22px rgba(239, 111, 145, 0.28);
}

.brand-title {
  color: #202329;
  font-size: 1.18rem;
  font-weight: 820;
  line-height: 1.15;
}

.brand-subtitle {
  color: #6f7a86;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
}

.topnav {
  display: flex;
  gap: 14px;
  color: #22262c;
  font-size: 0.94rem;
  font-weight: 760;
}

.topnav a,
.topnav button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 13px;
  border: 0;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(38, 33, 38, 0.05);
}

.memo-nav-link {
  gap: 6px;
}

.nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: #d35168;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.topnav .icon-button {
  width: 52px;
  min-width: 52px;
  padding: 0;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topnav a:hover,
.topnav button:hover,
.inline-link:hover {
  color: var(--accent);
}

#app {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 126px 24px 42px;
}

.page-grid,
.single-column {
  position: relative;
  width: min(720px, 100%);
  min-height: min(690px, calc(100vh - 132px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 72px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 131, 156, 0.13), rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 50% 48%, rgba(255, 228, 234, 0.38), rgba(255, 255, 255, 0) 42%),
    var(--surface);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(30px);
}

.page-grid {
  width: min(680px, 100%);
  min-height: auto;
  justify-content: start;
  gap: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.page-grid::before,
.single-column::before {
  content: none;
}

.page-grid::after,
.single-column::after {
  content: "";
  position: absolute;
  top: 104px;
  left: 50%;
  width: 460px;
  height: 340px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(247, 157, 175, 0.16), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  animation: orb-glow 5.4s ease-in-out infinite;
}

.page-grid::after {
  content: none;
}

.orb-visual {
  position: absolute;
  top: 46px;
  left: 50%;
  z-index: 1;
  width: 260px;
  height: 230px;
  transform: translateX(-50%);
  pointer-events: none;
}

.page-grid .orb-visual {
  top: 200px;
  width: 228px;
  height: 168px;
  z-index: 2;
}

.orb-canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: blur(0.35px) saturate(1.04);
  opacity: 0.92;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  38% {
    transform: translateX(-50%) translateY(-8px) scale(1.035);
  }

  68% {
    transform: translateX(-50%) translateY(4px) scale(0.985);
  }
}

@keyframes orb-surface {
  0%,
  100% {
    filter: blur(0.15px) saturate(1);
    box-shadow:
      0 26px 72px rgba(239, 111, 145, 0.28),
      0 10px 18px rgba(151, 48, 86, 0.08),
      inset -14px -10px 30px rgba(177, 63, 96, 0.18),
      inset 12px 12px 28px rgba(255, 255, 255, 0.7);
  }

  50% {
    filter: blur(0.15px) saturate(1.12);
    box-shadow:
      0 34px 86px rgba(239, 111, 145, 0.34),
      0 14px 24px rgba(151, 48, 86, 0.1),
      inset -18px -13px 34px rgba(177, 63, 96, 0.2),
      inset 16px 14px 32px rgba(255, 255, 255, 0.78);
  }
}

@keyframes orb-glow {
  0%,
  100% {
    opacity: 0.82;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-grid::before,
  .single-column::before,
  .page-grid::after,
  .single-column::after {
    animation: none;
  }
}

.intro {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding-top: 0;
  text-align: center;
}

.single-column h1 {
  margin: 0;
  color: #171517;
  font-size: clamp(1.35rem, 2.2vw, 1.5rem);
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: 0;
}

.intro h1 {
  margin: 0;
  color: #20242b;
  font-size: clamp(2.25rem, 5vw, 3.15rem);
  font-weight: 860;
  line-height: 1.2;
  letter-spacing: 0;
}

.intro h1 span {
  color: #e64d75;
}

.example-question {
  min-height: 48px;
  margin: 20px 0 0;
  color: #e64d75;
  font-size: clamp(1.32rem, 2.8vw, 1.9rem);
  font-weight: 780;
  line-height: 1.35;
}

.example-question.is-exiting {
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.example-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 250ms ease-out,
    transform 250ms ease-out;
}

.example-char.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .example-char {
    transform: none;
    transition: opacity 180ms ease-out;
  }
}

.lead {
  max-width: 440px;
  margin: 8px auto 0;
  color: #65707b;
  font-size: 1rem;
  font-weight: 760;
}

.answer-alert {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(211, 81, 104, 0.16);
  border-radius: 16px;
  background: rgba(255, 232, 238, 0.72);
  color: #9c3d52;
  font-size: 0.9rem;
  font-weight: 760;
  box-shadow: var(--soft-shadow);
}

.answer-alert-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d35168;
  box-shadow: 0 0 0 5px rgba(211, 81, 104, 0.12);
}

.eyebrow {
  margin: 0 0 10px;
  color: #4f4b50;
  font-weight: 700;
  font-size: 0.9rem;
}

.panel,
.question-card {
  position: relative;
  z-index: 1;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--soft-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.form-panel,
.result-panel,
.prose,
.question-card {
  padding: 18px;
}

.created-panel {
  display: grid;
  gap: 16px;
}

.created-lead {
  margin: -8px 0 2px;
}

.created-flow {
  display: grid;
  gap: 12px;
}

.created-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.created-step.is-primary {
  background: rgba(255, 255, 255, 0.78);
}

.step-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f4d7dd;
  color: #a93f55;
  font-size: 0.86rem;
  font-weight: 800;
}

.step-content {
  min-width: 0;
}

.step-content h2 {
  margin: 0;
  color: #171517;
  font-size: 1rem;
  line-height: 1.25;
}

.step-content p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.link-field {
  margin-top: 10px;
  color: #504b50;
  font-size: 0.78rem;
}

.compact-row {
  margin-top: 12px;
}

.result-link-action {
  margin-top: 12px;
}

.memos-panel {
  display: grid;
  gap: 16px;
}

.loading-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 34px 18px;
  text-align: center;
}

.loading-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 720;
}

.page-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(211, 81, 104, 0.16);
  border-top-color: #d35168;
  border-radius: 999px;
  animation: spin 0.72s linear infinite;
}

.memos-list {
  display: grid;
  gap: 10px;
}

.memo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

.memo-question {
  margin: 0;
  color: #171517;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.memo-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.memo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.memo-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f6eef0;
  color: #8d6670;
  font-size: 0.78rem;
  font-weight: 760;
  white-space: nowrap;
}

.memo-status.is-done {
  background: #ffe8ee;
  color: #b33f58;
}

.memo-status.is-seen {
  background: rgba(245, 245, 245, 0.9);
  color: #8a858a;
}

.memo-status.is-muted {
  background: rgba(245, 245, 245, 0.9);
  color: var(--muted);
}

.empty-state {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.page-grid .form-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  width: 100%;
  margin-top: 34px;
  padding: 70px 30px 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 74px rgba(62, 45, 54, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
}

.page-grid .form-panel .notice {
  grid-column: 1 / -1;
}

.page-grid .form-panel .primary-action {
  grid-column: 1 / -1;
  align-self: stretch;
}

.privacy-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -4px auto 0;
  color: #6f7a86;
  font-size: 0.86rem;
  font-weight: 760;
}

.privacy-line::before {
  content: "";
  width: 13px;
  height: 13px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M17 9h-1V7a4 4 0 0 0-8 0v2H7a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2Zm-7-2a2 2 0 0 1 4 0v2h-4V7Zm7 13H7v-9h10v9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.faq-section {
  width: 100%;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 18px 50px rgba(62, 45, 54, 0.045);
  backdrop-filter: blur(18px);
}

.faq-section h2 {
  margin: 0;
  color: #20242b;
  font-size: 1.1rem;
  line-height: 1.3;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 13px 14px;
  color: #25242a;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.45;
}

.faq-list p {
  margin: 0;
  padding: 0 14px 14px;
  color: #6f6870;
  font-size: 0.86rem;
  line-height: 1.65;
}

label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #686369;
  font-size: 0.78rem;
  font-weight: 660;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 16px;
  padding: 10px 13px;
  font-weight: 520;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(239, 111, 145, 0.2);
  border-color: rgba(239, 111, 145, 0.22);
}

input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  background: rgba(244, 242, 244, 0.82);
  color: #9b969d;
  -webkit-text-fill-color: #9b969d;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.035);
}

.field-note {
  color: #8a858a;
  font-size: 0.72rem;
  font-weight: 620;
  line-height: 1.45;
}

.counter {
  justify-self: end;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.notice {
  border: 1px solid rgba(233, 194, 142, 0.44);
  border-radius: 15px;
  background: var(--warning-bg);
  color: #72593d;
  padding: 8px 10px;
  font-size: 0.8rem;
}

.compact {
  margin-top: 18px;
}

.error {
  margin: 0;
  color: var(--danger);
  font-weight: 750;
}

.primary-action,
.secondary-action,
.danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 720;
}

.primary-action {
  background: linear-gradient(135deg, #f03276, #ec4775);
  color: white;
}

.primary-action:hover {
  background: rgb(211 81 104 / 67%);
}

.primary-action:disabled,
.secondary-action:disabled,
.danger-action:disabled {
  cursor: wait;
  opacity: 0.74;
}

.loading-action {
  gap: 9px;
  min-width: 132px;
}

.button-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-top-color: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  animation: spin 0.72s linear infinite;
}

.loading-action.is-loading .button-spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.secondary-action {
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.danger-action {
  background: #fff2f3;
  border-color: #f0c7ce;
  color: var(--danger);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.single-column {
  margin: 0;
  justify-content: center;
  padding: 218px 10px 10px;
}

.created-column {
  padding-top: 176px;
}

.single-column > .panel,
.single-column > .question-card,
.single-column > form {
  width: 100%;
}

.question-card {
  margin-bottom: 0;
}

.question-card h1,
.result-panel h1,
.prose h1 {
  font-size: clamp(1.45rem, 3vw, 1.5rem);
  line-height: 1.16;
}

.question-text,
.answer-box {
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(246, 244, 244, 0.92);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.answer-box.is-empty {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.inline-link {
  display: inline-flex;
  margin-top: 14px;
  color: #191719;
  font-weight: 780;
}

.prose ul {
  margin: 10px 0 18px;
  padding-left: 1.2rem;
}

.prose h2 {
  margin: 20px 0 0;
  color: #2c292d;
  font-size: 1rem;
  line-height: 1.3;
}

@media print {
  body,
  .app-shell {
    background: #ffffff;
  }

  .topbar,
  .button-row,
  .notice {
    display: none;
  }

  #app {
    min-height: auto;
    padding: 0;
  }

  .single-column,
  .page-grid {
    width: 100%;
    min-height: auto;
    padding: 24px;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .app-shell::after {
    display: none;
  }

  .topbar {
    top: 18px;
    width: 100%;
    padding: 0 14px;
  }

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

  .brand::before {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .brand-subtitle {
    display: none;
  }

  .topnav {
    gap: 7px;
    font-size: 0.86rem;
  }

  .topnav a,
  .topnav button {
    min-height: 42px;
    padding: 0 11px;
    border-radius: 12px;
  }

  .topnav .icon-button {
    width: 42px;
    min-width: 42px;
  }

  #app {
    min-height: 100vh;
    padding: 92px 12px 22px;
  }

  .page-grid,
  .single-column {
    min-height: calc(100vh - 104px);
    padding: 8px;
    border-radius: 22px;
  }

  .page-grid {
    min-height: auto;
    padding: 0;
    border-radius: 0;
  }

  .created-column {
    padding-top: 128px;
  }

  .page-grid::before,
  .single-column::before {
    content: none;
  }

  .page-grid::after,
  .single-column::after {
    top: 88px;
    width: 300px;
    height: 230px;
  }

  .orb-visual {
    top: 0;
    width: 190px;
    height: 180px;
  }

  .page-grid .orb-visual {
    top: 145px;
    width: 228px;
    height: 168px;
  }

  .intro h1 {
    font-size: 2.1rem;
    line-height: 1.18;
  }

  .example-question {
    min-height: 44px;
    font-size: 1.18rem;
  }

  .lead {
    font-size: 0.94rem;
  }

  .page-grid .form-panel {
    grid-template-columns: 1fr;
    margin-top: 30px;
    padding: 58px 16px 16px;
  }

  .page-grid .form-panel .notice,
  .page-grid .form-panel .primary-action {
    grid-column: 1 / -1;
  }

  .form-panel,
  .result-panel,
  .question-card,
  .prose {
    padding: 16px;
  }

  .memo-card {
    grid-template-columns: 1fr;
  }

  .memo-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .memo-status {
    justify-content: center;
  }

  .button-row > * {
    flex: 1 1 100%;
  }
}
