@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --navy: #0f172a;
  --night: #0c0c0c;
  --blue: #1e6fb6;
  --cyan: #3fb5e6;
  --green: #6bcf3e;
  --lime: #9be24a;
  --white: #fff;
  --muted: #b8c6d5;
  --line: rgba(223, 238, 255, .16);
  --line-strong: rgba(223, 238, 255, .27);
  --glass: rgba(23, 38, 62, .72);
  --inset: rgba(7, 18, 35, .48);
  color-scheme: dark;
  font-family: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background: radial-gradient(circle at 20% 12%, #173e66 0, transparent 33%),
              radial-gradient(circle at 83% 85%, #154a3d 0, transparent 28%),
              linear-gradient(145deg, #0b1222, #0f172a 48%, #091322);
  overflow-x: hidden;
}
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
.ambient { position: fixed; pointer-events: none; border-radius: 50%; filter: blur(65px); opacity: .25; }
.ambient-one { width: 380px; height: 380px; top: 12%; right: -120px; background: #1e6fb6; }
.ambient-two { width: 260px; height: 260px; bottom: 8%; left: -90px; background: #6bcf3e; opacity: .13; }
.app-shell { position: relative; z-index: 1; min-height: 100vh; }
.layout { max-width: 1150px; min-height: 100vh; margin: auto; padding: 24px 36px 20px; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font: 800 14px "Manrope", sans-serif; letter-spacing: .12em; white-space: nowrap; }
.brand-symbol { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(134, 220, 115, .58); border-radius: 11px; color: var(--lime); letter-spacing: -.12em; font-size: 14px; padding-right: 3px; }
.brand small { display: block; font: 600 8px "DM Sans", sans-serif; letter-spacing: .27em; color: var(--muted); margin-top: 2px; }
.topbar-note, .topbar-person { color: var(--muted); font: 700 11px "Manrope", sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.topbar-person { color: var(--lime); }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.exit-button { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(255,255,255,.045); color: #dce9f4; padding: 0 15px; font-size: 12px; font-weight: 700; }
.exit-button:hover { background: rgba(255,255,255,.1); border-color: var(--cyan); }
.progress-wrap { width: min(830px, 100%); margin: 29px auto 0; }
.progress-caption { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 11px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.progress-caption strong { color: var(--lime); }
.progress-track { height: 4px; background: rgba(255,255,255,.13); border-radius: 99px; overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--lime)); transition: width .3s ease; }
.glass {
  border: 1px solid var(--line-strong);
  background: var(--glass);
  box-shadow: 0 30px 90px rgba(2, 10, 26, .32), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.welcome-card, .form-card, .success-card { width: min(830px, 100%); margin: auto; border-radius: 28px; }
.welcome-card { padding: 30px clamp(28px, 6vw, 70px) 48px; text-align: center; }
.welcome-logo-wrap { width: 174px; height: 174px; margin: 0 auto 4px; overflow: hidden; border-radius: 24px; }
.welcome-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.eyebrow, .kicker { color: var(--lime); font: 800 11px "Manrope", sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); margin-right: 7px; box-shadow: 0 0 14px var(--green); }
h1 { font-family: "Manrope", sans-serif; }
.welcome-card h1 { max-width: 660px; margin: 15px auto 19px; font-size: clamp(28px, 4.8vw, 45px); line-height: 1.2; font-weight: 700; letter-spacing: -.055em; }
.welcome-lead { max-width: 580px; margin: 0 auto; color: #d4e0ed; font-size: 15px; line-height: 1.75; }
.welcome-points { display: flex; justify-content: center; flex-wrap: wrap; gap: 11px; margin: 27px 0 32px; }
.welcome-points span { border: 1px solid var(--line); border-radius: 100px; padding: 9px 14px; color: #d8e8f2; background: rgba(255,255,255,.035); font-size: 12px; }
.identity-area { max-width: 560px; margin: auto; text-align: left; }
.field-label { color: #e8f2fb; font-weight: 700; font-size: 13px; margin: 0 0 13px; }
.identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.identity-card { width: 100%; min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 17px; background: rgba(8, 23, 43, .56); color: var(--white); font-weight: 700; text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.identity-card:hover { border-color: rgba(155, 226, 74, .6); transform: translateY(-2px); }
.identity-card.selected { border-color: var(--lime); background: rgba(61, 108, 65, .25); }
.identity-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(140deg, rgba(63,181,230,.24), rgba(107,207,62,.23)); color: var(--lime); }
.draft-identity { min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid rgba(155,226,74,.43); border-radius: 17px; background: rgba(61,108,65,.15); }
.draft-identity strong, .draft-identity small { display: block; }
.draft-identity strong { color: var(--white); font-size: 14px; }
.draft-identity small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.identity-check { margin-left: auto; color: var(--lime); opacity: 0; }
.identity-card.selected .identity-check { opacity: 1; }
.privacy-note { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 12px 0 0; }
.welcome-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 27px; }
.welcome-actions > span { color: var(--muted); font-size: 12px; }
.button { border-radius: 13px; border: 1px solid transparent; min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.button:not(:disabled):hover { transform: translateY(-2px); }
.button-primary { color: #092017; background: linear-gradient(110deg, var(--green), var(--lime)); box-shadow: 0 10px 25px rgba(107, 207, 62, .18); }
.button-primary:not(:disabled):hover { box-shadow: 0 14px 28px rgba(107, 207, 62, .25); }
.button-secondary { color: #e0ebf5; background: rgba(255,255,255,.06); border-color: var(--line); }
.form-card { padding: clamp(28px, 5vw, 55px); margin-top: 42px; margin-bottom: 42px; }
.step-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.section-tag { display: grid; gap: 5px; color: #e8f3fb; font: 700 14px "Manrope", sans-serif; letter-spacing: -.01em; }
.section-tag small { color: var(--lime); font-size: 10px; letter-spacing: .16em; }
.step-number { color: var(--muted); font-size: 12px; }
.prompt-stack { max-width: 720px; margin: 28px 0 24px; }
.question-content { margin: 0 0 13px; font: 600 clamp(21px, 2.7vw, 27px)/1.42 "Manrope", sans-serif; letter-spacing: -.026em; }
.question-context { margin: 0 0 16px; color: #cad9e7; font: 500 clamp(16px, 2vw, 19px)/1.55 "Manrope", sans-serif; }
.question-after-context { margin-top: 5px; }
.quote-options { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 16px; margin: 8px 0 5px; color: #dcebf5; font-size: 16px; line-height: 1.55; }
.quote-options span { padding-left: 13px; border-left: 2px solid rgba(63,181,230,.65); font-style: italic; }
.quote-options small { color: var(--muted); font-size: 14px; }
.quote-options-three { margin-bottom: 19px; }
.question-note { max-width: 690px; margin: -4px 0 26px; color: #bbcedd; font-size: 15px; line-height: 1.65; }
.examples { max-width: 720px; margin: 0 0 29px; padding-top: 17px; border-top: 1px solid var(--line); }
.example-intro { margin: 0 0 7px; color: #e2eef7; font-size: 15px; font-weight: 600; line-height: 1.55; }
.example-guidance { max-width: 640px; margin: 0 0 15px; color: #afc4d6; font-size: 13px; line-height: 1.6; }
.example-list { display: flex; flex-wrap: wrap; gap: 8px; }
.example-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 13px; border: 1px solid rgba(194,219,239,.25); border-radius: 100px; background: rgba(255,255,255,.035); color: #e5f0f7; font-size: 13px; line-height: 1.25; text-align: left; }
.example-chip span { color: var(--cyan); font-size: 18px; line-height: 1; }
.example-chip:hover { border-color: var(--cyan); background: rgba(63,181,230,.1); }
.example-chip.is-added { border-color: rgba(155,226,74,.7); background: rgba(107,207,62,.14); color: var(--white); }
.example-chip.is-added span { color: var(--lime); }
.example-chip:disabled { opacity: 1; cursor: default; }
.response-field { display: block; }
.response-field > span { display: block; color: #dce9f4; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
textarea { display: block; width: 100%; min-height: 205px; resize: vertical; border: 1px solid var(--line); border-radius: 17px; padding: 19px 20px; background: var(--inset); color: var(--white); font-size: 16px; line-height: 1.65; transition: border-color .2s, box-shadow .2s; }
textarea::placeholder { color: #8296a9; }
textarea:hover { border-color: var(--line-strong); }
textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(63,181,230,.1); outline: none; }
.five-fields { display: grid; gap: 16px; }
.five-fields textarea { min-height: 105px; }
.navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 25px; border-top: 1px solid var(--line); }
.draft-state { color: var(--muted); font-size: 11px; text-align: center; }
.draft-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; background: var(--green); }
.card-heading { margin-top: 32px; }
.card-heading h1 { max-width: 700px; margin: 13px 0 12px; font-size: clamp(26px, 4vw, 36px); line-height: 1.3; letter-spacing: -.04em; }
.card-heading p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.instruction { max-width: 700px; padding: 0 0 0 17px; border-left: 2px solid var(--cyan); color: #d5e4ef; line-height: 1.7; font-size: 15px; margin: 25px 0 30px; }
.methods-grid { display: grid; gap: 12px; margin-top: 30px; }
.method-row { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 18px; background: rgba(8,23,43,.38); }
.method-row legend { padding: 0 6px; font-weight: 700; color: #edf7fc; }
.method-index { color: var(--cyan); font: 700 11px "Manrope", sans-serif; margin-right: 6px; }
.choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 5px; }
.choice { min-height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; color: #c5d5e1; background: rgba(255,255,255,.03); cursor: pointer; text-align: center; padding: 7px 5px; font-size: 12px; transition: background .18s, border-color .18s; }
.choice:hover { border-color: var(--cyan); }
.choice-selected { border-color: var(--lime); color: var(--white); background: rgba(107,207,62,.17); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; }
.review-list { display: grid; margin-top: 28px; border-top: 1px solid var(--line); }
.review-item { display: flex; justify-content: space-between; align-items: start; gap: 20px; border-bottom: 1px solid var(--line); padding: 20px 0; }
.review-item strong { font-size: 13px; color: var(--cyan); }
.review-item p { margin: 8px 0 0; color: #e5eef5; font-size: 13px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.review-item .empty-answer { color: #e7bc7b; }
.edit-link { border: 0; background: none; color: var(--lime); text-decoration: underline; text-underline-offset: 3px; font-size: 12px; }
.notice { margin-top: 20px; padding: 14px 17px; border: 1px solid rgba(231,188,123,.36); border-radius: 12px; background: rgba(181,120,40,.13); color: #f6d8a9; font-size: 13px; line-height: 1.5; }
.notice-error { border-color: rgba(255,150,150,.38); background: rgba(135,45,60,.2); color: #ffd5d5; }
.confirm-check { display: flex; align-items: start; gap: 12px; margin-top: 28px; color: #e9f3f8; font-size: 13px; line-height: 1.55; cursor: pointer; }
.confirm-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.success-card { padding: 70px clamp(28px, 7vw, 80px); text-align: center; }
.success-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 27px; border-radius: 50%; background: rgba(107,207,62,.18); border: 1px solid rgba(155,226,74,.55); color: var(--lime); font-size: 31px; }
.success-card h1 { font-size: clamp(34px, 5vw, 50px); margin: 15px 0; letter-spacing: -.05em; }
.success-card p { max-width: 540px; margin: auto; color: #d3e0eb; line-height: 1.75; }
.success-line { width: 80px; height: 2px; margin: 35px auto 20px; background: linear-gradient(90deg, var(--cyan), var(--lime)); }
.success-card > span { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.footer { display: flex; justify-content: space-between; gap: 20px; margin-top: auto; padding: 18px 0 0; border-top: 1px solid var(--line); color: #8295a8; font-size: 11px; }
.load-error { max-width: 560px; margin: 20vh auto; padding: 35px; border-radius: 20px; text-align: center; }
@media (max-width: 650px) {
  .layout { padding: 17px 17px 20px; }
  .topbar-note { display: none; }
  .topbar { gap: 8px; }
  .topbar-person { display: none; }
  .topbar-actions { gap: 0; }
  .exit-button { padding: 0 11px; }
  .welcome-card, .form-card, .success-card { border-radius: 22px; }
  .welcome-card { margin-top: 28px; margin-bottom: 28px; padding: 22px 21px 32px; }
  .welcome-logo-wrap { height: 150px; width: 150px; }
  .welcome-points { gap: 7px; }
  .welcome-points span { padding: 7px 10px; font-size: 11px; }
  .identity-grid { grid-template-columns: 1fr; }
  .identity-card { min-height: 65px; }
  .form-card { margin-top: 27px; margin-bottom: 27px; padding: 28px 20px; }
  .prompt-stack { margin: 24px 0 20px; }
  .question-content { font-size: clamp(20px, 5.5vw, 24px); }
  .question-context { font-size: 16px; }
  .example-guidance { font-size: 13px; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .draft-state { display: none; }
  .navigation .button { min-width: 0; padding: 0 14px; gap: 8px; }
  .footer span:last-child { display: none; }
}
@media (max-width: 380px) {
  .brand { font-size: 12px; }
  .navigation .button { font-size: 12px; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
