/* SaaS Product Design — section-specific shapes (typography/spacing: STYLE-GUIDE.md) */

.sd-page {
    --sd-accent: #ab1e23;
    --sd-panel: #f4f4f5;
    --sd-ink: #52525b;
    --sd-muted: #71717a;
}

.dark .sd-page {
    --sd-panel: #323238;
    --sd-ink: #e4e4e7;
    --sd-muted: #a1a1aa;
}

/* Hero — in-app dashboard mockup */
.sd-dash {
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 11rem 1fr;
    min-height: 20rem;
}

.dark .sd-dash {
    background: #27272a;
    border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
    .sd-dash {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .sd-dash__sidebar {
        display: none;
    }
}

@media (min-width: 1024px) {
    .sd-dash {
        border-radius: 1.5rem;
        min-height: 24rem;
    }
}

.sd-dash__sidebar {
    background: #fafafa;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dark .sd-dash__sidebar {
    background: #323238;
    border-color: rgba(255, 255, 255, 0.08);
}

.sd-dash__logo {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.sd-dash__nav-item {
    font-size: 0.75rem;
    font-weight: 300;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    color: var(--sd-muted);
}

.sd-dash__nav-item--active {
    background: rgba(171, 30, 35, 0.08);
    color: var(--sd-accent);
    font-weight: 400;
}

.sd-dash__main {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .sd-dash__main {
        padding: 1.5rem 1.75rem;
    }
}

.sd-dash__metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.sd-dash__metric {
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--sd-panel);
}

.sd-dash__metric-label {
    font-size: 0.6875rem;
    font-weight: 300;
    color: var(--sd-muted);
    margin-bottom: 0.25rem;
}

.sd-dash__metric-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.sd-dash__metric-value {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1;
}

.sd-dash__metric-delta {
    font-size: 0.6875rem;
    font-weight: 400;
    color: #16a34a;
}

.sd-dash__chart {
    flex: 1;
    border-radius: 0.75rem;
    background: var(--sd-panel);
    padding: 1rem;
    min-height: 7rem;
    display: flex;
    flex-direction: column;
}

.sd-dash__chart-label {
    font-size: 0.6875rem;
    font-weight: 300;
    color: var(--sd-muted);
    margin-bottom: 0.75rem;
}

.sd-dash__chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.375rem;
    flex: 1;
}

.sd-dash__chart-bar {
    flex: 1;
    border-radius: 0.25rem 0.25rem 0 0;
    background: rgba(171, 30, 35, 0.15);
    min-height: 1rem;
}

.sd-dash__chart-bar:nth-child(3),
.sd-dash__chart-bar:nth-child(5),
.sd-dash__chart-bar:nth-child(7) {
    background: var(--sd-accent);
}

.sd-dash__findings {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1rem;
    margin-top: auto;
}

.dark .sd-dash__findings {
    border-color: rgba(255, 255, 255, 0.08);
}

.sd-dash__findings-label {
    font-size: 0.6875rem;
    font-weight: 300;
    color: var(--sd-muted);
    margin-bottom: 0.5rem;
}

.sd-dash__findings ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.sd-dash__findings li {
    font-size: 0.75rem;
    font-weight: 300;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.sd-dash__findings li::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: var(--sd-accent);
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.sd-hero-visual {
    padding-bottom: 0;
}

@media (min-width: 1024px) {
    .sd-hero-visual {
        padding-bottom: 1rem;
    }
}

/* Problem — dark quote band */
.sd-problem-band {
    border-radius: 1.5rem;
    background: #52525b;
    padding: 2.5rem 2rem;
}

.dark .sd-problem-band {
    background: #27272a;
}

@media (min-width: 768px) {
    .sd-problem-band {
        padding: 3.5rem 3rem;
    }
}

/* Scenarios — 3-up cards */
.sd-scenarios {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .sd-scenarios {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sd-scenario {
    border-radius: 1.25rem;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 14rem;
    transition: border-color 0.2s;
}

.dark .sd-scenario {
    background: #323238;
    border-color: rgba(255, 255, 255, 0.08);
}

.sd-scenario:hover {
    border-color: rgba(171, 30, 35, 0.35);
}

.sd-scenario__tag {
    display: inline-block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background: rgba(171, 30, 35, 0.08);
    color: var(--sd-accent);
    margin-bottom: 1rem;
    width: fit-content;
}

/* Surfaces — 3x2 grid with top accent */
.sd-surfaces {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .sd-surfaces {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sd-surface {
    border-radius: 1.25rem;
    padding: 1.5rem 1.5rem 1.75rem;
    background: var(--sd-panel);
    border-top: 3px solid var(--sd-accent);
    transition: transform 0.2s;
}

@media (min-width: 1024px) {
    .sd-surface:hover {
        transform: translateY(-3px);
    }
}

.sd-surface__title {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.sd-surface__detail {
    font-size: 0.8125rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--sd-muted);
}

/* Services — numbered rail */
.sd-services {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.dark .sd-services {
    border-color: rgba(255, 255, 255, 0.08);
}

.sd-service {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    align-items: start;
}

.dark .sd-service {
    background: #323238;
    border-color: rgba(255, 255, 255, 0.08);
}

.sd-service:last-child {
    border-bottom: none;
}

@media (min-width: 768px) {
    .sd-service {
        grid-template-columns: 4rem 1fr;
        padding: 1.75rem 2rem;
    }
}

.sd-service__num {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1;
    color: rgba(171, 30, 35, 0.35);
}

/* Process — horizontal steps */
.sd-process {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .sd-process {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sd-process__step {
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.dark .sd-process__step {
    background: #323238;
    border-color: rgba(255, 255, 255, 0.08);
}

.sd-process__step--active {
    border-color: rgba(171, 30, 35, 0.35);
    box-shadow: 0 0 0 1px rgba(171, 30, 35, 0.08);
}

.sd-process__step-num {
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sd-muted);
    margin-bottom: 0.75rem;
}

.sd-process__step--active .sd-process__step-num {
    color: var(--sd-accent);
}

/* Benefits — icon tiles */
.sd-benefits {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .sd-benefits {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sd-benefit {
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: #52525b;
    color: #fff;
    text-align: center;
}

.dark .sd-benefit {
    background: #3f3f46;
}

.sd-benefit__value {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Versus comparison */
.sd-versus {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .sd-versus {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

.sd-versus__col {
    border-radius: 1.25rem;
    padding: 1.75rem;
}

.sd-versus__col--generic {
    background: #fafafa;
    border: 1px dashed rgba(0, 0, 0, 0.12);
}

.dark .sd-versus__col--generic {
    background: #27272a;
}

.sd-versus__col--atm {
    background: #fff;
    border: 1px solid rgba(171, 30, 35, 0.2);
}

.dark .sd-versus__col--atm {
    background: #323238;
}

.sd-versus__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.sd-versus__list li {
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.5;
    padding-left: 1.25rem;
    position: relative;
}

.sd-versus__col--generic li::before {
    content: "—";
    position: absolute;
    left: 0;
    opacity: 0.4;
}

.sd-versus__col--atm li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: var(--sd-accent);
}

/* Results */
.sd-results {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .sd-results {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sd-result {
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--sd-panel);
}

.sd-result__metric {
    padding: 1.5rem 1.5rem 0;
}

.sd-result__metric-value {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--sd-accent);
}

.sd-result__metric-label {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--sd-muted);
    margin-top: 0.25rem;
}

.sd-result__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* Pricing split */
.sd-pricing-split {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .sd-pricing-split {
        grid-template-columns: 5fr 7fr;
        gap: 3rem;
    }
}

.sd-pricing-panel {
    border-radius: 1.5rem;
    background: var(--sd-panel);
    padding: 2rem;
}

.sd-pricing-panel__item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dark .sd-pricing-panel__item {
    border-color: rgba(255, 255, 255, 0.08);
}

.sd-pricing-panel__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sd-pricing-panel__item:first-child {
    padding-top: 0;
}

/* Deliverables dark band */
.sd-deliverables-band {
    border-radius: 1.5rem;
    background: #52525b;
    padding: 2.5rem 2rem;
}

.dark .sd-deliverables-band {
    background: #27272a;
}

.sd-deliverables {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .sd-deliverables {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem 2rem;
    }
}

.sd-deliverables__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.sd-deliverables__dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: var(--sd-accent);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

/* Testimonials */
.sd-voices {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .sd-voices {
        grid-template-columns: 1.2fr 1fr;
        align-items: stretch;
    }
}

.sd-voices__featured {
    border-radius: 1.5rem;
    padding: 2rem;
    background: #52525b;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 14rem;
}

.dark .sd-voices__featured {
    background: #27272a;
}

.sd-voices__stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sd-voices__card {
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: var(--sd-panel);
    flex: 1;
}

.sd-related-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.sd-related-pills a {
    display: inline-flex;
    padding: 0.625rem 1.125rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.dark .sd-related-pills a {
    border-color: rgba(255, 255, 255, 0.12);
}

.sd-related-pills a:hover {
    border-color: var(--sd-accent);
    background: rgba(171, 30, 35, 0.04);
}
