:root {
  --paper: #f7f2e7;
  --paper-light: #fbf8f1;
  --ink: #141814;
  --muted: #5e655f;
  --deep-jade: #14221e;
  --jade: #2e6b57;
  --cinnabar: #a9362a;
  --bronze: #b89355;
  --line: #d9d0bf;
  --shadow: 0 20px 60px rgba(20, 24, 20, 0.12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(184, 147, 85, 0.16), transparent 26rem),
    linear-gradient(120deg, rgba(46, 107, 87, 0.08), transparent 35%),
    var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(20, 24, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 24, 20, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 82%);
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: stretch;
  min-height: 620px;
}

.hero__copy,
.panel,
.hero-card,
.workflow-panel,
.preview-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 248, 241, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 5vw, 56px);
}

.hero__body {
  min-width: 0;
}

.topbar,
.hero__actions,
.language-switch,
.landing-proof,
.element-bars,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.topbar {
  justify-content: space-between;
}

.seal {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--cinnabar);
  color: var(--cinnabar);
  font-weight: 800;
}

.language-switch {
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.language-switch__button {
  min-height: 34px;
  border: 0;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.language-switch__button.is-active {
  color: var(--paper-light);
  background: var(--jade);
}

.kicker {
  margin: 0 0 12px;
  color: var(--cinnabar);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 24px 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1;
}

h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  line-height: 1.75;
}

.notice {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.landing-proof {
  margin: 22px 0;
}

.landing-proof span {
  min-width: 0;
  border: 1px solid rgba(46, 107, 87, 0.28);
  padding: 9px 12px;
  color: var(--jade);
  background: rgba(251, 248, 241, 0.72);
  font-size: 0.88rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--jade);
  padding: 0 18px;
  color: var(--jade);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button--primary {
  color: var(--paper-light);
  background: var(--jade);
}

.button--ghost {
  background: rgba(251, 248, 241, 0.74);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--cinnabar);
}

.button--wide {
  width: 100%;
}

.button:disabled {
  border-color: rgba(94, 101, 95, 0.34);
  color: rgba(251, 248, 241, 0.78);
  background: rgba(46, 107, 87, 0.62);
  cursor: wait;
}

.hero-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 4vw, 42px);
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 28%, rgba(46, 107, 87, 0.16), transparent 13rem),
    linear-gradient(180deg, rgba(251, 248, 241, 0.96), rgba(247, 242, 231, 0.88));
}

.hero-card__label,
.hero-card__note {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.hero-card__label {
  margin-bottom: 18px;
  color: var(--cinnabar);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card__note {
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.plate {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(217, 208, 191, 0.4);
  border-radius: 999px;
  background:
    repeating-radial-gradient(circle, transparent 0 35px, rgba(217, 208, 191, 0.14) 36px 37px),
    radial-gradient(circle, rgba(46, 107, 87, 0.6), rgba(20, 34, 30, 0.96));
  box-shadow: inset 0 0 0 10px rgba(251, 248, 241, 0.04), 0 18px 45px rgba(20, 24, 20, 0.14);
}

.plate span {
  grid-area: 1 / 1;
  font-family: Georgia, serif;
  font-size: clamp(1.2rem, 4vw, 2.6rem);
}

.plate span:nth-child(1) {
  transform: translateY(-110px);
}

.plate span:nth-child(2) {
  transform: translateX(120px);
}

.plate span:nth-child(3) {
  transform: translateY(116px);
  color: var(--bronze);
}

.plate span:nth-child(4) {
  transform: translateX(-120px);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.mini-grid span,
.mini-grid strong {
  min-width: 0;
  text-align: center;
}

.mini-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-grid strong {
  color: var(--jade);
  font-size: 1.15rem;
}

.studio {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  margin-top: 24px;
}

.workflow-panel {
  margin-top: 24px;
  padding: clamp(20px, 4vw, 34px);
}

.preview-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  margin-top: 24px;
  padding: clamp(20px, 4vw, 34px);
}

.preview-strip__intro {
  min-width: 0;
  align-self: center;
}

.preview-strip__intro p:not(.kicker) {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.workflow-grid article,
.next-layer-grid article {
  min-width: 0;
  border: 1px solid rgba(217, 208, 191, 0.86);
  border-radius: 8px;
  padding: 18px;
  background: rgba(251, 248, 241, 0.74);
}

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

.workflow-grid span,
.next-layer-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--cinnabar);
  font-size: 0.8rem;
  font-weight: 900;
}

.workflow-grid p,
.next-layer-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.next-layer-grid article:first-child {
  border-color: rgba(46, 107, 87, 0.34);
  background:
    linear-gradient(180deg, rgba(46, 107, 87, 0.08), transparent),
    rgba(251, 248, 241, 0.78);
}

.panel {
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
}

.section-heading {
  margin-bottom: 22px;
}

.section-note {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 750;
}

label em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
}

input,
select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper-light);
}

input:focus,
select:focus {
  outline: 2px solid rgba(46, 107, 87, 0.2);
  border-color: var(--jade);
}

.form-errors {
  margin-top: 14px;
  color: var(--cinnabar);
  font-size: 0.92rem;
  line-height: 1.5;
}

.empty-state {
  border: 1px dashed var(--line);
  padding: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.empty-state.is-loading {
  border-color: rgba(46, 107, 87, 0.34);
  color: var(--jade);
  background:
    linear-gradient(90deg, rgba(46, 107, 87, 0.08), rgba(184, 147, 85, 0.08), rgba(46, 107, 87, 0.08)),
    rgba(251, 248, 241, 0.76);
  font-weight: 800;
}

.result-dashboard {
  display: grid;
  gap: 20px;
}

.chart-stack,
.analysis-rail,
.report-preview {
  min-width: 0;
  border: 1px solid rgba(217, 208, 191, 0.78);
  border-radius: 8px;
  padding: 16px;
  background: rgba(251, 248, 241, 0.56);
}

.chart-stack {
  border-color: rgba(46, 107, 87, 0.24);
}

.analysis-rail {
  background:
    linear-gradient(90deg, rgba(184, 147, 85, 0.08), transparent),
    rgba(251, 248, 241, 0.64);
}

.report-preview {
  background:
    linear-gradient(180deg, rgba(46, 107, 87, 0.07), transparent),
    rgba(251, 248, 241, 0.68);
}

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

.pillar-card {
  min-width: 0;
  border: 1px solid rgba(46, 107, 87, 0.24);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(46, 107, 87, 0.08), transparent),
    rgba(251, 248, 241, 0.86);
}

.pillar-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.pillar-card strong {
  display: block;
  margin: 8px 0;
  color: var(--jade);
  font-size: 1.5rem;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.result-summary article {
  min-width: 0;
  border: 1px solid rgba(217, 208, 191, 0.86);
  border-radius: 8px;
  padding: 13px 14px;
  background:
    linear-gradient(180deg, rgba(46, 107, 87, 0.08), transparent),
    rgba(251, 248, 241, 0.82);
}

.result-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--cinnabar);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-summary strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.35;
}

.element-bars {
  align-items: stretch;
  margin: 18px 0 0;
}

.element-bar {
  flex: 1 1 120px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--paper);
}

.element-bar__track {
  height: 8px;
  margin-top: 8px;
  background: rgba(46, 107, 87, 0.12);
}

.element-bar__fill {
  height: 100%;
  background: var(--jade);
}

.chain,
.report {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.result-heading {
  margin-top: 0;
  color: var(--deep-jade);
  font-size: 1.1rem;
}

.report-outline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.report-outline div {
  min-width: 0;
  border: 1px solid rgba(46, 107, 87, 0.22);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(46, 107, 87, 0.08), transparent),
    rgba(251, 248, 241, 0.82);
}

.report-outline span {
  color: var(--bronze);
  font-size: 0.78rem;
  font-weight: 900;
}

.report-outline h3 {
  margin-top: 8px;
}

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

details,
.report-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(251, 248, 241, 0.72);
}

summary {
  cursor: pointer;
  color: var(--jade);
  font-weight: 800;
  overflow-wrap: anywhere;
}

details p,
.report-section p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.report-actions {
  justify-content: space-between;
  margin-top: 18px;
}

.handoff-card {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  border: 1px solid rgba(46, 107, 87, 0.34);
  border-radius: 8px;
  padding: 18px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0, rgba(184, 147, 85, 0.18), transparent 16rem),
    linear-gradient(180deg, rgba(251, 248, 241, 0.94), rgba(247, 242, 231, 0.82));
}

.handoff-card .kicker {
  color: var(--cinnabar);
}

.handoff-card h3 {
  color: var(--ink);
  font-size: 1.25rem;
}

.handoff-card p:not(.kicker) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.handoff-card .button--primary {
  border-color: var(--jade);
  color: var(--paper-light);
  background: var(--jade);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 20px, 720px);
    padding-top: 10px;
  }

  .hero,
  .studio {
    grid-template-columns: 1fr;
    min-height: 0;
  }

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

  .preview-strip {
    grid-template-columns: 1fr;
  }

  .hero__copy,
  .panel,
  .hero-card,
  .preview-strip {
    padding: 20px;
  }

  .plate {
    max-width: 360px;
    margin: 0 auto;
  }

  .plate span:nth-child(1) {
    transform: translateY(-80px);
  }

  .plate span:nth-child(2) {
    transform: translateX(88px);
  }

  .plate span:nth-child(3) {
    transform: translateY(86px);
  }

  .plate span:nth-child(4) {
    transform: translateX(-88px);
  }

  .pillars,
  .mini-grid,
  .result-summary,
  .report-outline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .handoff-card {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 16px, 560px);
  }

  h1 {
    font-size: 2.55rem;
    line-height: 0.98;
  }

  h2 {
    font-size: 1.85rem;
    line-height: 1.08;
  }

  .hero {
    gap: 14px;
  }

  .hero__copy,
  .panel,
  .hero-card,
  .workflow-panel,
  .preview-strip {
    padding: 16px;
  }

  .landing-proof span,
  .button,
  input,
  select {
    min-height: 44px;
  }

  .plate {
    max-width: 280px;
  }

  .plate span:nth-child(1) {
    transform: translateY(-64px);
  }

  .plate span:nth-child(2) {
    transform: translateX(68px);
  }

  .plate span:nth-child(3) {
    transform: translateY(68px);
  }

  .plate span:nth-child(4) {
    transform: translateX(-68px);
  }

  .chart-stack,
  .analysis-rail,
  .report-preview,
  .handoff-card {
    padding: 14px;
  }
}

@media (max-width: 460px) {
  .hero__actions,
  .language-switch,
  .landing-proof,
  .report-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .language-switch__button {
    width: 100%;
  }

  .pillars,
  .mini-grid,
  .workflow-grid,
  .next-layer-grid,
  .result-summary,
  .report-outline {
    grid-template-columns: 1fr;
  }

  .preview-strip {
    margin-top: 14px;
  }

  .workflow-grid article,
  .next-layer-grid article,
  .report-outline div,
  details,
  .report-section {
    padding: 14px;
  }
}
