/* Shared styles for the discovery funnel (Browse / Describe / Finder / package page). Uses the site tokens from styles.css. */
.fx-wrap { max-width: 720px; margin: 0 auto; padding: 0 0 40px; }
.fx-kr { display: block; font-size: 0.85em; font-weight: 400; color: var(--color-ink-soft); margin-top: 2px; }
.fx-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px; margin: 0 0 14px; }
.fx-card h3 { margin: 0 0 4px; }
.fx-muted { color: var(--color-ink-soft); font-size: 0.95rem; }
.fx-msg { border-radius: 8px; padding: 12px 14px; margin: 14px 0; font-size: 0.95rem; }
.fx-msg:empty { display: none; }
.fx-msg.info { background: #e9f0ff; color: #1e3a8a; }
.fx-msg.ok { background: #e6f6ec; color: #14532d; }
.fx-msg.warn { background: var(--color-warning-bg); border: 1px solid var(--color-warning-border); color: var(--color-warning-ink); }
.fx-msg.err { background: #fdecec; color: #7f1d1d; }
.fx-field { margin: 0 0 16px; }
.fx-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.fx-field textarea, .fx-field input[type=text], .fx-field input[type=email], .fx-field input[type=tel] { width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 8px; font: inherit; }
.fx-field textarea { min-height: 110px; resize: vertical; }
.fx-btn { font: inherit; font-weight: 600; padding: 12px 20px; border-radius: 6px; border: 2px solid var(--color-accent); background: var(--color-accent); color: #fff; cursor: pointer; }
.fx-btn:hover { background: var(--color-accent-dark); }
.fx-btn.secondary { background: transparent; color: var(--color-accent); }
.fx-btn.secondary:hover { background: var(--color-accent); color: #fff; }
.fx-btn[disabled] { opacity: .5; cursor: not-allowed; }
.fx-btn.small { padding: 6px 12px; font-size: 0.9rem; }
.fx-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.fx-choice { display: block; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 8px; cursor: pointer; background: var(--color-surface); }
.fx-choice input { margin-right: 8px; }
.fx-choice:has(input:checked) { border-color: var(--color-accent); background: #f3f7fc; }
.fx-choice .fx-kr { margin-left: 26px; }
.fx-steps { font-size: 0.85rem; color: var(--color-ink-soft); margin-bottom: 8px; }
.fx-item { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.fx-item:last-child { border-bottom: none; }
.fx-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef1f5; color: var(--color-ink-soft); }
.fx-badge.fx-step-no { display: table; margin-bottom: 6px; background: #e8efff; color: #1e3a8a; }
.fx-badge.ok { background: #e6f6ec; color: #14532d; }
.fx-badge.warn { background: var(--color-warning-bg); color: var(--color-warning-ink); }
/* demo viewer */
.fx-demo { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px; margin: 0 0 14px; background: var(--color-surface); }
.fx-demo video { width: 100%; max-height: 360px; background: #000; border-radius: 6px; margin: 8px 0; }
.fx-demo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.fx-demo-step { border-radius: 8px; padding: 10px 12px; font-size: 0.9rem; background: #f6f5f1; }
.fx-demo-step strong { display: block; font-size: 0.8rem; letter-spacing: .02em; text-transform: uppercase; color: var(--color-ink-soft); }
/* Solution Preview (Batch M): real rendered SMS/email text, shown as a simple message bubble */
.fx-preview-head { margin: 12px 0 4px; font-size: 0.95rem; }
.fx-preview-bubble { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px 14px; margin: 8px 0; background: #f6f5f1; max-width: 420px; }
.fx-preview-channel { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-ink-soft); margin-bottom: 6px; }
.fx-preview-subject { font-weight: 600; margin-bottom: 4px; }
.fx-preview-text { white-space: pre-wrap; line-height: 1.4; }
.fx-preview-sample-note { font-size: 12px; color: var(--color-ink-soft); margin-top: 6px; }
.fx-demo-step.result { background: #eaf6ee; }
@media (max-width: 640px) { .fx-demo-steps { grid-template-columns: 1fr; } }
.fx-price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.fx-price-row:last-child { border-bottom: none; }
.fx-price-row.final { border-top: 2px solid var(--color-ink); border-bottom: none; padding-top: 12px; margin-top: 4px; font-weight: 700; }
.fx-price-row.savings .v { color: #14532d; }
.fx-sticky { position: sticky; bottom: 0; background: var(--color-surface); border-top: 1px solid var(--color-border); padding: 12px 20px; display: flex; justify-content: space-between; gap: 12px; align-items: center; z-index: 10; }

/* package price view (price-view.js): original value -> savings -> final price */
.pv-card { background: var(--color-surface, #fff); border: 1px solid var(--color-border, #e3e0d8); border-radius: 8px; padding: 18px; margin: 0 0 14px; }
.pv-card[hidden], .pv-verify[hidden] { display: none; }
.pv-card h2 { font-size: 15px; margin: 0 0 10px; font-weight: 600; color: var(--color-ink-soft, #4a5568); }
.pv-card h2 .fx-kr { font-size: 12px; }
.pv-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--color-border, #e3e0d8); }
.pv-row:last-of-type { border-bottom: none; }
.pv-label { font-size: 15px; }
.pv-label .fx-kr { font-size: 12px; }
.pv-value { font-weight: 700; font-size: 17px; white-space: nowrap; }
.pv-per { font-weight: 400; font-size: 13px; color: var(--color-ink-soft, #4a5568); margin-left: 2px; }
.pv-savings .pv-value { color: #14532d; }
.pv-final { border: 2px solid var(--color-ink, #182230); }
.pv-strong .pv-value { font-size: 22px; }
.pv-summary { font-size: 15px; margin: 12px 0 2px; }
.pv-summary-kr { font-size: 13px; margin: 0; }
.pv-billing { font-size: 14px; color: var(--color-ink-soft, #4a5568); margin: 4px 0 14px; }
.pv-billing p { margin: 0; }
.pv-verify { background: #e9f0ff; color: #1e3a8a; border-radius: 8px; padding: 12px; font-size: 14px; margin: 0 0 14px; }
@media (max-width: 420px) { .pv-card { padding: 14px; } .pv-strong .pv-value { font-size: 20px; } .pv-value { font-size: 16px; } }
.pv .fx-kr { font-size: 12.5px; }

/* billing status preview (preview/billing-status-view.js) */
.bs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.bs-pill { font-size: 14px; padding: 4px 12px; }
.bs-ok { background: #e6f6ec; color: #14532d; } .bs-warn { background: var(--color-warning-bg); color: var(--color-warning-ink); } .bs-err { background: #fdecec; color: #7f1d1d; } .bs-info { background: #e9f0ff; color: #1e3a8a; }
.bs-msg { font-size: 15px; margin: 6px 0 2px; } .bs-msg-kr { font-size: 13px; margin: 0 0 10px; }
.bs .fx-msg { margin: 10px 0 0; } .bs .fx-msg .fx-kr { display: inline; margin-left: 8px; }
/* Business Leak Finder / front door (business-entry.html) and the home page's quick-start cards */
.le-hidden { display: none !important; }
.le-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.le-choices { border: 0; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; min-width: 0; }
.le-choice { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--color-border); border-radius: var(--radius); padding: 10px 14px; background: var(--color-surface); cursor: pointer; min-height: 64px; }
.le-choice input { margin-top: 4px; width: 22px; height: 22px; flex: 0 0 auto; }
.le-choice:has(input:checked) { border-color: var(--color-accent); background: #f3f7fc; }
.le-choice:has(input:focus-visible), .le-door:focus-visible, .le-tile:focus-visible { outline: 3px solid #7aa2d4; outline-offset: 2px; }
.le-choice-body { display: block; min-width: 0; }
.le-choice-body strong { font-size: 1.05rem; }
.le-desc { display: block; color: var(--color-ink-soft); font-size: 0.9rem; line-height: 1.4; margin-top: 2px; }
.le-choice-body .fx-kr { display: inline; margin-left: 8px; }
.fx-wrap h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 8px; }
.fx-wrap h1 .fx-kr { font-size: 0.8rem; margin-top: 4px; }
.le-door { display: block; border: 2px solid var(--color-border); border-radius: var(--radius); padding: 16px; margin: 0 0 12px; background: var(--color-surface); color: var(--color-ink); text-decoration: none; min-height: 64px; }
.le-door:hover { border-color: var(--color-accent); }
.le-door strong { display: block; font-size: 1.05rem; }
.le-door .fx-badge { margin-top: 8px; }
.le-big { min-height: 48px; min-width: 120px; }
.fx-btn:focus-visible, .btn:focus-visible { outline: 3px solid #7aa2d4; outline-offset: 2px; }
.le-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.le-tile { display: block; border: 2px solid var(--color-border); border-radius: var(--radius); padding: 14px 16px; background: var(--color-surface); color: var(--color-ink); text-decoration: none; min-height: 64px; }
.le-tile:hover { border-color: var(--color-accent); }
.le-tile strong { display: block; }
.le-tile .fx-kr { display: inline; margin-left: 6px; }
.le-match { display: inline-block; margin-left: 6px; }
@media (max-width: 640px) { .le-row-stack { flex-direction: column; align-items: stretch; } .le-row-stack .fx-btn { width: 100%; } }
.le-eyebrow { margin: 0 0 8px; font-size: 0.95rem; font-weight: 600; letter-spacing: .02em; color: var(--color-ink-soft); }
.le-steps li { margin-bottom: 12px; }
.card-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--color-ink-soft); background: #eef2f7; border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.fine-print { font-size: 0.875rem; color: var(--color-ink-soft); margin: 12px 0 0; }
.hero .lead .fx-kr { margin-top: 8px; }
/* D-101 (focus): see styles.css - script-only focus targets (tabindex=-1 headings/containers) draw no ring; interactive controls keep theirs. */
:is(h1, h2, h3, main, section)[tabindex="-1"]:focus, :is(h1, h2, h3, main, section)[tabindex="-1"]:focus-visible { outline: none; }

/* Automation Finder wizard (D-107): tap-friendly chips, an inline "Other" box, concise cards */
.fx-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-bottom: 8px; }
.fx-chips .fx-choice { margin: 0; min-height: 48px; display: flex; flex-direction: column; justify-content: center; }
.fx-other-box { margin: 0 0 10px; }
.fx-other-box[hidden] { display: none; }
.fx-other-box input[type=text] { width: 100%; box-sizing: border-box; font: inherit; padding: 12px 14px; min-height: 48px; border: 1px solid var(--color-border); border-radius: var(--radius); }
.fx-item-main { flex: 1 1 auto; min-width: 0; }
.fx-beforeafter { font-size: 0.9rem; color: var(--color-ink-soft); margin-top: 4px; }
.fx-ba-arrow { font-weight: 700; }
.fx-item .fx-btn.small { min-height: 44px; }

/* How it works: five compact rows "1. Title - description" (one line on a wide screen, wraps naturally on a phone; thin dividers, no cards) */
#how .le-steps { list-style: none; padding: 0; margin: 12px 0 0; counter-reset: how; }
#how .le-steps li { counter-increment: how; display: flex; align-items: baseline; gap: 12px; margin: 0; padding: 18px 0; border-top: 1px solid #ebe8e0; }
#how .le-steps li:first-child { border-top: none; padding-top: 6px; }
#how .le-steps li:last-child { border-bottom: none; padding-bottom: 6px; }
#how .le-steps li::before { content: counter(how) "."; flex: none; min-width: 1.4em; font-weight: 700; color: var(--color-accent); }
#how .le-steps .how-row { flex: 1; min-width: 0; }
#how .le-steps .how-row strong { display: inline; margin: 0; }
#how .le-steps .how-d::before { content: " \2014  "; color: var(--color-ink-soft); }
/* the third door (Custom Automation Request) is a different kind of path: a quieter, dashed card under the two self-service doors */
.le-door-custom { background: transparent; border-style: dashed; margin-top: 20px; }
.cr-contact { border: none; padding: 0; margin: 16px 0; }
.cr-contact legend { font-weight: 600; margin-bottom: 6px; }
.cr-main-label { font-size: 1.15rem; font-weight: 700; }
#cr-text { width: 100%; }
/* D-413: the registration notice of a text-message product (migration 281) */
.fx-conn { margin: 8px 0; padding: 8px 10px; border-left: 3px solid #64748b; background: #f8fafc; border-radius: 6px; }      /* D-450: how the customer list reaches OwnerFreed */
.fx-conn-list { margin: 6px 0 0; padding-left: 18px; overflow-wrap: anywhere; }
.fx-conn p { margin: 6px 0 0; }
#cr-tools .fx-row { flex-wrap: wrap; } #cr-tools input, #cr-tools select { min-height: 44px; max-width: 100%; flex: 1 1 180px; }
.fx-sms-registration { margin: 8px 0; padding: 8px 10px; border-left: 3px solid #d97706; background: #fff8eb; border-radius: 6px; }
.fx-sms-registration .fx-badge { background: #fde7c4; color: #7c3a06; }
.fx-sms-registration p { margin: 6px 0 0; }
.fx-sms-registration a.fx-sms-request { font-weight: 600; color: #7c3a06; text-decoration: underline; }      /* D-415: the free registration request (a link, not a card button) */

/* D-448: Finder choices that are being prepared (listed, never selectable) */
.fx-preparing { margin-top: 14px; }
.fx-choice.fx-disabled { opacity: .6; cursor: not-allowed; }
.fx-none-ready { grid-column: 1 / -1; }

/* (D-571) a checked tool: its state, then what the customer can do next */
.fx-conn-list li.fx-tool { display:flex; flex-direction:column; gap:4px; }
.fx-tool-next { color:#3d4b63; font-size:.95em; line-height:1.5; }


/* (D-572) the tool check asks where a spreadsheet is kept before checking it */
.fx-tool-hint { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid #b8935a; background: #fbf6ec; color: #3d4b63; font-size: .95em; border-radius: 6px; }

/* (D-608) one normal package price: setup, monthly, provider fees, taxes, due today (no original value / savings) */
.pv-line .pv-label { display: flex; flex-direction: column; gap: 2px; }
.pv-note { font-size: 12.5px; font-weight: 400; color: var(--color-ink-soft, #4a5568); line-height: 1.4; }
.pv-line[data-line="final-setup"] .pv-value, .pv-line[data-line="final-monthly"] .pv-value { font-size: 20px; }
.pv-line[data-line="provider"] .pv-value, .pv-line[data-line="taxes"] .pv-value { font-size: 14px; font-weight: 600; white-space: normal; text-align: right; max-width: 55%; }
.pv-line[data-line="due"] { border-top: 2px solid var(--color-ink, #182230); margin-top: 4px; }
/* (D-608) selected-only preview viewer */
.spv[hidden] { display: none; }
.spv-lead { margin: 0 0 10px; color: var(--color-ink-soft, #4a5568); font-size: 14px; }
.spv-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; }
.spv-count { flex: none; font-weight: 700; font-size: 13px; color: #fff; background: #182230; border-radius: 999px; padding: 2px 10px; }
.spv-title { font-size: 16px; }
.spv-stage { border: 1px solid var(--color-border, #e3e0d8); border-radius: 10px; padding: 12px 14px; background: #fcfbf8; min-height: 140px; touch-action: pan-y; outline: none; }
.spv-stage:focus-visible { outline: 3px solid #b8935a; outline-offset: 2px; }
.spv-slide-title { font-size: 14px; margin: 0 0 6px; color: var(--color-ink-soft, #4a5568); font-weight: 600; }
.spv-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 0; }
.spv-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.spv-dot { width: 12px; height: 12px; min-width: 12px; padding: 0; border-radius: 50%; border: 2px solid #8a95a8; background: #fff; cursor: pointer; }
.spv-dot.seen { border-color: #b8935a; }
.spv-dot.on { background: #182230; border-color: #182230; }
.spv-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 0; }
.spv-back { font-weight: 600; }

/* (D-609) each product's individual demo video, above its message preview */
.fx-pv-video { margin: 8px 0 10px; }
.fx-pv-video video { display: block; width: 100%; max-width: 640px; aspect-ratio: 16 / 10; border-radius: 10px; background: #0b1631; }
.fx-pv-video figcaption { margin-top: 4px; font-size: 12.5px; }

/* (D-610) the order progress path (selection -> package review -> order confirmation -> payment) and the compact preview line under a card */
.of-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 6px; }
.of-steps li { flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid #e4e0d6; color: #4a5568; font-size: 14px; font-weight: 600; min-width: 0; }
.of-steps .of-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: #eef0f4; color: #4a5568; }
.of-steps .of-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-steps li.done { color: #14203a; } .of-steps li.done .of-n { background: #f6ecd9; color: #7a5a1f; }
.of-steps li.cur { background: #13254a; border-color: #13254a; color: #fff; } .of-steps li.cur .of-n { background: linear-gradient(180deg, #ecd3a0, #c9a467); color: #1b1406; }
@media (max-width: 560px) {
  .of-steps { gap: 4px; } .of-steps li { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 11.5px; text-align: center; }
  .of-steps .of-t { white-space: normal; line-height: 1.25; }
}
.fx-pv-compact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 0; }
.fx-pv-state { font-size: 14px; font-weight: 650; color: #14532d; }
.fx-pv-state::before { content: "\2713\00a0"; }

/* (D-611) price rows that only exist for a real package discount; the texting-registration step; the "continue where you left off" choice */
.pv-row[hidden], .pv-line[hidden] { display: none !important; }
.pv-disc .pv-value { color: #14532d; }
.pv-std .pv-value { color: #4a5568; font-weight: 600; }
.pv-pct { font-weight: 600; font-size: 0.92em; }
.or-reg { background: #fff8ea !important; border: 1px solid #ecd3a0; }
.or-reg h3 { color: #6b4a12; }
.or-reg-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.or-reg-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border-radius: 10px; padding: 10px 12px; }
.or-reg-link { font-weight: 700; color: #13254a; }
.or-reg-alt { font-size: 13px; color: #4a5568; }
.tr-main .tr-h2 { margin: 22px 0 8px; font-size: 18px; }
.tr-pkg, .tr-needs, .tr-fees { margin: 8px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tr-pkg li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #f7f5f0; }
.tr-pkg li.tr-this { background: #fff8ea; border: 1px solid #ecd3a0; }
.tr-badge { font-style: normal; font-size: 12.5px; font-weight: 700; color: #6b4a12; }
.tr-needs li { padding-left: 22px; position: relative; } .tr-needs li::before { content: "\2713"; position: absolute; left: 2px; color: #8a5a12; font-weight: 700; }
.tr-fees li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid #e4e0d6; background: #fff; }
.tr-fees li span { font-size: 14px; color: #4a5568; }
.tr-terms { margin: 10px 0 14px; padding: 12px 14px; border-radius: 10px; background: #f7f5f0; font-size: 14px; line-height: 1.6; }
#tr-form label { display: block; margin: 12px 0 4px; font-weight: 650; font-size: 14.5px; }
#tr-form input[type=text], #tr-form input[type=email] { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #cfd5df; border-radius: 10px; font: inherit; }
.tr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.d611-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 18px; }
.d611-resume #biz-resume-label { font-weight: 650; color: #4a5568; }
