/* Pacewell site. No external requests, no cookies. Matches the app: Bricolage Grotesque + DM Sans, Lagoon accent, Pace Ribbon motif. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage_grotesque.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm_sans.ttf") format("truetype"); font-weight: 100 1000; font-display: swap; }

:root {
  --bg: #f4fbfa; --surface: #ffffff; --surface-2: #e6f4f2; --text: #0e1f20; --muted: #4a5f61; --line: #cfe3e1;
  --accent: #0e7c86; --accent-strong: #0a5c64; --on-accent: #ffffff; --accent-soft: #c9ecee; --amber: #b57b00;
  --shadow: 0 10px 30px rgba(14, 60, 64, .12); --radius: 20px; --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1011; --surface: #111a1c; --surface-2: #152426; --text: #e6f1f0; --muted: #a2b8b7; --line: #233638;
    --accent: #7fd3da; --accent-strong: #a9e6ea; --on-accent: #06292d; --accent-soft: #123b40; --amber: #f2b933;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: "Bricolage Grotesque", "DM Sans", sans-serif; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 9; }

header.site { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
nav.site a { margin-left: 18px; color: var(--muted); text-decoration: none; font-weight: 500; }
nav.site a:hover { color: var(--text); }
@media (max-width: 640px) { nav.site a.opt { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 650; text-decoration: none; border: 0; box-shadow: var(--shadow); }
.btn:hover { filter: brightness(1.06); }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }
.btn.ghost { background: transparent; color: var(--accent-strong); box-shadow: inset 0 0 0 2px var(--accent); }

.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 34ch; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.ribbon { width: 100%; height: auto; margin-top: 22px; }
.ribbon .band { fill: var(--accent-soft); opacity: .8; }
.ribbon .line { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s .3s cubic-bezier(.05, .7, .1, 1) forwards; }
.ribbon .dot { fill: var(--accent); opacity: 0; animation: pop .4s 2.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } } @keyframes pop { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ribbon .line { animation: none; stroke-dashoffset: 0; } .ribbon .dot { animation: none; opacity: 1; } html { scroll-behavior: auto; } }
@media (max-width: 820px) { .hero .grid { grid-template-columns: 1fr; } }

.phones { display: flex; justify-content: center; gap: 18px; align-items: flex-start; }
.phone { width: min(240px, 42vw); border-radius: 34px; padding: 8px; background: #0b1213; box-shadow: var(--shadow); border: 1px solid var(--line); }
.phone img { display: block; width: 100%; height: auto; border-radius: 27px; }
.phone:nth-child(2) { margin-top: 36px; }
.phones.three .phone:nth-child(1) { margin-top: 24px; } .phones.three .phone:nth-child(2) { margin-top: 0; } .phones.three .phone:nth-child(3) { margin-top: 48px; }

section { padding: 64px 0; }
section.alt { background: var(--surface-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 14px; color: var(--accent-strong); font-size: 1.4rem; }
.card p { color: var(--muted); margin: 0; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 800 1.1rem "Bricolage Grotesque", sans-serif; margin-bottom: 12px; }
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }
.promise ul { padding-left: 1.1em; margin: 0; } .promise li { margin: .4em 0; }
.swatches { display: flex; gap: 10px; margin-top: 14px; } .swatches i { width: 28px; height: 28px; border-radius: 50%; display: block; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }

footer.site { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--muted); font-size: .95rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer.site a { color: var(--muted); margin-right: 18px; }

/* long-form pages */
main.doc { padding: 44px 0 70px; }
main.doc .wrap { max-width: 780px; }
main.doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
main.doc h2 { margin-top: 1.8em; font-size: 1.5rem; }
main.doc table { border-collapse: collapse; width: 100%; margin: 1em 0 1.4em; font-size: .97rem; }
main.doc th, main.doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
main.doc th { background: var(--surface-2); }
.note { background: var(--accent-soft); border-radius: 14px; padding: 16px 18px; margin: 1.2em 0; }
.todo { background: color-mix(in srgb, var(--amber) 18%, transparent); border-left: 4px solid var(--amber); padding: 10px 14px; border-radius: 8px; font-size: .95rem; }
.meta { color: var(--muted); }

@media (max-width: 640px) {
  main.doc table { table-layout: fixed; font-size: .88rem; }
  main.doc th, main.doc td { padding: 8px; overflow-wrap: anywhere; hyphens: auto; }
}
