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

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

/* Sections */
.fl-section { padding-block: var(--fl-section); }
.fl-section--mist { background: var(--fl-mist); }
.fl-section--forest { background: var(--fl-forest); color: var(--fl-white); }
.fl-section--forest .fl-lead { color: rgba(255, 255, 255, .78); }
.fl-section--forest .fl-display, .fl-section--forest .fl-h2 { color: var(--fl-lime); }
.fl-section--lime { background: var(--fl-lime); color: var(--fl-forest); }
.fl-section--lime .fl-lead { color: var(--fl-forest); }

/* Type: compressed all-caps display for headlines, Instrument Sans for everything else */
.fl-display, .fl-h2 { margin: 0; font-family: var(--fl-display); font-weight: var(--fl-display-weight); font-stretch: 78%; font-variation-settings: "wdth" var(--fl-display-width); text-transform: uppercase; letter-spacing: var(--fl-tracking-display); color: var(--fl-forest); text-wrap: balance; }
.fl-display { font-size: var(--fl-text-hero); line-height: .86; }
.fl-h2 { font-size: var(--fl-text-h2); line-height: .9; }
.fl-h3 { margin: 0; font-size: var(--fl-text-h3); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.fl-mark { display: inline-block; padding: 0 .12em; border-radius: .14em; background: var(--fl-lime); color: var(--fl-forest); }
.fl-lead { max-width: 620px; margin: 24px 0 0; color: var(--fl-soft); font-size: var(--fl-text-lead); line-height: 1.45; }
.fl-eyebrow { display: inline-block; margin-bottom: 18px; color: var(--fl-forest); font-size: var(--fl-text-small); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fl-mono { font-family: var(--fl-mono); font-size: var(--fl-text-micro); }

/* Nav */
.fl-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
.fl-nav__left { display: flex; align-items: center; gap: 36px; }
.fl-nav__links { display: flex; gap: 26px; font-size: 16px; font-weight: 600; color: var(--fl-forest); }
.fl-nav__links a, .fl-nav__actions a:not(.fl-btn) { text-decoration: none; }
.fl-nav__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fl-nav__actions { display: flex; align-items: center; gap: 20px; font-size: 16px; font-weight: 600; color: var(--fl-forest); }
.fl-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--fl-forest); font-family: var(--fl-display); font-weight: 900; font-stretch: 78%; font-variation-settings: "wdth" 78; font-size: 28px; letter-spacing: -.01em; text-transform: uppercase; text-decoration: none; }
.fl-logo svg { width: 26px; height: 26px; }
@media (max-width: 860px) { .fl-nav__links, .fl-nav__hide { display: none; } }

/* Buttons: pills, lime for the main action, forest underline links for the second */
.fl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 30px; border: 0; border-radius: var(--fl-pill); font-family: var(--fl-sans); font-size: 17px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.fl-btn:focus-visible { outline: none; box-shadow: var(--fl-focus); }
.fl-btn--primary { background: var(--fl-lime); color: var(--fl-forest); }
.fl-btn--primary:hover { background: var(--fl-lime-deep); }
.fl-btn--forest { background: var(--fl-forest); color: var(--fl-white); }
.fl-btn--forest:hover { background: var(--fl-ink); }
.fl-btn--outline { background: transparent; color: var(--fl-forest); box-shadow: inset 0 0 0 2px var(--fl-forest); }
.fl-btn--outline:hover { background: var(--fl-forest); color: var(--fl-white); }
.fl-btn--sm { padding: 10px 18px; font-size: 15px; }
.fl-btn--lg { padding: 19px 38px; font-size: 19px; }
.fl-btn--block { width: 100%; }
.fl-link { color: var(--fl-forest); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; white-space: nowrap; }
.fl-link:hover { text-decoration-color: var(--fl-lime-deep); }
.fl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }

/* Hero */
.fl-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }

/* Globe: a drawn planet built from radial gradients, the one place gradients are allowed */
.fl-globe { position: relative; width: min(520px, 86vw); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; background:
  radial-gradient(circle at 30% 34%, var(--fl-lime) 0 13%, transparent 13.5%),
  radial-gradient(circle at 62% 26%, var(--fl-lime) 0 9%, transparent 9.5%),
  radial-gradient(circle at 70% 62%, var(--fl-lime-deep) 0 15%, transparent 15.5%),
  radial-gradient(circle at 38% 74%, var(--fl-lime) 0 8%, transparent 8.5%),
  radial-gradient(circle at 36% 30%, #E9F5FA 0, var(--fl-sky) 45%, #9FCDE0 100%); }
.fl-globe--half { width: min(720px, 92vw); margin-bottom: calc(min(720px, 92vw) / -2); }
.fl-globe__pin { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--fl-pill); background: var(--fl-white); color: var(--fl-forest); font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 0 0 1px var(--fl-line); }
.fl-globe__pin i { width: 10px; height: 10px; border-radius: 50%; background: var(--fl-lime-deep); }

/* Panels: big flat rounded blocks in tints */
.fl-panel { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--fl-radius-xl); background: var(--fl-mist); overflow: hidden; }
.fl-panel--sage { background: var(--fl-sage); }
.fl-panel--lime { background: var(--fl-lime); color: var(--fl-forest); }
.fl-panel--forest { background: var(--fl-forest); color: var(--fl-white); }
.fl-panel--forest .fl-h2, .fl-panel--forest .fl-display { color: var(--fl-lime); }
.fl-panel--sky { background: var(--fl-sky); }
.fl-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fl-gap); }
.fl-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fl-gap); }
@media (max-width: 860px) { .fl-grid-2, .fl-grid-3 { grid-template-columns: 1fr; } }

/* Cards */
.fl-card { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: var(--fl-radius-lg); background: var(--fl-mist); }
.fl-card--white { background: var(--fl-white); box-shadow: inset 0 0 0 1px var(--fl-line); }
.fl-card__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%; background: var(--fl-lime); color: var(--fl-forest); }
.fl-card__icon svg { width: 26px; height: 26px; }
.fl-card__title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--fl-forest); }
.fl-card__text { margin: 0; color: var(--fl-soft); }

/* Badges and chips */
.fl-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--fl-pill); background: var(--fl-lime-soft); color: var(--fl-forest); font-size: 13px; font-weight: 700; white-space: nowrap; }
.fl-badge--lime { background: var(--fl-lime); }
.fl-badge--forest { background: var(--fl-forest); color: var(--fl-lime); }
.fl-badge--line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fl-forest); }

/* App card: a flat phone-like product panel */
.fl-app { width: 100%; max-width: 360px; padding: 22px; border-radius: var(--fl-radius-lg); background: var(--fl-white); box-shadow: 0 0 0 1px var(--fl-line); color: var(--fl-ink); }
.fl-app__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: var(--fl-border); font-size: 15px; }
.fl-app__row:last-child { border-bottom: 0; }
.fl-app__row small { display: block; color: var(--fl-soft); font-size: 13px; }
.fl-app__big { margin: 4px 0 14px; font-family: var(--fl-display); font-weight: 900; font-stretch: 78%; font-variation-settings: "wdth" 78; font-size: 56px; line-height: .9; color: var(--fl-forest); }
.fl-flag { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--fl-sage); color: var(--fl-forest); font-size: 12px; font-weight: 700; }

/* Big numbers */
.fl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fl-gap); }
.fl-stat strong { display: block; font-family: var(--fl-display); font-weight: 900; font-stretch: 78%; font-variation-settings: "wdth" 78; font-size: clamp(56px, 7vw, 96px); line-height: .9; color: var(--fl-forest); }
.fl-stat span { display: block; margin-top: 10px; color: var(--fl-soft); }
@media (max-width: 700px) { .fl-stats { grid-template-columns: 1fr; } }

/* Ticker: wrap in .fl-ticker so it never causes sideways scroll */
.fl-ticker { overflow-x: clip; border-block: var(--fl-border); }
.fl-ticker__track { display: flex; gap: 48px; width: max-content; padding-block: 18px; animation: fl-ticker 40s linear infinite; font-family: var(--fl-display); font-weight: 800; font-stretch: 78%; font-variation-settings: "wdth" 78; font-size: 28px; color: var(--fl-forest); text-transform: uppercase; white-space: nowrap; }
.fl-ticker__track span::after { content: "\2022"; margin-left: 48px; color: var(--fl-lime-deep); }
@keyframes fl-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .fl-ticker__track { animation: none; } }

/* Quote */
.fl-quote { margin: 0; }
.fl-quote p { margin: 0; font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.025em; line-height: 1.18; color: var(--fl-forest); }
.fl-quote footer { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 15px; }
.fl-quote footer span { color: var(--fl-soft); }
.fl-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--fl-lime); color: var(--fl-forest); font-weight: 700; }

/* Segmented toggle */
.fl-segment { display: inline-flex; padding: 5px; border-radius: var(--fl-pill); background: var(--fl-mist); box-shadow: inset 0 0 0 1px var(--fl-line); }
.fl-segment button { padding: 10px 22px; border: 0; border-radius: var(--fl-pill); background: transparent; color: var(--fl-forest); font: 600 15px var(--fl-sans); white-space: nowrap; cursor: pointer; }
.fl-segment button[aria-pressed="true"] { background: var(--fl-forest); color: var(--fl-white); }

/* Pricing */
.fl-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fl-gap); align-items: stretch; }
.fl-plan { display: flex; flex-direction: column; padding: 36px 32px; border-radius: var(--fl-radius-lg); background: var(--fl-mist); }
.fl-plan--featured { background: var(--fl-forest); color: var(--fl-white); }
.fl-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fl-plan__name { margin: 0; font-size: 22px; font-weight: 700; }
.fl-plan__desc { margin: 10px 0 28px; color: var(--fl-soft); font-size: 15px; }
.fl-plan--featured .fl-plan__desc { color: rgba(255, 255, 255, .72); }
.fl-plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 28px; }
.fl-plan__price strong { font-family: var(--fl-display); font-weight: 900; font-stretch: 78%; font-variation-settings: "wdth" 78; font-size: 72px; line-height: .9; color: var(--fl-forest); }
.fl-plan--featured .fl-plan__price strong { color: var(--fl-lime); }
.fl-plan__price span { color: var(--fl-soft); font-size: 15px; }
.fl-plan--featured .fl-plan__price span { color: rgba(255, 255, 255, .72); }
.fl-plan__list { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 15px; }
.fl-plan__list li { display: flex; gap: 10px; }
.fl-plan__list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--fl-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2315330F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.fl-plan .fl-btn { margin-top: auto; }
.fl-plan__cta { margin-top: auto; padding-top: 8px; }
@media (max-width: 960px) { .fl-plans { grid-template-columns: 1fr; } }

/* Comparison table */
.fl-table-wrap { overflow-x: auto; border-radius: var(--fl-radius-lg); background: var(--fl-white); box-shadow: inset 0 0 0 1px var(--fl-line); }
.fl-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.fl-table th, .fl-table td { padding: 16px 22px; border-bottom: var(--fl-border); text-align: left; }
.fl-table thead th { color: var(--fl-forest); font-weight: 700; }
.fl-table tbody tr:last-child td { border-bottom: 0; }
.fl-table td:not(:first-child), .fl-table th:not(:first-child) { text-align: center; }
.fl-table__yes { color: var(--fl-forest); font-weight: 700; }
.fl-table__no { color: var(--fl-soft); }

/* FAQ */
.fl-faq { border-top: var(--fl-border-strong); }
.fl-faq details { border-bottom: var(--fl-border); }
.fl-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; color: var(--fl-forest); font-size: 20px; font-weight: 700; letter-spacing: -.01em; list-style: none; cursor: pointer; }
.fl-faq summary::-webkit-details-marker { display: none; }
.fl-faq summary::after { content: "+"; display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--fl-lime); font-size: 22px; font-weight: 500; transition: transform .2s ease; }
.fl-faq details[open] summary::after { transform: rotate(45deg); }
.fl-faq p { margin: 0 0 24px; max-width: 640px; color: var(--fl-soft); }

/* Article */
.fl-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--fl-soft); font-size: 15px; }
.fl-author { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.fl-author strong { display: block; color: var(--fl-forest); }
.fl-author--card { margin-top: 56px; padding: 28px; border-radius: var(--fl-radius-lg); background: var(--fl-mist); }
.fl-author--card p { margin: 4px 0 0; color: var(--fl-soft); font-size: 15px; }
.fl-prose { font-size: 19px; line-height: 1.65; }
.fl-prose > * + * { margin-top: 1.1em; }
.fl-prose p { margin-bottom: 0; }
.fl-prose h2 { margin: 2em 0 0; font-family: var(--fl-display); font-weight: 900; font-stretch: 78%; font-variation-settings: "wdth" 78; font-size: clamp(34px, 4.4vw, 48px); line-height: .95; text-transform: uppercase; color: var(--fl-forest); }
.fl-prose h3 { margin: 1.6em 0 0; font-size: 22px; font-weight: 700; color: var(--fl-forest); }
.fl-prose ul { padding-left: 0; list-style: none; }
.fl-prose ul li { position: relative; padding-left: 28px; }
.fl-prose ul li + li { margin-top: 10px; }
.fl-prose ul li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--fl-lime-deep); }
.fl-prose a { color: var(--fl-forest); text-decoration-thickness: 2px; text-decoration-color: var(--fl-lime-deep); text-underline-offset: 4px; }
.fl-prose blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 6px solid var(--fl-lime); color: var(--fl-forest); font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.fl-prose code { padding: 2px 7px; border-radius: 6px; background: var(--fl-mist); font-family: var(--fl-mono); font-size: .82em; }
.fl-prose figure { margin: 2em 0; }
.fl-prose figcaption { margin-top: 12px; color: var(--fl-soft); font-size: 14px; }
.fl-callout { padding: 24px 28px; border-radius: var(--fl-radius); background: var(--fl-lime-soft); color: var(--fl-forest); font-size: 17px; }
.fl-callout strong { display: block; margin-bottom: 4px; }
.fl-post { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.fl-post__thumb { aspect-ratio: 4 / 3; margin-bottom: 10px; border-radius: var(--fl-radius-lg); background: var(--fl-sage); overflow: hidden; }
.fl-post__title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--fl-forest); }
.fl-post:hover .fl-post__title { text-decoration: underline; text-underline-offset: 4px; }
.fl-post p { margin: 0; color: var(--fl-soft); font-size: 15px; }

/* Forms */
.fl-form { display: grid; gap: 20px; }
.fl-field { display: grid; gap: 8px; }
.fl-label { color: var(--fl-forest); font-size: 15px; font-weight: 700; }
.fl-input, .fl-select { width: 100%; padding: 15px 18px; border: 2px solid var(--fl-line); border-radius: var(--fl-radius-sm); background: var(--fl-white); color: var(--fl-ink); font: 500 17px var(--fl-sans); transition: border-color .15s ease; }
.fl-input:hover, .fl-select:hover { border-color: var(--fl-soft); }
.fl-input:focus, .fl-select:focus { outline: none; border-color: var(--fl-forest); box-shadow: 0 0 0 4px var(--fl-lime-soft); }
.fl-select { appearance: none; background: var(--fl-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%2315330F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 16px center / 18px no-repeat; padding-right: 44px; }
.fl-input-wrap { position: relative; }
.fl-input-wrap .fl-input { padding-right: 80px; }
.fl-input-toggle { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); padding: 8px 12px; border: 0; border-radius: var(--fl-pill); background: var(--fl-mist); color: var(--fl-forest); font: 700 13px var(--fl-sans); cursor: pointer; }
.fl-help { color: var(--fl-soft); font-size: 14px; }
.fl-error { color: var(--fl-alert); font-size: 14px; font-weight: 600; }
.fl-field--error .fl-input { border-color: var(--fl-alert); }
.fl-check { display: flex; align-items: flex-start; gap: 12px; color: var(--fl-soft); font-size: 15px; cursor: pointer; }
.fl-check input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--fl-forest); }
.fl-divider-text { display: flex; align-items: center; gap: 14px; color: var(--fl-soft); font-size: 14px; }
.fl-divider-text::before, .fl-divider-text::after { content: ""; flex: 1; height: 1px; background: var(--fl-line); }
.fl-btn--social { background: var(--fl-white); color: var(--fl-forest); box-shadow: inset 0 0 0 2px var(--fl-line); }
.fl-btn--social:hover { box-shadow: inset 0 0 0 2px var(--fl-forest); }
.fl-btn__letter { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--fl-sage); font-size: 13px; font-weight: 700; }

/* Footer */
.fl-footer { padding-block: 72px 36px; background: var(--fl-forest); color: rgba(255, 255, 255, .78); font-size: 15px; }
.fl-footer .fl-logo { color: var(--fl-lime); }
.fl-footer__cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.fl-footer h4 { margin: 0 0 16px; color: var(--fl-white); font-size: 15px; }
.fl-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fl-footer a { text-decoration: none; }
.fl-footer a:hover { color: var(--fl-lime); }
.fl-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 13px; }
@media (max-width: 760px) { .fl-footer__cols { grid-template-columns: 1fr 1fr; } }

/* Entrance */
.fl-rise { animation: fl-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fl-rise { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .fl-rise { animation: none; } }

/* Quote on forest */
.fl-section--forest .fl-quote p, .fl-panel--forest .fl-quote p { color: var(--fl-white); }
.fl-section--forest .fl-quote footer span:not(.fl-avatar), .fl-panel--forest .fl-quote footer span:not(.fl-avatar) { color: rgba(255, 255, 255, .7); }
.fl-panel--forest .fl-quote p { font-size: clamp(22px, 2.4vw, 30px); }
.fl-nav__actions a { white-space: nowrap; }
@media (max-width: 480px) { .fl-nav__actions a:not(.fl-btn) { display: none; } }
