.features-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.features-hero {
    text-align: center;
    margin-bottom: 30px;
}

.features-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 14px;
    text-shadow: 0 0 10px #4fc3ff66;
}

.features-hero p {
    color: #cfd6de;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 22px;
}

.features-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.features-jump a {
    color: #e8edf2;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 18px;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.25s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) {
    .features-jump a:hover {
        color: #fff;
        border-color: #4fc3ff;
        background: rgba(79, 195, 255, 0.15);
        box-shadow: 0 0 0 1px rgba(79, 195, 255, 0.25), 0 8px 22px -10px rgba(79, 195, 255, 0.9);
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .features-jump a:hover {
        transform: translateY(-2px);
    }
}

.features-jump a:active {
    transform: translateY(0);
}

.feature-section {
    margin-top: 60px;
    scroll-margin-top: 80px;
}

.feature-section h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    text-shadow: 0 0 8px #4fc3ff88;
}

/* the section a jump pill went to glows once, so the eye lands on it */
@media (prefers-reduced-motion: no-preference) {
    .feature-section:target h2 {
        animation: features-landed 1.6s ease-out 0.35s both;
    }
}

@keyframes features-landed {
    0% {
        color: inherit;
        text-shadow: 0 0 8px #4fc3ff88;
    }
    25% {
        color: #bfe9ff;
        text-shadow: 0 0 6px #4fc3ff, 0 0 28px #4fc3ffcc;
    }
    100% {
        color: inherit;
        text-shadow: 0 0 8px #4fc3ff88;
    }
}

.feature-intro {
    color: #cfd6de;
    line-height: 1.6;
    margin-bottom: 18px;
}

.feature-figure {
    margin: 0 0 22px;
}

.feature-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.4);
}

.feature-figure figcaption {
    color: #9aa7b4;
    font-size: 0.85rem;
    margin-top: 8px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 18px 20px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

@media (hover: hover) {
    .feature-card:hover {
        border-color: #4fc3ff;
        background: rgba(79, 195, 255, 0.12);
    }
}

.feature-name {
    font-weight: bold;
    margin-bottom: 6px;
}

.feature-text {
    color: #cfd6de;
    line-height: 1.5;
    font-size: 0.95rem;
}

.feature-note {
    margin-top: 16px;
    background: rgba(79, 195, 255, 0.12);
    border-left: 4px solid #4fc3ff;
    border-radius: 8px;
    padding: 14px 18px;
    line-height: 1.5;
}

.features-cta {
    text-align: center;
    margin: 60px 0 20px;
}

.features-cta-btn {
    display: inline-block;
    background: #4fc3ff;
    color: #0a1016;
    font-weight: bold;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(79, 195, 255, 0.25);
}

@media (max-width: 640px) {
    .features-hero h1 {
        font-size: 1.8rem;
    }

    .feature-section h2 {
        font-size: 1.6rem;
    }
}

.why-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.why-screen img,
.why-plain {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    display: block;
    border-radius: 12px;
    border: 8px solid #1c201b;
    box-sizing: border-box;
    image-rendering: pixelated;
}

.why-plain {
    background: #5a6654;
    color: #0a0d08;
    font-family: var(--font-code), 'Courier New', monospace;
    font-size: clamp(0.7rem, 1.6vw, 1rem);
    padding: 10px;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

.why-label {
    font-weight: bold;
    margin-bottom: 8px;
}

.why-screen--them .why-label {
    color: #9aa7b4;
}

.why-table-wrap {
    overflow-x: auto;
}

.why-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
}

.why-table th,
.why-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
}

.why-table thead th {
    color: #4fc3ff;
    font-size: 0.95rem;
}

.why-table tbody th span {
    display: block;
    font-weight: normal;
    color: #9aa7b4;
    font-size: 0.85rem;
    margin-top: 4px;
}

.why-table .yes {
    color: #6ee7a8;
    font-size: 1.3rem;
    font-weight: bold;
}

.why-table .no {
    color: #ff8a8a;
}

.why-shots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.why-shots figure {
    margin: 0;
}

.why-shots img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 8px solid #1c201b;
    box-sizing: border-box;
    image-rendering: pixelated;
}

.why-shots figcaption {
    color: #9aa7b4;
    font-size: 0.85rem;
    margin-top: 8px;
}

@media (max-width: 640px) {
    .why-compare,
    .why-shots {
        grid-template-columns: 1fr;
    }
}

/* ---------- Pictures: tap to see them large (components/ImageZoom.tsx) ----------
   Over the menu button (2000), under the toasts (9999). */
.zoomable {
    cursor: zoom-in;
}

.zoom {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 12px 16px;
    background: rgba(4, 9, 13, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: zoom-out;
    animation: zoom-fade 0.2s ease;
}

.zoom-figure {
    margin: 0;
    max-width: min(1400px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.zoom-img {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 150px);
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    animation: zoom-pop 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
}

/* the calculator screens: big square pixels, in their dark frame */
.zoom-img--pixelated {
    image-rendering: pixelated;
    border: 10px solid #1c201b;
}

.zoom figcaption {
    color: #c9d3dc;
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: center;
    max-width: 62ch;
}

.zoom figcaption a {
    color: #4fc3ff;
    margin-left: 4px;
    white-space: nowrap;
}

.zoom-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(15, 25, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e8edf2;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.zoom-close:focus-visible {
    outline: 2px solid #4fc3ff;
    outline-offset: 2px;
}

@keyframes zoom-fade {
    from { opacity: 0; }
}

@keyframes zoom-pop {
    from { opacity: 0; scale: 0.94; }
}

@media (prefers-reduced-motion: reduce) {
    .zoom,
    .zoom-img {
        animation: none;
    }
}
