/* ============================================
   Server Scout Marketing Website
   Self-contained stylesheet — no dashboard imports
   ============================================ */

/* 1. Variables + Reset + Base Typography
   ---------------------------------------- */
:root {
    --brand-primary: #0969da;
    --brand-primary-dark: #0550ae;
    --brand-primary-light: #ddf4ff;
    --brand-secondary: #1f883d;
    --brand-secondary-dark: #1a7f37;
    --text-heading: #1f2328;
    --text-body: #31363f;
    --text-muted: #656d76;
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --border-default: #d1d9e0;
    --color-success: #1a7f37;
    --color-warning: #9a6700;
    --color-danger: #d1242f;
    --color-teal: #0d9488;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: 0.2s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--brand-primary-dark);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { list-style: none; }

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-secondary);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
}

pre {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    background: #1f2328;
    color: #e6edf3;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1rem;
}

pre code {
    background: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
}

/* 2. Container + Section
   ---------------------------------------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

.section {
    padding: 5rem 0;
}

.section--gray {
    background: var(--bg-secondary);
}

.section--dark {
    background: var(--text-heading);
    color: #ffffff;
}

.section--dark h2,
.section--dark h3,
.section--dark p {
    color: #ffffff;
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section__header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-top: 0.75rem;
}

/* 3. Navigation
   ---------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
    border-bottom-color: var(--border-default);
    box-shadow: var(--shadow-sm);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav__logo img,
.nav__logo svg {
    height: 32px;
    width: auto;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__links a {
    color: var(--text-body);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
    color: var(--brand-primary);
}

.nav__ctas {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-default);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.nav__mobile.active {
    display: block;
}

.nav__mobile a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-body);
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--bg-secondary);
}

.nav__mobile a:last-child {
    border-bottom: none;
}

.nav__mobile .btn {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--brand-secondary);
    color: #ffffff;
    border-color: var(--brand-secondary);
}

.btn--primary:hover {
    background: var(--brand-secondary-dark);
    border-color: var(--brand-secondary-dark);
    color: #ffffff;
}

.btn--secondary {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
}

.btn--secondary:hover {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #ffffff;
}

.btn--outline {
    background: transparent;
    color: var(--text-body);
    border-color: var(--border-default);
}

.btn--outline:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
    color: var(--text-heading);
}

.btn--large {
    padding: 0.875rem 1.75rem;
    font-size: 1.0625rem;
}

.btn--white {
    background: #ffffff;
    color: var(--text-heading);
    border-color: #ffffff;
}

.btn--white:hover {
    background: var(--bg-secondary);
    color: var(--text-heading);
}

/* 4. Hero
   ---------------------------------------- */
.hero {
    padding: 5rem 0 4rem;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero__title {
    font-size: 3.25rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero__ctas {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero__illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__illustration svg,
.hero__illustration img {
    max-width: 100%;
    height: auto;
}

/* 5. Social proof bar
   ---------------------------------------- */
.social-proof {
    background: var(--bg-secondary);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}

.social-proof__text {
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* 6. Feature cards
   ---------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    background: var(--brand-primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--brand-primary);
    font-size: 1.5rem;
}

.feature-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card__desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* 7. How it works
   ---------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: step;
}

.step {
    text-align: center;
    position: relative;
    counter-increment: step;
}

.step__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.step__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step__desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.step__code {
    text-align: left;
    margin-top: 1rem;
}

/* 8. Dashboard preview
   ---------------------------------------- */
.dashboard-preview {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.dashboard-preview__bar {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-default);
}

.dashboard-preview__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-default);
}

.dashboard-preview__dot--red { background: #ff5f57; }
.dashboard-preview__dot--yellow { background: #ffbd2e; }
.dashboard-preview__dot--green { background: #28c840; }

.dashboard-preview__content {
    background: #1f2328;
    padding: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-preview__content img,
.dashboard-preview__content svg {
    max-width: 100%;
}

/* 9. Pricing card
   ---------------------------------------- */
.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--bg-primary);
    border: 2px solid var(--brand-primary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    position: relative;
}

.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-secondary);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.375rem 1.25rem;
    border-radius: 999px;
    white-space: nowrap;
}

.pricing-card__price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1;
    margin: 1.5rem 0 0.25rem;
}

.pricing-card__price span {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-card__period {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.pricing-card__extra {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.pricing-card__features {
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.pricing-card__features li::before {
    content: '✓';
    color: var(--brand-secondary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-card .btn {
    width: 100%;
}

.pricing-card__note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* 10. Pricing calculator
   ---------------------------------------- */
.calculator {
    max-width: 500px;
    margin: 3rem auto 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
}

.calculator__label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.calculator__input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.calculator__input {
    width: 100px;
    padding: 0.625rem;
    font-size: 1.25rem;
    font-family: var(--font-sans);
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-heading);
    transition: border-color var(--transition);
}

.calculator__input:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.calculator__result {
    font-size: 1.125rem;
    color: var(--text-body);
}

.calculator__result strong {
    font-size: 1.75rem;
    color: var(--brand-primary);
}

/* 11. Testimonials
   ---------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.testimonial-card__stars {
    color: #f59e0b;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card__quote {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-body);
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-card__name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-heading);
}

.testimonial-card__role {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* 12. FAQ accordion
   ---------------------------------------- */
.faq-list {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-default);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-default);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    text-align: left;
    gap: 1rem;
}

.faq-item__question:hover {
    color: var(--brand-primary);
}

.faq-item__chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.faq-item__question[aria-expanded="true"] .faq-item__chevron {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item__answer-inner {
    padding: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item__answer-inner a {
    color: var(--brand-primary);
}

/* 13. CTA banner
   ---------------------------------------- */
.cta-banner {
    background: var(--text-heading);
    padding: 5rem 0;
    text-align: center;
}

.cta-banner h2 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: #9198a1;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* 14. Footer
   ---------------------------------------- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-default);
    padding: 4rem 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__col-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.footer__col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9375rem;
    padding: 0.25rem 0;
    transition: color var(--transition);
}

.footer__col a:hover {
    color: var(--brand-primary);
}

.footer__bottom {
    border-top: 1px solid var(--border-default);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer__bottom a {
    color: var(--text-muted);
}

.footer__bottom a:hover {
    color: var(--brand-primary);
}

/* 15. Blog styles
   ---------------------------------------- */
.blog-list {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.blog-post-card {
    border-bottom: 1px solid var(--border-default);
    padding: 2rem 0;
}

.blog-post-card:first-child {
    padding-top: 0;
}

.blog-post-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-post-card__title a {
    color: var(--text-heading);
}

.blog-post-card__title a:hover {
    color: var(--brand-primary);
}

.blog-post-card__meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.blog-post-card__excerpt {
    font-size: 0.9375rem;
    color: var(--text-body);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.blog-post-card__link {
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Single post */
.post-body {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
}

.post-body h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.post-body__meta {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-default);
}

.post-body__content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.post-body__content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-body__content h3 {
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-body__content p {
    margin-bottom: 1.25rem;
}

.post-body__content ul,
.post-body__content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.post-body__content ul { list-style: disc; }
.post-body__content ol { list-style: decimal; }

.post-body__content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.post-body__content blockquote {
    border-left: 4px solid var(--brand-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
    font-style: italic;
}

.post-body__content img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.post-body__back {
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* Blog admin */
.admin-login {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
}

.admin-login h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.admin-panel {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-default);
    font-size: 0.9375rem;
}

.admin-table th {
    font-weight: 600;
    color: var(--text-heading);
    background: var(--bg-secondary);
}

.admin-table td a {
    font-weight: 500;
}

.admin-form {
    max-width: 700px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text-heading);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-body);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.15);
}

.form-group textarea {
    min-height: 300px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    resize: vertical;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
}

.status-badge--published {
    background: #dafbe1;
    color: var(--color-success);
}

.status-badge--draft {
    background: #fff8c5;
    color: var(--color-warning);
}

/* Blog pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-body);
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
    color: var(--text-heading);
}

.pagination .active {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
}

/* 16. Legal styles
   ---------------------------------------- */
.legal {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

.legal h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.legal__updated {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-default);
}

.legal h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.legal h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
}

.legal ul, .legal ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }

.legal li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

.legal a {
    color: var(--brand-primary);
}

/* 17. Cookie banner
   ---------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-heading);
    color: #e6edf3;
    padding: 1.25rem;
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner.active {
    display: block;
}

.cookie-banner__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner__text {
    font-size: 0.875rem;
    line-height: 1.5;
}

.cookie-banner__text a {
    color: #79c0ff;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* 18. Responsive breakpoints
   ---------------------------------------- */

/* Features page alternating sections */
.feature-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-default);
}

.feature-detail:last-child {
    border-bottom: none;
}

.feature-detail--reverse {
    direction: rtl;
}

.feature-detail--reverse > * {
    direction: ltr;
}

.feature-detail__content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.feature-detail__content p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.feature-detail__content ul {
    margin-top: 1rem;
}

.feature-detail__content li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.9375rem;
    color: var(--text-body);
}

.feature-detail__content li::before {
    content: '✓';
    color: var(--brand-secondary);
    font-weight: 700;
    flex-shrink: 0;
}

.feature-detail__visual {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-default);
    font-size: 0.9375rem;
}

.comparison-table th {
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-heading);
}

.comparison-table td:first-child {
    font-weight: 500;
}

.comparison-table tr.highlight {
    background: var(--brand-primary-light);
}

.comparison-table tr.highlight td {
    font-weight: 600;
    color: var(--brand-primary);
}

/* Feature checklist table (pricing page) */
.feature-checklist {
    max-width: 600px;
    margin: 3rem auto 0;
}

.feature-checklist__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-default);
    font-size: 0.9375rem;
}

.feature-checklist__check {
    color: var(--brand-secondary);
    font-weight: 700;
}

/* Page hero (inner pages) */
.page-hero {
    background: var(--bg-secondary);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-default);
}

.page-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Billing FAQ */
.billing-faq {
    max-width: 700px;
    margin: 0 auto;
}

/* Alert/message */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.alert--success {
    background: #dafbe1;
    color: var(--color-success);
    border: 1px solid #aceebb;
}

.alert--error {
    background: #ffebe9;
    color: var(--color-danger);
    border: 1px solid #ffcecb;
}

/* Table overflow wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero__title { font-size: 2.75rem; }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-detail--reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .section { padding: 3.5rem 0; }

    .hero { padding: 3rem 0; }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero__title { font-size: 2.25rem; }

    .hero__ctas {
        justify-content: center;
    }

    .hero__illustration {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .nav__links,
    .nav__ctas {
        display: none;
    }

    .nav__hamburger {
        display: flex;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .page-hero {
        padding: 3rem 0;
    }

    .page-hero h1 {
        font-size: 2.25rem;
    }

    .comparison-table {
        font-size: 0.8125rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.625rem 0.5rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .section { padding: 2.5rem 0; }

    .hero__title { font-size: 1.875rem; }
    .hero__subtitle { font-size: 1.0625rem; }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .btn--large {
        width: 100%;
    }

    .hero__ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero__ctas .btn {
        width: 100%;
    }

    .pricing-card__price {
        font-size: 2.75rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.8125rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }
}

/* 19. Utility classes
   ---------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.875rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
