:root {
    --blue: #1688d3;
    --blue-dark: #0b6ead;
    --blue-light: #2aa7e8;
    --ink: #3e4548;
    --muted: #687277;
    --paper: #ffffff;
    --soft: #f2f7fb;
    --line: #d8e5ec;
    --shape: #666b68;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #e7eef3;
}

body {
    position: relative;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(24px, 6vw, 72px) 0;
    color: #ffffff;
}

.brand {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    display: none;
}

.brand strong {
    display: block;
    font-size: 1.28rem;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.64rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 520px;
}

.site-nav a {
    padding: 5px 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover {
    color: #ffffff;
}

.hero {
    position: relative;
    min-height: 540px;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 150px clamp(24px, 6vw, 72px) 76px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(42, 167, 232, 0.34), rgba(11, 110, 173, 0.52)),
        linear-gradient(180deg, rgba(10, 38, 58, 0.14), rgba(10, 38, 58, 0.42)),
        url("assets/workshop2.png") center calc(45% - 150px) / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    top: -205px;
    right: -170px;
    width: min(94vw, 760px);
    height: 390px;
    border-radius: 0 0 52% 52%;
    background: var(--shape);
    transform: rotate(19deg);
    transform-origin: center;
    opacity: 0.48;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.eyebrow,
.section-kicker,
.status {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.8);
}

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

h1 {
    max-width: 520px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    line-height: 0.9;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.14;
    letter-spacing: 0;
}

h3 {
    margin: 10px 0;
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.2;
}

.lead {
    max-width: 560px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 2vw, 1.28rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 2px solid currentColor;
    border-radius: 0;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.button.primary {
    color: var(--blue-dark);
    background: #ffffff;
    border-color: #ffffff;
}

.button.secondary {
    color: #ffffff;
    background: transparent;
}

.band,
.section,
.split-section,
.support-section {
    padding: clamp(42px, 7vw, 76px) clamp(24px, 6vw, 72px);
}

.manual-page > .section {
    padding-top: 35px;
    padding-bottom: 35px;
}

.intro,
.split-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 6vw, 68px);
    border-bottom: 1px solid var(--line);
}

.intro {
    background: #ffffff;
}

.no-section-divider {
    border-bottom: 0;
}

.text-column,
.profile p,
.section-heading p,
.intro p {
    color: var(--muted);
    font-size: 1rem;
}

.text-column p:first-child,
.profile p:first-child {
    margin-top: 0;
}

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

.intro .section-kicker,
.section-heading .section-kicker {
    color: var(--blue);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.app-grid,
.donation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.app-grid-featured {
    grid-template-columns: minmax(0, 1fr);
}

.app-accordion {
    display: grid;
    gap: 14px;
    max-width: 980px;
}

.app-entry {
    display: grid;
    gap: 0;
}

.app-entry summary {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 6px 12px;
    align-items: center;
    min-height: 58px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--soft);
    cursor: pointer;
    list-style: none;
}

.app-entry summary::-webkit-details-marker {
    display: none;
}

.app-entry summary::after {
    content: "+";
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--blue-dark);
    font-size: 1.4rem;
    font-weight: 900;
}

.app-entry[open] summary::after {
    content: "−";
}

.app-entry summary span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    grid-row: 1 / span 2;
    color: #ffffff;
    background: var(--blue);
    font-size: 0.9rem;
    font-weight: 900;
}

.app-entry summary strong {
    font-size: 1rem;
}

.app-entry summary small {
    grid-column: 2;
    color: var(--muted);
    font-size: 0.86rem;
}

.app-entry .app-card {
    margin-top: 12px;
}

.app-card,
.donation-option {
    border: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
}

.app-card {
    padding: clamp(24px, 4vw, 38px);
    box-shadow: 0 8px 20px rgba(17, 83, 128, 0.07);
}

.app-card + .app-card {
    margin-top: 18px;
}

.app-card-wide {
    max-width: 980px;
}

.app-card p {
    color: var(--muted);
}

.app-icon,
.feature-list span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #ffffff;
    background: var(--blue);
    font-size: 0.9rem;
    font-weight: 900;
}

.status {
    margin-top: 20px;
    color: var(--blue);
}

.app-facts,
.feature-list {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.app-card-wide .app-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-card-wide .manual-file-list {
    grid-template-columns: 1fr;
}

.manual-file-type {
    color: var(--muted);
    font-style: italic;
    font-weight: 500;
}

.manual-console-animation {
    display: block;
    width: min(100%, 519px);
    height: auto;
    margin: 18px 0;
    border: 1px solid #101212;
    background: #060707;
}

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

.app-facts li,
.feature-list li {
    position: relative;
    min-height: 48px;
    padding: 13px 14px 13px 48px;
    border: 1px solid var(--line);
    color: var(--ink);
    background: var(--soft);
    font-size: 0.95rem;
    font-weight: 700;
}

.app-facts li::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    transform: translateY(-50%);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 14px;
}

.feature-list span {
    flex: 0 0 auto;
}

.idea-map {
    --idea-red: #d93636;
    --idea-green: #248a4b;
    --idea-blue: #1688d3;
    --idea-yellow: #d7a80d;
    position: relative;
    width: min(100%, 720px);
    min-height: 600px;
    margin: 34px auto 0;
}

.idea-section .idea-map {
    grid-column: 1 / -1;
}

.idea-map::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 75%;
    z-index: 0;
    width: min(100%, 820px);
    height: 200px;
    border-radius: 50%;
    background: #e6ecf1;
    transform: translate(-50%, -50%) rotate(-7deg);
}

.idea-map img {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: block;
    width: clamp(220px, 32vw, 320px);
    height: clamp(330px, 48vw, 480px);
    object-fit: cover;
    object-position: center top;
    transform: translate(-50%, -50%);
}

.idea-callout {
    position: absolute;
    z-index: 3;
    display: grid;
    width: clamp(142px, 17vw, 190px);
    height: clamp(94px, 10vw, 124px);
    place-items: center;
    border-radius: 58% 42% 51% 49% / 48% 56% 44% 52%;
    color: #ffffff;
    font-size: clamp(0.76rem, 1.1vw, 0.95rem);
    font-weight: 900;
    line-height: 1.12;
    text-align: center;
}

.idea-callout span {
    display: block;
    max-width: 82%;
}

.idea-callout-red {
    top: 28px;
    left: 100px;
    background: var(--idea-red);
    border-radius: 61% 39% 54% 46% / 45% 57% 43% 55%;
}

.idea-callout-green {
    top: 80px;
    right: 50px;
    background: var(--idea-green);
    border-radius: 43% 57% 47% 53% / 55% 44% 56% 45%;
}

.idea-callout-blue {
    bottom: 144px;
    left: 38px;
    background: var(--idea-blue);
    border-radius: 55% 45% 40% 60% / 48% 42% 58% 52%;
}

.idea-callout-yellow {
    right: 44px;
    bottom: 94px;
    background: var(--idea-yellow);
    border-radius: 46% 54% 58% 42% / 43% 55% 45% 57%;
}

.app-note {
    margin-top: 18px;
    padding: 18px;
    border-left: 5px solid var(--blue);
    background: var(--soft);
}

.app-note + .app-note {
    margin-top: 12px;
}

.app-note-background {
    border-left-color: var(--shape);
    background: #f6f6f3;
}

.app-note strong {
    display: block;
    margin-bottom: 6px;
    color: var(--blue-dark);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.app-note-background strong {
    color: var(--ink);
}

.app-note p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.app-note p + p {
    margin-top: 10px;
}

blockquote {
    margin: 16px 0 0;
    padding: 14px 16px;
    border-left: 4px solid var(--blue);
    color: var(--ink);
    background: #ffffff;
    font-weight: 800;
}

.app-card a {
    display: inline-flex;
    margin-top: 20px;
    color: var(--blue-dark);
    font-weight: 900;
    text-decoration: none;
}

.app-card a:hover,
.footer-links a:hover {
    text-decoration: underline;
}

.tool-entry-heading {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    align-items: center;
    column-gap: 150px;
    row-gap: 12px;
}

.tool-entry-heading h3 {
    display: flex;
    min-height: 44px;
    align-self: center;
    align-items: center;
    gap: 10px;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.tool-size-note {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid rgba(36, 138, 75, 0.35);
    color: #111111;
    background: rgba(36, 138, 75, 0.16);
    font-size: 0.72rem;
    font-style: italic;
    font-weight: 600;
}

.tool-size-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.tool-entry-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

@media (max-width: 720px) {
    .tool-entry-heading {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .tool-entry-heading h3 {
        white-space: normal;
    }
}

.app-card .button.primary {
    color: #ffffff;
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.app-card .button.secondary {
    color: var(--blue-dark);
    background: #ffffff;
}

.disabled-link {
    cursor: not-allowed;
    opacity: 0.58;
}

.support-section {
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%),
        var(--blue);
}

.support-section .section-kicker,
.support-section .section-heading p,
.support-section h2 {
    color: #ffffff;
}

.donation-option {
    display: grid;
    gap: 6px;
    min-height: 130px;
    align-content: center;
    padding: 22px;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    background: #ffffff;
}

.donation-option span {
    color: var(--blue-dark);
    font-size: 2rem;
    font-weight: 900;
}

.donation-option.highlighted {
    color: #ffffff;
    background: var(--shape);
    border-color: var(--shape);
}

.donation-option.highlighted span {
    color: #ffffff;
}

.support-thanks {
    margin: 30px 0 0;
    color: #bfeaff;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.support-thanks span {
    color: #bfeaff;
}

.profile {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 22px;
}

.profile-avatar {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    color: #ffffff;
    background: var(--blue);
    font-size: 1.2rem;
    font-weight: 900;
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    padding: 24px;
    overflow-y: auto;
    background: rgba(22, 34, 44, 0.68);
}

.legal-modal:target {
    display: grid;
    place-items: center;
}

.legal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.legal-dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: var(--blue);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.modal-close:hover {
    background: var(--blue-dark);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.legal-block {
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.legal-block h3 {
    margin-top: 0;
}

.legal-block p,
.legal-block address {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-style: normal;
}

.legal-block a {
    color: var(--blue-dark);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 22px clamp(24px, 6vw, 72px);
    color: #ffffff;
    background: var(--blue-dark);
}

.site-footer p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {
    body {
        width: 100%;
    }

    .site-header {
        flex-direction: column;
        gap: 14px;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero {
        min-height: 520px;
        background-position: center;
    }

    .hero::before {
        right: -260px;
        width: 760px;
    }

    .intro,
    .split-section {
        grid-template-columns: 1fr;
    }

    .app-grid,
    .donation-grid,
    .legal-grid,
    .app-card-wide .app-facts,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .idea-map {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        min-height: 0;
        margin-top: 28px;
    }

    .idea-map::before {
        display: none;
    }

    .idea-map img {
        position: static;
        grid-column: 1 / -1;
        justify-self: center;
        width: min(220px, 58vw);
        height: auto;
        transform: none;
    }

    .idea-callout {
        position: static;
        width: 100%;
        min-height: 86px;
        height: auto;
        padding: 14px;
        border-radius: 0;
    }

}

@media (min-width: 901px) {
    body {
        width: 75%;
        margin: 0 auto;
        box-shadow: 0 0 34px rgba(43, 67, 82, 0.18);
    }

    h1 {
        font-size: clamp(3rem, 4.6vw, 4.2rem);
    }

    h2 {
        font-size: clamp(1.5rem, 2vw, 1.85rem);
    }
}

@media (max-width: 560px) {
    .site-header {
        padding-top: 24px;
    }

    .site-nav {
        gap: 4px;
    }

    .site-nav a {
        padding-left: 0;
        padding-right: 10px;
        font-size: 0.8rem;
    }

    .hero {
        min-height: 510px;
        padding-top: 155px;
    }

    .hero::before {
        top: -245px;
        right: -385px;
        width: 780px;
        height: 390px;
    }

    .hero-actions,
    .button {
        width: 100%;
    }

    .profile,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .idea-map {
        grid-template-columns: 1fr;
    }
}
