/* TaloVox — site styles */

/* ---------- Fonts (self-hosted, SIL Open Font License: see fonts/OFL-*.txt) ---------- */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Sora";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/sora-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Sora";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/sora-latin-700-normal.woff2") format("woff2");
}

:root {
    --bg:          #07142b;
    --bg-alt:      #0b1e3f;
    --surface:     #10274f;
    --border:      #1f3a66;
    --text:        #f8fafc;
    --text-muted:  #a3b3c9;
    --accent:      #f97316;
    --accent-dark: #ea580c;
    --sky:         #38bdf8;
    --on-accent:   #1a0b02;
    --merlin:      #38bdf8;
    --tiercel:     #f97316;
    --gyr:         #f8fafc;
    --radius:      14px;
    --max:         1160px;
    --font:        "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head:   "Sora", "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
    display: block;
}

/* Images carry width and height attributes to reserve space; this keeps them in proportion when scaled */
img {
    height: auto;
}

/* Merlin page: its own accent color */
.theme-merlin {
    --accent:      #38bdf8;
    --accent-dark: #0ea5e9;
}

/* ---------- Skip link ---------- */

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 200;
    background: var(--accent);
    color: var(--on-accent);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
    text-decoration: none;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p {
    margin: 0 0 1em;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8em;
}

.muted {
    color: var(--text-muted);
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 20, 43, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-family: var(--font);
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: 0.22em;
}

.logo:hover {
    text-decoration: none;
}

.logo img {
    width: 38px;
    height: 38px;
}

/* The logo's equalizer bars: orange, orange, sky, orange */
.logo .eq {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 24px;
    margin-left: -4px;
}

.logo .eq i {
    display: block;
    width: 3px;
    border-radius: 1px;
    background: var(--accent);
}

.logo .eq i:nth-child(1) { height: 10px; }
.logo .eq i:nth-child(2) { height: 22px; }
.logo .eq i:nth-child(3) { height: 16px; background: var(--sky); }
.logo .eq i:nth-child(4) { height: 8px; }

.nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--text);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 6px 10px;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
    }

    .nav.open {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 20px 16px;
    }

    .nav a {
        display: block;
        padding: 10px 0;
    }
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-ghost {
    border-color: var(--border);
    color: var(--text);
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--text-muted);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.6em;
}

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

.hero {
    padding: 96px 0 72px;
    background:
        radial-gradient(ellipse 60% 50% at 75% 40%, rgba(249, 115, 22, 0.16), transparent 70%),
        radial-gradient(ellipse 50% 60% at 10% 90%, rgba(56, 189, 248, 0.14), transparent 70%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero p.lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 36ch;
}

.hero-art {
    aspect-ratio: 1;
    max-width: 440px;
    justify-self: center;
}

@media (max-width: 860px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-art {
        max-width: 300px;
    }
}

/* ---------- Sections ---------- */

section {
    padding: 88px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 52px;
}

/* ---------- Product cards ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin: 0 auto;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.2s, border-color 0.2s;
    color: var(--text);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-accent, var(--accent));
    text-decoration: none;
}

.product-card .card-art {
    background: var(--bg);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 22px;
}

.product-card .tier {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--card-accent, var(--accent));
}

.product-card h3 {
    font-size: 1.6rem;
    margin: 4px 0 8px;
}

.product-card p {
    color: var(--text-muted);
    flex: 1;
}

.product-card .price {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 8px;
}

.product-card .more {
    color: var(--card-accent, var(--accent));
    font-weight: 600;
    font-size: 0.95rem;
}

.card-merlin  { --card-accent: var(--merlin); }
.card-tiercel { --card-accent: var(--tiercel); }
.card-gyr     { --card-accent: var(--gyr); }

/* ---------- Features ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.feature {
    padding: 4px 0;
}

.feature .icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.14);
    color: var(--accent);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.feature .icon svg {
    width: 24px;
    height: 24px;
}

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

/* ---------- Quote ---------- */

.quote {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.quote blockquote {
    font-family: var(--font-head);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    line-height: 1.4;
    margin: 0 0 20px;
}

.quote cite {
    color: var(--text-muted);
    font-style: normal;
}

/* ---------- Compare table ---------- */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

table.compare {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    background: var(--surface);
}

.compare th,
.compare td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare thead th {
    font-family: var(--font-head);
    font-size: 1.1rem;
    background: var(--bg-alt);
}

.compare tbody th {
    color: var(--text-muted);
    font-weight: 500;
    width: 28%;
}

.compare tr:last-child th,
.compare tr:last-child td {
    border-bottom: none;
}

.compare .c-merlin  { color: var(--merlin); }
.compare .c-tiercel { color: var(--tiercel); }
.compare .c-gyr     { color: var(--gyr); }

/* ---------- Product page ---------- */

.product-hero {
    padding: 72px 0;
}

.product-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.product-hero .art {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
}

.product-hero .price {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0.4em 0 0;
}

.product-hero .lead {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.swatches {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    align-items: center;
}

.swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    padding: 0;
}

.swatch[aria-pressed="true"] {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.swatch-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 6px;
}

@media (max-width: 860px) {
    .product-hero .container {
        grid-template-columns: 1fr;
    }

    .product-hero .art {
        padding: 28px;
    }
}

.highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.highlights div {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 12px;
}

.highlights strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2rem;
    color: var(--accent);
}

.highlights span {
    color: var(--text-muted);
    font-size: 0.92rem;
}

@media (max-width: 760px) {
    .highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

.specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
}

.specs dl {
    margin: 0;
}

.specs .row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.specs dt {
    color: var(--text-muted);
}

.specs dd {
    margin: 0;
    text-align: right;
}

@media (max-width: 760px) {
    .specs {
        grid-template-columns: 1fr;
    }
}

.in-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.in-box li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.94rem;
}

/* ---------- Page header (about/contact) ---------- */

.page-head {
    padding: 80px 0 40px;
}

.page-head p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 60ch;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}

@media (max-width: 860px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid var(--border);
}

.timeline li {
    position: relative;
    padding: 0 0 28px 28px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline strong {
    display: block;
    font-family: var(--font-head);
}

.timeline span {
    color: var(--text-muted);
}

/* ---------- Forms ---------- */

form .field {
    margin-bottom: 18px;
}

form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

form input,
form select,
form textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    font: inherit;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

form textarea {
    min-height: 140px;
    resize: vertical;
}

.form-note {
    display: none;
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.form-note.show {
    display: block;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 20px;
}

.contact-card h3 {
    margin-bottom: 6px;
}

.contact-card p {
    color: var(--text-muted);
    margin: 0;
}

/* ---------- CTA ---------- */

.cta {
    text-align: center;
}

.cta p {
    color: var(--text-muted);
    max-width: 52ch;
    margin: 0 auto;
}

.cta .btn-row {
    justify-content: center;
}

/* ---------- Toast ---------- */

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 140%);
    background: var(--surface);
    border: 1px solid var(--accent);
    color: var(--text);
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
    z-index: 100;
    max-width: calc(100% - 32px);
}

.toast.show {
    transform: translate(-50%, 0);
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
    color: var(--text-muted);
    font-size: 0.93rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-grid h4 {
    color: var(--text);
    font-size: 0.95rem;
    margin: 0 0 12px;
}

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

.footer-grid li {
    margin-bottom: 8px;
}

.footer-grid a {
    color: var(--text-muted);
}

.footer-grid a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- 404 ---------- */

.not-found {
    text-align: center;
    padding: 120px 0;
}

.not-found .code {
    font-family: var(--font-head);
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

/* ---------- About: full logo beside the heading ---------- */

.about-head {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

/* The logo file is a navy card with clear margins at each side, so it is sized a little larger */
.brand-logo {
    width: 100%;
    max-width: 520px;
    justify-self: center;
}

@media (max-width: 860px) {
    .about-head {
        grid-template-columns: 1fr;
    }

    .brand-logo {
        max-width: 360px;
        justify-self: start;
    }
}

/* ---------- Small utilities (replace inline styles, which the security policy blocks) ---------- */

.footer-tagline {
    margin-top: 14px;
}

section.flush-top {
    padding-top: 0;
}

.btn-row.center {
    justify-content: center;
}

.demo-note {
    color: var(--text-muted);
    font-size: 0.92rem;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    margin-bottom: 22px;
}

/* ---------- Color swatches ---------- */

.sw-sky      { background: #38bdf8; }
.sw-slate    { background: #2b3340; }
.sw-sand     { background: #e9e4da; }
.sw-midnight { background: #0b1e3f; }
.sw-ember    { background: #f97316; }
.sw-arctic   { background: #d5dbe3; }
.sw-storm    { background: #3b4250; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .product-card:hover {
        transform: none;
    }
}

/* ---------- Grid overflow guard ---------- */

/* Grid items default to their content's minimum width, so an image's width attribute
   could make a column wider than a phone screen; this lets them shrink instead */
.hero .container > *,
.product-hero .container > *,
.product-grid > *,
.two-col > *,
.about-head > *,
.specs > *,
.footer-grid > * {
    min-width: 0;
}
