/* Aphion site styles. Colors come from the logo. */

@font-face {
    font-family: "Inter";
    src: url("/vendor/fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --slate: #36485e;          /* logo wordmark */
    --slate-deep: #243243;     /* dark sections */
    --blue: #387eb9;           /* logo dot: icons and accents */
    --blue-strong: #2c6aa0;    /* buttons and links (meets contrast on white) */
    --blue-hover: #23588a;
    --blue-soft: #eaf2f9;
    --ink: #253142;            /* body text */
    --muted: #586678;
    --line: #dfe5ec;
    --bg-soft: #f5f8fb;

    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--ink);
    --bs-link-color: var(--blue-strong);
    --bs-link-color-rgb: 44, 106, 160;
    --bs-link-hover-color: var(--blue-hover);
    --bs-link-hover-color-rgb: 35, 88, 138;
}

body {
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--slate);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 4.5vw + 0.5rem, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 2vw + 0.8rem, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a { text-underline-offset: 0.18em; }
a[href^="tel:"] { white-space: nowrap; }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0.5rem;
    z-index: 1000;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}
.skip-link:focus { left: 0.5rem; }

/* Buttons */
.btn { font-weight: 600; border-radius: 0.5rem; padding: 0.7rem 1.35rem; }
.btn-sm { padding: 0.4rem 0.9rem; }

.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--blue-strong);
    --bs-btn-border-color: var(--blue-strong);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--blue-hover);
    --bs-btn-hover-border-color: var(--blue-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--blue-hover);
    --bs-btn-active-border-color: var(--blue-hover);
}

.btn-quiet {
    --bs-btn-color: var(--slate);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--line);
    --bs-btn-hover-color: var(--slate);
    --bs-btn-hover-bg: var(--bg-soft);
    --bs-btn-hover-border-color: #c9d3de;
}

/* Header */
.site-header {
    background: var(--slate-deep);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 16px rgba(20, 30, 42, 0.18);
}
.site-header .navbar { padding: 0.85rem 0; }
.site-header .navbar-brand img { height: 40px; width: auto; }
.site-header .nav-link {
    color: #d3dce6;
    font-weight: 500;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
    border-bottom: 2px solid transparent;
}
.site-header .nav-link:hover { color: #fff; }
.site-header .nav-link.active { color: #fff; font-weight: 600; border-bottom-color: var(--blue); }
.site-header .btn-brand {
    --bs-btn-bg: var(--blue);
    --bs-btn-border-color: var(--blue);
    --bs-btn-hover-bg: #4a8fc8;
    --bs-btn-hover-border-color: #4a8fc8;
}
.navbar-toggler { border-color: rgba(255, 255, 255, 0.25); }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-heading { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.lead-text { font-size: 1.2rem; color: var(--muted); }

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-strong);
    margin-bottom: 1rem;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
    background:
        radial-gradient(ellipse at 85% 20%, rgba(56, 126, 185, 0.22), transparent 55%),
        linear-gradient(160deg, #eef4fa 0%, #dde9f5 100%);
}
.hero > .container { position: relative; z-index: 1; }

/* Faint dot grid, fading out toward the text on the left. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(56, 126, 185, 0.28) 1.2px, transparent 1.6px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 75%);
    mask-image: linear-gradient(90deg, transparent 15%, #000 75%);
    pointer-events: none;
}

/* Network that grows from small to large: idea to scale. */
.hero::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -2%;
    width: min(46vw, 640px);
    aspect-ratio: 640 / 520;
    transform: translateY(-50%);
    background: url("/img/hero-network.svg") center / contain no-repeat;
    opacity: 0.85;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
    pointer-events: none;
}
@media (max-width: 991.98px) {
    .hero::after { opacity: 0.25; width: 90vw; right: -20%; }
}

/* Reusable pattern for other sections: dot grid fading down from the
   top, plus the network mirrored into the top-left corner (balances the
   hero, where it sits on the right). */
.section-pattern {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #eef4fa 0%, #f5f8fb 100%);
}
.section-pattern > .container { position: relative; z-index: 1; }
.section-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(56, 126, 185, 0.26) 1.2px, transparent 1.6px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
    pointer-events: none;
}
.section-pattern::after {
    content: "";
    position: absolute;
    top: -40px;
    left: -6%;
    width: min(36vw, 480px);
    aspect-ratio: 640 / 520;
    background: url("/img/hero-network.svg") center / contain no-repeat;
    transform: scaleX(-1);
    opacity: 0.55;
    -webkit-mask-image: linear-gradient(200deg, #000 30%, transparent 85%);
    mask-image: linear-gradient(200deg, #000 30%, transparent 85%);
    pointer-events: none;
}
@media (max-width: 991.98px) {
    .section-pattern::after { opacity: 0.2; width: 70vw; left: -25%; }
}
.hero .btn-quiet { --bs-btn-bg: #fff; --bs-btn-border-color: #c9d6e3; }
.hero h1 { max-width: 15em; margin-bottom: 1.5rem; }
.hero .lead-text { max-width: 40rem; margin-bottom: 2rem; }

/* Inner-page hero: same look as the home hero, shorter. */
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { font-size: clamp(2rem, 3.5vw + 0.5rem, 3rem); }
.page-hero .lead-text { margin-bottom: 0; }
.page-hero .d-flex { margin-top: 2rem; }

/* Services */
.service {
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(36, 50, 67, 0.06);
    scroll-margin-top: 6rem;
}
.service h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.service-tagline { font-style: italic; color: var(--blue-strong); font-weight: 500; }
.service ul { padding-left: 1.2rem; margin-bottom: 0; color: var(--muted); }
.service li { margin-bottom: 0.35rem; }
.service li::marker { color: var(--blue); }

/* Entry offers */
.offer {
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: 0.75rem;
    padding: 1.75rem;
    box-shadow: 0 6px 20px rgba(36, 50, 67, 0.06);
    scroll-margin-top: 6rem;
}
.offer h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.offer p { margin-bottom: 0; color: var(--muted); }
.offer-note { text-align: center; color: var(--muted); margin: 2.5rem 0 1.25rem; }

/* Simple feature list (partners "how it works", about "our approach") */
.feature h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.feature p { color: var(--muted); margin-bottom: 0; }

/* Founder */
.founder {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 6px 20px rgba(36, 50, 67, 0.06);
}
.founder-photo {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 1rem;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(36, 50, 67, 0.12);
}
.founder-name { font-size: 1.5rem; margin-bottom: 1rem; }
.founder-credentials { font-size: 0.95rem; font-style: italic; color: var(--muted); margin: 1rem 0 0; }

/* Home founder strip */
.founder-strip {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 52rem;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: 1rem;
    box-shadow: 0 6px 20px rgba(36, 50, 67, 0.06);
}
.founder-strip img {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--line), 0 6px 16px rgba(36, 50, 67, 0.15);
}
@media (max-width: 575.98px) {
    .founder-strip { flex-direction: column; text-align: center; }
}

/* Text-only band (about intro, team) */
.prose { max-width: 46rem; margin: 0 auto; }
.prose p { font-size: 1.125rem; }

/* Contact */
.contact-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(36, 50, 67, 0.06);
    scroll-margin-top: 6rem;
}
.contact-card h2 { font-size: 1.5rem; }
.form-label { font-weight: 600; color: var(--slate); }
.form-control, .form-select { border-color: #c9d3de; padding: 0.65rem 0.85rem; }
.form-control:focus, .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 0.2rem rgba(56, 126, 185, 0.2);
}
.optional { font-weight: 400; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-direct { list-style: none; padding: 0; margin: 0; }
.contact-direct li { margin-bottom: 0.4rem; }
.referral-note { text-align: center; font-style: italic; color: var(--muted); margin: 2.5rem 0 0; }
.cta-band .referral-note { color: #c5d0dc; margin-top: 1.5rem; }

/* Icons */
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--blue-soft);
    color: var(--blue);
    margin-bottom: 1.25rem;
}
.icon-badge svg { width: 1.5rem; height: 1.5rem; }

/* Stage cards */
.stage-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(36, 50, 67, 0.06);
}
.stage-name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-strong);
    margin-bottom: 0.35rem;
}
.stage-card h3 { margin-bottom: 0.75rem; }
.stage-pain { font-style: italic; color: var(--muted); }
.stage-start {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}
.stage-start strong { color: var(--slate); }
.stage-link { display: inline-block; margin-top: 0.75rem; font-weight: 600; text-decoration: none; }
.stage-link:hover { text-decoration: underline; }

/* Proof strip */
.proof-band { background: var(--blue-strong); color: #fff; }
.proof-item { text-align: center; padding: 0.5rem 1rem; }
.proof-big { display: block; font-size: 1.45rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.proof-small { display: block; color: #e4eef8; font-size: 0.95rem; }
.proof-industries {
    text-align: center;
    color: #e4eef8;
    font-size: 0.95rem;
    margin: 2rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Steps */
.step { height: 100%; }
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--blue-strong);
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); }

/* Closing call to action */
.cta-band { background: var(--slate-deep); color: #e3e9f0; text-align: center; }
.cta-band h2 { color: #fff; max-width: 32rem; margin: 0 auto 1rem; }
.cta-band p { max-width: 36rem; margin: 0 auto 2rem; }
.cta-band .cta-alt { margin: 1.25rem auto 0; font-size: 0.95rem; }
.cta-band a:not(.btn) { color: #fff; }
.cta-band .btn-brand {
    --bs-btn-bg: var(--blue);
    --bs-btn-border-color: var(--blue);
    --bs-btn-hover-bg: #4a8fc8;
    --bs-btn-hover-border-color: #4a8fc8;
}

/* Footer */
.site-footer { background: #1b2633; color: #b7c3d0; padding: 3.5rem 0 2rem; font-size: 0.95rem; }
.site-footer img { height: 40px; width: auto; }
.footer-tagline { max-width: 18rem; }
.footer-heading { color: #fff; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #dbe3ec; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid #2e3b4b; margin: 2.5rem 0 0; padding-top: 1.5rem; font-size: 0.875rem; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
}

/* Entry offer "What you get" lists */
.offer > p:not(.stage-name):not(.offer-includes) { margin-bottom: 1rem; }
.offer-includes {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate);
    margin: 0 0 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.offer-list { padding-left: 1.15rem; margin: 0; color: var(--muted); font-size: 0.95rem; }
.offer-list li { margin-bottom: 0.4rem; }
.offer-list li::marker { color: var(--blue); }

.partner-nudge { text-align: center; margin: 2rem 0 0; color: var(--muted); }
.partner-nudge a { font-weight: 600; text-decoration: none; }
.partner-nudge a:hover { text-decoration: underline; }

/* Questions and answers */
.faq { margin: 0; }
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.faq-item h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.faq-item p { color: var(--muted); margin: 0; }
