/*
 * TASK-075 — shell + page-frame styles. Consumes the design-token CSS
 * custom properties emitted by SpecStep.Web.Theme.TokenCssEmitter
 * (loaded from /css/tokens.css). This file owns the shell layout
 * (top bar + left rail + main) plus shared page-frame utility
 * classes; per-surface styles colocate with the Razor components.
 */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: var(--text-14);
    line-height: var(--leading-normal, 1.5);
    -webkit-font-smoothing: antialiased;
}

/* ---- skip-to-content (TASK-081a) ---- */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: var(--space-8);
    z-index: 10000;
    padding: var(--space-8) var(--space-12);
    background: var(--accent-500);
    color: white;
    border-radius: var(--radius-4);
    font-weight: var(--weight-semibold);
    text-decoration: none;
}
.skip-to-content:focus { top: var(--space-8); }

/* ---- shell ---- */
.sf-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 56px 1fr;
    grid-template-areas:
        "topbar topbar"
        "rail   main";
    height: 100vh;
}

.sf-topbar {
    grid-area: topbar;
    display: flex;
    align-items: center;
    gap: var(--space-12);
    padding: 0 var(--space-16);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.sf-topbar__brand { display: flex; align-items: center; gap: var(--space-8); }
.sf-topbar__mark { font-size: var(--text-20); color: var(--accent-500); }
.sf-topbar__product { font-weight: var(--weight-semibold); }
.sf-topbar__version { color: var(--fg-subtle); font-size: var(--text-12); }
.sf-topbar__chips { display: flex; gap: var(--space-4); }
.sf-chip {
    padding: 2px var(--space-8);
    background: var(--bg-sunken);
    color: var(--fg-muted);
    border-radius: var(--radius-pill);
    font-size: var(--text-12);
}
.sf-topbar__spacer { flex: 1; }
.sf-topbar__actions { display: flex; align-items: center; gap: var(--space-8); }
.sf-iconbutton {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; color: var(--fg);
    border-radius: var(--radius-6); cursor: pointer;
}
.sf-iconbutton:hover { background: var(--bg-sunken); }
.sf-iconbutton:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; }
.sf-persona {
    display: inline-flex; align-items: center; gap: var(--space-8);
    padding: 4px var(--space-8); background: transparent; border: 0; cursor: pointer; color: var(--fg);
    border-radius: var(--radius-6);
}
.sf-persona:hover { background: var(--bg-sunken); }
.sf-persona__monogram {
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-500); color: white; border-radius: 50%;
    font-size: var(--text-12); font-weight: var(--weight-semibold);
}
.sf-persona__name { font-size: var(--text-14); }

.sf-rail {
    grid-area: rail;
    border-right: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: var(--space-12);
    overflow-y: auto;
}
.sf-rail__heading {
    font-size: var(--text-12);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--track-wide, 0.04em);
    color: var(--fg-subtle);
    margin: var(--space-8) var(--space-8) var(--space-12);
}
.sf-rail__items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.sf-rail__item {
    display: block; padding: var(--space-8) var(--space-12);
    color: var(--fg); text-decoration: none;
    border-radius: var(--radius-6);
    font-weight: var(--weight-medium);
}
.sf-rail__item:hover { background: var(--bg-sunken); }
.sf-rail__item.active {
    background: color-mix(in srgb, var(--accent-500) 12%, transparent);
    color: var(--accent-fg);
}
.sf-rail__item:focus-visible { outline: 2px solid var(--accent-500); outline-offset: -2px; }

.sf-main {
    grid-area: main;
    overflow-y: auto;
    padding: var(--space-32);
}
.sf-main:focus-visible { outline: none; }

/* ---- page frame ---- */
.sf-page__header { margin-bottom: var(--space-24); }
.sf-page__header h1 { font-size: var(--text-24); margin: 0 0 var(--space-4); }
.sf-page__subtitle { color: var(--fg-muted); margin: 0; }
.sf-page__placeholder {
    padding: var(--space-32);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-8);
    color: var(--fg-muted);
    text-align: center;
}
.sf-page__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-16); }
.sf-page__actions { display: flex; gap: var(--space-8); }

/* ---- buttons ---- */
.sf-btn {
    height: 32px;
    padding: 0 var(--space-12);
    border: 1px solid transparent;
    border-radius: var(--radius-6);
    font: inherit; font-weight: var(--weight-medium); font-size: 13px;
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.sf-btn--primary { background: var(--accent-500); color: white; }
.sf-btn--primary:hover { background: var(--accent-600); }
.sf-btn--ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.sf-btn--ghost:hover { background: var(--bg-sunken); }
.sf-btn:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; }

/* ---- workspace ---- */
.sf-workspace { display: flex; flex-direction: column; gap: var(--space-24); }

.sf-stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-16); }
.sf-stat-tile {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-8); padding: var(--space-16);
    display: flex; flex-direction: column; gap: var(--space-4);
}
.sf-stat-tile__caption { font-size: var(--text-12); color: var(--fg-subtle); font-weight: var(--weight-semibold); letter-spacing: 0.04em; }
.sf-stat-tile__value { font-size: var(--text-32); font-weight: var(--weight-semibold); color: var(--fg); }
.sf-stat-tile__value--small { font-size: 13px; font-weight: var(--weight-medium); line-height: 1.2; }
.sf-stat-tile__sub { font-size: var(--text-12); color: var(--fg-muted); }

/* ---- filter bar ---- */
.sf-filterbar { display: flex; align-items: center; gap: var(--space-12); }
.sf-search { position: relative; flex: 0 1 360px; }
.sf-search input {
    width: 100%; height: 36px; padding: 0 36px 0 var(--space-12);
    background: var(--bg-elevated); color: var(--fg);
    border: 1px solid var(--border); border-radius: var(--radius-6);
    font: inherit;
}
.sf-search input::placeholder { color: var(--fg-subtle); }
.sf-search__kbd {
    position: absolute; right: var(--space-8); top: 50%; transform: translateY(-50%);
    background: var(--bg-sunken); padding: 1px 6px; border-radius: var(--radius-4);
    font-size: var(--text-12); color: var(--fg-muted);
}
.sf-segmented {
    display: inline-flex; background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-6); padding: 2px; gap: 2px;
}
.sf-segmented__btn {
    padding: 4px var(--space-12); height: 28px;
    background: transparent; border: 0; border-radius: var(--radius-4);
    color: var(--fg-muted); cursor: pointer; font: inherit; font-size: 13px;
}
.sf-segmented__btn[aria-selected="true"] { background: var(--bg-sunken); color: var(--fg); font-weight: var(--weight-medium); }
.sf-filterbar__spacer { flex: 1; }

/* ---- generation list ---- */
.sf-genlist {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-8); overflow: hidden;
}
.sf-genlist__head, .sf-genrow {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 2.4fr 0.8fr 1fr 1fr 0.6fr;
    align-items: center;
    padding: 0 var(--space-16);
    gap: var(--space-12);
}
.sf-genlist__head {
    padding-top: var(--space-12); padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--border);
    font-size: var(--text-12); color: var(--fg-subtle); font-weight: var(--weight-semibold); letter-spacing: 0.04em;
}
.sf-genrow {
    padding-top: var(--space-12); padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    transition: background var(--motion-duration-fast) var(--motion-easing-out);
}
.sf-genrow:last-child { border-bottom: 0; }
.sf-genrow:hover { background: var(--bg-sunken); }
.sf-genrow--pulse {
    animation: sf-row-pulse var(--motion-duration-slow) var(--motion-easing-emphatic);
    background: color-mix(in srgb, var(--accent-500) 8%, transparent);
}
@keyframes sf-row-pulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-500) 50%, transparent); }
    60%  { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent-500) 0%, transparent); }
    100% { box-shadow: 0 0 0 0 transparent; }
}
.sf-cell--right { text-align: right; }
.sf-cell--cost { font-variant-numeric: tabular-nums; font-weight: var(--weight-medium); }
.sf-cell--actions { display: flex; gap: 4px; justify-content: flex-end; }
.sf-cell__title { font-weight: var(--weight-semibold); }
.sf-cell__sub { color: var(--fg-muted); font-size: var(--text-12); }
.sf-cell__sub--inline { display: block; margin-top: 2px; }

/* ---- progress bar ---- */
.sf-progress {
    position: relative; height: 4px; background: var(--bg-sunken);
    border-radius: var(--radius-pill); overflow: hidden;
}
.sf-progress__bar {
    position: absolute; top: 0; left: 0; height: 100%;
    background: var(--accent-500);
    transition: width var(--motion-duration-base) var(--motion-easing-out);
}

/* ---- state pill ---- */
.sf-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px var(--space-8);
    border-radius: var(--radius-pill);
    font-size: var(--text-12);
    font-weight: var(--weight-medium);
    color: var(--state-fg, var(--fg));
    background: var(--state-bg, var(--bg-sunken));
}
.sf-pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sf-pill--queued     { --state-fg: var(--state-queued-fg);     --state-bg: var(--state-queued-bg); }
.sf-pill--drafting   { --state-fg: var(--state-drafting-fg);   --state-bg: var(--state-drafting-bg); }
.sf-pill--reviewing  { --state-fg: var(--state-reviewing-fg);  --state-bg: var(--state-reviewing-bg); }
.sf-pill--fresheyes  { --state-fg: var(--state-fresheyes-fg);  --state-bg: var(--state-fresheyes-bg); }
.sf-pill--assembling { --state-fg: var(--state-assembling-fg); --state-bg: var(--state-assembling-bg); }
.sf-pill--delivering { --state-fg: var(--state-delivering-fg); --state-bg: var(--state-delivering-bg); }
.sf-pill--complete   { --state-fg: var(--state-complete-fg);   --state-bg: var(--state-complete-bg); }
.sf-pill--failed     { --state-fg: var(--state-failed-fg);     --state-bg: var(--state-failed-bg); }
.sf-pill--paused     { --state-fg: var(--state-paused-fg);     --state-bg: var(--state-paused-bg); }

/* ---- project type badge ---- */
.sf-typebadge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px var(--space-8);
    border-radius: var(--radius-4);
    font-size: var(--text-12); font-weight: var(--weight-medium);
    color: var(--type-fg); background: color-mix(in srgb, var(--type-fg) 12%, transparent);
}
.sf-typebadge__icon { font-size: 14px; line-height: 1; }
.sf-typebadge--web-app           { --type-fg: var(--type-web-app); }
.sf-typebadge--mobile-app        { --type-fg: var(--type-mobile-app); }
.sf-typebadge--mobile-game       { --type-fg: var(--type-mobile-game); }
.sf-typebadge--desktop-app       { --type-fg: var(--type-desktop-app); }
.sf-typebadge--browser-extension { --type-fg: var(--type-browser-extension); }
.sf-typebadge--ai-agent          { --type-fg: var(--type-ai-agent); }
.sf-typebadge--ai-tool           { --type-fg: var(--type-ai-tool); }

/* ---- empty state ---- */
.sf-empty { padding: var(--space-32); text-align: center; color: var(--fg-muted); }

/* ---- interview surface ---- */
.sf-interview {
    display: grid;
    grid-template-columns: 1fr 320px;
    grid-template-rows: 1fr auto;
    grid-template-areas:
        "convo side"
        "composer side";
    gap: var(--space-24);
    height: 100%;
    /* The convo column scrolls independently; composer sticks to the
       bottom of the convo column. The side panel is full-height. */
}
.sf-conversation { grid-area: convo; max-width: 880px; width: 100%; margin: 0 auto; overflow-y: auto; }
.sf-sidepanel    { grid-area: side;
    border-left: 1px solid var(--border);
    padding-left: var(--space-16);
    display: flex; flex-direction: column; gap: var(--space-24);
    overflow-y: auto;
}
.sf-composer     { grid-area: composer;
    position: sticky; bottom: 0; background: var(--bg);
    padding-top: var(--space-12);
    display: flex; gap: var(--space-8); align-items: flex-end;
    max-width: 880px; width: 100%; margin: 0 auto;
}
.sf-composer__input {
    flex: 1; resize: none; min-height: 44px;
    padding: var(--space-8) var(--space-12);
    background: var(--bg-elevated); color: var(--fg);
    border: 1px solid var(--border); border-radius: var(--radius-6);
    font: inherit;
}
.sf-composer__input:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 1px; }

.sf-turns { list-style: none; padding: 0; margin: 0 0 var(--space-24); display: flex; flex-direction: column; gap: var(--space-12); }
.sf-turn { display: flex; gap: var(--space-12); }
.sf-turn--user { flex-direction: row-reverse; text-align: right; }
.sf-turn__avatar {
    flex: 0 0 32px; width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--accent-500); color: white;
    font-size: var(--text-12); font-weight: var(--weight-semibold);
}
.sf-turn--agent .sf-turn__avatar { background: var(--bg-sunken); color: var(--fg); }
.sf-turn__bubble { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-12); padding: var(--space-12) var(--space-16); max-width: 640px; }
.sf-turn--user .sf-turn__bubble { background: color-mix(in srgb, var(--accent-500) 12%, var(--bg-elevated)); }
.sf-turn__meta { display: flex; gap: var(--space-8); align-items: baseline; margin-bottom: 4px; }
.sf-turn__author { font-weight: var(--weight-semibold); font-size: var(--text-12); }
.sf-turn__time { color: var(--fg-subtle); font-size: var(--text-12); font-variant-numeric: tabular-nums; }
.sf-turn__body { color: var(--fg); line-height: var(--leading-snug); white-space: pre-wrap; }

.sf-completion-card {
    background: var(--bg-elevated); border: 1px solid var(--border-strong);
    border-radius: var(--radius-12); padding: var(--space-24);
    box-shadow: var(--shadow-2);
    display: flex; flex-direction: column; gap: var(--space-16);
}
.sf-completion-card__title { margin: 0; color: var(--accent-fg); font-size: var(--text-20); }
.sf-completion-card__lede  { margin: 0; color: var(--fg-muted); }
.sf-completion-card__actions { display: flex; gap: var(--space-8); justify-content: flex-end; }

.sf-profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-12); border: 0; padding: 0; margin: 0; }
.sf-profiles__legend { font-size: var(--text-12); color: var(--fg-subtle); font-weight: var(--weight-semibold); letter-spacing: 0.04em; padding: 0; margin-bottom: var(--space-8); }
.sf-profile { display: block; padding: var(--space-12); border: 1px solid var(--border); border-radius: var(--radius-8); cursor: pointer; }
.sf-profile input { position: absolute; opacity: 0; pointer-events: none; }
.sf-profile--selected { border-color: var(--accent-500); background: color-mix(in srgb, var(--accent-500) 6%, transparent); }
.sf-profile__title { font-weight: var(--weight-semibold); }
.sf-profile__sub { font-size: var(--text-12); color: var(--fg-muted); margin-top: 2px; }
.sf-profile__cost { font-size: var(--text-12); color: var(--fg-subtle); margin-top: var(--space-8); font-variant-numeric: tabular-nums; }

.sf-sidepanel__section { display: flex; flex-direction: column; gap: var(--space-8); }
.sf-sidepanel__heading { font-size: var(--text-12); color: var(--fg-subtle); font-weight: var(--weight-semibold); letter-spacing: 0.04em; margin: 0; }
.sf-sidepanel__caption { color: var(--fg-muted); font-size: var(--text-12); margin: 0; }
.sf-doclist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.sf-doclist__item { display: flex; justify-content: space-between; padding: 4px var(--space-8); border-radius: var(--radius-4); background: var(--bg-sunken); font-size: var(--text-13, 13px); }
.sf-doclist__redacted { color: var(--fg-subtle); font-size: var(--text-12); }
.sf-summary { padding-left: var(--space-16); margin: 0; color: var(--fg); }
.sf-summary li { margin-bottom: 4px; }

/* ---------------------------------------------------------------------
   TASK-095 + TASK-104 — Source-control + cost-dashboard helpers.
   --------------------------------------------------------------------- */

.sf-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-8);
    padding: var(--space-16);
    background: var(--bg-elevated);
    margin-bottom: var(--space-16);
    display: flex; flex-direction: column; gap: var(--space-8);
}
.sf-card__title { font-weight: var(--weight-semibold); font-size: var(--text-16); }
.sf-card__sub   { color: var(--fg-muted); margin: 0; font-size: var(--text-14, 14px); }
.sf-card__actions { display: flex; gap: var(--space-8); align-items: center; }

.sf-fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius-8);
    padding: var(--space-16);
    margin-top: var(--space-16);
}
.sf-fieldset legend { font-weight: var(--weight-semibold); padding: 0 var(--space-8); }
.sf-fieldset[disabled] { opacity: 0.6; }
.sf-fieldset[disabled] .sf-input,
.sf-fieldset[disabled] .sf-btn { pointer-events: none; }

.sf-label { display: block; margin-top: var(--space-12); font-size: var(--text-13, 13px); font-weight: var(--weight-semibold); color: var(--fg); }
.sf-help  { font-size: var(--text-12); color: var(--fg-muted); margin: 4px 0 0; }

.sf-checkbox-row { display: flex; align-items: center; gap: var(--space-8); margin-top: var(--space-12); cursor: pointer; }
.sf-checkbox-row input { margin: 0; }

.sf-subsection { margin-top: var(--space-24); }
.sf-subsection__title { font-size: var(--text-16); font-weight: var(--weight-semibold); margin: 0 0 4px; }
.sf-subsection__sub   { color: var(--fg-muted); font-size: var(--text-13, 13px); margin: 0 0 var(--space-12); }

.sf-table { width: 100%; border-collapse: collapse; font-size: var(--text-13, 13px); }
.sf-table th, .sf-table td {
    padding: var(--space-8); border-bottom: 1px solid var(--border); text-align: left;
}
.sf-table th { font-size: var(--text-12); color: var(--fg-subtle); font-weight: var(--weight-semibold); letter-spacing: 0.04em; }
.sf-table__num { text-align: right; font-variant-numeric: tabular-nums; }

/* Phase 7 — "Coming soon" banner shown above the three-pane shell while
   the UI is being wired to the backend. Remove this rule + the banner
   element in MainLayout.razor when Phase 7 ships. */
.sf-coming-soon-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--accent-default, #ff6a00);
  color: #ffffff;
  font: 600 0.875rem/1.2 system-ui, -apple-system, sans-serif;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* Push the shell down by the banner height so nothing's hidden under it. */
.sf-coming-soon-banner + .sf-shell {
  padding-top: 2.25rem;
}

/* Phase 7 Session 1 — empty-state CTA used when the user has no
   generations yet. Shows a friendly hero panel with a primary button. */
.sf-empty--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem 2rem;
  border: 1px solid var(--color-border-subtle, #e5e7eb);
  border-radius: 0.75rem;
  background: var(--color-surface-1, #ffffff);
}
.sf-empty--cta strong { font-size: 1.25rem; font-weight: 600; }
.sf-empty--cta p { max-width: 32rem; color: var(--color-text-secondary, #6b7280); }

/* ---------------------------------------------------------------------
   Phase 8 Session A — Marketing layout (Landing / Privacy / Terms /
   Pricing when anonymous). Slim header + hero/sections + footer.
   No left rail, no workspace shell.
   --------------------------------------------------------------------- */

.sf-marketing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--fg);
}

.sf-marketing__header {
    display: flex;
    align-items: center;
    gap: var(--space-16);
    padding: var(--space-16) var(--space-24);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.sf-marketing__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    text-decoration: none;
    color: var(--fg);
    font-weight: var(--weight-semibold);
}
.sf-marketing__mark { font-size: var(--text-20); color: var(--accent-500); }
.sf-marketing__product { font-size: var(--text-16); }
.sf-marketing__nav { display: flex; gap: var(--space-16); margin-left: auto; }
.sf-marketing__navlink {
    color: var(--fg-muted);
    text-decoration: none;
    font-weight: var(--weight-medium);
}
.sf-marketing__navlink:hover { color: var(--fg); }

.sf-marketing__main {
    flex: 1;
    padding: var(--space-48) var(--space-24);
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
}
.sf-marketing__main:focus-visible { outline: none; }

.sf-marketing__footer {
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: var(--space-24);
    margin-top: var(--space-48);
}
.sf-marketing__footer-row {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
    flex-wrap: wrap;
}
.sf-marketing__footer-copyright { color: var(--fg-muted); font-size: var(--text-13, 13px); }
.sf-marketing__footer-nav { display: flex; gap: var(--space-16); }
.sf-marketing__footer-nav a { color: var(--fg-muted); text-decoration: none; font-size: var(--text-13, 13px); }
.sf-marketing__footer-nav a:hover { color: var(--fg); }

/* ---- hero ---- */
.sf-hero {
    padding: var(--space-48) 0 var(--space-32);
    text-align: center;
}
.sf-hero__headline {
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-tight, 1.15);
    letter-spacing: var(--track-tight, -0.01em);
    margin: 0 auto var(--space-16);
    max-width: 720px;
}
.sf-hero__subhead {
    font-size: var(--text-16);
    line-height: var(--leading-snug, 1.4);
    color: var(--fg-muted);
    max-width: 640px;
    margin: 0 auto var(--space-24);
}
.sf-hero__cta {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

.sf-btn--large {
    height: 44px;
    padding: 0 var(--space-24);
    font-size: var(--text-16);
}

/* ---- features ---- */
.sf-section-heading {
    font-size: var(--text-24);
    text-align: center;
    margin: var(--space-48) 0 var(--space-24);
}
.sf-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-24);
    margin-bottom: var(--space-48);
}
.sf-feature {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-12);
    padding: var(--space-24);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}
.sf-feature__icon {
    font-size: 32px;
    line-height: 1;
}
.sf-feature__title {
    font-size: var(--text-16);
    font-weight: var(--weight-semibold);
    margin: 0;
}
.sf-feature__body {
    color: var(--fg-muted);
    line-height: var(--leading-snug, 1.4);
    margin: 0;
}
.sf-feature code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-sunken);
    padding: 1px 6px;
    border-radius: var(--radius-4);
}

/* ---- sign-in section ---- */
.sf-signin {
    padding: var(--space-32) 0 var(--space-48);
    text-align: center;
}
.sf-signin__lede {
    color: var(--fg-muted);
    margin: 0 auto var(--space-24);
    max-width: 540px;
}
.sf-signin__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    max-width: 360px;
    margin: 0 auto var(--space-16);
}
.sf-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-12);
    padding: var(--space-12) var(--space-16);
    background: var(--bg-elevated);
    color: var(--fg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-8);
    font: inherit;
    font-weight: var(--weight-medium);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--motion-duration-fast) var(--motion-easing-out);
    width: 100%;
    justify-content: center;
}
.sf-signin-btn:hover:not([disabled]) { background: var(--bg-sunken); }
.sf-signin-btn:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 2px; }
.sf-signin-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.sf-signin-btn__icon {
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-weight: var(--weight-semibold);
}
.sf-signin-btn--google .sf-signin-btn__icon  { background: #4285F4; color: white; }
.sf-signin-btn--github .sf-signin-btn__icon  { background: #24292e; color: white; }
.sf-signin-btn--microsoft .sf-signin-btn__icon { background: #2F2F2F; color: white; }
.sf-signin__terms {
    color: var(--fg-subtle);
    font-size: var(--text-12);
    margin: 0 auto;
    max-width: 540px;
}
.sf-signin__terms a { color: var(--fg-muted); text-decoration: underline; }

/* ---- prose (Privacy / Terms / written marketing pages) ---- */
.sf-prose {
    max-width: 720px;
    margin: 0 auto;
    line-height: var(--leading-normal, 1.5);
}
.sf-prose h1 { font-size: var(--text-32); margin: 0 0 var(--space-8); }
.sf-prose h2 { font-size: var(--text-20); margin: var(--space-32) 0 var(--space-12); }
.sf-prose__updated { color: var(--fg-subtle); font-size: var(--text-13, 13px); margin: 0 0 var(--space-24); }
.sf-prose ul { padding-left: var(--space-24); }
.sf-prose li { margin-bottom: 6px; color: var(--fg-muted); }
.sf-prose a { color: var(--accent-fg); }

/* Phase 8 Session E — Pricing page styles. */
.sf-pricing {
    max-width: 1080px;
    margin: 0 auto;
    padding: var(--space-32) var(--space-24);
}
.sf-pricing__header { text-align: center; margin-bottom: var(--space-32); }
.sf-pricing__header h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 var(--space-8); }
.sf-pricing__subhead { color: var(--fg-muted); margin: 0 auto; max-width: 540px; }
.sf-pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-24);
    margin-bottom: var(--space-24);
}
.sf-pricing-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-12);
    padding: var(--space-24);
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}
.sf-pricing-card--featured {
    border-color: var(--accent-500);
    box-shadow: var(--shadow-2);
}
.sf-pricing-card--current {
    border-width: 2px;
    border-color: var(--accent-fg);
}
.sf-pricing-card__name {
    margin: 0;
    font-size: var(--text-20);
    font-weight: var(--weight-semibold);
}
.sf-pricing-card__price { display: flex; align-items: baseline; gap: 4px; margin: 0; }
.sf-pricing-card__price-value { font-size: var(--text-32); font-weight: var(--weight-semibold); }
.sf-pricing-card__price-unit { color: var(--fg-muted); }
.sf-pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--fg);
    font-size: var(--text-14);
}
.sf-pricing-card__features li::before {
    content: '✓ ';
    color: var(--accent-fg);
    font-weight: var(--weight-semibold);
}
.sf-pricing-card__cta { margin-top: auto; display: flex; flex-direction: column; }
.sf-pricing-card__cta .sf-btn { width: 100%; height: 40px; }
.sf-pricing__footnote { text-align: center; color: var(--fg-muted); font-size: var(--text-13, 13px); }
