/* =======================================================
   VINCENTA CSS v0.1
   Electronic Celestial Navigation for the Sailor
======================================================= */

/* ===============================
   RESET
=============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body:not(.home) {

    padding-top:var(--header-height);

}

html, body {
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    background: #061521;
    color: #E6EDF3;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto; /* Fixes stretching on mobile */
    display: block;
}

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

ul {
    list-style: none;
}

/* ===============================
   ROOT VARIABLES
=============================== */

:root {

    --bg: #061521;
    --bg-soft: #0B2233;
    --panel: #0E2A3F;

    --text: #E6EDF3;
    --muted: #9FB3C8;

    --gold: #C9A24A;
    --gold-soft: #E2C875;

    --line: rgba(255,255,255,0.08);

    --danger: #E06C75;

    --radius: 12px;

    --shadow: 0 20px 60px rgba(0,0,0,0.45);

    --header-height: 65px;
}

/* ===============================
   LAYOUT
=============================== */

.container {
    width: min(1000px, 92%);
    margin: 0 auto;
}

.narrow {
    width: min(800px, 92%);
}

section {
    position: relative;
    padding: 30px 0;
    z-index: 1;
}

/* ===============================
   TYPOGRAPHY
=============================== */

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.3rem;
}

p {
    color: var(--muted);
    line-height: 1.6;
}

/* ===============================
   HEADER
=============================== */

#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6,21,33,0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    height: var(--header-height);
    display:flex;
    align-items:center;    
}

.navContainer {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo img {
    height: 65px;
    width: auto;
    display: block;
}

#navMenu {
    display: flex;
    gap: 25px;
    align-items: center;
}

#navMenu a {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.85;
    transition: 0.2s;
    white-space: nowrap;
}

#navMenu a:hover {
    color: var(--gold);
    opacity: 1;
}

/* mobile button */

#mobileButton {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

#mobileButton span {
    width: 25px;
    height: 2px;
    background: var(--text);
}

/* ===============================
   HERO
=============================== */

.hero {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 30px;
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.heroGrid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px,0.9fr);
    gap: 40px;
    align-items: center;
}

.heroText {
    min-width: 0;
}

.heroLogo {
    display: none !important;
}

.hero h1 {
    margin-bottom: 20px;
}

.hero h2 {
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 20px;
}

.heroButtons {
    margin-top: 25px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
}

/* ===============================
   BUTTONS
=============================== */

.button {
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.25s;
    display: inline-block;
    border: 1px solid transparent;
    cursor: pointer;
}

.button.gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: #1a1a1a;
}

.button.gold:hover {
    transform: translateY(-2px);
}

.button.outline {
    border: 1px solid var(--gold);
    color: var(--gold);
}

.button.outline:hover {
    background: rgba(201,162,74,0.1);
}

button.button
{
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: inherit;
    border: none;
}

/* ===============================
FOCUS INDICATORS (Accessibility)
=============================== */
a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible,
.thumbnail:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ===============================
   SECTIONS
=============================== */

.sectionTitle {
    text-align: center;
    margin-bottom: 50px;
}

/* ===============================
   CARDS
=============================== */

.cardGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* Enforce 2x2 Grid on Desktop & Tablet (> 700px) */
@media (min-width: 701px) {
    .cardGrid.grid-2x2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.card {
    background: var(--panel);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: 0.25s;
}

.card:hover {
    transform: translateY(-5px);
}

/* ===============================
   HARDWARE SECTION
=============================== */

.featureRow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.featureList li {
    margin: 10px 0;
    color: var(--text);
}

/* ===============================
   SHOWCASE
=============================== */

.viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.viewerDisplay {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    max-width: 480px;
}

#viewerImage {
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.viewerButton {
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 1.4rem;
    padding: 8px 12px;
    cursor: pointer;
    flex-shrink: 0;
}

.thumbnailBar {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.thumbnail {
    width: 70px;
    opacity: 0.6;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--gold);
}

/* Mobile Showcase Adjustments */
@media (max-width: 700px) {
    #viewerImage {
        max-height: 180px;
    }
    
    .viewerButton {
        padding: 6px 10px;
        font-size: 1.2rem;
    }

    .thumbnailBar {
        gap: 6px;
        flex-wrap: wrap;
    }

    .thumbnail {
        width: 38px;
    }
}

.viewerButton {
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
}

.thumbnailBar {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.thumbnail {
    width: 70px;
    opacity: 0.6;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--gold);
}

/* ===============================
   TOUR
=============================== */

.tourItem {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    margin-bottom:80px;
}


.tourImage {
    order:2;
}


.tourText {
    order:1;
}

@media(max-width:700px)
{

    .tourItem {
        grid-template-columns:1fr;
    }


    .tourText {
        order:1;
    }


    .tourImage {
        order:2;
    }

}

/* ===============================
   GNSS SECTION
=============================== */

.gnss {
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.2));
    text-align: center;
}

/* ===============================
   QUOTE
=============================== */

.quoteOverlay {
    background:rgba(6,21,33,0.75);
    padding:40px 0;
    text-align:center;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
}

blockquote {
    font-size: 1.7rem;
    color: var(--gold);
    font-family:'Montserrat',sans-serif;
    font-weight:500;
    letter-spacing:1px;
}

@media(max-width:700px)
{
    .quoteOverlay {
        padding:35px 20px;
    }

    blockquote {
        font-size:1.35rem;
    }
}

/* ===============================
   CTA
=============================== */

.cta {
    text-align: center;
    background: var(--bg-soft);
}

/* ===============================
   FOOTER
=============================== */

footer {
    background: #050F18;
    padding: 60px 0 20px;
}

.footerGrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

/* ---------- Column 1: Brand & Logo ---------- */

.footerLogo {
    height: 65px;
    width: auto;
    margin-bottom: 12px;
    display: block;
    opacity: 0.95;
}

footer .footerGrid > div:first-child p {
    font-size: 0.88rem;
    color: var(--gold);
    line-height: 1.5;
    max-width: 220px;
}

/* ---------- Headings & Links ---------- */

footer h4 {
    color: white;
    margin-bottom: 18px;
    font-size: 1rem;
}

footer p {
    color: var(--muted);
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer li {
    margin-bottom: 10px;
}

footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.25s;
}

footer a:hover {
    color: var(--gold);
}

/* ---------- Copyright & Bottom ---------- */

.footerBottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    text-align: center;
}

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

/* ---------- Mobile Footer Adjustment ---------- */

@media (max-width: 700px) {
    footer .footerGrid > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--line);
    }

    footer .footerGrid > div:first-child p {
        max-width: 100%;
    }
}

/* ===============================
   MOBILE MENU
=============================== */

#mobileMenu {
    position: fixed;
    inset: 0;
    width:100%;
    height:100%;
    z-index: 2000;
    background: rgba(6,21,33,0.98);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#mobileMenu ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding:0;
    margin:0;
}

#mobileMenu a {
    display:block;
    padding:12px 25px;
    font-size: 1.4rem;
    color: var(--text);
}

#mobileClose {

    position:absolute;

    top:20px;

    right:25px;

    z-index: 2001;

    background:none;

    border:none;

    color:var(--gold);

    font-size:2.3rem;

    cursor:pointer;

}

/* ===============================
   BACK TO TOP
=============================== */

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gold);
    color: #000;
    border: none;
    padding: 10px 12px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}

/* ===============================
   RESPONSIVE
=============================== */

/* ---------- Tablet ---------- */

@media (max-width:900px) {

    .heroGrid {
        grid-template-columns: minmax(0,1fr) 180px;
        gap: 20px;
    }

    #device {
        width: 180px;
    }

}

/* ---------- Phone ---------- */

@media (max-width: 700px) {

    .heroGrid,
    .featureRow,
    .tourItem,
    .footerGrid,
    .cardGrid,
    .cardGrid.grid-2x2 {
        grid-template-columns: 1fr !important;
    }

    footer .footerGrid > div:first-child {
        margin-bottom: 15px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--line);
    }

    /* ---------- Mobile Hero ---------- */

    .hero {
        padding-top: calc(var(--header-height) + 10px);
        padding-bottom: 30px;
        min-height: auto;
    }

    .heroDevice {
        margin: 30px auto 0 auto;
    }

    .heroText {
        max-width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.15;
        margin-bottom: 15px;
    }

    .hero h2 {
        font-size: 1.15rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .heroLogo {
        display: none !important;
    }

    .heroButtons {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 20px;
    }

    #device {
        max-width: 180px;
    }


    /* ---------- Navigation ---------- */

    #navMenu {
        display: none;
    }

    #mobileButton {
        display: flex;
    }

}

/* ======================================================
   BODY ID CALLOUT
====================================================== */

.callout
{
    margin-top: 70px;

    padding: 40px;

    border: 1px solid rgba(201,166,87,.35);

    border-radius: 14px;

    background: rgba(8,28,49,.45);

    text-align: center;
}

.callout h3
{
    color: var(--gold);

    margin-bottom: 18px;
}

.callout p
{
    max-width: 760px;

    margin: 0 auto 18px auto;
}

/* ======================================================
   ONBOARD SECTION
====================================================== */

.onboard .cardGrid
{
    display: flex;

    justify-content: center;

    align-items: stretch;

    flex-wrap: wrap;

    gap: 35px;

    margin-top: 55px;
}

.onboard .card
{
    width: 280px;

    flex: 0 0 280px;

    text-align: left;
}

.onboard .card h3
{
    text-align: center;

    margin-bottom: 18px;
}

.intro {
    padding-top: 10px;
    text-align: center;
}

/* ======================================================
   PURCHASE PAGE PROCESS CARDS
====================================================== */

.purchasePageProcess .purchaseSteps
{
    display:grid;

    grid-template-columns:repeat(2,1fr);

    max-width:700px;

    margin-left:auto;
    margin-right:auto;

    gap:30px;
}


/* Mobile */

@media(max-width:700px)
{

.purchasePageProcess .purchaseSteps
{
    grid-template-columns:1fr;
}

}

/* ======================================================
   PURCHASE PAGE
====================================================== */

.purchaseHero
{
    text-align: center;
}

.purchaseHero h1
{
    margin-bottom: 20px;
}

.purchaseHero p
{
    max-width: 760px;
    margin: 0 auto;
}


.purchaseProcess
{
    padding-top: 20px;
}


.purchaseSteps
{
    display: grid;

    grid-template-columns:repeat(3,1fr);
    max-width:700px;
    margin-left:auto;
    margin-right:auto;

    gap: 30px;

    margin-top: 50px;
}


.purchaseStep
{
    background: var(--panel);

    border: 1px solid var(--line);

    border-radius: var(--radius);

    padding: 35px;

    text-align: center;

    box-shadow: var(--shadow);
}


.stepNumber
{
    width: 54px;

    height: 54px;

    margin: 0 auto 25px;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        var(--gold),
        var(--gold-soft)
    );

    color: #111;

    font-family: 'Montserrat', sans-serif;

    font-size: 1.5rem;

    font-weight: 700;

    display: flex;

    align-items: center;

    justify-content: center;
}


.purchaseStep h3
{
    margin-bottom: 18px;
}


.path
{
    margin: 18px 0;

    color: var(--gold);

    font-size: 1.05rem;
}


.example
{
    margin-top: 20px;

    font-family: monospace;

    word-break: break-all;

    color: var(--text);
}


.purchaseForm
{
    margin-top: 25px;
}


.purchaseForm label
{
    display: block;

    margin-bottom: 12px;

    color: var(--text);

    font-weight: 600;
}


.purchaseForm input
{
    width: 100%;

    padding: 14px;

    background: var(--bg);

    color: white;

    border: 1px solid var(--line);

    border-radius: var(--radius);

    text-align: center;

    text-transform: uppercase;

    letter-spacing: 2px;

    font-size: 1.1rem;

    font-family: monospace;
}


.purchaseForm input:focus
{
    outline: none;

    border-color: var(--gold);
}


.smallText
{
    margin-top: 12px;

    font-size: 0.9rem;
}


.purchaseButton
{
    margin-top: 30px;

    display: inline-block;
}

/* ---------- Tablet ---------- */

@media (max-width:900px)
{

.purchaseSteps
{
    grid-template-columns:repeat(2,1fr);
}

}

/* ---------- Mobile ---------- */

@media (max-width:700px)
{

.purchaseSteps
{
    grid-template-columns: 1fr;
}

.purchaseStep
{
    padding: 28px;
}

}

/* ======================================================
   PRODUCT ID GUIDE
====================================================== */


.productIdGuide
{
    padding-top: 20px;
}


.productIdGuide .sectionTitle
{
    margin-bottom: 35px;
}


.productSteps
{
    max-width: 650px;

    margin: 30px auto;

    padding-left: 30px;

    color: var(--text);

    line-height: 1.8;
}


.productSteps li
{
    margin-bottom: 12px;
}


.idExample
{
    max-width: 520px;

    margin: 35px auto;

    padding: 20px;

    text-align: center;

    background: rgba(255,255,255,0.03);

    border: 1px solid var(--line);

    border-radius: var(--radius);

    font-family: monospace;

    letter-spacing: 1px;
}


.idExample strong
{
    color: var(--gold);
}



.idScreenshots
{
    margin-top: 60px;

    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 25px;
}


.idScreenshots figure
{
    text-align: center;
}


.idScreenshots img
{
    width: 100%;

    height: auto;

    border-radius: var(--radius);

    border: 1px solid var(--line);

    box-shadow: var(--shadow);
}


.idScreenshots figcaption
{
    margin-top: 12px;

    color: var(--muted);

    font-size: 0.9rem;
}



/* ---------- Tablet ---------- */


@media (max-width:900px)
{

.idScreenshots
{
    grid-template-columns: repeat(2,1fr);
}

}



/* ---------- Phone ---------- */


@media (max-width:700px)
{

.idScreenshots
{
    grid-template-columns: 1fr;
}


.productSteps
{
    padding-left: 20px;
}

}

/* ======================================================
   DOWNLOAD PAGE
====================================================== */

.downloadSection
{
    padding-top:20px;
}

.downloadBox
{
    max-width:650px;

    margin:40px auto 0;

    background:var(--panel);

    border:1px solid var(--line);

    border-radius:var(--radius);

    padding:45px;

    box-shadow:var(--shadow);
}

.downloadForm
{
    text-align:center;
    margin-top:35px;
    padding-top:10px;
    border-top:1px solid var(--line);    
}

.downloadForm label
{
    display:block;

    margin-bottom:15px;

    font-weight:600;

    color:var(--text);
}

.downloadForm input
{
    width:100%;

    padding:16px;

    border-radius:var(--radius);

    border:1px solid var(--line);

    background:var(--bg);

    color:white;

    text-align:center;

    font-size:1.15rem;

    letter-spacing:2px;

    font-family:monospace;

    text-transform:uppercase;
}

.downloadForm input:focus
{
    outline:none;

    border-color:var(--gold);
}

.downloadForm .button
{
    margin-top:25px;
}

.downloadLocked
{
    margin-top:25px;

    color:var(--gold);

    font-weight:600;

    text-align:center;
}

.supportCallout
{
    padding-top:10px;
}

/* ---------- Mobile ---------- */

@media (max-width:700px)
{

.downloadBox
{
    padding:30px 22px;
}

.downloadForm input
{
    font-size:1rem;

    letter-spacing:1px;
}

}

/*======================================================
DOWNLOAD LINKS
======================================================*/

.existingCustomers
{
    text-align:center;
}

.existingCustomers p
{
    max-width:700px;
    margin:25px auto;
}

/* ---------- Callout & Existing Owner Spacing Fix ---------- */

/* ---------- CTA & Callout Button & Text Spacing ---------- */

.cta p {
    margin-bottom: 20px;
}

.cta .button,
.callout .button {
    margin-top: 10px;
    margin-bottom: 10px;
}

.existingOwner {
    margin-top: 20px !important;
    font-size: 0.95rem;
    color: var(--muted);
    display: block;
}

.existingOwner a
{
    color:var(--gold);
    font-weight:600;
}

.existingOwner a:hover
{
    text-decoration:underline;
}

/* ======================================================
   LICENSING PAGE
====================================================== */


/* -------------------------------
   Licensing sections
-------------------------------- */

section h2
{
    margin-bottom:20px;
}


section .container.narrow > p
{
    margin-bottom:20px;
}



/* -------------------------------
   Pricing table
-------------------------------- */


.pricingTable
{
    width:100%;

    border-collapse:collapse;

    margin-top:40px;

    background:var(--panel);

    border-radius:var(--radius);

    overflow:hidden;

    box-shadow:var(--shadow);

    border:1px solid var(--line);
}



.pricingTable th
{
    padding:18px 22px;

    background:linear-gradient(
        135deg,
        var(--gold),
        var(--gold-soft)
    );

    color:#111;

    font-family:'Montserrat', sans-serif;

    font-weight:700;

    text-align:left;

}



.pricingTable td
{
    padding:18px 22px;

    border-bottom:1px solid var(--line);

    color:var(--text);

}



.pricingTable tr:last-child td
{
    border-bottom:none;
}



.pricingTable td:last-child,
.pricingTable th:last-child
{
    text-align:right;

    font-weight:600;

}



.pricingTable tr:nth-child(even)
{
    background:rgba(255,255,255,0.025);
}



/* -------------------------------
   Licensing policy blocks
-------------------------------- */


.licensingBlock
{
    background:rgba(14,42,63,0.65);

    border:1px solid var(--line);

    border-radius:var(--radius);

    padding:35px;

    margin:30px auto;

    box-shadow:var(--shadow);
}



.licensingBlock h2
{
    color:var(--gold);
}

/* -------------------------------
   Mobile
-------------------------------- */


@media(max-width:700px)
{


.pricingTable
{
    font-size:0.9rem;
}



.pricingTable th,
.pricingTable td
{
    padding:14px 12px;
}



.pricingTable td:last-child,
.pricingTable th:last-child
{
    text-align:right;
}



section .container.narrow > p
{
    text-align:left;
}



}

/* ======================================================
   LEGAL INFORMATION PAGE
====================================================== */


.legalSection
{
    padding: 20px 0;
}


.legalSection h2
{
    color: var(--gold);

    margin-bottom: 25px;

    font-size: 2rem;
}


.legalSection p
{
    margin-bottom: 20px;

    line-height: 1.75;
}


/* Legal page links */

.legalSection .container.narrow a
{
    color: var(--gold);
}


.legalSection .container.narrow a:hover
{
    color: var(--gold-soft);
}



/* Highlight important liability statement */

.legalHighlight
{
    background:
    rgba(201,162,74,0.08);

    border:1px solid rgba(201,162,74,0.35);

    border-radius:var(--radius);

    padding:35px;

    margin:20px 0;

    text-align:center;
}


.legalHighlight p
{
    color:var(--text);

    font-size:1.05rem;
}


/* CTA spacing */

.legalCTA
{
    margin-top:40px;
}


/* Mobile */

@media(max-width:700px)
{

    .legalSection h2
    {
        font-size:1.6rem;
    }


    .legalHighlight
    {
        padding:25px;
    }

}

/* ======================================================
   PURCHASE PAGE IMPROVEMENTS
====================================================== */

.purchaseStep p {
    margin-bottom: 14px;
}

.purchaseStep .button {
    margin-top: 20px;
}

.purchaseProcess .sectionTitle {
    margin-bottom: 20px;
}

.purchaseStep h2
{
    color:var(--gold);
    margin:20px 0;
}

.purchaseStep .featureList
{
    text-align:left;
    margin:25px 0;
}

.purchaseStep .featureList li
{
    margin:10px 0;
}

/* ======================================================
   PRODUCT ID HELP
====================================================== */

.productIdGuide p:last-of-type
{
    margin-top: 45px;
}

/* ======================================================
   CENTRED BUTTON BLOCK
====================================================== */

.buttonBlock
{
    text-align: center;
    margin-top: 30px;
}

.buttonBlock .button
{
    margin-top: 0;
}

/* ======================================================
   PURCHASE CHECKOUT
====================================================== */

.downloadBox h2:first-child
{
    margin-bottom:10px;
}

.downloadBox h2:last-of-type
{
    color:var(--gold);
    margin:25px 0;
}

.downloadBox .featureList
{
    margin:30px 0;
}

.downloadBox .featureList li
{
    margin:10px 0;
}

.downloadForm label
{
    margin-top:20px;
}

.downloadForm .button
{
    width:100%;
    margin-top:30px;
}

.downloadForm .smallText
{
    margin-top:18px;
    margin-bottom:5px;
}

/* ======================================================
   DON'T OWN A TI-NSPIRE?
====================================================== */

.hardwareIntro
{
    padding-top:20px;
}

.hardwareIntro .featureImage img
{
    max-width:280px;
    margin:auto;
}

/* ======================================
   INTERNAL PAGE LINKS
====================================== */

html
{
    scroll-behavior: smooth;
}

#dont-own
{
    scroll-margin-top: 70px;
}

.card a
{
    color: var(--gold);
    font-weight: 600;
}

.card a:hover
{
    color: var(--gold-soft);
    text-decoration: underline;
}

/* TI-Nspire tilted calculator image */

#dont-own .featureImage img {
    width:65%;
    max-width:360px;
    height:auto;
    margin:0 auto;
}

/* ======================================================
   HARDWARE IMAGE
====================================================== */

.hardware .featureRow
{
    grid-template-columns:0.9fr 1.1fr;
}


.hardware .featureImage
{
    display:flex;
    justify-content:center;
}


.hardware .featureImage img
{
    width:100%;
    max-width:480px;
    height:auto;
}

@media(max-width:700px)
{

    .hardware .featureRow
    {
        grid-template-columns:1fr;
    }

}

/* Base Container Structure */
/* ==========================================================================
   UPDATED CORE STRUCTURAL CSS (Larger, tighter, deeper organic overlap)
   ========================================================================== */

body.home .heroDevice {
    position: relative;
    width: 100%;
    min-height: 800px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: visible;
}

body.home .instrument {
    position: absolute;
    height: auto;
    border-radius: 4px;
    mix-blend-mode: normal; 
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Mobile Adjustments: Tight clustering scaled down safely */
@media (max-width: 768px) {
  .heroDevice {
    min-height: auto; /* Removes the extra gap below the cluster */
    justify-content: center;
    margin-top: 1rem;
  }
  
  #instrumentCluster {
    max-width: 350px;
    height: 480px; /* Adjusted height to perfectly fit all 4 scaled images */
  }

  /* Restore the bottom two images */
  body.home .style-celestial .ins-triangle,
  body.home .style-celestial .ins-fix {
    display: block; 
  }

  /* 
     By removing the custom top/left overrides for .ins-sky and .ins-results, 
     they fall back to the desktop layout (2%, 22%, 42%, 62%). 
     Because the images are scaled down proportionally, this layout 
     fits perfectly inside the 480px container without overlapping messily.
  */
}

/* ==========================================================================
   CELESTIAL CLUSTER (Midway Balanced Fix Position)
   ========================================================================== */

body.home #instrumentCluster {
    position: relative;
    width: 100%;
    max-width: 680px; 
    height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.home .style-celestial .instrument {
    opacity: 0.96; 
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(212, 175, 55, 0.25); 
    background-color: #081C31; 
}

/* ======================================================
   CELESTIAL CLUSTER - DIAGONAL LADDER ARRANGEMENT
====================================================== */


/* 1. THE REDUCTION RESULTS (Top Left) */
body.home .style-celestial .ins-sky {
    width: 68%;
    top: 2%;
    left: -5%;
    transform: rotate(-3deg);
    z-index: 1;
}


/* 2. THE SKY PLOT */
body.home .style-celestial .ins-results {
    width: 68%;
    top: 22%;
    left: 8%;
    transform: rotate(-1deg);
    z-index: 2;
}


/* 3. THE RUNNING FIX */
body.home .style-celestial .ins-triangle {
    width: 68%;
    top: 42%;
    left: 21%;
    transform: rotate(2deg);
    z-index: 3;
}


/* 4. THE NAVIGATION TRIANGLE */
body.home .style-celestial .ins-fix {
    width: 68%;
    top: 62%;
    left: 34%;
    transform: rotate(5deg);
    z-index: 5;
    border: 1px solid rgba(212,175,55,0.45);
}
/* Interactive Hover State */
body.home .style-celestial .instrument:hover {
    opacity: 1;
    transform: scale(1.04) rotate(0deg) !important;
    z-index: 10;
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow:none;
}

/* ======================================================
   CONSISTENT FEATURE LAYOUT
====================================================== */

/* text always first */
.featureText {
    order:1;
}


.featureImage {
    order:2;
}

@media(max-width:700px)
{

    .featureRow {
        grid-template-columns:1fr;
    }


    .featureText {
        order:1;
    }


    .featureImage {
        order:2;
    }

}

/* ======================================================
   PRODUCT ID INTRO BEFORE CHECKOUT
====================================================== */

.purchaseIntro
{
    margin: 35px 0 0px;

    padding: 30px 20px 35px;

    border-top:1px solid rgba(201,162,74,0.35);

    border-bottom:1px solid rgba(201,162,74,0.35);

    background:rgba(255,255,255,0.025);

    border-radius:10px;

    text-align:center;
}


.purchaseIntro h3
{
    color:var(--gold);

    margin-bottom:10px;

    font-size:1.25rem;
}


.purchaseIntro p
{
    max-width:620px;

    margin:0 auto 25px;

    text-align:center;
}


.purchaseIntro .buttonBlock
{
    margin-top:20px;
}

/*========================================================
  Purchase Agreement
========================================================*/

.purchaseAgreement
{
    margin-top:30px;
}

.checkboxLabel
{
    display:flex;
    align-items:flex-start;
    gap:14px;

    font-size:0.92rem;
    line-height:1.6;

    color:var(--text);

    text-align:left;
}

.checkboxLabel input
{
    margin-top:5px;

    transform:scale(1.2);

    cursor:pointer;

    flex-shrink:0;
}

.checkboxLabel a
{
    color:var(--gold);

    font-weight:600;

    text-decoration:none;
}

.checkboxLabel a:hover
{
    text-decoration:underline;
}

#purchaseButton:disabled
{
    background: linear-gradient(135deg,#6f6f6f,#8a8a8a) !important;

    color:#eeeeee !important;

    border:none;

    opacity:1 !important;

    cursor:not-allowed;

    transform:none !important;

    box-shadow:none;
}

/*========================================================
  Official Legal Documents
========================================================*/

.policySection
{
    margin:20px 0;
}

.policyBlock
{
    background:rgba(255,255,255,0.02);

    border:1px solid rgba(255,255,255,0.08);

    border-radius:12px;

    padding:34px;

    margin-bottom:28px;
}

.policyBlock h2
{
    margin-top:0;
}

.policyHero
{
    text-align:center;
}

/* Install page */

body.install .heroDevice{
    min-height:auto;
    display:flex;
    justify-content:center;
    align-items:center;
}

body.install .heroDevice img{
    width:100%;
    max-width:300px;
    height:auto;
}

/* Calculator Transfer page */

body.install .hardware .featureImage img{
    max-width:240px;
    width:100%;
    height:auto;
}

body.install .featureRow{
    gap:10px;
}

/* Links to page sections to clear header */

section[id]{
    scroll-margin-top:40px;
}

/* ======================================================
POLICY HERO
====================================================== */
.policyHero {
  padding-top: 30px;
  padding-bottom: 15px;
  text-align: center;
}
.policyHero h1 {
  margin-bottom: 15px;
  font-size: 2.6rem;
}
.policyHero h2 {
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 1.5rem;
}
.policyHero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .policyHero {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 25px;
  }
  .policyHero h1 {
    font-size: 2rem;
  }
  .policyHero h2 {
    font-size: 1.2rem;
  }
}

/* ======================================================
MISSING CLASSES: LARGE BUTTON
====================================================== */
.button.large {
  padding: 16px 34px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* ======================================================
MISSING CLASSES: VIEWER CAPTION
====================================================== */
.viewerCaption {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 15px;
}
.viewerCaption h3 {
  color: var(--gold);
  margin-bottom: 10px;
  font-size: 1.4rem;
}
.viewerCaption p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.5;
}

/* ======================================================
MISSING CLASSES: ONBOARD LIST
====================================================== */
.onboardList {
  max-width: 500px;
  margin: 30px auto;
  text-align: left;
}
.onboardList li {
  margin: 14px 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ======================================================
MOBILE HERO SPACING FIX 
Tightens the gap between the instrument cluster and the intro text
====================================================== */
@media (max-width: 768px) {
  /* 1. Clean bottom padding for hero section */
  .hero {
    padding-bottom: 10px !important;
  }

  /* 2. Remove top margin from device container */
  .heroDevice {
    margin-top: 0 !important;
    min-height: auto !important;
  }

  /* 3. Tighten cluster container & add bottom margin before intro heading */
  #instrumentCluster {
    height: 460px !important;
    margin-bottom: 20px !important;
  }
}

/* ======================================================
   VINCENTA MASTER RECOVERY & COMPATIBILITY FIXES
====================================================== */

/* 1. RESTORE & LOCK HOME HERO 4-IMAGE CLUSTER (index.html) */
body.home .heroDevice {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    width: 100%;
    overflow: visible;
}

body.home #instrumentCluster {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    width: 100%;
    max-width: 680px;
    height: 800px;
}

body.home .instrument {
    display: block !important;
    visibility: visible !important;
    opacity: 0.96 !important;
    position: absolute !important;
    height: auto !important;
    max-width: none !important;
}

body.home .style-celestial .ins-sky {
    width: 68% !important;
    top: 2% !important;
    left: -5% !important;
    transform: rotate(-3deg);
    z-index: 1;
}

body.home .style-celestial .ins-results {
    width: 68% !important;
    top: 22% !important;
    left: 8% !important;
    transform: rotate(-1deg);
    z-index: 2;
}

body.home .style-celestial .ins-triangle {
    width: 68% !important;
    top: 42% !important;
    left: 21% !important;
    transform: rotate(2deg);
    z-index: 3;
}

body.home .style-celestial .ins-fix {
    width: 68% !important;
    top: 62% !important;
    left: 34% !important;
    transform: rotate(5deg);
    z-index: 5;
}

/* Mobile Cluster Sizing (max-width: 768px) */
@media (max-width: 768px) {
    body.home .heroDevice {
        min-height: auto !important;
        justify-content: center !important;
        margin-top: 0 !important;
    }

    body.home #instrumentCluster {
        max-width: 350px !important;
        height: 460px !important;
    }

    body.home .style-celestial .instrument {
        display: block !important;
    }
}

/* 2. GLOBAL FIREFOX MOBILE OVERFLOW & IMAGE FIXES */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

p, label, span, div, a, .purchaseHero p, .downloadBox p {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

input, select, textarea, button, .downloadBox, .purchaseStep, .container, .narrow {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 3. BRAND TITLE (Never splits "VINCENTA") */
h1, h2, h3, h4, .brandTitle {
    hyphens: none !important;
}

.brandTitle {
    font-size: 3.8rem !important;
    font-weight: 400 !important;
    color: var(--text) !important;
    letter-spacing: 12px !important;
    margin-bottom: 10px !important;
    text-transform: uppercase;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    hyphens: none !important;
}

/* 4. MOBILE ALIGNMENT & RESPONSIVENESS (max-width: 700px) */
@media (max-width: 700px) {
    .heroText {
        max-width: 100% !important;
        text-align: left !important;
    }

    .heroButtons {
        justify-content: flex-start !important;
    }

    .brandTitle {
        font-size: 2.1rem !important;
        letter-spacing: 4.8px !important;
        margin-bottom: 8px !important;
    }

    .downloadForm input, 
    .purchaseForm input {
        font-size: 1rem !important;
        letter-spacing: 1px !important;
        padding: 12px 8px !important;
    }

    /* Hide old splash calculator image on non-home pages only */
    body:not(.home) .floatingCalculator {
        display: none !important;
    }
}

/* ======================================================
   SQUARE VIDEO EMBED (1:1 Ratio)
====================================================== */

.videoBlock {
    background: rgba(14, 42, 63, 0.65);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 35px 25px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    text-align: center;
}

.videoBlock h2 {
    color: var(--gold);
    margin-bottom: 10px;
}

.videoBlock p {
    max-width: 580px;
    margin: 0 auto 24px auto;
}

.videoWrapper.square {
    position: relative;
    width: 100%;
    max-width: 460px;       /* Comfortable square size on desktop */
    aspect-ratio: 1 / 1;    /* Locks player to exact 1:1 square */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 74, 0.45);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    background: #000;
}

.videoWrapper.square iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 700px) {
    .videoBlock {
        padding: 25px 15px;
    }
    .videoWrapper.square {
        max-width: 100%;   /* Fits cleanly within phone margins */
    }
}

/* ======================================================
   TIGHTEN GAP: BODY ID TO PURCHASE CALLOUT
====================================================== */

.quickPurchase {
    padding-top: 0;
}

.quickPurchase .callout {
    margin-top: 15px;
}