/* =========================================================
   Frank — homeowner pre-account screens (Homeowners Figma pages 00–04)
   start.html (01 onboarding → 04 checkout), login.html (03c, 03e), waitlist.html (00 W1–W7).
   Mobile layout below 960px (Figma 393 frames), desktop at ≥960px (Figma 1280 frames).
   Tokens from ../../css/base.css. Prefix: sf- (sign-up flow).
   ========================================================= */
:root { --destructive: var(--attention); --ring: var(--foreground); }
html, body { min-height: 100%; }
body.sf-body { background: var(--background); color: var(--foreground); }
.sf-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.sf-app [hidden] { display: none !important; }
.sf-ico { display: block; flex-shrink: 0; width: var(--s, 20px); height: var(--s, 20px); }
.sf-ico img { display: block; width: 100%; height: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- type (Figma text styles) ---- */
.ts-l { font-size: 28px; line-height: 32px; letter-spacing: -.5px; font-weight: 400; }        /* Title/L */
.ts-m { font-size: 22px; line-height: 28px; letter-spacing: -.3px; font-weight: 400; }        /* Title/M */
.ts-s { font-size: 18px; line-height: 24px; letter-spacing: -.18px; font-weight: 400; }       /* Title/S */
.tb-m { font-size: 14px; line-height: 20px; }                                                 /* Body/M */
.tb-ms { font-size: 14px; line-height: 20px; font-weight: 500; }                              /* Body/M Strong */
.tb-s { font-size: 12px; line-height: 16px; }                                                 /* Body/S */
.tl-s { font-size: 12px; line-height: 16px; font-weight: 500; }                               /* Label/S */
.mut { color: var(--muted-foreground); }
.ok { color: var(--success); }
.err { color: var(--destructive); }
.u { text-decoration: underline; text-underline-position: from-font; }
.sf-link { font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: underline; text-underline-position: from-font; color: var(--foreground); white-space: nowrap; }
.sf-link--s { font-size: 12px; line-height: 16px; font-weight: 400; }

/* ---- buttons (Figma Button: Primary / Secondary / Tertiary) ---- */
.sf-btn { height: 48px; padding: 0 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-ui); text-align: center; }
.sf-btn:active { transform: scale(.97); }
.sf-btn--p { background: var(--primary); color: var(--primary-foreground); }
@media (hover: hover) and (pointer: fine) { .sf-btn--p:hover { background: var(--primary-hover); } }
.sf-btn--s { border: 1px solid var(--ring); color: var(--foreground); background: var(--card); }
.sf-btn--t { color: var(--foreground); }
.sf-btn--w { width: 100%; }
.sf-btn[disabled], .sf-btn.is-off { opacity: .35; pointer-events: none; }
.sf-btn--next { width: 120px; }
.sf-btn--wide { min-width: 200px; }

/* ---- header (question screens: frank + Save and exit) ---- */
.sf-hd { display: flex; align-items: center; gap: 12px; padding: 16px 24px 12px; }
.sf-logo { font-size: 26px; line-height: 32px; color: var(--brand); flex: 1 0 0; }   /* 07 §6a: app headers 26px */
.sf-hd .sf-save { font-size: 12px; line-height: 16px; text-decoration: underline; text-underline-position: from-font; white-space: nowrap; }
.sf-hd--back { padding: 16px 24px 8px; }
.sf-hd--tight { padding-bottom: 8px; } /* 03c: 48 tall */
/* language choice (ACT-6, X-145): "English · Español" as quiet header text, styled like Save and exit; the current one plain */
.sf-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); white-space: nowrap; }
.sf-lang button { position: relative; font: inherit; color: var(--foreground); text-decoration: underline; text-underline-position: from-font; background: none; border: 0; padding: 0; cursor: pointer; }
.sf-lang button::after { content: ""; position: absolute; inset: -12px -4px; } /* invisible touch margin */
.sf-lang button[aria-pressed="true"] { color: var(--muted-foreground); text-decoration: none; cursor: default; }
.sf-back { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border-subtle); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--card); }
.sf-back .sf-ico { --s: 20px; }
.sf-hd--lg { padding: 16px 24px; } /* 02b: 40px back button */
.sf-hd--lg .sf-back { width: 40px; height: 40px; }
.sf-hd--lg .sf-back .sf-ico { --s: 24px; }
.sf-step { font-size: 12px; line-height: 16px; color: var(--muted-foreground); white-space: nowrap; }
.sf-steps { display: none; }

/* segmented progress (02a, 04) */
.sf-seg { display: flex; gap: 4px; padding: 0 24px; }
.sf-seg i { flex: 1; height: 3px; border-radius: 2px; background: var(--border-subtle); }
.sf-seg i.on { background: var(--foreground); }

/* ---- question layout (01, W1, W2) ---- */
.sf-q { flex: 1 0 auto; display: flex; flex-direction: column; }
.sf-q__body { flex: 1 0 auto; display: flex; flex-direction: column; gap: 24px; padding: 24px 24px 32px; }
.sf-q__left, .sf-q__right { display: flex; flex-direction: column; gap: 24px; }
.sf-prompt { display: flex; flex-direction: column; gap: 8px; }
.sf-prompt__eyebrow { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted-foreground); }
.sf-prompt__title { font-size: 28px; line-height: 32px; letter-spacing: -.5px; font-weight: 400; outline: none; }
.sf-prompt__sub { font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.sf-progress { display: flex; height: 4px; background: var(--border-subtle); position: sticky; bottom: 88px; z-index: 3; }
.sf-progress i { display: block; height: 4px; background: var(--foreground); transition: width var(--dur-state) var(--ease-out); }
.sf-ft { position: sticky; bottom: 0; z-index: 3; background: var(--background); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px 24px; min-height: 88px; }
.sf-ft__back { font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: underline; text-underline-position: from-font; }

/* ---- page layout (02, 03, 04, W3–W5) ---- */
.sf-page { flex: 1 0 auto; display: flex; flex-direction: column; }
.sf-main { flex: 1 0 auto; display: flex; flex-direction: column; gap: 20px; padding: 16px 24px 32px; }
.sf-main--28 { gap: 28px; }
.sf-main--12 { padding-top: 12px; } /* 03d */
.sf-title { display: flex; flex-direction: column; gap: 8px; }
.sf-title h1 { font-size: 28px; line-height: 32px; letter-spacing: -.5px; font-weight: 400; outline: none; }
.sf-title p { font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.sf-sticky { position: sticky; bottom: 0; z-index: 3; background: var(--background); border-top: 1px solid var(--border-subtle); padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.sf-sticky:has(> .sf-btn:first-child + p) { gap: 12px; } /* button, then terms line (W3, 03a) */
.sf-sticky--row { flex-direction: row; align-items: center; gap: 16px; }
.sf-sticky--center { align-items: center; gap: 8px; }
.sf-sel { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; }
.sf-hr { height: 1px; background: var(--border-subtle); width: 100%; flex-shrink: 0; }
.sf-sec { display: flex; flex-direction: column; gap: 12px; }
.sf-sec--16 { gap: 16px; }
.sf-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---- text input (Figma Text input: Empty / Filled / Focused / Error) ---- */
.sf-field { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.sf-field__box { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); cursor: text; transition: border-color var(--dur-ui); }
.sf-field__box:focus-within { border: 2px solid var(--ring); padding: 10px 15px; } /* Figma Focused / Error: 62 tall */
.sf-field__label { font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.sf-field__input { font: inherit; font-size: 14px; line-height: 20px; color: var(--foreground); border: 0; outline: 0; padding: 0; margin: 0; background: transparent; width: 100%; resize: none; }
textarea.sf-field__input { field-sizing: content; min-height: 20px; }
.sf-field__input::placeholder { color: var(--muted-foreground); opacity: 1; }
/* Stripe's card fields (billing.js, test mode): the iframe sits where the input would, at the input's height */
.sf-stripe { min-height: 20px; padding: 0; }
.sf-field__hint { font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.sf-field.is-err .sf-field__box { border: 2px solid var(--destructive); padding: 10px 15px; }
.sf-field.is-err .sf-field__hint { color: var(--destructive); }
.sf-row2 { display: flex; gap: 12px; }
.sf-row2 > * { flex: 1 0 0; min-width: 0; }

/* address combobox (01a, W1): the list overlays what's below it */
.sf-combo { position: relative; }
.sf-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 24px); z-index: 20; margin: 0; list-style: none; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: 0 6px 16px rgba(0,0,0,.08); padding: 4px 0; background: var(--card); overflow: hidden; }
.sf-sugg [role="option"] { display: flex; gap: 12px; align-items: center; padding: 12px 16px; width: 100%; cursor: pointer; }
.sf-sugg [role="option"].is-hl { background: var(--muted); }
@media (hover: hover) and (pointer: fine) { .sf-sugg [role="option"]:hover { background: var(--muted); } }
.sf-sugg__pin { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sf-sugg [role="option"].is-hl .sf-sugg__pin { background: var(--card); }
@media (hover: hover) and (pointer: fine) { .sf-sugg [role="option"]:hover .sf-sugg__pin { background: var(--card); } }
.sf-sugg__pin .sf-ico { --s: 18px; }
.sf-combo:has(.sf-sugg:not([hidden])) ~ p { visibility: hidden; } /* the open list covers the note below; don't let its edges peek out */
.sf-sugg__copy { display: flex; flex-direction: column; min-width: 0; }
.sf-sugg__by { padding: 8px 16px 6px; border-top: 1px solid var(--border-subtle); font-size: 12px; line-height: 16px; color: var(--muted-foreground); text-align: right; } /* Google's attribution under its suggestions (Q-PRIV-11) */

/* badges */
.sf-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--muted); font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.sf-badge .sf-ico { --s: 14px; }
.sf-badge--ok { background: var(--success-subtle); color: var(--success); }

/* service list (01a·2, W2) */
.sf-svc { display: flex; flex-direction: column; }
.sf-svc__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); width: 100%; text-align: left; }
.sf-svc__row .sf-ico { --s: 20px; }
.sf-svc__name { flex: 1 0 0; min-width: 0; font-size: 14px; line-height: 20px; }
.sf-svc__cad { font-size: 12px; line-height: 16px; color: var(--muted-foreground); white-space: nowrap; }
.sf-svc__tick { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sf-svc__tick .sf-ico { --s: 20px; }
.sf-svc__tick .sf-ico.is-off { --s: 18px; }

/* stepper */
.sf-steppers { display: flex; flex-direction: column; }
.sf-stepper { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.sf-stepper__label { flex: 1 0 0; font-size: 14px; line-height: 20px; }
.sf-stepper__btn { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sf-stepper__btn .sf-ico { --s: 16px; }
.sf-stepper__btn:disabled { opacity: .35; }
.sf-stepper__val { width: 24px; text-align: center; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }

/* chips (Frequency chip) */
.sf-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sf-chip { padding: 4px 8px; border-radius: 999px; background: var(--muted); font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; color: var(--foreground); transition: background var(--dur-ui), color var(--dur-ui); }
.sf-chip.is-on { background: var(--foreground); color: var(--primary-foreground); }
.sf-chip.is-full, .sf-chip:disabled { opacity: .35; }
span.sf-chip { display: inline-block; }

/* option card */
.sf-opts { display: flex; flex-direction: column; gap: 24px; }
.sf-opts--12 { gap: 12px; }
.sf-opt { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); width: 100%; text-align: left; }
.sf-opt.is-on { background: var(--muted); border: 2px solid var(--ring); padding: 20px; } /* Figma: selected card grows by the extra border */
.sf-opt .sf-ico { --s: 24px; }
.sf-opt__copy { flex: 1 0 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* banners (Info / Attention) */
.sf-banner { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-lg); background: var(--muted); }
.sf-banner--att { background: var(--attention-subtle); }
.sf-banner .sf-ico { --s: 18px; }
.sf-banner__copy { flex: 1 0 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sf-banner__act { align-self: flex-start; font-size: 14px; line-height: 20px; font-weight: 500; }

/* note card (Nearby, Not in this package) */
.sf-note { background: var(--muted); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 16px; }

/* "or" divider */
.sf-or { display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.sf-or::before, .sf-or::after { content: ''; flex: 1; height: 1px; background: var(--border-subtle); }

/* code boxes */
.sf-code { display: flex; gap: 8px; position: relative; }
.sf-code__box { flex: 1 0 0; height: 56px; border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 28px; letter-spacing: -.3px; min-width: 0; }
.sf-code__box.is-cur { border: 2px solid var(--ring); }
.sf-code.is-err .sf-code__box { border: 2px solid var(--destructive); }
.sf-code__input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; font-size: 16px; letter-spacing: 40px; }
.sf-resend { font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.sf-resend.err { color: var(--destructive); }
.sf-resend button { text-decoration: underline; text-underline-position: from-font; font-size: 12px; }

/* identity card (03d) */
.sf-ident { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-lg); background: var(--muted); }
.sf-ident .sf-ico { --s: 24px; }

/* done mark + rows (04c, W5) */
.sf-done { width: 56px; height: 56px; border-radius: 999px; background: var(--success-subtle); display: flex; align-items: center; justify-content: center; }
.sf-done .sf-ico { --s: 24px; }
.sf-when { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.sf-when__d { width: 96px; flex-shrink: 0; font-size: 14px; line-height: 20px; font-weight: 500; }
.sf-when__c { flex: 1 0 0; display: flex; flex-direction: column; min-width: 0; }
.sf-lrow { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); width: 100%; text-align: left; }
.sf-lrow > .sf-ico { --s: 24px; }
.sf-lrow > .sf-ico:last-child { --s: 20px; }
.sf-lrow__c { flex: 1 0 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ---- 02 packages ---- */
.sf-intro { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 16px; }
.sf-intro__t { display: flex; flex-direction: column; gap: 8px; }
.sf-intro h1 { font-size: 28px; line-height: 32px; letter-spacing: -.5px; font-weight: 400; outline: none; }
.sf-profile { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--muted); }
.sf-profile__c { flex: 1 0 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sf-carousel { display: flex; align-items: flex-start; gap: 12px; padding: 8px 24px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 24px; scrollbar-width: none; overscroll-behavior-x: contain; }
.sf-carousel::-webkit-scrollbar { display: none; }
.sf-pager { display: flex; gap: 6px; justify-content: center; padding-bottom: 32px; }
.sf-pager i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.sf-pager i.on { background: var(--foreground); }
.sf-card { flex: 0 0 min(345px, calc(100vw - 48px)); scroll-snap-align: start; display: flex; flex-direction: column; gap: 24px; padding: 24px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--card); }
.sf-card.is-on { border: 2px solid var(--ring); padding: 23px; }
.sf-card__hd { display: flex; flex-direction: column; gap: 4px; }
.sf-fit { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); background: var(--success-subtle); font-size: 12px; line-height: 16px; }
.sf-fit .sf-ico { --s: 16px; }
.sf-services { display: flex; flex-direction: column; gap: 16px; }
.sf-srow { display: flex; flex-direction: column; gap: 12px; }
.sf-srow__sum { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.sf-srow__ib { width: 40px; height: 40px; border-radius: 999px; background: var(--muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sf-srow__ib .sf-ico { --s: 24px; }
.sf-srow__t { flex: 1 0 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sf-srow__sum > .sf-ico { --s: 20px; }
.sf-scope { display: flex; flex-direction: column; gap: 8px; padding-left: 52px; }
.sf-scope__r { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 16px; }
.sf-scope__r .sf-ico { --s: 16px; }
.sf-scope__r > div { display: flex; flex-direction: column; gap: 2px; }
.sf-toggle { display: flex; padding: 4px; border-radius: 999px; background: var(--muted); }
.sf-toggle button { flex: 1 0 0; padding: 8px 0; border-radius: 999px; text-align: center; font-size: 14px; line-height: 20px; color: var(--muted-foreground); white-space: nowrap; }
.sf-toggle button.is-on { background: var(--card); color: var(--foreground); font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.sf-price { display: flex; flex-direction: column; gap: 16px; }
.sf-price__fig { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.sf-price__fig b { font-weight: 300; font-size: 32px; line-height: 36px; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.sf-alac { padding: 32px 24px 24px; display: flex; flex-direction: column; gap: 4px; }
.sf-alac__items { padding-top: 8px; display: flex; flex-direction: column; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
.sf-alac__items div { display: flex; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.sf-alac__items div span:first-child { flex: 1 0 0; }
.sf-notcov { padding: 0 24px 32px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.sf-wrap-hr { padding: 0 24px; }
.sf-pool-note { font-size: 12px; line-height: 16px; color: var(--muted-foreground); }

/* 02b price tables */
.sf-sizes { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.sf-sizes > div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border-subtle); }
.sf-sizes > div:last-child { border-bottom: 0; }
.sf-sizes > div.is-you { background: var(--muted); }
.sf-pill-ok { padding: 4px 10px; border-radius: 999px; background: var(--success-subtle); color: var(--success); font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.sf-tbl { display: flex; flex-direction: column; }
.sf-tbl > div { display: flex; align-items: center; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); font-size: 14px; line-height: 20px; }
.sf-tbl > div.th { padding: 8px 0; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted-foreground); }
.sf-tbl > div > :first-child { flex: 1 0 0; font-weight: 500; min-width: 0; }
.sf-tbl > div.th > :first-child { font-weight: 500; }
.sf-tbl > div > span:not(:first-child) { width: 64px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.sf-tbl > div:not(.th) > span.you { font-weight: 500; }
.sf-checks { display: flex; flex-direction: column; gap: 12px; }
.sf-checks > div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; }
.sf-checks .sf-ico { --s: 24px; }
.sf-checks--16 { gap: 16px; }
.sf-checks--16 > div { gap: 10px; }
.sf-checks--16 .sf-ico { --s: 16px; margin-top: 2px; }

/* 02c detail */
.sf-hero { position: relative; height: 280px; overflow: hidden; }
.sf-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-hero .sf-back { position: absolute; left: 24px; top: 16px; border: 0; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
/* MKT-6: no Street View image for the address: the photo and its caption are left out, the back button stays */
.sf-hero.is-none { height: 68px; }
.sf-photohide { display: block; margin: 12px 24px 0; } /* 02c·P1, X-154 */
.sf-hero.is-none + .sf-photohide { display: none; }
.sf-hero.is-none .sf-hero__cap { display: none; }
.sf-hero__cap { position: absolute; right: 24px; bottom: 16px; background: var(--card); border-radius: 999px; padding: 4px 10px; font-size: 12px; line-height: 16px; }
.sf-rec { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 12px; line-height: 16px; font-weight: 500; }
.sf-rec .sf-ico { --s: 14px; }
.sf-aside { display: none; }
.sf-backlink { display: none; }

/* 04a schedule */
.sf-svchd { display: flex; align-items: center; gap: 12px; }
.sf-svchd .sf-ico { --s: 24px; }
.sf-cal { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.sf-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.sf-cal__wd { text-align: center; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.sf-cal__d { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 14px; line-height: 20px; border-radius: 8px; }
.sf-cal__d.past { color: var(--border); }
.sf-cal__d.today { background: var(--muted); }
.sf-cal__d i { width: 6px; height: 6px; border-radius: 50%; }
.sf-legend { display: flex; gap: 16px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.sf-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sf-legend i { width: 6px; height: 6px; border-radius: 50%; }
/* Service dots (07 §5): always beside the service name */
.dot-cleaning { background: var(--svc-clean); } .dot-mowing { background: var(--svc-lawn); } .dot-pest { background: var(--svc-extra); }
.dot-treatment { background: var(--svc-lawn); } .dot-bins { background: var(--svc-extra); } .dot-pool { background: var(--svc-extra); }
.dot-cleaning, .dot-mowing, .dot-pest, .dot-treatment, .dot-bins, .dot-pool { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent); }

/* 04b confirm */
.sf-plan { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.sf-plan img { width: 88px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.sf-plan__c { flex: 1 0 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sf-sched > div:not(.sf-sec__head) { display: flex; flex-direction: column; }
.sf-svcs { display: flex; flex-direction: column; gap: 28px; }
.sf-paym { display: flex; gap: 8px; }
.sf-paym button { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; line-height: 16px; }
.sf-paym button.is-on { border: 2px solid var(--foreground); padding: 10px 11px; }
.sf-paym .sf-ico { --s: 24px; }
.sf-bankrow { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.sf-bankrow .sf-ico { --s: 24px; }
.sf-bankrow .sf-ico:last-child { --s: 20px; }
.sf-lines { display: flex; flex-direction: column; gap: 12px; }
.sf-line { display: flex; gap: 16px; font-size: 14px; line-height: 20px; }
.sf-line span:first-child { flex: 1 0 0; }
.sf-line span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sf-line--tot { border-top: 1px solid var(--border-subtle); padding-top: 12px; font-weight: 500; }
.sf-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 12px; line-height: 16px; cursor: pointer; }
.sf-consent input { width: 18px; height: 18px; margin: 0; accent-color: var(--foreground); flex-shrink: 0; }
.sf-desk-bill { display: none; }

/* ---- home (W6, W7) ---- */
.sf-homehd { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px 8px; }
.sf-switch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; line-height: 16px; }
.sf-switch .sf-ico { --s: 14px; }
.sf-home { display: flex; flex-direction: column; gap: 24px; padding: 16px 24px 40px; flex: 1 0 auto; }
.sf-mcard { background: var(--muted); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.sf-mcard__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; font-weight: 500; }
.sf-bnav { position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: space-between; padding: 8px 32px 16px; background: var(--background); border-top: 1px solid var(--border-subtle); }
.sf-bnav a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }
.sf-bnav a.on { color: var(--foreground); font-weight: 500; }
.sf-bnav .sf-ico { --s: 24px; }
.sf-tnav { display: none; }
.sf-home-sticky { position: sticky; bottom: 69px; }

/* card shell (03, W3, W4) */
.sf-cardshell { flex: 1 0 auto; display: flex; flex-direction: column; }
.sf-cardbox { flex: 1 0 auto; display: flex; flex-direction: column; }
.sf-cardbox > .sf-main { flex: 1 0 auto; }

/* screen transition */
.sf-anim { animation: sfIn var(--dur-state) var(--ease-out); }
@keyframes sfIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sf-anim { animation: none; } .sf-btn, .sf-chip { transition: none; } }

/* =========================================================
   Desktop (≥960px) — Figma 1280 frames
   ========================================================= */
@media (min-width: 960px) {
  .sf-hd { padding: 24px 48px; }
  .sf-logo { font-size: 26px; line-height: 32px; flex: 0 0 auto; }
  .sf-hd .sf-save { font-size: 14px; line-height: 20px; font-weight: 500; margin-left: auto; }
  .sf-hd .sf-lang { font-size: 14px; line-height: 20px; margin-left: auto; }
  .sf-hd .sf-lang ~ .sf-save { margin-left: 24px; }
  .sf-hd--back { display: none; }
  .sf-seg { display: none; }

  /* question split */
  .sf-q__body { flex-direction: row; align-items: center; gap: 96px; padding: 48px 96px; min-height: calc(100vh - 76px - 92px); }
  .sf-q__left { flex: 1 0 0; min-width: 0; }
  .sf-q__right { width: 520px; flex-shrink: 0; gap: 20px; }
  .sf-sugg { top: calc(100% + 20px); }
  .sf-q__right:has(> .sf-combo) { min-height: 264px; } /* Figma 01a/W1: the split centres field + open list + note, so the field doesn't jump when the list opens */
  .sf-q .sf-opts { gap: 20px; }
  .sf-prompt__title { font-size: 44px; line-height: 50px; letter-spacing: -1px; font-weight: 300; }
  .sf-q .sf-badge--wide { align-self: stretch; }
  .sf-progress { bottom: 88px; }
  .sf-ft { padding: 20px 48px; }

  /* flow header with stepper (02, 04) */
  .sf-dhd { display: flex; align-items: center; justify-content: space-between; padding: 20px 80px; border-bottom: 1px solid var(--border-subtle); gap: 24px; }
  .sf-dhd .sf-logo { flex: none; }
  .sf-steps { display: flex; gap: 24px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
  .sf-steps span.on, .sf-steps span.done { color: var(--foreground); }
  .sf-steps span.on { font-weight: 500; }
  .sf-dhd .sf-save { flex: none; text-align: right; font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: underline; text-underline-position: from-font; }

  /* 02a */
  .sf-pk { padding: 0 80px; }
  .sf-intro { flex-direction: row; align-items: flex-end; gap: 48px; padding: 56px 0 32px; }
  .sf-intro__t { flex: 0 0 390px; display: flex; flex-direction: column; gap: 8px; }
  .sf-intro h1 { font-size: 28px; line-height: 32px; }
  .sf-intro .sf-profile { flex: 0 1 466px; }
  .sf-intro .sf-allsizes { margin-left: auto; }
  .sf-carousel { overflow: visible; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
  .sf-carousel--one { grid-template-columns: minmax(0, 420px); }
  .sf-card { flex: none; }
  .sf-pager { display: none; }
  .sf-pk-bottom { display: grid; grid-template-columns: 1fr 320px; gap: 80px; border-top: 1px solid var(--border-subtle); margin-top: 32px; padding: 32px 0 64px; }
  .sf-pk-bottom .sf-alac { padding: 0; }
  .sf-pk-bottom .sf-alac__items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; max-width: 716px; }
  .sf-pk-bottom .sf-notcov { padding: 0; }
  .sf-wrap-hr { display: none; }
  .sf-sticky--row { padding: 16px 80px; }
  .sf-sticky--row .sf-btn { min-width: 240px; }

  /* 02b (Figma 11:1319): back + logo header, one 720 column */
  .sf-hd--prices { padding: 24px 80px 16px; gap: 12px; }
  .sf-hd--prices .sf-logo { flex: none; }
  .sf-prices { width: 720px; max-width: calc(100% - 160px); margin: 0 auto; padding: 16px 0 80px; }
  .sf-prices > .sf-title h1 { font-size: 44px; line-height: 50px; letter-spacing: -1px; font-weight: 300; }
  .sf-prices .sf-tbl > div > span:not(:first-child) { width: 140px; }

  /* 02c */
  .sf-detail { max-width: 1280px; margin: 0 auto; width: 100%; padding: 32px 80px 80px; }
  .sf-backlink { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: underline; text-underline-position: from-font; margin-bottom: 24px; }
  .sf-hero { height: 420px; border-radius: var(--radius-lg); }
  .sf-hero .sf-back, .sf-hero__cap { display: none; }
  .sf-photohide { margin: 12px 0 0; }
  .sf-hero.is-none { display: none; }
  .sf-detail__cols { display: grid; grid-template-columns: minmax(0, 660px) 380px; justify-content: space-between; gap: 80px; margin-top: 32px; }
  .sf-detail__cols > .sf-main { padding: 0 !important; }
  .sf-detail .sf-backlink { margin-bottom: 32px; }
  .sf-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; align-self: start; padding: 24px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--card); }
  .sf-aside__lines { display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); padding-top: 8px; }
  .sf-aside > .sf-line { border-top: 1px solid var(--border-subtle); padding-top: 12px; }
  .sf-aside__lines div { display: flex; justify-content: space-between; gap: 12px; }
  .sf-only-m { display: none !important; }

  /* 04 two-column */
  .sf-co { max-width: 1280px; width: 100%; margin: 0 auto; padding: 40px 80px 80px; display: grid; grid-template-columns: minmax(0, 604px) 420px; justify-content: space-between; gap: 48px; align-items: start; }
  .sf-co > .sf-main { padding: 0; }
  .sf-co .sf-sticky { position: static; border: 0; padding: 0; background: none; }
  .sf-co .sf-sticky .sf-btn { width: auto; min-width: 240px; align-self: flex-start; }
  .sf-co .sf-aside { top: 24px; }
  .sf-desk-bill { display: flex; }
  .sf-co .sf-plan--m, .sf-co .sf-price-m { display: none; }
  /* 04a (Figma 11:2063): services 640 left, first visits + Continue in a 400 rail */
  .sf-co--sched { display: block; padding: 40px 80px 80px; }
  .sf-co--sched > .sf-backlink { margin-bottom: 32px; }
  .sf-co--sched > .sf-main { display: grid; grid-template-columns: minmax(0, 640px) minmax(320px, 400px); justify-content: space-between; column-gap: clamp(40px, 6vw, 80px); row-gap: 0; grid-template-areas: "title title" "svc visits" "svc foot" "svc ."; grid-template-rows: auto auto auto 1fr; align-items: start; }
  .sf-co--sched .sf-title { grid-area: title; margin-bottom: 32px; }
  .sf-co--sched .sf-svcs { grid-area: svc; }
  .sf-co--sched .sf-visits { grid-area: visits; }
  .sf-co--sched .sf-sticky { grid-area: foot; margin-top: 24px; gap: 24px; }
  .sf-co--sched .sf-sticky .sf-btn { width: 100%; min-width: 0; }
  /* 04b (Figma 11:1988): title over both columns, 32 between sections, 420 summary */
  .sf-co--pay { padding-top: 48px; }
  .sf-co--pay > .sf-main { gap: 32px; }
  .sf-co--pay > .sf-main > .sf-title { margin-bottom: 8px; }
  .sf-co--pay > .sf-aside { margin-top: 72px; gap: 20px; }
  .sf-co--pay .sf-desk-bill { gap: 8px; }
  .sf-co--pay .sf-sticky { gap: 16px; }
  .sf-co--pay .sf-sticky .sf-btn { height: 56px; min-width: 280px; }
  .sf-aside .sf-plan { border: 0; border-radius: 0; padding: 0 0 20px; border-bottom: 1px solid var(--border-subtle); }

  /* card shell (03, W3, W4) */
  .sf-app:has(> .sf-cardshell) { background: var(--muted); } /* Figma 03, W3, W4 desktop: white card on the muted page */
  .sf-cardshell { background: transparent; align-items: center; justify-content: center; padding: 12px 24px; }
  .sf-cardshell > .sf-cardbox { flex: none; width: 480px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: var(--card); display: flex; flex-direction: column; }
  .sf-cardshell > .sf-cardbox--520 { width: 520px; }
  .sf-cardbox .sf-main { padding: 40px 40px 0; flex: none; }
  .sf-cardbox .sf-sticky { position: static; border: 0; padding: 20px 40px 40px; background: none; gap: 20px; }

  /* home / done desktop */
  .sf-tnav { display: flex; align-items: center; justify-content: space-between; padding: 20px 80px; border-bottom: 1px solid var(--border-subtle); gap: 32px; }
  .sf-tnav .sf-logo { flex: none; }
  .sf-tnav nav { display: flex; gap: 32px; font-size: 14px; line-height: 20px; color: var(--muted-foreground); }
  .sf-tnav nav a { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .sf-tnav nav a::after { content: ""; width: 24px; height: 2px; }
  .sf-tnav nav a.on { color: var(--foreground); font-weight: 500; }
  .sf-tnav nav a.on::after { background: var(--foreground); }
  @media (hover: hover) and (pointer: fine) { .sf-tnav nav a:hover { color: var(--foreground); } }
  .sf-tnav__r { flex: none; display: flex; justify-content: flex-end; }
  .sf-ask { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; line-height: 20px; font-weight: 500; }
  @media (hover: hover) and (pointer: fine) { .sf-ask:hover { background: var(--muted); } }
  .sf-ask .sf-ico { --s: 16px; }
  .sf-homehd, .sf-bnav { display: none; }
  .sf-hd--done { display: none; }
  .sf-col { width: 560px; max-width: 100%; margin: 0 auto; padding: 40px 0 80px; flex: none; }
  .sf-col .sf-backlink { margin-bottom: 0; align-self: flex-start; }
  .sf-col.sf-main--28 { gap: 24px; }
  .sf-col .sf-done { width: 100%; } /* Figma W5/04c desktop: the done mark fills the column */
  .sf-col.sf-home { padding-top: 40px; }
  .sf-col + .sf-sticky, .sf-col .sf-sticky { position: static; border: 0; padding: 0; background: none; }
  .sf-col-btn { width: 240px; }
  .sf-done-sticky { display: none; }
  .sf-home-sticky { position: static; width: 560px; margin: 0 auto 80px; border: 0; padding: 0; }
  .sf-home-sticky .sf-btn { width: 240px; }
}
@media (max-width: 959px) {
  .sf-only-d { display: none !important; }
  .sf-dhd { display: none; }
  .sf-col-btn-d { display: none !important; }
}
@media (min-width: 960px) { .sf-carousel > .sf-card { order: var(--o, 0); } }
html.app body.sf-body { background: var(--background); }

@media (max-width: 959px) { .sf-co > .sf-main > .sf-sticky { margin: 4px -24px -32px; } .sf-co > .sf-aside { display: none; } }

/* Share Mr Frank (Homeowners 04b·S1–S5; 04 §10d): the friend's welcome and the share sheet (a sheet on a phone, a side panel on a computer) */
.sf-banner--ok { background: var(--success-subtle); }
.sf-sheet { border: 0; padding: 0; background: var(--card); color: var(--foreground); width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 92dvh; overflow: auto; }
.sf-sheet::backdrop { background: color-mix(in srgb, var(--foreground) 40%, transparent); }
.sf-sheet__head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--border-subtle); }
.sf-sheet__x { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
.sf-sheet__body { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px calc(24px + env(safe-area-inset-bottom)); }
.sf-sheet__sec { display: flex; flex-direction: column; gap: 8px; }
.sf-sheet__words { padding: 16px; border-radius: var(--radius-lg); background: var(--muted); font-size: 16px; line-height: 24px; }
.sf-sheet__copy { align-self: center; }
.sf-sheet__foot { text-align: center; }
@media (min-width: 960px) {
  .sf-sheet { margin: 0 0 0 auto; width: 420px; height: 100dvh; max-height: 100dvh; border-radius: 0; }
}
@media (hover: hover) and (pointer: fine) { .sf-sheet__x:hover { background: var(--muted); } }

/* NET-11, X-260, X-262: Packages "Or bring your own pros" (14j·S) and 04a·O Add your own pros, by mobile or from contacts */
.sf-own-offer { display: flex; flex-direction: column; gap: 12px; padding: 0 24px; max-width: 720px; }
.sf-own-offer .sf-opt { margin-top: 4px; }
.sf-own { gap: 0; }
.sf-own > .tb-s { margin-bottom: 12px; }
.sf-own__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.sf-own__c { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.sf-own__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.sf-own__acts .sf-btn { width: 100%; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.sf-own__acts .sf-btn:only-child { grid-column: 1 / -1; justify-self: start; width: auto; padding-inline: 24px; }
.sf-av { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--success-subtle); color: var(--foreground); font-size: 13px; font-weight: 500; } /* as .hm-av, Design System Avatar */
.sf-av--none { background: var(--muted); }
@media (min-width: 960px) {
  .sf-own-offer { padding: 0 80px; }
  .sf-co--own > .sf-main > .sf-sticky { display: none; } /* desktop: Continue sits in the rail (Figma 04a·O2 desktop) */
}
