/* Feature landing pages (/features/*) — hero, locked-input card, rule cards, steps, compare table, FAQ, CTA.
   Mobile-first; uses the global design tokens (--brand, --card, --border, --muted, --violet). */
.fx { max-width: 1080px; margin: 0 auto; padding: 8px 0 56px; }
.fx section { margin-top: 64px; scroll-margin-top: 96px; }
.fx h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; margin: 0 0 14px; font-weight: 800; letter-spacing: -.025em; }
.fx h3 { font-size: 1.05rem; line-height: 1.35; margin: 0 0 8px; }
.fx p { line-height: 1.7; }
.fx code { background: color-mix(in srgb, var(--brand) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border));
  padding: 2px 8px; border-radius: 8px; font-size: .9em; white-space: nowrap; }
.fx-table code, .fx-a code { white-space: normal; overflow-wrap: anywhere; }
.fx-sec-lead { color: var(--muted); max-width: 760px; margin: 0 0 26px; }

/* ---------- Hero ---------- */
.fx-hero { display: grid; gap: 30px; align-items: center; padding: 26px 0 4px; }
.fx-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  background: color-mix(in srgb, var(--brand) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.fx-hero h1 { margin: 16px 0 14px; font-size: clamp(1.9rem, 5.4vw, 3.1rem) !important; line-height: 1.1 !important; }
.fx-hl { color: var(--brand-dark, #1a56c4); }
[data-theme="dark"] .fx-hl { color: var(--brand); }
.fx-lead { font-size: 1.06rem; color: var(--muted); margin: 0 0 22px; max-width: 560px; }
.fx-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fx-cta-row .btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.fx-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .84rem; font-weight: 600; color: var(--muted); }
.fx-trust li { display: inline-flex; align-items: center; gap: 7px; }
.fx-trust .ico { color: var(--brand-dark, #1a56c4); }
[data-theme="dark"] .fx-trust .ico { color: var(--brand); }

/* ---------- Alias card ---------- */
.fx-studio { padding: 22px; border-radius: 26px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-hover, 0 20px 50px -20px rgba(0,0,0,.25)); position: relative; }
.fx-studio::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 5px; border-radius: 26px 26px 0 0; background: linear-gradient(90deg, var(--brand), var(--violet)); }
.fx-compare { display: grid; gap: 10px; margin-bottom: 20px; }
.fx-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg); min-width: 0; }
.fx-row .fx-tag { flex: none; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); width: 66px; }
.fx-row .fx-url { flex: 1; min-width: 0; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.fx-row .fx-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.fx-row.is-bad .fx-url { color: var(--muted); }
.fx-row.is-bad .fx-mark { background: color-mix(in srgb, #dc2626 14%, transparent); color: #dc2626; }
.fx-row.is-good { background: color-mix(in srgb, var(--brand) 10%, var(--card)); border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.fx-row.is-good .fx-tag { color: var(--brand-dark, #1a56c4); }
[data-theme="dark"] .fx-row.is-good .fx-tag { color: var(--brand); }
.fx-row.is-good .fx-mark { background: var(--brand); color: #fff; }

.fx-field label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .88rem; }
.fx-badge { font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand-dark, #1a56c4); }
[data-theme="dark"] .fx-badge { color: var(--brand); }
.fx-input { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--field, var(--bg)); padding: 0 14px; transition: border-color .15s, box-shadow .15s; }
.fx-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); background: var(--card); }
.fx-input .ico { flex: none; color: var(--muted); }
.fx-input input, .fx-input input:focus, .fx-input input:hover { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 14px 0 !important; font-size: 1rem; }
.fx-input .fx-prefix { flex: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.fx-input.is-locked { background: color-mix(in srgb, var(--muted) 8%, var(--bg)); border-style: dashed; cursor: not-allowed; }
.fx-input.is-locked input { cursor: not-allowed; }
.fx-input.is-ok { border-color: #16a34a; }
.fx-input.is-err { border-color: #dc2626; }
.fx-help { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: .84rem; line-height: 1.55; color: var(--muted); }
.fx-help .ico { flex: none; margin-top: 3px; }
.fx-help.is-ok { color: #15803d; } .fx-help.is-err { color: #dc2626; }
[data-theme="dark"] .fx-help.is-ok { color: #4ade80; } [data-theme="dark"] .fx-help.is-err { color: #f87171; }
.fx-studio .fx-cta-row { margin-top: 18px; }
.fx-studio .fx-cta-row .btn { flex: 1 1 170px; }

/* ---------- Benefit + rule cards ---------- */
.fx-grid { display: grid; gap: 16px; }
.fx-card { padding: 24px; border-radius: 22px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); height: 100%; transition: transform .18s, box-shadow .18s, border-color .18s; }
.fx-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.fx-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.fx-card p strong { color: var(--text); }
.fx-ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 14px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-dark, #1a56c4); }
[data-theme="dark"] .fx-ico { color: var(--brand); }
.fx-intro { max-width: 820px; }
.fx-intro p { margin: 0 0 14px; }
.fx-example { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 26px; }

/* ---------- Steps ---------- */
.fx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.fx-step { position: relative; padding: 24px 24px 24px 24px; border-radius: 22px; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); counter-increment: s; }
.fx-step::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; margin-bottom: 14px; font-weight: 800; color: var(--brand-ink, #fff); background: var(--brand); box-shadow: 0 10px 20px -10px var(--brand); }
.fx-step p { margin: 0; color: var(--muted); font-size: .96rem; }
.fx-step p a { text-decoration: underline; text-underline-offset: 3px; }
.fx-step h3 { margin-bottom: 6px; }

/* ---------- Compare table ---------- */
.fx-table-wrap { border: 1px solid var(--border); border-radius: 22px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.fx-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fx-table th, .fx-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.fx-table tbody tr:last-child th, .fx-table tbody tr:last-child td { border-bottom: 0; }
.fx-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg); }
.fx-table thead th.is-pro { color: var(--brand-ink, #fff); background: var(--brand); }
.fx-table tbody th { font-weight: 700; width: 24%; }
.fx-table td.is-pro { background: color-mix(in srgb, var(--brand) 8%, var(--card)); font-weight: 600; }
.fx-table td.is-no { color: var(--muted); }
.fx-table td .ico { vertical-align: -3px; margin-right: 6px; }
.fx-table td.is-pro .ico { color: #16a34a; }
.fx-table td.is-no .ico { color: #dc2626; }

/* ---------- FAQ ---------- */
.fx-faqwrap { display: grid; gap: 28px; }
.fx-faqside h2 { margin-top: 14px; }
.fx-faqside .fx-sec-lead { margin-bottom: 18px; }
.fx-faqmeta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); font-size: .88rem; color: var(--muted); }
.fx-faqmeta strong { color: var(--text); }
.fx-faqtoggle { border: 0; background: none; font: 700 .86rem Montserrat, sans-serif; color: var(--brand-dark, #1a56c4); cursor: pointer; padding: 6px 4px; }
[data-theme="dark"] .fx-faqtoggle { color: var(--brand); }
.fx-faqtoggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.fx-help-card { display: grid; gap: 6px; justify-items: start; margin-top: 16px; padding: 20px; border-radius: 20px; color: #fff; background: linear-gradient(155deg, #1a3a7a, #4285f4); box-shadow: 0 20px 40px -24px rgba(26,86,196,.8); }
.fx-help-card span { font-size: .84rem; color: rgba(255,255,255,.82); margin-bottom: 8px; }
.fx-help-card .btn { background: #fff; color: #1a56c4; display: inline-flex; align-items: center; gap: 8px; box-shadow: none; }
.fx-help-card .btn:hover { background: #f3f7ff; }
.fx-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .84rem; font-weight: 700; color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }

.fx-faq { display: grid; gap: 12px; align-content: start; }
.fx-q { border: 1px solid var(--border); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .2s; scroll-margin-top: 100px; }
.fx-q:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.fx-q[open] { border-color: color-mix(in srgb, var(--brand) 60%, var(--border)); box-shadow: 0 18px 38px -22px rgba(26,86,196,.45); }
.fx-q summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; -webkit-tap-highlight-color: transparent; }
.fx-q summary::-webkit-details-marker { display: none; }
.fx-q summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.fx-qico { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-dark, #1a56c4); transition: background .15s, color .15s; }
[data-theme="dark"] .fx-qico { color: var(--brand); }
.fx-q[open] .fx-qico { background: var(--brand); color: #fff; }
.fx-q h3 { flex: 1; margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.fx-plus { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); transition: transform .25s, background .15s; }
.fx-plus::before, .fx-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--text); border-radius: 2px; transition: transform .25s, background .15s; }
.fx-plus::after { transform: rotate(90deg); }
.fx-q[open] .fx-plus { background: var(--brand); border-color: var(--brand); transform: rotate(180deg); }
.fx-q[open] .fx-plus::before, .fx-q[open] .fx-plus::after { background: #fff; }
.fx-q[open] .fx-plus::after { transform: rotate(0); }
.fx-a { margin: 0 18px 18px 72px; padding-left: 16px; border-left: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); color: var(--muted); line-height: 1.75; animation: fxIn .25s ease; }
.fx-a p { margin: 0 0 10px; } .fx-a p:last-child { margin: 0; }
@keyframes fxIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 939px) {
  .fx-faqside { display: contents; }
  .fx-faqside > .fx-kicker { justify-self: start; }
  .fx-faqside > .fx-help-card { order: 5; margin-top: 4px; width: 100%; box-sizing: border-box; }
  .fx-faqside h2 { margin: 0; }
  .fx-faqside .fx-sec-lead { margin: 0; }
  .fx-faq { order: 4; }
}
@media (min-width: 940px) {
  .fx-faqwrap { grid-template-columns: 330px minmax(0, 1fr); gap: 44px; }
  .fx-faqside { position: sticky; top: 96px; align-self: start; }
}

/* ---------- Final CTA + share ---------- */
.fx-final { text-align: center; padding: 40px 22px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, #1a56c4, #4285f4 60%, #6aa6ff); box-shadow: 0 30px 60px -30px rgba(26,86,196,.7); }
.fx-final h2 { color: #fff; margin-bottom: 10px; }
.fx-final p { margin: 0 auto 22px; max-width: 560px; color: rgba(255,255,255,.88); }
.fx-final .fx-cta-row { justify-content: center; }
.fx-final .btn { background: #fff; color: #1a56c4; box-shadow: 0 12px 24px -12px rgba(0,0,0,.4); }
.fx-final .btn:hover { background: #f3f7ff; }
.fx-final .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); box-shadow: none; }
.fx-final .btn-secondary:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.fx-share { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.fx-share strong { font-size: .9rem; }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  .fx-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .fx-grid.cols-3, .fx-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 940px) {
  .fx-hero { grid-template-columns: 1.08fr .92fr; gap: 48px; padding-top: 38px; }
  .fx-studio { padding: 28px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 759px) {
  .fx section { margin-top: 48px; }
  .fx-cta-row .btn { flex: 1 1 100%; }
  .fx-card, .fx-step { padding: 20px; }
  .fx-row { gap: 10px; padding: 12px; } .fx-row .fx-tag { width: 50px; }
  .fx-final { padding: 32px 18px; border-radius: 22px; }
  /* compare table turns into stacked cards */
  .fx-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fx-table, .fx-table tbody, .fx-table tr, .fx-table th, .fx-table td { display: block; width: 100% !important; }
  .fx-table tr { border-bottom: 1px solid var(--border); padding: 6px 0 10px; }
  .fx-table tbody tr:last-child { border-bottom: 0; }
  .fx-table tbody th { padding: 14px 18px 4px; border: 0; font-size: 1rem; }
  .fx-table td { padding: 8px 18px; border: 0; }
  .fx-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
  .fx-table td.is-pro { border-radius: 0; }
  .fx-q summary { padding: 14px; gap: 12px; } .fx-qico { width: 36px; height: 36px; }
  .fx-a { margin: 0 16px 16px; }
}
@media (prefers-reduced-motion: reduce) { .fx-card, .fx-plus, .fx-plus::before, .fx-plus::after { transition: none; } .fx-card:hover { transform: none; } }
