/* PC Loans website. Layout: a sticky bar, a two-column hero (promise + an example deal card), then full-width bands.
   Navy and pale blue from the logo; same type family as the application so the two feel like one business. */
:root {
  --paper: #F3F5F8; --sheet: #FFFFFF; --ink: #142130; --muted: #556170; --rule: #D6DDE5;
  --navy: #1D4E8D; --navy-deep: #143A6B; --sky: #8DB4F2; --on-navy: #FFFFFF; --tint: #E6EEF9;
  --ok: #1D7445; --ok-bg: #E3F1E8; --err: #AE2418;
  --font: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0D131A; --sheet: #151D26; --ink: #E2E8EE; --muted: #9AA7B4; --rule: #28333F;
  --navy: #8DB4F2; --navy-deep: #1A3358; --sky: #8DB4F2; --on-navy: #0D131A; --tint: #17263A;
  --ok: #63C58F; --ok-bg: #10281A; --err: #F27D70; color-scheme: dark } }
:root[data-theme="dark"] {
  --paper: #0D131A; --sheet: #151D26; --ink: #E2E8EE; --muted: #9AA7B4; --rule: #28333F;
  --navy: #8DB4F2; --navy-deep: #1A3358; --sky: #8DB4F2; --on-navy: #0D131A; --tint: #17263A;
  --ok: #63C58F; --ok-bg: #10281A; --err: #F27D70; color-scheme: dark }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
a { color: var(--navy); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.small { font-size: 14px; color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.eyebrow a { color: inherit; text-decoration: none; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 5; background: var(--sheet); border-bottom: 1px solid var(--rule); padding-top: env(safe-area-inset-top, 0px); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: .01em; }
.brand img { border-radius: 8px; }
.bar nav { display: flex; gap: 4px 18px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.bar nav a { color: var(--ink); text-decoration: none; }
.bar nav a:hover { color: var(--navy); }
.bar .nav-cta { font-weight: 600; color: var(--navy); }
@media (max-width: 520px) { .bar nav a:not(.nav-cta) { display: none; } }

/* Buttons */
.btn { display: inline-block; background: var(--navy); color: var(--on-navy); border: 0; border-radius: 8px; padding: 12px 22px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn:disabled { opacity: .6; cursor: default; }

/* Hero */
.hero { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-block: 64px 72px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 40px 48px; } }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; max-width: 14ch; }
.lede { font-size: 19px; color: var(--muted); margin: 18px 0 0; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* The example deal card: the thing only this business has */
.deal-card { margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; box-shadow: 0 12px 32px -18px rgba(20, 33, 48, .35); max-width: 420px; justify-self: end; width: 100%; }
@media (max-width: 860px) { .deal-card { justify-self: start; } }
.dc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.chip { font-size: 12px; font-weight: 600; border-radius: 99px; padding: 3px 10px; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.dc-car { font-weight: 700; font-size: 18px; margin: 14px 0 2px; }
.dc-amt { margin: 0 0 16px; color: var(--muted); }
.dc-amt .mono { color: var(--ink); font-weight: 500; }
.dc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; border-top: 1px solid var(--rule); padding-top: 16px; }
.dc-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; color: var(--muted); font-size: 15px; }
.dc-steps li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--rule); box-sizing: border-box; }
.dc-steps li.done { color: var(--ink); }
.dc-steps li.done::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.dc-steps li.now { color: var(--navy); font-weight: 600; }
.dc-steps li.now::before { border-color: var(--navy); border-width: 5px; }
.deal-card figcaption { font-size: 12px; color: var(--muted); margin-top: 16px; }

/* Bands */
.band { padding-block: 64px; }
.band.alt { background: var(--navy-deep); color: #fff; }
.band.alt h2 { color: #fff; }
.band.alt p { color: #DCE6F4; }
.band h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.01em; max-width: 22ch; }
.band p { max-width: 36em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: s; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 22px; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--mono); font-weight: 500; color: var(--navy); font-size: 14px; }
.steps b { font-size: 18px; }
.steps span { color: var(--muted); }
.need { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.need h3 { font-size: 16px; }
.need ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.need li { background: var(--tint); border-radius: 99px; padding: 5px 14px; font-size: 14px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 17px; color: #fff; }
.ticks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23143A6B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; margin-top: 2px; }

/* Form */
.form { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 24px; display: grid; gap: 6px; }
.form label { font-weight: 600; font-size: 15px; margin-top: 8px; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input:not([type=radio]), .form textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 11px 12px; width: 100%; }
.form textarea { resize: vertical; }
.form .btn { margin-top: 14px; justify-self: start; }
.who { border: 0; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.who legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }
.who label { font-weight: 400; margin: 0; display: flex; gap: 8px; align-items: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--err); margin: 4px 0 0; min-height: 1.2em; }
.done-msg { background: var(--ok-bg); border-radius: 12px; padding: 24px; }
.done-msg h3 { color: var(--ok); margin-bottom: 6px; }

/* Legal pages */
.legal { max-width: 760px; padding-block: 48px 64px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.legal section { margin-top: 32px; }
.legal h2 { font-size: 20px; margin-bottom: 8px; }
.legal p, .legal li { max-width: 65ch; }
.legal ul { padding-left: 20px; }
.draft { margin-top: 40px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 16px; }

/* Footer */
.foot { background: var(--sheet); border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); padding-bottom: env(safe-area-inset-bottom, 0px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding-block: 32px; }
@media (max-width: 680px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot b { color: var(--ink); }
.foot p { margin: 6px 0 0; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot nav a { color: var(--ink); }
