:root {
  --navy: #1A2356;
  --deep-dark: #141B3D;
  --gold: #B8962E;
  --light-blue: #CADCFC;
  --bg-light: #F4F5F8;
  --mid: #2C3E7E;
  --muted: #6b7280;
  --rule: #dfe3ee;
  --ok: #1f7a4d;
  --err: #b42318;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg-light); color: #1c1c1c; }
a { color: var(--mid); }
header { background: var(--deep-dark); padding: 22px 32px; border-bottom: 3px solid var(--gold); }
header .brand { color: var(--gold); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
header h1 { color: #fff; margin: 0; font-size: 24px; font-weight: 600; }
header p { color: var(--light-blue); margin: 6px 0 0; font-size: 14px; }
header .bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
header .who { color: var(--light-blue); font-size: 13px; }
header .who button { margin-left: 10px; }
main { max-width: 1180px; margin: 0 auto; padding: 24px 32px 64px; }
.card { background: #fff; border-radius: 8px; border: 1px solid var(--rule); padding: 22px 24px; margin-bottom: 20px; }
.card h2 { font-size: 17px; color: var(--navy); margin: 0 0 14px; }
.card h2 .step { display: inline-block; width: 24px; height: 24px; border-radius: 12px; background: var(--gold); color: #fff;
                 font-size: 13px; text-align: center; line-height: 24px; margin-right: 8px; }
label { display: block; font-size: 13px; font-weight: bold; color: #333; margin: 12px 0 5px; }
.hint { font-size: 12px; color: var(--muted); font-weight: normal; }
input[type=text], input[type=email], textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c9cfdd; border-radius: 5px; font-size: 15px; font-family: inherit; background: #fff;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
button, .button {
  background: var(--navy); color: #fff; border: 0; border-radius: 5px; padding: 11px 18px; font-size: 15px; cursor: pointer;
  font-family: inherit; display: inline-block; text-decoration: none;
}
button.secondary { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
button.gold { background: var(--gold); }
button.small { padding: 6px 12px; font-size: 13px; }
button:disabled { opacity: 0.55; cursor: default; }
.msg { margin-top: 12px; font-size: 14px; min-height: 18px; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }
.hidden { display: none !important; }

/* landing */
.landing { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.landing .pitch h2 { font-size: 26px; color: var(--navy); margin: 8px 0 12px; line-height: 1.25; }
.landing .pitch p, .landing .pitch li { font-size: 15px; line-height: 1.6; color: #333; }
.landing .pitch ul { padding-left: 20px; }
.tabs { display: flex; gap: 0; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.tabs button { background: none; color: var(--muted); border-radius: 0; padding: 10px 14px; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--navy); border-bottom-color: var(--gold); font-weight: bold; }

/* setup */
.setup { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.preview-wrap { position: sticky; top: 16px; }
.preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; flex-wrap: wrap; }
.preview-head h2 { margin: 0; }
iframe.preview { width: 100%; height: 820px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type=color] { width: 44px; height: 40px; padding: 2px; border: 1px solid #c9cfdd; border-radius: 5px; background: #fff; }
.logo-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.logo-row img { max-height: 44px; max-width: 200px; border: 1px solid var(--rule); padding: 4px; background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 15px; }
.check input { margin-top: 3px; width: 17px; height: 17px; }
.check small { display: block; color: var(--muted); font-size: 13px; }
.recips .row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.recips .row input { flex: 1; }
.badge { font-size: 11px; padding: 3px 7px; border-radius: 10px; background: #f3e8e8; color: var(--err); white-space: nowrap; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.status-grid div { background: var(--bg-light); border-radius: 6px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.status-grid strong { display: block; color: #1c1c1c; font-size: 15px; margin-top: 3px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
footer { text-align: center; font-size: 12px; color: var(--muted); padding: 0 16px 32px; }

@media (max-width: 900px) {
  header { padding: 18px 16px; }
  main { padding: 16px 16px 48px; }
  .landing, .setup { grid-template-columns: 1fr; }
  .preview-wrap { position: static; }
  iframe.preview { height: 640px; }
}
/* Setup step 2: how each newsletter is made */
.how { margin: -4px 0 14px 27px; font-size: 13px; color: #333; }
.how .srcs { line-height: 1.9; }
.how .code { font-family: Menlo, Consolas, monospace; font-size: 12px; background: #eef1f8; color: var(--navy); border: 1px solid #d9deea; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.how .kw { font-style: italic; color: #444; overflow-wrap: anywhere; }
.how summary { color: var(--mid); cursor: pointer; font-size: 13px; margin-top: 2px; }
.how ol { margin: 8px 0 0; padding-left: 20px; line-height: 1.5; }
.how li { margin-bottom: 6px; }
