:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-divider: rgba(32, 30, 29, 0.4);
  --color-muted: #4b4847;
  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

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

h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 40px;
  margin: 0;
  letter-spacing: -0.01em;
}

.subtitle {
  font-size: 16px;
  color: var(--color-muted);
  margin: 12px 0 0;
  max-width: 560px;
}

.hr {
  height: 2px;
  border: 0;
  margin: 32px 0;
  background: var(--color-divider);
}
.hr-loose { margin: 40px 0 28px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.field-block label,
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.label-row {
  display: flex;
  justify-content: space-between;
}
.label-row span:last-child {
  color: var(--color-text);
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  font-size: 15px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--color-accent);
}

.seg {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--color-divider);
  width: 100%;
}
.seg-opt {
  flex: 1;
  padding: 7px 12px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--color-divider);
  color: var(--color-text);
}
.seg-opt:first-child { border-left: 0; }
.seg-opt.active { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(.active):hover { background: rgba(32, 30, 29, 0.07); }

.input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: #dd2b0f; }
.btn-secondary { border-color: var(--color-divider); background: transparent; color: var(--color-text); }
.btn-secondary:hover { background: rgba(32, 30, 29, 0.07); }
.btn-block { width: 100%; justify-content: space-between; }

.hidden { display: none !important; }

#loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 96px 0;
}
.spinner { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 15px; color: var(--color-muted); margin: 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 12px;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
#result-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  margin: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 3px 10px;
}
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }
.tag-accent { background: #fff2ef; color: #7c1405; }

.result-message {
  font-size: 16px;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 0 24px;
}

.suggestions {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.suggestions li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
}
.suggestions li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 8px;
  flex: none;
  background: var(--color-accent);
}

.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.disclaimer {
  font-size: 12px;
  color: var(--color-muted);
  margin: 0;
  max-width: 320px;
  text-align: right;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .result-footer { flex-direction: column; align-items: flex-start; }
  .disclaimer { text-align: left; }
}
