/* ==========================================================================
   TNA-USA product, industry and tool pages (loaded after style.css + usa.css)
   ========================================================================== */

.subpage .navbar {
    background: rgba(7, 14, 28, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.subpage .nav-container {
    max-width: 100%;
    padding: 0 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}

.subpage .nav-links { gap: 1.6rem; margin: 0; padding: 0; }
.subpage .nav-links a { font-size: 0.9rem; white-space: nowrap; }
.nav-links a[aria-current="page"] { color: #ffffff; font-weight: 700; box-shadow: inset 0 -2px 0 #e0496f; padding-bottom: 4px; }

.subpage main.container { padding-top: 0; }

/* Breadcrumbs */
.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
    color: #64748b;
    font-size: 0.85rem;
}
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #334155; }
.crumbs a { color: #94a3b8; text-decoration: none; }
.crumbs a:hover { color: #ffffff; }

/* Hero */
.sub-hero {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
    align-items: center;
    padding: 8.5rem 0 3rem 0;
}
.sub-hero.single { grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; text-align: center; }
.sub-hero.single .crumbs, .sub-hero.single .hero-ctas { justify-content: center; }

.sub-hero h1 {
    color: #f8fafc;
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin: 0.75rem 0 1.25rem 0;
}

.sub-hero .lead {
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.65;
    margin: 0;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    list-style: none;
    margin: 1.75rem 0 0 0;
    padding: 0;
    color: #94a3b8;
    font-size: 0.92rem;
}
.hero-points li::before { content: "\2713"; color: #4ade80; font-weight: 800; margin-right: 6px; }

/* Screens */
.shot-stack { position: relative; }
.shot-stack .ehs-screen { margin: 0; }
.shot-stack .ehs-phone {
    position: absolute;
    right: -1.5rem;
    bottom: -2.5rem;
    width: 30%;
    min-width: 130px;
}
.shot-stack .ehs-phone img { border-width: 4px; border-radius: 20px; }

/* Split feature rows */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.split.reverse > :first-child { order: 2; }

.split h2 {
    color: #f8fafc;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.12;
    margin: 0.75rem 0 1rem 0;
}

.split > div > p {
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.65;
    margin: 0 0 1.5rem 0;
}

.split .ehs-phone { margin: 0 auto; }

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}
.steps .usa-card { position: relative; padding-top: 3.6rem; }
.steps .usa-card::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(224, 73, 111, 0.15);
    border: 1px solid rgba(224, 73, 111, 0.4);
    color: #f8a5b9;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    margin-bottom: 0.85rem;
    overflow: hidden;
}
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.15rem 3.25rem 1.15rem 1.5rem;
    color: #f8fafc;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8fb2ea;
    font-size: 1.4rem;
    font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p {
    color: #cbd5e1;
    line-height: 1.65;
    margin: 0;
    padding: 0 1.5rem 1.3rem 1.5rem;
}

/* Related links */
.related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}
.related a {
    display: block;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.related a:hover { transform: translateY(-3px); border-color: rgba(143, 178, 234, 0.45); }
.related strong { display: block; color: #f8fafc; font-size: 1.05rem; margin-bottom: 0.35rem; }
.related span { display: block; color: #94a3b8; font-size: 0.92rem; line-height: 1.5; }
.related strong::after { content: " \2192"; color: #8fb2ea; }

/* Call to action band */
.cta-band {
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 49, 97, 0.65), rgba(179, 25, 66, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: clamp(2.5rem, 6vw, 4rem) 2rem;
}
.cta-band h2 {
    color: #f8fafc;
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 1rem 0;
}
.cta-band p { color: #cbd5e1; font-size: 1.1rem; max-width: 640px; margin: 0 auto; line-height: 1.6; }
.cta-band .hero-ctas { justify-content: center; }

/* Explore links (homepage) */
.explore-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 2.5rem auto 0 auto;
    max-width: 1000px;
}
.explore-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    padding: 7px 16px;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.explore-links a:hover { color: #ffffff; border-color: rgba(143, 178, 234, 0.5); }
.explore-links .label { color: #64748b; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; align-self: center; margin-right: 0.4rem; }

.inline-link { color: #8fb2ea; font-weight: 600; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }

/* Overtime calculator */
.calc {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    align-items: start;
}
.calc-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.75rem;
}
.calc-panel h2 { color: #f8fafc; font-size: 1.3rem; font-weight: 700; margin: 0 0 1.25rem 0; letter-spacing: 0; }
.calc label { display: block; color: #94a3b8; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.4rem; }
.calc select, .calc input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #f8fafc;
    font: inherit;
    font-size: 1rem;
    padding: 10px 12px;
}
.calc select option { background: #0b1426; }
.calc select:focus, .calc input:focus { outline: none; border-color: #8fb2ea; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.calc-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.calc-days label { text-align: center; margin-bottom: 0.3rem; }
.calc-days input { text-align: center; padding: 10px 4px !important; }
.calc-check { display: flex !important; gap: 8px; align-items: flex-start; color: #cbd5e1 !important; font-size: 0.9rem !important; font-weight: 500 !important; margin: 0.5rem 0 0 0; }
.calc-check input { margin-top: 3px; }
.calc-check[hidden] { display: none !important; }
.calc-presets { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.calc-presets button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    border-radius: 999px;
    padding: 6px 12px;
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}
.calc-presets button:hover { border-color: #8fb2ea; color: #ffffff; }

.calc-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
.calc-totals div { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 0.9rem; }
.calc-totals span { display: block; color: #94a3b8; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.calc-totals b { display: block; color: #f8fafc; font-size: 1.35rem; margin-top: 0.25rem; }
.calc-totals .pay { grid-column: 1 / -1; background: rgba(74, 222, 128, 0.08); border-color: rgba(74, 222, 128, 0.25); }
.calc-totals .pay b { font-size: 1.8rem; color: #86efac; }

.calc table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.calc th { color: #94a3b8; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; text-align: right; padding: 0 0.5rem 0.6rem; font-weight: 700; }
.calc th:first-child, .calc td:first-child { text-align: left; }
.calc td { color: #e2e8f0; text-align: right; padding: 0.55rem 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.07); font-variant-numeric: tabular-nums; }
.calc td.ot { color: #fbbf24; }
.calc td.dt { color: #f87171; }
.calc tfoot td { font-weight: 700; color: #f8fafc; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.calc-rules { margin: 1.25rem 0 0 0; padding: 1rem 1.25rem; border-radius: 12px; background: rgba(143, 178, 234, 0.07); border: 1px solid rgba(143, 178, 234, 0.2); }
.calc-rules strong { color: #f8fafc; display: block; margin-bottom: 0.4rem; }
.calc-rules ul { margin: 0; padding-left: 1.1rem; color: #cbd5e1; font-size: 0.9rem; line-height: 1.6; }

.rule-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rule-table th, .rule-table td { padding: 0.85rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-align: left; vertical-align: top; }
.rule-table th { color: #94a3b8; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
.rule-table td { color: #cbd5e1; line-height: 1.5; }
.rule-table td:first-child { color: #f8fafc; font-weight: 600; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; background: rgba(255, 255, 255, 0.02); }

@media (max-width: 1100px) {
    .subpage .nav-links { gap: 1.1rem; }
    .subpage .nav-links a { font-size: 0.85rem; }
}

@media (max-width: 960px) {
    .sub-hero, .split, .calc { grid-template-columns: 1fr; gap: 2.5rem; }
    .split.reverse > :first-child { order: 0; }
    .sub-hero { padding-top: 7rem; }
    .shot-stack .ehs-phone { right: 0.5rem; }
}

@media (max-width: 768px) {
    .subpage .nav-links { gap: 1.25rem; }
    .subpage .nav-links a { font-size: 1rem; }
    .subpage .nav-cta-demo { display: none; }
}

@media (max-width: 560px) {
    .calc-days { grid-template-columns: repeat(4, 1fr); }
    .calc-totals { grid-template-columns: 1fr 1fr; }
    .calc-row { grid-template-columns: 1fr; }
    .shot-stack .ehs-phone { display: none; }
}

/* ---- Homepage "Software" dropdown in the main menu ---- */
.nav-drop { position: relative; }
.nav-drop-btn { background: none; border: 0; padding: 0; cursor: pointer; color: #e2e8f0; font-family: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; font-size: 0.95rem; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; transition: color 0.3s ease; }
.nav-drop-btn:hover, .nav-drop.open .nav-drop-btn { color: #ffffff; }
.nav-drop-btn svg { transition: transform 0.2s ease; }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-sub { list-style: none; margin: 0; position: absolute; top: calc(100% + 14px); left: 50%; min-width: 240px; padding: 10px; background: rgba(8, 16, 32, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; z-index: 1000; }
.nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }   /* keeps hover alive across the gap */
.nav-sub li { margin: 0; }
.nav-sub a { display: block; padding: 9px 12px; border-radius: 8px; white-space: nowrap; color: #e2e8f0; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: rgba(255, 255, 255, 0.07); color: #ffffff; }
.nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub, .nav-drop.open .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (max-width: 768px) {
    .nav-drop { display: flex; flex-direction: column; align-items: center; }
    .nav-sub { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; display: none; opacity: 1; visibility: visible; text-align: center; margin-top: 0.75rem; }
    .nav-sub::before { display: none; }
    .nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { transform: none; }
    .nav-drop.open .nav-sub { display: block; transform: none; }
    .nav-sub a { padding: 7px 12px; color: #cbd5e1; }
}

/* Keep every menu label on one line; tighten the spacing on laptop widths */
.nav-links > li > a, .nav-drop-btn, .navbar .usa-btn { white-space: nowrap; }
@media (min-width: 769px) and (max-width: 1280px) {
    .navbar .nav-links { gap: 1.25rem !important; }
    .navbar .nav-links > li > a, .navbar .nav-drop-btn { font-size: 0.9rem; }
}
@media (min-width: 769px) and (max-width: 1100px) {
    .navbar .nav-links { gap: 0.9rem !important; }
}
@media (min-width: 769px) and (max-width: 1023px) {
    .navbar .nav-cta-demo { display: none; }   /* the hero's Book a Demo button stays; frees room for the menu */
}
@media (min-width: 769px) and (max-width: 900px) {
    .navbar .nav-optional { display: none; }   /* still reachable on the page and in the footer */
}
