/* General Resets */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Ubuntu', sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    overflow-x: hidden;
    overflow-y: hidden;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
}

/* Header & Nav */
nav {
    display: flex;
    justify-content: flex-start;
    padding: 15px 0;
    background: #1a1a1a;
    color: #ccc;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: #888;
    margin-right: auto;
    margin-left: 24px;
}

/* Burger menu */
.menu-wrap {
    position: relative;
    margin-right: 24px;
}

/* Home link (shown on sub-pages instead of the burger) */
.home-link {
    margin-right: 24px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 12px;
    transition: color 0.2s;
}

.home-link:hover {
    color: #eee;
}

.home-link i {
    margin-right: 6px;
    font-size: 0.85em;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.4rem;
    line-height: 1;
    padding: 6px 10px;
    cursor: pointer;
    transition: color 0.2s;
}

.menu-toggle:hover,
.menu-toggle.open {
    color: #eee;
}

.menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: #232323;
    border: 1px solid #383838;
    border-radius: 10px;
    padding: 6px 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.menu-item {
    display: block;
    padding: 12px 20px;
    color: #b1b1b1;
    text-decoration: none;
    font-size: 0.95rem;
    text-align: center;
    transition: background 0.15s, color 0.15s;
}

.menu-item:not(:last-child) {
    border-bottom: 1px solid #2f2f2f;
}

.menu-item:hover {
    background: #2c2c2c;
    color: #fff;
}

.menu-item i {
    margin-left: 6px;
    color: #888;
}

/* Desktop: show menu items inline in the header instead of the burger dropdown */
@media (min-width: 600px) {
    .menu-toggle {
        display: none;
    }

    .menu-dropdown.hidden {
        display: flex !important;
    }

    .menu-dropdown {
        position: static;
        display: flex;
        align-items: center;
        gap: 8px;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        min-width: 0;
    }

    .menu-item {
        padding: 8px 14px;
        border-radius: 6px;
    }

    .menu-item:not(:last-child) {
        border-bottom: none;
    }
}

/* Main section */
.main-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 40px;
    /* min-height: calc(100vh - 54px); */
}

/* Headline */
.headline {
    font-size: 3rem;
    font-weight: 300;
    color: #ccc;
    max-width: 900px;
    line-height: 1.5;
    margin: 0;
    padding-top: 4vh;
}

.mobile-break {
    display: none;
}

/* Steps container */
.steps-container {
    max-width: 550px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 1.5vh;
    margin-bottom: 4vh;
}

/* ─── Stepper (numbered circles) ─── */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    margin: 2vh auto 4vh;
    padding: 0 10px 30px;
    box-sizing: border-box;
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 0 0 auto;
    -webkit-tap-highlight-color: transparent;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    transition: border-color 0.25s, color 0.25s, background 0.25s, box-shadow 0.25s;
}

.step-label {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.85rem;
    color: #fff;
    transition: color 0.25s;
}

/* Connector line between circles */
.step-line {
    flex: 1 1 auto;
    height: 2px;
    min-width: 14px;
    background: #444;
    margin: 0 8px;
}

/* Active step → blue */
.step.active .step-circle {
    border-color: #56CCF2;
    color: #56CCF2;
    box-shadow: 0 0 0 4px rgba(86, 204, 242, 0.12);
}

.step.active .step-label {
    color: #56CCF2;
}

/* Hover on an enabled, inactive step */
.step:not(.disabled):not(.active):hover .step-circle {
    border-color: #ccc;
    color: #ccc;
}

/* Disabled / not yet reached */
.step.disabled {
    cursor: not-allowed;
}

.step.disabled .step-circle {
    border-color: #555;
    color: #555;
    box-shadow: none;
}

.step.disabled .step-label {
    color: #555;
}

/* Keyboard focus */
.step:focus-visible {
    outline: none;
}

.step:focus-visible .step-circle {
    box-shadow: 0 0 0 3px rgba(86, 204, 242, 0.55);
}

/* Step panels */
.step-panel {
    width: 100%;
    max-width: 550px;
    text-align: left;
    padding: 16px 0;
    color: #ccc;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.step-panel.collapsed {
    max-height: 0 !important;
    opacity: 0;
    padding: 0;
    pointer-events: none;
}

/* Panel instruction text */
.panel-instruction {
    font-size: 0.95rem;
    color: #aaa;
    margin: 0 0 16px;
    line-height: 1.6;
    text-align: justify;
}

.panel-text {
    font-size: 0.95rem;
    color: #aaa;
    margin: 0 0 12px;
    line-height: 1.6;
    text-align: justify;
}

.why-question {
    font-size: 1.85rem;
    color: #c0bfbf;
    text-align: center;
}

.prompt-intro {
    display: block;
    margin-bottom: 14px;
}

.panel-note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin: 16px 0 4px;
    line-height: 1.5;
    text-align: justify;
}

/* Prompt input wrapper (textarea + inline arrow button) */
.prompt-input-wrap {
    position: relative;
    width: 96%;
    margin: 0 auto 4px;
}

/* Input bar */
#userInput {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 52px 16px 22px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 20px;
    color: #eee;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.85rem;
    resize: none;
    overflow: hidden;
    min-height: 54px;
    line-height: 1.4;
    field-sizing: content;
    margin: 0;
    display: block;
}

#userInput::placeholder {
    color: #777;
}

#userInput:focus {
    outline: 2px solid #56CCF2;
    border-color: #56CCF2;
}

.input-example {
    font-size: 0.75rem;
    color: #666;
    margin: 8px 0 20px 0;
    font-style: italic;
    text-align: center;
    display: block;
    transition: opacity 0.6s ease;
    min-height: 2.5em;
}

/* Read-only "input bar" look-alike used to display static examples */
.crowd-example-box {
    width: 96%;
    box-sizing: border-box;
    margin: 0 auto 4px;
    padding: 10px 22px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 20px;
    color: #ccc;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.05rem;
    line-height: 1.4;
    text-align: center;
    user-select: none;
}

.input-example.fade-out {
    opacity: 0;
}

.input-example.fade-in {
    opacity: 1;
}

/* Inline submit (arrow) button */
.prompt-submit-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid #56CCF2;
    color: #56CCF2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-size: 1rem;
    padding: 0;
    flex-shrink: 0;
}

.prompt-submit-btn:hover:not(:disabled) {
    background: #56CCF2;
    color: #1a1a1a;
}

.prompt-submit-btn:disabled {
    border-color: #444;
    color: #444;
    cursor: not-allowed;
}

/* Result box */
.result-box {
    background: #141414;
    border: 1px dashed #444;
    padding: 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

#generatedLink {
    color: #56CCF2;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    margin: 0;
    flex: 1;
}

#copyBtn {
    background: transparent;
    color: #888;
    border: none;
    padding: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}

#copyBtn:hover {
    color: #56CCF2;
}

#resultWrapper {
    margin-top: 8px;
    margin-bottom: 8px;
}

/* ─── Match opt-in (under generated link) ─── */
.connect-optin {
    margin: 16px 0 0;
    text-align: justify;
}

.connect-form {
    margin-top: 12px;
}

#subscribeForm {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

#subscribeForm .form-field {
    width: 240px;
    max-width: 55%;
    margin: 0;
}

#subscribeForm .submit-btn {
    margin: 0;
    white-space: nowrap;
}

.connect-form--disabled {
    opacity: 0.25;
    pointer-events: none;
    user-select: none;
}

.connect-note {
    color: #fff;
    font-size: 0.75rem;
    font-style: italic;
    margin: 2px 0 10px;
    text-align: left;
}

/* Template button row (inline pair) */
.template-btn-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.template-btn-row .template-btn {
    margin: 0;
}

/* Template button */
.template-btn {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 10px 24px;
    background: transparent;
    color: #56CCF2;
    border: 1.5px solid #56CCF2;
    border-radius: 50px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: center;
}

.template-btn:hover {
    background: #222;
    color: #fff;
}

.template-btn i {
    margin-right: 8px;
}

/* Buy GTD button (yellow) */
.buy-gtd-btn {
    color: #def703;
    border-color: #def703;
}

.buy-gtd-btn:hover {
    background: #222;
    color: #fff;
}

.buy-gtd-note {
    font-size: 0.9rem;
    color: #aaa;
    margin: 14px 0 10px;
    line-height: 1.6;
}

/* Crowd Yes/No choice buttons */
.crowd-choice-btn.active {
    background: #56CCF2;
    color: #111;
}

/* Social share buttons (Step 2) */
.social-share-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 4px 0 20px;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid #444;
    color: #ccc;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-share-btn:hover {
    color: #111;
}

.social-share-whatsapp:hover { background: #25D366; border-color: #25D366; }
.social-share-telegram:hover { background: #229ED9; border-color: #229ED9; }
.social-share-x:hover        { background: #fff; border-color: #fff; }
.social-share-facebook:hover { background: #1877F2; border-color: #1877F2; }
.social-share-linkedin:hover { background: #0A66C2; border-color: #0A66C2; }
.social-share-instagram:hover { background: #E1306C; border-color: #E1306C; }
.social-share-tiktok:hover   { background: #000; border-color: #000; color: #fff; }

.publish-prompt-preview {
    width: 98%;
    box-sizing: border-box;
    background: #141414;
    border: 1px dashed #444;
    border-radius: 12px;
    color: #56CCF2;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.85rem;
    padding: 14px 16px;
    margin: 0 1% 14px;
    line-height: 1.4;
    text-align: left;
    word-break: break-word;
}

.buy-gtd-form {
    margin-top: 4px;
}

/* GTD Generator demo video (Step 3) */
.gtd-gen-video {
    display: block;
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    margin: 18px auto 0;
}

/* Responsive YouTube embed (Workflow tab) */
.video-embed-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    margin: 8px auto 0;
    border-radius: 12px;
    overflow: hidden;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Download button */
.download-btn {
    display: block;
    margin: 8px auto 16px;
    padding: 10px 24px;
    background: transparent;
    color: #56CCF2;
    border: 1.5px solid #56CCF2;
    border-radius: 50px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.download-btn:hover {
    background: #222;
    color: #fff;
}

/* Button grid for OS downloads */
.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 350px;
    margin: 0 auto 16px;
}

.sub-btn {
    background: #141414;
    color: #eee;
    border: 1px solid #444;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
    transition: background 0.2s;
}

.sub-btn:hover {
    background: #2a2a2a;
}

.sub-btn--disabled {
    opacity: 0.38;
    cursor: not-allowed;
    color: #888;
    border-color: #333;
}

/* GitHub link */
.github-link {
    display: inline-block;
    margin-top: 30px;
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
}

.github-link:hover {
    color: #aaa;
}

/* Utility */
.hidden { display: none !important; }

/* Footer */
footer {
    margin-top: auto;
    padding: 12px 20px;
    background-color: #1a1a1a;
    color: #777;
    font-size: 0.8rem;
}

/* Mobile tap highlight */
@media (hover: none) and (pointer: coarse) {
    button, a, input, textarea, select, .sub-btn, .step-btn {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Mobile */
@media (max-width: 599px) {
    .logo {
        margin-left: 10px;
    }

    .menu-wrap {
        margin-right: 14px;
    }

    .headline {
        font-size: 1.95rem;
        width: 90%;
        margin: 0 auto 28px;
    }

    .mobile-break {
        display: block;
    }

    .desktop-break {
        display: none;
    }

    .main-section {
        padding: 0 16px 30px;
        min-height: calc(100vh - 54px);
        min-height: calc(100dvh - 54px); /* dynamic viewport for mobile browsers */
    }

    .stepper {
        padding: 0 6px 26px;
        margin: 1vh auto 3vh;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .step-label {
        font-size: 0.62rem;
        top: calc(100% + 7px);
    }

    .step-line {
        margin: 0 4px;
        min-width: 8px;
    }

    .template-btn.crowd-choice-btn {
        width: auto;
        max-width: none;
        padding: 8px 16px;
        font-size: 0.85rem;
        flex: 0 1 auto;
    }

    #panel-crowd > .template-btn-row {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .step-panel {
        padding: 12px 3px;
    }

    .button-grid {
        max-width: 100%;
    }

    .download-btn,
    .template-btn,
    .submit-btn {
        width: fit-content;
        max-width: 92%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .result-box {
        padding: 12px;
    }

    #generatedLink {
        font-size: 0.78rem;
    }

    .panel-instruction,
    .panel-text {
        font-size: 0.9rem;
    }

    .why-question {
        font-size: 2.2rem;
    }

    .steps-container {
        padding: 0 4px;
    }
}

/* ─── Contact / Form page styles ─── */
.black-section {
    padding: 15vh 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    color: #ccc;
    background-color: #1a1a1a;
}

.black-section button,
.black-section a,
.black-section input,
.black-section textarea {
    font-family: 'Ubuntu', sans-serif;
}

.link-generator-container {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.outsource-form {
    max-width: 450px;
    margin: 24px auto 0;
    text-align: left;
}

.form-field {
    width: 98%;
    margin-left: 1%;
    box-sizing: border-box;
    padding: 14px 20px;
    background: #141414;
    border: 1px solid #444;
    border-radius: 12px;
    color: #eee;
    margin-bottom: 10px;
    font-family: inherit;
}

.form-field:focus,
.form-field:focus-visible {
    outline: 2px solid #fff;
    border-color: #fff;
    box-shadow: none;
}

textarea.form-field {
    resize: vertical;
    border-radius: 12px;
}

.form-label {
    display: block;
    text-align: left;
    color: #aaa;
    font-size: 0.82rem;
    margin-bottom: 4px;
    margin-top: 6px;
}

.encryption-notice {
    color: #666;
    font-size: 0.75rem;
    font-style: italic;
    margin: 14px 0 10px;
}

.submit-btn {
    padding: 12px 36px;
    background: transparent;
    color: #fff;
    border: 1.5px solid #fff;
    border-radius: 50px;
    font-weight: 400;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 6px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.2s;
    font-family: 'Ubuntu', sans-serif;
}

.submit-btn:hover {
    transform: scale(1.03);
    background: #222;
    color: #fff;
}

.form-success {
    color: #56CCF2;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    text-align: center;
}

.form-error {
    color: #e07070;
    font-size: 0.95rem;
    margin-top: 16px;
    text-align: center;
}
.form-error a { color: #e07070; }

/* ─── Trust form controls ─── */
.form-field {
    color-scheme: dark; /* dark native pickers for date/select inputs */
}

select.form-field {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2356CCF2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    cursor: pointer;
}

.choice-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 4px 0 14px;
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
}

.choice input[type="radio"],
.choice input[type="checkbox"] {
    accent-color: #56CCF2;
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    flex-shrink: 0;
    cursor: pointer;
}

.choice-other {
    margin-top: 8px;
}

.choice-other:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.date-range {
    display: flex;
    gap: 10px;
}

.date-range .form-field {
    flex: 1;
    min-width: 0;
}

.form-error {
    color: #e57373;
    font-size: 0.78rem;
    margin: -4px 0 10px;
    text-align: left;
}

/* ─── Trust points list ─── */
.trust-points {
    margin: 0 0 8px;
    padding-left: 22px;
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

.trust-points li {
    margin-bottom: 10px;
}

.trust-points a {
    color: #56CCF2;
    text-decoration: none;
}

.trust-points a:hover {
    text-decoration: underline;
}
