:root {
  --ink: #173038;
  --muted: #566a70;
  --paper: #f5f4ee;
  --card: #fff;
  --blue: #1a667b;
  --blue-dark: #175b70;
  --blue-soft: #e5f2f4;
  --line: #d6dfdf;
  --sun: #ffd875;
  --shadow: 0 18px 52px rgba(23, 48, 56, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 7%, rgba(255, 216, 117, .17), transparent 24rem),
    radial-gradient(circle at 90% 28%, rgba(34, 122, 147, .08), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.skip-link{position:fixed;top:12px;left:12px;z-index:100;padding:10px 14px;border:2px solid var(--ink);border-radius:8px;background:var(--card);color:var(--ink);font-weight:800;transform:translateY(-150%)}
.skip-link:focus{transform:none}

body > header {
  min-height: 72px;
  max-width: 1100px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.035em;
  text-decoration: none;
  text-transform: none;
}

.brand::before {
  content: "";
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fff 0 4px, var(--blue) 4.5px 100%);
  box-shadow: 0 5px 15px rgba(34, 122, 147, .2);
}

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.landing-header-actions > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue-dark);
  text-underline-offset: 3px;
}

.hero {
  position: relative;
  max-width: 920px;
  margin: auto;
  padding: 100px 24px 82px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 38px 12% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.eyebrow,
.step {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 20px 0;
  font-family: Georgia, serif;
  font-size: clamp(48px, 7vw, 78px);
  line-height: 1;
  letter-spacing: -.045em;
  text-wrap: balance;
}

h1 em {
  color: var(--blue);
  font-weight: 400;
}

.hero > p:not(.eyebrow) {
  max-width: 650px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-secondary {
  color: var(--blue);
  font-weight: 760;
  text-underline-offset: 4px;
}

.button,
.primary,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 14px 18px;
  font: inherit;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(23, 48, 56, .15);
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.button:hover,
.primary:hover,
button:hover:not(:disabled) {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 11px 28px rgba(23, 48, 56, .2);
}

:is(a, button):focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 3px;
}

:is(input, select, textarea):focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 2px;
  border-color: var(--blue);
}

#main-content:focus-visible,
.composer:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 3px;
}

button:disabled {
  background: #60747a;
  cursor: not-allowed;
  box-shadow: none;
}

.offer a { color: var(--ink); }

.guardrails {
  max-width: 1050px;
  margin: auto;
  padding: 38px;
  display: grid;
  grid-template-columns: .9fr 1.4fr;
  gap: 42px;
  align-items: center;
  background: linear-gradient(135deg, #ffdd85, var(--sun));
  border: 1px solid rgba(23, 48, 56, .1);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.guardrails h2 {
  margin: 8px 0;
  font: 34px/1.1 Georgia, serif;
  letter-spacing: -.025em;
}

.guardrails ul {
  margin: 0;
  padding-left: 22px;
}

.guardrails li {
  margin: 10px 0;
  padding-left: 4px;
  line-height: 1.55;
}

.composer {
  max-width: 1050px;
  margin: 76px auto 0;
  padding: 38px;
  display: grid;
  grid-template-columns: .8fr 1.1fr;
  gap: 28px 42px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.composer-intro { grid-column: 1 / -1; }
.composer-intro h2 { margin: 8px 0; font: 40px/1.12 Georgia, serif; letter-spacing: -.03em; }
.composer-intro p:last-child { max-width: 670px; color: var(--muted); line-height: 1.65; }
.composer label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 760; }
.composer-field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.composer-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.composer-fields { display: grid; gap: 14px; margin-top: 18px; }
.composer-progress { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.composer :is(input, select, textarea) { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfb; color: var(--ink); font: 15px/1.5 Inter, system-ui; }
.composer input::placeholder { color: var(--muted); opacity: 1; }
.composer :is(input, select) { min-height: 46px; padding: 10px 12px; }
.composer textarea { min-height: 260px; padding: 16px; resize: vertical; }
.composer-draft-count { margin: -6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: right; overflow-wrap: anywhere; }
.composer-output { display: grid; align-content: start; gap: 12px; }
.composer-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.composer-actions button { width: 100%; }
.composer .secondary { background: white; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.composer .composer-clear { grid-column: 1 / -1; color: var(--muted); border-style: dashed; }
.composer .composer-clear:hover:not(:disabled) { background: var(--blue-soft); color: var(--ink); border-color: var(--blue); box-shadow: none; }
.composer-status { min-height: 1.5em; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.timeline {
  position: relative;
  max-width: 1050px;
  margin: 76px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -24px;
  bottom: -24px;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent, var(--line) 8%, var(--line) 92%, transparent);
}

.card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 30px;
  line-height: 1.65;
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--blue);
}

.card:last-child {
  grid-column: 1 / -1;
  width: calc(50% - 9px);
  justify-self: center;
}

.card h2 {
  margin: 6px 0 20px;
  font: 30px/1.12 Georgia, serif;
  letter-spacing: -.025em;
}

.card h3 {
  margin: 26px 0 8px;
  color: var(--blue-dark);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card pre {
  margin: 0;
  padding: 16px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  border-left: 3px solid var(--line);
  background: #f8faf9;
  color: var(--muted);
  font: 14px/1.65 Inter, system-ui;
}

.card button { margin-top: 8px; }

.preview {
  min-height: 250px;
  background:
    repeating-linear-gradient(-45deg, rgba(34, 122, 147, .025) 0 8px, transparent 8px 16px),
    var(--blue-soft);
  color: var(--muted);
  box-shadow: none;
}

.preview::before { background: #9bbec7; }

.preview h2 { color: var(--ink); }

.lock {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 10px;
  border: 1px solid #b9d3d9;
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, .55);
  font-size: 11px;
  font-weight: 780;
}

.offer,
.offer + .boundary {
  max-width: 820px;
  margin: 84px auto;
  padding: 52px 34px;
  text-align: center;
}

.offer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #e5f4f6, #d7ebef);
  border: 1px solid #c2dde3;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.offer::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -70px;
  bottom: -80px;
  border: 28px solid rgba(34, 122, 147, .08);
  border-radius: 50%;
}

.offer h2,
.offer + .boundary h2 {
  margin: 10px 0;
  font: 40px/1.12 Georgia, serif;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.offer p,
.offer + .boundary p {
  color: var(--muted);
  line-height: 1.7;
}

.offer small {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 650px;
  margin: 16px auto 0;
  line-height: 1.55;
}

.offer + .boundary {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

footer {
  padding: 32px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--ink);
  color: #c9d5d6;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

footer a {
  color: #fff;
  text-underline-offset: 3px;
}

footer a:focus-visible { outline-color: var(--sun); }

.legal {
  max-width: 780px;
  margin: 50px auto;
  padding: 0 24px 70px;
  line-height: 1.7;
}

.legal h1 {
  font-size: clamp(38px, 6vw, 58px);
  text-align: left;
}

.legal h2 {
  margin-top: 42px;
  font: 30px Georgia, serif;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
}

.legal th,
.legal td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (max-width: 760px) {
  .guardrails,
  .timeline,
  .composer { grid-template-columns: 1fr; }
  .guardrails {
    margin-inline: 12px;
    padding: 30px 24px;
  }
  .composer { margin-inline: 12px; padding: 30px 24px; }
  .timeline::before { left: 32px; }
  .card:last-child {
    grid-column: auto;
    width: 100%;
  }
  .hero { padding-top: 70px; }
}

@media (max-width: 520px) {
  body > header { min-height: 66px; padding-inline: 16px; }
  .landing-header-actions { gap: 8px; }
  .hero { padding-inline: 18px; padding-bottom: 66px; }
  .hero > p:not(.eyebrow) { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-secondary { padding: 10px; }
  .timeline { padding-inline: 12px; margin-block: 58px; }
  .card { padding: 26px 20px; }
  .card button,
  .offer button,
  .composer-actions button { width: 100%; }
  .composer-choices,
  .composer-actions { grid-template-columns: 1fr; flex-direction: column; }
  .offer,
  .offer + .boundary { margin-inline: 12px; padding: 42px 22px; }
  .offer h2,
  .offer + .boundary h2 { font-size: 34px; }
}

@media (max-width: 340px) {
  body > header.landing-header { min-height: 98px; padding-block: 8px; flex-wrap: wrap; }
  .landing-header .brand { flex-basis: 100%; }
  .landing-header-actions { margin-left: auto; }
}
