/* preview.invoicemaxpro.com: the visitor's pages (gate, link, new link).
   Invoice Max Pro navy and teal; system fonts (nothing loaded from another
   site); works at 390, 820 and 1440 px without sideways scrolling. */
:root {
  --navy: #1F3F77;
  --navy-d: #18315D;
  --teal: #1E8C71;
  --teal-s: #E3F4F0;
  --ink: #0B1220;
  --mut: #4F5868;
  --line: #DCE3EC;
  --ground: #F4F7FB;
  --card: #FFFFFF;
  --err: #B42318;
  --err-s: #FDECEA;
  --warn: #8A5300;
  --warn-s: #FFF4E0;
  --ok: #17603F;
  --ok-s: #E6F4EC;
  --focus: #1F3F77;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.pv {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: linear-gradient(180deg, #EAF1F9 0, var(--ground) 340px, var(--ground) 100%);
  overflow-x: hidden;
}
a { color: var(--navy); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.pv-skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.pv-skip:focus { left: 8px; }

.pv-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.pv-top { background: rgba(255, 255, 255, .86); border-bottom: 1px solid var(--line); }
.pv-topin { display: flex; align-items: center; gap: 14px; min-height: 72px; flex-wrap: wrap; }
.pv-brand { display: inline-flex; align-items: center; }
.pv-brand img { display: block; width: 48px; height: 48px; }
.pv-tag {
  margin-inline-start: auto;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--navy); background: var(--teal-s);
  border-radius: 999px; padding: 6px 12px;
}

.pv-main { flex: 1; padding: 40px 0 56px; }
.pv-foot { border-top: 1px solid var(--line); background: #fff; }
.pv-footin { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; align-content: center; min-height: 64px; padding: 12px 0; font-size: 14px; color: var(--mut); }
.pv-footin a { color: var(--mut); }

/* The gate: the pitch beside the form (on a phone: the headline, the form, then the rest). */
.pv-gate {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-rows: auto 1fr; grid-template-areas: "intro form" "more form";
  column-gap: 48px; row-gap: 22px; align-items: start;
}
.pv-intro { grid-area: intro; }
.pv-more { grid-area: more; }
.pv-formcard { grid-area: form; }
.pv-kicker { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; }
.pv-intro h1 { margin: 0; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; letter-spacing: -.01em; color: var(--navy-d); }
.pv-lead { margin: 18px 0 0; font-size: 18px; color: var(--mut); max-width: 34em; }
.pv-points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.pv-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.pv-points .pv-ic { color: var(--teal); margin-top: 2px; }
.pv-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 12px; }
.pv-steps li {
  counter-increment: step;
  position: relative; padding: 14px 16px 14px 60px;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.pv-steps li::before {
  content: counter(step);
  position: absolute; inset-inline-start: 16px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.pv-steps b { font-size: 16px; }
.pv-steps span { color: var(--mut); font-size: 15px; }

.pv-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 28px; box-shadow: 0 18px 48px rgba(11, 18, 32, .08);
  min-width: 0;
}
.pv-formcard h2 { margin: 0; font-size: 24px; color: var(--navy-d); }
.pv-formsub { margin: 4px 0 18px; }
.pv-mut { color: var(--mut); font-size: 14px; }
.pv-after { margin: 16px 0 0; text-align: center; }

.pv-form { display: grid; gap: 16px; margin: 0; }
.pv-field { display: grid; gap: 6px; min-width: 0; }
.pv-field label { font-size: 14px; font-weight: 700; }
.pv-field input, .pv-field select, .pv-field textarea {
  width: 100%; min-width: 0;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid #C7D0DC; border-radius: 12px;
  padding: 11px 14px; min-height: 48px;
}
.pv-field textarea { resize: vertical; min-height: 96px; }
.pv-field input:focus, .pv-field select:focus, .pv-field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 63, 119, .18);
}
.pv-field input::placeholder, .pv-field textarea::placeholder { color: #7A8494; }
.pv-bad input, .pv-bad textarea, .pv-bad select { border-color: var(--err); }
.pv-error { margin: 0; color: var(--err); font-size: 14px; font-weight: 600; }
.pv-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.pv-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.pv-check label { font-size: 14px; color: var(--mut); }
.pv-check .pv-error { grid-column: 2; }
.pv-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.pv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border: 0; border-radius: 14px;
  background: var(--navy); color: #fff; font: inherit; font-size: 16px; font-weight: 700;
  text-decoration: none; cursor: pointer; text-align: center;
}
.pv-btn:hover { background: var(--navy-d); color: #fff; }
.pv-btn.pv-wide { width: 100%; }
.pv-btn.pv-small { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.pv-link { font-weight: 700; color: var(--navy); }
.pv-inline { display: inline-flex; margin: 0; }

.pv-note { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; margin: 0 0 16px; font-weight: 600; }
.pv-note.pv-ok { background: var(--ok-s); color: var(--ok); }
.pv-note.pv-warn { background: var(--warn-s); color: var(--warn); }
.pv-note.pv-err { background: var(--err-s); color: #8C1B12; }

.pv-done { text-align: center; display: grid; gap: 8px; justify-items: center; }
.pv-done h2 { margin: 6px 0 0; }
.pv-done p { margin: 0; max-width: 30em; }
.pv-donemark {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal-s); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
}
.pv-donemark .pv-ic { width: 28px; height: 28px; }

.pv-narrow { max-width: 560px; }
.pv-center { display: grid; gap: 14px; justify-items: center; text-align: center; }
.pv-center h1 { margin: 0; font-size: clamp(24px, 4vw, 30px); line-height: 1.2; color: var(--navy-d); }
.pv-center p { margin: 0; }
.pv-center form { width: 100%; }
.pv-center .pv-form { text-align: start; }
.pv-other { width: 100%; text-align: start; }
.pv-other summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 6px 0; }
.pv-other .pv-form { margin-top: 10px; }

.pv-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

@media (max-width: 960px) {
  .pv-gate { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "intro" "form" "more"; row-gap: 24px; }
  .pv-intro h1 { font-size: 32px; }
}
@media (max-width: 560px) {
  .pv-wrap { padding: 0 16px; }
  .pv-main { padding: 24px 0 40px; }
  .pv-card { padding: 20px; border-radius: 20px; }
  .pv-lead { font-size: 16px; }
  .pv-brand img { width: 40px; height: 40px; }
  .pv-steps li { padding-inline-start: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
