/* sign.appzoola.com — design matches www.appzoola.com
   Light theme. Manrope. Pill buttons. Bright blue primary.
   Same tokens as the main marketing site so this page looks like part of it. */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

:root {
  --blue:        #3799EB;
  --blue-dark:   #126CFF;
  --red:         #ED220D;
  --red-soft:    #da3b26;
  --navy:        #0d0a46;
  --ink:         #2a2a2a;
  --ink-soft:    #555;
  --ink-mute:    #7a7a7a;
  --line:        #e6ecf3;
  --bg-soft:     #f6f9fc;
  --white:       #ffffff;
  --green:       #2da76d;

  --sans: 'Manrope', -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--red); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  box-shadow: -6px -6px 20px rgba(77, 107, 216, 0.03), 5px 5px 20px rgba(77, 107, 216, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  max-width: 1360px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  color: var(--navy);
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}
.brand .brand-mark {
  font-weight: 400;
  font-size: 14px;
  color: var(--blue);
  letter-spacing: 0.5px;
}
.brand img { height: 56px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  padding: 10px 6px;
  border-top: 5px solid transparent;
  transition: border-color 0.15s;
}
.nav-links a:hover { color: var(--ink); border-top-color: var(--red-soft); text-decoration: none; }
.nav-links a.active { color: var(--blue-dark); border-top-color: var(--blue); }

/* ---------- Layout ---------- */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 28px 40px;
}
.narrow { max-width: 760px; margin: 0 auto; }

.hero {
  margin: 10px 0 50px;
  text-align: center;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--blue);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-title {
  font-size: 46px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 14px;
}
.hero-title .accent { color: var(--blue); font-weight: 600; }
.hero-sub {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Headings ---------- */
h1, h2, h3 { color: var(--navy); font-weight: 300; line-height: 1.25em; }
h1 { font-size: 46px; margin: 0 0 12px; }
h2 { font-size: 25px; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 500; }
h3 { font-size: 20px; margin: 20px 0 8px; font-weight: 600; }
p  { margin: 0 0 12px; }
strong { color: var(--ink); font-weight: 700; }

/* ---------- Cards / step container ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 12px;
  max-width: 820px;
  margin: 30px auto;
  box-shadow: 0 6px 24px rgba(77, 107, 216, 0.06);
}
.card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.4px;
  margin: 16px 0 6px;
  text-transform: uppercase;
}
.card input[type=text], .card input[type=email], .card input[type=tel], .card select, .card textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid #cfd9e3;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  padding: 11px 14px;
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card input:focus, .card select:focus, .card textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(55, 153, 235, 0.15);
  outline: none;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .row2, .row3 { grid-template-columns: 1fr; } }

/* ---------- Step indicator ---------- */
.steps {
  display: flex;
  gap: 0;
  justify-content: center;
  margin: 0 auto 24px;
  max-width: 820px;
  padding: 0 28px;
  list-style: none;
}
.step {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 14px 6px;
  border-bottom: 3px solid var(--line);
  transition: color .15s, border-color .15s;
}
.step.active { color: var(--blue); border-bottom-color: var(--blue); }
.step.done   { color: var(--green); border-bottom-color: var(--green); }
.step-num {
  display: inline-block;
  width: 22px; height: 22px;
  line-height: 20px;
  border-radius: 50%;
  border: 1px solid currentColor;
  margin-right: 8px;
  font-size: 11px;
  vertical-align: middle;
  font-weight: 700;
}

/* ---------- Service tiles (radio-style for discovery) ---------- */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 18px 0 6px;
}
.option-tile {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 20px 20px 18px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.option-tile:hover { border-color: var(--blue); box-shadow: 0 6px 24px rgba(55, 153, 235, 0.10); transform: translateY(-2px); }
.option-tile.selected { border-color: var(--blue); background: #f0f7ff; box-shadow: 0 0 0 3px rgba(55, 153, 235, 0.18); }

/* TEMPORARY: $1 live-mode test tile — remove with the rest of the test plumbing */
.option-tile-test { border-color: var(--red); background: #fff7f8; border-style: dashed; }
.option-tile-test:hover { border-color: var(--red); background: #ffeef0; box-shadow: 0 6px 24px rgba(237, 34, 13, 0.12); }
.option-tile-test.selected { border-color: var(--red); background: #ffe6e9; box-shadow: 0 0 0 3px rgba(237, 34, 13, 0.18); border-style: solid; }
.option-tile-test h3 { color: var(--red); }
.option-tile h3 { margin: 0 0 6px; color: var(--navy); font-size: 17px; font-weight: 600; }
.option-tile .meta { font-size: 11px; letter-spacing: 1.5px; color: var(--blue); text-transform: uppercase; font-weight: 600; }
.option-tile .price {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin: 10px 0 8px;
}
.option-tile .desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 10px 0;
  background: var(--white);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.checkbox-row:hover { border-color: var(--blue); background: #f8fbff; }
.checkbox-row input { margin-top: 4px; transform: scale(1.2); accent-color: var(--blue); }
.checkbox-row .ck-label { font-weight: 700; color: var(--navy); }
.checkbox-row .ck-price { color: var(--blue); font-weight: 600; font-size: 13.5px; margin-left: 10px; }
.checkbox-row .ck-desc  { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }

/* ---------- Agreement display ---------- */
.agreement-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 26px;
  max-height: 420px;
  overflow-y: auto;
  margin: 14px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.agreement-box h4 { color: var(--navy); margin: 18px 0 6px; font-weight: 600; font-size: 16px; }
.agreement-box .clause-num { color: var(--blue); font-weight: 700; margin-right: 6px; }
.agreement-box p { margin: 0 0 10px; }
.agreement-box ul { margin: 0 0 12px; padding-left: 22px; }

/* ---------- Signature block ---------- */
.sig-block {
  background: var(--bg-soft);
  border: 1px dashed var(--blue);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 18px 0;
}
.sig-meta {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 600;
}
.sig-name-preview {
  font-family: "Brush Script MT", "Lucida Handwriting", cursive;
  font-size: 34px;
  color: var(--navy);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  min-height: 52px;
}

/* ---------- Buttons (Appzoola pill style) ---------- */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; justify-content: space-between; }
.btn-row.right { justify-content: flex-end; }
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 36px;
  border-radius: 100px;
  background: var(--blue);
  color: var(--white) !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}
.btn:hover {
  background-color: var(--blue-dark);
  color: var(--white) !important;
  text-decoration: none;
  box-shadow: 1px 2px 6px rgba(18, 108, 255, 0.25);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-ghost   { background: var(--white); color: var(--ink) !important; border: 1px solid #cfd9e3; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink) !important; }

/* ---------- Summary / totals ---------- */
.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
}
.summary-table th, .summary-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
}
.summary-table th {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.summary-table tfoot td { color: var(--ink); border-bottom: 1px solid var(--line); }
.summary-table tfoot tr.sec-head td {
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding-top: 16px;
  border-top: 1.5px solid var(--blue);
}
.summary-table tfoot tr.grand-total td {
  background: #f0f7ff;
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  border-bottom: 1px solid var(--blue);
}
.summary-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Alerts ---------- */
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 14px;
  border-left: 4px solid;
}
.alert-info { background: #f0f7ff; border-color: var(--blue); color: var(--navy); }
.alert-warn { background: #fffbeb; border-color: #d4a233; color: #6f4a06; }
.alert-err  { background: #fff1f3; border-color: var(--red); color: #8a1d12; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 50px 28px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 13px;
}
.site-footer .footer-brand {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.site-footer a { color: var(--blue-dark); }

.divider-blue {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  gap: 16px;
}
.divider-blue .line { flex: 1; max-width: 100px; height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); }
.divider-blue .diamond { width: 8px; height: 8px; background: var(--blue); transform: rotate(45deg); }

.hidden { display: none !important; }

/* ---------- Validation states ---------- */
label.required::after {
  content: " *";
  color: var(--red);
  font-weight: 700;
}
.card input.is-invalid,
.card select.is-invalid,
.card textarea.is-invalid {
  border-color: var(--red) !important;
  background: #fff7f8;
  box-shadow: 0 0 0 3px rgba(237, 34, 13, 0.15) !important;
}
.option-grid.is-invalid,
.checkbox-row.is-invalid {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 10px;
  animation: shake 0.25s ease-in-out;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.step-error {
  background: #fff1f3;
  border-left: 4px solid var(--red);
  color: #8a1d12;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 0 0 18px;
  font-weight: 600;
  font-size: 14px;
}
.step-error.hidden { display: none !important; }
