/* Light, warm, trust-first theme for /motor. Self-contained — does not use styles.css */

:root {
  --paper:     #fbfaf6;
  --paper-2:   #ffffff;
  --sand:      #f4f1e9;
  --mint:      #edf6f1;
  --ink:       #16283d;
  --ink-2:     #40546b;
  --muted:     #6c7f92;
  --green:     #0f7a5a;
  --green-dk:  #0b6249;
  --wa:        #25D366;
  --line:      #e4e0d6;
  --line-2:    #d7e6dd;
  --amber:     #b8791f;
  --shadow:    0 1px 2px rgba(22,40,61,.05), 0 8px 24px rgba(22,40,61,.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--green); }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .9rem; padding-bottom: .9rem;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem; font-weight: 500; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.brand .dot { color: var(--green); }
.header-tag {
  font-size: .78rem; color: var(--muted); font-weight: 500;
  display: inline-flex; align-items: center; gap: .4rem;
}
.header-tag svg { width: 15px; height: 15px; fill: var(--green); flex: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.2rem, 6vw, 3.6rem) 0 clamp(1.6rem, 4vw, 2.4rem); }
.hero-grid {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 720px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--mint); color: var(--green-dk);
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  padding: .34rem .8rem; margin-bottom: 1rem;
}
h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500; letter-spacing: -.022em; line-height: 1.12;
  font-size: clamp(1.85rem, 5.2vw, 3rem);
}
h1 .em { color: var(--green); font-style: italic; }
.hero-sub {
  margin-top: 1rem; font-size: clamp(1.02rem, 2.4vw, 1.16rem);
  color: var(--ink-2); max-width: 34em;
}
.hero-name { margin-top: 1.1rem; font-size: .95rem; color: var(--muted); }
.hero-name strong { color: var(--ink); font-weight: 600; }

.hero-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 1rem; box-shadow: var(--shadow);
  width: 210px; text-align: center;
}
@media (max-width: 720px) { .hero-card { width: 100%; max-width: 300px; } }
.hero-card img { border-radius: 10px; width: 100%; height: 250px; object-fit: cover; object-position: top center; border: 1px solid var(--line); }
.hero-card .cap { font-size: .74rem; color: var(--muted); margin-top: .6rem; line-height: 1.45; }

/* ---------- Buttons ---------- */
.actions {
  display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: inherit; font-size: 1.04rem; font-weight: 600;
  padding: 1rem 1.6rem; border-radius: 14px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37,211,102,.28); }
.btn-wa:hover { background: #1fbe5b; }

.btn-upload { background: var(--paper-2); color: var(--ink); border-color: #c9d6cf; box-shadow: var(--shadow); }
.btn-upload:hover { background: #f3f8f5; border-color: var(--green); color: var(--green-dk); }
.btn-upload svg { fill: none; stroke: currentColor; stroke-width: 1.9; }

.actions-note { margin-top: .8rem; font-size: .85rem; color: var(--muted); }

@media (max-width: 520px) {
  .actions { flex-direction: column; }
  .btn { width: 100%; }
}

/* ---------- Trust strip ---------- */
.trust {
  background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.trust ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; align-items: center; }
.trust li { font-size: .87rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: .45rem; }
.trust li svg { width: 16px; height: 16px; fill: var(--green); flex: none; }
.trust li strong { font-weight: 600; color: var(--ink); }
.trust a { font-weight: 600; }

/* ---------- Sections ---------- */
section.block { padding: clamp(2.4rem, 6vw, 3.8rem) 0; }
section.block.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 {
  font-family: "Fraunces", Georgia, serif; font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.05rem); letter-spacing: -.015em; line-height: 1.2;
}
.lede { margin-top: .8rem; color: var(--ink-2); max-width: 40em; font-size: 1.04rem; }

.cards { display: grid; gap: 1rem; margin-top: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.3rem; box-shadow: var(--shadow);
}
section.alt .card { background: var(--sand); border-color: #e8e3d6; box-shadow: none; }
.card h3 { font-size: 1.03rem; font-weight: 650; margin-bottom: .45rem; }
.card p { color: var(--ink-2); font-size: .95rem; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px; background: var(--mint);
  color: var(--green-dk); font-weight: 700; font-size: .9rem; margin-bottom: .8rem;
}

/* Savings list */
.savings { margin-top: 1.6rem; display: grid; gap: .1rem; }
.savings .row {
  display: grid; grid-template-columns: 26px 1fr; gap: .85rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.savings .row:last-child { border-bottom: 0; }
.savings .tick {
  width: 24px; height: 24px; border-radius: 50%; background: var(--mint);
  display: inline-flex; align-items: center; justify-content: center; margin-top: .12rem;
}
.savings .tick svg { width: 13px; height: 13px; fill: none; stroke: var(--green); stroke-width: 2.6; }
.savings b { font-weight: 650; }
.savings span { color: var(--ink-2); }

/* Callout */
.callout {
  margin-top: 1.8rem; background: #fdf8ee; border: 1px solid #ecdfc4;
  border-left: 4px solid var(--amber); border-radius: 12px; padding: 1.1rem 1.25rem;
}
.callout p { color: #6b5423; font-size: .96rem; }
.callout strong { color: #4d3c16; }

/* ---------- POSP disclosure (mirrors the reference layout) ---------- */
.posp {
  background: var(--mint); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  padding: clamp(2rem, 5vw, 2.8rem) 0;
}
.posp-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.2rem, 4vw, 3rem); align-items: start; }
@media (max-width: 720px) { .posp-grid { grid-template-columns: 1fr; gap: 1rem; } }
.posp h2 { font-family: "Fraunces", Georgia, serif; color: #12304a; }
.posp p { color: #3d5568; font-size: 1rem; }
.posp .cert-link {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem;
  font-weight: 600; font-size: .95rem; color: var(--green-dk); text-decoration: none;
  border-bottom: 1.5px solid rgba(15,122,90,.35); padding-bottom: 1px;
}
.posp .cert-link:hover { border-bottom-color: var(--green-dk); }
.posp .cert-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(2.4rem, 6vw, 3.4rem) 0; text-align: center; }
.cta-band h2 { margin-bottom: .6rem; }
.cta-band .lede { margin: 0 auto; }
.cta-band .actions { justify-content: center; }

/* ---------- Footer ---------- */
footer {
  background: var(--paper-2); border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem; font-size: .84rem; color: var(--muted);
}
footer .disclaimer {
  background: var(--sand); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.2rem; margin-bottom: 1.4rem; color: var(--ink-2); line-height: 1.6;
}
footer .disclaimer strong { color: var(--ink); }
footer .legal { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(22,40,61,.45);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; z-index: 100; overflow-y: auto;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--paper-2); border-radius: 18px; width: 100%; max-width: 520px;
  box-shadow: 0 24px 60px rgba(22,40,61,.24); overflow: hidden; margin: auto;
}
.modal-head {
  padding: 1.3rem 1.5rem 1rem; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
}
.modal-head h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 1.32rem; letter-spacing: -.015em; }
.modal-head p { font-size: .88rem; color: var(--muted); margin-top: .3rem; }
.modal-close {
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font-size: 1.6rem; line-height: 1; padding: 0 .2rem;
}
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 1.3rem 1.5rem; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .4rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; font-family: inherit; font-size: 1rem; padding: .7rem .85rem;
  border: 1px solid #cfd8d3; border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus { outline: 2px solid rgba(15,122,90,.35); outline-offset: 1px; border-color: var(--green); }

.filebox { position: relative; }
.filebox input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.filebox .drop {
  border: 1.5px dashed #c3d2cb; border-radius: 12px; background: #f8fbf9;
  padding: .95rem 1rem; display: flex; align-items: center; gap: .75rem;
  font-size: .93rem; color: var(--ink-2); transition: border-color .15s, background .15s;
}
.filebox:hover .drop { border-color: var(--green); background: var(--mint); }
.filebox .drop svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 1.8; flex: none; }
.filebox.has-file .drop { border-style: solid; border-color: var(--green); background: var(--mint); color: var(--green-dk); font-weight: 500; }
.filebox .drop .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.modal-note {
  background: var(--mint); border: 1px solid var(--line-2); border-radius: 10px;
  padding: .8rem .95rem; font-size: .84rem; color: #35564a; margin-bottom: 1.1rem;
  display: flex; gap: .6rem;
}
.modal-note svg { width: 16px; height: 16px; fill: var(--green); flex: none; margin-top: .18rem; }

.btn-submit {
  width: 100%; background: var(--green); color: #fff; border: 0; border-radius: 12px;
  font-family: inherit; font-size: 1.03rem; font-weight: 600; padding: .95rem 1rem; cursor: pointer;
}
.btn-submit:hover { background: var(--green-dk); }
.btn-submit:disabled { background: #9fb8ae; cursor: not-allowed; }

.form-msg { margin-top: .9rem; font-size: .9rem; text-align: center; min-height: 1.2em; }
.form-msg.err { color: #b03636; }
.form-msg.ok  { color: var(--green-dk); font-weight: 600; }

.done { text-align: center; padding: 1rem 0 .4rem; }
.done .big { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: var(--mint); display: flex; align-items: center; justify-content: center; }
.done .big svg { width: 28px; height: 28px; fill: none; stroke: var(--green); stroke-width: 2.6; }
.done h4 { font-family: "Fraunces", Georgia, serif; font-weight: 500; font-size: 1.25rem; margin-bottom: .5rem; }
.done p { color: var(--ink-2); font-size: .95rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* LinkedIn inline link in the hero credential line */
.hero-name .li-link {
  display: inline-flex; align-items: center; gap: .32rem;
  margin-left: .5rem; font-weight: 600; font-size: .88rem;
  color: var(--green-dk); text-decoration: none;
  border: 1px solid var(--line-2); background: var(--mint);
  border-radius: 999px; padding: .1rem .55rem .1rem .45rem;
  vertical-align: middle;
}
.hero-name .li-link:hover { border-color: var(--green); }
.hero-name .li-link svg { width: 13px; height: 13px; fill: currentColor; }
