/* --------------------------------------------------------------
   Infflow — "coming soon" landing page.
   The only stylesheet; loaded by index.html, which holds the markup.
   Font files are referenced relative to this file (same folder).
   -------------------------------------------------------------- */

/* --------------------------------------------------------------
   Fonts — self-hosted EB Garamond (latin subset, SIL OFL).
   No third-party requests at runtime.
   -------------------------------------------------------------- */
@font-face {
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('ebgaramond-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'EB Garamond';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('ebgaramond-latin-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                   U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------
   Tokens
   -------------------------------------------------------------- */
:root {
    --bg: #F4F0E8;
    --ink: #171715;
    --ink-soft: #59564F;
    --rule: #D6D0C5;
    --card-bg: #FBF8F1;
    --card-border: rgba(23, 23, 21, 0.12);
    --connector: rgba(23, 23, 21, 0.22);
    --arc: rgba(23, 23, 21, 0.15);

    /* Accents — used only inside the miniature diagrams. */
    --coral: #F3A6A1;
    --yellow: #F7C45E;
    --blue: #95C8E8;
    --green: #B7D59A;
    --mint: #A9D7CD;
    --purple: #C8AFE5;

    --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
            'Helvetica Neue', Arial, sans-serif;

    --gutter: clamp(24px, 5.5vw, 90px);
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------
   Decorative background shapes (max two, per the approved concept)
   Fixed + clipped so they can never create a scrollbar.
   -------------------------------------------------------------- */
.page-decor {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.page-decor span {
    position: absolute;
    border-radius: 50%;
    display: block;
}
.decor--cream {
    width: clamp(300px, 34vw, 470px);
    aspect-ratio: 1;
    top: -18%;
    right: -9%;
    background: #F1E3CB;
    opacity: 0.45;
}
.decor--sage {
    width: clamp(340px, 42vw, 580px);
    aspect-ratio: 1;
    bottom: -30%;
    right: -13%;
    background: #DAE5D6;
    opacity: 0.38;
}

/* --------------------------------------------------------------
   Page frame
   -------------------------------------------------------------- */
.landing {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: clamp(22px, 4vh, 45px);
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(28px, 4.5vh, 54px) var(--gutter) clamp(32px, 5vh, 60px);
    max-width: 1600px;
    margin: 0 auto;
}

/* Header ------------------------------------------------------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: clamp(18px, 2.6vh, 30px);
    border-bottom: 1px solid var(--rule);
}

.wordmark {
    display: block;
    width: clamp(105px, 30vw, 125px);
    height: auto;
}

.status {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
    white-space: nowrap;
}

/* Hero --------------------------------------------------------- */
.hero {
    display: grid;
    gap: clamp(38px, 6vh, 60px);
    align-content: center;
}

.headline {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.6rem, 12vw, 3.3rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.lede {
    margin: clamp(18px, 2.6vh, 26px) 0 0;
    max-width: 30em;
    font-size: clamp(1rem, 4vw, 1.125rem);
    line-height: 1.55;
    color: var(--ink-soft);
}

/* Status pill — deliberately non-interactive (no link, no button) */
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: clamp(24px, 3.4vh, 34px);
    min-width: 158px;
    height: 48px;
    padding: 0 32px;
    border-radius: 999px;
    background: var(--ink);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-cue {
    margin: 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1rem, 3.6vw, 1.125rem);
    line-height: 1.4;
    color: var(--ink-soft);
}

/* --------------------------------------------------------------
   Diagram showcase
   -------------------------------------------------------------- */
.showcase {
    position: relative;
    display: grid;
    gap: clamp(16px, 2.4vh, 26px);
}

.connectors {
    display: none;
    position: absolute;
    inset: -4% -6%;
    width: 112%;
    height: 108%;
    z-index: 0;
}
.connectors path {
    fill: none;
    stroke: var(--arc);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}
.connector-node {
    display: none;
    position: absolute;
    top: calc(36.3% - 4.5px);
    left: calc(95.6% - 4.5px);
    width: 9px;
    height: 9px;
    border: 1.5px solid rgba(23, 23, 21, 0.3);
    border-radius: 50%;
    background: var(--bg);
    z-index: 0;
}

.card {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: clamp(14px, 2vw, 18px) clamp(16px, 2vw, 20px) clamp(16px, 2vw, 20px);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(23, 23, 21, 0.05);
}

.card-label {
    display: block;
    margin-bottom: clamp(10px, 1.6vh, 16px);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.card svg {
    display: block;
    width: 100%;
    height: auto;
}

.diagram-line {
    stroke: var(--connector);
    stroke-width: 1.2;
    fill: none;
    stroke-linecap: round;
}
.diagram-arrow {
    stroke: var(--connector);
    stroke-width: 1.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* A washed accent — the tinted band that groups nodes inside a diagram. */
.n-wash { opacity: 0.3; }

/* Boxes drawn on top of a washed band: card-coloured with a hairline edge.
   .node-head is the emphasised version used for a comparison column title. */
.node-box,
.node-head {
    fill: var(--card-bg);
    stroke: var(--connector);
    stroke-width: 1.2;
}
.node-head {
    stroke: var(--ink);
    stroke-opacity: 0.7;
    stroke-width: 1.4;
}

/* The rail that drops from each comparison column header. */
.lane-rule {
    fill: none;
    stroke: var(--connector);
    stroke-width: 1.2;
}

/* Diagram node fills — the token block above is the single source of truth. */
.n-coral  { fill: var(--coral); }
.n-yellow { fill: var(--yellow); }
.n-blue   { fill: var(--blue); }
.n-green  { fill: var(--green); }
.n-mint   { fill: var(--mint); }
.n-purple { fill: var(--purple); }

/* --------------------------------------------------------------
   Desktop
   -------------------------------------------------------------- */
@media (min-width: 900px) {
    .wordmark { width: clamp(160px, 13vw, 190px); }

    .status { font-size: 11.5px; }

    .hero {
        grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
        /* Rows 1 and 4 are empty spacers that absorb the leftover height.
           Splitting it 0.75 / 1.25 instead of evenly sits the hero block
           higher; together with the smaller .landing row gap that trims
           the space below the wordmark rule by ~20%. */
        grid-template-rows: 0.75fr auto auto 1.25fr;
        column-gap: clamp(40px, 6vw, 90px);
        row-gap: 0;
    }

    .hero-copy { grid-column: 1; grid-row: 2; }

    .headline {
        font-size: clamp(4rem, 6vw, 5.7rem);
        line-height: 1.0;
    }

    .lede {
        max-width: 19.5em;
        font-size: clamp(1.1875rem, 1.4vw, 1.375rem);
    }

    .showcase {
        grid-column: 2;
        grid-row: 2 / 4;
        align-self: center;
        grid-template-columns: repeat(10, 1fr);
        gap: clamp(14px, 2.2vh, 26px) 0;
    }

    .connectors, .connector-node { display: block; }

    .card--radial {
        grid-column: 1 / 8;
        grid-row: 1;
        justify-self: start;
        max-width: 300px;
    }
    .card--comparison {
        grid-column: 4 / 11;
        grid-row: 2;
        justify-self: end;
        max-width: 296px;
    }
    .card--flow {
        grid-column: 1 / 8;
        grid-row: 3;
        justify-self: start;
        margin-left: clamp(0px, 2.5vw, 34px);
        /* The flow runs top-to-bottom, so this card is a narrow column —
           wide enough for the steps, no wider. */
        max-width: 168px;
    }

    .brand-cue {
        grid-column: 1;
        grid-row: 3;
        align-self: end;
        margin-top: clamp(30px, 7vh, 70px);
        font-size: 1.0625rem;
    }
}

/* Short laptop screens: drop the secondary cue rather than crowd. */
@media (min-width: 900px) and (max-height: 720px) {
    .brand-cue { display: none; }
}

/* Short desktop windows. The flow card runs top-to-bottom, so the showcase
   is taller than it used to be; tighten the card chrome and the stack gap
   so the hero still lands on one screen instead of scrolling. */
@media (min-width: 900px) and (max-height: 800px) {
    .card { padding: 12px 16px 14px; }
    .card-label { margin-bottom: 8px; }
    .showcase { gap: 12px 0; }
    .card--radial { max-width: 284px; }
    .card--comparison { max-width: 280px; }
    .card--flow { max-width: 156px; }
}

/* --------------------------------------------------------------
   Mobile / tablet
   -------------------------------------------------------------- */
@media (max-width: 899px) {
    .decor--cream {
        width: clamp(210px, 48vw, 290px);
        top: -13%;
        right: -34%;
        opacity: 0.42;
    }
    .decor--sage {
        width: clamp(280px, 72vw, 380px);
        bottom: -14%;
        right: -36%;
        opacity: 0.38;
    }

    .showcase { max-width: 460px; }

    /* Visual order on small screens: radial, flow, comparison. */
    .card--radial { order: 1; }
    .card--flow { order: 2; max-width: 200px; }
    .card--comparison { order: 3; }
    .showcase { display: flex; flex-direction: column; }

    .brand-cue { margin-top: clamp(6px, 2vh, 16px); }
}

/* --------------------------------------------------------------
   Entrance animation (CSS only — the page is complete without it)
   -------------------------------------------------------------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.site-header,
.headline,
.lede,
.pill,
.brand-cue {
    animation: rise 0.5s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}
.headline { animation-delay: 0.06s; }
.lede { animation-delay: 0.12s; }
.pill { animation-delay: 0.18s; }
.brand-cue { animation-delay: 0.42s; }

.card {
    animation: rise 0.45s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}
.card--radial { animation-delay: 0.20s; }
.card--comparison { animation-delay: 0.29s; }
.card--flow { animation-delay: 0.38s; }

.connectors, .connector-node {
    animation: rise 0.6s ease-out 0.46s both;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
