/* =========================================================
   Touch-Base — modern variant
   Type-led, generous whitespace, single accent, inline SVG icons.
   ========================================================= */

:root {
    --bg: #ffffff;
    --bg-soft: #fafafa;
    --bg-alt: #f5f5f5;
    --text: #0a0a0a;
    --text-2: #404040;
    --text-muted: #737373;
    --border: #e5e5e5;
    --border-strong: #d4d4d4;
    --accent: #ea580c;
    --accent-dark: #c2410c;
    --accent-bg: #fff7ed;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --max-w: 1200px;
    --pad: 1.5rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--text-2); }
.lead { font-size: 1.15rem; color: var(--text-2); line-height: 1.6; }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-bg);
    color: var(--accent);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(234, 88, 12, 0.18);
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.site-logo img { height: 60px; width: auto; }
.main-nav ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.main-nav a {
    color: var(--text-2);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.55rem 1rem;
    border-radius: 0;
    transition: color 0.15s;
    position: relative;
    letter-spacing: -0.005em;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--text); }
.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.1rem;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.main-nav .nav-cta {
    background: var(--text);
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-left: 0.65rem;
    transition: background 0.15s, color 0.15s, transform 0.12s;
}
.main-nav .nav-cta:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}
.main-nav .nav-cta::after { display: none !important; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s, background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
}
.btn-primary {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--text); color: var(--text); transform: translateY(-1px); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: transparent;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}
.btn-ghost::after { content: " →"; transition: transform 0.15s; display: inline-block; }
.btn-ghost:hover { color: var(--accent); }
.btn-ghost:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
    padding: 6rem 0 5rem;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}
.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    gap: 4rem;
}
.hero-content h1 {
    margin-bottom: 1.2rem;
}
.hero-content .lead {
    margin-bottom: 2rem;
    max-width: 480px;
}
.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.hero-image {
    position: relative;
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 24px 48px -16px rgba(0,0,0,0.18);
    min-height: 420px;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Slim hero for sub-pages */
.hero.hero-sub { padding: 3.5rem 0; }
.hero.hero-sub::before { display: none; }
.hero.hero-sub .container {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 1.5rem;
}
.hero.hero-sub h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.hero.hero-sub .hero-content { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.hero.hero-sub .hero-buttons { margin: 0; }
.hero.hero-sub .btn { padding: 0.6rem 1.1rem; font-size: 0.88rem; }

/* ---------- Generic section ---------- */
section { padding: 5rem 0; }
section.compact { padding: 3rem 0; }
section.alt { background: var(--bg-soft); }
section.tagline { padding: 4rem 0; text-align: center; }
section.tagline h2 { max-width: 760px; margin: 0 auto 1rem; }
section.tagline .lead { max-width: 720px; margin: 0 auto; }

/* ---------- OS cards ---------- */
.os-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.os-card {
    padding: 2rem 1.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: left;
    transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.os-card:hover {
    border-color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -12px rgba(0,0,0,0.18);
    text-decoration: none;
}
.os-card img {
    width: 56px;
    height: 56px;
    margin: 0;
}
.os-card h3 { margin: 0; font-size: 1.2rem; }
.os-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.os-card .arrow {
    margin-top: auto;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ---------- Feature grid ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.25rem;
}
.feature-card {
    padding: 2rem 1.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.18s, transform 0.18s;
}
.feature-card:hover { border-color: var(--text); transform: translateY(-2px); }
.feature-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    color: var(--accent);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 0.85rem; }
.feature-card a.read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}
.feature-card a.read-more::after { content: " →"; }

/* Drivers OS sections */
.driver-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    align-items: start;
}
.driver-section:first-child { border-top: 0; padding-top: 1rem; }
.driver-section .driver-visual {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
}
.driver-section .driver-visual img { max-width: 130px; }
.driver-section .driver-visual h3 { font-size: 1.6rem; margin: 0; }
.driver-section p { font-size: 1rem; color: var(--text-2); margin: 0; max-width: 720px; }
.driver-section.text-only { grid-template-columns: 1fr; }
.driver-section.text-only h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }

/* Support cards */
.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.support-card {
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg);
    transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}
.support-card:hover {
    border-color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -12px rgba(0,0,0,0.18);
    text-decoration: none;
}
.support-card .feature-icon { margin: 0; }
.support-card h3 { margin: 0; font-size: 1.4rem; }
.support-card p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.6; margin: 0; }
.support-card .arrow {
    color: var(--accent);
    font-weight: 600;
    margin-top: 0.25rem;
}
.support-card .arrow::after { content: " →"; }

/* ---------- About page accordion ---------- */
.about-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 880px;
}
.about-accordion details {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    transition: border-color 0.15s, box-shadow 0.18s;
}
.about-accordion details:hover {
    border-color: var(--border-strong);
}
.about-accordion details[open] {
    border-color: var(--text);
    box-shadow: 0 6px 18px -10px rgba(0,0,0,0.10);
}
.about-accordion summary {
    list-style: none;
    padding: 1.15rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
    transition: background 0.15s;
}
.about-accordion summary::-webkit-details-marker { display: none; }
.about-accordion summary:hover { background: var(--bg-soft); }
.about-accordion summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    border-radius: var(--radius-md);
}
.about-accordion summary h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.about-accordion summary::after {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-2);
    border-bottom: 2px solid var(--text-2);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.about-accordion details[open] summary::after {
    transform: rotate(-135deg) translateY(-2px);
}
.about-accordion .accordion-body {
    padding: 0.5rem 1.75rem 1.75rem;
    border-top: 1px solid var(--border);
    color: var(--text-2);
}
.about-accordion .accordion-body h4 {
    margin: 1.5rem 0 0.6rem;
    font-size: 1.02rem;
    color: var(--text);
}
.about-accordion .accordion-body h5 {
    margin: 1.25rem 0 0.4rem;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
}
.about-accordion .accordion-body p { margin: 0 0 1rem; line-height: 1.65; }
.about-accordion .accordion-body ul {
    padding-left: 1.25rem;
    margin: 0 0 1rem;
}
.about-accordion .accordion-body ul li {
    margin: 0.3rem 0;
    line-height: 1.6;
}
.about-accordion .company-address {
    font-style: normal;
    line-height: 1.7;
    margin: 0 0 1.25rem;
}
.about-accordion .info-list {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.55rem 1.5rem;
    margin: 1.25rem 0 0;
}
.about-accordion .info-list dt {
    font-weight: 600;
    color: var(--text);
}
.about-accordion .info-list dd { margin: 0; }
.about-accordion code {
    background: var(--bg-alt);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.92em;
}

@media (max-width: 640px) {
    .about-accordion summary { padding: 1rem 1.25rem; }
    .about-accordion .accordion-body { padding: 0.5rem 1.25rem 1.5rem; }
    .about-accordion .info-list {
        grid-template-columns: 1fr;
        gap: 0.2rem 0;
    }
    .about-accordion .info-list dt { margin-top: 0.6rem; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: #1c1917;
    color: #e5e5e5;
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
}
.site-footer h4 {
    color: #fafafa;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin: 0 0 1.25rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.site-footer p { color: #b8b8b8; font-size: 0.95rem; max-width: 420px; line-height: 1.7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 0.3rem 0; }
.site-footer ul li a { color: #e5e5e5; font-size: 0.95rem; transition: color 0.15s; }
.site-footer ul li a:hover { color: var(--accent); }
.contact-list li {
    color: #b8b8b8;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0.4rem 0;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}
.contact-list .icon { flex: 0 0 1.1em; color: var(--accent); }
.contact-list a { color: #e5e5e5; }
.copyright-bar {
    border-top: 1px solid #3a3633;
    padding-top: 1.5rem;
    color: #8a8580;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    .hero-image { order: 2; }
    .hero-image img { max-width: 480px; }
    .hero-content .lead { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .os-cards { grid-template-columns: 1fr; }
    .driver-section { grid-template-columns: 1fr; gap: 1.25rem; }
    .driver-section .driver-visual { gap: 1rem; }
    .support-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}

@media (max-width: 640px) {
    .nav-toggle { display: block; }
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem var(--pad);
        gap: 0.25rem;
        border-bottom: 1px solid var(--border);
    }
    .main-nav.open ul { display: flex; }
    .main-nav .nav-cta {
        margin-left: 0;
        text-align: center;
        margin-top: 0.5rem;
    }
    section { padding: 3.5rem 0; }
    .hero { padding: 3.5rem 0; }
    .hero.hero-sub .hero-content { flex-direction: column; align-items: flex-start; }
}
