:root {
  --bg: #f7f0e4;
  --paper: #fffaf2;
  --paper-strong: #fffdf8;
  --ink: #18130e;
  --muted: #675d50;
  --line: rgba(31, 24, 16, .13);
  --line-strong: rgba(31, 24, 16, .22);
  --rust: #a9472c;
  --rust-dark: #833119;
  --green: #627b5b;
  --dark: #191510;
  --shadow: 0 26px 80px rgba(37, 26, 13, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, rgba(255, 250, 242, .68), rgba(247, 240, 228, .9) 38%, #efe3cf 100%), var(--bg);
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 240, 228, .94);
  border-bottom: 1px solid var(--line);
}
.rail {
  width: min(1180px, calc(100vw - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img:first-child { width: 40px; height: 40px; object-fit: contain; }
.brand img:last-child { width: 92px; height: auto; object-fit: contain; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 24px; color: #433c31; font-size: 14px; white-space: nowrap; }
.nav a { text-decoration: none; }
.nav .cta { border-radius: 999px; background: var(--dark); color: #f7f0e4; padding: 10px 16px; font-weight: 760; }

main { width: min(1180px, calc(100vw - 40px)); margin: 0 auto; }
.hero { padding: 30px 0 22px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--rust-dark);
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kicker:before { content: ""; width: 24px; height: 1px; background: var(--rust); }
h1 {
  max-width: 850px;
  margin: 0;
  font: 520 clamp(2.35rem, 4.2vw, 3.8rem)/.99 Georgia, Cambria, "Times New Roman", serif;
  letter-spacing: -.035em;
}
.hero p { max-width: 790px; margin: 14px 0 0; color: #463d32; font-size: 18px; line-height: 1.55; }

.tool-shell {
  display: grid;
  grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
  padding: 8px 0 42px;
}
.panel {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, .82);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.input-panel { padding: 18px; position: sticky; top: 94px; }
.panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.sample-pill {
  flex: none;
  border: 1px solid rgba(169, 71, 44, .2);
  background: rgba(169, 71, 44, .08);
  border-radius: 999px;
  padding: 6px 8px;
  color: var(--rust-dark);
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.fields { display: grid; gap: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: grid; gap: 6px; color: #3d352c; font-size: 13px; font-weight: 760; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  border-radius: 4px;
  padding: 10px 11px;
  color: var(--ink);
  outline: none;
}
input, select { min-height: 42px; }
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(169, 71, 44, .48); box-shadow: 0 0 0 3px rgba(169, 71, 44, .09); }

.toggle-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.toggle-row button {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  color: #3b332a;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 760;
}
.toggle-row button.active { background: var(--dark); color: #fff7ea; border-color: var(--dark); }

.output-panel { overflow: hidden; background: #fffbf5; }
.output-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.output-head h2 { margin: 0 0 6px; font: 560 27px/1.08 Georgia, Cambria, "Times New Roman", serif; letter-spacing: -.02em; }
.output-head p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 14px; }
.primary-action { flex: none; border: 0; border-radius: 4px; background: var(--rust); color: white; padding: 11px 13px; cursor: pointer; font-weight: 820; }

.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px 22px 18px; border-bottom: 1px solid var(--line); }
.timeline-step { position: relative; min-width: 0; padding-top: 20px; }
.timeline-step:before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: rgba(169, 71, 44, .22); }
.timeline-step:first-child:before { left: 50%; }
.timeline-step:last-child:before { right: 50%; }
.dot { position: absolute; top: 0; left: 50%; width: 15px; height: 15px; margin-left: -7.5px; border: 3px solid #fffbf5; border-radius: 999px; background: var(--rust); box-shadow: 0 0 0 1px rgba(169, 71, 44, .25); }
.timeline-step strong, .timeline-step span { display: block; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-step strong { font-size: 12px; color: #3d352c; }
.timeline-step span { margin-top: 3px; color: var(--muted); font-size: 12px; }

.artifact-list { display: grid; gap: 12px; padding: 18px 22px 22px; }
.artifact-card { border: 1px solid var(--line); border-radius: 7px; background: #fffdf8; padding: 16px; }
.artifact-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.artifact-meta { color: var(--rust-dark); font: 800 11px/1.25 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.artifact-card h3 { margin: 6px 0 2px; font-size: 18px; line-height: 1.2; }
.artifact-card .send-date, .artifact-card .note { margin: 0; color: var(--muted); font-size: 13px; }
.copy-one { border: 1px solid var(--line-strong); background: transparent; color: #2d261f; border-radius: 4px; padding: 9px 10px; cursor: pointer; font-size: 13px; font-weight: 780; white-space: nowrap; }
.subject { margin: 0 0 10px; color: #312a23; font-weight: 780; }
.body-copy { margin: 0; color: #332d25; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
.artifact-card ul { margin: 0; padding-left: 20px; color: #332d25; font-size: 14.5px; line-height: 1.55; }

.sample-warning { display: none; margin: 10px 0 0; border: 1px solid rgba(169, 71, 44, .26); background: rgba(169, 71, 44, .08); border-radius: 5px; padding: 9px 10px; color: #6d2d19; font-size: 12.5px; line-height: 1.35; font-weight: 680; }
.sample-warning.is-visible { display: block; }

.package { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 16px 0 76px; }
.package.bridge-package { grid-template-columns: .86fr 1.14fr; }
.package-card { border: 1px solid var(--line); background: rgba(255, 250, 242, .75); border-radius: var(--radius); padding: 22px; }
.package-card h2 { margin: 0 0 10px; font: 540 26px/1.1 Georgia, Cambria, "Times New Roman", serif; letter-spacing: -.02em; }
.package-card p { margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.prompt-box { margin: 0; border-radius: 6px; background: var(--dark); color: #fff5e8; padding: 14px; white-space: pre-wrap; font: 500 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.da-bridge { border-color: rgba(25, 21, 16, .7); background: var(--dark); color: #fff7ea; }
.da-bridge p { color: #dfd2c1; }
.da-bridge a { display: inline-flex; margin-top: 2px; border-radius: 4px; background: #fff7ea; color: var(--dark); padding: 11px 13px; text-decoration: none; font-weight: 820; }
.bridge-points { display: grid; gap: 8px; margin: 14px 0 16px; padding: 0; list-style: none; }
.bridge-points li { border-top: 1px solid rgba(255, 247, 234, .16); padding-top: 8px; color: #f2e4d2; line-height: 1.42; }
.footer { padding: 32px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { margin-left: 14px; color: #312a23; text-decoration: none; font-weight: 760; }

@media (max-width: 900px) {
  .nav a:not(.cta) { display: none; }
  .hero { padding-top: 32px; }
  .tool-shell { grid-template-columns: 1fr; }
  .input-panel { position: static; }
  .output-panel { grid-row: 1; }
  .package, .package.bridge-package { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 12px; padding-left: 28px; }
  .timeline-step { min-height: 48px; padding: 0 0 0 28px; }
  .timeline-step:before { top: 0; bottom: -13px; left: 6px !important; right: auto !important; width: 2px; height: auto; }
  .timeline-step:last-child:before { bottom: 30px; }
  .dot { top: 0; left: 7px; }
  .timeline-step strong, .timeline-step span { text-align: left; white-space: normal; }
  .primary-action, .copy-one { width: 100%; }
  .output-head, .artifact-top { display: grid; }
}
@media (max-width: 560px) {
  .rail, main { width: calc(100vw - 28px); }
  .site-header { height: auto; min-height: 76px; padding: 14px 0; }
  .rail { align-items: flex-start; }
  .split { grid-template-columns: 1fr; }
  h1 { font-size: 2.3rem; }
}
