/* ===========================================================================
   NordIQ AI — shared site styles
   ===========================================================================
   One stylesheet for a company that now sells two products. Each product gets
   an accent and nothing else: same layout, same rhythm, same components, so a
   visitor who lands on either page recognises the other as a sibling rather
   than as a different company.

   Scope the accent by putting data-product on <body>.
   =========================================================================== */

:root {
    /* Company */
    --navy:        #0F172A;
    --charcoal:    #1E293B;
    --slate:       #475569;
    --muted:       #64748B;
    --line:        #E2E8F0;
    --wash:        #F8FAFC;
    --white:       #FFFFFF;

    /* Default accent — NordIQ ice blue */
    --accent:      #0EA5E9;
    --accent-dark: #0284C7;
    --accent-wash: #E0F2FE;
    --surface:     #FFFFFF;
    --page:        #FFFFFF;

    --success:     #10B981;
    --warning:     #F59E0B;

    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    --font-mono:  'JetBrains Mono', 'Cascadia Code', Consolas, monospace;

    --max:        1180px;
    --radius:     10px;
    --radius-lg:  16px;
    --shadow:     0 1px 3px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
    --shadow-lg:  0 24px 64px rgba(15,23,42,.14);
}

/* Loki Studio — the cold, precise one. */
body[data-product="loki"] {
    --accent:      #0EA5E9;
    --accent-dark: #0369A1;
    --accent-wash: #E0F2FE;
}

/* Scriptorium — parchment and ink, lifted from the app itself so the site and
   the product do not look like two different things. */
body[data-product="scriptorium"] {
    --accent:      #8A6B2F;
    --accent-dark: #6B5122;
    --accent-wash: #F5EFE2;
    --page:        #FBF8F2;
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--charcoal);
    background: var(--page);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 .5em;
    font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

/* --- Layout ------------------------------------------------------------ */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--wash { background: var(--wash); }
body[data-product="scriptorium"] .section--wash { background: #F5EFE2; }

.lede {
    font-size: 1.18rem;
    color: var(--slate);
    max-width: 62ch;
}
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

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

@media (max-width: 900px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
}

/* --- Header ------------------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap {
    display: flex; align-items: center; gap: 28px;
    height: 66px;
}
.brand {
    font-weight: 700; color: var(--navy); font-size: 1.05rem;
    display: flex; align-items: center; gap: 9px; text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__mark {
    width: 26px; height: 26px; border-radius: 7px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: grid; place-items: center; color: #fff; font-size: .8rem;
}
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--slate); font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--accent-dark); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }

@media (max-width: 820px) {
    .site-nav { display: none; }
}

/* --- Buttons ----------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 24px; border-radius: var(--radius);
    font-weight: 600; font-size: 1rem; cursor: pointer;
    border: 1px solid transparent; transition: transform .12s, box-shadow .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--navy); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* --- Hero -------------------------------------------------------------- */
.hero { padding: 80px 0 64px; }
.hero__eyebrow {
    display: inline-block; padding: 5px 13px; border-radius: 100px;
    background: var(--accent-wash); color: var(--accent-dark);
    font-size: .82rem; font-weight: 600; letter-spacing: .02em;
    margin-bottom: 20px;
}
.hero__note { color: var(--muted); font-size: .92rem; margin-top: 16px; }

.shot {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    overflow: hidden;
}
.shot figcaption {
    padding: 12px 16px; font-size: .88rem; color: var(--muted);
    background: var(--surface); border-top: 1px solid var(--line);
}

/* --- Cards ------------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
    width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px;
    background: var(--accent-wash); color: var(--accent-dark);
    display: grid; place-items: center; font-size: 1.1rem;
}

/* A card that is a link to a whole product. */
.product-card {
    display: block; padding: 34px; border-radius: var(--radius-lg);
    border: 1px solid var(--line); background: var(--surface);
    transition: transform .15s, box-shadow .15s, border-color .15s;
    color: inherit;
}
.product-card:hover {
    text-decoration: none; transform: translateY(-3px);
    box-shadow: var(--shadow-lg); border-color: var(--accent);
}
.product-card__tag {
    font-size: .78rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted);
}
.product-card h3 { font-size: 1.6rem; margin: 8px 0 10px; }
.product-card__more { color: var(--accent-dark); font-weight: 600; }

/* --- Pricing ----------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 780px) { .price-grid { grid-template-columns: 1fr; } }

.plan {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 34px; position: relative;
}
.plan--featured { border-color: var(--accent); border-width: 2px; }
.plan__badge {
    position: absolute; top: -13px; left: 34px;
    background: var(--accent-dark); color: #fff;
    padding: 4px 14px; border-radius: 100px;
    font-size: .78rem; font-weight: 700;
}
.plan__price { font-size: 3rem; font-weight: 800; color: var(--navy); line-height: 1; }
.plan__price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan__was { color: var(--muted); text-decoration: line-through; font-size: 1.2rem; margin-right: 8px; }

.ticks { list-style: none; padding: 0; margin: 22px 0; }
.ticks li { padding: 7px 0 7px 28px; position: relative; color: var(--slate); }
.ticks li::before {
    content: "✓"; position: absolute; left: 0; top: 7px;
    color: var(--success); font-weight: 700;
}
.ticks li.no { color: var(--muted); }
.ticks li.no::before { content: "—"; color: var(--muted); }

/* --- Comparison table --------------------------------------------------- */
.table-scroll { overflow-x: auto; }
table.compare {
    width: 100%; border-collapse: collapse; font-size: .96rem;
    background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
}
table.compare th, table.compare td {
    padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line);
}
table.compare thead th {
    background: var(--wash); color: var(--navy); font-weight: 700; font-size: .9rem;
}
body[data-product="scriptorium"] table.compare thead th { background: #F5EFE2; }
table.compare td.yes { color: var(--success); font-weight: 700; }
table.compare td.no  { color: var(--muted); }
table.compare tr:last-child td { border-bottom: 0; }

/* --- Steps / story ------------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__n {
    flex: 0 0 34px; height: 34px; border-radius: 50%;
    background: var(--accent-wash); color: var(--accent-dark);
    display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.step h3 { margin: 3px 0 4px; font-size: 1.08rem; }
.step p { margin: 0; color: var(--slate); }

/* --- Quote / proof ------------------------------------------------------ */
.quote {
    border-left: 3px solid var(--accent);
    padding: 6px 0 6px 24px; margin: 0;
    font-family: var(--font-serif); font-size: 1.28rem; line-height: 1.5;
    color: var(--navy);
}
.quote cite { display: block; margin-top: 12px; font-size: .92rem;
    font-family: var(--font-sans); font-style: normal; color: var(--muted); }

/* --- FAQ ---------------------------------------------------------------- */
.faq details {
    border-bottom: 1px solid var(--line); padding: 18px 0;
}
.faq summary {
    cursor: pointer; font-weight: 600; color: var(--navy); font-size: 1.05rem;
    list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-dark); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--slate); }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
    background: var(--navy); color: #CBD5E1; padding: 56px 0 32px; margin-top: 0;
}
.site-footer h4 { color: #fff; font-size: .88rem; letter-spacing: .06em;
    text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #CBD5E1; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 22px;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: .88rem; color: #94A3B8;
}

/* --- Utility ------------------------------------------------------------ */
.stack > * + * { margin-top: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
