:root {
    --blue: #2f4b95;
    --blue-dark: #233a78;
    --blue-pale: #e9eefb;

    --background: #f2f3f5;
    --card: #ffffff;

    --text: #20242b;
    --muted: #626a77;
    --border: #dce1e8;

    --shadow: 0 14px 36px rgba(31, 43, 70, 0.09);
    --radius: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.55;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.section {
    padding: 48px 0;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    text-decoration: none;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--blue);
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand>span:last-child {
    display: grid;
}

.brand strong {
    font-size: 1.05rem;
}

.brand small {
    color: var(--muted);
}

.header-link {
    color: var(--blue);
    font-weight: 750;
    text-decoration: none;
}

.header-link:hover {
    text-decoration: underline;
}

/* Type */

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.eyebrow.light {
    color: #dbe4ff;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

h3 {
    margin-bottom: 8px;
    line-height: 1.25;
}

p {
    color: var(--muted);
}

/* Hero */

.hero {
    padding-top: 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
    gap: 28px;
    align-items: stretch;
}

.hero-copy {
    padding: clamp(34px, 5vw, 62px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tagline {
    margin-bottom: 8px;
    color: var(--text);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 800;
}

.hero-description {
    max-width: 34rem;
    margin-bottom: 30px;
    font-size: 1.08rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 12px 20px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 150ms ease,
        box-shadow 150ms ease,
        background 150ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.primary {
    background: var(--blue);
    color: white;
    box-shadow: 0 8px 20px rgba(47, 75, 149, 0.25);
}

.primary:hover {
    background: var(--blue-dark);
}

.secondary {
    background: var(--blue-pale);
    color: var(--blue-dark);
}

.white-button {
    background: white;
    color: var(--blue-dark);
}

.trust-points {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.app-preview {
    padding: 16px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.app-preview img {
    width: 100%;
    height: 100%;
    max-height: 720px;
    object-fit: contain;
    border-radius: 12px;
}

/* Why Peak Canine and features */

.introduction-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    gap: 28px;
    align-items: start;
}

.introduction {
    padding: 38px;
}

.introduction .lead {
    color: var(--text);
    font-size: 1.22rem;
    font-weight: 800;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.feature {
    min-height: 174px;
    padding: 28px;
}

.feature h3 {
    color: var(--blue-dark);
}

/* Reports band */

.blue-section {
    background: var(--blue);
}

.reports {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: center;
}

.reports h2,
.reports p {
    color: white;
}

.reports p {
    max-width: 760px;
    margin-bottom: 0;
    color: #e7ebf7;
    font-size: 1.08rem;
}

/* Audience and final callout */

.audience-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
}

.audience,
.final-callout {
    padding: 40px;
}

.audience ul {
    margin: 0;
    padding-left: 1.25rem;
}

.audience li {
    margin: 10px 0;
}

.audience li::marker {
    color: var(--blue);
}

.final-callout {
    background:
        linear-gradient(145deg,
            rgba(47, 75, 149, 0.98),
            rgba(35, 58, 120, 0.98));
    color: white;
}

.final-callout h2,
.final-callout p {
    color: white;
}

.install-link {
    margin-top: 18px;
    display: block;
    border: 0;
    padding: 0;
    background: transparent;
    color: white;
    font: inherit;
    font-weight: 750;
    text-decoration: underline;
    cursor: pointer;
}

/* Footer */

footer {
    border-top: 1px solid var(--border);
    background: white;
}

.footer-inner {
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-inner p {
    margin: 0;
}

.footer-inner a {
    color: var(--blue);
    font-weight: 750;
}

/* Installation dialog */

dialog {
    width: min(680px, calc(100% - 32px));
    border: 0;
    border-radius: var(--radius);
    padding: 0;
    box-shadow: 0 30px 90px rgba(18, 28, 53, 0.32);
}

dialog::backdrop {
    background: rgba(20, 27, 43, 0.68);
    backdrop-filter: blur(3px);
}

.dialog-content {
    position: relative;
    padding: 38px;
}

.close-dialog {
    position: absolute;
    top: 14px;
    right: 18px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.install-grid {
    margin: 26px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.install-grid section {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--background);
}

.install-grid ol {
    padding-left: 1.25rem;
}

.install-grid li {
    margin: 10px 0;
}

/* Tablet */

@media (max-width: 900px) {

    .hero-grid,
    .introduction-grid,
    .audience-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        order: 1;
    }

    .app-preview {
        order: 2;
    }

    .reports {
        grid-template-columns: 1fr;
    }
}

/* Phone */

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .section {
        padding: 30px;
    }

    .header-inner {
        min-height: 64px;
    }

    .header-link {
        display: none;
    }

    .hero {
        padding-top: 32px;
    }

    .hero-copy,
    .introduction,
    .audience,
    .final-callout {
        padding: 24px;
    }

    .features,
    .install-grid {
        grid-template-columns: 1fr;
    }

    .feature {
        min-height: auto;
    }

    .button-row,
    .button-row .button {
        width: 100%;
    }

    .trust-points {
        display: grid;
    }

    .footer-inner {
        padding: 30px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .dialog-content {
        padding: 30px 22px 24px;
    }
}

/* =========================================================
   LANDING PAGE REFINEMENTS
   ========================================================= */


/* ---------- Top blue navigation bar ---------- */

.site-header {
    background: var(--blue);
    border-bottom: 0;
    color: white;
    backdrop-filter: none;
}

.header-inner {
    min-height: 68px;
}

/* Hide the old PC box if it is still in the HTML */
.brand-icon {
    display: none;
}

/* Remove spacing left behind by the hidden icon */
.brand {
    gap: 0;
    color: white;
}

.brand strong {
    color: white;
    font-size: 1.15rem;
    font-weight: 750;
}

/* Hide "by Canine Cardio" if it is still present */
.brand small {
    display: none;
}

.header-link {
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.header-link:hover {
    color: white;
    text-decoration: underline;
}


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

/* Square top corners, rounded bottom corners */
.hero-grid>.card {
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Center everything in the left hero card */
.hero-copy {
    align-items: center;
    text-align: center;
}

.hero-copy .eyebrow {
    text-align: center;
}

/* Keep Peak Canine on one line and reduce its size */
.hero-copy h1 {
    font-size: clamp(2.7rem, 5vw, 4rem);
    white-space: nowrap;
    text-align: center;
}

/* Center the two-line tagline */
.tagline {
    max-width: 100%;
    text-align: center;
}

/* Center the description */
.hero-description {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}


/* ---------- Install button and help link ---------- */

/* Stack the main button and Installation Help vertically */
.button-row {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Remove the box around Installation Help */
.button-row .secondary {
    min-height: auto;
    border: 0;
    border-radius: 0;
    padding: 2px 4px;
    background: transparent;
    box-shadow: none;
    color: var(--blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.button-row .secondary:hover {
    background: transparent;
    color: var(--blue-dark);
    transform: none;
}

/* Center the two checkmark statements */
.trust-points {
    justify-content: center;
    text-align: center;
}


/* ---------- Clear Records blue section ---------- */

.reports h2 {
    margin-bottom: 12px;
}

.reports p {
    max-width: 720px;
}


/* ---------- Footer feedback bar ---------- */

footer {
    background: var(--blue);
    border-top: 0;
    color: white;
    padding: 22px 0;
}

.footer-inner {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.feedback-text {
    color: white;
    font-weight: 650;
}

.feedback-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    border-radius: 8px;
    padding: 9px 17px;
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.feedback-button:hover {
    background: white;
    color: var(--blue);
}

.footer-right {
    margin-left: auto;
}

.footer-right a,
.footer-right .beta-link {
    color: white;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}


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

@media (max-width: 640px) {
    .hero-copy h1 {
        font-size: clamp(2.35rem, 13vw, 3.25rem);
    }

    .hero-grid>.card {
        border-radius: 0 0 14px 14px;
    }

    .button-row {
        width: 100%;
    }

    .button-row .primary {
        width: 100%;
    }

    .trust-points {
        justify-items: center;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .footer-left {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .footer-right {
        margin-left: 0;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 14px;
        color: white;
        text-decoration: none;
    }

    .brand img {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        display: block;
    }

    .brand strong {
        color: white;
        font-size: 1.35rem;
        font-weight: 700;
    }

    .brand img {
        width: 40px;
        height: 40px;
        border-radius: 9px;
        display: block;
    }

    footer {
        background: var(--blue);
        color: white;
        padding: 22px 0;
    }

    .footer-inner {
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .footer-left {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .feedback-text {
        color: white;
        font-weight: 650;
        white-space: nowrap;
    }

    footer .feedback-button,
    footer .feedback-button:visited {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        border: 2px solid white;
        border-radius: 8px;
        padding: 9px 17px;
        color: white !important;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
    }

    footer .feedback-button:hover {
        background: white;
        color: var(--blue) !important;
    }

    .footer-right {
        margin-left: auto;
        flex-shrink: 0;
    }

    .footer-right a,
    .footer-right a:visited {
        color: white;
        font-weight: 700;
        text-decoration: underline;
        white-space: nowrap;
    }

    @media (max-width: 640px) {

        .footer-inner,
        .footer-left {
            align-items: flex-start;
            flex-direction: column;
        }

        .footer-right {
            margin-left: 0;
        }
    }
    