/* The store-first sign-up's steps (src/pages/start-flow.ts), on the sign-up card (portal.css, signup.css). */
.pt-auth-top:has(.sf-head-right) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sf-head-right { font-size: 14px; color: var(--ink-soft); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-head-right a, .sf-head-right .pt-link { color: var(--ink-soft); }
.sf-brand-name { font-weight: 600; color: var(--ink); }

.sf-progress { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.sf-bars { display: inline-flex; gap: 4px; }
.sf-bar { width: 28px; height: 4px; border-radius: 2px; background: var(--paper-deep); }
.sf-bar-on { background: var(--ink); }

.sf-intro { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.sf-intro h1 { margin: 0; font-size: 36px; line-height: 1.05; letter-spacing: -0.01em; }
.sf-intro p { margin: 0; }
/* The warm view's two experts beside their line. */
.sf-pair { display: flex; align-items: center; gap: 12px; }
.sf-faces { display: flex; flex: none; }
.sf-face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; background: var(--paper-deep); }
.sf-face + .sf-face { margin-left: -10px; }
.sf-pair-text { font-size: 14px; line-height: 1.35; color: var(--ink-soft); }
.sf-pair-text b { color: var(--ink); font-weight: 600; }

.sf-form { display: flex; flex-direction: column; gap: 16px; }
.sf-field { display: flex; flex-direction: column; gap: 6px; }
/* A display rule beats the hidden attribute, so every hidden thing on these steps is hidden for sure. */
.pt-auth [hidden] { display: none !important; }
.sf-found { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent-deep); }
.sf-found[data-state="ok"]::before { content: "\2713"; font-weight: 700; }
.sf-found[data-state="unread"] { color: var(--ink-soft); }
.sf-found[data-state="bad"] { color: var(--pt-broken); }
.sf-found[data-state="bad"]::before { content: "!"; display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--pt-broken); color: #fff; font-size: 11px; font-weight: 700; }
.sf-form input[aria-invalid="true"] { border-color: var(--pt-broken); box-shadow: 0 0 0 3px var(--pt-broken-soft); }
.sf-field-error { font-size: 13px; line-height: 1.4; color: var(--pt-broken); }
.sf-offer { text-align: center; color: var(--ink-soft); font-size: 14px; margin: 16px 0 0; }
/* Works with, as on the landing pages' bar (landing-sections.ts worksBar), sized for the card. */
.sf-works { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.sf-works ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; }
.sf-works li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -.01em; }
.sf-works svg { width: 22px; height: 22px; flex: none; }
.sf-note { color: var(--ink-soft); font-size: 14px; margin: 12px 0 0; }
.sf-held { background: var(--paper-deep); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 16px; }
.sf-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 12px; font-size: 14px; }
.sf-links form { margin: 0; }

/* Step 2: the boxes */
.sf-box { display: flex; flex-direction: column; gap: 6px; }
.sf-box-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sf-box textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); resize: vertical; }
.sf-box[data-state="pending"] textarea { background: var(--paper); }
.sf-from { font-size: 12px; color: var(--accent-deep); background: #e3f1ea; border-radius: var(--radius-pill); padding: 2px 8px; }
.sf-reading { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.sf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: sf-pulse 1s ease-in-out infinite alternate; }
@keyframes sf-pulse { from { opacity: .3; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sf-dot { animation: none; } }
.sf-hint { font-size: 13px; color: var(--ink-soft); }
.sf-rate { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.sf-thumb { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--card); cursor: pointer; }
.sf-thumb[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-deep); background: #e3f1ea; }

/* Step 3: invites */
.sf-invites { display: flex; flex-direction: column; gap: 16px; }
/* Each teammate in a box of its own: the email, then "Their role" as its own labelled choice. */
.sf-invite { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0; display: flex; flex-direction: column; gap: 14px; background: var(--card); min-width: 0; }
.sf-label { font-size: 14px; font-weight: 600; color: var(--pt-muted); }
.sf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-form .sf-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--card); color: var(--ink); cursor: pointer; font-size: 15px; font-weight: 500; }
.sf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pt-form .sf-chip:has(input:checked) { background: var(--ink); color: var(--card); border-color: var(--ink); font-weight: 600; }
.pt-form .sf-chip:has(input:checked)::before { content: "\2713"; font-weight: 700; }
/* "Other": a box for their own role, shown once the chip is picked. */
.sf-other { display: none; }
.sf-role:has(input[value="Other"]:checked) .sf-other { display: flex; flex-direction: column; }
.sf-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.sf-add { align-self: flex-start; }
.sf-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* Step 4 and the card lock: the summary and the card */
.sf-summary { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 4px 16px; margin-bottom: 20px; }
.sf-summary > div { display: flex; justify-content: space-between; padding: 12px 0; }
.sf-summary > div + div { border-top: 1px solid var(--line); font-weight: 600; }
.sf-card-slot { min-height: 120px; }
.sf-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); margin: 0; }

/* The lock screens */
.sf-locked { align-items: center; text-align: center; }
.sf-lock { width: 56px; height: 56px; border-radius: 50%; background: var(--paper-deep); display: grid; place-items: center; }
.sf-change summary { list-style: none; cursor: pointer; }
.sf-change summary::-webkit-details-marker { display: none; }
.sf-change[open] form { margin-top: 10px; }

/* Step 4: the testers line and the reviews carousel (the homepage's review cards, one at a time). */
.sf-reviews { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.sf-trust { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.2; color: var(--ink); text-wrap: balance; }
/* contain: the three slides side by side never widen the card (a flex row's min-content is all of them). */
.sf-rv-track { contain: inline-size; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; gap: 12px; border-radius: 12px; }
.sf-rv-track::-webkit-scrollbar { display: none; }
.sf-rv-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sf-rv-slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; display: flex; }
.sf-reviews .hm-rv { position: relative; flex: 1; margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.sf-reviews .hm-rv figcaption { order: -1; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); }
.sf-reviews .hm-rv figcaption > span:last-child { display: grid; }
.sf-reviews .hm-rv figcaption b { font-size: 15px; font-weight: 700; color: var(--ink); }
.sf-reviews .hm-rv-av { object-fit: cover; display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: #e9eef6; color: #2f4a73; font-weight: 700; font-size: 16px; }
.sf-reviews .hm-rv-mark { position: absolute; right: 16px; top: 6px; font: 900 48px/1 var(--font-display); color: var(--paper-deep); }
.sf-reviews .hm-rv blockquote { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.sf-reviews .hm-rv blockquote b { font-weight: 700; }
.sf-rv-nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.sf-rv-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; }
.sf-rv-btn:disabled { opacity: .35; cursor: default; }
.sf-rv-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sf-rv-count { font-size: 13px; color: var(--ink-soft); min-width: 3.5em; text-align: center; }
@media (prefers-reduced-motion: reduce) { .sf-rv-track { scroll-behavior: auto; } }

/* A brand's own /hello link: the brand, the two experts, and "Was this easy?" (src/pages/hello.ts) */
.sf-claim-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; line-height: 1.3; }
.sf-claim-badge { flex: none; width: 44px; height: 44px; border-radius: 10px; background: #2f5d3a; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.sf-claim-name { font-weight: 700; font-size: 17px; }
.sf-claim-host { font-size: 14px; color: var(--ink-soft); overflow-wrap: anywhere; }
.sf-claim-experts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.sf-claim-expert { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); padding: 10px 12px; background: var(--paper); border-radius: 10px; }
.sf-claim-expert img { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.sf-claim-expert b { color: var(--ink); font-weight: 600; }
.sf-ai { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); border-radius: var(--radius-pill); padding: 1px 7px; margin-left: 4px; vertical-align: 1px; }
.sf-claim-rate { justify-content: center; margin-top: 18px; }
.sf-claim-out { text-align: center; }

/* The warm connect step's cards (src/pages/connect-step.ts) */
.sf-conns { display: flex; flex-direction: column; gap: 14px; }
.sf-conn { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sf-conn-done { border-color: #b7d9c8; background: #f3faf6; }
.sf-conn-warn { border-color: #ecc9a0; background: #fff8ef; }
.sf-conn-head { display: flex; align-items: center; gap: 12px; }
.sf-conn-logo { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid #e4e1d8; display: grid; place-items: center; flex: none; }
.sf-conn-logo svg { width: 22px; height: 22px; }
.sf-conn-name { font-weight: 700; font-size: 17px; line-height: 1.2; }
.sf-conn-sub { font-size: 14px; color: var(--ink-soft); line-height: 1.35; overflow-wrap: anywhere; }
.sf-conn-expert { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); padding: 10px 12px; background: var(--paper); border-radius: 10px; }
.sf-conn-done .sf-conn-expert { background: #fff; }
.sf-conn-expert img { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.sf-conn-expert b { color: var(--ink); font-weight: 600; }
.sf-conn-state { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.sf-conn-ok { color: var(--accent-deep); }
.sf-conn-bad { color: #a8560a; }
.sf-conn-error { color: var(--pt-broken); }
.sf-conn-wait { color: var(--ink-soft); }
.sf-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); flex: none; animation: sf-turn 1s linear infinite; }
@keyframes sf-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sf-spin { animation: none; } }
.sf-conn-ask { display: flex; flex-direction: column; gap: 8px; }
.sf-conn-more > summary { cursor: pointer; font-size: 14px; list-style: none; text-align: center; }
.sf-conn-more > summary::-webkit-details-marker { display: none; }
.sf-conn-more[open] > summary { margin-bottom: 12px; }
.sf-tick { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; }
.sf-conn-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sf-conn-center { text-align: center; }
.sf-conns + .sf-conn-center { margin-top: 16px; }
.sf-conn-actions { margin-top: 8px; }
.sf-conn-shopify { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pt-btn[disabled] { opacity: .5; cursor: default; }

/* The Google Analytics property pick (src/routes/brand-connect-google.ts): one row per property. */
.sf-choices { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.sf-choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; min-width: 0; }
.sf-choice:has(input:checked) { border-color: var(--ink); }
.sf-choice input { flex: none; margin: 0; accent-color: var(--ink); }
.sf-choice-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.sf-choice-id { flex: none; font-size: 13px; color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
