/* ThannaSoft — thannasoft.com

   No invented colours: every hex below is an exact stop from the brand sources —
   src/Thanna.Desktop/Themes/Palette.xaml and the gradients inside
   assets/brand/s-mark.svg — so the site and the desktop app read as one identity.

   LIGHT ONLY, on purpose. The wordmark in the lockup is the deep navy #010E41 and
   brand art may never be edited (SVG-MANIFEST.md), so a dark theme would either hide
   the company name or force a re-tint of the owner's artwork. The page commits to the
   brand's own canvas and declares it with color-scheme.

   NO JavaScript anywhere on this site — that is what lets the container's CSP say
   default-src 'none' honestly (server/landing/Caddyfile). Every effect here is CSS. */

:root {
    --brand: #0B76FB;
    --brand-light: #1577FB;
    --brand-deep: #0037ED;
    --ink: #010E41;
    --green: #05F27E;
    --green-deep: #02B078;
    --snow: #FFFFFF;

    /* The ink at fixed opacities — text hierarchy and hairlines. Kept as tokens so no
       rule below writes a raw rgba(). */
    --ink-muted: rgba(1, 14, 65, 0.62);
    --ink-faint: rgba(1, 14, 65, 0.45);
    --hairline: rgba(1, 14, 65, 0.10);
    --hairline-strong: rgba(1, 14, 65, 0.16);
    --tint: rgba(1, 14, 65, 0.025);

    /* The same idea inverted, for the navy CTA band. */
    --snow-muted: rgba(255, 255, 255, 0.70);

    --shell: 72rem;
    --masthead-h: 4.5rem;

    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text",
        "Segoe UI", Inter, system-ui, "Noto Naskh Arabic", Tahoma, sans-serif;
    --display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
        "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;

    color-scheme: light;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;

    /* Anchor targets must clear the sticky masthead, or a jump lands under it. */
    scroll-padding-top: calc(var(--masthead-h) + 1rem);
}

body {
    margin: 0;
    background: var(--snow);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 10;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--snow);
    border-radius: 0.5rem;
}

/* ---- The lockup crop ------------------------------------------------------------

   The source SVG is a 1254 × 1254 canvas whose artwork occupies 1124 × 360 at
   (67, 418). Cropping to those bounds in CSS keeps the owner's file byte-identical
   while removing the transparent margin. The four numbers are that rectangle. */

.brand-crop {
    --lockup-width: 9.5rem;
    display: block;
    position: relative;
    width: var(--lockup-width);
    height: calc(var(--lockup-width) * 360 / 1124);
    overflow: hidden;
}

.brand-crop img {
    position: absolute;
    width: calc(var(--lockup-width) * 1254 / 1124);
    height: auto;
    max-width: none;
    left: calc(var(--lockup-width) * -67 / 1124);
    top: calc(var(--lockup-width) * -418 / 1124);
}

.brand-crop-sm {
    --lockup-width: 8.5rem;
}

/* ---- Masthead -------------------------------------------------------------------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 5;
    height: var(--masthead-h);
    display: flex;
    align-items: center;
    background: color-mix(in srgb, var(--snow) 82%, transparent);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--hairline);
}

.masthead-inner {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 4vw, 2.5rem);
}

.brand {
    display: block;
    flex: none;
}

.masthead-nav {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
    margin-inline-end: auto;
    font-size: 0.9375rem;
}

.masthead-nav a {
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 200ms ease;
}

.masthead-nav a:hover,
.masthead-nav a:focus-visible {
    color: var(--ink);
}

/* ---- Buttons --------------------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease,
        transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:active {
    transform: scale(0.98);
}

.button-solid {
    background: var(--brand-deep);
    color: var(--snow);
}

.button-solid:hover,
.button-solid:focus-visible {
    background: var(--ink);
}

.button-ghost {
    border: 1px solid var(--hairline-strong);
    color: var(--ink);
}

.button-ghost:hover,
.button-ghost:focus-visible {
    border-color: var(--ink);
}

.button-invert {
    background: var(--snow);
    color: var(--ink);
}

.button-invert:hover,
.button-invert:focus-visible {
    background: var(--green);
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- Hero ------------------------------------------------------------------------ */

.hero {
    position: relative;
    /* Bottom padding is deliberately smaller than the top: the pills already carry
       their own top margin, and the next section adds its own padding on top of
       this one. Matching both ends stacks into a dead band under the hero. */
    padding-block: clamp(3.5rem, 11vh, 7rem) clamp(2.25rem, 5vh, 3.25rem);
    overflow: hidden;
}

.hero-wash {
    position: absolute;
    z-index: -1;
    top: -55vmin;
    left: 50%;
    translate: -50% 0;
    width: 130vmin;
    height: 130vmin;
    border-radius: 50%;
    background: radial-gradient(closest-side,
            color-mix(in srgb, var(--brand) 15%, transparent),
            transparent);
}

.hero-inner {
    text-align: center;
    animation: rise 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
    from {
        opacity: 0;
        translate: 0 12px;
    }
}

.eyebrow {
    display: inline-block;
    margin: 0 0 clamp(1.25rem, 3vh, 1.75rem);
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--hairline-strong);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-muted);
}

h1 {
    margin: 0 0 clamp(1rem, 2.5vh, 1.5rem);
    font-family: var(--display);
    font-size: clamp(2.5rem, min(7.5vw, 10vh), 4.5rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.03;
    text-wrap: balance;
}

.lede {
    max-width: 38rem;
    margin: 0 auto;
    font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
    color: var(--ink-muted);
    text-wrap: pretty;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: clamp(1.75rem, 4vh, 2.5rem);
}

.pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    margin: clamp(2.5rem, 6vh, 3.5rem) 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    color: var(--ink-faint);
}

.pills li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pills li::before {
    content: "";
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--green-deep);
}

/* ---- Sections -------------------------------------------------------------------- */

.section {
    padding-block: clamp(3.5rem, 10vh, 6.5rem);
}

.section-tint {
    background: var(--tint);
    border-block: 1px solid var(--hairline);
}

.section-head {
    max-width: 42rem;
    margin-bottom: clamp(2.25rem, 6vh, 3.5rem);
}

.kicker {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-deep);
}

h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
}

.section-lede {
    margin: 1rem 0 0;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--ink-muted);
    text-wrap: pretty;
}

h3 {
    margin: 0 0 0.5rem;
    font-family: var(--display);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

/* ---- Produit: two panels --------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.panel {
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid var(--hairline);
    border-radius: 1rem;
}

.panel p {
    margin: 0;
    color: var(--ink-muted);
}

.panel-ar {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--hairline);
    line-height: 1.9;
    color: var(--ink);
}

/* ---- Modules grid ---------------------------------------------------------------- */

.modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: clamp(0.75rem, 2vw, 1.25rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.module {
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    background: var(--snow);
    border: 1px solid var(--hairline);
    border-radius: 1rem;
    transition: border-color 250ms ease, transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.module:hover {
    border-color: var(--hairline-strong);
    transform: translateY(-2px);
}

.module img {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
}

.module p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--ink-muted);
}

/* ---- Pillars --------------------------------------------------------------------- */

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
}

.pillar-index {
    display: block;
    margin-bottom: 0.875rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--hairline);
    font-family: var(--display);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--brand-deep);
}

.pillar p {
    margin: 0;
    color: var(--ink-muted);
}

/* ---- CTA band -------------------------------------------------------------------- */

.cta {
    padding-block: clamp(3.5rem, 10vh, 6rem);
    background: var(--ink);
    color: var(--snow);
}

.cta-inner {
    text-align: center;
}

.cta p {
    max-width: 34rem;
    margin: 1rem auto clamp(1.75rem, 4vh, 2.25rem);
    color: var(--snow-muted);
    text-wrap: pretty;
}

/* ---- Footer ---------------------------------------------------------------------- */

.foot {
    padding-block: clamp(2.5rem, 6vh, 3.5rem) 1.75rem;
    border-top: 1px solid var(--hairline);
}

.foot-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.foot-brand p {
    max-width: 22rem;
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    color: var(--ink-faint);
}

.foot-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.9375rem;
}

.foot-links a {
    color: var(--ink-muted);
    text-decoration: none;
}

.foot-links a:hover,
.foot-links a:focus-visible {
    color: var(--ink);
}

.foot-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    margin-top: clamp(2rem, 5vh, 3rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--hairline);
    font-size: 0.8125rem;
    color: var(--ink-faint);
}

/* ---- Narrow screens --------------------------------------------------------------

   No hamburger, because a menu button would need JavaScript and the whole site is
   built to need none. Below 46rem the section links drop out of the masthead — they
   all exist again in the footer — and the demo button stays, which is the only thing
   a phone visitor actually needs from a sticky header. */

@media (max-width: 46rem) {
    .masthead-nav {
        display: none;
    }

    .masthead-inner {
        justify-content: space-between;
    }
}

@media (max-width: 30rem) {
    /* Two buttons of different label lengths read as ragged when they stack. Full
       width makes them one deliberate column instead. */
    .actions {
        flex-direction: column;
    }

    .actions .button {
        width: 100%;
    }

    /* Tighter tracking fits three of the four pills on two lines instead of three. */
    .pills {
        gap: 0.5rem 1.125rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 26rem) {
    .masthead-cta {
        padding-inline: 1rem;
        font-size: 0.875rem;
    }

    .brand-crop {
        --lockup-width: 8rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
