/* NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--green);
    color: var(--paper);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 6px 22px rgba(35, 53, 42, 0.18);
}

/* Lightly scratched-metal texture over the nav bar — adds a bit of grit/life
   without shouting. overlay blends it into the brand green at low opacity. */
nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/assets/texture-metal-scratched-v3.webp") center bottom /
        cover no-repeat;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

nav .wrap {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--slab);
    font-weight: 700;
    font-size: 25px;
    letter-spacing: 0.01em;
}
.logo .mark {
    width: 30px;
    height: 30px;
    flex: none;
    /* Painted in the current text colour via an alpha mask, so the
       H-mark matches the wordmark on any background. One SVG file. */
    background: currentColor;
    -webkit-mask: url(/harness-logo.svg) center / contain no-repeat;
    mask: url(/harness-logo.svg) center / contain no-repeat;
}
nav .nav-cta {
    font-size: 15px;
    padding: 10px 20px;
}
@media (max-width: 560px) {
    .logo {
        font-size: 20px;
    }
    nav .nav-cta {
        padding: 9px 15px;
        font-size: 14px;
    }
}

/* HERO */
header.hero {
    position: relative;
    border-bottom: double 4px var(--line);
    overflow: hidden;
}
.hero .wrap {
    position: relative;
    z-index: 1;
    padding-top: 64px;
    padding-bottom: 52px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero .eyebrow {
        justify-content: center;
    }
    /* Don't hide the product on the device most visitors use —
       sit it upright and centred below the copy instead. */
    .phone {
        transform: none;
        margin: 30px auto 0;
        max-width: 300px;
    }
}
.hero h1 {
    font-family: var(--slab);
    font-weight: 700;
    font-size: clamp(2.3rem, 5.2vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -0.01em;
    margin: 22px 0 20px;
    max-width: 18ch;
}
.hero .sub {
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.55;
    color: var(--muted);
    max-width: 46ch;
    margin-bottom: 30px;
}
.hero .cta-row {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}
@media (max-width: 860px) {
    .hero h1,
    .hero .sub {
        margin-left: auto;
        margin-right: auto;
    }
    .hero .cta-row {
        justify-content: center;
    }
}
.hero .reassure {
    font-size: 15px;
    color: var(--faint);
    margin-top: 22px;
}
.hero .reassure b {
    color: var(--ink);
}

/* PHONE MOCK — preserved from prior design */
.phone {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 485/941;
    transform: rotate(6deg) translateY(64px);
    transform-origin: center top;
    margin-bottom: -70px;
    margin-top: -115px;
}
/* Soft cast shadow — a pre-blurred silhouette PNG on its own layer behind the
   phone. The 765x1221 image carries 140px of transparent padding around the
   485x941 phone so the blur has room; we position it to overlay that padding
   exactly, then nudge it down/right so the light reads as coming from upper-left. */
.phone .shadow {
    position: absolute;
    width: 157.73%; /* 765 / 485  */
    height: 129.75%; /* 1221 / 941 */
    left: -28.87%; /* -140 / 485 */
    top: -14.88%; /* -140 / 941 */
    transform: translate(3%, 5%);
    pointer-events: none;
    z-index: 0;
}
.phone .screen {
    position: absolute;
    left: 12.16%;
    top: 5.63%;
    width: 78.56%;
    height: 85.97%;
    overflow: hidden;
    border-radius: 16px;
    background: #f2f2f7;
    z-index: 1;
    display: flex;
    flex-direction: column;
    font-family: var(--app);
    color: #1c1c1e;
    -webkit-font-smoothing: antialiased;
    line-height: 1.4;
}
.phone .frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}
.phone .cracks {
    position: absolute;
    left: 12.16%;
    top: 5.63%;
    width: 78.56%;
    height: 85.97%;
    pointer-events: none;
    opacity: 0.6;
    z-index: 3;
}
/* iOS-style status bar */
.phone .statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--green);
    color: #fff;
    padding: 7px 25px 3px 40px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.phone .statusbar .icons {
    display: flex;
    align-items: center;
    gap: 5px;
}
.phone .statusbar svg {
    display: block;
}
/* app nav bar */
.phone .appbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--green);
    color: #fff;
    padding: 8px 13px 10px 20px;
    margin-top: -1px;
}
.phone .appbar .chev {
    width: 22px;
    font-size: 22px;
    line-height: 1;
    opacity: 0.95;
}
.phone .appbar .title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.phone .appbar .avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--green-deep);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* conversation body */
.phone .body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 15px 13px 15px 20px;
}
.phone .meta {
    text-align: center;
    font-size: 11px;
    color: #8e8e93;
    margin-bottom: -1px;
}
.phone .msg {
    align-self: flex-start;
    max-width: 92%;
    background: #fff;
    border: 1px solid #e9e9ee;
    border-radius: 16px 16px 16px 5px;
    padding: 10px 13px;
    font-size: 13.5px;
    color: #1c1c1e;
    box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.04);
}
.phone .msg .who {
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 3px;
}
.phone .divider {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8e8e93;
}
.phone .divider::before,
.phone .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e0e0e6;
}
.phone .draft {
    background: #fff;
    border: 1px solid #e9e9ee;
    border-radius: 14px;
    padding: 13px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #1c1c1e;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.phone .draft .chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--green);
    background: rgba(31, 77, 50, 0.09);
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.phone .draft .chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}
.phone .draft p {
    margin-bottom: 8px;
}
.phone .draft p:last-child {
    margin-bottom: 0;
}
/* action bar pinned to the bottom of the screen */
.phone .approve {
    display: flex;
    gap: 9px;
    padding: 11px 13px 14px;
    background: #fff;
    border-top: 1px solid #ececf0;
}
.phone .approve .a {
    flex: 1;
    text-align: center;
    background: var(--green);
    color: #fff;
    font-weight: 600;
    padding: 12px;
    border-radius: 12px;
    font-size: 14.5px;
}
.phone .approve .b {
    text-align: center;
    background: #f2f2f7;
    color: #1c1c1e;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14.5px;
}
