﻿/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: #f3f4f6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header-container {
    max-width: 980px;
    margin: 3.5rem auto 3rem;
    padding: 0 1rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.avatar {
    width: 156px;
    height: 156px;
    margin: 0 auto 1.35rem;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 800px) {
    .avatar {
        width: 118px;
        height: 118px;
    }
}

.header h1 {
    font-size: 3.45rem;
    line-height: 1.08;
    margin-bottom: 1.05rem;
    font-weight: 700;
}

.hero-title-main,
.hero-title-sub {
    display: block;
}

.hero-title-main {
    color: #111;
    font-weight: 800;
    margin-bottom: .12rem;
}

.hero-title-sub {
    color: #7a7d84;
    font-weight: 700;
}

.header p {
    color: #777b82;
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.38;
    max-width: 620px;
    margin-bottom: 1.75rem;
    margin-left: auto;
    margin-right: auto;
}

.social {
    display: flex;
    justify-content: center;
    gap: 1.15rem;
    margin-bottom: 2.25rem;
}

    .social a {
        font-size: 1.85rem;
        color: #333;
    }

@media (max-width: 800px) {
    .header-container {
        margin: 2.5rem auto 2rem;
    }

    .header h1 {
        font-size: 2.45rem;
        line-height: 1.12;
    }

    .header p {
        font-size: 1rem;
        max-width: 34rem;
    }

    .social a {
        font-size: 1.6rem;
    }
}

.btn-primary {
    align-items: center;
    background: #050505;
    border: 1px solid rgba(0,0,0,0.9);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.12);
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    font-size: 1.05rem;
    gap: .7rem;
    line-height: 1;
    transition: all .2s ease;
    margin-bottom: 2.5rem;
    padding: 1.05rem 1.65rem;
    position: relative;
    cursor: pointer;
}

    .btn-primary::before {
        content: '●';
        color: #4caf50;
        font-size: .95rem;
        line-height: 1;
    }

    .btn-primary:hover {
        background: #151515;
        box-shadow: 0 16px 32px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.16);
        color: #fff;
        transform: translateY(-1px);
    }

    .btn-primary:disabled,
    .btn-primary[aria-busy="true"] {
        cursor: not-allowed;
        opacity: .55;
        transform: none;
    }

/* Grid Container */
.grid-container {
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

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

.card {
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all .3s ease;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

    .card-icon i {
        font-size: 1.4rem;
        color: #888;
    }

.card h3 {
    font-size: 1.3rem;
    margin-bottom: .7rem;
    font-weight: 700;
}

.card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.hidden-content {
    display: none;
    margin-top: 1.2rem;
    font-size: 1rem;
    color: #444;
}

.card.expanded .hidden-content {
    display: block;
}

.expand-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 28px;
    height: 28px;
    background: #fff;
    border: 0;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background .2s ease;
}

    .expand-icon:hover {
        background: #f1f1f1;
    }

    .expand-icon i {
        font-size: 1.1rem;
        color: #888;
        transition: transform .3s ease;
        transform: rotate(45deg);
    }

.card.expanded {
    grid-column: 1 / -1;
    cursor: default;
}

.card-hidden {
    display: none;
}

    .card.expanded .expand-icon i {
        transform: rotate(225deg);
    }

/* Keyboard focus visibility for icon buttons */
.expand-icon:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Accessibility utility: visually hide content but keep for AT */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Next Steps */
.next-steps {
    background: #fff;
    padding: 4rem 0;
}

    .next-steps h2 {
        text-align: center;
        font-size: 2.4rem;
        margin-bottom: 4rem;
        font-weight: 700;
    }

.step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto 5rem;
    padding: 0 1rem;
}

.step-content {
    font-size: 1.1rem;
    color: #333;
}

    .step-content h4 {
        text-transform: uppercase;
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 0.5rem;
        color: #777;
    }

    .step-content h3 {
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .step-content p {
        margin-bottom: 1rem;
    }

.text-right {
    text-align: right;
}

.process-connector {
    --connector-color: #ccc;
    --connector-accent: #000;
    min-height: 250px;
    position: relative;
    width: 100%;
}

    .process-connector::before,
    .process-connector::after {
        background: var(--connector-color);
        border-radius: 999px;
        content: "";
        position: absolute;
    }

    .process-connector::before {
        bottom: 50%;
        left: 50%;
        top: -3.5rem;
        transform: translateX(-50%);
        width: 3px;
    }

    .process-connector::after {
        height: 3px;
        top: 50%;
    }

.process-connector--to-requirements::after {
    left: 50%;
    right: 0;
}

.process-connector--to-delivery::after {
    left: 0;
    right: 50%;
}

.process-connector__node {
    background: #fff;
    border: 3px solid var(--connector-accent);
    border-radius: 50%;
    height: 16px;
    position: absolute;
    top: 50%;
    width: 16px;
    z-index: 1;
}

.process-connector--to-requirements .process-connector__node {
    right: 0;
    transform: translate(50%, -50%);
}

.process-connector--to-delivery .process-connector__node {
    left: 0;
    transform: translate(-50%, -50%);
}

.form-container form {
    display: flex;
    flex-direction: column;
}

.contact-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.form-container input, .form-container textarea {
    width: 100%;
    padding: .75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-container button {
    padding: .75rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    background: #000;
    color: #fff;
    cursor: pointer;
    margin: 0 auto;
}

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

    .step {
        grid-template-columns: 1fr;
        margin-bottom: 3rem;
    }

    .text-right {
        text-align: left;
    }

    .step--delivery .process-connector {
        order: -1;
    }

    .process-connector {
        min-height: 8rem;
    }

        .process-connector::before {
            bottom: 0;
            left: 50%;
            top: 0;
        }

        .process-connector::after {
            display: none;
        }

    .process-connector__node,
    .process-connector--to-requirements .process-connector__node,
    .process-connector--to-delivery .process-connector__node {
        bottom: 0;
        left: 50%;
        right: auto;
        top: auto;
        transform: translate(-50%, 50%);
    }
}

/* Footer */
.site-footer {
    background: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin-top: -1px;
    padding: 2rem 1rem;
}

.footer-container {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

    .footer-container strong {
        font-size: 1.5rem;
    }

    .footer-container span {
        color: #ccc;
        font-size: 1rem;
    }

@media (max-width: 800px) {
    .footer-container {
        align-items: flex-start;
        flex-direction: column;
        gap: .5rem;
    }
}

/* File transfer */
.transfer-shell {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1rem;
}

    .transfer-shell [hidden] {
        display: none !important;
    }

.transfer-shell .btn-primary::before {
    content: none;
}

.transfer-nav a,
.transfer-copy button,
.transfer-file button:not(.transfer-file-remove),
.transfer-secondary,
.transfer-shell .btn-primary.transfer-button {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    line-height: 1.2;
    padding: .75rem 1rem;
    white-space: nowrap;
}

.transfer-shell--narrow {
    max-width: 520px;
}

.transfer-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-bottom: 1rem;
}

    .transfer-nav a {
        background: #fff;
        border: 1px solid #dedede;
        color: #222;
    }

.transfer-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 2rem;
}

.transfer-grid {
    display: grid;
    gap: 1.5rem;
}

.transfer-grid--two {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
}

.transfer-heading {
    margin-bottom: 1.5rem;
}

.transfer-heading--row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.transfer-kicker {
    color: #777b82;
    display: block;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.transfer-heading h1,
.transfer-heading h2,
.transfer-form h2 {
    color: #111;
    font-size: 2rem;
    line-height: 1.15;
    margin: .25rem 0 0;
}

.transfer-form {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.transfer-form--spaced {
    border-top: 1px solid #eee;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.transfer-form--inline {
    align-items: flex-end;
    display: grid;
    grid-template-columns: 1fr auto;
}

.transfer-access-form {
    align-items: end;
    display: grid;
    gap: .65rem;
    grid-template-columns: minmax(220px, 320px) auto;
    margin-bottom: 1rem;
}

    .transfer-access-form label {
        color: #444;
        font-weight: 700;
        grid-column: 1 / -1;
    }

    .transfer-access-form .transfer-button {
        margin: 0;
    }

.transfer-form label {
    color: #444;
    font-weight: 700;
}

.transfer-form input,
.transfer-form textarea,
.transfer-form select,
.transfer-access-form input,
.transfer-copy input {
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: .75rem;
    width: 100%;
}

.transfer-range {
    accent-color: #111;
    width: 100%;
}

.transfer-range-labels {
    color: #777b82;
    display: flex;
    font-size: .9rem;
    font-weight: 700;
    justify-content: space-between;
    margin-top: -.35rem;
}

.transfer-form textarea {
    resize: vertical;
}

.transfer-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.transfer-button {
    margin: .5rem 0 0;
    width: fit-content;
}

.transfer-alert {
    background: #f3f4f6;
    border-radius: 8px;
    color: #222;
    margin-bottom: 1rem;
    padding: .9rem 1rem;
}

.transfer-alert--danger {
    background: #fff1f1;
    color: #8a1111;
}

.transfer-note {
    background: #f8f9fb;
    border: 1px solid #e4e6ea;
    border-radius: 8px;
    color: #333;
    margin-bottom: 1rem;
    padding: 1rem;
    white-space: pre-wrap;
}

.transfer-list {
    display: grid;
    gap: .75rem;
}

.transfer-list-row {
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #222;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem;
}

    .transfer-list-row span {
        color: #777b82;
        display: block;
        font-size: .95rem;
    }

.transfer-list-main {
    color: inherit;
    display: grid;
    gap: .2rem;
    text-decoration: none;
}

.transfer-list-actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: .65rem;
}

.transfer-pill {
    background: #ecfdf3;
    border-radius: 999px;
    color: #14783e !important;
    font-weight: 700;
    padding: .2rem .65rem;
    text-decoration: none;
}

.transfer-delete-link {
    background: transparent;
    border: 0;
    color: #8a1111;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    padding: .35rem .2rem;
}

.transfer-pill--locked {
    background: #f3f4f6;
    color: #555 !important;
}

.transfer-empty {
    color: #777b82;
    padding: 1rem 0;
}

.transfer-copy {
    display: grid;
    gap: .75rem;
    grid-template-columns: 1fr auto;
}

    .transfer-copy form {
        display: flex;
        margin: 0;
    }

    .transfer-copy button {
        padding: 0;
        width: 52px;
    }

.transfer-copy--actions {
    grid-template-columns: 1fr auto auto;
}

.transfer-copy--spaced {
    margin: 1rem 0;
}

    .transfer-copy button i {
        font-size: 1.25rem;
    }

    .transfer-copy button,
    .transfer-file button,
    .transfer-secondary {
        background: #f3f4f6;
        border: 1px solid #dedede;
        color: #222;
        cursor: pointer;
    }

.transfer-actions {
    align-items: center;
    display: flex;
    gap: .75rem;
}

    .transfer-actions form {
        display: flex;
        margin: 0;
    }

    .transfer-actions .transfer-button,
    .transfer-actions .transfer-secondary {
        margin: 0;
    }

.transfer-bulk-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.transfer-check {
    align-items: center;
    color: #555;
    display: flex;
    font-size: .9rem;
    font-weight: 700;
    gap: .45rem;
}

    .transfer-check input {
        accent-color: #111;
    }

.transfer-check--all {
    margin-right: auto;
}

.transfer-secondary--danger {
    color: #8a1111;
}

.transfer-metrics {
    color: #777b82;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 1rem 0;
}

    .transfer-metrics span {
        background: #f3f4f6;
        border-radius: 999px;
        padding: .35rem .7rem;
    }

.upload-dropzone {
    border: 2px dashed #cfd3da;
    border-radius: 8px;
    display: grid;
    gap: .85rem;
    margin: 1rem 0;
    padding: 1.5rem 1rem;
    position: relative;
    text-align: center;
}

    .upload-dropzone input {
        height: 1px;
        opacity: 0;
        position: absolute;
        width: 1px;
    }

    .upload-dropzone label {
        color: #111;
        cursor: pointer;
        display: block;
        font-size: 1.15rem;
        font-weight: 800;
    }

.upload-queue {
    display: grid;
    gap: .75rem;
    margin: 1rem 0;
}

    .upload-dropzone .upload-queue {
        gap: .5rem;
        margin: .25rem 0 0;
        overflow: visible;
        text-align: left;
        width: 100%;
    }

.upload-row {
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) 28px;
    padding: .85rem;
}

    .upload-dropzone .upload-row {
        background: transparent;
        border: 0;
        border-radius: 0;
        gap: 1rem;
        grid-template-columns: minmax(0, 1fr) minmax(220px, 40%) 22px;
        padding: .25rem 0;
    }

    .upload-row strong {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .upload-row span {
        color: #777b82;
        display: block;
        font-size: .9rem;
    }

    .upload-row progress {
        height: 12px;
        width: 100%;
    }

    .upload-dropzone .upload-row progress {
        height: 8px;
    }

.upload-row-remove {
    align-items: center;
    background: #fff;
    border: 1px solid #efb4b4;
    border-radius: 999px;
    color: #b00020;
    cursor: pointer;
    display: inline-flex;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    height: 26px;
    justify-content: center;
    line-height: 1;
    justify-self: end;
    padding: 0;
    width: 26px;
}

    .upload-dropzone .upload-row-remove {
        font-size: .9rem;
        height: 22px;
        width: 22px;
    }

.upload-row--error {
    border-color: #f1b6b6;
}

.transfer-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin-top: 1rem;
}

.transfer-file {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    min-width: 0;
    padding: .85rem;
    position: relative;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

    .transfer-file[data-selectable-card] {
        cursor: pointer;
    }

    .transfer-file[data-selectable-card]:hover {
        border-color: #cfd3da;
    }

    .transfer-file[data-selectable-card]:focus-visible {
        border-color: #111;
        outline: 2px solid rgba(0,0,0,.15);
        outline-offset: 2px;
    }

    .transfer-file--selected {
        background: #f2f7ff;
        border-color: #8fb5ff;
        box-shadow: inset 0 0 0 1px #8fb5ff;
    }

    .transfer-file strong,
    .transfer-file span,
    .transfer-file p {
        overflow-wrap: anywhere;
    }

    .transfer-file span,
    .transfer-file p {
        color: #777b82;
        font-size: .95rem;
    }

    .transfer-file-size {
        margin-top: auto;
    }

    .transfer-file textarea {
        border: 1px solid #ccc;
        border-radius: 4px;
        font-family: 'Inter', sans-serif;
        padding: .65rem;
        resize: vertical;
        width: 100%;
    }

.transfer-file--editable {
    min-height: 300px;
}

    .transfer-file--editable .transfer-file-size {
        margin-top: auto;
    }

    .transfer-file--editable textarea {
        min-height: 66px;
    }

    .transfer-file--editable > button:not(.transfer-file-remove) {
        width: 100%;
    }

.transfer-file-check {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}

.transfer-shell button:disabled,
.transfer-shell button[aria-busy="true"],
.transfer-secondary:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.transfer-thumb {
    align-items: center;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

    .transfer-thumb img {
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    .transfer-thumb i {
        color: #777b82;
        font-size: 2.35rem;
    }

.transfer-file-remove {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #111 !important;
    cursor: pointer;
    display: inline-flex;
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    line-height: 1;
    opacity: 1;
    padding: 0 !important;
    position: absolute;
    right: .45rem;
    top: .45rem;
    width: 28px;
    z-index: 2;
}

.transfer-modal {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0,0,0,.18);
    inset: 0;
    margin: auto;
    max-width: 420px;
    padding: 0;
    position: fixed;
    width: calc(100% - 2rem);
}

    .transfer-modal::backdrop {
        background: rgba(17,17,17,.35);
    }

    .transfer-modal form {
        display: grid;
        gap: 1rem;
        padding: 1.5rem;
    }

    .transfer-modal h2 {
        font-size: 1.5rem;
        line-height: 1.15;
        margin: 0;
    }

    .transfer-modal p {
        color: #555;
        margin: 0;
    }

.transfer-modal-actions {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
}

@media (max-width: 800px) {
    .transfer-grid--two,
    .transfer-form--inline,
    .transfer-access-form,
    .transfer-copy,
    .upload-row {
        grid-template-columns: 1fr;
    }

    .transfer-heading--row,
    .transfer-actions,
    .transfer-list-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .transfer-list-actions {
        width: 100%;
    }

    .transfer-panel {
        padding: 1.25rem;
    }

    .upload-dropzone .upload-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .upload-dropzone .upload-row progress {
        grid-column: 1 / -1;
    }
}
