/* ── Feature pages: the /features hub and /features/<slug> (www/features.html, www/feature_page.html)
   The designer's Figma "Trellis — Website / Interactive Prototype", Features frames 24:1039 (desktop)
   and 24:2473 (phone). Tokens are the Figma variables. The header and footer have their own
   stylesheets; nothing here may style .lp-header / .lp-mobile-nav / .site-footer. */

:root {
    --ft-ink: #092f36;
    --ft-cyan: #11b6e2;
    --ft-cyan-ink: #007d99; /* cyan for small text on white: #11b6e2 is only 2.4:1 */
    --ft-cyan-large: #0899c0; /* cyan for large headings: 3.3:1 on white and on the pale band */
    --ft-lime: #cfff04;
    --ft-muted: #5c7176;
    --ft-line: #dce7e9;
    --ft-pale: #eaf7fa;
    --ft-band: #f6fdff;
    --ft-white: #fff;
    --ft-font: 'Poppins', 'Poppins Fallback', 'Poppins Fallback Android', sans-serif;
    --ft-pad: 64px;
    --ft-max: 1152px;
    --ft-shadow: 0 15px 37px rgba(9, 47, 54, 0.16);
}

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

body.ft-page {
    margin: 0;
    background: var(--ft-white);
    color: var(--ft-ink);
    font-family: var(--ft-font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.ft-page img {
    max-inline-size: 100%;
    block-size: auto;
}

.ft-page :where(h1, h2, h3, p, ul, ol, dl, figure) {
    margin: 0;
}

.ft-page :where(h1, h2, h3) {
    font-weight: 500;
    text-wrap: balance;
}

.ft-page p {
    text-wrap: pretty;
}

.ft-wrap {
    max-inline-size: calc(var(--ft-max) + 2 * var(--ft-pad));
    margin-inline: auto;
    padding-inline: var(--ft-pad);
}

.ft-accent {
    color: var(--ft-cyan-large);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.ft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-block-size: 52px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: 500 15px/1.2 var(--ft-font);
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ft-btn::after {
    content: "→";
    font-size: 18px;
    line-height: 1;
}

.ft-btn--lime {
    background: var(--ft-lime);
    color: var(--ft-ink);
}

.ft-btn--outline {
    background: var(--ft-white);
    border-color: var(--ft-line);
    color: var(--ft-cyan-ink);
}

.ft-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(9, 47, 54, 0.12);
}

.ft-btn:active {
    transform: scale(0.98);
}

.ft-page a:focus-visible,
.ft-page button:focus-visible,
.ft-page summary:focus-visible {
    outline: 2px solid var(--ft-ink);
    outline-offset: 3px;
    border-radius: 6px;
}

.ft-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-block-size: 44px;
    color: var(--ft-cyan-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.ft-link::after {
    content: "→";
    transition: translate 0.15s ease;
}

.ft-link:hover::after {
    translate: 3px 0;
}

/* ── Eyebrow + labels ────────────────────────────────────────────────── */
.ft-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-block-end: 16px;
    color: var(--ft-ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ft-eyebrow svg {
    inline-size: 18px;
    block-size: 18px;
    flex: none;
}

.ft-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--ft-cyan-ink);
    color: var(--ft-white);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.ft-label::before {
    content: "✓";
    font-size: 12px;
}

.ft-label--request {
    background: var(--ft-white);
    border: 1px solid var(--ft-cyan-ink);
    color: var(--ft-cyan-ink);
}

.ft-label--request::before {
    content: "+";
}

/* ── Hero (cyan band) ────────────────────────────────────────────────── */
.ft-hero {
    background: var(--ft-cyan);
    color: var(--ft-ink);
}

.ft-hero__inner {
    padding-block: 88px;
}

.ft-hero--hub .ft-hero__inner {
    text-align: center;
}

.ft-hero__title {
    font-size: clamp(38px, 4.2vw + 8px, 61px);
    line-height: 1.13;
    letter-spacing: -0.045em;
}

.ft-hero__title span {
    display: block;
}

.ft-hero__title .ft-hero__mark {
    /* The Figma sets this line white on cyan: 2.4:1, which fails even for large text. Ink with a
       lime marker keeps the two-tone line and passes (6:1). */
    display: inline;
    background: linear-gradient(transparent 62%, var(--ft-lime) 62%, var(--ft-lime) 92%, transparent 92%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.ft-hero__lead {
    max-inline-size: 34em;
    margin-block-start: 24px;
    color: var(--ft-ink);
    font-size: 16px;
    line-height: 1.6;
}

.ft-hero--hub .ft-hero__lead {
    margin-inline: auto;
}

.ft-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-block-start: 36px;
}

.ft-hero--hub .ft-hero__ctas {
    justify-content: center;
}

.ft-hero--page .ft-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 56px;
    padding-block: 64px 72px;
}

.ft-hero--page .ft-eyebrow {
    color: var(--ft-ink);
}

.ft-hero__shot img {
    display: block;
    inline-size: 100%;
    border-radius: 16px;
    box-shadow: var(--ft-shadow);
    background: var(--ft-white);
}

.ft-hero__shot--phone {
    justify-self: center;
    max-inline-size: 320px;
}

.ft-hero__shot--phone img {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* Breadcrumb on the feature pages: the same trail as their BreadcrumbList. */
.ft-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin-block-end: 20px;
    list-style: none;
    font-size: 13px;
}

.ft-crumbs li + li::before {
    content: "/";
    margin-inline-end: 6px;
    color: var(--ft-ink);
}

.ft-crumbs a {
    color: var(--ft-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ft-crumbs [aria-current="page"] {
    font-weight: 600;
}

/* ── Jump strip under the hub hero: page navigation, not tabs ────────── */
.ft-jump {
    border-block-end: 1px solid var(--ft-line);
    background: var(--ft-white);
}

.ft-jump ul {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0 auto;
    padding: 0 var(--ft-pad);
    max-inline-size: calc(var(--ft-max) + 2 * var(--ft-pad));
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-padding-inline: var(--ft-pad);
}

/* Fade whichever edge has more links beyond it, so a strip that scrolls says so
   (modern-web-guidance "tabs": scroll-driven mask; browsers without it simply show no fade). */
@property --ft-fade-start {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

@property --ft-fade-end {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

@supports (animation-timeline: scroll()) {
    .ft-jump ul {
        --ft-fade-size: 3rem;
        mask:
            linear-gradient(black, black) no-clip subtract,
            linear-gradient(to right, black, transparent) 0 0 / var(--ft-fade-start) 100% no-repeat no-clip,
            linear-gradient(to right, transparent, black) 100% 0 / var(--ft-fade-end) 100% no-repeat no-clip;
        animation: ft-fade-start linear both, ft-fade-end linear both;
        animation-timeline: scroll(self inline);
        animation-range: 0 var(--ft-fade-size), calc(100% - var(--ft-fade-size)) 100%;
    }
}

@keyframes ft-fade-start {
    to {
        --ft-fade-start: var(--ft-fade-size);
    }
}

@keyframes ft-fade-end {
    from {
        --ft-fade-end: var(--ft-fade-size);
    }
}

.ft-jump ul::-webkit-scrollbar {
    display: none;
}

.ft-jump li {
    flex: none;
}

.ft-jump a {
    display: inline-flex;
    align-items: center;
    min-block-size: 54px;
    padding-inline: 8px;
    color: var(--ft-ink);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.ft-jump a:hover {
    color: var(--ft-cyan-ink);
}

/* ── Feature sections (alternating text + mockup) ────────────────────── */
.ft-section {
    padding-block: 104px;
    scroll-margin-block-start: 80px;
}

.ft-section--band {
    background: var(--ft-band);
}

.ft-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 72px;
}

.ft-section--flip .ft-section__text {
    order: 2;
}

.ft-section__title {
    font-size: clamp(32px, 2.6vw + 10px, 42px);
    line-height: 1.17;
    letter-spacing: -0.045em;
}

.ft-section__title span {
    display: block;
}

.ft-section__lead {
    margin-block-start: 24px;
    max-inline-size: 34em;
    color: var(--ft-muted);
    font-size: 15px;
    line-height: 1.75;
}

.ft-checks {
    display: grid;
    gap: 12px;
    margin-block: 28px;
    padding: 0;
    list-style: none;
}

.ft-checks li {
    position: relative;
    padding-inline-start: 26px;
    font-size: 14px;
}

.ft-checks li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    color: var(--ft-cyan-ink);
    font-weight: 600;
}

.ft-section__more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
}

.ft-shot img {
    display: block;
    inline-size: 100%;
    border-radius: 14px;
}

.ft-shot--phone {
    justify-self: center;
    max-inline-size: 300px;
}

/* ── Point grid (feature pages) ──────────────────────────────────────── */
.ft-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 48px 0 0;
}

.ft-point {
    padding: 24px;
    border: 1px solid var(--ft-line);
    border-radius: 16px;
    background: var(--ft-white);
    box-shadow: 0 8px 28px rgba(9, 47, 54, 0.05);
}

.ft-point dt {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.ft-point dd {
    margin: 8px 0 0;
    color: var(--ft-muted);
    font-size: 14px;
    line-height: 1.65;
}

.ft-head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: end;
    gap: 24px 56px;
}

.ft-head p {
    color: var(--ft-muted);
    font-size: 15px;
}

/* ── Extras (labelled cards) ─────────────────────────────────────────── */
.ft-extras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-block-start: 40px;
    padding: 0;
    list-style: none;
}

.ft-extra {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--ft-line);
    border-radius: 16px;
    background: var(--ft-white);
}

.ft-extra h3 {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.ft-extra p {
    color: var(--ft-muted);
    font-size: 14px;
}

.ft-extra .ft-label {
    align-self: flex-start;
    margin-block-start: auto;
}

.ft-note {
    margin-block-start: 24px;
    color: var(--ft-muted);
    font-size: 13px;
}

/* ── Hub: card grid (feature directory + optional modules) ───────────── */
.ft-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}

.ft-cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ft-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px 20px;
    border: 1px solid var(--ft-line);
    border-radius: 16px;
    background: var(--ft-white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ft-card:has(a:hover) {
    border-color: var(--ft-cyan);
    box-shadow: 0 8px 28px rgba(9, 47, 54, 0.08);
}

.ft-card__icon {
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    border-radius: 10px;
    background: var(--ft-pale);
    color: var(--ft-cyan-ink);
}

.ft-card__icon svg {
    inline-size: 20px;
    block-size: 20px;
}

.ft-card h3 {
    font-size: 20px;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.ft-card p {
    color: var(--ft-muted);
    font-size: 14px;
}

.ft-card .ft-link {
    margin-block-start: auto;
}

/* The whole card is the link's hit area; the link text stays the accessible name. */
.ft-card .ft-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.ft-card .ft-label {
    align-self: flex-start;
}

/* ── Hub: "Start with Core. Add more with Plus." (Figma 24:1254) ──────── */
.ft-cards--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-block-start: 38px;
}

.ft-tier {
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 4px;
    background: #e2f5fb;
    color: var(--ft-cyan-ink); /* the Figma's #11b6e2 on this tint is 2.1:1 */
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ft-tier--core {
    background: var(--ft-white);
    color: var(--ft-ink);
}

.ft-card--core {
    align-self: start;
    border-color: transparent;
    background: var(--ft-lime);
}

.ft-card__list {
    margin: 4px 0 0;
    padding-inline-start: 1.1em;
    list-style-type: disc; /* the shared reset strips bullets */
    color: var(--ft-ink);
    font-size: 13px;
    line-height: 1.85;
}

.ft-card__icon--bare {
    inline-size: auto;
    block-size: auto;
    margin-block-start: 18px;
    place-items: start;
    background: none;
}

.ft-card__icon--bare svg {
    inline-size: 35px;
    block-size: 35px;
}

.ft-card--core ~ .ft-card h3 {
    font-size: 18px;
}

.ft-card--core ~ .ft-card p {
    font-size: 13px;
}

.ft-bundles__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    margin-block-start: 18px;
}

.ft-bundles__foot p {
    color: var(--ft-muted);
    font-size: 13px;
}

.ft-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-block-start: 28px;
    padding: 28px 32px;
    border: 1px solid var(--ft-cyan);
    border-radius: 16px;
    background: var(--ft-white);
}

.ft-callout h3 {
    font-size: 20px;
}

.ft-callout p {
    margin-block-start: 6px;
    color: var(--ft-muted);
    font-size: 13px;
}

/* ── FAQ (native details: find-in-page and deep links keep working) ─── */
.ft-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
}

.ft-faq__list details {
    border-block-end: 1px solid var(--ft-line);
}

.ft-faq__list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-block-size: 64px;
    padding-block: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.ft-faq__list summary::-webkit-details-marker {
    display: none;
}

.ft-faq__list summary::after {
    content: "+";
    flex: none;
    color: var(--ft-cyan-ink);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    transition: rotate 0.2s ease;
}

.ft-faq__list details[open] > summary::after {
    rotate: 45deg;
}

.ft-faq__list details p {
    padding-block-end: 20px;
    max-inline-size: 42em;
    color: var(--ft-muted);
    font-size: 14px;
}

.ft-faq__list details::details-content {
    interpolate-size: allow-keywords;
    overflow: clip;
    contain: layout;
}

.ft-faq__list details:not([open])::details-content {
    block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .ft-faq__list details::details-content {
        transition: block-size 0.3s ease-in-out, content-visibility 0.3s ease-in-out;
        transition-behavior: allow-discrete;
    }
}

/* ── Related pages + closing CTA ─────────────────────────────────────── */
.ft-related ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-block-start: 24px;
    padding: 0;
    list-style: none;
}

.ft-related a {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    padding: 0 18px;
    border: 1px solid var(--ft-line);
    border-radius: 999px;
    color: var(--ft-ink);
    font-size: 14px;
    text-decoration: none;
}

.ft-related a:hover {
    border-color: var(--ft-cyan);
    color: var(--ft-cyan-ink);
}

.ft-cta {
    padding-block: 24px 104px;
}

.ft-cta__box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 72px 56px;
    border-radius: 20px;
    background: var(--ft-cyan);
}

.ft-cta__box h2 {
    max-inline-size: 13em;
    color: var(--ft-ink);
    font-size: clamp(28px, 2vw + 12px, 39px);
    line-height: 1.17;
    letter-spacing: -0.045em;
}

.ft-cta__box p {
    margin-block-start: 20px;
    color: var(--ft-ink);
    font-size: 14px;
}

/* ── Tablet ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    :root {
        --ft-pad: 40px;
    }

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

    .ft-section {
        padding-block: 80px;
    }

    .ft-section__grid,
    .ft-hero--page .ft-hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ft-section--flip .ft-section__text {
        order: 0;
    }

    .ft-shot,
    .ft-hero__shot {
        max-inline-size: 640px;
    }

    .ft-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ft-faq__grid,
    .ft-head {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ── Phone ───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    :root {
        --ft-pad: 24px;
    }

    body.ft-page {
        font-size: 14px;
    }

    .ft-hero__inner {
        padding-block: 56px 64px;
    }

    .ft-hero--page .ft-hero__inner {
        padding-block: 40px 56px;
    }

    .ft-hero__ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .ft-jump ul {
        justify-content: flex-start;
    }

    .ft-section {
        padding-block: 64px;
    }

    .ft-points,
    .ft-cards--3,
    .ft-cards--4 {
        grid-template-columns: 1fr;
    }

    .ft-cta {
        padding-block-end: 64px;
    }

    .ft-cta__box {
        padding: 48px 24px;
    }

    .ft-cta__box .ft-btn {
        inline-size: 100%;
    }

    .ft-callout {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ft-btn,
    .ft-link::after,
    .ft-faq__list summary::after {
        transition: none;
    }
}
