/* App detail pages (e.g. /apps/resident-directory) — builds on styles.css + pricing.css + how-it-works.css */

/* Hero */
.rd-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 16px 0 32px; }
.rd-hero h1 { margin: 0 0 24px; font-size: clamp(40px, 5vw, 60px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; max-width: 13ch; }
.rd-hero .lead { max-width: 50ch; font-size: 16px; }
.rd-hero-photo { position: relative; aspect-ratio: 1.13 / 1; }
.rd-highlights { border-bottom: 1px solid var(--border); padding-bottom: 36px; }
.rd-highlights div { justify-content: flex-start; }

/* Two-column feature rows */
.rd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rd-row .section-title { max-width: 16ch; }
.rd-photo { position: relative; aspect-ratio: 1.3 / 1; }

/* Phone mockup (decorative) */
.dphone {
  position: absolute; background: #121414; border-radius: 30px; padding: 7px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .28);
}
.dphone-screen {
  height: 100%; overflow: hidden; background: #fff; border-radius: 24px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 9px; font-size: 10px; line-height: 1.35; color: var(--ink-2);
}
.rd-hero-phone { right: 7%; bottom: -14%; width: min(52%, 300px); height: 86%; }
.rd-side-phone { left: 10%; bottom: -10%; width: min(46%, 250px); height: 98%; }
.dp-status { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--ink); }
.dp-notch { width: 9px; height: 9px; border-radius: 50%; background: #121414; }
.dp-bar { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.dp-bar b { font-size: 11px; }
.dp-logo { width: 14px; height: 14px; border-radius: 4px; background: #1f5c3a; }
.dp-search { padding: 7px 10px; border-radius: 8px; background: #f2f3f5; color: var(--muted); }
.dp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dp-grid span { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border: 1px solid #eceef1; border-radius: 8px; text-align: center; font-size: 9px; }
.dp-grid svg, .upd-ic svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dp-head { display: flex; justify-content: space-between; }
.dp-head b { color: var(--ink); }
.dp-head em { font-style: normal; color: #2f5bd8; }
.dp-item { display: flex; gap: 8px; padding: 8px; border: 1px solid #eceef1; border-radius: 8px; }
.dp-item b, .dp-prop b { display: block; color: var(--ink); }
.dp-ic { flex: none; width: 22px; height: 22px; border-radius: 6px; }
.dp-pink { background: #fde8ec; } .dp-blue { background: #e6eefc; } .dp-grey { background: #eef0f2; }
.dp-list { list-style: none; margin: 0; padding: 0; display: grid; }
.dp-list li { display: grid; padding: 7px 2px 7px 26px; border-bottom: 1px solid #f0f1f3; position: relative; }
.dp-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 16px; height: 16px; border-radius: 5px; background: #eef0f2; }
.dp-list b { color: var(--ink); font-size: 11px; }
.dp-list small { font-size: 9px; color: var(--muted); }
.dp-house { width: 100%; height: 34%; object-fit: cover; border-radius: 8px; }
.dp-prop { padding-bottom: 6px; border-bottom: 1px solid #f0f1f3; }

/* Cards beside the copy */
.rd-card { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.dir-tabs { display: flex; gap: 4px; padding: 6px; margin: 10px; background: #f2f1ed; border-radius: 10px; font-size: 13px; color: var(--ink-2); }
.dir-tabs span { flex: 1 1 0; min-width: 0; padding: 8px 6px; border-radius: 7px; text-align: center; overflow-wrap: anywhere; }
.dir-tabs .on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.dir-list, .upd-list { list-style: none; padding: 0; }
.dir-list { margin: 0; padding: 0 16px 6px; }
.dir-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #f0efeb; }
.dir-list .avatar { width: 38px; height: 38px; }
.dir-list .lines b { font-size: 14px; }
.dir-list .lines small { font-size: 12px; }
.dir-act { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f2f1ed; font-size: 14px; color: var(--ink-2); }

.upd-list li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-top: 1px solid #f0efeb; font-size: 13px; color: var(--ink-2); }
.upd-list li:first-child { border-top: 0; }
.upd-list b { display: block; font-size: 14px; color: var(--ink); }
.upd-list small { display: block; font-size: 12px; color: var(--muted); }
.upd-list span { flex: 1; }
.upd-list em, .fee-row em { font-style: normal; font-size: 18px; color: var(--ink-2); }
.upd-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }

.fee-card { padding: 22px 24px 8px; }
.fee-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #f0efeb; }
.fee-head small { display: block; font-size: 12px; color: var(--muted); }
.fee-head > div:first-child small:first-child { font-size: 14px; font-weight: 600; color: var(--ink); }
.fee-head strong { display: block; margin: 4px 0; font-size: 26px; letter-spacing: -.02em; }
.fee-paid { display: grid; justify-items: end; align-content: start; gap: 10px; }
.fee-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid #f0efeb; font-size: 14px; }
.fee-head + .fee-row { border-top: 0; }

/* Audience cards */
.aud-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.aud-card { overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.aud-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.aud-card h3 { margin: 18px 20px 6px; font-size: 17px; }
.aud-card p { margin: 0 20px 22px; font-size: 14px; color: var(--ink-2); }

/* Responsive */
@media (max-width: 960px) {
  .rd-hero, .rd-row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rd-flip > .photo { order: 2; }
}
@media (max-width: 640px) {
  .aud-grid { grid-template-columns: minmax(0, 1fr); }
  .rd-hero-phone { width: 58%; }
  .rd-side-phone { width: 56%; left: 6%; }
  .dphone-screen { font-size: 8px; gap: 6px; }
  .dp-grid span { font-size: 7px; padding: 5px 1px; }
  .dir-list .lines b { font-size: 13px; }
}

/* ===== Shared app detail page components (generated pages) ===== */
.apd-back { padding-top: 8px; font-size: 14px; }
.apd-back a { color: var(--ink-2); }
.apd-back a:hover { color: var(--ink); text-decoration: underline; }
.apd-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 48px; align-items: center; padding: 20px 0 36px; }
.apd-hero h1 { margin: 0 0 22px; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; max-width: 14ch; }
.apd-hero .lead { max-width: 48ch; font-size: 16px; }
.apd-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.apd-eyeicon, .apd-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; }
.apd-eyeicon svg, .apd-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.c-pink { background: #fde8f1; color: #b8325f; } .c-teal { background: #e0f3f0; color: #0f6b63; } .c-grey { background: #eef0f2; color: #4a504d; }

/* Laptop + phone mockups (decorative, scale with their container) */
.apd-media { position: relative; padding: 0 0 4% 0; }
.apd-media.has-phone { padding-right: 9%; }
.mock-laptop { container-type: inline-size; }
.mock-screen { aspect-ratio: 16 / 10.4; padding: 1.8%; background: #121414; border-radius: 3cqw 3cqw 0 0; }
.mock-base { height: 2.4cqw; margin: 0 -5%; background: linear-gradient(#d3d4d6, #a9abae); border-radius: 0 0 2.4cqw 2.4cqw; }
.mock-laptop.browser .mock-screen { padding: 4.2% 0 0; background: #fff; border: 1px solid var(--border); border-radius: 2cqw; box-shadow: var(--shadow); position: relative; }
.mock-laptop.browser .mock-screen::before { content: "● ● ●"; position: absolute; top: .8cqw; left: 2cqw; font-size: 1.4cqw; letter-spacing: .3em; color: #d9dbde; }
.mock-laptop.browser .mock-base { display: none; }
.mw { display: grid; grid-template-columns: 19% minmax(0, 1fr); height: 100%; overflow: hidden; background: #fff; border-radius: 1cqw; font-size: 1.45cqw; line-height: 1.35; color: var(--ink-2); }
.mw-side { display: flex; flex-direction: column; gap: 1.6cqw; padding: 2.4cqw 1.8cqw; background: #fafaf8; border-right: 1px solid #eef0f2; }
.mw-side b { margin-bottom: 1cqw; font-size: 1.8cqw; color: var(--ink); }
.mw-side span { padding: .6cqw 1cqw; border-radius: .8cqw; }
.mw-side .on { background: #e6eefc; color: #1d4fb8; font-weight: 600; }
.mw-main { display: flex; flex-direction: column; gap: 1.6cqw; min-width: 0; padding: 2.4cqw 2.6cqw; }
.mw-top { display: flex; align-items: center; gap: 1.6cqw; }
.mw-top b { flex: 1; font-size: 2.2cqw; color: var(--ink); }
.mw-search { width: 24%; padding: .7cqw 1.2cqw; border: 1px solid #eceef1; border-radius: .8cqw; color: var(--muted); }
.mw-btn { padding: .8cqw 1.4cqw; border-radius: .8cqw; background: var(--dark); color: #fff; font-weight: 600; white-space: nowrap; }
.mw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1.2cqw; }
.mw-stats div { display: grid; padding: 1.2cqw 1.4cqw; border: 1px solid #eceef1; border-radius: 1cqw; }
.mw-stats strong { font-size: 2.4cqw; color: var(--ink); }
.mw-stats em { font-style: normal; font-size: 1.2cqw; color: #1b7a37; }
.mw-stats em.down { color: #a3203f; }
.mw-tabs { display: flex; gap: 1.4cqw; border-bottom: 1px solid #eceef1; }
.mw-tabs span { padding-bottom: .8cqw; }
.mw-tabs .on { color: #1d4fb8; border-bottom: 2px solid #1d4fb8; font-weight: 600; }
.mw-table { width: 100%; border-collapse: collapse; }
.mw-table th { padding: .6cqw .4cqw; text-align: left; font-weight: 500; color: var(--muted); }
.mw-table td { padding: 1cqw .4cqw; border-top: 1px solid #f0f1f3; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; }
.mw-table td small { display: block; color: var(--muted); }
.mw-person { display: flex; align-items: center; gap: .9cqw; }
.mw-person .avatar { width: 2.8cqw; height: 2.8cqw; }
.mw .pill, .mp-screen .pill, .mw-chat .pill { display: inline-block; padding: .25em .8em; font-size: .9em; border-radius: 999px; }
/* chat window */
.mw-chat { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 1.6cqw; min-height: 0; flex: 1; }
.mw-convs { display: flex; flex-direction: column; }
.mw-convs div { display: flex; gap: .9cqw; align-items: center; padding: 1.1cqw 0; border-top: 1px solid #f0f1f3; }
.mw-convs div span:nth-child(2) { flex: 1; min-width: 0; }
.mw-convs b, .mw-convs small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-convs b { color: var(--ink); }
.mw-convs small, .mw-convs em { color: var(--muted); font-style: normal; }
.mw-pane { display: flex; flex-direction: column; gap: 1.2cqw; padding: 1.4cqw; background: #f6f7f8; border-radius: 1cqw; }
.mw-pane header { display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-weight: 600; }
.bub { max-width: 82%; padding: 1cqw 1.4cqw; border-radius: 1.2cqw; background: #fff; color: var(--ink); }
.bub.out { align-self: flex-end; background: #d4f3d8; }
/* calendar window */
.mw-cal { position: relative; display: grid; grid-template-columns: 9% repeat(5, minmax(0, 1fr)); flex: 1; min-height: 0; }
.mw-cal .dh { padding-bottom: .8cqw; text-align: center; color: var(--ink); font-weight: 600; border-bottom: 1px solid #eceef1; }
.mw-cal .dh small { display: block; color: var(--muted); font-weight: 400; }
.mw-cal .col { position: relative; border-left: 1px solid #f0f1f3; }
.mw-cal .times { display: grid; color: var(--muted); }
.mw-cal .ev { position: absolute; left: 6%; right: 6%; padding: .5cqw .8cqw; border-radius: .7cqw; font-size: 1.2cqw; line-height: 1.3; color: var(--ink); overflow: hidden; }
.ev-green { background: #dff3e6; } .ev-purple { background: #ece5fb; } .ev-orange { background: #fdebd5; } .ev-blue { background: #e1ebfc; } .ev-teal { background: #d6f1ee; } .ev-grey { background: #eef0f2; } .ev-pink { background: #fde3ea; }

.mock-phone {
  position: absolute; right: 0; bottom: 0; width: 24%; aspect-ratio: 9 / 18.5; container-type: inline-size;
  padding: 2.6%; background: #121414; border-radius: 16% / 7.8%; box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}
.mp-screen { display: flex; flex-direction: column; gap: 4.5cqw; height: 100%; overflow: hidden; padding: 7cqw 7cqw; background: #fff; border-radius: 10.5cqw; font-size: 5.6cqw; line-height: 1.35; color: var(--ink-2); }
.mp-status { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--ink); }
.mp-status i { width: 6cqw; height: 6cqw; border-radius: 50%; background: #121414; }
.mp-head { display: flex; justify-content: space-between; align-items: center; gap: 4cqw; color: var(--ink); font-weight: 600; }
.mp-h { color: var(--ink); font-weight: 700; font-size: 1.2em; }
.mp-big { color: var(--ink); font-weight: 700; font-size: 1.7em; }
.mp-kv small { display: block; color: var(--muted); }
.mp-kv span { color: var(--ink); }
.mp-btn { display: block; padding: 3.6cqw; border-radius: 4cqw; background: var(--dark); color: #fff; text-align: center; font-weight: 600; }
.mp-btn.blue { background: #2563eb; }
.mp-btn.light { background: #fff; color: #a3203f; border: 1px solid #f3c9d2; }
.mp-btnrow { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; margin-top: auto; }
.mp-check { display: flex; align-items: center; gap: 3cqw; }
.mp-check::before { content: ""; width: 6cqw; height: 6cqw; border: 1.5px solid #c9ccd1; border-radius: 1.6cqw; }
.mp-check.done::before { background: #22a447; border-color: #22a447; }
.mp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqw; }
.mp-thumbs img, .mp-thumbs span { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2.4cqw; }
.mp-thumbs span { display: grid; place-items: center; background: #121414; color: #fff; }
.mp-video { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 5cqw; }
.mp-video img { width: 100%; height: 100%; object-fit: cover; }
.mp-video::after { content: ""; position: absolute; left: 50%; bottom: 7cqw; width: 14cqw; height: 14cqw; margin-left: -7cqw; border: 2.5cqw solid #fff; border-radius: 50%; background: #e5372b; }
.mp-doc { display: flex; gap: 3cqw; align-items: center; padding: 3.5cqw; border: 1px solid #eceef1; border-radius: 3.5cqw; }
.mp-doc i { flex: none; width: 9cqw; height: 11cqw; border-radius: 2cqw; background: #fde8ec; }
.mp-doc b { display: block; color: var(--ink); }
.mp-sig { padding-top: 3cqw; border-top: 1px dashed #c9ccd1; font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 2em; color: var(--ink); }
.mp-ic { display: grid; place-items: center; width: 14cqw; height: 14cqw; margin: 0 auto; border-radius: 4cqw; background: #e6eefc; color: #2563eb; }
.mp-ic svg { width: 8cqw; height: 8cqw; fill: none; stroke: currentColor; stroke-width: 2; }
.mp-center { text-align: center; }

/* How it works: 4 step cards */
.apd-steps-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 40px; align-items: center; }
.apd-steps-wrap .section-title { max-width: 14ch; }
.apd-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.apd-steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 22px 14px; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.apd-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 44px; z-index: 1; color: #9aa3b0; font-size: 14px; }
.apd-steps .apd-ic { width: 46px; height: 46px; border-radius: 12px; }
.apd-steps .apd-ic svg { width: 24px; height: 24px; }
.apd-steps .n { font-size: 13px; font-weight: 700; color: #1d4fb8; }
.apd-steps h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.apd-steps p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* Key features grid */
.apd-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.apd-feature { display: flex; gap: 16px; padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.apd-feature .apd-ic { width: 40px; height: 40px; border-radius: 10px; }
.apd-feature h3 { margin: 0 0 6px; font-size: 15px; }
.apd-feature p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* Spotlight rows */
.apd-rev > .apd-panel { order: -1; }
.apd-wide { display: grid; gap: 28px; }
.apd-wide .apd-wide-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.apd-ticks { margin-top: 20px; }
.apd-ticks li::before { filter: none; }

/* Illustration panels */
.apd-panel { padding: 20px 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 13px; color: var(--ink-2); }
.apd-ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.apd-ph b { font-size: 15px; color: var(--ink); }
.apd-ph .mw-btn { font-size: 12px; padding: 7px 12px; border-radius: 8px; }
.apd-rows { list-style: none; margin: 0; padding: 0; }
.apd-rows li { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid #f0efeb; }
.apd-rows li:first-child { border-top: 0; }
.apd-rows .apd-ic { width: 36px; height: 36px; }
.apd-rows li > span:nth-child(2) { flex: 1; min-width: 0; }
.apd-rows b { display: block; font-size: 14px; color: var(--ink); }
.apd-rows .rt { flex: none; text-align: right; font-size: 12px; color: var(--muted); }
.apd-rows .act { flex: none; padding: 6px 10px; border-radius: 8px; background: #e6eefc; color: #1d4fb8; font-size: 12px; font-weight: 600; }
.apd-rows .act.dark { background: var(--dark); color: #fff; }
.apd-form { display: grid; gap: 12px; }
.apd-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink); }
.apd-form span.f { padding: 9px 12px; border: 1px solid #e2e4e8; border-radius: 8px; font-weight: 400; color: var(--ink-2); }
.apd-form .dot::before { content: "●"; margin-right: 6px; color: #e5372b; }
.apd-form .checks { display: grid; gap: 6px; font-weight: 400; color: var(--ink-2); }
.apd-form .checks span::before { content: "✓"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 8px; border-radius: 4px; background: #2563eb; color: #fff; font-size: 10px; }
.apd-form .photos { display: grid; grid-template-columns: repeat(4, 52px); gap: 8px; }
.apd-form .photos img, .apd-form .photos span { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.apd-form .photos span { display: grid; place-items: center; border: 1px dashed #c9ccd1; font-size: 18px; color: var(--muted); }
.apd-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.apd-actions span { padding: 9px 16px; border: 1px solid #e2e4e8; border-radius: 8px; color: var(--ink); font-weight: 500; }
.apd-actions span:last-child { background: var(--dark); border-color: var(--dark); color: #fff; font-weight: 600; }
.apd-toggles { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.apd-toggles li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #f0efeb; color: var(--ink); }
.apd-toggles li:first-child { border-top: 0; }
.tg { flex: none; position: relative; width: 34px; height: 20px; border-radius: 999px; background: #d5d8dd; }
.tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.tg.on { background: #2563eb; }
.tg.on::after { left: 17px; }
.apd-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 8px; margin-bottom: 14px; }
.apd-stages span { display: grid; gap: 2px; padding: 10px; border: 1.5px solid; border-radius: 10px; font-size: 12px; font-weight: 600; text-align: center; }
.apd-stages strong { font-size: 18px; }
.st-blue { border-color: #9cb8f2; background: #eef3fd; color: #1d4fb8; } .st-green { border-color: #9fd8b1; background: #ecf8f0; color: #1b7a37; }
.st-orange { border-color: #f2c48c; background: #fdf3e6; color: #a35a00; } .st-purple { border-color: #c6b2f2; background: #f3eefd; color: #5b34a8; }
.apd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.apd-tiles > span { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; font-size: 13px; font-weight: 500; color: var(--ink); }
.apd-panel.bare { padding: 0; background: none; border: 0; box-shadow: none; }
.apd-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.apd-board > div { display: grid; align-content: start; gap: 8px; padding: 12px; border-radius: 12px; background: #f6f6f4; }
.apd-board header { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; font-weight: 600; color: var(--ink); }
.apd-board .cand { display: flex; align-items: center; gap: 10px; padding: 10px; background: #fff; border: 1px solid #eceef1; border-radius: 10px; }
.apd-board .cand b { display: block; font-size: 13px; color: var(--ink); }
.apd-board .cand small { font-size: 11px; color: var(--muted); }
.apd-quiz { display: grid; grid-template-columns: 30% minmax(0, 1fr); gap: 18px; }
.apd-quiz aside { display: grid; align-content: start; gap: 6px; }
.apd-quiz aside span { padding: 8px 10px; border-radius: 8px; }
.apd-quiz aside .on { background: #e6eefc; color: #1d4fb8; font-weight: 600; }
.apd-qtypes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.apd-qtypes span { padding: 6px 10px; border: 1px solid #e2e4e8; border-radius: 8px; font-size: 12px; }
.apd-qtypes .on { border-color: #2563eb; color: #1d4fb8; background: #eef3fd; }
.apd-opts { display: grid; gap: 8px; margin-top: 10px; }
.apd-opts span::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border: 1.5px solid #c9ccd1; border-radius: 50%; }
.apd-opts .on::before { border: 4px solid #2563eb; }
.apd-portal { overflow: hidden; padding: 0; }
.apd-portal nav { display: flex; align-items: center; gap: 18px; padding: 14px 18px; font-size: 12px; }
.apd-portal nav b { flex: 1; color: var(--ink); font-size: 14px; }
.apd-portal .pimg { position: relative; aspect-ratio: 16 / 7; }
.apd-portal .pimg img { width: 100%; height: 100%; object-fit: cover; }
.apd-portal .pimg div { position: absolute; inset: 0; display: grid; align-content: center; gap: 6px; padding: 0 6%; background: linear-gradient(90deg, rgba(255,255,255,.95) 40%, rgba(255,255,255,0) 75%); color: var(--ink-2); }
.apd-portal .pimg strong { font-size: 22px; line-height: 1.15; color: var(--ink); max-width: 10ch; }
.apd-portal .pimg span { width: min(60%, 260px); padding: 8px 12px; background: #fff; border: 1px solid #e2e4e8; border-radius: 8px; color: var(--muted); }
.apd-gantt { display: grid; gap: 10px; }
.apd-gantt .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: 12px; text-align: center; color: var(--muted); }
.apd-gantt .days b { display: block; color: var(--ink); }
.apd-gantt .bar { position: relative; height: 30px; }
.apd-gantt .bar span { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 10px; border-radius: 7px; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.apd-balance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.apd-balance span { display: grid; gap: 4px; padding: 12px; border: 1px solid #eceef1; border-radius: 10px; font-size: 12px; }
.apd-balance strong { font-size: 24px; }
.apd-bars { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); align-items: end; gap: 8px; height: 160px; padding-top: 10px; border-bottom: 1px solid #eceef1; }
.apd-bars div { display: flex; flex-direction: column-reverse; height: 100%; justify-content: flex-start; }
.apd-bars i { display: block; border-radius: 3px 3px 0 0; }
.apd-bars i + i { border-radius: 0; }
.apd-months { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin-top: 6px; text-align: center; font-size: 11px; color: var(--muted); }
.apd-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; }
.apd-legend span { color: var(--ink-2) !important; }
.apd-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; }
.apd-legend .b1::before { background: #3b82f6; } .apd-legend .b2::before { background: #8b5cf6; } .apd-legend .b3::before { background: #a78bfa; } .apd-legend .b4::before { background: #f59e0b; }
.b1 { background: #3b82f6; color: #3b82f6; } .b2 { background: #8b5cf6; color: #8b5cf6; } .b3 { background: #a78bfa; color: #a78bfa; } .b4 { background: #f59e0b; color: #f59e0b; }
.apd-legend .b1, .apd-legend .b2, .apd-legend .b3, .apd-legend .b4 { background: none; }
.apd-chatlead { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.apd-chatlead .msgs { display: flex; flex-direction: column; gap: 10px; }
.apd-chatlead .bub { max-width: 90%; padding: 10px 12px; border-radius: 12px; background: #f2f3f5; font-size: 12px; line-height: 1.5; }
.apd-chatlead .bub.out { background: #d4f3d8; }
.apd-chatlead dl { margin: 0; display: grid; gap: 8px; padding: 14px; border: 1px solid #eceef1; border-radius: 12px; font-size: 12px; }
.apd-chatlead dt { color: var(--muted); }
.apd-chatlead dd { margin: 0; color: var(--ink); font-weight: 500; }
.apd-shield { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.apd-shield .big-ic { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 28px; background: #e6eefc; color: #2563eb; }
.apd-shield .big-ic svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Pricing */
.apd-price { padding: 28px 30px; background: #eaf3ee; border-radius: 20px; }
.apd-price .eyebrow { margin-bottom: 8px; }
.apd-price .price { font-size: clamp(44px, 5vw, 60px); }
.apd-price .incl { margin: 8px 0 16px; font-weight: 600; color: var(--ink); }
.apd-price .ticks { font-size: 14px; gap: 10px; }
.apd-price .ticks li::before { filter: invert(42%) sepia(76%) saturate(500%) hue-rotate(95deg); }

@media (max-width: 1100px) {
  .apd-steps-wrap { grid-template-columns: minmax(0, 1fr); }
  .apd-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .apd-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .apd-rev > .apd-panel { order: 0; }
  .apd-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .apd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apd-steps li:nth-child(2)::after { display: none; }
  .apd-features { grid-template-columns: minmax(0, 1fr); }
  .apd-tiles, .apd-balance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apd-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apd-quiz, .apd-chatlead, .apd-shield { grid-template-columns: minmax(0, 1fr); }
  .apd-quiz aside { display: none; }
  .apd-shield .big-ic { display: none; }
  .apd-panel { padding: 16px; }
  .apd-gantt .bar span { font-size: 10px; padding: 0 6px; }
}
.apd-panel .mw-btn { white-space: normal; }

/* Vibe-coded app hosting page */
.mw-chart { display: grid; gap: 1cqw; padding: 1.4cqw; border: 1px solid #eceef1; border-radius: 1cqw; }
.mw-chart svg { width: 100%; height: 11cqw; }
.vh-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.apd-feature.stack { flex-direction: column; gap: 14px; }
.vh-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.vh-photo { position: relative; overflow: hidden; aspect-ratio: 1.45 / 1; border-radius: var(--radius); }
.vh-photo img { width: 100%; height: 100%; object-fit: cover; }
.vh-note {
  position: absolute; left: 5%; bottom: 7%; display: flex; align-items: center; gap: 12px; max-width: 70%;
  padding: 14px 16px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); font-size: 13px; color: var(--ink-2);
}
.vh-note b { display: block; color: var(--ink); }
.vh-platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; margin: 0; list-style: none; }
.vh-platforms li { display: grid; gap: 6px; }
.vh-platforms b { font-size: 14px; color: var(--ink); }
.vh-platforms small { font-size: 12px; line-height: 1.45; color: var(--muted); }
.vh-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  margin: 72px 0 40px; padding: 36px 40px; background: #e8f1ec; border-radius: 20px;
}
.vh-cta h2 { margin: 0; max-width: 26ch; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.03em; }
@media (max-width: 1100px) { .vh-five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .vh-cards, .vh-platforms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vh-five { grid-template-columns: minmax(0, 1fr); }
  .vh-cta { padding: 28px 24px; }
  .vh-note { max-width: 86%; }
}

/* ===== Per-design layout variants ===== */
.apd-sub { margin: -4px 0 12px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.apd-form .upload { border-style: dashed; text-align: center; color: var(--muted); }
.apd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.apd-actions.one span { flex: 1; text-align: center; }
.apd-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: center; }
.apd-pair > .apd-panel:nth-child(2) { margin-top: 28px; }

/* vertical numbered steps card */
.apd-vsteps { display: grid; gap: 4px; margin: 0; padding: 22px 26px; list-style: none; }
.apd-vsteps li { position: relative; display: grid; grid-template-columns: 30px 48px minmax(0, 1fr); gap: 16px; align-items: start; padding: 12px 0; }
.apd-vsteps .num { display: grid; place-items: center; width: 28px; height: 28px; margin-top: 10px; border: 1.5px solid #9cb8f2; border-radius: 50%; background: #eef3fd; color: #1d4fb8; font-size: 13px; font-weight: 700; }
.apd-vsteps .apd-ic { width: 48px; height: 48px; border-radius: 12px; }
.apd-vsteps .apd-ic svg { width: 24px; height: 24px; }
.apd-vsteps li:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 50px; bottom: -14px; border-left: 1.5px dotted #9cb8f2; }
.apd-vsteps li:not(:last-child)::after { content: "↓"; position: absolute; left: 62px; bottom: -10px; color: #6b7280; font-size: 15px; }
.apd-vsteps h3 { margin: 0 0 4px; font-size: 16px; }
.apd-vsteps p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.apd-deco { position: relative; }
.apd-deco::before, .apd-deco::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: #e3f1ec; pointer-events: none; }
.apd-deco::before { width: 340px; height: 340px; right: -120px; top: 10px; }
.apd-deco::after { width: 70px; height: 70px; right: 140px; bottom: 0; }

/* steps inside a flow panel */
.apd-vflow { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.apd-vflow li { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: 12px; }
.apd-vflow li:not(:last-child)::after { content: "↓"; position: absolute; left: 12px; bottom: -17px; color: #9aa3b0; font-size: 12px; }
.apd-vflow b { display: block; font-size: 14px; color: var(--ink); }

/* approval levels, checklist, add buttons */
.apd-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--ink); }
.apd-levels { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.apd-levels li { display: flex; align-items: center; gap: 10px; }
.apd-levels .lv { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #eef0f2; font-size: 11px; font-weight: 600; }
.apd-levels .f { flex: 1; padding: 8px 10px; border: 1px solid #e2e4e8; border-radius: 8px; }
.apd-levels .grip { color: #b4b9c0; letter-spacing: -2px; }
.apd-add { display: inline-block; margin-top: 10px; padding: 7px 12px; border: 1px solid #e2e4e8; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--ink); }
.apd-select { display: block; margin-bottom: 10px; padding: 8px 10px; border: 1px solid #e2e4e8; border-radius: 8px; }
.apd-select::after { content: "⌄"; float: right; }
.apd-checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.apd-checklist li::before { content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 10px; vertical-align: -3px; border: 1.5px solid #c9ccd1; border-radius: 4px; }
.apd-checklist li.done::before { content: "✓"; display: inline-grid; place-items: center; border-color: #22a447; background: #22a447; color: #fff; font-size: 10px; }

/* gallery + invite */
.apd-gallery { display: grid; gap: 10px; }
.apd-gallery .big { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 12px; }
.apd-gallery .th { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.apd-gallery .th img, .apd-gallery .th span { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.apd-gallery .th span { display: grid; place-items: center; border: 1px dashed #c9ccd1; color: var(--muted); font-size: 18px; }
.apd-invite { display: grid; justify-items: center; gap: 10px; text-align: center; }
.apd-invite > b { font-size: 15px; color: var(--ink); }
.apd-invite p { margin: 0; font-size: 12px; line-height: 1.5; }
.apd-invite .vid { position: relative; width: 100%; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 10px; }
.apd-invite .vid img { width: 100%; height: 100%; object-fit: cover; }
.apd-invite .vid::after { content: "▶"; position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 14px; }
.apd-invite .mp-btn { width: 100%; padding: 10px; border-radius: 8px; }
.apd-invite small { font-size: 11px; color: var(--muted); }

/* CTA variants */
.apd-cta-dark { background: linear-gradient(110deg, #0e1f2b 0%, #12303d 55%, #164052 100%); }
.apd-art { position: relative; justify-self: end; width: 240px; height: 150px; }
.apd-art .doc { position: absolute; left: 20px; top: 6px; display: grid; gap: 10px; width: 120px; height: 130px; padding: 18px 16px; background: #f1f4f8; border-radius: 14px; transform: rotate(-6deg); box-shadow: 0 18px 30px rgba(0, 0, 0, .3); }
.apd-art .doc i { display: block; height: 8px; border-radius: 4px; background: #c9d6ea; }
.apd-art .doc i:nth-child(2) { width: 70%; } .apd-art .doc i:nth-child(4) { width: 50%; }
.apd-art .tile { position: absolute; right: 16px; bottom: 8px; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 22px; color: #fff; box-shadow: 0 18px 30px rgba(0, 0, 0, .35); }
.apd-art .tile svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.apd-art .tick { position: absolute; left: 6px; bottom: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #22a447; color: #fff; font-weight: 700; box-shadow: 0 10px 20px rgba(0, 0, 0, .3); }
.apd-cta-light {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, .8fr); align-items: center; gap: 24px;
  margin: 72px 0 40px; padding: 36px 0 36px 40px; background: #e8f1ec; border-radius: 20px;
}
.apd-cta-light h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.03em; }
.apd-cta-light img { align-self: stretch; width: 100%; height: 100%; min-height: 180px; margin: -36px 0; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }

@media (max-width: 960px) {
  .apd-deco::before, .apd-deco::after { display: none; }
}
@media (max-width: 640px) {
  .apd-pair { grid-template-columns: minmax(0, 1fr); }
  .apd-pair > .apd-panel:nth-child(2) { margin-top: 0; }
  .apd-art { display: none; }
  .apd-vsteps { padding: 16px; }
  .apd-vsteps li { grid-template-columns: 28px 40px minmax(0, 1fr); gap: 10px; }
  .apd-vsteps .apd-ic { width: 40px; height: 40px; }
  .apd-vsteps li:not(:last-child)::after { left: 52px; }
  .apd-cta-light { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
  .apd-cta-light img { display: none; }
}

/* Scale to match the app page designs */
.apd-hero h1 { font-size: clamp(40px, 4.8vw, 64px); max-width: 12ch; }
.apd-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); }
.apd-hero .lead { font-size: 17px; }
.apd-steps-wrap .section-title, .rd-row .section-title, .apd-wide .section-title { font-size: clamp(32px, 3.8vw, 48px); }
.rd-row .section-lead, .apd-steps-wrap .section-lead { font-size: 17px; }
.apd-features { gap: 16px; }
.apd-feature { gap: 18px; padding: 24px 22px; }
.apd-feature .apd-ic { width: 48px; height: 48px; border-radius: 12px; }
.apd-feature .apd-ic svg { width: 24px; height: 24px; }
.apd-feature h3 { font-size: 17px; }
.apd-feature p { font-size: 15px; }
.apd-panel { padding: 24px 26px; font-size: 14px; }
.apd-ph b { font-size: 17px; }
.apd-rows li { gap: 16px; padding: 14px 0; }
.apd-rows .apd-ic { width: 42px; height: 42px; }
.apd-rows .apd-ic svg { width: 21px; height: 21px; }
.apd-rows b { font-size: 15px; }
.apd-vsteps { padding: 28px 30px; }
.apd-vsteps li { grid-template-columns: 32px 56px minmax(0, 1fr); gap: 20px; padding: 14px 0; }
.apd-vsteps .apd-ic { width: 56px; height: 56px; border-radius: 14px; }
.apd-vsteps .apd-ic svg { width: 28px; height: 28px; }
.apd-vsteps li:not(:last-child)::after { left: 76px; }
.apd-vsteps h3 { font-size: 18px; }
.apd-vsteps p { font-size: 15px; }
.apd-price { padding: 32px 34px; }
.apd-price .ticks { font-size: 15px; }
.apd-steps li { padding: 26px 16px; }
.apd-steps h3 { font-size: 16px; }
.apd-steps p { font-size: 14px; }
.apd-cta-dark h2, .apd-cta-light h2 { font-size: clamp(28px, 3.2vw, 40px); }
@media (max-width: 640px) {
  .apd-vsteps li { grid-template-columns: 28px 40px minmax(0, 1fr); gap: 12px; }
  .apd-vsteps .apd-ic { width: 40px; height: 40px; }
  .apd-vsteps li:not(:last-child)::after { left: 54px; }
  .apd-panel { padding: 18px; }
}
.apd-rev > .apd-pair { order: -1; }
.apd-hero h1 { max-width: 14ch; }
@media (max-width: 960px) { .apd-rev > .apd-pair { order: 0; } }
.apd-panel { min-width: 0; overflow: hidden; }
.apd-feature, .apd-feature > div { min-width: 0; overflow-wrap: anywhere; }

/* ===== Panel details matched to designs ===== */
.apd-dd { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #e2e4e8; border-radius: 8px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.apd-dd::after { content: "⌄"; color: var(--muted); }
.apd-dots { color: var(--muted); font-weight: 700; letter-spacing: 1px; }
.apd-tabs { margin: -2px 0 14px; font-size: 13px; }
.apd-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; font-size: 12px; color: var(--ink-2); }
.apd-toolbar b { flex: 1; color: var(--ink); }
.apd-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 4px; }
.apd-filters label { display: grid; gap: 5px; font-size: 11px; color: var(--muted); }
.apd-filters .apd-dd { justify-content: space-between; }
.apd-sided { display: grid; grid-template-columns: 26% minmax(0, 1fr); gap: 0; padding: 0; }
.apd-side { display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; border-right: 1px solid #eef0f2; background: #fbfbfa; font-size: 12px; }
.apd-side b { margin-bottom: 10px; font-size: 13px; color: var(--ink); }
.apd-side span { padding: 7px 10px; border-radius: 8px; }
.apd-side .on { background: #e6eefc; color: #1d4fb8; font-weight: 600; }
.apd-main { min-width: 0; padding: 20px 22px; }
.apd-gantt .bar span i { flex: none; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; }
.d-green { background: #22a447; } .d-purple { background: #7a3fc4; } .d-blue { background: #2f62cc; } .d-orange { background: #d97706; } .d-pink { background: #d6335a; }
.apd-table.dotpills .pill::before { content: "● "; font-size: 8px; vertical-align: 1px; }
.apd-balance strong { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 8px; }
.tint-blue { background: #eef3fd; } .tint-green { background: #ecf8f0; } .tint-purple { background: #f3eefd; } .tint-orange { background: #fdf3e6; }
.apd-inline { list-style: none; margin: 8px 0 0; padding: 0; }
.apd-inline li { display: grid; grid-template-columns: 1.3fr 1fr auto 20px; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #f0efeb; font-size: 12px; color: var(--ink); }
.apd-inline li:first-child { border-top: 0; }
.apd-inline .ty { color: var(--ink-2); }
.apd-chartwrap { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; }
.apd-y { display: flex; flex-direction: column; justify-content: space-between; height: 160px; padding-top: 10px; font-size: 10px; color: var(--muted); text-align: right; }
.apd-ph .apd-legend { margin: 0; }
/* step tiles as in the designs */
.apd-steps .apd-ic { width: 56px; height: 56px; border-radius: 14px; }
.apd-steps .apd-ic svg { width: 28px; height: 28px; }
.apd-steps li { gap: 10px; }
/* section copy wraps like the designs */
.rd-row .section-lead.wide, .apd-steps-wrap .section-lead { max-width: 44ch; }
/* highlights dividers */
.apd-hl > div + div { border-left: 1px solid var(--border); padding-left: 24px; }
/* light CTA: shorter, photo angled in on the right */
.apd-cta-light { grid-template-columns: minmax(0, 1fr) auto 30%; min-height: 0; padding: 30px 0 30px 40px; }
.apd-cta-light img { position: absolute; right: 0; top: 0; bottom: 0; width: 30%; height: 100%; min-height: 0; margin: 0; -webkit-mask-image: none; mask-image: none; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
@media (max-width: 640px) {
  .apd-sided { grid-template-columns: minmax(0, 1fr); }
  .apd-side { display: none; }
  .apd-inline li { grid-template-columns: minmax(0, 1fr) auto; }
  .apd-inline .ty, .apd-inline .apd-dots { display: none; }
  .apd-hl > div + div { border-left: 0; padding-left: 0; }
}
.apd-hero h1, .section-title, .final-cta h2, .apd-cta-light h2 { max-width: none; }
@media (max-width: 960px) { br.wbr { display: none; } }
.apd-steps .apd-ic { width: 66px; height: 66px; border-radius: 16px; }
.apd-steps .apd-ic svg { width: 34px; height: 34px; }
.apd-table td { max-width: none; overflow: visible; }
.apd-sided { grid-template-columns: 24% minmax(0, 1fr); }
.apd-gantt .bar span { font-size: 11px; }
.apd-hero { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 40px; }
.apd-steps .apd-ic { width: 76px; height: 76px; border-radius: 18px; }
.apd-steps .apd-ic svg { width: 38px; height: 38px; }
.apd-hl svg { width: 36px; height: 36px; }
.apd-hl div { font-size: 16px; }
@media (max-width: 640px) { .apd-steps .apd-ic { width: 56px; height: 56px; } .apd-steps .apd-ic svg { width: 28px; height: 28px; } }
.apd-hero h1 { font-size: clamp(38px, 4.2vw, 56px); }
/* hiring board */
.apd-boardwrap { padding: 16px 18px; }
.apd-boardbar { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; font-size: 13px; }
.apd-boardbar b { color: var(--ink); }
.apd-boardbar .mw-tabs { flex: 1; border: 0; gap: 4px; }
.apd-boardbar .mw-tabs span { padding: 6px 14px; border-radius: 8px; }
.apd-boardbar .mw-tabs .on { background: #e6eefc; border: 0; }
.apd-search { width: 30%; padding: 7px 12px; border: 1px solid #e2e4e8; border-radius: 8px; color: var(--muted); }
.apd-filt { padding: 6px 9px; border: 1px solid #e2e4e8; border-radius: 8px; }
.apd-board header { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; }
.apd-board header em { font-style: normal; font-size: 11px; padding: 0 6px; border-radius: 6px; background: rgba(255,255,255,.7); }
.apd-board .cand { align-items: flex-start; }
.apd-board .cand > span { flex: 1; min-width: 0; }
.apd-board .cand small { display: block; }
.apd-board .cand i { font-style: normal; color: var(--muted); }
.apd-board .va { margin-top: auto; padding-top: 6px; font-size: 12px; color: #1d4fb8; }
.av2 { display: inline-flex; }
.av2 .avatar { width: 24px; height: 24px; border: 2px solid #fff; }
.av2 .avatar + .avatar { margin-left: -8px; }
/* candidate profile */
.apd-profile { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }
.apd-profile .who { display: grid; gap: 4px; font-size: 12px; }
.apd-profile .who b { font-size: 15px; color: var(--ink); }
.avatar.big { width: 64px; height: 64px; margin-bottom: 6px; }
.apd-profile .vr { margin-top: 6px; font-weight: 600; color: var(--ink); }
.apd-profile small { display: block; margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.apd-profile .stars { margin-bottom: 16px; color: #f5a623; font-size: 20px; letter-spacing: 2px; }
.apd-profile .stars span { color: #f5c16b; }
.apd-profile .stars b { margin-left: 6px; font-size: 13px; letter-spacing: 0; color: var(--ink); }
.apd-profile ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.apd-profile li { display: flex; justify-content: space-between; }
.apd-profile li b { color: var(--ink); }
@media (max-width: 640px) { .apd-profile { grid-template-columns: 1fr; } .apd-boardbar .mw-tabs, .apd-search { display: none; } }
.apd-board .cand > span { flex: initial; }
.apd-board .cand > span:not(.avatar) { flex: 1; min-width: 0; }
.apd-board .cand .avatar { flex: none; width: 30px; height: 30px; }
/* booking page + confirmation phone */
.apd-booking { position: relative; padding-right: 26%; }
.apd-booking .bp { display: grid; gap: 10px; }
.apd-booking .brand { font-size: 13px; }
.apd-booking .h { font-size: 16px; color: var(--ink); }
.bsteps { display: flex; gap: 14px; font-size: 11px; color: var(--muted); }
.bsteps .on { color: #1d4fb8; font-weight: 600; }
.apd-booking small { font-weight: 600; color: var(--ink); }
.apd-booking ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.apd-booking li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid #eceef1; border-radius: 10px; font-size: 11px; }
.apd-booking li span:not(.avatar) { flex: 1; }
.apd-booking li b { display: block; font-size: 13px; color: var(--ink); }
.apd-booking li i { width: 14px; height: 14px; border: 1.5px solid #c9ccd1; border-radius: 50%; }
.apd-booking li.on { border-color: #9cb8f2; background: #eef3fd; }
.apd-booking li.on i { border: 4px solid #2563eb; }
.apd-booking .next { justify-self: end; padding: 9px 28px; font-size: 12px; }
.apd-booking .mock-phone { right: 0; bottom: -18px; width: 32%; }
.mp-ok { display: grid; place-items: center; width: 22cqw; height: 22cqw; margin: 4cqw auto 0; border-radius: 50%; background: #22a447; color: #fff; font-size: 11cqw; font-weight: 700; }
.mp-btn.ghost { background: #fff; color: var(--ink); border: 1px solid #e2e4e8; }
/* business type tiles: one row of 8 */
.apd-wide .apd-tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.apd-tiles .apd-ic { width: 48px; height: 48px; border-radius: 12px; }
@media (max-width: 960px) { .apd-wide .apd-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .apd-booking { padding-right: 0; } .apd-booking .mock-phone { display: none; } .apd-wide .apd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.apd-panel.apd-booking { padding: 0 24% 0 0; }
.apd-tiles > span { display: grid; justify-items: center; gap: 8px; padding: 16px 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.apd-steps-wrap .section-title, .rd-row .section-title, .apd-wide .section-title { font-size: clamp(30px, 3.3vw, 44px); }
@media (max-width: 640px) { .apd-panel.apd-booking { padding: 0; } }
.apd-tiles > span { font-size: 12px; line-height: 1.3; }
.apd-steps-wrap .section-title, .rd-row .section-title, .apd-wide .section-title { font-size: clamp(30px, 3.1vw, 42px); }
/* document timeline */
.apd-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.apd-timeline li { position: relative; display: grid; grid-template-columns: 18px 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; font-size: 12px; }
.apd-timeline li > i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c9ccd1; background: #fff; }
.apd-timeline li.done > i { border-color: #22a447; background: #22a447 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.apd-timeline li.now > i { border-color: #2563eb; box-shadow: inset 0 0 0 3px #fff; background: #2563eb; }
.apd-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 34px; bottom: -14px; border-left: 1.5px solid #e2e4e8; }
.apd-timeline .avatar { width: 34px; height: 34px; }
.apd-timeline small { display: block; color: var(--muted); }
.apd-timeline b { display: block; font-size: 13px; color: var(--ink); }
.apd-timeline em { font-style: normal; text-align: right; color: var(--muted); max-width: 11ch; }
/* security illustration */
.apd-secure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 16px; background: #eef2fb; border: 0; }
.apd-secure .art { position: relative; height: 170px; }
.apd-secure .pg { position: absolute; display: grid; align-content: start; gap: 8px; width: 46%; height: 72%; padding: 14px; border-radius: 12px; background: #fff; box-shadow: 0 12px 24px rgba(37, 99, 235, .15); }
.apd-secure .p1 { left: 8%; top: 4%; } .apd-secure .p2 { left: 22%; top: 18%; }
.apd-secure .pg i { display: block; height: 7px; border-radius: 4px; background: #c9d6ea; }
.apd-secure .pg i:nth-child(2) { width: 70%; }
.apd-secure .sh { position: absolute; right: 6%; bottom: 0; display: grid; place-items: center; width: 92px; height: 104px; border-radius: 46px 46px 50px 50px / 30px 30px 74px 74px; background: linear-gradient(160deg, #3b82f6, #1d4ed8); color: #fff; box-shadow: 0 14px 28px rgba(29, 78, 216, .35); }
.apd-secure .sh svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.apd-secure .ok { position: absolute; left: 2%; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #22a447; color: #fff; font-weight: 700; }
.apd-secure .ticks { padding: 16px 18px; background: #fff; border-radius: 12px; font-size: 13px; gap: 10px; }
@media (max-width: 640px) { .apd-secure { grid-template-columns: 1fr; } .apd-secure .art { display: none; } }
/* AI conversation flow */
.apd-chatlead .msgs { gap: 12px; }
.apd-chatlead .m { display: flex; align-items: flex-start; gap: 10px; }
.apd-chatlead .m.out { justify-content: flex-end; }
.apd-chatlead .bot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e6eefc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f62cc' stroke-width='2'%3E%3Crect x='5' y='8' width='14' height='10' rx='3'/%3E%3Cpath d='M12 4v4M9 13h.01M15 13h.01'/%3E%3C/svg%3E") center / 15px no-repeat; }
.apd-chatlead .bub small { display: block; margin-top: 4px; text-align: right; font-size: 9px; color: var(--muted); }
.apd-chatlead dl { background: #f6f8fa; }
.apd-chatlead .lid { display: block; padding-bottom: 6px; color: var(--ink); }
.apd-chatlead .lid::first-letter { color: #22a447; }
.apd-rows .thumb { flex: none; width: 54px; height: 40px; object-fit: cover; border-radius: 6px; }
.apd-rows .sublist { display: grid; gap: 2px; margin-top: 2px; }
.apd-rows .sublist span::first-letter { color: #22a447; }
.apd-searchrow { display: flex; gap: 10px; margin-bottom: 8px; }
.apd-searchrow .apd-search { flex: 1; width: auto; }
.apd-link { font-size: 12px; color: #1d4fb8; font-weight: 500; }
.apd-pair { align-items: start; }
/* lead profile + suggestions */
.apd-leadcard { display: grid; grid-template-columns: 1fr .95fr; align-items: start; }
.apd-leadcard .lc { position: relative; z-index: 0; margin-top: 10px; }
.apd-leadcard .sg { position: relative; z-index: 1; margin: 0 0 0 -14px; padding: 6px 16px; list-style: none; }
.apd-leadcard .who { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.apd-leadcard .who .avatar { width: 40px; height: 40px; }
.apd-leadcard .who > span:not(.avatar) { flex: 1; }
.apd-leadcard .who b { display: block; font-size: 14px; color: var(--ink); }
.apd-leadcard dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 14px; font-size: 12px; }
.apd-leadcard dt { color: var(--muted); }
.apd-leadcard dd { margin: 0; color: var(--ink); }
.apd-leadcard .ins { padding: 12px; border-radius: 10px; background: #eef3fd; font-size: 12px; line-height: 1.5; }
.apd-leadcard .ins b { display: block; color: var(--ink); }
.apd-leadcard .sg li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #f0efeb; font-size: 12px; }
.apd-leadcard .sg li:first-child { border-top: 0; }
.apd-leadcard .sg b { display: block; font-size: 13px; color: var(--ink); }
@media (max-width: 640px) { .apd-leadcard { grid-template-columns: 1fr; } .apd-leadcard .sg { margin: 10px 0 0; } }
/* larger form panels, as in the designs */
.apd-flow .apd-pair, .apd-rev .apd-pair { gap: 18px; }
.apd-form { gap: 14px; }
.apd-form label { font-size: 13px; }
.apd-form span.f { padding: 10px 12px; font-size: 13px; }
.apd-actions span { padding: 10px 18px; font-size: 13px; }
.apd-flow .apd-panel { padding: 22px 22px; }
.apd-vflow li { font-size: 13px; }
.apd-vflow b { font-size: 15px; }
.apd-vflow .apd-ic { width: 44px; height: 44px; }
.apd-flow > div:first-child .section-title { font-size: clamp(30px, 3.1vw, 42px); }
.apd-price .price .cur { margin-right: 2px; }
.apd-vsteps .apd-ic { width: 60px; height: 60px; }
.apd-vsteps .apd-ic svg { width: 30px; height: 30px; }
.apd-vsteps li:not(:last-child)::after { left: 80px; }
.apd-cta-dark h2 { font-size: clamp(26px, 2.8vw, 36px); }
.apd-wide, .apd-wide-head, .apd-wide-head > div { min-width: 0; }
.apd-wide .eyebrow, .apd-wide .section-title, .apd-tiles > span { overflow-wrap: anywhere; }
.apd-wide-head { flex-wrap: wrap; }
.apd-wide-head > div { flex: 1 1 280px; }

/* ======================================================================
   Design scale — values measured from the app page designs at 1440px
   ====================================================================== */
main .btn { min-height: 60px; padding: 0 40px; font-size: 17px; font-weight: 600; }
main .btn-outline { border-color: #b9b6ae; }
main .text-link { font-size: 16px; }
main .eyebrow, .apd-eyebrow { font-size: 14px; letter-spacing: .2em; margin-bottom: 20px; }
.section { padding-top: 96px; }

/* hero */
.apd-hero { grid-template-columns: var(--cols, minmax(0, 455px) minmax(0, 1fr)); gap: 44px; padding: 64px 0 40px; }
.apd-hero h1 { margin: 0 0 26px; font-size: 62px; line-height: 1.08; letter-spacing: -.04em; }
.apd-hero .lead { max-width: 460px; font-size: 19.5px; line-height: 1.7; }
.apd-hero .btn-row { margin-top: 44px; gap: 24px; }
.apd-eyebrow { gap: 14px; margin-bottom: 22px; }
.apd-eyeicon { width: 52px; height: 52px; border-radius: 12px; }
.apd-eyeicon svg { width: 26px; height: 26px; }
.apd-media.has-phone { padding-right: 15%; }
.apd-media.has-phone .mock-phone { width: 25%; bottom: -8%; }

/* highlights */
.apd-hl { padding: 48px 0 8px; border-bottom: 0; }
.apd-hl div { gap: 22px; font-size: 18px; line-height: 1.55; }
.apd-hl svg { width: 40px; height: 40px; }
.hl-circles > div + div { border-left: 0; padding-left: 0; }
.hl-circles svg { box-sizing: content-box; padding: 13px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }
.hl-dividers > div + div { border-left: 1px solid var(--border); padding-left: 32px; }

/* section copy */
.section-title, .apd-steps-wrap .section-title, .rd-row .section-title, .apd-wide .section-title,
.apd-flow > div:first-child .section-title { margin: 0 0 22px; font-size: 58px; line-height: 1.1; letter-spacing: -.035em; }
.section-lead, .rd-row .section-lead, .rd-row .section-lead.wide, .apd-steps-wrap .section-lead { max-width: 560px; font-size: 19.5px; line-height: 1.7; }
.section .btn-row { margin-top: 40px; }

/* two-column rows: widths come from --cols (design px ratio) */
.apd-split { grid-template-columns: var(--cols, minmax(0, 1fr) minmax(0, 1fr)); column-gap: 56px; }

/* step cards (horizontal) */
.apd-steps-wrap { grid-template-columns: var(--cols, minmax(0, 485fr) minmax(0, 750fr)); gap: 45px; }
.apd-steps { gap: 24px; }
.apd-steps li { padding: 26px 14px 26px; gap: 12px; border-radius: 16px; }
.apd-steps li:not(:last-child)::after { right: -19px; top: 58px; font-size: 16px; color: #6b7280; }
.apd-steps .apd-ic { width: 90px; height: 90px; border-radius: 18px; }
.apd-steps .apd-ic svg { width: 44px; height: 44px; }
.apd-steps .n { font-size: 16px; }
.apd-steps h3 { font-size: 17px; }
.apd-steps p { font-size: 15px; line-height: 1.5; }

/* vertical steps card */
.apd-vsteps { padding: 40px 48px; gap: 10px; border-radius: 18px; }
.apd-vsteps li { grid-template-columns: 38px 80px minmax(0, 1fr); gap: 26px; padding: 6px 0 26px; }
.apd-vsteps .num { width: 38px; height: 38px; margin-top: 22px; font-size: 17px; }
.apd-vsteps .apd-ic { width: 80px; height: 80px; border-radius: 18px; }
.apd-vsteps .apd-ic svg { width: 40px; height: 40px; }
.apd-vsteps li:not(:last-child)::before { left: 18px; top: 66px; bottom: -6px; }
.apd-vsteps li:not(:last-child)::after { left: 104px; bottom: 0; font-size: 22px; }
.apd-vsteps h3 { margin-bottom: 8px; font-size: 22px; }
.apd-vsteps p { font-size: 18.5px; line-height: 1.75; }

/* features */
.apd-features { gap: 30px 20px; margin-top: 44px; }
.apd-feature { gap: 30px; padding: 30px 28px; border-radius: 16px; }
.apd-feature .apd-ic { width: 68px; height: 68px; border-radius: 16px; }
.apd-feature .apd-ic svg { width: 32px; height: 32px; }
.apd-feature h3 { margin-bottom: 10px; font-size: 20px; }
.apd-feature p { font-size: 17.5px; line-height: 1.7; }

/* panels */
.apd-panel { padding: 30px 32px; font-size: 15.5px; border-radius: 18px; }
.apd-ph b { font-size: 19px; }
.apd-rows li { gap: 22px; padding: 16px 0; }
.apd-rows .apd-ic { width: 56px; height: 56px; border-radius: 14px; }
.apd-rows .apd-ic svg { width: 28px; height: 28px; }
.apd-rows b { margin-bottom: 4px; font-size: 18px; }
.apd-rows .act { padding: 8px 14px; font-size: 15px; }

/* pricing card */
.apd-price { padding: 40px 46px; border-radius: 20px; }
.apd-price .eyebrow { margin-bottom: 14px; }
.apd-price .price { font-size: 72px; }
.apd-price .per { font-size: 26px; }
.apd-price .incl { margin: 14px 0 24px; font-size: 20px; }
.apd-price .ticks { gap: 16px; font-size: 18px; }

/* CTAs */
.apd-cta-dark { grid-template-columns: minmax(0, 1fr) 225px 290px; gap: 40px; margin: 96px 0 60px; padding: 46px 46px; border-radius: 18px; }
.apd-cta-dark h2, .apd-cta-light h2 { font-size: 42px; line-height: 1.25; }
.apd-cta-dark .final-actions { gap: 18px; }
.apd-cta-dark .final-actions .btn { min-height: 58px; }
.apd-cta-light { margin: 96px 0 60px; padding: 46px 0 46px 46px; }

@media (max-width: 1100px) {
  .apd-hero h1 { font-size: 52px; }
  .section-title, .apd-steps-wrap .section-title, .rd-row .section-title, .apd-wide .section-title { font-size: 46px; }
  .apd-cta-dark { grid-template-columns: minmax(0, 1fr) auto; }
  .apd-cta-dark .apd-art { display: none; }
}
@media (max-width: 960px) {
  .apd-split, .apd-hero { grid-template-columns: minmax(0, 1fr); }
  .apd-media.has-phone { margin-right: 0; }
}
@media (max-width: 640px) {
  main .btn { min-height: 52px; padding: 0 26px; font-size: 16px; }
  .apd-hero h1 { font-size: 40px; }
  .section-title, .apd-steps-wrap .section-title, .rd-row .section-title, .apd-wide .section-title,
  .apd-flow > div:first-child .section-title { font-size: 34px; }
  .apd-hero .lead, .section-lead, .rd-row .section-lead, .rd-row .section-lead.wide { font-size: 17px; }
  .apd-vsteps { padding: 22px 18px; }
  .apd-vsteps li { grid-template-columns: 30px 48px minmax(0, 1fr); gap: 12px; }
  .apd-vsteps .apd-ic { width: 48px; height: 48px; }
  .apd-vsteps .num { width: 30px; height: 30px; margin-top: 8px; }
  .apd-vsteps li:not(:last-child)::before { left: 14px; top: 44px; }
  .apd-vsteps li:not(:last-child)::after { left: 66px; }
  .apd-vsteps h3 { font-size: 18px; } .apd-vsteps p { font-size: 15.5px; }
  .apd-feature { gap: 18px; padding: 22px 20px; }
  .apd-feature .apd-ic { width: 52px; height: 52px; }
  .apd-cta-dark h2, .apd-cta-light h2 { font-size: 30px; }
  .apd-cta-dark { padding: 30px 24px; }
  .apd-price .price { font-size: 56px; }
  .hl-dividers > div + div { border-left: 0; padding-left: 0; }
  .apd-steps .apd-ic { width: 64px; height: 64px; }
}
.apd-hero { padding-top: 94px; }
.apd-hero .lead { max-width: 455px; }
.apd-hero .btn-row { margin-top: 36px; }
main .btn-row .btn { padding: 0 44px; min-width: 186px; justify-content: center; }
.apd-media.has-phone .mock-screen { aspect-ratio: 16 / 11.8; }
.apd-media.has-phone .mock-phone { width: 24%; bottom: -10%; }
.section { padding-top: 76px; }
.apd-hl { padding-top: 28px; }
.section-lead, .rd-row .section-lead, .rd-row .section-lead.wide, .apd-steps-wrap .section-lead { max-width: 500px; font-size: 21px; line-height: 1.72; }
.section-title.apd-ftitle { font-size: 50px; line-height: 1.1; max-width: none; }
.apd-ftitle + .section-lead { max-width: none; font-size: 20px; }
.apd-features { margin-top: 34px; }
.apd-feature { min-height: 215px; }
.apd-feature p { font-size: 18px; line-height: 1.65; }
.apd-vsteps { padding: 62px 50px 42px 41px; }
.apd-vsteps p { max-width: 360px; }
.apd-vsteps li { gap: 33px; }
.apd-vsteps li:not(:last-child)::after { left: 112px; }
.section-title { font-size: 60px; }

/* ---- calibrated against Invoicing design landmarks (1440px) ---- */
.container { width: min(1266px, 100% - 48px); }
.apd-hero { align-items: start; padding: 93px 0 0; }
.apd-hero > div:first-child { padding-top: 2px; }
.apd-eyebrow { margin-bottom: 14px; }
.apd-hero h1 { margin-bottom: 24px; }
.apd-hero .lead { font-size: 21px; line-height: 1.6; }
.apd-hero .btn-row { margin-top: 42px; }
.apd-hl { padding: 50px 0 0; }
.section { padding-top: 60px; }
.section-title, .apd-steps-wrap .section-title, .rd-row .section-title, .apd-wide .section-title, .apd-flow > div:first-child .section-title { font-size: 54px; }
.apd-deco .section-title, .apd-steps-wrap .section-title { font-size: 60px; }
.section-title.apd-ftitle { font-size: 50px; }
.section-lead, .rd-row .section-lead, .rd-row .section-lead.wide, .apd-steps-wrap .section-lead { max-width: none; font-size: 23px; line-height: 1.57; }
.apd-ftitle + .section-lead { font-size: 23px; }
.apd-vsteps { padding: 34px 50px 44px 41px; }
.apd-vsteps li { padding: 0 0 14px; }
.apd-features { margin-top: 40px; gap: 20px; }
.apd-feature { min-height: 0; padding: 28px 28px 26px; }
.apd-feature p { font-size: 19.5px; line-height: 1.55; }
.apd-rows li { padding: 13px 0; }
.apd-price { padding: 34px 46px 36px; }
.apd-price .incl { margin: 10px 0 22px; }
.apd-cta-dark { margin: 55px 0 0; padding: 36px 46px; }
.apd-cta-dark h2 { font-size: 40px; }
.apd-cta-dark .final-actions .btn { min-height: 56px; }
main + .site-footer { margin-top: 64px; }
.apd-hl { padding-top: 75px; }
.apd-hl + .section { padding-top: 75px; }
.apd-vsteps { padding: 47px 50px 57px 41px; }
.apd-features { margin-top: 26px; }
.apd-feature { padding: 22px 28px 20px; }
.apd-price { padding: 30px 46px 26px; }
.apd-cta-dark { padding: 40px 46px; align-items: center; }
.apd-cta-dark .apd-art { height: 140px; }
.apd-feature p { font-size: 17.5px; line-height: 1.6; }
.apd-feature h3 { font-size: 19.5px; }
.section-lead, .rd-row .section-lead, .rd-row .section-lead.wide, .apd-steps-wrap .section-lead, .apd-ftitle + .section-lead { font-size: 21px; line-height: 1.6; }
.apd-vsteps p { font-size: 18px; line-height: 1.6; max-width: 380px; }
.apd-vsteps li { padding-bottom: 22px; }
.apd-cta-dark { grid-template-columns: minmax(0, 1fr) 225px 260px; }
.apd-cta-dark h2 { font-size: 38px; }
.apd-hero .lead { font-size: 20px; }

/* ---- per-design type scale: --s = design section-title size / 54px, --h1 = design hero size ---- */
main { --s: 1; }
.apd-hero h1 { font-size: var(--h1, 62px); }
.section-title, .apd-steps-wrap .section-title, .rd-row .section-title, .apd-wide .section-title,
.apd-flow > div:first-child .section-title, .apd-deco .section-title { font-size: calc(54px * var(--s)); }
.section-title.apd-ftitle { font-size: calc(50px * var(--s)); }
.section-lead, .rd-row .section-lead, .rd-row .section-lead.wide, .apd-steps-wrap .section-lead, .apd-ftitle + .section-lead { font-size: calc(21px * var(--s)); }
.section { padding-top: calc(66px * var(--s)); }
.apd-hl + .section { padding-top: calc(75px * var(--s)); }
main .eyebrow { font-size: calc(14px * var(--s)); }
main .btn { min-height: calc(60px * var(--s)); font-size: calc(17px * var(--s)); }
.section .btn-row { margin-top: calc(36px * var(--s)); }
.apd-feature { padding: calc(22px * var(--s)) calc(28px * var(--s)); gap: calc(30px * var(--s)); }
.apd-feature .apd-ic { width: calc(68px * var(--s)); height: calc(68px * var(--s)); }
.apd-feature h3 { font-size: calc(19.5px * var(--s)); }
.apd-feature p { font-size: calc(17.5px * var(--s)); }
.apd-features { margin-top: calc(26px * var(--s)); gap: calc(20px * var(--s)); }
.apd-steps .apd-ic { width: calc(90px * var(--s)); height: calc(90px * var(--s)); }
.apd-steps .apd-ic svg { width: calc(44px * var(--s)); height: calc(44px * var(--s)); }
.apd-steps h3 { font-size: calc(17px * var(--s)); }
.apd-steps p { font-size: calc(15px * var(--s)); }
.apd-panel { font-size: calc(15.5px * var(--s)); padding: calc(30px * var(--s)) calc(32px * var(--s)); }
.apd-ph b { font-size: calc(19px * var(--s)); }
.apd-rows b { font-size: calc(18px * var(--s)); }
.apd-rows .apd-ic { width: calc(56px * var(--s)); height: calc(56px * var(--s)); }
.apd-price .price { font-size: calc(72px * var(--s)); }
.apd-price .ticks { font-size: calc(18px * var(--s)); }
.apd-price .incl { font-size: calc(20px * var(--s)); }
.apd-cta-dark h2, .apd-cta-light h2 { font-size: calc(38px * var(--s)); }
@media (max-width: 1100px) { main { --s: .85 !important; } .apd-hero h1 { font-size: 52px; } }
@media (max-width: 640px) {
  main { --s: .68 !important; }
  .apd-hero h1 { font-size: 40px; }
  .section-lead, .rd-row .section-lead, .rd-row .section-lead.wide, .apd-steps-wrap .section-lead, .apd-hero .lead { font-size: 17px; }
  .apd-feature p { font-size: 15.5px; } .apd-feature h3 { font-size: 17px; }
  main .btn { min-height: 52px; font-size: 16px; }
}
.section-lead, .rd-row .section-lead, .rd-row .section-lead.wide, .apd-steps-wrap .section-lead, .apd-ftitle + .section-lead { font-size: 21px; }
.apd-split { grid-template-columns: var(--cols, minmax(0, .86fr) minmax(0, 1.14fr)); }
.apd-split.apd-rev { grid-template-columns: var(--cols, minmax(0, 1.14fr) minmax(0, .86fr)); }
.hl-dividers div { font-size: 16px; gap: 18px; }
.hl-dividers svg { width: 34px; height: 34px; }
.apd-hero:not(:has(.has-phone)) { padding-bottom: 0; }
.apd-hero:not(:has(.has-phone)) .apd-media { padding-bottom: 0; }
.apd-hero:not(:has(.has-phone)) + .apd-hl { padding-top: 40px; }
@media (max-width: 960px) { .apd-split, .apd-split.apd-rev { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .section-lead, .rd-row .section-lead, .rd-row .section-lead.wide, .apd-steps-wrap .section-lead, .apd-ftitle + .section-lead { font-size: 17px; } }
.apd-split { grid-template-columns: var(--cols, minmax(0, .8fr) minmax(0, 1.2fr)); }
.apd-split.apd-rev { grid-template-columns: var(--cols, minmax(0, 1.2fr) minmax(0, .8fr)); }
.apd-cta-dark h2, .apd-cta-light h2 { font-size: 40px; }
.apd-steps-wrap { grid-template-columns: var(--cols, minmax(0, 490fr) minmax(0, 750fr)); }
@media (max-width: 1100px) { .apd-cta-dark h2, .apd-cta-light h2 { font-size: 34px; } }
@media (max-width: 640px) { .apd-cta-dark h2, .apd-cta-light h2 { font-size: 28px; } }
/* cards keep a fixed size across designs; only headings and spacing follow --s */
.apd-feature { padding: 22px 28px; gap: 28px; }
.apd-feature .apd-ic { width: 64px; height: 64px; }
.apd-feature h3 { font-size: 19px; }
.apd-feature p { font-size: 17px; }
.apd-features { margin-top: 30px; gap: 20px; }
.apd-steps .apd-ic { width: 84px; height: 84px; }
.apd-steps .apd-ic svg { width: 42px; height: 42px; }
.apd-steps h3 { font-size: 17px; }
.apd-steps p { font-size: 15px; }
.apd-panel { font-size: 15px; padding: 28px 30px; }
.apd-ph b { font-size: 18px; }
.apd-rows b { font-size: 17px; }
.apd-rows .apd-ic { width: 52px; height: 52px; }
.apd-price .price { font-size: 70px; }
.apd-price .ticks { font-size: 17px; }
.apd-price .incl { font-size: 19px; }
@media (max-width: 640px) {
  .apd-feature .apd-ic { width: 52px; height: 52px; } .apd-feature p { font-size: 15.5px; } .apd-feature h3 { font-size: 17px; }
  .apd-steps .apd-ic { width: 60px; height: 60px; } .apd-steps .apd-ic svg { width: 30px; height: 30px; }
  .apd-panel { padding: 18px; } .apd-price .price { font-size: 54px; }
}
.apd-hero { grid-template-columns: var(--cols, minmax(0, 505px) minmax(0, 1fr)); }
.apd-hero .lead { max-width: 470px; }
.apd-split { grid-template-columns: var(--cols, minmax(0, .95fr) minmax(0, 1.05fr)); }
.apd-split.apd-rev { grid-template-columns: var(--cols, minmax(0, 1.05fr) minmax(0, .95fr)); }
main.wide-panels .apd-split { grid-template-columns: var(--cols, minmax(0, .8fr) minmax(0, 1.2fr)); }
main.wide-panels .apd-split.apd-rev { grid-template-columns: var(--cols, minmax(0, 1.2fr) minmax(0, .8fr)); }
@media (max-width: 960px) { .apd-split, .apd-split.apd-rev, main.wide-panels .apd-split, main.wide-panels .apd-split.apd-rev { grid-template-columns: minmax(0, 1fr); } }
.apd-steps li { min-width: 0; }
.apd-steps h3, .apd-steps p { overflow-wrap: anywhere; }
.apd-media { min-width: 0; }
@media (max-width: 640px) { .apd-media { overflow: hidden; } }
/* buttons inside illustration panels: fixed sizes (cqw units only work inside the mockups) */
.apd-panel .mw-btn, .apd-booking .mw-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 8px; font-size: 13px; line-height: 1.3; white-space: nowrap;
}
.apd-chatlead dl .mw-btn { margin-top: 6px; padding: 10px 14px; }
.apd-booking .next { padding: 9px 26px; }
/* Hero illustration: stays with the container, offset up to 100px to the right (never past the viewport) */
.apd-media.has-phone { margin-right: calc(-1 * max(0px, min(100px, (100vw - 1266px) / 2 - 16px))); }
@media (max-width: 960px) { .apd-media.has-phone { margin-right: 0; } }
main { overflow-x: clip; }
