/*
 * The content pages: Avenrow for (trades), Features, Compare and the Spanish home (/es/). site.css brings the tokens
 * (both themes), the nav, the footer, the CTA, the plan cards and the private facts; app.css brings the app
 * reproductions. This file sets the page layout and the still phones. Nothing here animates, so the pages read the
 * same with or without JavaScript and under reduced motion.
 */
.land { padding-top: clamp(104px, 14vh, 150px); }
.l-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- hero: copy beside a still phone ---------- */
.l-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.l-hero .kicker { margin-bottom: 20px; }
.l-h1 { margin: 0; font: 600 clamp(40px, 5.2vw, 76px)/.98 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.l-hero .lead { max-width: 44ch; }
.l-hero .status { margin-top: 18px; }
.l-hero .actions .cta-quiet, .l-end .cta-quiet { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 .5px var(--line); }

/* ---------- sections ---------- */
.l-sec { padding: clamp(80px, 11vh, 132px) 0 0; }
.l-head { max-width: 760px; }
.l-head .kicker { margin-bottom: 16px; }
.l-h2 { margin: 0; font: 600 clamp(32px, 3.8vw, 56px)/1.02 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.l-head .lead { max-width: 60ch; }
.l-prose { max-width: 68ch; }
.l-prose p, .l-prose li { font-size: 17px; line-height: 1.65; color: var(--ink2); text-wrap: pretty; }
.l-prose p { margin: 14px 0 0; }
.l-prose b, .l-steps b, .l-cards b, .l-qa b { color: var(--ink); font-weight: 600; }
.land a:not(.cta):not(.logo):not(.l-chip) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* the steps of a real week: numbered cards */
.l-steps { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; counter-reset: st; }
.l-steps li { position: relative; padding: 24px 24px 26px 76px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--line); counter-increment: st; }
html[data-theme="light"] .l-steps li, html[data-theme="light"] .l-cards > div { background: linear-gradient(180deg, #FFFEFA, #FBF6EC); box-shadow: inset 0 0 0 .5px var(--line), 0 14px 30px -26px rgba(27, 42, 39, .32); }
.l-steps li::before { content: counter(st); position: absolute; left: 22px; top: 22px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 15px/1 var(--ui); color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass2); }
.l-steps h3, .l-cards h3 { margin: 4px 0 0; font: 600 20px/1.25 var(--ui); letter-spacing: -.015em; color: var(--ink); }
.l-steps p, .l-cards p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink2); text-wrap: pretty; }

/* plain cards (three or four facts in a row) */
.l-cards { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.l-cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.l-cards > div { padding: 22px 22px 24px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--line); }
.l-cards .pro { margin-left: 6px; }

/* copy beside a picture of the app */
.l-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.l-split.flip > figure { order: -1; }

/* questions people in the trade ask: a calm list, one column */
.l-qa { max-width: 760px; margin-top: 18px; }
.l-qa h3 { margin: 34px 0 0; font: 600 19px/1.35 var(--ui); letter-spacing: -.01em; color: var(--ink); }
.l-qa p { margin: 8px 0 0; font-size: 16.5px; line-height: 1.65; color: var(--ink2); text-wrap: pretty; }

/* the comparison table */
.l-table-wrap { margin-top: 36px; overflow-x: auto; border-radius: 22px; box-shadow: inset 0 0 0 .5px var(--line); }
.l-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.l-table caption { padding: 16px 20px 0; text-align: left; font-size: 13.5px; color: var(--ink3); caption-side: bottom; padding-bottom: 16px; }
.l-table th, .l-table td { padding: 15px 20px; text-align: left; vertical-align: top; border-top: .5px solid var(--line); }
.l-table thead th { border-top: 0; font: 600 13px/1.2 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); background: var(--surface); }
.l-table tbody th { width: 24%; font-weight: 600; color: var(--ink); }
.l-table td { color: var(--ink2); }
.l-note { margin-top: 18px; font-size: 14px; line-height: 1.6; color: var(--ink3); max-width: 80ch; }

/* plans, compact: the home page's cards without the switch */
.l-plans { margin-top: 40px; }
.l-plans .cards { justify-content: start; }
.l-plans .plan .price b { font-size: 44px; }
.l-plans .plan .price .or { font-size: 15px; }
.land .facts .ck path { stroke-dashoffset: 0; }
.land .facts { margin-top: 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* related pages */
.l-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.l-chip { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px; font: 500 15px/1 var(--ui); color: var(--ink); text-decoration: none; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--line); transition: background-color 200ms ease; }
.l-chip:hover { background: var(--surface2); }
/* the trades hub: a trade with a page is a link; one without is a quiet label */
.l-trades { margin-top: 28px; }
.l-trades a.l-chip { box-shadow: inset 0 0 0 .5px var(--brass2); }
.l-chip-plain { background: transparent; color: var(--ink2); }
.l-hero-text { grid-template-columns: minmax(0, 1fr); padding-top: clamp(24px, 6vh, 64px); }
.l-hero-text .l-h1 { max-width: 18ch; }
.l-hero-text .lead { max-width: 60ch; }
.l-sec-tight { padding-top: clamp(48px, 7vh, 80px); }
.l-sec-tight .lead { margin: 0; }

/* the closing call */
.l-end { padding: clamp(88px, 12vh, 140px) 0 clamp(80px, 11vh, 120px); text-align: center; }
.l-end .l-h2 { max-width: 20ch; margin: 0 auto; }
.l-end .lead { margin-left: auto; margin-right: auto; max-width: 52ch; }
.l-end .fine { margin-top: 22px; }

/* ---------- the still phone: app.css's device at its own design size, scaled ---------- */
.ph { --s: .56; --sh: 1280px; position: relative; margin: 0 auto; width: calc(626px * var(--s)); height: calc((var(--sh) + 36px) * var(--s)); }
.ph .device { position: absolute; left: 0; top: 0; height: calc(var(--sh) + 36px); transform: scale(var(--s)); transform-origin: 0 0; }
.ph .app { height: var(--sh); }
.l-fig { margin: 0; display: grid; justify-items: center; gap: 14px; }
.l-fig figcaption { font-size: 13px; color: var(--ink3); text-align: center; max-width: 36ch; }
.ph .a-view { opacity: 1; visibility: visible; transform: none; filter: none; }
.ph .a-tabs { pointer-events: none; }
.ph .a-tab, .ph .a-plus { cursor: default; }
/* the job details scene, still (home.css draws it inside the story) */
.ph .sc { position: absolute; inset: 0; }
.ph .a-cta .sp-main { flex: 1; }
/* an invoice on its own, as the PDF a client receives */
.l-doc { width: min(100%, 420px); margin: 0 auto; }
.l-doc .a-inv { font-size: 15px; }
.l-doc .a-inv .ln span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.l-doc .a-inv .pay { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(27, 42, 39, .15); font-size: 13.5px; color: #5F6B68; }
.l-doc .a-inv .pay b { color: #1A7A5D; font-weight: 600; }
/* a message the client receives (your own Messages app) */
.l-msg { width: min(100%, 360px); margin: 18px auto 0; padding: 16px 16px 18px; border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--line); font: 400 15px/1.45 var(--ui); }
.l-msg .bub { margin-left: auto; max-width: 92%; padding: 10px 14px; border-radius: 20px 20px 6px 20px; background: #1E8566; color: #fff; }
.l-msg small { display: block; margin: 0 4px 8px; font-size: 12.5px; color: var(--ink3); text-align: center; }

/* Voice review, still: the same pieces home.css animates, shown at their end state */
.ph .a-voice .vreview { position: absolute; left: 24px; right: 24px; top: 150px; bottom: 38px; display: flex; flex-direction: column; text-align: left; }
.ph .vy { margin: 0 4px; font: 500 15px/1 var(--a-font); letter-spacing: .12em; text-transform: uppercase; color: var(--a-ink3); }
.ph .vyq { margin: 10px 4px 0; font: 400 25px/33px var(--a-font); color: var(--a-ink); }
.ph .vst { display: flex; align-items: center; gap: 10px; margin: 18px 4px 16px; font: 500 19px/1 var(--a-font); color: var(--a-accent-ink); }
html[data-theme="light"] .ph .vst { color: var(--a-deep); }
.ph .vst i { width: 10px; height: 10px; border-radius: 50%; background: var(--a-accent); }
.ph .vg { margin: 0 4px 12px; font-size: 18px; line-height: 1; color: var(--a-ink2); }
.ph .vcard, .ph .vrow { border-radius: 30px; background: var(--a-card); box-shadow: inset 0 0 0 .5px var(--a-line), inset 0 1px 0 var(--a-top), var(--a-shadow); overflow: hidden; }
html[data-theme="light"] .ph .vcard, html[data-theme="light"] .ph .vrow { background: linear-gradient(180deg, #FFFEFA, #FBF7EF); }
.ph .vcard { padding: 22px 24px 4px; }
.ph .vc-h { display: flex; align-items: center; gap: 18px; }
.ph .vc-h .a-av { width: 64px; height: 64px; font-size: 21px; }
.ph .vc-h .n { display: grid; gap: 3px; min-width: 0; }
.ph .vc-h .n b { font: 500 29px/34px var(--a-font); letter-spacing: -.3px; }
.ph .vc-h .n span { font-size: 19px; color: var(--a-ink2); }
.ph .vc-h .n em { font-style: normal; font-size: 19px; color: var(--a-accent-ink); }
html[data-theme="light"] .ph .vc-h .n em { color: var(--a-deep); }
.ph .vc-tp { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--a-hair); }
.ph .vc-tp > div + div { text-align: right; }
.ph .vc-tp small { display: block; font-size: 17px; color: var(--a-ink3); }
.ph .vc-tp b { display: block; margin-top: 4px; font: 300 50px/58px var(--a-font); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.ph .vc-tp b small { display: inline; font-size: 20px; font-weight: 400; color: var(--a-ink2); }
.ph .vc-r { display: flex; align-items: center; gap: 12px; height: 64px; border-top: 1px solid var(--a-hair); font-size: 21px; }
.ph .vc-tp + .vc-r { margin-top: 14px; }
.ph .vc-r span { flex: 1; color: var(--a-ink2); }
.ph .vc-r b { font-weight: 400; }
.ph .vc-r .chev { width: 10px; height: 16px; color: var(--a-ink3); flex: none; }
.ph .vrow { display: flex; align-items: center; gap: 16px; height: 104px; margin-bottom: 12px; padding: 0 22px; }
.ph .vrow .tm { width: 64px; flex: none; display: grid; gap: 4px; }
.ph .vrow .tm b { font: 400 24px/1 var(--a-font); font-variant-numeric: tabular-nums; }
.ph .vrow .tm small { font-size: 16px; color: var(--a-ink2); }
.ph .vrow .a-av { width: 48px; height: 48px; font-size: 16px; }
.ph .vrow .n { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ph .vrow .n b { font: 400 23px/28px var(--a-font); }
.ph .vrow .n span { font-size: 18px; color: var(--a-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph .vrow .p { font: 500 24px/1 var(--a-font); font-variant-numeric: tabular-nums; }
.ph .vdock { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.ph .vpill { flex: 1; height: 92px; padding: 9px; border-radius: 46px; background: var(--a-glass); box-shadow: inset 0 0 0 .5px var(--a-glass-edge); }
.ph .vpill .save { height: 74px; border-radius: 37px; display: grid; place-items: center; font: 600 22px/1 var(--a-font); color: #fff; background: var(--a-fill); }
.ph .vmic { width: 92px; height: 92px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--a-ink); background: var(--a-glass); box-shadow: inset 0 0 0 .5px var(--a-glass-edge); }
.ph .vmic svg { width: 32px; height: 32px; }

/* ---------- responsive (the site's one breakpoint, then phones) ---------- */
@media (max-width: 900px) {
  .l-hero, .l-split { grid-template-columns: minmax(0, 1fr); }
  .l-split.flip > figure { order: 0; }
  .l-hero .l-fig { margin-top: 12px; }
  .l-cards { grid-template-columns: minmax(0, 1fr); }
  .l-cards.four { grid-template-columns: minmax(0, 1fr); }
  .land .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .l-steps { grid-template-columns: minmax(0, 1fr); }
  .l-steps li { padding: 20px 20px 22px 66px; }
  .l-steps li::before { left: 18px; top: 19px; }
  .ph { --s: .5; }
  .l-plans .cards { grid-template-columns: minmax(0, 1fr); }
  .l-end .actions .cta { width: 100%; }
}

/* the job details scene's spacing, as home.css sets it inside the story */
.ph .sc-job .a-dcard { margin: 290px 22px 0; }
.ph .sc-job .a-tasks { padding: 22px 30px 0; }
.ph .sc-job .a-task { height: 52px; font-size: 22px; }
.ph .sc-job .a-photos { margin-top: 14px; padding-top: 16px; }
.ph .sc-job .a-photo { width: 88px; height: 88px; }

/* the job's map picture (as home.css draws it in the story) */
.a-map .mp-blocks rect { fill: #E8E4D9; } .a-map .mp-park path, .a-map .mp-park rect { fill: #CFE3C5; }
.a-map .mp-roads path { stroke: #FFFFFF; stroke-width: 9; fill: none; } .a-map .mp-minor path { stroke: #F7F3EA; stroke-width: 4; fill: none; }
.a-map .mp-pin { fill: #E5484D; } .a-map .mp-dot { fill: #fff; }
html:not([data-theme="light"]) .a-map .mp-blocks rect { fill: #27302D; }
html:not([data-theme="light"]) .a-map .mp-park path, html:not([data-theme="light"]) .a-map .mp-park rect { fill: #2C3D33; }
html:not([data-theme="light"]) .a-map .mp-roads path { stroke: #3C4743; } html:not([data-theme="light"]) .a-map .mp-minor path { stroke: #333D3A; }
.a-map::after { content: ""; position: absolute; inset: auto 0 0; height: 110px; background: linear-gradient(transparent, var(--a-g2)); }

/* anchors land below the fixed nav */
.land [id] { scroll-margin-top: 96px; }
