/* Intemation / OwnerCDE — site styles
   Palette matches the OwnerCDE promo sheet. Edit the tokens below to retune the whole site. */

:root {
  --navy: #141A4E;
  --blue: #24508F;
  --steel: #4A78B5;
  --ice: #EAF0F8;
  --line: #D6E1F0;
  --ink: #2E3440;
  --mute: #5E6778;
  --white: #FFFFFF;

  --serif: "Source Serif 4", Cambria, Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", Calibri, Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(48px, 7vw, 80px);   /* vertical rhythm between sections — lower this to compact the site */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 500; margin: 0; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--ice { background: var(--ice); }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--blue); max-width: 34em; }
.measure { max-width: 42em; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: auto; }
.brand-name { font-weight: 600; font-size: 1.1rem; color: var(--navy); letter-spacing: -0.005em; }
.brand-by { font-size: 0.85rem; color: var(--mute); margin-left: 6px; font-weight: 400; }
.nav { display: flex; gap: 28px; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
@media (max-width: 640px) {
  .brand-by { display: none; }
  .nav { gap: 18px; }
  .nav a { font-size: 0.9rem; }
}
@media (max-width: 440px) {
  .brand-name { display: none; }
}

/* ---------- Hero ----------
   The drafting grid behind the hero is the one decorative element on the site. */
.hero {
    position: relative;
    padding: clamp(40px, 6vw, 72px) 0 clamp(44px, 6vw, 76px);
    background: radial-gradient(ellipse 60% 80% at 15% 20%, rgba(255,255,255,.55), transparent 60%),
                radial-gradient(ellipse 50% 70% at 85% 30%, rgba(170,200,228,.9), transparent 65%),
                radial-gradient(ellipse 70% 60% at 60% 100%, rgba(74,120,181,.55), transparent 70%),
                linear-gradient(120deg, #9FBEDB 0%, #7FA6CC 45%, #B8CEE4 100%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy > * + * { margin-top: 1.1rem; }
.questions { border-left: 3px solid var(--steel); padding: 2px 0 2px 16px; font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.45; color: var(--navy); }
.questions p + p { margin-top: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font: 600 0.95rem/1 var(--sans); padding: 14px 22px; border-radius: 6px; text-decoration: none; border: 1.5px solid var(--navy); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--quiet { background: transparent; color: var(--navy); }
.btn--quiet:hover { background: var(--ice); color: var(--navy); }

/* ---------- Screenshots ---------- */
.shot { margin: 0; }
.shot img { border: 1px solid var(--line); border-radius: 6px; background: var(--white); box-shadow: 0 1px 2px rgba(20, 26, 78, .06), 0 12px 32px -12px rgba(20, 26, 78, .22); }
.shot figcaption { font-size: 0.85rem; color: var(--mute); margin-top: 10px; }

/* ---------- Three points ---------- */
.intro { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
.point svg { width: 26px; height: 26px; stroke: var(--blue); margin-bottom: 12px; }
.point p { color: var(--mute); font-size: 0.97rem; margin-top: 6px; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .points { grid-template-columns: 1fr; } }

/* ---------- Audience split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); margin-top: clamp(24px, 3vw, 36px); }
.panel { background: var(--white); border-top: 3px solid var(--navy); padding: clamp(22px, 3vw, 32px); }
.panel--alt { border-top-color: var(--steel); }
.panel > * + * { margin-top: 0.9rem; }
.panel .questions { font-size: 1.02rem; }
.panel ul { margin: 0; padding-left: 1.1rem; color: var(--ink); }
.panel li + li { margin-top: 4px; }
.panel .more { font-weight: 600; font-size: 0.95rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 56px); }
.about .tagline { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; color: var(--blue); margin-top: 12px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #DCE4F2; }
.contact h2 { color: var(--white); }
.contact .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.contact a { color: var(--white); }
.contact-lines { font-size: 1.05rem; line-height: 1.9; }
.contact .btn--primary { background: var(--white); color: var(--navy); border-color: var(--white); }
.contact .btn--primary:hover { background: var(--ice); border-color: var(--ice); color: var(--navy); }
@media (max-width: 820px) { .contact .wrap { grid-template-columns: 1fr; } }

/* ---------- Owner Solutions page ---------- */
.page-head { padding: clamp(36px, 5vw, 60px) 0 clamp(24px, 3vw, 36px); }
.page-head .lede { margin-top: 12px; }
.envs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.env { background: var(--ice); padding: clamp(22px, 3vw, 32px); border-radius: 4px; }
.env-head { display: flex; align-items: center; gap: 12px; }
.env-head svg { width: 28px; height: 28px; stroke: var(--navy); flex: none; }
.env .for { font-family: var(--serif); font-style: italic; color: var(--blue); margin-top: 10px; }
.env ul { margin: 14px 0 0; padding-left: 1.1rem; }
.env li + li { margin-top: 6px; }
@media (max-width: 820px) { .envs { grid-template-columns: 1fr; } }

.integrations { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.5vw, 28px); margin-top: clamp(24px, 3vw, 32px); }
.integration { border-top: 1px solid var(--line); padding-top: 16px; }
.integration p { color: var(--mute); font-size: 0.95rem; margin-top: 6px; }
@media (max-width: 900px) { .integrations { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .integrations { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(20px, 3vw, 32px); align-items: start; margin-top: clamp(24px, 3vw, 32px); }
.gallery .col > * + * { margin-top: clamp(18px, 2vw, 24px); }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: clamp(24px, 3vw, 32px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 600; margin-bottom: 12px; }
.steps p { color: var(--mute); font-size: 0.97rem; margin-top: 6px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 6px; background: var(--ice); }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0; font-size: 0.88rem; color: var(--mute); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--mute); text-decoration: none; margin-left: 20px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { color: var(--navy); }

[hidden] {
    display: none !important;
}

/* ---------- Lightbox (click-to-enlarge) ---------- */
img[data-lightbox] {
    cursor: zoom-in;
}

.lightbox {
    border: 0;
    margin: auto;
    width: min(1200px, 92vw);
    max-width: none;
    max-height: 92vh;
    padding: 56px 64px 44px;
    background: var(--navy);
    border-radius: 8px;
}

    .lightbox::backdrop {
        background: rgba(20, 26, 78, .55);
    }

    .lightbox figure {
        margin: 0;
        padding: 0;
    }

        .lightbox figure img {
            max-width: 100%;
            max-height: 70vh;
            width: auto;
            margin: 0 auto;
            background: #fff;
            border-radius: 4px;
        }

.lb-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

    .lb-btn:hover {
        background: rgba(255,255,255,.22);
    }

    .lb-btn[hidden] {
        display: none;
    }

.lb-close {
    top: 10px;
    right: 10px;
}

.lb-prev {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-next {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-count {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    margin: 0;
    text-align: center;
    color: #AFC0DC;
    font-size: .85rem;
}

@media (max-width: 640px) {
    .lightbox {
        padding: 52px 12px 56px;
    }

    .lb-prev, .lb-next {
        top: auto;
        bottom: 8px;
        transform: none;
    }
}