:root {
  color-scheme: light;
  --ink: #132a3a;
  --muted: #657681;
  --line: #dce5e8;
  --surface: #ffffff;
  --background: #f3f7f6;
  --teal: #0d8c86;
  --teal-dark: #08716c;
  --lime: #c8e637;
  --danger: #a83232;
  font-family: Inter, Aptos, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(200, 230, 55, .2), transparent 25rem),
    linear-gradient(135deg, #f8fbfa 0%, var(--background) 55%, #eaf2f1 100%);
}

button, input, select { font: inherit; }

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

.intro {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  margin-bottom: 36px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  color: white;
  background: var(--teal);
  box-shadow: 0 12px 30px rgba(13, 140, 134, .22);
  font: 800 28px/1 Georgia, serif;
}

.eyebrow, .step {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 { max-width: 720px; margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.045em; }
.lede { max-width: 700px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

.privacy-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #49616b;
  font-size: 13px;
  font-weight: 650;
}
.privacy-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200, 230, 55, .22); }

.workspace { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); gap: 24px; align-items: start; }
.form-card, .summary-card { border: 1px solid rgba(19, 42, 58, .09); border-radius: 24px; background: rgba(255, 255, 255, .88); box-shadow: 0 24px 70px rgba(32, 70, 76, .08); backdrop-filter: blur(18px); }
.form-card { padding: 32px; }
.summary-card { padding: 32px; background: var(--ink); color: white; }

.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 28px; }
.section-heading.compact { margin-bottom: 22px; }
h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.summary-card .step { color: var(--lime); }

.currency-note { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--teal); background: white; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 9px; color: #334c58; font-size: 14px; font-weight: 700; }
.field small { margin-left: 5px; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.input-wrap { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 13px; background: white; transition: border-color .18s, box-shadow .18s; }
.input-wrap:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13, 140, 134, .1); }
.prefix { padding-left: 15px; color: var(--teal); font-size: 18px; font-weight: 800; }
input { width: 100%; border: 0; outline: 0; padding: 15px 14px 15px 8px; color: var(--ink); background: transparent; font-size: 18px; font-weight: 720; }
input::placeholder { color: #acb8bd; }

.primary-button { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 26px; padding: 17px 19px; border: 0; border-radius: 13px; color: white; background: var(--teal); cursor: pointer; font-weight: 800; box-shadow: 0 14px 28px rgba(13, 140, 134, .2); transition: transform .15s, background .15s; }
.primary-button:hover { transform: translateY(-1px); background: var(--teal-dark); }
.primary-button:disabled { cursor: wait; opacity: .68; transform: none; }
.helper, .summary-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.error { margin-top: 18px; padding: 12px 14px; border-radius: 10px; color: var(--danger); background: #fff0f0; font-size: 13px; }

.document-chip { padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: var(--lime); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.preview-sheet { position: relative; min-height: 386px; padding: 34px 30px 22px; overflow: hidden; border-radius: 8px; color: var(--ink); background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.24); }
.preview-topline { position: absolute; inset: 0 0 auto; height: 7px; background: linear-gradient(90deg, var(--teal) 0 72%, var(--lime) 72%); }
.preview-label { margin: 0 0 13px; color: var(--teal); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.preview-sheet h3 { max-width: 310px; margin: 0 0 30px; font: 700 27px/1.12 Georgia, serif; }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #e8edef; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 0; text-align: right; font-size: 13px; font-weight: 850; }
.preview-footer { display: flex; justify-content: space-between; margin-top: 30px; color: #819099; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.summary-note { color: #aebdc3; }
.summary-note strong { color: white; }

@media (max-width: 860px) {
  .intro { grid-template-columns: 52px 1fr; }
  .privacy-note { grid-column: 1 / -1; width: max-content; }
  .workspace { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1180px); padding: 28px 0 40px; }
  .intro { gap: 14px; margin-bottom: 24px; }
  .brand-mark { width: 48px; height: 48px; border-radius: 14px; }
  .fields { grid-template-columns: 1fr; }
  .form-card, .summary-card { padding: 22px; border-radius: 18px; }
  .section-heading { align-items: end; }
}
