/* ============================================================
   Offer Creator — clean white landing-page styles
   Plain white background, Inter (bold) throughout, blue accent.
   ============================================================ */

:root {
  --blue: var(--tx-blue, #1D84FB);
  --blue-600: var(--tx-blue-600, #0958b4);
  --blue-soft: #eaf3fe;
  --ink: #14161a;
  --muted: #5b6470;
  --line: #e6e8ec;
  --soft: #f5f6f8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #ffffff;
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 880px; margin: 0 auto; padding: 56px 24px 90px; }

.view { display: none; }
.view.active { display: block; }

/* ---- Hero (centered) ---- */
.hero { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.logo { height: 30px; width: auto; margin: 0 auto 40px; display: block; }
.logo-link { display: block; }
h1 {
  font-weight: 800; font-size: clamp(36px, 6.2vw, 62px); line-height: 1.04;
  letter-spacing: -0.025em; margin: 0 0 20px; color: var(--ink); text-wrap: balance;
}
h1 .accent { color: var(--blue); }
.hero h2 { font-weight: 800; font-size: clamp(28px, 5vw, 44px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--ink); }
.sub {
  font-size: 18px; color: var(--muted); max-width: 600px; margin: 0 auto;
  line-height: 1.55;
}

/* ---- Card ---- */
.card {
  max-width: 540px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(20,22,26,0.06), 0 2px 6px rgba(20,22,26,0.04);
  padding: 32px;
}
.card-head { text-align: center; margin-bottom: 24px; }
.card-head h2 { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 6px; }
.card-head p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---- Form ---- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--blue); }
.field .hint { font-weight: 400; color: var(--muted); font-size: 12px; }
input, textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; transition: border-color .15s, box-shadow .15s; resize: vertical;
}
input::placeholder, textarea::placeholder { color: #9aa3ad; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
input.invalid, textarea.invalid { border-color: #e05656; box-shadow: 0 0 0 3px #fde7e7; }
.err { display: none; color: #c23b3b; font-size: 12px; margin-top: 5px; }
.err.show { display: block; }

details.optional { margin: 6px 0 22px; border-top: 1px solid var(--line); padding-top: 18px; }
details.optional > summary {
  list-style: none; cursor: pointer; user-select: none;
  font-size: 13.5px; font-weight: 600; color: var(--blue-600);
  display: flex; align-items: center; gap: 8px;
}
details.optional > summary::-webkit-details-marker { display: none; }
details.optional > summary .chev { transition: transform .2s; font-size: 12px; }
details.optional[open] > summary .chev { transform: rotate(90deg); }
details.optional .opt-note { font-size: 12px; color: var(--muted); margin: 6px 0 18px; }

.submit {
  width: 100%; border: none; cursor: pointer;
  background: var(--blue); color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 700;
  padding: 16px 20px; border-radius: 10px; transition: background .15s, opacity .15s;
}
.submit:hover { background: var(--blue-600); }
.submit:disabled { opacity: 0.65; cursor: default; }
.fineprint { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ---- Loading ---- */
.steps { max-width: 560px; padding: 10px 32px; }
.step {
  display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step .icon {
  width: 30px; height: 30px; border-radius: 99px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 700;
  transition: background .25s, color .25s;
}
.step .label { font-size: 15px; font-weight: 600; color: var(--muted); transition: color .25s; }
.step .track { height: 6px; border-radius: 99px; background: var(--soft); margin-top: 9px; overflow: hidden; }
.step .fill { height: 100%; width: 0; border-radius: 99px; background: var(--blue); }
.step.active .label { color: var(--ink); }
.step.active .icon { background: var(--blue-soft); color: var(--blue-600); }
.step.active .icon .spin {
  width: 14px; height: 14px; border-radius: 99px;
  border: 2px solid #bcdcff; border-top-color: var(--blue); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.step.done .label { color: var(--ink); }
.step.done .icon { background: var(--blue-soft); color: var(--blue-600); }
.step.done .fill { width: 100% !important; background: var(--blue); }

/* ---- Report ---- */
.report-head { text-align: left; margin-bottom: 28px; }
.rh-logo { height: 26px; width: auto; display: block; margin: 0 0 18px; }
.rh-title { font-weight: 800; font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.025em; margin: 0; color: var(--ink); }

/* Horizontal rule separating the masthead from the report body. */
.report-rule { border: 0; border-top: 1px solid var(--line); margin: 0 0 40px; }
.rmuted { color: var(--muted); font-size: 15px; }

/* Shareable link box (shown to the VA right after generating). */
.report-share { max-width: 760px; margin: 0 0 44px; }
.report-share[hidden] { display: none; }
.report-share .rs-label { font-size: 13px; font-weight: 700; color: var(--blue-600); margin-bottom: 8px; }
.report-share .rs-row { display: flex; gap: 10px; }
.report-share input {
  flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 14px; color: var(--ink);
}
.report-share .rs-copy {
  flex: none; background: var(--blue); color: #fff; border: none; border-radius: 10px;
  padding: 0 18px; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s;
}
.report-share .rs-copy:hover { background: var(--blue-600); }
@media (max-width: 560px) {
  .report-share .rs-row { flex-direction: column; }
  .report-share .rs-copy { padding: 12px; }
}

#report-content .rcompany { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-600); font-weight: 700; margin-bottom: 8px; }
#report-content h1.rtitle { font-weight: 800; font-size: clamp(30px, 5vw, 46px); line-height: 1.0; letter-spacing: -0.025em; margin: 0 0 8px; }

.rsection { margin-top: 38px; }
.rsection > h2 {
  font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
  color: var(--blue);
}
.rsection .accent { color: var(--blue); }
.rsection p { color: var(--muted); margin: 0 0 11px; }
.rsection .lead { font-size: 16.5px; color: #3a414b; }

.callout { border-radius: 0 10px 10px 0; padding: 16px 20px; background: var(--blue-soft); border-left: 3px solid var(--blue); margin: 8px 0 12px; }
.callout.warn { background: #fef3c7; border-left-color: #f59e0b; }
.callout .label { font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; font-weight: 700; color: var(--blue-600); margin-bottom: 8px; }
.callout.warn .label { color: #b4790a; }

.rlist { list-style: none; margin: 6px 0 12px; padding: 0; }
.rlist li { position: relative; padding: 6px 0 6px 22px; color: var(--muted); }
.rlist li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 7px; border-radius: 99px; background: var(--blue); opacity: .55; }

.roffer { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 14px 0; box-shadow: 0 4px 16px rgba(20,22,26,0.05); }
.roffer .rank { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: #fff; background: var(--blue); border-radius: 6px; padding: 3px 10px; margin-right: 10px; vertical-align: middle; }
.roffer h3 { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; display: inline; vertical-align: middle; margin: 0; }
.roffer .one { font-size: 16px; color: var(--ink); margin: 14px 0; font-weight: 500; }
.roffer .tag { display: inline-block; font-size: 12.5px; font-weight: 600; background: var(--blue-soft); color: var(--blue-600); border-radius: 6px; padding: 5px 11px; }
.roffer .ometa { margin: 12px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.roffer .ometa-item { display: inline-flex; align-items: center; gap: 7px; }
.roffer .ometa-k { font-size: 13.5px; font-weight: 400; color: var(--ink); }
.roffer .kv { margin: 12px 0; }
.roffer .kv .k { display: block; font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; font-weight: 700; color: var(--blue-600); margin-bottom: 5px; }
.roffer .snippet { background: var(--soft); border-radius: 10px; padding: 14px 16px; margin-top: 6px; font-size: 15px; color: #2b313a; white-space: pre-line; line-height: 1.55; }

.rtable { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 4px; }
.rtable th { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--blue-600); background: var(--blue-soft); padding: 11px 13px; }
.rtable th:first-child { border-radius: 8px 0 0 0; }
.rtable th:last-child { border-radius: 0 8px 0 0; }
.rtable td { padding: 11px 13px; color: var(--muted); border-bottom: 1px solid var(--line); vertical-align: top; }
.rtable td:first-child strong { color: var(--ink); }
.rtable tr:last-child td { border-bottom: none; }

.score .yes { color: #16a34a; font-weight: 700; }
.score .no { color: #d97706; font-weight: 700; }

.snippet-line { background: var(--soft); border-radius: 10px; padding: 14px 16px; font-size: 15px; color: #2b313a; line-height: 1.55; }

.report-cta { margin-top: 44px; background: var(--ink); color: #fff; border-radius: 16px; padding: 30px; text-align: center; }
.report-cta h3 { font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 8px; }
.report-cta p { color: rgba(255,255,255,0.78); margin: 0 0 18px; }
.cta-btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; padding: 14px 28px; border-radius: 10px; }
.cta-btn:hover { background: var(--blue-600); }

.footer { text-align: center; margin-top: 48px; font-size: 12px; color: #9aa3ad; }

@media (max-width: 560px) {
  .card, .steps { padding: 24px; }
  .report-cta { padding: 24px; }
  .logo { margin-bottom: 28px; }
}
