/* ---------- schreibly design tokens ---------- */
/* Teal-leaning palette tuned for clear contrast on a near-white surface. */
:root {
    --schr-primary: #0EA98D;
    --schr-primary-hover: #0C927A;
    --schr-dark: #0B4F47;
    --schr-bg: #F7F8F7;
    --schr-surface: #FFFFFF;
    --schr-ink: #0E1A1A;
    --schr-ink-muted: #4A5A5A;
    --schr-border: #DDE3E1;
    --schr-shadow: 0 4px 16px rgba(11, 79, 71, 0.08);

    --schr-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
                  Arial, "Noto Sans", sans-serif;
}

html, body {
    font-family: var(--schr-font);
    background-color: var(--schr-bg);
    color: var(--schr-ink);
}

a, .btn-link {
    color: var(--schr-dark);
}

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

.btn-primary {
    color: #fff;
    background-color: var(--schr-primary);
    border-color: var(--schr-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--schr-primary-hover);
    border-color: var(--schr-primary-hover);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem rgba(14, 169, 141, 0.45);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem 1rem 1rem 3.7rem;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ---------- Marketing top nav ---------- */
.schr-topnav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--schr-surface);
    border-bottom: 1px solid var(--schr-border);
    padding: 0.75rem 1.25rem;
}

.schr-topnav-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.schr-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--schr-dark);
    text-decoration: none;
    letter-spacing: -0.01em;
}

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

.schr-nav-links {
    display: flex;
    gap: 1.25rem;
    flex: 1;
    justify-content: center;
}

.schr-nav-links a {
    color: var(--schr-ink);
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.schr-nav-links a:hover,
.schr-nav-links a.active {
    color: var(--schr-primary);
    background: rgba(14, 169, 141, 0.08);
}

.schr-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* CSS-only mobile toggle via <details>. */
.schr-mobile-toggle {
    display: none;
}

@media (max-width: 720px) {
    .schr-nav-links {
        display: none;
    }
    .schr-mobile-toggle {
        display: block;
        margin-left: auto;
    }
    .schr-mobile-toggle > summary {
        list-style: none;
        cursor: pointer;
        padding: 0.5rem 0.75rem;
        border: 1px solid var(--schr-border);
        border-radius: 6px;
        font-weight: 600;
    }
    .schr-mobile-toggle > summary::-webkit-details-marker {
        display: none;
    }
    .schr-mobile-panel {
        position: absolute;
        right: 1rem;
        top: 3.5rem;
        background: var(--schr-surface);
        border: 1px solid var(--schr-border);
        border-radius: 8px;
        box-shadow: var(--schr-shadow);
        padding: 0.5rem;
        min-width: 200px;
        display: flex;
        flex-direction: column;
    }
    .schr-mobile-panel a {
        padding: 0.5rem 0.75rem;
        text-decoration: none;
        color: var(--schr-ink);
        border-radius: 4px;
    }
    .schr-mobile-panel a:hover {
        background: rgba(14, 169, 141, 0.08);
        color: var(--schr-primary);
    }
}

/* ---------- User menu (auth dropdown) ---------- */
.schr-user-menu {
    position: relative;
}

.schr-user-menu > summary {
    list-style: none;
    cursor: pointer;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--schr-dark);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.schr-user-menu > summary::-webkit-details-marker {
    display: none;
}

.schr-user-menu[open] > summary {
    outline: 2px solid var(--schr-primary);
}

.schr-user-dropdown {
    position: absolute;
    right: 0;
    top: 2.75rem;
    background: var(--schr-surface);
    border: 1px solid var(--schr-border);
    border-radius: 8px;
    box-shadow: var(--schr-shadow);
    min-width: 220px;
    padding: 0.5rem;
    z-index: 20;
}

.schr-user-dropdown a,
.schr-user-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--schr-ink);
    background: transparent;
    border: none;
    font: inherit;
    cursor: pointer;
}

.schr-user-dropdown a:hover,
.schr-user-dropdown button:hover {
    background: rgba(14, 169, 141, 0.08);
    color: var(--schr-primary);
}

.schr-user-dropdown hr {
    margin: 0.35rem 0;
    border-color: var(--schr-border);
}

.schr-user-dropdown .schr-username {
    padding: 0.35rem 0.75rem 0.6rem;
    color: var(--schr-ink-muted);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--schr-border);
    margin-bottom: 0.35rem;
}

/* ---------- Marketing hero ---------- */
.schr-hero {
    padding: 4rem 1.25rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 880px) {
    .schr-hero {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.25rem;
        gap: 2rem;
    }
}

.schr-hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    color: var(--schr-dark);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.schr-hero .schr-lead {
    font-size: 1.15rem;
    color: var(--schr-ink-muted);
    margin-bottom: 1.75rem;
    max-width: 36rem;
}

.schr-hero-ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.schr-btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: transform 0.05s ease;
}

.schr-btn:active {
    transform: translateY(1px);
}

.schr-btn-primary {
    background: var(--schr-primary);
    color: #fff;
}

.schr-btn-primary:hover {
    background: var(--schr-primary-hover);
    color: #fff;
}

.schr-btn-ghost {
    color: var(--schr-dark);
    border-color: var(--schr-border);
    background: var(--schr-surface);
}

.schr-btn-ghost:hover {
    border-color: var(--schr-primary);
    color: var(--schr-primary);
}

/* Mock editor card in the hero. */
.schr-mock-editor {
    background: var(--schr-surface);
    border-radius: 14px;
    border: 1px solid var(--schr-border);
    box-shadow: var(--schr-shadow);
    padding: 1.5rem 1.5rem 1.25rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--schr-ink);
}

.schr-mock-editor-bar {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.schr-mock-editor-bar span {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--schr-border);
}

.schr-underline {
    text-decoration: underline wavy;
    text-underline-offset: 4px;
}

.schr-underline-grammar { text-decoration-color: #DC5A48; }
.schr-underline-style   { text-decoration-color: #E0A93B; }
.schr-underline-spell   { text-decoration-color: var(--schr-primary); }

.schr-mock-meta {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--schr-border);
    color: var(--schr-ink-muted);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
}

/* ---------- Sections (features / steps / pricing) ---------- */
.schr-section {
    padding: 3.5rem 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.schr-section-title {
    text-align: center;
    color: var(--schr-dark);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.schr-section-lead {
    text-align: center;
    color: var(--schr-ink-muted);
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.schr-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 880px) {
    .schr-feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .schr-feature-grid { grid-template-columns: 1fr; }
}

.schr-feature-card {
    background: var(--schr-surface);
    border: 1px solid var(--schr-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.15s ease;
}

.schr-feature-card:hover {
    border-color: var(--schr-primary);
}

.schr-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    background: rgba(14, 169, 141, 0.12);
    color: var(--schr-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.schr-feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: var(--schr-dark);
}

.schr-feature-card p {
    color: var(--schr-ink-muted);
    margin: 0;
    font-size: 0.95rem;
}

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

@media (max-width: 720px) {
    .schr-steps { grid-template-columns: 1fr; }
}

.schr-step {
    background: var(--schr-surface);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--schr-border);
}

.schr-step-num {
    display: inline-block;
    background: var(--schr-dark);
    color: #fff;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    text-align: center;
    line-height: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.schr-step h3 {
    font-size: 1.1rem;
    color: var(--schr-dark);
    margin-bottom: 0.35rem;
}

.schr-step p {
    color: var(--schr-ink-muted);
    margin: 0;
}

/* ---------- Pricing ---------- */
.schr-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
}

@media (max-width: 880px) {
    .schr-pricing-grid { grid-template-columns: 1fr; }
}

.schr-plan {
    background: var(--schr-surface);
    border: 1px solid var(--schr-border);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.schr-plan-highlight {
    border-color: var(--schr-primary);
    box-shadow: var(--schr-shadow);
    position: relative;
}

.schr-plan-highlight::before {
    content: "Most popular";
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--schr-primary);
    color: #fff;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.schr-plan-name {
    font-size: 1.1rem;
    color: var(--schr-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.schr-plan-price {
    font-size: 2rem;
    color: var(--schr-ink);
    font-weight: 700;
}

.schr-plan-period {
    color: var(--schr-ink-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.schr-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.schr-plan-features li {
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
    color: var(--schr-ink);
}

.schr-plan-features li::before {
    content: "✓";
    color: var(--schr-primary);
    position: absolute;
    left: 0;
    font-weight: 700;
}

.schr-plan-cta {
    text-align: center;
    width: 100%;
}

/* ---------- Blog ---------- */
.schr-blog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 720px) {
    .schr-blog-list { grid-template-columns: 1fr; }
}

.schr-blog-card {
    background: var(--schr-surface);
    border: 1px solid var(--schr-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.15s ease;
}

.schr-blog-card:hover {
    border-color: var(--schr-primary);
}

.schr-blog-card h3 {
    margin-top: 0;
    color: var(--schr-dark);
    font-size: 1.25rem;
}

.schr-blog-card h3 a {
    color: inherit;
    text-decoration: none;
}

.schr-blog-card-meta {
    color: var(--schr-ink-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.schr-blog-card-summary {
    color: var(--schr-ink);
}

.schr-blog-card-cta {
    margin-top: 0.75rem;
    display: inline-block;
    color: var(--schr-primary);
    font-weight: 600;
    text-decoration: none;
}

.schr-blog-card-cta:hover {
    text-decoration: underline;
}

.schr-blog-post {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.schr-blog-post h1 {
    color: var(--schr-dark);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.schr-blog-post-meta {
    color: var(--schr-ink-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.schr-blog-body h1,
.schr-blog-body h2,
.schr-blog-body h3 {
    color: var(--schr-dark);
    margin-top: 2rem;
}

.schr-blog-body p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

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

@media (max-width: 880px) {
    .schr-testimonials { grid-template-columns: 1fr; }
}

.schr-testimonial {
    background: var(--schr-surface);
    border: 1px solid var(--schr-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.schr-testimonial-quote {
    color: var(--schr-ink);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.schr-testimonial-author {
    color: var(--schr-ink-muted);
    font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.schr-footer {
    background: var(--schr-surface);
    border-top: 1px solid var(--schr-border);
    margin-top: 4rem;
}

.schr-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 720px) {
    .schr-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

.schr-footer h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--schr-ink-muted);
    margin-bottom: 0.75rem;
}

.schr-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.schr-footer li {
    padding: 0.25rem 0;
}

.schr-footer a {
    color: var(--schr-ink);
    text-decoration: none;
}

.schr-footer a:hover {
    color: var(--schr-primary);
}

.schr-footer-fineprint {
    border-top: 1px solid var(--schr-border);
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    color: var(--schr-ink-muted);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ---------- Team grid (about page) ---------- */
.schr-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 720px) {
    .schr-team-grid { grid-template-columns: 1fr 1fr; }
}

.schr-team-card {
    background: var(--schr-surface);
    border: 1px solid var(--schr-border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.schr-team-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--schr-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.schr-team-name {
    font-weight: 600;
    color: var(--schr-dark);
}

.schr-team-role {
    color: var(--schr-ink-muted);
    font-size: 0.9rem;
}
