/* ==========================================================================
   Concrator Design System — Storefront variant

   Public-facing marketing/storefront surfaces (Marketplace landing page,
   services catalog, signup wizard, welcome wizard). Same dark brand as
   the rest of the platform — inherits every colour token from
   variables.css. Adds layout-specific classes that don't belong in the
   admin or account shells.
   ========================================================================== */

/* Public header — sticks to the top of every storefront page */
.public-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.public-header .brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary-text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.public-header nav a {
    color: var(--color-text-muted);
    margin-left: 1.5rem;
    text-decoration: none;
    transition: color 0.15s;
}

.public-header nav a:hover {
    color: var(--color-text);
}

.public-header nav .btn-primary,
.public-header nav .btn-secondary {
    margin-left: 1rem;
}

/* Storefront-specific button sizes (the base classes live in components.css) */
.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Hero — the centred heading + subtitle + CTA pair on the landing page */
.hero {
    text-align: center;
    padding: 5rem 2rem 4rem;
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Catalog — services grid on the landing page + full list on /services */
.catalog {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.catalog.wide {
    padding-top: 3rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.service-card h3 {
    margin: 0 0 0.5rem 0;
}

.service-card p {
    color: var(--color-text-muted);
}

.service-card .plan-line {
    color: var(--color-text-muted);
    margin: 0.75rem 0 0 0;
    font-size: 0.95rem;
}

.service-row {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

.service-row > header h2 {
    margin: 0 0 0.25rem 0;
}

.service-row > header p {
    color: var(--color-text-muted);
}

.plan-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.plan-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.plan-card h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.plan-card .price {
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.plan-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Tag pills (e.g. "Restricted — invitation only") */
.tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.tag-restricted {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.subscribe-form {
    margin: 0;
}

/* Welcome wizard (post-signup workspace creation) */
.welcome-main {
    max-width: 540px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.welcome-main h1 {
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.welcome-main p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.welcome-form label {
    display: block;
    margin: 1rem 0;
}

.welcome-form label > span {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--color-text-muted);
}

.welcome-form input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    margin-top: 0.25rem;
    font-size: 0.9375rem;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s;
}

.welcome-form input:focus {
    outline: none;
    border-color: var(--color-primary-text);
}

.welcome-form small {
    display: block;
    margin-top: 0.25rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.welcome-form code {
    background: var(--color-surface-hover);
    color: var(--color-text);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85em;
}

/* Footer */
.public-footer {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
}

/* Inline error banner (form-level) */
.error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-size: 0.9rem;
}
