/* Guided sign-up (js/signup-flow.js): start.html, and the flow parts of
   auth.html, signup.html and dashboard.html. Uses the design-system tokens. */

.flow-steps {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    counter-reset: none;
}
.flow-step {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 10px;
    border-top: 3px solid #dfdacd;
    color: #8a8f9c;
    font-size: 12px;
    font-weight: 600;
}
.flow-step.is-done { border-top-color: #16233a; color: #16233a; }
.flow-step.is-on { border-top-color: #16233a; color: #16233a; }
.flow-step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    background: #ece8de;
    color: #5b6172;
}
.flow-step.is-on .flow-step-dot,
.flow-step.is-done .flow-step-dot { background: #16233a; color: #f6f4ef; }
.flow-step-label { line-height: 1.25; }
@media (max-width: 420px) {
    .flow-step:not(.is-on) .flow-step-label { display: none; }
}

/* Question summary */
.flow-question {
    border: 1px solid #dfdacd;
    background: #faf8f3;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 20px;
    text-align: left;
}
.flow-question-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.flow-question-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #5b6172;
}
.flow-question-edit { font-size: 13px; font-weight: 600; color: #16233a; text-decoration: underline; }
.flow-question-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #16233a;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.flow-question-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.flow-chip-static {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dfdacd;
    color: #333a4a;
}
.flow-question-note { margin: 10px 0 0; font-size: 13px; color: #2f6b4f; font-weight: 600; }

/* Reasons */
.flow-reasons { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 14px; }
.flow-reason { display: flex; gap: 12px; align-items: flex-start; }
.flow-reason-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #16233a;
    color: #f6f4ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.flow-reason-copy { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; color: #333a4a; }
.flow-reason-copy strong { color: #16233a; font-size: 15px; }

/* Side panel */
.flow-aside {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: left;
}
.flow-aside-title {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 21px;
    font-weight: 600;
    color: #16233a;
    margin: 0 0 12px;
}
.flow-aside-sub { margin: -6px 0 12px; font-size: 13px; color: #5b6172; }

.flow-scenario {
    background: #fff;
    border: 1px solid #dfdacd;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
.flow-scenario-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.flow-scenario-who { font-size: 13px; font-weight: 700; color: #16233a; }
.flow-scenario-tag {
    font-size: 11px;
    font-weight: 600;
    color: #5b6172;
    border: 1px solid #dfdacd;
    border-radius: 999px;
    padding: 1px 8px;
}
.flow-scenario-situation { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: #16233a; }
.flow-scenario-steps { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: #333a4a; }
.flow-scenario-steps li { margin-bottom: 3px; }

.flow-quote {
    margin: 0 0 10px;
    background: #fff;
    border-left: 3px solid #16233a;
    border-radius: 0 10px 10px 0;
    padding: 12px 14px;
}
.flow-quote blockquote { margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: #16233a; }
.flow-quote figcaption { font-size: 12px; color: #5b6172; }
.flow-quote figcaption strong { color: #16233a; }

/* Two columns on the sign-in and plan pages while in the flow */
.auth-page.flow-mode {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 40px;
    flex-wrap: wrap;
}
.auth-page.flow-mode .auth-card { flex: 0 1 440px; }
@media (max-width: 920px) {
    .auth-page.flow-mode { flex-direction: column; align-items: center !important; gap: 28px; }
}
.flow-auth-lede { text-align: left !important; }
.flow-secure-note {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    font-size: 12px;
    color: #5b6172;
}

/* start.html */
.flow-page {
    min-height: 100vh;
    background: #f6f4ef;
    padding: calc(var(--nav-height, 72px) + 28px) 16px 56px;
    font-family: "Instrument Sans", "Segoe UI", sans-serif;
    color: #16233a;
}
.flow-shell {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    gap: 40px;
    align-items: start;
}
@media (max-width: 920px) {
    .flow-shell { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .flow-shell .flow-aside { max-width: none; }
}
.flow-card {
    background: #fff;
    border: 1px solid #dfdacd;
    border-radius: 16px;
    padding: 28px 28px 24px;
}
@media (max-width: 520px) { .flow-card { padding: 22px 18px 20px; } }
.flow-eyebrow { font-size: 13px; font-weight: 600; color: #5b6172; margin: 0 0 6px; }
.flow-title {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(24px, 3.4vw, 32px);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 10px;
}
.flow-lede { font-size: 15px; line-height: 1.55; color: #333a4a; margin: 0 0 20px; }
.flow-label { display: block; font-size: 14px; font-weight: 700; margin: 18px 0 8px; }
.flow-label small { font-weight: 500; color: #5b6172; }
.flow-textarea, .flow-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfc9bb;
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    color: #16233a;
    background: #fff;
}
.flow-textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.flow-textarea:focus, .flow-input:focus { outline: 2px solid #16233a; outline-offset: 1px; border-color: #16233a; }
.flow-count { text-align: right; font-size: 12px; color: #8a8f9c; margin-top: 4px; }
.flow-error { color: #b3261e; font-size: 13px; margin: 6px 0 0; }
.flow-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-chip {
    border: 1px solid #cfc9bb;
    background: #fff;
    color: #16233a;
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
.flow-chip:hover { border-color: #16233a; }
.flow-chip[aria-pressed="true"] { background: #16233a; border-color: #16233a; color: #f6f4ef; }
.flow-chip:focus-visible { outline: 2px solid #16233a; outline-offset: 2px; }
.flow-actions { display: flex; gap: 12px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.flow-primary {
    background: #16233a;
    color: #f6f4ef;
    border: 0;
    border-radius: 10px;
    padding: 14px 22px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.flow-primary:hover { background: #0e1726; }
.flow-secondary {
    background: none;
    border: 0;
    color: #16233a;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 6px 2px;
}
.flow-fineprint { font-size: 12px; color: #5b6172; margin: 14px 0 0; line-height: 1.5; }
.flow-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.flow-suggest .flow-chip { font-size: 13px; padding: 6px 12px; }

/* Plan page while in the flow */
.flow-plan-intro {
    max-width: 640px;
    margin: 0 auto 20px;
    text-align: left;
}
.flow-value {
    border: 1px solid #dfdacd;
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
    color: #333a4a;
}
.flow-value strong { color: #16233a; }
.flow-plan-aside { max-width: 640px; margin: 28px auto 0; }
.flow-plan-aside .flow-aside { max-width: none; }

/* Thumbs-up share from in-app ratings */
.flow-rating {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid #dfdacd;
    border-radius: 12px;
    padding: 14px 16px;
}
.flow-rating-big {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: #2f6b4f;
}
.flow-rating-copy { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; color: #5b6172; }
.flow-rating-copy strong { font-size: 15px; color: #16233a; }
.flow-rating-copy strong i { color: #2f6b4f; margin-right: 2px; }
