:root {
    --navy: #0f3466;
    --navy-deep: #0a2449;
    --red: #b5182e;
    --gold: #a8833a;
    --gold-soft: #e9dcc0;
    --ink: #1c2433;
    --muted: #5a6475;
    --bg: #ffffff;
    --bg-alt: #f6f3ec;
    --line: #e4e0d6;
    --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
}

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

a { color: var(--navy); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 .75em;
}

.lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.brand-name span { color: var(--gold); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink); font-size: 1rem; }
.nav a:hover { color: var(--red); }
.nav .nav-cta { color: #fff; background: var(--navy); padding: 8px 16px; border-radius: 6px; }
.nav .nav-cta:hover { color: #fff; background: var(--red); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #961326; }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-lg { font-size: 1.1rem; padding: 16px 28px; }

/* Hero */
.hero {
    background:
        linear-gradient(to bottom, transparent 0 calc(100% - 4px), var(--red) calc(100% - 4px)),
        radial-gradient(ellipse at 85% 40%, var(--gold-soft) 0, transparent 55%),
        var(--bg);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 48px;
}
.hero { padding: 72px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-mark { width: 100%; max-width: 380px; justify-self: center; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 40px; }

/* Product cards */
/* 300px is the narrowest card that keeps the logo and the longest name on one line. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--navy);
    border-radius: 8px;
    padding: 28px;
    container-type: inline-size;
    box-shadow: 0 1px 2px rgba(15, 52, 102, .05);
    transition: box-shadow .2s, transform .2s, border-top-color .2s;
}
.card:hover { box-shadow: 0 10px 28px rgba(15, 52, 102, .12); transform: translateY(-2px); border-top-color: var(--red); }
.card p { color: var(--muted); margin: 0 0 1em; }
.card .tag {
    align-self: flex-start;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 999px;
    padding: 2px 10px;
}
.card-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.card-head h3 { margin: 0; font-size: 1.2rem; }
.app-logo { width: 48px; height: 48px; flex: none; object-fit: contain; border-radius: 12px; }
/* Trademark sign after product names: small and raised, without changing line height. */
.tm { font-size: .55em; vertical-align: super; line-height: 0; margin-left: .05em; }
/* Wide enough for a 64px logo beside the longest name ("CallSheet Studio™") on one line. */
@container (min-width: 280px) {
    .card-head { gap: 16px; }
    .card-head h3 { font-size: 1.35rem; }
    .app-logo { width: 64px; height: 64px; border-radius: 16px; }
}
.card .status {
    align-self: flex-start;
    font-size: .8rem;
    font-weight: 700;
    color: var(--navy);
    background: var(--bg-alt);
    border-radius: 4px;
    padding: 2px 8px;
}
.points { margin: 0 0 1.5em; padding: 0; list-style: none; font-size: .98rem; }
.points li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}
.card-link { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--red); }
.card-link:hover { text-decoration: underline; }
.note { margin-top: 32px; color: var(--muted); font-size: 1rem; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principle .num { display: block; font-family: var(--serif); font-size: 2rem; color: var(--red); margin-bottom: 8px; }
.principle p { color: var(--muted); margin: 0; }

/* Contact */
.contact { background: var(--navy); color: #fff; }
.contact h2 { color: #fff; }
.contact .lede { color: #c9d3e3; }
.contact .eyebrow { color: var(--gold-soft); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #9fb0c9; font-size: .9rem; padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner img { width: 140px; background: #fff; border-radius: 6px; padding: 6px 10px; }
.footer-inner p { margin: 0; }
.footer-text { flex: 1 1 320px; max-width: 640px; text-align: right; }
.footer-text .legal { margin-top: 6px; font-size: .78rem; line-height: 1.5; color: #7d8fab; }
.card sup { font-size: .6em; line-height: 0; }

@media (max-width: 560px) {
    .footer-text { text-align: left; }
}

/* Responsive */
@media (max-width: 900px) {
    .principles { grid-template-columns: 1fr; }
    .hero { padding: 40px 0 64px; }
    .hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .hero-mark { max-width: 160px; grid-row: 1; justify-self: start; }
}

@media (max-width: 560px) {
    body { font-size: 17px; }
    .wrap { padding: 0 16px; }
    .nav { gap: 16px; }
    .nav a:not(.nav-cta) { display: none; }
    .section { padding: 64px 0; }
    .btn-lg { width: 100%; text-align: center; font-size: 1rem; word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .card, .btn { transition: none; }
    .card:hover { transform: none; }
}
