/* Xyncema Flow — bright, precise, product-led composition. Tokens: [data-theme="saas"] */

.f-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.f-h1, .f-h2, .f-h3 { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.035em; color: var(--text); }
.f-h1 { font-size: clamp(2.6rem, 5.8vw, 4.9rem); line-height: 1.02; }
.f-h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.06; }
.f-h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
.f-lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 40rem; line-height: 1.6; }
.f-eyebrow { font-family: var(--font-heading); font-weight: 700; font-size: .85rem; color: var(--primary-ink); }
.f-section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.f-center { text-align: center; margin-inline: auto; }
.f-muted { color: var(--muted); }

.f-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.25rem;
  border-radius: var(--radius-btn); border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary);
  font-family: var(--font-heading); font-weight: 700; font-size: .98rem; text-decoration: none; transition: background .15s, box-shadow .15s, border-color .15s, color .15s;
  box-shadow: 0 1px 2px rgba(18, 36, 73, .12), inset 0 1px 0 rgba(255,255,255,.14);
}
.f-btn:hover { background: #1B48C9; border-color: #1B48C9; }
.f-btn svg { width: 18px; height: 18px; }
.f-btn--soft { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: 0 1px 2px rgba(18, 36, 73, .06); }
.f-btn--soft:hover { background: #fff; border-color: #B8C6E6; }
.f-btn--sm { min-height: 38px; padding: .45rem .85rem; font-size: .88rem; border-radius: 8px; }
.f-btn--light { background: #fff; color: var(--secondary); border-color: #fff; }
.f-btn--light:hover { background: #E8EEFF; border-color: #E8EEFF; }
.f-link { color: var(--primary-ink); font-weight: 600; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.f-link svg { width: 16px; height: 16px; }
.f-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.f-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px) saturate(1.4); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.f-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
.f-logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.f-logo i { width: 26px; height: 26px; border-radius: 8px; background: var(--primary); display: grid; place-items: center; }
.f-logo i::before { content: ""; width: 12px; height: 4px; border-radius: 2px; background: #fff; box-shadow: 0 6px 0 rgba(255,255,255,.6), 0 -6px 0 rgba(255,255,255,.85); }
.f-logo small { font-family: var(--font-body); font-weight: 500; font-size: .75rem; letter-spacing: 0; color: var(--muted); }
.f-nav { display: flex; gap: .25rem; }
.f-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem .8rem; border-radius: 8px; color: var(--muted); }
.f-nav a:hover { color: var(--text); background: color-mix(in srgb, var(--primary) 7%, transparent); }
.f-nav a[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--primary) 9%, transparent); }
.f-header__cta { display: flex; gap: .5rem; align-items: center; }
.f-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); place-items: center; }
.f-toggle svg { width: 22px; height: 22px; }
.f-mobile { display: none; }
@media (max-width: 919px) {
  .f-nav, .f-header__cta .f-btn--soft { display: none; }
  .f-toggle { display: inline-grid; }
  .is-nav-open .f-mobile { display: grid; gap: .25rem; padding-block: .5rem 1rem; }
  .f-mobile a { text-decoration: none; padding: .8rem .5rem; font-weight: 600; font-size: 1.1rem; border-radius: 8px; }
  .f-mobile a:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
}
@media (max-width: 400px) { .f-header__cta .f-btn { display: none; } }

/* Hero */
.f-hero { padding-block: clamp(3.5rem, 8vw, 6rem) 0; overflow: hidden; }
.f-hero__text { display: grid; gap: 1.5rem; justify-items: start; max-width: 900px; }
.f-hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.f-hero__note { font-size: .88rem; color: var(--muted); }
.f-stage { margin-top: clamp(2.5rem, 5vw, 4rem); position: relative; }
.f-stage::before { content: ""; position: absolute; inset: 12% -4% -8% -4%; background: color-mix(in srgb, var(--primary) 10%, transparent); border-radius: 32px; z-index: 0; }

/* App preview */
.f-app { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(18, 36, 73, .28), 0 2px 6px rgba(18, 36, 73, .06); overflow: hidden; }
.f-app__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.f-app__ws { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .92rem; }
.f-app__ws i { width: 28px; height: 28px; border-radius: 8px; background: var(--secondary); color: #fff; display: grid; place-items: center; font-style: normal; font-size: .75rem; font-weight: 700; }
.f-app__ws span { color: var(--muted); font-weight: 400; }
.f-tabs { display: inline-flex; background: #EEF2FC; border-radius: 10px; padding: 3px; gap: 2px; }
.f-tabs button { border: 0; background: transparent; padding: .45rem .9rem; border-radius: 8px; font-weight: 600; font-size: .88rem; color: var(--muted); min-height: 36px; }
.f-tabs button[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(18,36,73,.12); }
.f-app__bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; background: #FAFBFF; }
.f-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.f-chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: .3rem .7rem; font-size: .82rem; font-weight: 600; color: var(--muted); min-height: 34px; display: inline-flex; align-items: center; gap: .35rem; }
.f-chip[aria-pressed="true"] { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.f-chip:hover:not([aria-pressed="true"]) { border-color: #B8C6E6; color: var(--text); }
.f-app__count { font-size: .82rem; color: var(--muted); }
.f-panel { padding: 1rem; min-height: 380px; }
.f-board { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(210px, 1fr)); gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .25rem; }
.f-col { background: #F4F7FF; border-radius: 12px; padding: .6rem; display: grid; gap: .5rem; align-content: start; scroll-snap-align: start; min-height: 320px; }
.f-col h3 { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 700; color: var(--muted); padding: .2rem .3rem .4rem; font-family: var(--font-body); letter-spacing: 0; }
.f-col h3 span { background: #fff; border-radius: 999px; padding: .05rem .5rem; font-size: .75rem; }
.f-task { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: .7rem; display: grid; gap: .5rem; box-shadow: 0 1px 2px rgba(18,36,73,.04); }
.f-task b { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.f-task__meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .75rem; color: var(--muted); }
.f-tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 600; color: var(--text); }
.f-tag::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c, var(--primary)); }
.f-avatar { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .62rem; font-weight: 700; background: #DDE6FB; color: var(--secondary); }
.f-status { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; background: var(--sbg); color: var(--sfg); white-space: nowrap; }
.f-status[data-s="Planned"] { --sbg: #EEF1F6; --sfg: #3F4B63; }
.f-status[data-s="In progress"] { --sbg: #E3ECFF; --sfg: #1D4ACB; }
.f-status[data-s="In review"] { --sbg: #FFF1D6; --sfg: #8A5300; }
.f-status[data-s="Done"] { --sbg: #DDF5EA; --sfg: #0B6B45; }
.f-status[data-s="Approved"] { --sbg: #DDF5EA; --sfg: #0B6B45; }
.f-status[data-s="Changes requested"] { --sbg: #FFE4E1; --sfg: #A1261B; }
.f-status[data-s="Waiting"] { --sbg: #FFF1D6; --sfg: #8A5300; }
.f-empty { padding: 3rem 1rem; text-align: center; color: var(--muted); display: grid; gap: .75rem; justify-items: center; }

/* Timeline */
.f-tl { display: grid; gap: .5rem; overflow-x: auto; }
.f-tl__grid { display: grid; grid-template-columns: 170px repeat(6, minmax(70px, 1fr)); min-width: 640px; align-items: center; }
.f-tl__head { font-size: .75rem; color: var(--muted); font-weight: 600; padding: .4rem .5rem; border-bottom: 1px solid var(--border); }
.f-tl__name { padding: .8rem .5rem; font-size: .88rem; font-weight: 600; display: grid; gap: .25rem; border-bottom: 1px dashed var(--border); }
.f-tl__row { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(6, minmax(70px, 1fr)); height: 100%; border-bottom: 1px dashed var(--border); align-items: center; position: relative; background-image: linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: calc(100% / 6) 100%; }
.f-tl__bar { height: 30px; border-radius: 8px; background: var(--c); color: #fff; font-size: .75rem; font-weight: 600; display: flex; align-items: center; padding: 0 .6rem; white-space: nowrap; overflow: hidden; margin-inline: 4px; }

/* Approvals list */
.f-approvals { display: grid; gap: .6rem; }
.f-appr { display: grid; grid-template-columns: 1fr auto; gap: .75rem 1rem; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem; background: #fff; }
.f-appr__title { display: grid; gap: .2rem; }
.f-appr__title b { font-weight: 600; }
.f-appr__title span { font-size: .82rem; color: var(--muted); }
.f-appr__actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .f-appr { grid-template-columns: 1fr; } .f-appr__actions { justify-content: flex-start; } }

/* Problem */
.f-problem { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.f-problem__list { display: grid; gap: 0; margin-top: 2rem; }
.f-problem__list li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; padding-block: 1.1rem; border-top: 1px solid var(--border); }
.f-problem__list li span { width: 2.25rem; height: 2.25rem; border-radius: 10px; background: #FFE9E6; color: #A1261B; display: grid; place-items: center; font-weight: 800; font-family: var(--font-heading); }
.f-problem__list p { color: var(--muted); }
.f-photo { position: relative; }
.f-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 20px; }
.f-float { position: absolute; left: -1.5rem; bottom: 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: .85rem 1rem; display: grid; gap: .4rem; box-shadow: 0 20px 40px -12px rgba(18,36,73,.3); width: min(300px, 80%); }
.f-float p { font-size: .85rem; }
@media (max-width: 899px) { .f-problem { grid-template-columns: 1fr; } .f-float { left: 1rem; } }

/* Workflow */
.f-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); counter-reset: st; }
.f-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .9rem; align-content: start; position: relative; }
.f-step__n { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-heading); font-weight: 800; color: var(--primary-ink); font-size: .9rem; }
.f-step__n b { width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.f-step p { color: var(--muted); }
.f-mini { border: 1px solid var(--border); border-radius: 12px; padding: .75rem; background: #FAFBFF; display: grid; gap: .5rem; margin-top: .25rem; }
.f-mini__row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .82rem; }
.f-progress { height: 8px; border-radius: 999px; background: #E6ECFA; overflow: hidden; }
.f-progress i { display: block; height: 100%; border-radius: inherit; background: var(--primary); width: var(--w); }
@media (max-width: 899px) { .f-steps { grid-template-columns: 1fr; } }

/* Feature rows */
.f-rows { display: grid; gap: clamp(3rem, 7vw, 6rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.f-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.f-row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.f-row:nth-child(even) .f-row__text { order: 2; }
.f-row__text { display: grid; gap: 1rem; align-content: start; }
.f-row__ui { background: linear-gradient(180deg, #EAF0FF, #F4F7FF); border: 1px solid var(--border); border-radius: 22px; padding: clamp(1rem, 3vw, 2rem); }
.f-checks { display: grid; gap: .55rem; }
.f-checks li { display: flex; gap: .6rem; align-items: flex-start; }
.f-checks svg { width: 18px; height: 18px; flex: none; color: var(--primary-ink); margin-top: .2rem; }
@media (max-width: 899px) { .f-row, .f-row:nth-child(even) { grid-template-columns: 1fr; } .f-row:nth-child(even) .f-row__text { order: 0; } }
.f-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1rem; display: grid; gap: .75rem; box-shadow: 0 10px 30px -18px rgba(18,36,73,.35); }
.f-card + .f-card { margin-top: .75rem; }
.f-spaces { display: grid; gap: .6rem; }
.f-space { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; align-items: center; }
.f-space small { color: var(--muted); font-size: .78rem; }
.f-load { display: grid; gap: .7rem; }
.f-load__row { display: grid; grid-template-columns: 34px 1fr 32px; gap: .7rem; align-items: center; font-size: .8rem; }
.f-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: #E6ECFA; }
.f-stack i { display: block; height: 100%; }
.f-legend { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .75rem; color: var(--muted); }
.f-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.f-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* Approval board section */
.f-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.f-lane { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: grid; gap: .75rem; align-content: start; min-height: 260px; }
.f-lane h3 { display: flex; justify-content: space-between; align-items: center; font-size: .95rem; }
.f-lane .f-appr { grid-template-columns: 1fr; }
.f-lane .f-appr__actions { justify-content: flex-start; }
@media (max-width: 899px) { .f-lanes { grid-template-columns: 1fr; } .f-lane { min-height: 0; } }

/* Pricing */
.f-pricing { background: var(--surface); border-block: 1px solid var(--border); }
.f-billing { display: inline-flex; align-items: center; gap: .25rem; padding: 4px; border-radius: 12px; background: #EEF2FC; margin-top: 1.75rem; }
.f-billing button { border: 0; background: transparent; border-radius: 9px; padding: .55rem 1rem; min-height: 40px; font-weight: 700; font-family: var(--font-heading); color: var(--muted); display: inline-flex; gap: .45rem; align-items: center; }
.f-billing button[aria-checked="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(18,36,73,.14); }
.f-billing small { font-size: .72rem; background: #DDF5EA; color: #0B6B45; padding: .1rem .45rem; border-radius: 999px; }
.f-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; align-items: stretch; }
.f-plan { border: 1px solid var(--border); border-radius: 20px; padding: 1.75rem; display: grid; gap: 1.25rem; align-content: start; background: var(--bg); }
.f-plan--featured { background: var(--secondary); color: #fff; border-color: var(--secondary); box-shadow: 0 30px 60px -24px rgba(18,36,73,.55); }
.f-plan--featured .f-h3, .f-plan--featured .f-price b { color: #fff; }
.f-plan--featured .f-muted, .f-plan--featured .f-price small, .f-plan--featured .f-plan__bill { color: #C9D6F2; }
.f-plan--featured .f-checks svg { color: #8FB0FF; }
.f-plan__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.f-plan__badge { font-size: .72rem; font-weight: 700; background: #8FB0FF; color: var(--secondary); padding: .2rem .55rem; border-radius: 999px; }
.f-price { display: grid; gap: .25rem; }
.f-price b { font-family: var(--font-heading); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.f-price small { color: var(--muted); font-size: .85rem; }
.f-price s { color: var(--muted); font-size: .9rem; }
.f-plan--featured .f-price s { color: #9FB2DB; }
.f-plan__bill { font-size: .85rem; color: var(--muted); min-height: 2.6em; }
.f-plan .f-btn { width: 100%; }
.f-plan--featured .f-btn { background: #fff; color: var(--secondary); border-color: #fff; }
.f-plan--featured .f-btn:hover { background: #E8EEFF; }
@media (max-width: 960px) { .f-plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* FAQ */
.f-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4rem); }
.f-faq details { border-bottom: 1px solid var(--border); }
.f-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-family: var(--font-heading); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }
.f-faq summary::-webkit-details-marker { display: none; }
.f-faq summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 6px; background: #E3ECFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4ACB' stroke-width='2.2'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
.f-faq details[open] summary::after { transform: rotate(45deg); }
.f-faq details p { padding-bottom: 1.2rem; color: var(--muted); max-width: 64ch; }
@media (max-width: 899px) { .f-faq { grid-template-columns: 1fr; } }

/* Final CTA */
.f-final { background: var(--secondary); color: #fff; border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.f-final__text { padding: clamp(2rem, 5vw, 4rem); display: grid; gap: 1.25rem; align-content: center; }
.f-final .f-h2 { color: #fff; }
.f-final p { color: #C9D6F2; }
.f-final img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.f-final .f-btn--soft { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; }
.f-final .f-btn--soft:hover { background: rgba(255,255,255,.1); }
@media (max-width: 899px) { .f-final { grid-template-columns: 1fr; } .f-final img { min-height: 0; aspect-ratio: 16 / 10; } }

/* Features page */
.f-pagehead { padding-block: clamp(3rem, 7vw, 5rem) 2rem; display: grid; gap: 1.25rem; }
.f-crumbs { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.f-crumbs a { color: var(--muted); }
.f-seg { display: inline-flex; gap: .25rem; padding: 4px; border-radius: 12px; background: #EEF2FC; flex-wrap: wrap; }
.f-seg button { border: 0; background: transparent; border-radius: 9px; padding: .5rem .9rem; min-height: 40px; font-weight: 700; font-family: var(--font-heading); font-size: .92rem; color: var(--muted); }
.f-seg button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(18,36,73,.14); }
.f-fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
@media (max-width: 960px) { .f-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .f-fgrid { grid-template-columns: 1fr; } }
.f-feature { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .9rem; align-content: start; transition: border-color .15s, box-shadow .15s, transform .15s; }
.f-feature:hover { border-color: #B8C6E6; box-shadow: 0 16px 40px -24px rgba(18,36,73,.4); transform: translateY(-2px); }
.f-feature a { text-decoration: none; }
.f-feature a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.f-feature__art { height: 132px; border-radius: 12px; background: linear-gradient(180deg, #EAF0FF, #F4F7FF); border: 1px solid var(--border); padding: .8rem; overflow: hidden; display: grid; align-content: center; }
.f-plantags { display: flex; gap: .35rem; flex-wrap: wrap; }
.f-plantag { font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: #EEF2FC; color: var(--muted); }
.f-plantag.is-on { background: #E3ECFF; color: #1D4ACB; }
.f-table { width: 100%; min-width: 560px; }
.f-table th, .f-table td { padding: .85rem .75rem; border-bottom: 1px solid var(--border); text-align: center; font-size: .92rem; }
.f-table th:first-child, .f-table td:first-child { text-align: left; }
.f-table thead th { font-family: var(--font-heading); font-weight: 800; font-size: 1rem; }
.f-table td svg { width: 20px; height: 20px; color: #0B6B45; margin-inline: auto; }
.f-scroll { overflow-x: auto; min-width: 0; max-width: 100%; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* Feature detail */
.f-dhero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: 1rem clamp(3.5rem, 7vw, 5rem); }
.f-dhero__text { display: grid; gap: 1.25rem; align-content: start; }
.f-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.f-points li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; display: grid; gap: .5rem; align-content: start; }
.f-points p { color: var(--muted); }
.f-howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: h; }
.f-howto li { counter-increment: h; display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; align-items: start; }
.f-howto li::before { content: counter(h); width: 2rem; height: 2rem; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-heading); }
.f-avail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.f-avail div { border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; background: var(--surface); display: grid; gap: .3rem; }
.f-avail div.is-off { background: transparent; border-style: dashed; color: var(--muted); }
.f-avail b { font-family: var(--font-heading); font-weight: 800; }
.f-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-pager a { border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.2rem; text-decoration: none; display: grid; gap: .2rem; background: var(--surface); }
.f-pager a:last-child { text-align: right; }
.f-pager a:hover { border-color: #B8C6E6; }
.f-pager small { color: var(--muted); }
.f-pager b { font-family: var(--font-heading); font-weight: 800; }
@media (max-width: 899px) { .f-dhero, .f-points, .f-howto, .f-avail { grid-template-columns: minmax(0, 1fr); } }
.f-checklist { display: grid; gap: .35rem; }
.f-checklist label { display: flex; gap: .6rem; align-items: center; padding: .45rem .5rem; border-radius: 8px; font-size: .9rem; cursor: pointer; }
.f-checklist label:hover { background: #F4F7FF; }
.f-checklist input { width: 18px; height: 18px; accent-color: var(--primary); }
.f-checklist input:checked + span { text-decoration: line-through; color: var(--muted); }

/* Plan summary dialog */
.f-summary { display: grid; gap: 1rem; }
.f-summary dl { display: grid; grid-template-columns: 1fr auto; gap: .55rem 1rem; padding: 1rem; border-radius: 12px; background: #F4F7FF; }
.f-summary dt { color: var(--muted); }
.f-summary dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.f-summary .is-total { font-weight: 800; font-family: var(--font-heading); font-size: 1.05rem; color: var(--text); }
.f-okbadge { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: #0B6B45; }
.f-okbadge svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #DDF5EA; }
[data-theme="saas"] dialog.xy-dialog:not(.xy-lightbox) { border-radius: 18px; }
[data-theme="saas"] .xy-dialog__title { font-weight: 800; letter-spacing: -0.02em; }

/* Footer */
.f-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: 3.5rem 2rem; margin-top: clamp(4rem, 8vw, 6rem); }
.f-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 2rem; }
.f-footer h3 { font-family: var(--font-heading); font-size: .9rem; font-weight: 800; margin-bottom: .9rem; }
.f-footer ul { display: grid; gap: .5rem; }
.f-footer a { text-decoration: none; color: var(--muted); }
.f-footer a:hover { color: var(--text); text-decoration: underline; }
.f-footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); }
.f-footer .xy-attribution a, .f-footer .xy-attribution button { color: var(--text); }
@media (max-width: 899px) { .f-footer__grid { grid-template-columns: 1fr 1fr; } .f-footer__grid > :first-child { grid-column: 1 / -1; } }

.f-dhero > * { min-width: 0; }
.f-dhero > div:last-child { overflow-x: auto; }
