/* =================================================================
   Start Free — public free-plan signup page.
   Self-contained, light, professional & compact. Uses the shared
   design tokens from theme.css; no marketing.css dependency.
   ================================================================= */

/* Anti-spam honeypot / a11y helper (this page no longer loads components.css). */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sf-body {
    margin: 0;
    min-height: calc(100 * var(--hb-vh, 1vh));
    display: flex;
    flex-direction: column;
    font-family: var(--font-main);
    color: var(--grey-900);
    background: #f4f7fb;
}

/* ── Header ── */
.sf-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
}

.sf-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 24px;
}

.sf-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-900);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

.sf-brand img {
    width: 120px;
    height: 32px;
    display: block;
    object-fit: contain;
}

.sf-nav {
    display: inline-flex;
    align-items: center;
    gap: 22px;
}

.sf-nav a {
    color: var(--grey-700);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.sf-nav a:hover {
    color: var(--primary);
}

.sf-workspaces {
    position: relative;
}

.sf-workspaces summary {
    color: var(--grey-700);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    list-style: none;
}

.sf-workspaces summary::-webkit-details-marker {
    display: none;
}

.sf-workspaces summary::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.sf-workspaces__menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    display: grid;
    min-width: 230px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .12);
    transform: translateX(-50%);
}

.sf-workspaces__menu a {
    padding: 9px 10px;
    border-radius: 7px;
    color: var(--grey-800);
}

.sf-workspaces__menu a:hover {
    background: #edf4ff;
    color: var(--primary);
}

.sf-nav .sf-login {
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--ink-900);
    color: #fff;
}

.sf-nav .sf-login:hover {
    color: #fff;
    background: #17264a;
}

/* ── Layout ── */
.sf-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.sf-container {
    display: grid;
    grid-template-columns: 1fr 1.02fr;
    gap: 44px;
    align-items: center;
    width: 100%;
    max-width: 1120px;
}

/* ── Intro (value prop) ── */
.sf-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-hover);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sf-title {
    margin: 16px 0 10px;
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.14;
    color: var(--ink-900);
    letter-spacing: -0.01em;
}

.sf-lead {
    margin: 0 0 22px;
    max-width: 44ch;
    color: var(--grey-700);
    font-size: 14px;
    line-height: 1.6;
}

.sf-features {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-features li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 11px;
    align-items: start;
    color: var(--grey-800);
    font-size: 13px;
    line-height: 1.5;
}

.sf-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-hover);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    line-height: 1;
}

.sf-features strong {
    color: var(--ink-900);
    font-weight: var(--font-weight-semibold);
}

/* ── Form card ── */
.sf-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.sf-card__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-hover);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sf-card__head h2 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 19px;
    color: var(--ink-900);
}

.sf-card__head p {
    margin: 0 0 18px;
    color: var(--grey-700);
    font-size: 12.5px;
    line-height: 1.55;
}

/* ── Form fields ── */
.sf-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 14px;
}

.sf-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.sf-field--wide {
    grid-column: 1 / -1;
}

.sf-field > span {
    color: var(--grey-700);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.01em;
}

.sf-field input,
.sf-field select {
    width: 100%;
    min-height: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--grey-900);
    font-size: 13px;
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.sf-field input[readonly] {
    background: #f5f8fc;
    color: var(--ink-900);
}

.sf-field small {
    color: var(--grey-600);
    font-size: 10.5px;
    line-height: 1.35;
}

.sf-password-hint,
.sf-submit-note {
    margin: 0;
    color: var(--grey-600);
    font-size: 11px;
    line-height: 1.45;
}

.sf-submit-note {
    text-align: center;
}

.sf-policy-check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-top: 2px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #f8fbff;
    color: var(--grey-700);
    font-size: 12.5px;
    line-height: 1.45;
}

.sf-policy-check input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--primary);
}

.sf-policy-check a {
    color: var(--primary-hover);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

.sf-policy-check a:hover {
    text-decoration: underline;
}

.sf-policy-check--attention {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(214, 67, 82, 0.12);
}

.sf-provider-choice {
    display: grid;
    gap: 8px;
}

.sf-actions + .sf-provider-choice {
    margin-top: 16px;
}

.sf-provider-choice p,
.sf-policy-confirmed p {
    margin: 0;
    color: var(--grey-600);
    font-size: 11px;
    line-height: 1.45;
}

.sf-google-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    width: 100%;
    padding: 0 16px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--ink-900);
    font: inherit;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.sf-google-button:hover {
    border-color: var(--primary);
    background: #f8fbff;
}

.sf-google-button:focus-visible,
.sf-provider-status a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.sf-google-button__mark,
.sf-provider-status__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px #d9e0ea;
    color: #4285f4;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.sf-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--grey-500);
    font-size: 10.5px;
    text-align: center;
}

.sf-divider::before,
.sf-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.sf-provider-status {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #c9ddfb;
    border-radius: 7px;
    background: #f5f9ff;
}

.sf-provider-status__mark {
    width: 24px;
    height: 24px;
}

.sf-provider-status strong {
    display: block;
    color: var(--ink-900);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
}

.sf-provider-status p {
    margin: 2px 0 0;
    color: var(--grey-700);
    font-size: 11px;
    line-height: 1.4;
}

.sf-provider-status a,
.sf-policy-confirmed a {
    color: var(--primary-hover);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}

.sf-provider-status a:hover,
.sf-policy-confirmed a:hover {
    text-decoration: underline;
}

.sf-policy-confirmed {
    padding: 9px 12px;
    border-left: 3px solid var(--primary);
    background: #f8fbff;
    color: var(--grey-700);
    font-size: 11px;
    line-height: 1.5;
}

.sf-field select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2363708a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

.sf-field input::placeholder {
    color: var(--grey-500);
}

.sf-field input:focus,
.sf-field select:focus {
    outline: none;
    border-color: var(--border-strong);
    box-shadow: var(--focus-ring);
}

/* ── Actions / buttons ── */
.sf-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.sf-btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

.sf-btn:hover {
    background: var(--primary-hover);
    color: #fff;
}

.sf-btn--ghost {
    background: #fff;
    color: var(--grey-900);
    border-color: var(--border);
}

.sf-btn--ghost:hover {
    background: var(--grey-100);
    color: var(--grey-900);
    border-color: var(--grey-400);
}

/* ── Turnstile ── */
.sf-turnstile {
    margin-top: 16px;
}

/* ── Alerts ── */
.sf-alert {
    padding: 11px 13px;
    margin-bottom: 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 12.5px;
    line-height: 1.5;
}

.sf-alert p {
    margin: 0;
}

.sf-alert p + p {
    margin-top: 4px;
}

.sf-alert--info {
    background: var(--blue-100);
    border-color: rgba(31, 111, 255, 0.16);
    color: var(--blue-800);
}

.sf-alert--error {
    background: var(--danger-bg);
    border-color: rgba(214, 67, 82, 0.18);
    color: var(--danger);
}

.sf-alert--success {
    background: var(--success-bg);
    border-color: rgba(17, 132, 91, 0.16);
    color: var(--success);
}

/* ── Follow-up verification steps ── */
.sf-step {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.sf-step__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-hover);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sf-step h2 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--ink-900);
}

.sf-step p {
    margin: 0 0 14px;
    color: var(--grey-700);
    font-size: 12.5px;
    line-height: 1.55;
}

/* ── Responsive ── */
@media (max-width: 880px) {
    .sf-container {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 480px;
    }

    .sf-title {
        font-size: 26px;
    }

    .sf-nav {
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .sf-form-grid {
        grid-template-columns: 1fr;
    }

    .sf-card {
        padding: 22px 18px;
    }

    .sf-nav a:not(.sf-login) {
        display: none;
    }

    .sf-provider-status {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .sf-provider-status a {
        grid-column: 2;
    }
}

/* =============================================================================
   Corrections to house standard
   ============================================================================= */

/* A filled pill reading "FREE PLAN" is a badge doing a heading's job, and it is
   the single most recognisable tell of a generated page. Rule 1.8: a badge has
   to mean something. This is an eyebrow, so it is set with type and states the
   fact rather than labelling itself. */
.sf-eyebrow {
    display: block;
    padding: 0;
    border-radius: 0;
    background: none;
    color: var(--hb-muted);
    font-size: var(--hb-t-eyebrow);
    font-weight: 620;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* The hint the placeholder used to carry, now permanent. */
.sf-field__hint {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--hb-muted);
}
