/* ============================================
   Lovely inner pages
   --------------------------------------------
   About, Testimonials, Blog, Careers and Support. Same language as the
   homepage: graphite, the black wave, flat glass panels, short fade-up
   reveals. These pages scroll freely; only the homepage snaps.
   Tokens, glass, buttons, the wave and the reveal come from chrome.css.
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background: var(--lv-graphite);
}

body.page {
    margin: 0;
    overflow-x: clip;
    font-family: var(--lv-font);
    color: var(--lv-white);
    background: var(--lv-graphite);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page main,
.page .lv-footer {
    position: relative;
    z-index: 1;
}

.page .lv-header {
    background: linear-gradient(to bottom, rgba(28, 28, 31, 0.86), rgba(28, 28, 31, 0));
}

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

/* --- Layout ---------------------------------------------------------------- */

.p-hero {
    padding: calc(var(--lv-header-h) + clamp(48px, 13vh, 132px)) var(--lv-pad) clamp(32px, 6vh, 72px);
}

.p-sec {
    padding: clamp(40px, 7vw, 88px) var(--lv-pad);
}

.p-inner {
    max-width: var(--lv-max);
    margin: 0 auto;
}

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

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

/* --- Type ------------------------------------------------------------------ */

/* Zero-specificity reset, scoped to the page content so the footer and the
   cookie banner keep their own spacing. */
:where(.page main) :where(h1, h2, h3, p) {
    margin: 0;
}

.p-hero h1 {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.p-h2 {
    font-size: clamp(30px, 4.4vw, 52px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.p-duo span {
    color: rgba(255, 255, 255, 0.4);
}

.p-lede {
    max-width: 52ch;
    margin-top: 20px !important;
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
    text-wrap: pretty;
}

.p-eyebrow {
    margin-bottom: 14px !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--lv-coral);
}

.p-fine {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
}

.p-statement {
    max-width: 18ch;
    font-size: clamp(30px, 5vw, 60px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.p-statement em {
    font-style: normal;
    color: var(--lv-coral);
}

.p-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.p-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lv-sky);
}

.p-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.p-center .p-actions {
    justify-content: center;
}

.p-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--lv-white);
    text-decoration: none;
    border-radius: 6px;
}

.p-link .lv-i {
    transition: transform 0.4s var(--lv-ease);
}

.p-link--back .lv-i {
    transform: rotate(180deg);
}

@media (hover: hover) {
    .p-link:hover {
        color: var(--lv-coral);
    }

    .p-link:hover .lv-i {
        transform: translateX(4px);
    }

    .p-link--back:hover .lv-i {
        transform: rotate(180deg) translateX(4px);
    }
}

.page a:focus-visible,
.page button:focus-visible {
    outline: 2px solid var(--lv-sky);
    outline-offset: 3px;
}

/* --- Cards ----------------------------------------------------------------- */

.p-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: clamp(28px, 5vw, 56px);
}

.p-cards--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.p-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border-radius: 28px;
    color: inherit;
    text-decoration: none;
}

.p-card h3 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.p-card p {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
}

.p-card-meta {
    font-size: 13px !important;
    font-weight: 600;
    color: var(--lv-coral) !important;
}

.p-card-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    border-radius: 14px;
    font-size: 21px;
    color: var(--lv-coral);
    background: rgba(252, 81, 48, 0.14);
}

.p-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--lv-white);
}

.p-card-more .lv-i {
    transition: transform 0.4s var(--lv-ease);
}

/* Cards that are links or buttons lift and brighten. The reveal owns the
   card's own transform, so the lift is applied to an inner wrapper-free
   property instead: translate. */
.p-card--link {
    cursor: pointer;
    transition: opacity 0.7s var(--lv-ease), transform 0.8s var(--lv-ease), translate 0.5s var(--lv-ease), background-color 0.3s var(--lv-ease), border-color 0.3s var(--lv-ease);
}

@media (hover: hover) {
    .p-card--link:hover {
        translate: 0 -5px;
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.22);
    }

    .p-card--link:hover .p-card-more .lv-i {
        transform: translateX(4px);
    }
}

/* The reveal sets its own transition and delay on [data-r]. Interactive
   cards restate it so only the entrance is delayed, never the hover. */
.js .p-card--link[data-r],
.js .team-card[data-r] {
    --d: calc(var(--i, 0) * 80ms + 60ms);
    transition: opacity 0.7s var(--lv-ease) var(--d), transform 0.8s var(--lv-ease) var(--d), translate 0.5s var(--lv-ease), background-color 0.3s var(--lv-ease), border-color 0.3s var(--lv-ease);
}

/* --- Reviews (same card as the homepage) ------------------------------------ */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: clamp(28px, 5vw, 56px);
}

.review {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 24px;
    border-radius: 24px;
}

.review figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.review figcaption strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--lv-white);
}

.review-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    color: var(--lv-black);
    background: var(--lv-almond);
}

.stars {
    display: flex;
    gap: 3px;
    margin-left: auto;
    font-size: 15px;
    color: var(--lv-gold);
}

.review blockquote {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Team and stories -------------------------------------------------------- */

.team {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(28px, 5vw, 56px);
}

.team-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 12px 20px;
    border-radius: 26px;
    font-family: inherit;
    text-align: left;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.7s var(--lv-ease), transform 0.8s var(--lv-ease), translate 0.5s var(--lv-ease), border-color 0.3s var(--lv-ease), background-color 0.3s var(--lv-ease);
    -webkit-tap-highlight-color: transparent;
}

.team-photo {
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.28);
}

/* Each portrait is framed so the face sits on the card's center line. The
   focal point is set per photo with --fx / --fy. */
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--fx, 50%) var(--fy, 50%);
    transition: transform 0.9s var(--lv-ease);
}

.team-name {
    padding: 0 8px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.team-role {
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lv-coral);
}

.team-bio {
    padding: 4px 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

.team-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding: 12px 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s var(--lv-ease);
}

.team-card.is-active {
    border-color: var(--lv-coral);
}

.team-card.is-active .team-more {
    color: var(--lv-white);
}

@media (hover: hover) {
    .team-card:hover {
        translate: 0 -5px;
        background: rgba(255, 255, 255, 0.1);
    }

    .team-card:hover .team-photo img {
        transform: scale(1.05);
    }

    .team-card:hover .team-more {
        color: var(--lv-white);
    }
}

.story {
    margin-top: 16px;
    padding: clamp(24px, 4vw, 52px);
    border-radius: 28px;
    scroll-margin-top: calc(var(--lv-header-h) + 16px);
}

.story-panel[hidden] {
    display: none;
}

.story-panel {
    max-width: 64ch;
    animation: story-in 0.9s var(--lv-ease) 0.12s both;
}

@keyframes story-in {
    from { opacity: 0; transform: translate3d(0, 10px, 0); }
    to { opacity: 1; transform: none; }
}

.story-panel h3 {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.story-panel .team-role {
    padding: 4px 0 20px;
}

.story-panel p + p {
    margin-top: 1.1em;
}

.story-panel p:not(.team-role) {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

/* --- Chips (Careers) ---------------------------------------------------------- */

.pick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.p-center .pick {
    justify-content: center;
}

.chip {
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--lv-white);
    cursor: pointer;
    transition: background-color 0.3s var(--lv-ease), color 0.3s var(--lv-ease), transform 0.4s var(--lv-ease);
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .chip:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.12);
    }
}

.chip.is-on,
.chip.is-on:hover {
    color: var(--lv-black);
    background: var(--lv-white);
}

/* The confirmation line eases in when a choice is made, and cross-fades
   when the choice changes. Its space is reserved so nothing below moves. */
.pick-out {
    min-height: 1.5em;
    margin-top: 18px !important;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: translate3d(0, 6px, 0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.pick-out.is-on {
    opacity: 1;
    transform: none;
}

.pick-out strong {
    font-weight: 600;
    color: var(--lv-white);
}

/* --- Accordion (Support) -------------------------------------------------------- */

.acc {
    max-width: 760px;
    margin-top: clamp(20px, 4vw, 40px);
}

.acc-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.acc-item button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 0;
    border: 0;
    font-family: inherit;
    font-size: clamp(16px, 1.5vw, 19px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-align: left;
    color: var(--lv-white);
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.acc-item button .lv-i {
    font-size: 20px;
    color: var(--lv-coral);
    transition: transform 0.5s var(--lv-ease);
}

.acc-item button[aria-expanded="true"] .lv-i {
    transform: rotate(45deg);
}

.acc-a {
    display: grid;
    grid-template-rows: 1fr;
}

.acc-a > div {
    min-height: 0;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
}

.acc-a > div::after {
    content: '';
    display: block;
    height: 18px;
}

.acc-a ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.acc-a li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.acc-a li .lv-i {
    margin-top: 0.2em;
    font-size: 17px;
    color: var(--lv-coral);
}

.acc-a a {
    color: var(--lv-coral);
    text-underline-offset: 3px;
}

.js .acc-a {
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s var(--lv-ease);
}

.js .acc-item.is-open .acc-a {
    grid-template-rows: 1fr;
}

/* --- Form (Testimonials) ---------------------------------------------------------- */

.p-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    width: 100%;
    max-width: 560px;
    margin-top: clamp(24px, 4vw, 40px);
}

.form-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
}

.form-optional {
    margin-left: 6px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
}

.p-form input[type="text"],
.p-form input[type="email"],
.p-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    font-family: inherit;
    font-size: 16px;
    color: var(--lv-white);
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s var(--lv-ease), background-color 0.3s var(--lv-ease);
}

.p-form textarea {
    min-height: 130px;
    resize: vertical;
}

.p-form input::placeholder,
.p-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.p-form input:focus,
.p-form textarea:focus {
    outline: none;
    border-color: var(--lv-sky);
    background: rgba(255, 255, 255, 0.09);
}

/* Photo picker: a button, the file name, and a way to take the photo off again. */
.file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s var(--lv-ease);
}

.file.has-file {
    border-color: rgba(255, 255, 255, 0.28);
}

/* Kept in the page for keyboards and screen readers, just not drawn. */
.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.file-btn {
    flex: none;
    padding: 11px 18px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lv-black);
    background: var(--lv-white);
    cursor: pointer;
    transition: transform 0.4s var(--lv-ease), background-color 0.3s var(--lv-ease);
}

@media (hover: hover) {
    .file-btn:hover {
        transform: translateY(-1px);
        background: var(--lv-almond);
    }
}

.file-input:focus-visible + .file-btn {
    outline: 2px solid var(--lv-sky);
    outline-offset: 3px;
}

.file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: 15px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.5);
}

.file.has-file .file-name {
    color: var(--lv-white);
}

.file-clear {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 0;
    border-radius: 99px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--lv-white);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.3s var(--lv-ease), color 0.3s var(--lv-ease);
}

.file-clear[hidden] {
    display: none;
}

@media (hover: hover) {
    .file-clear:hover {
        color: var(--lv-white);
        background: var(--lv-coral);
    }
}

.p-form .lv-btn {
    justify-self: start;
}

/* Centered variant: the form sits in the middle with left-aligned fields. */
.p-center .p-form,
.p-center .beta-thank-you {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.p-center .p-form .lv-btn {
    justify-self: stretch;
}

.p-center .p-form .form-privacy {
    text-align: center;
}

.p-form .lv-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.beta-thank-you {
    max-width: 560px;
    margin-top: 28px;
    padding: 32px;
    border-radius: 28px;
}

.beta-thank-you-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    color: var(--lv-black);
    background: var(--lv-sky);
}

.beta-thank-you h3 {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.beta-thank-you p {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Article (blog posts) ------------------------------------------------------------ */

.p-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    width: 100%;
    height: 2px;
    background: var(--lv-coral);
    transform: scaleX(var(--p, 0));
    transform-origin: left;
}

.p-article {
    max-width: 680px;
    margin: 0 auto;
}

.p-article-body {
    margin-top: clamp(28px, 5vw, 48px);
}

.p-article-body p {
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
}

.p-article-body p + p {
    margin-top: 1.4em;
}

.p-article-body h2,
.p-article-body h3 {
    margin: 2em 0 0.6em;
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.p-article-body a {
    color: var(--lv-coral);
    text-underline-offset: 3px;
}

.p-article-body .blog-post-signature {
    margin-top: 2em;
    font-weight: 600;
    color: var(--lv-white);
}

.p-article-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: clamp(36px, 6vw, 64px);
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.p-hero .p-article h1 {
    font-size: clamp(34px, 5.2vw, 58px);
    line-height: 1.06;
}

.p-article-date {
    margin-top: 28px !important;
}

.p-sec--flush {
    padding-top: 0;
}

/* --- Small screens ----------------------------------------------------------------------- */

@media (max-width: 900px) {
    .team {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    :root {
        --lv-header-h: 64px;
    }

    .file {
        gap: 10px;
        padding: 8px 10px 8px 8px;
    }

    .file-btn {
        padding: 10px 14px;
    }

    .file-clear {
        padding: 9px 12px;
    }

    .p-cards,
    .p-cards--two {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .p-card {
        padding: 22px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .team {
        gap: 10px;
    }

    .team-card {
        padding: 8px 8px 16px;
        border-radius: 20px;
    }

    .team-bio {
        display: none;
    }

    .p-article-body p {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .p-card--link,
    .team-card,
    .team-photo img,
    .chip,
    .p-link .lv-i,
    .p-card-more .lv-i {
        transition: none;
    }

    .story-panel {
        animation: none;
    }
}
