/* =========================================================
   COREXA TOOLS — URL SHORTENER V1
   FINAL PRODUCTION STYLESHEET
   Matched to current index.php
   ========================================================= */


/* =========================================================
   1. BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: #ffffff;
    color: #111111;
}

button,
input,
select {
    font-family: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}


/* =========================================================
   2. HEADER
   ========================================================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.header-inner {
    width: min(1120px, calc(100% - 40px));
    height: 78px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    display: block;
    width: auto;
    height: 48px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    color: #252525;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: #173f9f;
}

.corexa-external-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 7px 11px;

    border: 1px solid #d9deea;
    border-radius: 6px;

    background: #ffffff;
    color: #222222 !important;

    font-weight: 500;
    white-space: nowrap;
}

.corexa-external-link span {
    color: #173f9f;
    font-size: 1.15em;
    line-height: 1;
}

.corexa-external-link:hover {
    color: #173f9f !important;
    border-color: #173f9f;
    background: #f7f9ff;
}


/* =========================================================
   3. MAIN TOOL SECTION
   ========================================================= */

.tool-section {
    padding: 66px 20px 72px;
}

.tool-container {
    width: min(900px, 100%);
    margin: 0 auto;
}

.tool-intro {
    max-width: 760px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-label {
    margin-bottom: 10px;

    color: #173f9f;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.tool-intro h1 {
    margin: 0;

    font-size: clamp(30px, 4vw, 42px);
    font-weight: 700;

    line-height: 1.22;
    letter-spacing: -0.8px;
}

.heading-line {
    display: block;
}

.blue-text {
    color: #173f9f;
}

.tool-description {
    max-width: 650px;
    margin: 17px auto 0;

    color: #626262;

    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   4. URL FORM
   ========================================================= */

.form-label {
    display: block;
    margin-bottom: 9px;

    color: #222222;

    font-size: 12px;
    font-weight: 600;

    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.url-row {
    width: 100%;
    margin: 0 auto;

    display: flex;
    align-items: stretch;
    gap: 10px;
}

.url-input {
    flex: 1;
    min-width: 0;
    height: 52px;

    padding: 0 16px;

    border: 1px solid #cfd3da;
    border-radius: 5px;

    background: #ffffff;
    color: #222222;

    font-size: 14px;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.url-input::placeholder {
    color: #8b9099;
    opacity: 1;
}

.url-input:focus {
    border-color: #173f9f;
    box-shadow: 0 0 0 3px rgba(23, 63, 159, 0.07);
}

.shorten-button {
    min-width: 145px;
    padding: 0 24px;

    border: 1px solid #173f9f;
    border-radius: 5px;

    background: #173f9f;
    color: #ffffff;

    cursor: pointer;

    font-size: 13px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.shorten-button:hover {
    background: #103482;
    border-color: #103482;
}

.shorten-button:focus-visible {
    outline: 2px solid #173f9f;
    outline-offset: 2px;
}


/* =========================================================
   5. FORM OPTIONS
   ========================================================= */

.form-options {
    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;
    flex-wrap: wrap;
}

.option-label {
    color: #333333;
    font-size: 13px;
    font-weight: 500;
}

.expiry-select {
    height: 36px;
    padding: 0 34px 0 12px;

    border: 1px solid #cfd3da;
    border-radius: 4px;

    background: #ffffff;
    color: #222222;

    cursor: pointer;
    font-size: 12px;
}

.expiry-select:focus {
    border-color: #173f9f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 63, 159, 0.07);
}

.expiry-note {
    color: #8a8a8a;
    font-size: 11px;
}

.custom-link-toggle {
    padding: 0;
    margin-left: 5px;

    border: 0;
    background: transparent;

    color: #173f9f;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.custom-link-toggle:hover {
    text-decoration: underline;
}


/* =========================================================
   6. CUSTOM ALIAS
   ========================================================= */

.custom-alias-box {
    display: none;

    width: min(560px, 100%);
    margin: 22px auto 0;

    text-align: left;
}

.custom-alias-box.open {
    display: block;
}

.custom-alias-box .form-label {
    margin-bottom: 8px;

    font-size: 11px;
    letter-spacing: 0.5px;
}

.custom-alias-input {
    min-height: 44px;

    display: flex;
    align-items: center;

    border: 1px solid #cfd3da;
    border-radius: 5px;

    background: #ffffff;

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.custom-alias-input:focus-within {
    border-color: #173f9f;
    box-shadow: 0 0 0 3px rgba(23, 63, 159, 0.07);
}

.custom-alias-input > span {
    height: 44px;

    display: flex;
    align-items: center;

    padding: 0 12px;

    background: #f5f6f8;
    border-right: 1px solid #cfd3da;

    color: #666666;

    font-size: 12px;
    white-space: nowrap;
}

.custom-alias-input input {
    flex: 1;
    min-width: 0;
    height: 44px;

    padding: 0 12px;

    border: 0;
    outline: 0;

    background: #ffffff;
    color: #222222;

    font-size: 13px;
}

.custom-alias-help {
    margin: 7px 0 0;

    color: #888888;
    font-size: 10px;
}


/* =========================================================
   7. ERROR MESSAGE
   ========================================================= */

.error-message {
    width: 100%;
    margin: 20px auto 0;
    padding: 12px 15px;

    border: 1px solid #e4bcbc;
    border-radius: 5px;

    background: #fff8f8;
    color: #9c2d2d;

    font-size: 12px;
    line-height: 1.6;
    text-align: left;
}


/* =========================================================
   8. SHORT URL RESULT
   IMPORTANT:
   Status, URL and expiry are intentionally separate rows.
   ========================================================= */

.result-box {
    width: 100%;
    margin: 24px auto 0;
    padding: 18px 20px;

    display: block;

    border: 1px solid #d9deea;
    border-radius: 6px;

    background: #f8faff;

    text-align:left;
}

.result-content {
    display: block;
    width: 100%;
}

.result-message {
    display: block;
    width: 100%;

    margin: 0 0 7px;

    color: #222222;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.result-url {
    display: block;
    width: 100%;

    margin: 0 0 7px;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.result-url a {
    display: inline;

    color: #173f9f;

    text-decoration: underline;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.result-url a:hover {
    color: #103482;
}

.result-expiry {
    display: block;
    width: 100%;

    margin: 0;

    color: #667085;

    font-size: 12px;
    line-height: 1.5;
}

.result-box > .copy-button {
    display: inline-block;

    margin-top: 13px;
}

.copy-button {
    padding: 7px 15px;

    border: 1px solid #173f9f;
    border-radius: 4px;

    background: #ffffff;
    color: #173f9f;

    cursor: pointer;

    font-size: 11px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.copy-button:hover {
    background: #173f9f;
    color: #ffffff;
}

.copy-button:focus-visible {
    outline: 2px solid #173f9f;
    outline-offset: 2px;
}


/* =========================================================
   9. DELETE CONTROLS
   ========================================================= */

.delete-link-form {
    display: inline-flex;
    flex-shrink: 0;

    margin: 0;
    padding: 0;
}

.delete-link-btn {
    width: 36px;
    height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #d8dee8;
    border-radius: 6px;

    background: transparent;
    color: #667085;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.delete-link-btn:hover {
    color: #c62828;
    border-color: #efb3b3;
    background: #fff5f5;
}

.delete-link-btn:focus-visible {
    outline: 2px solid #1f47b5;
    outline-offset: 2px;
}

.delete-success-message {
    width: 100%;

    margin: 0 auto 22px;
    padding: 13px 16px;

    border: 1px solid #b7dfc4;
    border-radius: 6px;

    background: #f5fbf7;
    color: #176b38;

    font-size: 13px;
    font-weight: 500;
}


/* =========================================================
   10. RECENT LINKS SECTION
   ========================================================= */

.links-section {
    padding: 64px 20px 68px;
    background: #f3f5fc;
}

.links-container {
    width: min(1050px, 100%);
    margin: 0 auto;
}

.links-heading {
    margin-bottom: 27px;
}

.links-heading h2 {
    margin: 0;

    font-size: 28px;
    font-weight: 600;
}

.links-heading p {
    margin: 7px 0 0;

    color: #777777;
    font-size: 13px;
}


/* =========================================================
   11. RECENT LINKS TABLE
   ========================================================= */

.table-shell {
    background: #ffffff;

    border: 1px solid #e1e3e8;
    border-radius: 5px;

    overflow: hidden;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;
    table-layout: fixed;
}

th {
    padding: 13px 15px;

    border-bottom: 1px solid #dedede;

    background: #ffffff;
    color: #333333;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.3px;
    text-align: left;
    text-transform: uppercase;
}

td {
    padding: 15px;

    border-bottom: 1px solid #ececec;

    color: #444444;

    font-size: 12px;
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #fafbfe;
}

.original-column {
    width: 34%;
}

.short-column {
    width: 31%;
}

.click-column {
    width: 12%;
    text-align: center;
}

.expiry-column {
    width: 23%;
}

.center {
    text-align: center;
}

.truncate {
    display: block;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.original-link {
    color: #333333;
    text-decoration: none;
}

.original-link:hover {
    color: #173f9f;
    text-decoration: underline;
}

.short-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.short-link {
    flex: 1;
    min-width: 0;

    color: #173f9f;

    font-weight: 500;
    text-decoration: none;
}

.short-link:hover {
    text-decoration: underline;
}

.small-copy {
    flex-shrink: 0;

    padding: 5px 9px;

    border: 1px solid #c8ccd3;
    border-radius: 3px;

    background: #ffffff;
    color: #333333;

    cursor: pointer;

    font-size: 10px;
    font-weight: 500;
}

.small-copy:hover {
    border-color: #173f9f;
    color: #173f9f;
}

.small-copy:focus-visible {
    outline: 2px solid #173f9f;
    outline-offset: 2px;
}

.time-left {
    color: #222222;
    font-weight: 600;
}


/* =========================================================
   12. MORE LINKS
   ========================================================= */

.extra-link-row {
    display: none;
}

.more-container {
    padding: 17px;

    border-top: 1px solid #ececec;

    text-align: center;
}

.more-button {
    border: 0;

    background: transparent;
    color: #173f9f;

    cursor: pointer;

    font-size: 12px;
    font-weight: 600;
}

.more-button:hover {
    text-decoration: underline;
}


/* =========================================================
   13. EMPTY STATE
   ========================================================= */

.empty-state {
    padding: 42px 20px;
    text-align: center;
}

.empty-state strong {
    display: block;

    margin-bottom: 6px;

    font-size: 14px;
    font-weight: 600;
}

.empty-state span {
    color: #777777;
    font-size: 12px;
}


/* =========================================================
   14. VALUE SECTION
   ========================================================= */

.value-section {
    padding: 62px 20px;
    background: #ffffff;
}

.value-container {
    width: min(900px, 100%);
    margin: 0 auto;

    text-align: center;
}

.value-container h2 {
    margin: 0 0 30px;

    font-size: 25px;
    font-weight: 600;
}

.value-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
}

.value-item {
    min-width: 0;
    padding: 22px 15px;
}

.value-item + .value-item {
    border-left: 1px solid #e4e4e4;
}

.value-item strong {
    display: block;

    margin-bottom: 5px;

    color: #173f9f;

    font-size: 13px;
    font-weight: 600;
}

.value-item span {
    color: #777777;
    font-size: 11px;
}


/* =========================================================
   15. COREXA CTA
   ========================================================= */

.corexa-cta {
    padding: 58px 20px;

    background: #173f9f;
    color: #ffffff;

    text-align: center;
}

.cta-container {
    width: min(720px, 100%);
    margin: 0 auto;
}

.corexa-cta h2 {
    margin: 0;

    font-size: 28px;
    font-weight: 600;
}

.corexa-cta p {
    margin: 13px auto 25px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 12px;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;

    padding: 10px 20px;

    border-radius: 20px;

    background: #ffffff;
    color: #173f9f;

    font-size: 11px;
    font-weight: 600;

    text-decoration: none;

    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background: #f2f5ff;
}


/* =========================================================
   16. FOOTER
   ========================================================= */

.footer {
    padding: 38px 20px;

    background: #071329;
    color: #ffffff;
}

.footer-container {
    width: min(1050px, 100%);
    margin: 0 auto;

    display: grid;

    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "brand upcoming"
        "links upcoming";

    align-items: start;

    column-gap: 80px;
    row-gap: 16px;
}

.footer-container > div:first-child {
    grid-area: brand;
}

.footer-logo {
    width: auto;
    height: 38px;
    object-fit: contain;
}

.footer-text {
    margin-top: 8px;

    color: #9aa5b8;
    font-size: 10px;
}

.footer-links {
    grid-area: links;

    display: flex;
    align-items: center;

    gap: 24px;
}

.footer-links a {
    color: #cbd2de;

    font-size: 11px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-upcoming {
    grid-area: upcoming;

    width: 180px;
    min-width: 180px;

    margin: 0;
}

.footer-upcoming-title {
    margin-bottom: 10px;

    color: #ffffff;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.footer-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-upcoming-list span {
    color: #9aa5b8;

    font-size: 9px;
    line-height: 1.4;
}


/* =========================================================
   17. TABLET / SMALL LAPTOP
   ========================================================= */

@media (min-width: 761px) and (max-width: 1024px) {

    .header-inner {
        width: min(100% - 48px, 1120px);
    }

    .tool-section,
    .links-section,
    .value-section,
    .corexa-cta,
    .footer {
        padding-left: 32px;
        padding-right: 32px;
    }

    .tool-container {
        max-width: 820px;
    }

    .links-container {
        max-width: 950px;
    }
}


/* =========================================================
   18. MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .header-inner {
        width: calc(100% - 30px);
        height: 64px;
    }

    .logo {
        height: 38px;
        max-width: 155px;
    }

    .nav {
        gap: 12px;
    }

    .nav a {
        font-size: 10px;
        white-space: nowrap;
    }

    .nav a:first-child {
        display: none;
    }

    .corexa-external-link {
        padding: 6px 8px;

        border-radius: 5px;

        font-size: 9px !important;
        gap: 3px;
    }

    .corexa-external-link span {
        font-size: 11px;
    }


    /* TOOL */

    .tool-section {
        padding: 42px 15px 48px;
    }

    .tool-container {
        width: 100%;
    }

    .tool-intro {
        max-width: 100%;
        margin-bottom: 27px;
    }

    .section-label {
        margin-bottom: 9px;

        font-size: 10px;
        letter-spacing: 1.3px;
    }

    .tool-intro h1 {
        font-size: clamp(25px, 7vw, 31px);
        line-height: 1.22;
        letter-spacing: -0.6px;
    }

    .tool-description {
        max-width: 520px;
        margin-top: 15px;

        font-size: 12px;
        line-height: 1.75;
    }


    /* URL FORM */

    .form-label {
        margin-bottom: 11px;
        font-size: 10px;
    }

    .url-row {
        flex-direction: column;
        gap: 11px;
    }

    .url-input {
        width: 100%;
        height: 48px;

        padding: 0 14px;

        border-radius: 6px;

        font-size: 12px;
    }

    .shorten-button {
        width: 100%;
        min-width: 0;
        height: 48px;

        padding: 0 15px;

        border-radius: 6px;

        font-size: 11px;
    }


    /* OPTIONS */

    .form-options {
        margin-top: 19px;

        gap: 8px 9px;
    }

    .option-label {
        font-size: 11px;
    }

    .expiry-select {
        height: 36px;

        padding-left: 10px;
        padding-right: 28px;

        font-size: 11px;
    }

    .expiry-note {
        font-size: 9px;
    }

    .custom-link-toggle {
        flex-basis: 100%;

        margin: 4px 0 0;

        font-size: 10px;
    }


    /* CUSTOM ALIAS */

    .custom-alias-box {
        width: 100%;
        margin-top: 17px;
    }

    .custom-alias-box .form-label {
        font-size: 10px;
    }

    .custom-alias-input {
        width: 100%;

        flex-direction: column;
        align-items: stretch;
    }

    .custom-alias-input > span {
        width: 100%;
        height: 36px;

        padding: 0 11px;

        border-right: 0;
        border-bottom: 1px solid #cfd3da;

        font-size: 10px;

        overflow: hidden;
        text-overflow: ellipsis;
    }

    .custom-alias-input input {
        width: 100%;
        height: 42px;

        padding: 0 11px;

        font-size: 12px;
    }

    .custom-alias-help {
        font-size: 9px;
    }


    /* ERROR / SUCCESS */

    .error-message {
        margin-top: 17px;
        padding: 11px 12px;

        font-size: 10px;
    }

    .delete-success-message {
        margin-bottom: 15px;
        padding: 11px 12px;

        font-size: 11px;
    }


    /* RESULT */

    .result-box {
        margin-top: 20px;
        padding: 15px;
    }

    .result-message {
        margin-bottom: 6px;
        font-size: 11px;
    }

    .result-url {
        margin-bottom: 6px;
        font-size: 12px;
    }

    .result-expiry {
        font-size: 10px;
    }

    .result-box > .copy-button {
        margin-top: 11px;
    }

    .copy-button {
        padding: 6px 12px;
        font-size: 10px;
    }


    /* RECENT LINKS */

    .links-section {
        padding: 45px 15px 48px;
    }

    .links-container {
        width: 100%;
    }

    .links-heading {
        margin-bottom: 22px;
    }

    .links-heading h2 {
        font-size: clamp(23px, 6.5vw, 28px);
        line-height: 1.35;
    }

    .links-heading p {
        margin-top: 6px;
        font-size: 11px;
    }


    /* MOBILE LINK CARDS */

    .table-shell {
        border: 0;
        border-radius: 0;

        background: transparent;

        overflow: visible;
    }

    .table-wrapper {
        overflow: visible;
    }

    table {
        width: 100%;
        min-width: 0;

        display: block;
    }

    thead {
        display: none;
    }

    tbody {
        display: block;
    }

    tbody tr {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr 1fr;

        margin-bottom: 12px;

        border: 1px solid #e0e3ea;
        border-radius: 7px;

        background: #ffffff;

        overflow: hidden;
    }

    tbody tr:hover {
        background: #ffffff;
    }

    tbody tr.extra-link-row {
        display: none;
    }

    tbody td {
        padding: 11px 13px;

        border-bottom: 1px solid #edf0f4;

        text-align: left;
    }


    /* ORIGINAL URL */

    tbody td:nth-child(1) {
        grid-column: 1 / -1;
        width: 100% !important;
    }

    tbody td:nth-child(1)::before {
        content: "ORIGINAL URL";

        display: block;

        margin-bottom: 6px;

        color: #777777;

        font-size: 9px;
        font-weight: 600;

        letter-spacing: 0.5px;
    }

    .original-link {
        display: block;

        color: #333333;

        font-size: 11px;
        line-height: 1.5;
    }


    /* SHORT URL */

    tbody td:nth-child(2) {
        grid-column: 1 / -1;
        width: 100% !important;
    }

    tbody td:nth-child(2)::before {
        content: "SHORT URL";

        display: block;

        margin-bottom: 7px;

        color: #777777;

        font-size: 9px;
        font-weight: 600;

        letter-spacing: 0.5px;
    }

    .short-cell {
        width: 100%;

        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;

        align-items: center;

        gap: 7px;
    }

    .short-link {
        min-width: 0;

        font-size: 11px;

        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .small-copy {
        padding: 6px 9px;

        font-size: 9px;

        white-space: nowrap;
    }

    .delete-link-btn {
        width: 31px;
        height: 31px;
    }

    .delete-link-btn svg {
        width: 14px;
        height: 14px;
    }


    /* CLICKS */

    tbody td:nth-child(3) {
        grid-column: 1;

        width: 100% !important;

        display: flex;
        align-items: center;
        justify-content: flex-start;

        gap: 5px;

        margin: 0;
        padding: 11px 13px;

        border-bottom: 0;

        font-size: 10px;
        text-align: left;
        white-space: nowrap;
    }

    tbody td:nth-child(3)::before {
        content: "Clicks:";

        color: #777777;

        font-size: 9px;
        font-weight: 500;
    }


    /* TIME LEFT */

    tbody td:nth-child(4) {
        grid-column: 2;

        width: 100% !important;

        display: flex;
        align-items: center;
        justify-content: flex-start;

        gap: 5px;

        margin: 0;
        padding: 11px 13px;

        border-bottom: 0;

        color: #222222;

        font-size: 10px;
        text-align: left;
        white-space: nowrap;
    }

    tbody td:nth-child(4)::before {
        content: "Time left:";

        color: #777777;

        font-size: 9px;
        font-weight: 500;
    }


    /* MORE */

    .more-container {
        margin-top: 5px;
        padding: 14px;

        border: 1px solid #e0e3ea;
        border-radius: 7px;

        background: #ffffff;
    }

    .more-button {
        font-size: 10px;
    }


    /* EMPTY */

    .empty-state {
        padding: 34px 15px;

        border: 1px solid #e0e3ea;
        border-radius: 7px;

        background: #ffffff;
    }

    .empty-state strong {
        font-size: 13px;
    }

    .empty-state span {
        font-size: 10px;
    }


    /* VALUE */

    .value-section {
        padding: 50px 16px;
    }

    .value-container h2 {
        max-width: 340px;

        margin: 0 auto 27px;

        font-size: 22px;
        line-height: 1.45;
    }

    .value-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        width: 100%;
    }

    .value-item {
        min-width: 0;

        padding: 22px 10px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        text-align: center;
    }

    .value-item + .value-item {
        border-left: 0;
    }

    .value-item:nth-child(2),
    .value-item:nth-child(4) {
        border-left: 1px solid #e4e4e4;
    }

    .value-item:nth-child(3),
    .value-item:nth-child(4) {
        border-top: 1px solid #e4e4e4;
    }

    .value-item strong {
        margin-bottom: 6px;

        font-size: 11px;
        line-height: 1.4;
    }

    .value-item span {
        font-size: 9px;
        line-height: 1.5;
    }


    /* CTA */

    .corexa-cta {
        padding: 48px 18px;
    }

    .cta-container {
        width: 100%;
    }

    .corexa-cta h2 {
        max-width: 330px;

        margin: 0 auto;

        font-size: 22px;
        line-height: 1.4;
    }

    .corexa-cta p {
        max-width: 330px;

        margin: 13px auto 22px;

        font-size: 10px;
        line-height: 1.75;
    }

    .cta-button {
        padding: 9px 18px;
        font-size: 9px;
    }


    /* FOOTER */

    .footer {
        padding: 32px 16px;
    }

    .footer-container {
        width: 100%;

        grid-template-columns: 45% 55%;
        grid-template-areas:
            "brand upcoming"
            "links upcoming";

        align-items: start;

        column-gap: 0;
        row-gap: 16px;
    }

    .footer-container > div:first-child {
        min-width: 0;
        padding-right: 12px;
    }

    .footer-logo {
        width: 100%;
        max-width: 135px;
        height: auto;
    }

    .footer-text {
        max-width: 145px;

        margin-top: 9px;

        font-size: 8px;
        line-height: 1.6;
    }

    .footer-links {
        gap: 15px;

        min-width: 0;

        padding-right: 8px;
    }

    .footer-links a {
        font-size: 8px;
        white-space: nowrap;
    }

    .footer-upcoming {
        width: 100%;
        min-width: 0;

        margin: 0;
        padding-left: 18px;

        border-left: 1px solid rgba(255, 255, 255, 0.10);
    }

    .footer-upcoming-title {
        margin-bottom: 10px;

        font-size: 9px;
        line-height: 1.3;

        letter-spacing: 0.7px;
    }

    .footer-upcoming-list {
        gap: 7px;
    }

    .footer-upcoming-list span {
        font-size: 8px;
        line-height: 1.45;
    }
}


/* =========================================================
   19. SMALL PHONES
   ========================================================= */

@media (max-width: 390px) {

    .header-inner {
        width: calc(100% - 24px);
    }

    .logo {
        height: 35px;
        max-width: 145px;
    }

    .nav a {
        font-size: 9px;
    }

    .tool-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tool-intro h1 {
        font-size: 25px;
    }

    .tool-description {
        font-size: 11px;
    }

    .form-options {
        column-gap: 7px;
    }

    .expiry-note {
        font-size: 8px;
    }

    .links-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .short-cell {
        gap: 5px;
    }

    .small-copy {
        padding-left: 7px;
        padding-right: 7px;
    }

    tbody td {
        padding-left: 11px;
        padding-right: 11px;
    }
}


/* =========================================================
   20. VERY SMALL PHONES
   ========================================================= */

@media (max-width: 340px) {

    .logo {
        max-width: 125px;
    }

    .nav a {
        font-size: 8px;
    }

    .tool-intro h1 {
        font-size: 23px;
    }

    .form-options {
        flex-direction: column;
    }

    .custom-link-toggle {
        flex-basis: auto;
    }

    .expiry-note {
        font-size: 9px;
    }

    .short-cell {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .small-copy {
        grid-column: 2;
    }

    .delete-link-form {
        grid-column: 2;
    }

    .footer-logo {
        max-width: 115px;
    }

    .footer-text {
        font-size: 7px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-links a {
        font-size: 7px;
    }

    .footer-upcoming {
        padding-left: 13px;
    }

    .footer-upcoming-title {
        font-size: 8px;
    }

    .footer-upcoming-list span {
        font-size: 7.5px;
    }
}


/* =========================================================
   21. LARGE DESKTOPS
   ========================================================= */

@media (min-width: 1440px) {

    .header-inner {
        max-width: 1120px;
    }

    .tool-container {
        max-width: 900px;
    }

    .links-container {
        max-width: 1050px;
    }

    .value-container {
        max-width: 900px;
    }

    .footer-container {
        max-width: 1050px;
    }
}