:root {
  --bg: #f6efe4;
  --card: #fffaf4;
  --line: rgba(177, 137, 79, 0.2);
  --ink: #241814;
  --muted: #6c5a4b;
  --red: #ab241c;
  --red-deep: #8b1710;
  --gold: #a47b45;
  --shadow: 0 18px 40px rgba(79, 46, 19, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #faf5ee 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}

body {
  padding: 16px 10px 32px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

.hero,
.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.96);
  box-shadow: var(--shadow);
}

.hero {
  padding: 20px;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.brand-name {
  font-size: 30px;
  font-weight: 700;
}

.brand-sub,
.kicker,
label,
.input-wrap span,
.sub,
.budget-box span,
.stats span,
.copy small,
.detail,
.note p,
.lang-switch button,
.pill,
.chip,
.select-card small {
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.brand-sub {
  margin-top: 4px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #fff8f2;
  border: 1px solid rgba(177, 137, 79, 0.2);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: #8b6b43;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.lang-switch button.active {
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  color: #fffaf4;
}

.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.card {
  margin-top: 18px;
  padding: 18px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-head h2 {
  margin: 6px 0 0;
  font-size: 30px;
  line-height: 1.05;
}

.field {
  margin-top: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #403127;
  font-size: 14px;
  font-weight: 600;
}

label span {
  color: #8f745a;
  font-weight: 500;
}

.grid {
  display: grid;
  gap: 10px;
}

.grid.two,
.two-col,
.stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chips {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.select-card,
.pill,
.chip,
.input-wrap input {
  border-radius: 16px;
  border: 1px solid rgba(177, 137, 79, 0.2);
  background: #fffdf9;
}

.select-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  text-align: left;
}

.select-card.selected {
  border-color: rgba(171, 36, 28, 0.34);
}

.radio {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(177, 137, 79, 0.36);
  background: white;
  flex: 0 0 auto;
}

.radio.selected {
  border-color: var(--red);
  background: radial-gradient(circle at center, var(--red) 0 42%, white 44% 100%);
}

.select-card strong,
.copy strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.select-card small,
.copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.schedule-line {
  color: var(--red) !important;
  font-weight: 600;
}

.pill,
.chip,
.primary-btn,
.ghost-btn {
  min-height: 52px;
  padding: 0 14px;
}

.pill.selected,
.chip.selected {
  border-color: transparent;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  color: #fffaf4;
}

.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.input-wrap input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  font-size: 18px;
}

.primary-btn {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  color: #fffaf4;
  font-size: 18px;
  font-weight: 700;
}

.ghost-btn {
  border: 1px solid rgba(177, 137, 79, 0.2);
  border-radius: 999px;
  background: #fffaf4;
  color: var(--red);
}

.sub {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.budget-box {
  min-width: 140px;
  padding: 12px 14px;
  border: 1px solid rgba(177, 137, 79, 0.18);
  border-radius: 18px;
  background: #fff9f2;
}

.budget-box strong {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: 20px;
  line-height: 1.15;
}

.route-switcher {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.route-option {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(177, 137, 79, 0.18);
  background: #fffdf9;
  color: var(--ink);
}

.route-option strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.route-option small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.route-option.active {
  border-color: rgba(171, 36, 28, 0.35);
  background: linear-gradient(180deg, rgba(171, 36, 28, 0.08), rgba(171, 36, 28, 0.03));
  box-shadow: inset 0 0 0 1px rgba(171, 36, 28, 0.08);
}

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

.stats div,
.note,
.step {
  border: 1px solid rgba(177, 137, 79, 0.16);
  border-radius: 18px;
  background: #fffdf9;
}

.stats div {
  padding: 14px;
}

.stats span {
  display: block;
  color: #7b6654;
  font-size: 13px;
  margin-bottom: 8px;
}

.stats strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
}

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

.step-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 14px;
}

.icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(164, 123, 69, 0.12);
  font-size: 20px;
}

.copy {
  flex: 1;
}

.toggle {
  flex: 0 0 auto;
  color: #8b6b43;
  font-size: 20px;
}

.detail {
  padding: 0 14px 14px 68px;
  color: #58483b;
  line-height: 1.65;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(164, 123, 69, 0.12);
  color: #6a4f31;
  font: 600 12px/1.2 "Helvetica Neue", Arial, sans-serif;
}

.meta-pill-risk {
  background: rgba(171, 36, 28, 0.1);
  color: var(--red);
}

.ask-phrase {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 248, 238, 0.9);
  border: 1px solid rgba(177, 137, 79, 0.18);
  color: #4f3f31;
  font: 14px/1.6 "Helvetica Neue", Arial, sans-serif;
}

.ask-phrase strong {
  color: var(--red);
}

.detail p {
  margin: 0 0 10px;
}

.detail ul {
  margin: 0;
  padding-left: 18px;
}

.detail li + li {
  margin-top: 6px;
}

.two-col {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.note {
  padding: 16px;
}

.note h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.note p {
  margin: 0;
}

@media (max-width: 720px) {
  .grid.two,
  .two-col,
  .chips {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-head {
    flex-direction: column;
  }

  .budget-box {
    width: 100%;
    min-width: 0;
  }

  .hero h1 {
    font-size: 42px;
  }
}
