@font-face {
    font-family: "Fira Code";
    src: url("/static/fonts/FiraCode-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Fira Code";
    src: url("/static/fonts/FiraCode-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-muted: #eef3f7;
    --text: #111827;
    --muted: #5f6b7a;
    --line: #d8e0ea;
    --ink: #172033;
    --green: #0f766e;
    --green-dark: #115e59;
    --blue: #2563eb;
    --amber: #b45309;
    --danger: #dc2626;
    --danger-dark: #991b1b;
    --danger-soft: #fef2f2;
    --shadow: 0 24px 70px -45px rgba(17, 24, 39, 0.38);
}

body {
    font-family: "Fira Code", monospace;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
}

button,
a {
    font: inherit;
}

.landing {
    height: 100vh;
    overflow: hidden;
}

.page-stage {
    position: relative;
    z-index: 1;
    height: calc(100vh - 72px);
    width: 100%;
    overflow: hidden;
    perspective: 1200px;
}

.topbar {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand,
.nav-links,
.hero-actions,
.trust-row {
    display: flex;
    align-items: center;
}

.brand {
    gap: 0.65rem;
    color: var(--ink);
    font-weight: 600;
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    gap: 1.2rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--ink);
}

.hero-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    align-items: start;
    gap: clamp(2rem, 6vw, 5.5rem);
    padding: clamp(1.5rem, 7vh, 4.5rem) 0 4rem;
}

.hero-copy {
    max-width: 600px;
}

.eyebrow {
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    color: var(--ink);
    font-size: clamp(2.25rem, 4.7vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: 0;
    max-width: 12ch;
}

h2 {
    color: var(--ink);
    font-size: clamp(1.65rem, 3vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.hero-lead {
    max-width: 61ch;
    margin-top: 1.25rem;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.72rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    transition:
        transform 140ms ease,
        border-color 140ms ease,
        background-color 140ms ease;
}

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

.btn-primary {
    background: var(--green);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--green-dark);
}

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

.btn-secondary:hover {
    border-color: #a8b4c3;
}

.trust-row {
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.4rem;
}

.trust-row span {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f4fbf8);
    color: var(--green-dark);
    padding: 0.46rem 0.7rem 0.46rem 1.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow:
        0 10px 28px -24px rgba(15, 118, 110, 0.8),
        inset 0 0 0 1px rgba(15, 118, 110, 0.04);
}

.trust-row span::before {
    content: "";
    position: absolute;
    left: 0.65rem;
    top: 50%;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.14),
        0 0 14px rgba(34, 197, 94, 0.8);
    transform: translateY(-50%);
    animation: status-pulse 1600ms ease-in-out infinite;
}

.card-head,
.meter-label,
.timeline-row,
.faq-section {
    display: flex;
}

.scheduler-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(1rem, 2.4vw, 1.4rem);
    box-shadow: var(--shadow);
    max-width: 520px;
    justify-self: end;
}

.card-head,
.meter-label {
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.muted {
    color: var(--muted);
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
}

.card-head strong {
    color: var(--ink);
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.05;
}

.status-pill {
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
    padding: 0.45rem 0.62rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.status-danger {
    background: #fee2e2;
    color: var(--danger-dark);
}

.queue-meter {
    margin-top: 1.4rem;
}

.meter-label {
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 0.5rem;
}

.meter-label strong {
    color: var(--green);
}

.meter-label .danger-text {
    color: var(--danger);
}

.meter-track {
    height: 10px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface-muted);
}

.meter-track span {
    position: relative;
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--blue));
}

.meter-danger span {
    background: linear-gradient(90deg, var(--amber), var(--danger));
}

.meter-danger span::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 34%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    animation: pressure-sweep 2600ms ease-in-out infinite;
}

.timeline {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.timeline-row {
    gap: 0.85rem;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.8rem;
    background: #fbfdff;
}

.timeline-row.active {
    border-color: #99d5cc;
    background: #f0fdfa;
}

.timeline-row.angry {
    display: block;
    border-color: #fecaca;
    border-radius: 14px;
    background: #ffffff;
}

.timeline-row.angry.active {
    border-color: #f87171;
    background: var(--danger-soft);
}

.timeline-row span {
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 600;
    min-width: 5ch;
}

.timeline-row.angry span {
    display: block;
    min-width: 0;
    margin-bottom: 0.45rem;
    color: var(--danger);
}

.timeline-row p {
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.45;
}

.section-band {
    width: min(1180px, calc(100% - 32px));
    min-height: 100%;
    margin: 0 auto;
    padding: clamp(1.5rem, 7vh, 4.5rem) 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 1.6rem;
}

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

.section-actions {
    margin-top: 1.4rem;
}

.feature-card,
.price-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 1.2rem;
    box-shadow: 0 18px 48px -42px rgba(17, 24, 39, 0.5);
}

.feature-icon {
    display: inline-flex;
    margin-bottom: 1.5rem;
    color: var(--amber);
    font-size: 0.8rem;
    font-weight: 600;
}

.feature-card p,
.price-card p,
.faq-list p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.feature-card h3,
.price-card h3 {
    margin-bottom: 0.55rem;
}

.plan-name {
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.55rem;
}

.price-card {
    display: grid;
    align-content: start;
    gap: 0.8rem;
}

.price-card h3 {
    font-size: 2rem;
}

.price-card.featured {
    border-color: var(--green);
    box-shadow: 0 24px 60px -38px rgba(15, 118, 110, 0.65);
}

.price-card .btn {
    margin-top: 0.4rem;
}

.faq-section {
    width: min(1180px, calc(100% - 32px));
    min-height: 100%;
    margin: 0 auto;
    align-items: flex-start;
    gap: clamp(1.5rem, 5vw, 4rem);
    padding: clamp(1.5rem, 7vh, 4.5rem) 0 2rem;
}

.faq-section > div:first-child {
    flex: 0 0 min(380px, 100%);
}

.faq-list {
    flex: 1;
    display: grid;
    gap: 0.75rem;
}

details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 1rem;
}

summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 600;
}

details p {
    margin-top: 0.7rem;
}

.home {
    min-height: 100vh;
    padding: 1.25rem;
    display: grid;
    place-items: center;
}

.hero {
    width: min(640px, 100%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow);
    text-align: center;
}

.tag {
    display: inline-block;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

@keyframes status-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 3px rgba(34, 197, 94, 0.14),
            0 0 12px rgba(34, 197, 94, 0.65);
    }
    50% {
        box-shadow:
            0 0 0 6px rgba(34, 197, 94, 0.08),
            0 0 20px rgba(34, 197, 94, 0.95);
    }
}

@keyframes pressure-sweep {
    from {
        transform: translateX(-110%);
    }
    to {
        transform: translateX(310%);
    }
}

@keyframes page-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.page-transition {
    animation: page-in 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (max-width: 860px) {
    .topbar {
        min-height: auto;
        padding: 1rem 0;
        align-items: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
        row-gap: 0.5rem;
    }

    .hero-shell {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 1rem;
    }

    h1 {
        max-width: 12ch;
    }

    .scheduler-card {
        justify-self: stretch;
        max-width: none;
    }

    .feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .faq-section {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .topbar,
    .hero-shell,
    .section-band,
    .faq-section {
        width: min(100% - 24px, 1180px);
    }

    .brand span {
        font-size: 0.95rem;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.78rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .trust-row span,
    .timeline-row p {
        font-size: 0.76rem;
    }
}
