/* Transnimo — shared styles */

@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../assets/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../assets/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy-950: #0A1628;
    --navy-900: #0F1F38;
    --navy-800: #17304F;
    --line: #2A4066;
    --line-soft: rgba(42, 64, 102, 0.5);
    --ink-100: #EDF1F7;
    --ink-300: #B7C3D6;
    --paper: #F6F4EF;
    --paper-line: #DEDACD;
    --ink-dark: #101B2E;
    --ink-dark-soft: #4C5A70;
    --signal: #E8A33D;
    --signal-dim: #C98424;
    --radius: 3px;
    --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    background: var(--navy-950);
    color: var(--ink-300);
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif;
    color: var(--ink-100);
    line-height: 1.15;
    margin: 0 0 0.5em;
    font-weight: 600;
}

.on-light h1, .on-light h2, .on-light h3, .on-light h4 { color: var(--ink-dark); }

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--signal); text-decoration: none; }
a:hover { color: var(--signal-dim); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 2px;
}

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

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

.site-header {
    border-bottom: 1px solid var(--line-soft);
    background: var(--navy-950);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ink-100);
    letter-spacing: -0.01em;
}

.logo:hover { color: var(--ink-100); opacity: 0.85; }

.main-nav { display: flex; align-items: center; gap: 32px; }

.main-nav a {
    color: var(--ink-300);
    font-size: 0.95rem;
    font-weight: 500;
}

.main-nav a:hover { color: var(--ink-100); }
.main-nav a[aria-current="page"] { color: var(--ink-100); }

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--signal);
    color: var(--navy-950);
}

.btn-primary:hover { background: var(--signal-dim); color: var(--navy-950); }

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink-100);
}

.btn-ghost:hover { border-color: var(--signal); color: var(--ink-100); }

.on-light .btn-ghost { border-color: var(--ink-dark-soft); color: var(--ink-dark); }

/* ---------- Hero (home) ---------- */

.hero {
    padding: 88px 0 96px;
    border-bottom: 1px solid var(--line-soft);
}

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

.hero-eyebrow-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-300);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.hero-eyebrow-line .dot {
    width: 7px; height: 7px;
    background: var(--signal);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--line-soft);
}

.page-hero .section-head { margin-bottom: 0; }

/* Manifest mock panel */

.manifest {
    background: var(--navy-900);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.manifest-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--ink-300);
    display: flex;
    justify-content: space-between;
}

.manifest-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.88rem;
}

.manifest-row:last-child { border-bottom: none; }

.manifest-id { font-family: 'Space Grotesk', sans-serif; color: var(--ink-100); font-size: 0.85rem; }

.tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    color: var(--ink-300);
    white-space: nowrap;
}

.tag-import { border-color: #3B6EA5; color: #8FB4E0; }
.tag-repo { border-color: #4A8768; color: #8FCBA6; }
.tag-laden { border-color: #8A6E3B; color: #E0BE8F; }
.tag-offhire { border-color: var(--line); color: var(--ink-300); }
.tag-cargo { border-color: #6E5B96; color: #C3B2E6; }

.manifest-route { color: var(--ink-300); }

.status { font-size: 0.78rem; font-weight: 600; }
.status-transit { color: var(--signal); }
.status-assigned { color: #8FB4E0; }
.status-complete { color: #8FCBA6; }
.status-created { color: var(--ink-300); }

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

.section { padding: 88px 0; border-bottom: 1px solid var(--line-soft); }
.section.on-light { background: var(--paper); border-bottom-color: var(--paper-line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section:last-of-type { border-bottom: none; }

/* Highlights / feature grids */

.highlights,
.feature-grid {
    display: grid;
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}

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

.highlight-card {
    background: var(--navy-950);
    padding: 32px;
}

.highlight-card h3 { margin-bottom: 10px; }
.highlight-card p { margin: 0; font-size: 0.95rem; }

/* Order type catalog */

.order-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
}

.order-card {
    background: var(--navy-950);
    padding: 22px 26px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.order-card .tag { margin-top: 3px; flex-shrink: 0; }
.order-card p { margin: 0; font-size: 0.9rem; }

/* Fix: cards inside on-light sections need a light surface,
   otherwise .on-light's dark text color has nothing to contrast against */
.on-light .highlight-card,
.on-light .order-card {
    background: #FFFFFF;
}

.on-light .highlight-card p,
.on-light .order-card p {
    color: var(--ink-dark-soft);
}

.on-light .highlights,
.on-light .feature-grid,
.on-light .order-grid {
    background: var(--paper-line);
    border-color: var(--paper-line);
}

/* Audience strip */

.audience-strip { padding: 40px 0; border-bottom: 1px solid var(--line-soft); }

.audience-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    color: var(--ink-100);
}

.audience-list li { display: flex; align-items: center; gap: 10px; }
.audience-list li::before { content: ''; width: 6px; height: 6px; background: var(--signal); border-radius: 50%; }
.audience-list li:first-child::before { display: none; }

/* Pricing preview */

.pricing-preview {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 32px;
    border: 1px solid var(--paper-line);
    padding: 40px;
    border-radius: var(--radius);
    background: #FFFFFF;
}

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

.price-table {
    background: #FFFFFF;
    border: 1px solid var(--paper-line);
    border-radius: var(--radius);
    overflow: hidden;
}

.price-table-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 22px 28px;
    border-bottom: 1px solid var(--paper-line);
}

.price-table-row:last-child { border-bottom: none; }
.price-table-row.is-base { background: var(--paper); }

.price-band-label { font-family: 'Space Grotesk', sans-serif; color: var(--ink-dark); font-weight: 600; }
.price-band-sub { font-size: 0.85rem; color: var(--ink-dark-soft); margin-top: 2px; }
.price-band-rate { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--ink-dark); text-align: right; white-space: nowrap; }
.price-band-amount { color: var(--ink-dark-soft); text-align: right; font-size: 0.9rem; white-space: nowrap; }

/* ---------- Calculator ---------- */

.calculator {
    background: var(--navy-900);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.calc-input-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--ink-300);
    margin-bottom: 8px;
}

.calc-input-group input[type="number"] {
    width: 100%;
    background: var(--navy-950);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--ink-100);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
}

.calc-input-group input[type="number"]:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 2px;
}

.calc-result { text-align: right; }
.calc-result .calc-label { font-size: 0.9rem; color: var(--ink-300); margin-bottom: 6px; }
.calc-result .calc-figure { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--ink-100); }

.calc-breakdown {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line-soft);
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--ink-300);
}

.calc-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

/* Note card */

.note-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 28px 32px;
}

/* ---------- Prose (About) ---------- */

.prose { max-width: 640px; }
.prose p { font-size: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Fact grid (About) ---------- */

.fact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 40px;
}

.fact-item dt {
    font-size: 0.8rem;
    color: var(--ink-dark-soft);
    margin: 0 0 4px;
    font-weight: 600;
}

.fact-item dd {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--ink-dark);
    font-size: 1.05rem;
    font-weight: 600;
}

/* ---------- Contact form ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: start;
}

.contact-form {
    background: var(--navy-900);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 40px;
}

.form-row { margin-bottom: 22px; }
.form-row:last-of-type { margin-bottom: 0; }

.form-row label {
    display: block;
    font-size: 0.9rem;
    color: var(--ink-300);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-row .required { color: var(--signal); }

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
    width: 100%;
    background: var(--navy-950);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--ink-100);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.95rem;
}

.form-row textarea { resize: vertical; min-height: 120px; }

.form-row input:focus-visible,
.form-row textarea:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 1px;
}

/* Honeypot field — hidden from real users, catches simple bots */
.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-note {
    font-size: 0.85rem;
    color: var(--ink-300);
    margin-top: 18px;
    margin-bottom: 0;
}

/* Contact info panel */

.contact-info-panel {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 32px;
}

.contact-info-item { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-item:first-child { padding-top: 0; }

.contact-info-item dt {
    font-size: 0.8rem;
    color: var(--ink-300);
    margin-bottom: 6px;
    font-weight: 600;
}

.contact-info-item dd {
    margin: 0;
    color: var(--ink-100);
    font-size: 0.98rem;
}

/* ---------- Legal pages ---------- */

.legal-doc { max-width: 760px; }

.legal-updated {
    font-size: 0.85rem;
    color: var(--ink-dark-soft);
    margin-bottom: 40px;
}

.legal-doc h2 {
    font-size: 1.25rem;
    margin-top: 2.2em;
}

.legal-doc h2:first-of-type { margin-top: 0; }

.legal-doc h3 {
    font-size: 1.02rem;
    margin-top: 1.5em;
}

.legal-doc p,
.legal-doc li {
    font-size: 0.98rem;
    max-width: none;
    color: var(--ink-dark-soft);
}

.legal-doc ul,
.legal-doc ol {
    padding-left: 1.3em;
    margin: 0 0 1em;
}

.legal-doc li { margin-bottom: 0.4em; }

.legal-doc strong { color: var(--ink-dark); }

.legal-nav {
    display: flex;
    gap: 24px;
    margin-bottom: 8px;
}

.legal-nav a { font-size: 0.9rem; }
.legal-nav a[aria-current="page"] { color: var(--ink-dark); font-weight: 600; }

.note-card h3 { margin-bottom: 8px; }
.note-card p { margin-bottom: 0; }

.price-figure { font-family: 'Space Grotesk', sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--ink-dark); }
.price-figure span { font-size: 1rem; font-weight: 500; color: var(--ink-dark-soft); }

/* CTA banner */

.cta-banner { padding: 80px 0; text-align: left; }

.cta-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.cta-banner h2 { margin-bottom: 0; max-width: 480px; }

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

.site-footer { background: var(--navy-900); padding: 56px 0 32px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line-soft);
}

.footer-grid h4 { font-size: 0.85rem; color: var(--ink-300); font-weight: 600; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--ink-300); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--ink-100); }

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--ink-300);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .hero .container { grid-template-columns: 1fr; }
    .highlights,
    .feature-grid,
    .contact-grid { grid-template-columns: 1fr; }
    .fact-grid { grid-template-columns: 1fr; }
    .order-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .main-nav { display: none; }
}