:root {
  --bg-1: #fff7da;
  --bg-2: #fffef7;
  --ink: #2d250f;
  --ink-soft: #6f5d2d;
  --card: rgba(255, 255, 255, 0.94);
  --line: rgba(181, 138, 0, 0.26);
  --info-bg: #fff4d8;
  --info-bg-soft: #fff9ea;
  --input-bg: #ffffff;
  --input-line: #9eb2eb;
  --input-line-strong: #5279df;
  --action-bg: #fff2c4;
  --accent: #f4bf22;
  --accent-strong: #d79b00;
  --accent-dark: #382b11;
  --ok: #0f8a4a;
  --warn: #b55f13;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 18px 42px rgba(65, 49, 12, 0.12);
  --shadow-pop: 0 12px 28px rgba(244, 191, 34, 0.26);
  --font-title: "Outfit", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  overflow-x: hidden;
  background:
    radial-gradient(900px 380px at 8% -15%, rgba(244, 191, 34, 0.32), transparent 70%),
    radial-gradient(720px 350px at 92% 8%, rgba(215, 155, 0, 0.2), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 62%, #fff 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, button { font: inherit; }

.bg-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}
.bg-glow-left {
  width: 340px;
  height: 340px;
  left: -140px;
  top: 160px;
  background: radial-gradient(circle, rgba(244, 191, 34, 0.34), transparent 72%);
}
.bg-glow-right {
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: 120px;
  background: radial-gradient(circle, rgba(215, 155, 0, 0.24), transparent 74%);
}

.shell {
  width: min(1000px, calc(100% - 24px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 251, 234, 0.9);
  border-bottom: 1px solid rgba(181, 138, 0, 0.2);
  backdrop-filter: blur(10px);
}
.topbar-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(181, 138, 0, 0.36);
  box-shadow: 0 10px 20px rgba(215, 155, 0, 0.28);
  background: #fff;
  object-fit: cover;
}
.eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
  text-transform: uppercase;
  color: #876500;
}
.brand-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(18px, 2.7vw, 25px);
  font-weight: 700;
  line-height: 1.1;
}

.page-main {
  padding: 16px 0 8px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 18px;
  padding: 22px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}
.hero-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}
.pill,
.section-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(181, 138, 0, 0.22);
  background: rgba(244, 191, 34, 0.16);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #876500;
  border-radius: 10px;
  cursor: default;
}
.hero-copy h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.hero-copy h2 span {
  color: #5f4500;
}
.hero-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.62;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.hero-preview {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--info-bg-soft) 0%, #fff8e4 100%);
  padding: 16px;
  display: grid;
  gap: 10px;
}
.preview-tag {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #876500;
  text-align: center;
  cursor: default;
}
.preview-chat {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
.preview-image {
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(181, 138, 0, 0.28);
  box-shadow: 0 10px 22px rgba(63, 48, 13, 0.12);
  object-fit: cover;
}
.msg {
  margin: 0;
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}
.msg-user {
  border: 1px solid rgba(181, 138, 0, 0.2);
  background: var(--input-bg);
}
.msg-bia {
  border: 1px solid rgba(181, 138, 0, 0.18);
  background: var(--info-bg);
  font-weight: 600;
}
.msg-timing {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.msg-timing span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(181, 138, 0, 0.4);
  background: var(--info-bg-soft);
  font-weight: 800;
  font-size: 13px;
  cursor: default;
}

.qualify-wrap {
  display: grid;
  gap: 12px;
  width: min(900px, 100%);
  margin: 14px auto 0;
  padding-bottom: 18px;
}
.qualify-card {
  padding: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.qualify-head {
  position: relative;
  margin-bottom: 14px;
  min-height: 0;
}
.qualify-title-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.qualify-head h3 {
  margin: 8px 0 0;
  font-family: var(--font-title);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.form-kicker {
  margin: 0;
  color: #7a5b05;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qualify-form {
  display: grid;
  gap: 13px;
}
.field-row {
  display: grid;
  gap: 12px;
}
.field-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border-radius: 14px;
  border: 1px solid rgba(181, 138, 0, 0.22);
  background: var(--info-bg-soft);
}
.field > span {
  font-weight: 800;
  font-size: 13px;
  color: #5a450d;
}
input[type="text"] {
  width: 100%;
  border: 2px solid var(--input-line);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  background: var(--input-bg);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input[type="text"]::placeholder {
  color: #6c7ea8;
}
input[type="text"]:focus {
  outline: none;
  border-color: var(--input-line-strong);
  box-shadow: 0 0 0 4px rgba(82, 121, 223, 0.22);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.option-card {
  position: relative;
  min-height: 82px;
  padding: 13px 14px 13px 44px;
  border-radius: 16px;
  border: 1px solid rgba(130, 149, 196, 0.42);
  background: #fff;
  display: grid;
  align-content: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.option-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #8ea5df;
  background: #fff;
  transform: translateY(-50%);
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.option-card::after {
  content: "✓";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-50%) scale(0.8);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.option-card:hover {
  transform: translateY(-1px);
  border-color: rgba(82, 121, 223, 0.82);
}
.option-card:focus-within {
  border-color: rgba(82, 121, 223, 0.9);
  box-shadow: 0 0 0 4px rgba(82, 121, 223, 0.18);
}
.option-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.option-card strong {
  font-size: 16px;
  line-height: 1.2;
  text-align: left;
  font-family: var(--font-title);
  font-weight: 600;
}
.option-card small {
  color: var(--ink-soft);
  line-height: 1.35;
  font-size: 12px;
  text-align: left;
}
.option-card.active {
  border-color: rgba(82, 121, 223, 0.92);
  box-shadow: 0 10px 22px rgba(82, 121, 223, 0.22);
  background: linear-gradient(180deg, #eef3ff 0%, #fff 100%);
}
.option-card.active::before {
  border-color: #4d73d8;
  background: #4d73d8;
  box-shadow: 0 0 0 3px rgba(82, 121, 223, 0.2);
}
.option-card.active::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.cta-row {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(244, 191, 34, 0.32);
}
.btn-main {
  color: #2e2208;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 12px 22px rgba(244, 191, 34, 0.32);
}
.btn-soft {
  color: var(--ink);
  background: #fff;
  border-color: rgba(181, 138, 0, 0.3);
}
.btn-secondary {
  color: #fff;
  background: var(--accent-dark);
}
.btn-submit {
  min-height: 46px;
}
.btn-submit.ready {
  box-shadow: 0 14px 26px rgba(215, 155, 0, 0.42);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.result-card {
  padding: 18px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--info-bg-soft) 0%, #fff 100%);
}
.result-card h3 {
  margin: 10px 0 8px;
  font-family: var(--font-title);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.result-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.52;
  font-size: 14px;
}
.result-card.success {
  border-color: rgba(15, 138, 74, 0.25);
  background: linear-gradient(180deg, rgba(236, 253, 243, 0.92), #fff 100%);
}
.result-card.warning {
  border-color: rgba(181, 95, 19, 0.25);
  background: linear-gradient(180deg, rgba(255, 244, 231, 0.96), #fff 100%);
}
.result-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.result-actions .btn {
  width: 100%;
}

.hidden {
  display: none !important;
}

.footer {
  border-top: 1px solid rgba(181, 138, 0, 0.18);
  padding: 16px 0 24px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.footer p {
  margin: 0;
  max-width: 460px;
}
.footer a {
  color: #6b4f0b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 900px) {
  .hero-copy,
  .hero-text,
  .result-card {
    text-align: center;
  }
  .hero-copy {
    justify-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .qualify-head {
    text-align: center;
  }
  .qualify-title-block {
    text-align: center;
  }
  .field > span {
    text-align: left;
  }
  .option-card {
    text-align: left;
  }
  .field-row.two,
  .option-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100% - 16px);
  }
  .topbar-row {
    min-height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  .brand {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero,
  .qualify-card,
  .result-card {
    padding: 16px;
  }
  .hero-copy h2 {
    font-size: 34px;
  }
  .btn {
    width: 100%;
  }
}
