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

.swd-page {
    --swd-accent: #ab1e23;
}

/* Hero browser frame */
.swd-hero-frame {
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.dark .swd-hero-frame {
    background: #323238;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
    .swd-hero-frame {
        border-radius: 1.5rem;
    }
}

.swd-hero-frame__chrome {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fafafa;
}

.dark .swd-hero-frame__chrome {
    background: #3f3f46;
    border-color: rgba(255, 255, 255, 0.08);
}

.swd-hero-frame__dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    background: #d4d4d8;
}

.dark .swd-hero-frame__dot:nth-child(1) { background: #71717a; }
.swd-hero-frame__dot:nth-child(1) { background: #fca5a5; }
.swd-hero-frame__dot:nth-child(2) { background: #fde047; }
.swd-hero-frame__dot:nth-child(3) { background: #86efac; }

.swd-hero-frame__url {
    flex: 1;
    margin-left: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 300;
    color: #71717a;
    text-align: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.04);
}

.dark .swd-hero-frame__url {
    color: #a1a1aa;
    background: rgba(255, 255, 255, 0.06);
}

.swd-hero-frame__viewport {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f4f4f5;
    overflow: hidden;
}

.dark .swd-hero-frame__viewport {
    background: #27272a;
}

.swd-hero-frame__viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.swd-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1rem;
}

@media (min-width: 1024px) {
    .swd-hero-chips {
        position: absolute;
        bottom: 0;
        right: 1.5rem;
        margin-top: 0;
        justify-content: flex-end;
    }
}

.swd-hero-chip {
    display: inline-flex;
    flex-direction: column;
    padding: 0.625rem 1rem;
    border-radius: 0.875rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    min-width: 5.5rem;
}

.dark .swd-hero-chip {
    background: #323238;
    border-color: rgba(255, 255, 255, 0.1);
}

.swd-hero-chip__value {
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--swd-accent);
}

.swd-hero-chip__label {
    font-size: 0.6875rem;
    font-weight: 300;
    color: #71717a;
    margin-top: 0.25rem;
}

.dark .swd-hero-chip__label {
    color: #a1a1aa;
}

/* Stall vs fix split */
.swd-compare {
    display: grid;
    gap: 1rem;
    border-radius: 1.5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .swd-compare {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
}

.swd-compare__col {
    padding: 2rem;
}

@media (min-width: 768px) {
    .swd-compare__col {
        padding: 2.5rem;
    }
}

.swd-compare__col--stall {
    background: #52525b;
    color: #fff;
}

.dark .swd-compare__col--stall {
    background: #3f3f46;
}

.swd-compare__col--fix {
    background: #f4f4f5;
}

.dark .swd-compare__col--fix {
    background: #27272a;
}

.swd-compare__label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    opacity: 0.7;
}

.swd-compare__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.swd-compare__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.5;
}

.swd-compare__icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
}

.swd-compare__col--stall .swd-compare__icon {
    background: rgba(255, 255, 255, 0.12);
}

.swd-compare__col--fix .swd-compare__icon {
    background: rgba(171, 30, 35, 0.12);
}

.swd-compare__icon svg {
    width: 0.5rem;
    height: 0.5rem;
}

.swd-compare__col--fix .swd-compare__icon svg {
    fill: var(--swd-accent);
}

/* Scenario bento */
.swd-bento {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .swd-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
    }

    .swd-bento__item:first-child {
        grid-row: span 2;
    }
}

.swd-bento__item {
    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: 10rem;
    transition: border-color 0.2s;
}

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

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

.swd-bento__item:first-child {
    background: #52525b;
    color: #fff;
    border-color: transparent;
}

.dark .swd-bento__item:first-child {
    background: #3f3f46;
}

.swd-bento__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(255, 255, 255, 0.12);
    margin-bottom: 1rem;
    width: fit-content;
}

.swd-bento__item:not(:first-child) .swd-bento__tag {
    background: #f4f4f5;
    color: #52525b;
}

.dark .swd-bento__item:not(:first-child) .swd-bento__tag {
    background: #3f3f46;
    color: #e4e4e7;
}

/* Strategy pillars — alternating rows */
.swd-pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.swd-pillar {
    display: grid;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    align-items: start;
}

.dark .swd-pillar {
    border-color: rgba(255, 255, 255, 0.08);
}

.swd-pillar:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 0;
}

.dark .swd-pillar:first-child {
    border-color: rgba(255, 255, 255, 0.08);
}

@media (min-width: 1024px) {
    .swd-pillar {
        grid-template-columns: 6rem 1fr 1fr;
        gap: 3rem;
        padding: 3rem 0;
    }

    .swd-pillar:nth-child(even) .swd-pillar__content {
        order: 2;
    }

    .swd-pillar:nth-child(even) .swd-pillar__quote {
        order: 3;
    }
}

.swd-pillar__step {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1;
    color: rgba(171, 30, 35, 0.2);
}

.swd-pillar__quote {
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    background: #f4f4f5;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1.6;
    font-style: italic;
}

.dark .swd-pillar__quote {
    background: #323238;
}

/* Page types scroll */
.swd-page-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.swd-page-types__pill {
    display: inline-flex;
    padding: 0.625rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.8125rem;
    font-weight: 300;
    background: #fff;
    white-space: nowrap;
}

.dark .swd-page-types__pill {
    background: #323238;
    border-color: rgba(255, 255, 255, 0.1);
}

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

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

.swd-result {
    border-radius: 1.25rem;
    overflow: hidden;
    background: #f4f4f5;
    display: flex;
    flex-direction: column;
}

.dark .swd-result {
    background: #323238;
}

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

.swd-result__metric-value {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--swd-accent);
}

.swd-result__metric-label {
    font-size: 0.75rem;
    font-weight: 300;
    color: #71717a;
    margin-top: 0.25rem;
}

.swd-result__body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
}

/* Benefits 2x2 */
.swd-benefits {
    display: grid;
    gap: 1rem;
}

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

.swd-benefit {
    padding: 1.75rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}

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

/* Industry ticker */
.swd-ticker-wrap {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.swd-ticker {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: swd-ticker 28s linear infinite;
}

.swd-ticker__item {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
}

.swd-ticker__item::after {
    content: "·";
    margin-left: 2rem;
    opacity: 0.35;
}

@keyframes swd-ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Agency comparison */
.swd-versus {
    display: grid;
    gap: 1rem;
}

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

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

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

.dark .swd-versus__col--generic {
    background: #27272a;
    border-color: rgba(255, 255, 255, 0.12);
}

.swd-versus__col--atm {
    background: #fff;
    border: 1px solid rgba(171, 30, 35, 0.2);
    box-shadow: 0 8px 24px rgba(171, 30, 35, 0.06);
}

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

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

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

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

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

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

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

.swd-pricing-factors {
    border-radius: 1.5rem;
    background: #52525b;
    color: #fff;
    padding: 2rem;
}

.dark .swd-pricing-factors {
    background: #27272a;
}

.swd-pricing-factors__item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.swd-pricing-factors__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.swd-pricing-factors__item:first-child {
    padding-top: 0;
}

.swd-pricing-factors a.link.link-secondary,
.swd-pricing-factors a.link.link-secondary .js-button-icon {
    color: rgba(255, 255, 255, 0.85);
}

/* Deliverables grid */
.swd-deliverables {
    display: grid;
    gap: 0.75rem;
}

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

.swd-deliverables__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 300;
    line-height: 1.45;
}

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

/* Process steps — vertical timeline on page bg */
.swd-process {
    display: grid;
    gap: 0;
    max-width: 42rem;
}

.swd-process__step {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1.25rem;
    padding-bottom: 2rem;
    position: relative;
}

.swd-process__step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 1.4375rem;
    top: 2.5rem;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.dark .swd-process__step:not(:last-child)::before {
    background: rgba(255, 255, 255, 0.1);
}

.swd-process__marker {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.swd-process__step--active .swd-process__marker {
    background: var(--swd-accent);
    border-color: var(--swd-accent);
    color: #fff;
}

/* Testimonials row */
.swd-voices-row {
    display: grid;
    gap: 1rem;
}

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

.swd-voice {
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: #f4f4f5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 11rem;
}

.dark .swd-voice {
    background: #323238;
}

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

.swd-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 .swd-related-pills a {
    border-color: rgba(255, 255, 255, 0.12);
}

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