/*
 * Frame Select: components
 * Needs tokens.css first. Every class starts with "fs-" so it can sit next to any other CSS.
 */

/* Base */
.fs { margin: 0; background: var(--fs-void); color: var(--fs-text); font-family: var(--fs-sans); font-size: var(--fs-text-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.fs *, .fs *::before, .fs *::after { box-sizing: border-box; }
.fs svg { display: block; max-width: 100%; }
.fs a:not([class]) { color: inherit; }
.fs-container { width: min(100% - 40px, var(--fs-container)); margin-inline: auto; }
.fs-narrow { width: min(100% - 40px, var(--fs-narrow)); margin-inline: auto; }
.fs-center { text-align: center; }
.fs-center .fs-lead { margin-inline: auto; }

/* Sections */
.fs-section { padding-block: var(--fs-section); }
.fs-section--panel { background: var(--fs-panel); }
.fs-section--glow { background: var(--fs-glow), var(--fs-void); background-repeat: no-repeat; }
.fs-section--panel .fs-chip, .fs-section--panel .fs-faq details { background: var(--fs-panel-2); }
.fs-rule { height: 1px; margin: 0; border: 0; background: var(--fs-line); }

/* Type: two tones. White words carry the meaning, .fs-dim words are the connective tissue */
.fs-hero-title, .fs-h2, .fs-h3 { margin: 0; color: var(--fs-text); font-weight: 500; }
.fs-hero-title { font-size: var(--fs-text-hero); letter-spacing: var(--fs-tracking-hero); line-height: 1.06; }
.fs-h2 { font-size: var(--fs-text-h2); letter-spacing: var(--fs-tracking-h2); line-height: 1.1; }
.fs-h3 { font-size: var(--fs-text-h3); letter-spacing: -.015em; line-height: 1.3; }
.fs-dim { color: var(--fs-dim); }
.fs-under { text-decoration: underline; text-decoration-color: var(--fs-line-2); text-decoration-thickness: 2px; text-underline-offset: .14em; }
.fs-lead { max-width: 560px; margin: 22px 0 0; color: var(--fs-dim); font-size: var(--fs-text-lead); line-height: 1.55; }
.fs-label { display: block; margin-bottom: 14px; color: var(--fs-dim); font-family: var(--fs-mono); font-size: var(--fs-text-micro); letter-spacing: .04em; text-transform: uppercase; }
.fs-mono { font-family: var(--fs-mono); font-size: var(--fs-text-micro); }

/* The signature: a selection frame with four square handles around one word or object */
.fs-select { position: relative; display: inline-block; padding: 0 .12em; outline: 1px solid var(--fs-select); outline-offset: 0; }
.fs-select::before, .fs-select::after, .fs-select > .fs-select__h::before, .fs-select > .fs-select__h::after { content: ""; position: absolute; width: var(--fs-handle); height: var(--fs-handle); border: 1px solid var(--fs-select); background: var(--fs-void); }
.fs-select::before { top: calc(var(--fs-handle) / -2); left: calc(var(--fs-handle) / -2); }
.fs-select::after { top: calc(var(--fs-handle) / -2); right: calc(var(--fs-handle) / -2); }
.fs-select > .fs-select__h::before { bottom: calc(var(--fs-handle) / -2); left: calc(var(--fs-handle) / -2); }
.fs-select > .fs-select__h::after { bottom: calc(var(--fs-handle) / -2); right: calc(var(--fs-handle) / -2); }
.fs-select__tag { position: absolute; left: -1px; top: -26px; padding: 2px 7px; border-radius: 4px 4px 4px 0; background: var(--fs-select); color: #fff; font-family: var(--fs-mono); font-size: 11px; font-weight: 500; letter-spacing: 0; line-height: 1.6; white-space: nowrap; }

/* Nav */
.fs-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; }
.fs-nav__left { display: flex; align-items: center; gap: 36px; }
.fs-nav__links { display: flex; gap: 26px; color: var(--fs-dim); font-size: 15px; }
.fs-nav__links a { text-decoration: none; transition: color .2s var(--fs-ease); }
.fs-nav__links a:hover, .fs-nav__links a[aria-current] { color: var(--fs-text); }
.fs-nav__end { display: flex; gap: 8px; }
.fs-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fs-text); font-size: 18px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; }
.fs-logo__mark { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 200deg, var(--fs-select), var(--fs-rose), var(--fs-amber), var(--fs-select)); }
@media (max-width: 820px) { .fs-nav__links { display: none; } }
@media (max-width: 480px) { .fs-nav__end .fs-btn--outline { display: none; } }

/* Badge: "New" pill plus a dim link */
.fs-badge { display: inline-flex; align-items: center; gap: 10px; color: var(--fs-dim); font-size: 15px; font-weight: 500; text-decoration: none; }
.fs-badge b { padding: 3px 10px; border: 1px solid var(--fs-line-2); border-radius: var(--fs-radius-pill); color: var(--fs-text); font-size: 13px; font-weight: 500; }
.fs-badge:hover { color: var(--fs-text); }

/* Buttons: pills. White for the main action, outline for the rest */
.fs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 1px solid transparent; border-radius: var(--fs-radius-pill); font-family: var(--fs-sans); font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s var(--fs-ease), border-color .2s var(--fs-ease); }
.fs-btn--white { background: var(--fs-text); color: var(--fs-void); }
.fs-btn--white:hover { background: #ffffff; }
.fs-btn--outline { border-color: var(--fs-line-2); background: transparent; color: var(--fs-text); }
.fs-btn--outline:hover { background: var(--fs-panel-2); }
.fs-btn--select { background: var(--fs-select); color: #fff; }
.fs-btn--sm { padding: 7px 14px; font-size: 14px; }
.fs-btn--block { width: 100%; }
.fs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.fs-center .fs-actions { justify-content: center; }

/* Chips: soft charcoal pills with a small icon */
.fs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-center .fs-chips { justify-content: center; }
.fs-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: var(--fs-radius-pill); background: var(--fs-panel); color: var(--fs-dim); font: 500 14px var(--fs-sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s var(--fs-ease), color .2s var(--fs-ease); }
.fs-chip svg { width: 15px; height: 15px; }
.fs-chip:hover, .fs-chip[aria-pressed="true"] { background: var(--fs-panel-2); color: var(--fs-text); }

/* Prompt: the big rounded input with a send button */
.fs-prompt { display: grid; gap: 28px; width: min(100%, 680px); margin: 40px auto 14px; padding: 18px 18px 14px; border: 1px solid var(--fs-line-2); border-radius: var(--fs-radius); background: var(--fs-panel-2); text-align: left; }
.fs-prompt textarea { min-height: 52px; padding: 0; border: 0; background: transparent; color: var(--fs-text); font: 17px var(--fs-sans); resize: none; outline: none; }
.fs-prompt textarea::placeholder { color: var(--fs-dim); }
.fs-prompt__bar { display: flex; justify-content: space-between; align-items: center; color: var(--fs-dim); }
.fs-prompt__send { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--fs-radius-sm); background: var(--fs-panel-3); color: var(--fs-text); cursor: pointer; }

/* Canvas: the editor window that holds product imagery */
.fs-canvas { position: relative; overflow: hidden; border: var(--fs-border); border-radius: var(--fs-radius-lg); background: var(--fs-panel); box-shadow: var(--fs-shadow); }
.fs-canvas__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: var(--fs-border); color: var(--fs-dim); font-size: 13px; }
.fs-canvas__tabs { display: flex; gap: 4px; }
.fs-canvas__tabs span { padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.fs-canvas__tabs span[aria-current] { background: var(--fs-panel-3); color: var(--fs-text); }
.fs-stage { position: relative; min-height: 360px; background: radial-gradient(40% 70% at 30% 0%, rgba(255, 182, 96, .28), transparent 70%), radial-gradient(35% 65% at 72% 0%, rgba(255, 111, 142, .22), transparent 70%), radial-gradient(30% 60% at 52% 0%, rgba(122, 116, 255, .22), transparent 70%), linear-gradient(180deg, #111113, #0b0b0c); }
.fs-stage__floor { position: absolute; inset: auto 0 0; height: 34%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 48px), linear-gradient(180deg, #19191c, #0d0d0e); transform-origin: bottom; }

/* Cards */
.fs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.fs-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: var(--fs-border); border-radius: var(--fs-radius); background: var(--fs-panel); color: inherit; text-decoration: none; }
.fs-card p { margin: 0; color: var(--fs-dim); }
a.fs-card { transition: border-color .2s var(--fs-ease); }
a.fs-card:hover { border-color: var(--fs-select); }
.fs-card__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--fs-panel-3); color: var(--fs-text); }
.fs-card__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--fs-faint); font-family: var(--fs-mono); font-size: var(--fs-text-micro); }

/* Stat and quote */
.fs-stat strong { display: block; font-size: clamp(38px, 4.6vw, 56px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.fs-stat span { display: block; margin-top: 10px; color: var(--fs-dim); font-size: var(--fs-text-small); }
.fs-quote { margin: 0; font-size: clamp(22px, 2.8vw, 32px); font-weight: 500; letter-spacing: -.025em; line-height: 1.3; }
.fs-quote cite { display: block; margin-top: 18px; color: var(--fs-dim); font-size: var(--fs-text-small); font-style: normal; font-weight: 400; letter-spacing: 0; }

/* Pricing */
.fs-toggle { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--fs-radius-pill); background: var(--fs-panel); }
.fs-toggle button { padding: 7px 16px; border: 0; border-radius: var(--fs-radius-pill); background: transparent; color: var(--fs-dim); font: 500 14px var(--fs-sans); cursor: pointer; white-space: nowrap; }
.fs-toggle button[aria-pressed="true"] { background: var(--fs-panel-3); color: var(--fs-text); }
.fs-price { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px; border: var(--fs-border); border-radius: var(--fs-radius); background: var(--fs-panel); }
.fs-price--featured { border-color: var(--fs-select); box-shadow: 0 0 0 1px var(--fs-select), var(--fs-shadow); }
.fs-price__amount { font-size: 46px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.fs-price__amount small { color: var(--fs-dim); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.fs-price ul { display: grid; gap: 10px; margin: 0; padding: 18px 0 0; border-top: var(--fs-border); list-style: none; color: var(--fs-dim); font-size: 15px; }
.fs-price li { display: flex; gap: 10px; }
.fs-price li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 8px; border: 1px solid var(--fs-select); }
.fs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fs-table th, .fs-table td { padding: 14px 10px; border-bottom: var(--fs-border); text-align: left; }
.fs-table th { color: var(--fs-dim); font-weight: 500; }
.fs-table td { color: var(--fs-text); }
.fs-table td + td, .fs-table th + th { text-align: center; }

/* FAQ */
.fs-faq { display: grid; gap: 8px; }
.fs-faq details { padding: 18px 22px; border-radius: var(--fs-radius); background: var(--fs-panel); }
.fs-faq summary { display: flex; justify-content: space-between; gap: 16px; font-weight: 500; cursor: pointer; list-style: none; }
.fs-faq summary::-webkit-details-marker { display: none; }
.fs-faq summary::after { content: "+"; color: var(--fs-dim); }
.fs-faq details[open] summary::after { content: "\2212"; }
.fs-faq p { margin: 10px 0 0; color: var(--fs-dim); }

/* Article */
.fs-article { color: #d6d6d3; font-size: 18px; line-height: 1.75; }
.fs-article p { margin: 0 0 1.2em; }
.fs-article h2 { margin: 1.8em 0 .6em; color: var(--fs-text); font-size: 26px; font-weight: 500; letter-spacing: -.025em; line-height: 1.25; }
.fs-article a { color: var(--fs-text); text-decoration: underline; text-decoration-color: var(--fs-select); text-underline-offset: 3px; }
.fs-article ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.fs-article li { margin-bottom: .4em; }
.fs-article code { padding: 2px 6px; border-radius: 5px; background: var(--fs-panel-2); color: var(--fs-text); font-family: var(--fs-mono); font-size: .85em; }
.fs-article figure { margin: 2em 0; }
.fs-article figcaption { margin-top: 10px; color: var(--fs-dim); font-size: var(--fs-text-small); }
.fs-article .fs-quote { margin: 2em 0; padding-left: 22px; border-left: 1px solid var(--fs-select); }
.fs-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; color: var(--fs-dim); font-size: var(--fs-text-small); }
.fs-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fs-panel-3); color: var(--fs-text); font-size: 13px; font-weight: 600; }
.fs-note { padding: 18px 20px; border: 1px solid var(--fs-select); border-radius: var(--fs-radius); background: var(--fs-select-soft); color: var(--fs-text); font-size: 16px; }

/* Forms */
.fs-form { display: grid; gap: 16px; }
.fs-field { display: grid; gap: 7px; }
.fs-field label { color: var(--fs-text); font-size: var(--fs-text-small); font-weight: 500; }
.fs-field small { color: var(--fs-faint); font-size: 13px; }
.fs-input { width: 100%; padding: 12px 14px; border: 1px solid var(--fs-line-2); border-radius: var(--fs-radius-sm); background: var(--fs-panel-2); color: var(--fs-text); font: 16px var(--fs-sans); }
.fs-input::placeholder { color: var(--fs-faint); }
.fs-input:focus { outline: 1px solid var(--fs-select); outline-offset: 0; border-color: var(--fs-select); }
.fs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .fs-row { grid-template-columns: 1fr; } }
.fs-check { display: flex; gap: 10px; align-items: flex-start; color: var(--fs-dim); font-size: var(--fs-text-small); }
.fs-check input { margin-top: 4px; accent-color: var(--fs-select); }
.fs-or { display: flex; align-items: center; gap: 14px; color: var(--fs-faint); font-size: 13px; }
.fs-or::before, .fs-or::after { content: ""; flex: 1; height: 1px; background: var(--fs-line); }

/* Footer */
.fs-footer { padding-block: 64px 36px; border-top: var(--fs-border); }
.fs-footer__cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.fs-footer h4 { margin: 0 0 12px; color: var(--fs-faint); font-family: var(--fs-mono); font-size: var(--fs-text-micro); font-weight: 400; text-transform: uppercase; }
.fs-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--fs-dim); font-size: 15px; }
.fs-footer a { text-decoration: none; }
.fs-footer a:hover { color: var(--fs-text); }
.fs-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; color: var(--fs-faint); font-size: 13px; }
@media (max-width: 760px) { .fs-footer__cols { grid-template-columns: 1fr 1fr; } .fs-footer__cols > :first-child { grid-column: 1 / -1; } }
