/* 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-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; }
