@import "fonts.css";
@import "base.css";
@import "header-footer.css";
@import "bricks.css";

/*------------------------*/
/* theme colors
/*------------------------*/

:root {
    --textDarker: #1e282d;
    --textDark: rgba(38, 50, 56, 1);
    --textMedium: rgba(38, 50, 56, 0.7);
    --borderMedium: rgba(38, 50, 56, 0.2);
    --borderLight: rgba(38, 50, 56, 0.075);
    --accent: #285ed1;
    --accentDarker: #1c4291;
    --light: rgba(38, 50, 56, 0.035);
}

/*------------------------*/
/* turn grayscale off
/*------------------------*/

img {
    filter: grayscale(0);
}

/*------------------------*/
/* colorize_image
/*------------------------*/

.colorize_image {
    filter: contrast(1) sepia(1) hue-rotate(160deg) grayscale(0.8) !important;
}

/*------------------------*/
/* black_2_textDark
/*------------------------*/

.map::after,
.black_2_textDark {
    filter: contrast(0.7) sepia(1) hue-rotate(160deg) !important;
}

/*------------------------*/
/* black_2_textMedium
/*------------------------*/

.black_2_textMedium {
    filter: contrast(0.3) sepia(0.3) hue-rotate(160deg) brightness(1.4) !important;
}

/*------------------------*/
/* black_2_accent
/*------------------------*/

.black_2_accent {
    filter: contrast(0.24) sepia(1) hue-rotate(138deg) contrast(6) brightness(1.6) !important;
}

/*------------------------*/
/* Xbow-like Hero
/*------------------------*/

section.intro.xbow-hero {
    position: relative;
    background: linear-gradient(180deg, rgba(40, 94, 209, 0.03) 0%, transparent 100%);
    color: var(--textDark);
    overflow: hidden;
    padding-bottom: 2rem;
    min-height: auto;
}

.xbow-hero h1,
.xbow-hero h2,
.xbow-hero h3,
.xbow-hero h4,
.xbow-hero p,
.xbow-hero li,
.xbow-hero strong {
    color: var(--textDark) !important;
}

.xbow-hero h1 {
    font-weight: 800;
    margin-bottom: 1rem;
}

.xbow-hero p {
    line-height: 1.8;
}

.xbow-hero h3 {
    margin-top: 1.5rem;
}

.xbow-hero-bg {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
}

.xbow-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
}

.hero-svg {
    width: 100%;
    height: 100%;
    opacity: 1;
}

/* Fix mobile alignment for brick_image and brick_image2 */
@media (max-width: 600px) {
    section.image .twocols .image {
        order: 2;
    }
}

/*------------------------*/
/* Logo - prevent wrapping
/*------------------------*/

a.logo {
    white-space: nowrap;
}

a.logo>div>div span {
    display: inline;
}

/*------------------------*/
/* Pricing page (/pricing)
/*------------------------*/

.pricing {
    padding: 3.5rem 0 4rem;
    background: linear-gradient(180deg, rgba(40, 94, 209, 0.04) 0%, transparent 40%);
}

.pricing-head {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto 2rem;
}

.pricing-eyebrow {
    display: inline-block;
    font-family: var(--fontBody);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--accent);
    background: rgba(40, 94, 209, 0.08);
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    margin-bottom: 1.1rem;
}

.pricing-head h1 {
    margin: 0.2rem 0 0.8rem;
    font-size: clamp(1.7rem, 5vw, 3rem);
    line-height: 1.15;
    overflow-wrap: break-word;
}

.pricing-head p {
    color: var(--textMedium);
    line-height: 1.7;
    font-size: 1.05rem;
}

.pricing-cards-head {
    text-align: center;
    max-width: 42rem;
    margin: 4rem auto 2rem;
}

.pricing-cards-head h2 {
    font-size: 1.75rem;
    margin: 0;
}

.pricing-cards-head p {
    color: var(--textMedium);
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0.55rem auto 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    align-items: stretch;
}

@media (max-width: 980px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 30rem;
        margin: 0 auto;
    }
}

.pcard {
    display: flex;
    flex-direction: column;
    text-align: center;
    background: #fff;
    border: 1px solid var(--borderLight);
    border-radius: 20px;
    padding: 2.4rem 1.8rem 2rem;
    box-shadow: 0 1px 2px rgba(38, 50, 56, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    opacity: 0;
    transform: translateY(16px);
    animation: priceUp 0.6s ease forwards;
    animation-delay: var(--d, 0ms);
}

.pcard:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px -18px rgba(40, 94, 209, 0.35);
    border-color: rgba(40, 94, 209, 0.35);
}

@keyframes priceUp {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pcard {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.pcard-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(40, 94, 209, 0.08);
    color: var(--accent);
}

.pcard-icon svg {
    width: 34px;
    height: 34px;
}

.pcard-unit {
    margin: 0;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.pcard-opt {
    font-size: 1.06rem;
    font-weight: 700;
}

.pcard-or {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--textMedium);
}

.pcard-or::before,
.pcard-or::after {
    content: "";
    height: 1px;
    width: 1.5rem;
    background: var(--borderLight);
}

.pcard-price {
    margin: 1.4rem 0 0.4rem;
}

.pcard-price-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--textMedium);
    margin-bottom: 0.3rem;
}

.pcard-amount {
    font-family: var(--fontTitles);
    font-weight: 700;
    font-size: 3.1rem;
    line-height: 1;
    color: var(--accent);
}

.pcard-amount .cur {
    font-size: 1.4rem;
    vertical-align: super;
    margin-right: 0.1rem;
    font-weight: 600;
}

.pcard-includes {
    font-size: 0.8rem;
    color: var(--textMedium);
    margin: 0.6rem auto 0;
    max-width: 18rem;
}

.pcard-divider {
    height: 1px;
    background: var(--borderLight);
    margin: 1.6rem -0.4rem;
}

.pcard-items {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.pitem {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--textDark);
}

.pitem .plus {
    color: var(--accent);
    font-weight: 700;
}

.qty {
    color: var(--accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pcard-cta {
    margin-top: auto;
    display: block;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pcard-cta:hover {
    background: var(--accentDarker);
    transform: translateY(-1px);
    color: #fff;
}

.pricing-disclaimer {
    text-align: center;
    color: var(--textMedium);
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 1.8rem auto 0;
    max-width: 44rem;
}

.pricing-itemized {
    margin: 1.5rem auto 0;
    max-width: 44rem;
    text-align: center;
}

.pricing-itemized h2 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
}

.pi-note {
    color: var(--textMedium);
    margin: 0 auto 1.6rem;
    line-height: 1.6;
}

.pi-table-wrap {
    border: 1px solid var(--borderLight);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(38, 50, 56, 0.04);
}

.pi-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.pi-table th {
    background: var(--accent);
    color: #fff;
    font-family: var(--fontBody);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.9rem 1.2rem;
}

.pi-table th:last-child,
.pi-table td:last-child {
    text-align: right;
}

.pi-table td {
    padding: 0.85rem 1.2rem;
    border-top: 1px solid var(--borderLight);
    color: var(--textDark);
}

.pi-table tbody tr:nth-child(even) {
    background: rgba(40, 94, 209, 0.025);
}

.pi-table tbody tr:hover {
    background: rgba(40, 94, 209, 0.06);
}

.pi-price {
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pi-was {
    color: var(--textMedium);
    font-weight: 600;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    margin-right: 0.35rem;
    opacity: 0.8;
}

.pi-tag {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.08rem 0.5rem;
    border-radius: 999px;
    background: rgba(40, 94, 209, 0.1);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    vertical-align: middle;
    white-space: nowrap;
}

.pi-foot {
    color: var(--textMedium);
    font-size: 0.8rem;
    margin-top: 1rem;
}

/*------------------------*/
/* Modern soft-pill top navigation (desktop)
/*------------------------*/

body:not(.mobilemenu) header .navnav:not(.languages) > ul {
    gap: 0.4rem;
}

/* replace the faint underline with a tinted pill */
body:not(.mobilemenu) header .navnav:not(.languages) > ul > li::after {
    display: none;
}

body:not(.mobilemenu) header .navnav:not(.languages) > ul > li > a {
    padding: 0.55rem 0.95rem;
    border-radius: 0.55rem;
    font-weight: 600;
    transition: background-color 0.18s ease, color 0.18s ease;
}

body:not(.mobilemenu) header .navnav:not(.languages) > ul > li > a:hover {
    background: rgba(40, 94, 209, 0.08);
    color: var(--accent);
}

body:not(.mobilemenu) header .navnav:not(.languages) > ul > li.active > a {
    background: rgba(40, 94, 209, 0.12);
    color: var(--accent);
    font-weight: 700;
}

/* CTA button - subtle lift */
header a.button {
    box-shadow: 0 0.35rem 1rem -0.35rem rgba(40, 94, 209, 0.6);
}

/*------------------------*/
/* Blog photo placeholder slot
/*------------------------*/

.photo-slot {
    margin: 1.8rem 0;
}

.photo-slot__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 200px;
    padding: 2rem;
    text-align: center;
    border: 2px dashed var(--borderMedium);
    border-radius: 0.9rem;
    background: rgba(40, 94, 209, 0.03);
    color: var(--textMedium);
}

.photo-slot__cap {
    font-weight: 600;
    color: var(--textDark);
    max-width: 32ch;
}

.photo-slot__hint {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

.photo-slot svg {
    color: var(--accent);
    opacity: 0.6;
}

/*------------------------*/
/* Inline SVG thumbnail in blog cards
/*------------------------*/

section.posts .grid .item .img svg {
    width: 100%;
    height: auto;
    display: block;
}

/*------------------------*/
/* Gentler post lead paragraph (theme default is 1.52rem)
/*------------------------*/

section.post .container.post p:first-of-type {
    font-size: 1.3rem;
    /* bricks.css:80 sets line-height 1.4 on p:first-child at equal specificity and
       only font-size was being overridden here, so the lead ended up with TIGHTER
       leading than the smaller body text below it. Set both together. */
    line-height: 1.45;
    color: var(--textDark);
}


/*------------------------*/
/* How-to steps: instruction text beside a phone screenshot
/*------------------------*/

.howto-step {
    display: grid;
    grid-template-columns: 1fr 16rem;
    gap: 2.2rem;
    align-items: start;
    margin: 2.2rem 0;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid rgba(13, 27, 42, 0.09);
}

.howto-step:last-of-type {
    border-bottom: 0;
}

.howto-step__body h3 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.7rem;
}

.howto-step__num {
    flex: 0 0 auto;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--fontBody);
    font-size: 1rem;
    line-height: 2.1rem;
    text-align: center;
}

/* keep step text at body size: the post lead rule below uses p:first-of-type,
   which would otherwise enlarge the first paragraph of every step */
section.post .container.post .howto-step p:first-of-type {
    font-size: 1rem;
}

.howto-step__body p:last-child {
    margin-bottom: 0;
}

.howto-step__shot {
    margin: 0;
}

.howto-step__shot a {
    display: block;
    cursor: zoom-in;
}

.howto-step__shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.9rem;
    border: 1px solid rgba(13, 27, 42, 0.12);
    box-shadow: 0 1rem 2.2rem -0.9rem rgba(13, 27, 42, 0.45);
}

@media (max-width: 800px) {
    .howto-step {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }

    .howto-step__shot {
        max-width: 16rem;
    }
}


/*==========================================================================*/
/* TYPOGRAPHY PASS — typeface-independent fixes
/*
/* These do not change Signika/Heebo. They fix the type SYSTEM: which font
/* each heading actually gets, reading measure, contrast, tracking, and the
/* mobile root size. This file @imports base.css/bricks.css at the top, so
/* everything here is later in the cascade and wins at equal specificity.
/*==========================================================================*/

/*------------------------*/
/* 1. Root size — was clamp(14px, 2vw, 16px), which pinned to 16px on every
/*    laptop and 14px on every phone. rem here resolves against the reader's
/*    own browser default, so it respects their preference.
/*------------------------*/

html {
    font-size: clamp(1.0625rem, 1rem + 0.15vw, 1.125rem);
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*------------------------*/
/* 2. Muted tier — the system had only 13:1 and 5:1 with nothing between,
/*    so metadata ended up DARKER than the headline above it.
/*------------------------*/

:root {
    --textMuted: rgba(38, 50, 56, 0.62);
    --fontMono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
        "Liberation Mono", monospace;
}

/*------------------------*/
/* 3. Headings use the display face everywhere.
/*    base.css:193 puts `.container.post h2` (0,2,1) in the --fontBody group,
/*    which outranks the bare `h2` in the --fontTitles group at :203. And h3/h4
/*    were never in either group, so they inherited the body font. Net result:
/*    inside a blog post the display face rendered on the h1 and nothing else.
/*------------------------*/

.container.post h2,
section.docs h2,
h1,
h2,
h3,
h4 {
    font-family: var(--fontTitles);
}

/*------------------------*/
/* 4. Optical tracking. There were nine letter-spacing declarations site-wide
/*    and not one of them was on a heading. Display sizes need it negative.
/*------------------------*/

h1 {
    letter-spacing: -0.021em;
}

h2 {
    letter-spacing: -0.015em;
}

h3,
a.logo {
    letter-spacing: -0.01em;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

/*------------------------*/
/* 5. Body contrast. base.css:255 ran every section at --textMedium = 5.09:1
/*    when --textDark (13.16:1) was already available. Anything more specific
/*    (white text on dark sections) still wins over this.
/*------------------------*/

section {
    color: var(--textDark);
}

/* h4 and in-post h3 were the SAME colour as the paragraphs they introduce */
.container.post h3,
section.docs h3,
h4 {
    color: var(--textDark);
    font-weight: 600;
}

/* metadata belongs below the headline, not above it */
section.post .container .meta,
section.post .container .meta a {
    color: var(--textMuted);
}

/* inline links in prose were identical in colour to the prose around them */
section.post .container.post a {
    color: var(--accent);
    text-decoration-thickness: 0.06em;
    text-underline-offset: 0.18em;
}

section.post .container.post a:hover {
    color: var(--accentDarker);
}

/*------------------------*/
/* 6. Reading measure. section.post .container is 50rem; with .container's own
/*    clamp(1rem,4vw,3rem) padding that gave 704px of text = 101 characters per
/*    line (measured against Heebo's real 0.4339em average advance over all
/*    13,698 characters of the post corpus). Target is 60-75.
/*    Scoped to .container.post so the title block and hero image stay wide.
/*------------------------*/

section.post .container.post {
    /* Column width and type size move together — widening alone pushes the line
       past a readable length. Heebo averages 0.4339em over the real post corpus
       (measured, 13,698 glyphs), so at 44rem the content box is 684px and prose
       at 1.12rem (20.2px) gives 684 / (20.2 x 0.4339) = ~78 characters per line.
       The original was almost this exact width (704px) but at 16px, which put it
       at 101 characters — the fix was never a narrower column, it was bigger type
       holding fewer characters across the same span.
       If the body face ever changes, re-derive BOTH numbers from its own average
       advance — a wider face needs a wider column to hold the same count. */
    max-width: 44rem;
}

section.post .container.post p,
section.post .container.post li {
    font-size: 1.12rem;
    line-height: 1.62;
}

/* the title block sat at 50rem over a 36rem text column, which made the article
   look pinched under its own heading; keep it one small step wider than the text */
section.post .container {
    max-width: 48rem;
}

/*------------------------*/
/* 7. In-post scale. Was h1 3.25 / h2 1.25 / h3 1.1 / body 1 — one cliff, then
/*    three steps within 25% of each other, which is why an article read as a
/*    single undifferentiated block. Selectors are (0,3,1) to beat base.css:94
/*    and base.css:111, which are (0,2,1).
/*------------------------*/

section.post .container.title h1 {
    font-size: 2.8rem;
    line-height: 1.12;
}

section.post .container.post h2 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-top: 2.75rem;
    margin-bottom: 0.6rem;
    padding-top: 0;
}

section.post .container.post h3 {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-top: 1.9rem;
    margin-bottom: 0.4rem;
    padding-top: 0;
}

/*------------------------*/
/* 8. Prose leading is 1.7 on <html>, so every button, nav link and table cell
/*    inherited it too — a 49.6px button box on 16px text.
/*------------------------*/

.button,
button,
a.button {
    line-height: 1.25;
}

header .navnav > ul > li > a {
    line-height: 1.3;
}

.pi-table td,
.pi-table th {
    line-height: 1.35;
}

/*------------------------*/
/* 9. Monospace voice. base.css styles pre and code but declares no
/*    font-family, so both fell through to the UA default. Use the system mono
/*    stack for now — swapping in a real woff2 later is one token change.
/*------------------------*/

pre,
code,
kbd,
samp {
    font-family: var(--fontMono);
    font-feature-settings: "calt" 0;
}

:not(pre) > code {
    font-size: 0.875em;
    background: rgba(40, 94, 209, 0.07);
    color: var(--accentDarker);
    padding: 0.1em 0.35em;
    border-radius: 0.25rem;
}


/*------------------------*/
/* Hero h1. custom_blue.css:86 asks for weight 800, which Signika does not ship
/* (700 is its only weight), so that declaration is inert and this pins the real
/* value. Keep it if the display face is ever swapped for one that HAS an 800 —
/* otherwise the hero jumps a step bolder and wraps onto two lines.
/*------------------------*/

.xbow-hero h1 {
    font-weight: 700;
    letter-spacing: -0.022em;
}

/*------------------------*/
/* App Store / Google Play badges
/*
/* Apple's SVG ink fills its 119.66x40 canvas. Google's PNG carries 41px of
/* built-in clear space inside 646x250, so its ink is 0.672 of the canvas — it
/* needs 1/0.672 = 1.488x the height to look the same size. Both derive from
/* --badge-h so they can never drift apart.
/*------------------------*/

.store-badges {
    --badge-h: 2.6rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* they sit in the IRIS brick's left-aligned text column, not a centred hero */
    justify-content: flex-start;
    gap: 0.85rem;
    margin-top: 1.6rem;
}

/* the twocols layout stacks and centres on narrow screens */
@media (max-width: 600px) {
    .store-badges {
        justify-content: center;
    }
}

.store-badge {
    display: inline-flex;
    border-radius: 0.5rem;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.86;
}

.store-badge:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Scoped through .store-badges so these are (0,2,1). The hero lives inside
   section.intro, and bricks.css:40 sets `section.intro img { margin: 3rem auto 0;
   width: 38rem }` at (0,1,2) — that outranks a bare `.store-badge img` (0,1,1),
   which stretched the Play PNG to the container width and pushed each badge onto
   its own line. Apple's SVG has a viewBox so it letterboxed and looked fine,
   which is what made this hard to spot. */
.store-badges .store-badge img {
    display: block;
    width: auto;
    margin: 0;
}

.store-badges .store-badge--apple img {
    height: var(--badge-h);
}

.store-badges .store-badge--google img {
    height: calc(var(--badge-h) * 1.488);
    /* cancel the asset's own clear space so both badges sit on the same baseline */
    margin: calc(var(--badge-h) * -0.244) 0;
}

@media (prefers-reduced-motion: reduce) {
    .store-badge {
        transition: none;
    }

    .store-badge:hover {
        transform: none;
    }
}
