/* ==========================================================================
   Pau Hana Labs, LLC — pauhana.io
   ========================================================================== */

/* DM Serif Display, self-hosted. SIL Open Font License 1.1 — see fonts/OFL.txt.
   Served from our own origin so the site makes no third-party requests. */

@font-face {
    font-family: 'DM Serif Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/dm-serif-display-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: 'DM Serif Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/dm-serif-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
        U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
        U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --navy: #2A3F5F;       /* the deep blue in the logo */
    --navy-deep: #1A2639;
    --wave: #4A6FA5;
    --sand: #F8FAFC;
    --text: #1E293B;
    --text-muted: #55637A;
    --rule: #E2E8F0;
    --header-h: 92px;
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    color: var(--text);
    background-color: var(--sand);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    color: var(--navy);
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: var(--wave);
}

/* Sections are jump targets under a sticky header. */
section {
    scroll-margin-top: calc(var(--header-h) + 12px);
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------- Header  */

header {
    background-color: #fff;
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.logo-link {
    display: block;
    line-height: 0;
    flex-shrink: 1;
    min-width: 0;
}

.logo-link img {
    height: 56px;
    width: auto;
    max-width: 100%;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

nav a {
    font-family: 'DM Serif Display', Georgia, serif;
    text-decoration: none;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--wave);
}

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

.hero {
    position: relative;
    background: linear-gradient(165deg, #35507A 0%, var(--navy) 45%, var(--navy-deep) 100%);
    color: #fff;
    text-align: center;
    padding: 110px 24px 130px;
    overflow: hidden;
}

/* Soft light-through-water wash, drawn rather than photographed so the page
   carries no third-party image dependency. */
.hero::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto -10%;
    height: 130%;
    background:
        radial-gradient(ellipse 55% 40% at 22% 18%, rgba(122, 176, 224, 0.30), transparent 65%),
        radial-gradient(ellipse 45% 35% at 82% 30%, rgba(74, 111, 165, 0.40), transparent 62%);
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    letter-spacing: 1px;
    margin: 0 0 20px;
}

.hero p {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    max-width: 640px;
    margin: 0 auto;
    color: #DCE5F2;
}

/* Wave trough separating the hero from the page. */
.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 70px;
    display: block;
    fill: var(--sand);
}

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

.band {
    padding: 84px 0;
}

.band--tint {
    background: #fff;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.band h2 {
    font-size: clamp(1.9rem, 4.5vw, 2.5rem);
    margin: 0 0 8px;
}

.band .lede {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 0 40px;
    font-size: 1.05rem;
}

.band--center {
    text-align: center;
}

.band--center .lede {
    margin-left: auto;
    margin-right: auto;
}

.prose {
    max-width: 660px;
}

.prose p {
    margin: 0 0 18px;
}

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

/* ------------------------------------------------------------- Products  */

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.product {
    background: var(--sand);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 32px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.band--tint .product {
    background: #fff;
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(42, 63, 95, 0.10);
}

/* Both source icons are ~172px but differ in height; a fixed box keeps the
   headings on a common baseline. */
.product-icon {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.product-icon img {
    max-height: 96px;
    width: auto;
}

.product h3 {
    font-size: 1.5rem;
    margin: 0 0 6px;
}

.product p {
    color: var(--text-muted);
    margin: 0 0 18px;
}

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

.platform {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wave);
    margin: 0 0 14px;
}

.card-link {
    font-weight: 600;
    margin: 0 0 18px !important;
}

.card-link a {
    text-decoration: none;
}

.card-link a:hover {
    text-decoration: underline;
}

.badge {
    display: inline-block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy);
    background: rgba(74, 111, 165, 0.12);
    border-radius: 999px;
    padding: 5px 14px;
    margin-top: auto;
}

/* ----------------------------------------------------- Product subpages  */

.page-head {
    background: linear-gradient(170deg, #35507A 0%, var(--navy) 100%);
    color: #fff;
    text-align: center;
    padding: 56px 24px 48px;
}

.page-head-icon {
    height: 92px;
    width: auto;
    background: #fff;
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 18px;
}

.page-head h1 {
    color: #fff;
    font-size: clamp(2.25rem, 6vw, 3.25rem);
    margin: 0 0 12px;
}

.page-head-lede {
    max-width: 560px;
    margin: 0 auto;
    color: #DCE5F2;
    font-size: 1.1rem;
}

.app-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
}

.app-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--rule);
}

.app-row-main {
    flex: 1;
}

.app-row h3 {
    font-size: 1.4rem;
    margin: 0 0 6px;
}

.app-row p {
    color: var(--text-muted);
    margin: 0;
    max-width: 60ch;
}

.app-row-links {
    margin-top: 10px !important;
    font-size: 0.9rem;
}

.app-row-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    text-align: right;
}

.app-row-meta .platform {
    margin: 0;
}

.app-row-meta .badge {
    margin-top: 0;
}

.note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 24px 0 0;
}

/* -------------------------------------------------------------- Contact  */

.contact-card {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 36px 32px;
    max-width: 560px;
    margin: 0 auto;
}

.band--tint .contact-card {
    background: var(--sand);
}

.contact-card dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px 24px;
    text-align: left;
}

.contact-card dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding-top: 3px;
}

.contact-card dd {
    margin: 0;
}

address {
    font-style: normal;
}

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

footer {
    background-color: var(--navy-deep);
    color: #A9B6C9;
    text-align: center;
    padding: 36px 24px;
    font-size: 0.9rem;
}

footer p {
    margin: 0 0 8px;
}

footer p:last-child {
    margin-bottom: 0;
}

footer a {
    color: #C7D3E4;
}

/* ----------------------------------------------------------- Legal page  */

.legal {
    padding: 60px 0 84px;
}

.legal .wrap {
    max-width: 760px;
}

.legal h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin: 0 0 8px;
}

.legal .updated {
    color: var(--text-muted);
    margin: 0 0 40px;
}

.legal h2 {
    font-size: 1.4rem;
    margin: 40px 0 12px;
}

.legal p,
.legal li {
    margin: 0 0 14px;
}

.legal ul {
    padding-left: 22px;
}

.legal .eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 0 0 10px;
}

/* Lead statement — the one sentence a reviewer needs to read. */
.legal .callout {
    background: #fff;
    border: 1px solid var(--rule);
    border-left: 4px solid var(--wave);
    border-radius: 10px;
    padding: 20px 24px;
    font-size: 1.05rem;
    margin: 0 0 28px;
}

.policy-list {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0 8px;
}

.policy-list h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.policy-list ul {
    margin: 0;
    padding-left: 20px;
}

.policy-list li:last-child {
    margin-bottom: 0;
}

.backlink {
    margin-top: 28px;
    font-size: 0.95rem;
}

.legal .backlink {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}

/* --------------------------------------------------------------- Mobile  */

@media (max-width: 720px) {
    :root {
        --header-h: 132px;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
        padding: 14px 20px;
    }

    .logo-link img {
        height: 46px;
    }

    nav {
        justify-content: center;
        gap: 6px 20px;
    }

    .hero {
        padding: 72px 20px 96px;
    }

    .band {
        padding: 60px 0;
    }

    .contact-card dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .app-row {
        flex-direction: column;
        gap: 14px;
    }

    .app-row-meta {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

    .contact-card dd {
        margin-bottom: 12px;
    }
}

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

    .product:hover {
        transform: none;
    }
}
