:root {
  --bg: #f5f1e8;
  --bg-strong: #efe5d2;
  --panel: rgba(255, 252, 246, 0.88);
  --panel-strong: #fffaf2;
  --panel-tint: rgba(248, 243, 233, 0.96);
  --ink: #1f2620;
  --muted: #5d645d;
  --line: rgba(58, 70, 59, 0.14);
  --accent: #1f6f5f;
  --accent-strong: #124e42;
  --accent-soft: rgba(31, 111, 95, 0.12);
  --card-shadow: 0 16px 34px rgba(35, 31, 22, 0.08);
  --warning: #b55d15;
  --danger: #9f2f27;
  --shadow: 0 24px 60px rgba(35, 31, 22, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(210, 150, 88, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(31, 111, 95, 0.12), transparent 25%),
    linear-gradient(180deg, #f8f4ec 0%, #f1e6d7 100%);
}

a {
  color: var(--accent-strong);
}

.shell {
  width: min(1380px, calc(100% - 2.25rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero > *,
.layout > *,
.summary-strip > *,
.asset-grid > *,
.data-item > * {
  min-width: 0;
}

.hero-copy,
.hero-note,
.panel {
  backdrop-filter: blur(16px);
  background: var(--panel-tint);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-note {
  border-radius: 30px;
  padding: 1.7rem;
}

.eyebrow,
.kicker {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent-strong);
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.05;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  max-width: 10ch;
}

.lead,
.hero-note p,
.section-copy,
.mini-note,
.basis-summary,
.field small,
.message-card p,
.data-item small {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.submission-checklist {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 24px;
  border: 1px solid rgba(31, 111, 95, 0.18);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--card-shadow);
}

.submission-checklist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.submission-checklist-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
}

.button {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: #f9f7f2;
  background: linear-gradient(135deg, var(--accent) 0%, #0f5446 100%);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(18, 78, 66, 0.16);
}

.button.secondary {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(350px, 0.82fr);
  gap: 1.5rem;
  align-items: start;
}

.panel {
  border-radius: var(--radius);
  padding: 1.45rem;
}

.result-panel {
  position: sticky;
  top: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(248, 243, 233, 0.95));
}

.section-heading {
  margin-bottom: 1.15rem;
}

.form-section,
.result-block {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.form-section:first-of-type,
.result-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.form-section h3,
.result-block h3,
.hero-note h2 {
  margin: 0 0 0.65rem;
  font-size: 1.18rem;
  font-family: Georgia, "Times New Roman", serif;
}

.grid {
  display: grid;
  gap: 0.9rem;
}

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

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

.stack {
  display: grid;
  gap: 0.55rem;
}

.profile-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.profile-option {
  width: 100%;
  text-align: left;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(58, 70, 59, 0.16);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 0.4rem;
  box-shadow: var(--card-shadow);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.profile-option strong {
  font-size: 1.05rem;
  font-family: Georgia, "Times New Roman", serif;
}

.profile-option span {
  color: var(--muted);
  line-height: 1.45;
}

.profile-option:hover {
  transform: translateY(-1px);
}

.profile-option.active {
  border-color: rgba(31, 111, 95, 0.42);
  background: rgba(31, 111, 95, 0.12);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.field-label span {
  flex: 1 1 auto;
}

.field span {
  font-size: 0.95rem;
}

.field input,
.field select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(58, 70, 59, 0.18);
  background: var(--panel-strong);
  padding: 0.88rem 0.92rem;
  font: inherit;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: rgba(31, 111, 95, 0.44);
  box-shadow: 0 0 0 4px rgba(31, 111, 95, 0.12);
}

.field.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.48);
}

.field.checkbox input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.18rem;
}

.checkbox-copy {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.field.checkbox .field-label {
  align-items: flex-start;
}

.basis-banner,
.basis-summary {
  margin: 0.9rem 0 0;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(31, 111, 95, 0.16);
  background: rgba(31, 111, 95, 0.08);
  line-height: 1.5;
}

.basis-summary {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 0.94rem;
}

.info-button {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(31, 111, 95, 0.3);
  border-radius: 999px;
  background: rgba(31, 111, 95, 0.08);
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.info-button:hover {
  transform: translateY(-1px);
  background: rgba(31, 111, 95, 0.14);
}

.info-button:focus-visible {
  outline: none;
  border-color: rgba(31, 111, 95, 0.44);
  box-shadow: 0 0 0 4px rgba(31, 111, 95, 0.12);
}

.field-help {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(31, 111, 95, 0.18);
  background: rgba(31, 111, 95, 0.08);
}

.field-help p {
  margin: 0;
  line-height: 1.45;
  color: var(--ink);
}

.field-help p + p {
  margin-top: 0.45rem;
}

.field-help p + ul,
.field-help ul + p {
  margin-top: 0.45rem;
}

.field-help ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink);
}

.field-help li + li {
  margin-top: 0.32rem;
}

.field-help-note {
  color: var(--muted);
}

.subcard,
.asset-row,
.message-card,
.summary-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--card-shadow);
}

.subcard {
  padding: 1rem;
}

.mini-note {
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
}

.asset-list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.asset-row {
  padding: 0.95rem;
}

.asset-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
}

.asset-controls {
  display: flex;
  justify-content: flex-end;
}

.asset-output {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.summary-card {
  padding: 1rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.summary-card p,
.summary-card strong {
  display: block;
}

.summary-card p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  line-height: 1.25;
}

.summary-card strong {
  font-size: 1.45rem;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
}

.summary-card.summary-card-text strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.message-card {
  padding: 1rem 1.05rem;
}

.message-card.good {
  background: rgba(31, 111, 95, 0.11);
}

.message-card.warn {
  background: rgba(181, 93, 21, 0.11);
}

.message-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.message-card p,
.data-item small,
.tight-list li,
.source-list li {
  overflow-wrap: anywhere;
}

.data-list {
  display: grid;
  gap: 0.8rem;
}

.data-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(252, 248, 241, 0.76));
  border: 1px solid rgba(58, 70, 59, 0.11);
  box-shadow: var(--card-shadow);
}

.data-copy {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
}

.data-label {
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.22;
  font-family: Georgia, "Times New Roman", serif;
}

.data-note {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
}

.data-value {
  display: inline-flex;
  justify-self: start;
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(58, 70, 59, 0.12);
  box-shadow: 0 10px 20px rgba(35, 31, 22, 0.06);
  font-size: 1.12rem;
  line-height: 1.1;
  font-family: Georgia, "Times New Roman", serif;
  overflow-wrap: anywhere;
}

.tight-list,
.source-list {
  padding-left: 1rem;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.wide {
  grid-column: span 2;
}

@media (max-width: 1180px) {
  .layout,
  .hero {
    grid-template-columns: 1fr;
  }

  .result-panel {
    position: static;
  }

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

@media (max-width: 980px) {
  .shell {
    width: min(100% - 1.25rem, 1380px);
  }

  .profile-picker,
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 1rem, 1440px);
    padding-top: 0.75rem;
  }

  .panel,
  .hero-copy,
  .hero-note {
    border-radius: 22px;
    padding: 1rem;
  }

  .hero h1 {
    max-width: none;
  }

  .grid.two,
  .grid.three,
  .profile-picker,
  .summary-strip,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }
}
