/* Feature pages (/feature/{slug}), scoped to .fp. Silver palette and type scale shared with the homepage. */
.fp {
    --ground: #f6f7f8;
    --silver: #eef1f4;
    --ink: #191b22;
    --ink-2: #2d323c;
    --muted: #626777;
    --faint: #8a909c;
    --line: #e2e6eb;
    --line-2: #d3d9e0;
    --slate: #1d2532;
    --green: #286c4c;
    --play: #dc2626;
    --shadow-tile: 0 1px 2px #1c1f2a12, 0 12px 28px -10px #1c1f2a30;
    --shadow-panel: 0 1px 1px #1c1f2a0a, 0 2px 6px #1c1f2a08, 0 30px 70px -28px #1c1f2a45;
    --wrap: 1320px;
    --gutter: clamp(16px, 4vw, 56px);
    --section: clamp(80px, 9vw, 136px);
    --ease: cubic-bezier(.22, 1, .36, 1);
    background: var(--ground);
    color: var(--ink);
    letter-spacing: -.011em;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.fp *, .fp *::before, .fp *::after { box-sizing: border-box; }
/* Zero-specificity reset, so component margins below always win */
:where(.fp) :where(h1, h2, h3, p, figure, ul) { margin: 0; }
:where(.fp) :where(ul) { padding: 0; list-style: none; }
.fp :focus-visible { outline: 2px solid #3b6fd9; outline-offset: 3px; border-radius: 6px; }
.fp [x-cloak] { display: none !important; }
.fp-wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.fp-section { padding-block: var(--section); }

/* Type */
.fp-title { font-weight: 600; letter-spacing: -.055em; line-height: .96; text-wrap: balance; }
.fp-h2 { font-size: clamp(32px, 3.6vw, 54px); font-weight: 600; letter-spacing: -.045em; line-height: 1.04; text-wrap: balance; }
.fp-lead { font-size: clamp(19px, 1.6vw, 24px); font-weight: 500; letter-spacing: -.025em; line-height: 1.35; color: var(--ink-2); text-wrap: pretty; }
.fp-body { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.fp-small { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Controls */
.fp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fp-actions-toggle { display: contents; }
.fp-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 26px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease); box-shadow: 0 1px 2px #1c1f2a26, 0 10px 24px -12px #1c1f2a80; }
.fp-button:hover { background: #2a2d37; transform: translateY(-1px); }
.fp-button > span { transition: transform .25s var(--ease); }
.fp-button:hover > span { transform: translateX(3px); }
.fp-button:disabled { opacity: .55; cursor: progress; }
.fp-button-enable { background: var(--green); border-color: var(--green); }
.fp-button-enable:hover { background: #22603f; }
.fp-button-quiet { background: #ffffffc7; color: var(--ink); border-color: #cfd5dc; box-shadow: 0 1px 2px #1c1f2a0f; }
.fp-button-quiet:hover { background: #fff; border-color: #aeb6c0; }
.fp-button-quiet:hover > span { transform: translate(2px, -2px); }
.fp-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: #c4cad2; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.fp-link:hover { text-decoration-color: currentColor; }
.fp-reassure { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--muted); }
.fp-reassure span { display: inline-flex; align-items: center; gap: 7px; }
.fp-reassure svg { color: var(--green); flex-shrink: 0; }

/* Icon tile: one neutral style for every module */
.fp-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #fff; color: var(--ink); border: 1px solid #e6e9ee; box-shadow: var(--shadow-tile); flex-shrink: 0; }
.fp-icon svg { width: 21px; height: 21px; }

/* Product window */
.fp-window { position: relative; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid #dfe4ea; box-shadow: var(--shadow-panel); }
.fp-window-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #f3f5f7; border-bottom: 1px solid #e4e8ec; }
.fp-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5dae0; }
.fp-window-url { margin-inline: auto; padding: 4px 14px; border-radius: 8px; background: #fff; font-size: 12.5px; color: var(--muted); border: 1px solid #e6e9ee; transform: translateX(-20px); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-window-media { display: block; width: 100%; height: auto; }
.fp-window video.fp-window-media { aspect-ratio: 1540 / 900; object-fit: cover; object-position: top; background: #f3f5f7; }
.fp-window-empty { display: grid; place-items: center; gap: 18px; aspect-ratio: 1540 / 900; background: linear-gradient(180deg, #fafbfc, #eef1f4); color: var(--muted); text-align: center; padding: 32px; }
.fp-window-empty .fp-icon { width: 64px; height: 64px; border-radius: 18px; }
.fp-window-empty .fp-icon svg { width: 30px; height: 30px; }
.fp-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 3vw, 44px); }

/* Hero */
.fp-hero { padding-top: clamp(40px, 5vw, 76px); }
.fp-hero > .fp-wrap { text-align: center; }
.fp-hero .fp-title { font-size: clamp(56px, 9vw, 136px); letter-spacing: -.065em; line-height: .9; }
.fp-hero .fp-title-long { font-size: clamp(42px, 5.4vw, 84px); letter-spacing: -.05em; }
.fp-hero .fp-lead { max-width: 30em; margin: clamp(20px, 2vw, 28px) auto 0; }
.fp-hero .fp-actions { justify-content: center; margin-top: 32px; }
.fp-hero .fp-reassure { justify-content: center; margin-top: 18px; }
.fp-site { margin-top: 14px; }
.fp .fp-badges { margin-top: 24px; }
/* After the Nature Work boot screen the stage starts straight on the dark ground */
.fp-hero-after-boot { padding-top: 0; background: #07080b; }

/* Stage: the product and its walkthrough film */
.fp-stage { position: relative; margin-top: clamp(40px, 4.5vw, 64px); padding-bottom: clamp(64px, 7vw, 104px); color: #fff; }
.fp-stage::before { content: ""; position: absolute; inset: clamp(120px, 16vw, 260px) 0 0; background: var(--slate); }
.fp-stage > * { position: relative; }
.fp-hero-after-boot .fp-stage { margin-top: 0; padding-top: clamp(24px, 3vw, 40px); }
.fp-hero-after-boot .fp-stage::before { top: 0; background: linear-gradient(#07080b, var(--slate) 40%); }
.fp-stage-switch { display: flex; justify-content: center; margin-bottom: 20px; }
.fp-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: #e3e7ec; }
.fp-tabs button { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; background: none; font-size: 14.5px; font-weight: 500; color: #5d6574; cursor: pointer; transition: background-color .2s, color .2s; }
.fp-tabs button[aria-pressed=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #1c1f2a1c; }
.fp-tabs button:not([aria-pressed=true]):hover { background: #ffffff8c; color: var(--ink); }
.fp-tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fp-tab-icon, .fp-tab-play { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; }
.fp-tab-icon { border-radius: 9px; background: #fff; color: var(--muted); box-shadow: 0 1px 2px #1c1f2a1f; transition: background-color .2s, color .2s; }
.fp-tab-icon svg { width: 16px; height: 16px; }
[aria-pressed=true] > .fp-tab-icon { background: var(--ink); color: #fff; box-shadow: none; }
.fp-tab-play { border-radius: 50%; background: var(--play); color: #fff; box-shadow: 0 2px 8px -2px #dc2626aa; }
.fp-tab-play svg { width: 14px; height: 14px; margin-left: 2px; }
.fp-tab-film:hover .fp-tab-play { background: #ef4444; }
.fp-tabs.is-calling .fp-tab-film:not([aria-pressed=true]) .fp-tab-play { animation: fp-call 1.5s var(--ease) 4; }
@keyframes fp-call {
    0% { transform: scale(1); box-shadow: 0 0 0 0 #dc262673; }
    18% { transform: scale(1.14); }
    36% { transform: scale(1); }
    80%, 100% { box-shadow: 0 0 0 14px #dc262600; }
}
.fp-stage-frame { max-width: 1240px; margin-inline: auto; }
.fp-stage-frame .fp-window { border-color: #ffffff1f; box-shadow: 0 50px 120px -40px #0009, 0 0 0 1px #0000000d; }
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .fp-stage-frame { animation: fp-stage-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    }
}
/* Scale only: fading the frame let the light ground and the dark band show through the screenshot */
@keyframes fp-stage-rise { from { transform: scale(.92); } to { transform: none; } }
.fp-guide { margin-top: 18px; text-align: center; }
.fp-guide .fp-link { color: #fff; text-decoration-color: #6b7686; }
.fp-stage-text { max-width: 980px; margin: clamp(56px, 6vw, 88px) auto 0; text-align: center; font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.03em; line-height: 1.3; color: #dfe4ea; text-wrap: balance; }

/* The module's example request to an AI agent */
/* Bottom padding keeps the thread clear of module sections with their own backgrounds */
.fp-agent { padding-bottom: clamp(64px, 7vw, 104px); }
.fp-agent + .fp-close, .fp-agent + .fp-module-film { padding-top: 0; }
.fp-agent-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.fp-agent-head .fp-body { max-width: 36em; }
.fp-agents { display: inline-flex; align-items: center; }
.fp-agents img { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.fp-agents img + img { margin-left: -6px; }
.fp-thread { max-width: 760px; margin: clamp(32px, 3.5vw, 48px) auto 0; display: grid; gap: 22px; }
.fp-bubble-you { justify-self: end; max-width: 85%; display: grid; gap: 6px; justify-items: end; }
.fp-bubble-you p { padding: 16px 20px; border-radius: 22px 22px 6px 22px; background: var(--ink); color: #fff; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; letter-spacing: -.015em; }
.fp-who { font-size: 13px; color: var(--muted); }
.fp-bubble-agent { justify-self: start; width: min(100%, 680px); padding: 22px 24px 24px; border-radius: 22px 22px 22px 6px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-panel); display: grid; gap: 16px; }
.fp-bubble-agent header { display: flex; align-items: center; gap: 10px; }
.fp-bubble-agent header strong { font-size: 15px; font-weight: 600; }
.fp-tool-chip { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--silver); font-size: 13.5px; color: var(--ink-2); }
.fp-tool-chip svg { width: 15px; height: 15px; }
.fp-ticks { display: grid; gap: 10px; }
.fp-ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.fp-ticks li > svg { margin-top: 2px; color: var(--green); }
.fp-ticks strong { font-weight: 600; }
.fp-ticks span { color: var(--muted); }
.fp-bubble-agent > p { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
/* The script adds is-waiting only when motion is allowed, then is-playing once the thread is in view. */
.fp-thread.is-waiting > *, .fp-thread.is-waiting .fp-ticks li, .fp-thread.is-waiting .fp-bubble-agent > p { opacity: 0; }
.fp-thread.is-playing > *, .fp-thread.is-playing .fp-ticks li, .fp-thread.is-playing .fp-bubble-agent > p { animation: fp-in .6s var(--ease) both; }
.fp-thread.is-playing > :nth-child(2) { animation-delay: .5s; }
.fp-thread.is-playing .fp-ticks li:nth-child(1) { animation-delay: .9s; }
.fp-thread.is-playing .fp-ticks li:nth-child(2) { animation-delay: 1.2s; }
.fp-thread.is-playing .fp-ticks li:nth-child(3) { animation-delay: 1.5s; }
.fp-thread.is-playing .fp-bubble-agent > p { animation-delay: 1.9s; }
@keyframes fp-in { from { opacity: 0; transform: translateY(10px); } }

/* Rewriter's demo film */
.fp-module-film { padding-bottom: clamp(64px, 7vw, 104px); }

/* Price statement and closing actions */
.fp-statement { font-size: clamp(30px, 3.6vw, 56px); font-weight: 600; letter-spacing: -.045em; line-height: 1.12; text-wrap: balance; max-width: 22em; }
.fp-statement span { color: var(--faint); }
.fp-close .fp-actions { margin-top: 40px; }
.fp-close .fp-reassure { margin-top: 18px; }

/* Related modules */
.fp-related { padding-top: 0; }
.fp-related-list { border-top: 1px solid var(--line-2); }
.fp-related-list a { display: grid; grid-template-columns: 44px minmax(0, 14em) minmax(0, 1fr) 24px; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line-2); color: inherit; text-decoration: none; transition: padding .3s var(--ease); }
.fp-related-list a:hover { padding-left: 8px; }
.fp-related-list strong { font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
.fp-related-desc { color: var(--muted); line-height: 1.5; }
.fp-related-list .fp-arrow { color: var(--faint); }

@media (max-width: 640px) {
    .fp-window-bar { height: 30px; padding: 0 10px; }
    .fp-window-bar i { width: 7px; height: 7px; }
    .fp-window-url { font-size: 11px; padding: 2px 10px; transform: none; }
    .fp-window { border-radius: 12px; }
    .fp-actions .fp-button { flex: 1 1 100%; }
    .fp-related-list a { grid-template-columns: 44px minmax(0, 1fr); }
    .fp-related-desc, .fp-related-list .fp-arrow { display: none; }
    .fp-stage-text { text-align: left; font-size: 18px; line-height: 1.5; }
    .fp-statement { font-size: 28px; }
}
