:root {
  --bg: #fff4eb;
  --surface: rgba(255, 250, 244, 0.92);
  --surface-strong: #fffdf9;
  --text: #233044;
  --muted: #6b6f76;
  --line: #edcdb9;
  --brand: #e8682d;
  --brand-strong: #cb5620;
  --accent: #ffb56e;
  --highlight: #ffefe2;
  --success: #166534;
  --error: #b91c1c;
  --shadow: 0 30px 70px rgba(145, 78, 38, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(232, 104, 45, 0.24), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(255, 181, 110, 0.3), transparent 18%),
    radial-gradient(circle at bottom right, rgba(203, 86, 32, 0.16), transparent 26%),
    var(--bg);
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  padding: 32px;
}

.hero-copy {
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 181, 110, 0.38), transparent 66%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.stack {
  display: grid;
  gap: 18px;
}

.form-card {
  margin-top: 28px;
  padding: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 244, 235, 0.95));
}

.feature-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.callout {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232, 104, 45, 0.1), rgba(255, 181, 110, 0.18));
  border: 1px solid rgba(232, 104, 45, 0.18);
}

.stats-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.stat {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-size: 1.55rem;
  color: var(--brand-strong);
}

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

.grid-1 {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 600;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.help-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: none;
}

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

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
}

textarea {
  min-height: 104px;
  resize: vertical;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: white;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(232, 104, 45, 0.26);
}

button.secondary {
  background: white;
  color: var(--brand-strong);
  border: 1px solid var(--line);
  box-shadow: none;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

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

.status {
  min-height: 24px;
  font-size: 0.94rem;
}

.status.error {
  color: var(--error);
}

.status.success {
  color: var(--success);
}

.pill-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.pill {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(232, 104, 45, 0.12);
  color: var(--brand-strong);
  font-size: 0.9rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a,
.text-link {
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 700;
}

.section-title {
  margin-bottom: 18px;
}

.three-up {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.metric-card {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 243, 232, 0.95));
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.9rem;
  color: var(--brand-strong);
}

.step-list {
  display: grid;
  gap: 14px;
}

.step-item {
  padding: 18px 18px 18px 58px;
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.step-item::before {
  content: attr(data-step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 104, 45, 0.14);
  color: var(--brand-strong);
  font-weight: 700;
}

.kpi-strip {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.kpi {
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.kpi strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.5rem;
  color: var(--brand-strong);
}

.calculator-output {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(232, 104, 45, 0.22);
  background: linear-gradient(135deg, rgba(232, 104, 45, 0.1), rgba(255, 181, 110, 0.18));
}

.list-card {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.list-card ul {
  margin: 10px 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-links {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-link-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 243, 232, 0.95));
  text-decoration: none;
  color: inherit;
}

.range-wrap {
  display: grid;
  gap: 8px;
}

.range-value {
  color: var(--brand-strong);
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
}

th,
td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.94rem;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inline-form {
  display: grid;
  gap: 10px;
}

.inline-form .mini-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shot-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 243, 232, 0.95));
}

.guide-section[hidden] {
  display: none !important;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-links a {
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: none;
}

.note {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--highlight);
  border: 1px solid var(--line);
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 48, 68, 0.35);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(720px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

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

.modal-close {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: none;
}

.help-section {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 243, 232, 0.95));
}

.shot-frame {
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #f1d7c7;
  background: #fff;
}

.shot-image {
  display: block;
  width: 100%;
  height: auto;
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff3e8;
  border-bottom: 1px solid #f1d7c7;
}

.shot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f5b18b;
}

.shot-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.shot-line,
.shot-box {
  border-radius: 12px;
  background: #fff7f1;
  border: 1px solid #f4d9c7;
}

.shot-line {
  height: 14px;
}

.shot-line.short {
  width: 54%;
}

.shot-box {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: var(--brand-strong);
  font-weight: 700;
}

.small {
  font-size: 0.9rem;
}

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

.center {
  text-align: center;
}

.progress-track {
  display: grid;
  gap: 12px;
}

.progress-item {
  position: relative;
  padding: 16px 18px 16px 52px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
}

.progress-item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f2c7ad;
  border: 2px solid #efb189;
}

.progress-item.complete::before {
  background: var(--brand);
  border-color: var(--brand);
}

.progress-item.current {
  border-color: rgba(232, 104, 45, 0.45);
  box-shadow: inset 0 0 0 1px rgba(232, 104, 45, 0.15);
}

.progress-item.current::before {
  background: white;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(232, 104, 45, 0.16);
}

@media (max-width: 860px) {
  .hero,
  .grid,
  .two-up,
  .three-up,
  .page-links,
  .inline-form .mini-grid,
  .feature-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(100% - 20px, 1120px);
  }

  .hero-copy,
  .hero-panel,
  .form-card {
    padding: 24px;
  }
}
