/* Forma. LMS — páginas comerciais (planos.html, contratar.html).
   Usa os tokens de styles.css (--bg, --ink, --line, --accent…); nada aqui altera a landing. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 4rem; }
[hidden] { display: none !important; }

.fc-display { font-family: var(--font-archivo), system-ui, sans-serif; }
.fc-mono { font-family: var(--font-geist-mono), ui-monospace, monospace; }
.fc-serif { font-family: var(--font-instrument), Georgia, serif; font-style: italic; font-weight: 400; }
.fc-num { font-variant-numeric: tabular-nums; }

/* Segmented controls (versão / ciclo). */
.fc-seg { display: inline-flex; border: 1px solid var(--line-strong); background: var(--bg-raised); padding: 3px; gap: 3px; max-width: 100%; }
.fc-seg button, .fc-seg label { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; font-size: .875rem; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background-color .12s linear, color .12s linear; }
.fc-seg button:hover, .fc-seg label:hover { color: var(--ink); }
.fc-seg button[aria-pressed="true"], .fc-seg input:checked + span { color: var(--invert-fg); }
.fc-seg button[aria-pressed="true"], .fc-seg label:has(input:checked) { background: var(--invert-bg); color: var(--invert-fg); }
.fc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.fc-seg label:has(input:focus-visible), .fc-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fc-pill { font-family: var(--font-geist-mono), ui-monospace, monospace; font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; padding: .1rem .35rem; border: 1px solid currentColor; color: var(--accent-ink); }
[aria-pressed="true"] .fc-pill, label:has(input:checked) .fc-pill { color: var(--accent); }

/* Buttons. */
.fc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; padding: .75rem 1.25rem; font-weight: 500; font-size: .95rem; border: 1px solid var(--ink); background: var(--invert-bg); color: var(--invert-fg); cursor: pointer; transition: background-color .12s linear, color .12s linear, opacity .12s linear; text-align: center; }
.fc-btn:hover { background: var(--accent); border-color: var(--accent); color: #101014; }
.fc-btn:focus-visible, .fc-btn-ghost:focus-visible, .fc-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fc-btn[disabled], .fc-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; background: var(--invert-bg); border-color: var(--ink); color: var(--invert-fg); }
.fc-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3rem; padding: .75rem 1.25rem; font-weight: 500; font-size: .95rem; border: 1px solid var(--line-strong); color: var(--ink); background: transparent; cursor: pointer; transition: background-color .12s linear, color .12s linear; text-align: center; }
.fc-btn-ghost:hover { background: var(--invert-bg); color: var(--invert-fg); border-color: var(--invert-bg); }
.fc-btn-ghost[disabled] { opacity: .45; cursor: not-allowed; background: transparent; color: var(--ink); border-color: var(--line-strong); }
.fc-link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.fc-spin { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: fc-spin .7s linear infinite; display: inline-block; vertical-align: -.15em; }
@keyframes fc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fc-spin { animation-duration: 2s; } }

/* Simulator. */
.fc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 2.25rem; background: transparent; cursor: pointer; }
.fc-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.fc-range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--accent) 0 var(--fill, 0%), var(--line-strong) var(--fill, 0%) 100%); }
.fc-range::-moz-range-track { height: 2px; background: var(--line-strong); }
.fc-range::-moz-range-progress { height: 2px; background: var(--accent); }
.fc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; background: var(--bg); border: 2px solid var(--ink); border-radius: 0; transform: rotate(45deg); }
.fc-range::-moz-range-thumb { width: 18px; height: 18px; background: var(--bg); border: 2px solid var(--ink); border-radius: 0; transform: rotate(45deg); }
.fc-ticks { display: flex; justify-content: space-between; }
.fc-ticks button { font-family: var(--font-geist-mono), ui-monospace, monospace; font-size: .6875rem; color: var(--faint); padding: .2rem 0; }
.fc-ticks button:hover { color: var(--ink); }
.fc-big { font-family: var(--font-archivo), system-ui, sans-serif; font-weight: 500; letter-spacing: -.04em; line-height: .95; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.fc-strike { text-decoration: line-through; text-decoration-color: var(--accent); color: var(--faint); }

/* Form fields. */
.fc-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.fc-field > label, .fc-label { font-size: .85rem; font-weight: 500; color: var(--ink); }
.fc-hint { font-size: .8rem; color: var(--faint); line-height: 1.45; }
.fc-input { width: 100%; min-height: 3rem; padding: .7rem .85rem; font-size: 1rem; color: var(--ink); background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 0; transition: border-color .12s linear, box-shadow .12s linear; }
.fc-input::placeholder { color: var(--faint); }
.fc-input:hover { border-color: var(--ink); }
.fc-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.fc-input[aria-invalid="true"] { border-color: var(--danger); }
.fc-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent); }
select.fc-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.25rem; }
textarea.fc-input { min-height: 6rem; resize: vertical; }
.fc-err { font-size: .8rem; color: var(--danger); line-height: 1.4; }
.fc-err:empty { display: none; }
.fc-ok { font-size: .8rem; color: #1f9d55; line-height: 1.4; }
:root[data-theme="dark"] .fc-ok, :root:not([data-theme="light"]) .fc-ok { color: #5ee089; }
.fc-affix { display: flex; align-items: stretch; }
.fc-affix .fc-input { flex: 1; min-width: 0; }
.fc-affix > span { display: flex; align-items: center; padding: 0 .75rem; border: 1px solid var(--line-strong); border-left: 0; background: var(--bg-sunken); color: var(--muted); font-family: var(--font-geist-mono), ui-monospace, monospace; font-size: .8rem; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.fc-check { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--line); background: var(--bg-raised); cursor: pointer; }
.fc-check:hover { border-color: var(--line-strong); }
.fc-check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--accent-ink); flex-shrink: 0; }
.fc-check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.fc-check:has(input[aria-invalid="true"]) { border-color: var(--danger); }

.fc-alert { border: 1px solid var(--line-strong); background: var(--bg-raised); padding: .9rem 1rem; font-size: .9rem; line-height: 1.5; }
.fc-alert[data-kind="erro"] { border-color: var(--danger); color: var(--ink); }
.fc-alert[data-kind="erro"]::before { content: "Erro · "; font-family: var(--font-geist-mono), ui-monospace, monospace; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--danger); }
.fc-alert:empty { display: none; }

/* Lists and cards. */
.fc-list { display: flex; flex-direction: column; gap: .6rem; }
.fc-list li { display: flex; gap: .65rem; align-items: baseline; line-height: 1.45; }
.fc-list li::before { content: ""; flex-shrink: 0; width: .45rem; height: .45rem; background: var(--accent); transform: translateY(-.1rem) rotate(45deg); }
.fc-list li.fc-no::before { background: transparent; border: 1px solid var(--faint); }
.fc-list li.fc-no { color: var(--muted); }
.fc-card-hl { position: relative; }
.fc-card-hl::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--accent); pointer-events: none; }

.fc-faq details { border-bottom: 1px solid var(--line); }
.fc-faq summary { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1.15rem 0; cursor: pointer; list-style: none; font-weight: 500; color: var(--ink-strong); }
.fc-faq summary::-webkit-details-marker { display: none; }
.fc-faq summary::after { content: "+"; font-family: var(--font-geist-mono), ui-monospace, monospace; color: var(--faint); flex-shrink: 0; }
.fc-faq details[open] summary::after { content: "−"; }
.fc-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fc-faq .fc-ans { padding: 0 0 1.25rem; max-width: 68ch; color: var(--muted); line-height: 1.65; }

.fc-table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.fc-table th { text-align: left; font-family: var(--font-geist-mono), ui-monospace, monospace; font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); background: var(--bg-raised); }
.fc-table th, .fc-table td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fc-table td:not(:first-child), .fc-table th:not(:first-child) { text-align: right; }
.fc-table tr:last-child td { border-bottom: 0; }

/* Wizard steps (contratar.html). */
.fc-steps { display: flex; overflow-x: auto; scrollbar-width: none; }
.fc-steps::-webkit-scrollbar { display: none; }
.fc-steps li { flex: 1 0 auto; display: flex; align-items: center; gap: .55rem; padding: .85rem 1rem; border-right: 1px solid var(--line); color: var(--faint); font-size: .8rem; white-space: nowrap; }
.fc-steps li:last-child { border-right: 0; }
.fc-steps li .fc-step-n { font-family: var(--font-geist-mono), ui-monospace, monospace; font-size: .6875rem; width: 1.5rem; height: 1.5rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; }
.fc-steps li[data-state="done"] { color: var(--muted); }
.fc-steps li[data-state="done"] .fc-step-n { background: var(--line); border-color: transparent; }
.fc-steps li[aria-current="step"] { color: var(--ink-strong); background: var(--bg-raised); box-shadow: inset 0 -2px 0 var(--accent); }
.fc-steps li[aria-current="step"] .fc-step-n { background: var(--invert-bg); color: var(--invert-fg); border-color: var(--invert-bg); }
.fc-code { letter-spacing: .5em; font-family: var(--font-geist-mono), ui-monospace, monospace; font-size: 1.5rem; text-align: center; max-width: 16rem; padding-left: 1.2rem; }
.fc-sum dt { color: var(--muted); font-size: .85rem; }
.fc-sum dd { color: var(--ink-strong); font-size: .9rem; text-align: right; font-variant-numeric: tabular-nums; }
.fc-sum > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.fc-sum > div:last-child { border-bottom: 0; }
.fc-sum dd { min-width: 0; overflow-wrap: anywhere; }

/* Honeypot (planos.html, "Fale com a gente"): off-screen, not display:none, so naive bots still fill it. */
.fc-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Etapa 5: reenviar código e validade. */
.fc-codebar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.fc-codebar .fc-link[disabled] { color: var(--faint); text-decoration: none; cursor: not-allowed; }
.fc-alert[data-kind="info"] { border-color: var(--accent); }
.fc-progress { display: block; width: 100%; max-width: 20rem; height: 2px; background: var(--line-strong); overflow: hidden; }
.fc-progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s linear; }
@media (prefers-reduced-motion: reduce) { .fc-progress > span { transition: none; } }

@media print { #site-nav, footer { display: none !important; } }
