/* ==========================================================================
   Rapid Cloud — Gerador de Senhas
   Design system herdado de rapidcloud.com.br
   ========================================================================== */

:root {
  --brand: #841be9;
  --brand-2: #7300bf;
  --brand-3: #5a0099;
  --brand-ink: #3a0066;
  --brand-50: #f6f2ff;
  --brand-100: #ede4ff;
  --brand-200: #dcc6ff;
  --brand-300: #c39bff;
  --brand-400: #a463f5;
  --grad-brand: linear-gradient(135deg, #841be9 0%, #7300bf 100%);
  --grad-brand-soft: linear-gradient(135deg, #a463f5 0%, #841be9 60%, #7300bf 100%);

  --ink: #15102a;
  --ink-2: #3b3556;
  --muted: #6a6588;
  --line: #ece8f6;
  --line-2: #ded8ee;
  --surface: #ffffff;
  --surface-2: #faf8ff;
  --surface-3: #f3eefc;

  --success: #15a06a;
  --success-bg: #e7f8f0;
  --warning: #d98a00;
  --danger: #e23b5a;
  --promo: #ff3d8b;

  --font-display: "Sora", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs: clamp(.75rem, .72rem + .15vw, .8125rem);
  --fs-sm: clamp(.8125rem, .78rem + .2vw, .875rem);
  --fs-base: clamp(.9375rem, .9rem + .25vw, 1rem);
  --fs-md: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --fs-lg: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-2xl: clamp(2rem, 1.55rem + 1.9vw, 2.85rem);
  --fs-hero: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(21, 16, 42, .07);
  --shadow-md: 0 12px 28px -10px rgba(57, 0, 102, .18);
  --shadow-lg: 0 26px 60px -22px rgba(57, 0, 102, .3);
  --shadow-brand: 0 18px 40px -14px rgba(132, 27, 233, .55);
  --shadow-ring: 0 0 0 1px rgba(132, 27, 233, .12);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .16s;
  --t: .28s;

  --container: 1200px;
  --gutter: clamp(1rem, .4rem + 2.5vw, 2rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--brand-50); padding: .1em .35em; border-radius: 6px; color: var(--brand-2); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.ic {
  width: 1.05em; height: 1.05em;
  fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ---------- Animações base ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes blob-float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 70px) scale(.95); }
}

/* ---------- Fundo decorativo (blobs + grid) ---------- */
.bg-decor {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #fdfcff 0%, #ffffff 55%);
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .4;
  animation: blob-float 22s ease-in-out infinite alternate;
}
.blob-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--brand-300), transparent 65%);
  top: -180px; left: -120px;
}
.blob-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, #b18cf8, transparent 65%);
  top: 10%; right: -160px;
  animation-delay: -8s;
}
.blob-3 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #e0a9f9, transparent 68%);
  bottom: -260px; left: 30%;
  animation-delay: -15s; opacity: .28;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(132, 27, 233, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 27, 233, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(75% 60% at 50% 0%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 60% at 50% 0%, #000 0%, transparent 100%);
}

/* ---------- Header ---------- */
.site-header {
  padding: 22px 0;
  animation: fade-down .7s var(--ease-spring) both;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.logo img { width: auto; height: 34px; transition: transform .3s var(--ease-spring); }
.logo:hover img { transform: scale(1.04); }
.header-nav { display: flex; align-items: center; gap: .9rem; }
.badge-free {
  font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--brand-2);
  background: var(--brand-100);
  border: 1px solid var(--brand-200);
  padding: 6px 12px; border-radius: var(--r-pill);
  white-space: nowrap;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: var(--fs-sm);
  padding: .78rem 1.45rem; border-radius: var(--r-pill);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out),
              background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  color: #fff; background: var(--grad-brand);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 48px -14px rgba(132, 27, 233, .65); }
.btn-ghost {
  color: var(--brand-2); background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--brand-200);
}
.btn-ghost:hover { background: var(--brand-50); box-shadow: inset 0 0 0 1.5px var(--brand-300); }
.btn-light {
  color: var(--brand-2); background: #fff;
  box-shadow: 0 14px 34px -12px rgba(20, 0, 40, .45);
}
.btn-light:hover { transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.hero-inner { text-align: center; max-width: 820px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-2);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: .5rem 1rem; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.eyebrow .ic { width: .95em; height: .95em; }

/* Entrada do hero e do card */
.hero .eyebrow { animation: pop-in .8s var(--ease-spring) .15s both; }
.hero h1 { animation: fade-up .7s var(--ease-spring) .25s both; }
.hero-sub { animation: fade-up .7s var(--ease-spring) .38s both; }
.gen-card { animation: fade-up .8s var(--ease-spring) .5s both; }

/* Reveal no scroll */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--delay, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero); font-weight: 800; line-height: 1.08;
  letter-spacing: -.02em;
  margin-top: 1.3rem;
}
.grad {
  background: var(--grad-brand-soft);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  color: var(--muted); font-size: var(--fs-md);
  max-width: 620px; margin: 1.2rem auto 0;
}

/* ---------- Card do gerador ---------- */
.generator { padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.gen-card {
  max-width: 860px; margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), var(--shadow-ring);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
}

/* Tabs */
.tabs {
  display: flex; gap: .35rem;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  padding: .35rem;
  width: max-content; max-width: 100%;
  margin-inline: auto;
}
.tab {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: var(--fs-sm);
  color: var(--muted);
  white-space: nowrap;
  padding: .62rem 1.35rem; border-radius: var(--r-pill);
  transition: color var(--t-fast) var(--ease), background var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
}
.tab:hover { color: var(--brand-2); }
.tab.active {
  color: #fff; background: var(--grad-brand);
  box-shadow: 0 8px 20px -8px rgba(132, 27, 233, .6);
}

/* Display da senha */
.output-wrap {
  display: flex; align-items: stretch; gap: .75rem;
  margin-top: 1.5rem;
}
.output {
  flex: 1; min-width: 0;
  display: flex; align-items: center;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, .85rem + 1vw, 1.5rem);
  font-weight: 600;
  letter-spacing: .02em;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 1rem 1.2rem;
  min-height: 72px;
  overflow-x: auto;
  white-space: nowrap;
  user-select: all;
  -webkit-user-select: all;
  scrollbar-width: thin;
}
.output.pop { animation: pop .32s var(--ease-out); }
@keyframes pop {
  0% { transform: scale(.985); opacity: .4; }
  100% { transform: scale(1); opacity: 1; }
}
.output .ch-digit { color: var(--brand); }
.output .ch-symbol { color: var(--promo); }
.output .ch-word { color: var(--ink); }
.output .ch-sep { color: var(--brand-400); }

.output-actions { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  display: grid; place-items: center;
  width: 52px; height: 52px; align-self: center;
  border-radius: var(--r-md);
  color: var(--brand-2);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  transition: background var(--t-fast) var(--ease), transform var(--t) var(--ease-out), border-color var(--t-fast) var(--ease);
}
.icon-btn .ic { width: 1.25rem; height: 1.25rem; }
.icon-btn:hover { background: var(--brand-100); border-color: var(--brand-200); }
.icon-btn:active .ic { animation: spin .45s var(--ease-out); }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-copy { align-self: center; padding-block: .9rem; }
.btn-copy .ic-check { display: none; }
.btn-copy.copied { background: linear-gradient(135deg, #17b877, #0e9560); box-shadow: 0 18px 40px -14px rgba(21, 160, 106, .55); }
.btn-copy.copied .ic-copy { display: none; }
.btn-copy.copied .ic-check { display: block; }

/* Medidor de força */
.strength { margin-top: 1.1rem; }
.strength-track {
  height: 8px; border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
}
.strength-fill {
  height: 100%; width: 0%;
  border-radius: var(--r-pill);
  background: var(--danger);
  transition: width .45s var(--ease-out), background .45s var(--ease);
}
.strength-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-top: .55rem;
}
.strength-label { font-weight: 800; font-size: var(--fs-sm); }
.strength-crack { color: var(--muted); font-size: var(--fs-xs); text-align: right; }
.strength-crack b { color: var(--ink-2); }

.s-weak  { color: var(--danger); }
.s-fair  { color: var(--warning); }
.s-good  { color: #7a9a00; }
.s-strong{ color: var(--success); }

.divider { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

/* Controles */
.ctl-label { font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2); }
.ctl-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; }
.ctl-row + .ctl-row { margin-top: 1rem; }
.ctl-row + .ctl-grid { margin-top: 1.15rem; }

.length-row { margin-bottom: 1.15rem; }
.length-ctl { display: flex; align-items: center; gap: .9rem; flex: 1; max-width: 520px; }
.length-value {
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-md);
  color: var(--brand-2);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--r-sm);
  min-width: 52px; text-align: center; padding: .25rem .4rem;
}

/* Range slider */
input[type="range"] {
  flex: 1; appearance: none; -webkit-appearance: none;
  height: 8px; border-radius: var(--r-pill);
  background: linear-gradient(to right, var(--brand) 0%, var(--brand) var(--pct, 25%), var(--surface-3) var(--pct, 25%));
  outline-offset: 4px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--brand);
  box-shadow: 0 4px 12px rgba(132, 27, 233, .35);
  transition: transform var(--t-fast) var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--brand);
  box-shadow: 0 4px 12px rgba(132, 27, 233, .35);
}

/* Grid de switches */
.ctl-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem;
}
.switch-card {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: .8rem 1rem;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t) var(--ease-out);
}
.switch-card:hover { border-color: var(--brand-200); background: var(--brand-50); }
.switch-card:has(input:checked) { border-color: var(--brand-200); box-shadow: var(--shadow-ring); }
.switch-card.wide { grid-column: 1 / -1; }
.switch-txt { display: flex; flex-direction: column; line-height: 1.35; }
.switch-txt strong { font-size: var(--fs-sm); font-weight: 700; }
.switch-txt small { color: var(--muted); font-size: var(--fs-xs); }
.switch-card input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
  flex: none; width: 46px; height: 26px;
  border-radius: var(--r-pill);
  background: var(--line-2);
  position: relative;
  transition: background var(--t) var(--ease);
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(21, 16, 42, .25);
  transition: transform var(--t) var(--ease-out);
}
.switch-card input:checked + .switch { background: var(--grad-brand); }
.switch-card input:checked + .switch::after { transform: translateX(20px); }
.switch-card input:focus-visible + .switch { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Segment (separador) */
.seg {
  display: inline-flex; gap: .25rem;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  padding: .28rem;
}
.seg-btn {
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-sm);
  color: var(--muted);
  padding: .42rem 1rem; border-radius: var(--r-pill);
  transition: color var(--t-fast) var(--ease), background var(--t) var(--ease-out);
}
.seg-btn:hover { color: var(--brand-2); }
.seg-btn.active { color: #fff; background: var(--grad-brand); box-shadow: 0 6px 16px -6px rgba(132, 27, 233, .6); }

/* ---------- Histórico ---------- */
.history {
  max-width: 860px; margin: 1.25rem auto 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.3rem;
}
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.history-title {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2);
}
.history-clear {
  font-size: var(--fs-xs); font-weight: 700; color: var(--muted);
  padding: .3rem .7rem; border-radius: var(--r-pill);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.history-clear:hover { color: var(--danger); background: #fdeef1; }
.history-list { list-style: none; padding: 0; margin: .6rem 0 0; }
.history-list li { border-top: 1px solid var(--line); }
.history-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; text-align: left;
  font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink-2);
  padding: .55rem .25rem;
  border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease);
}
.history-item:hover { color: var(--brand); }
.history-item .pw { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item .ic { width: .95rem; height: .95rem; opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.history-item:hover .ic { opacity: 1; }
.history-note { color: var(--muted); font-size: var(--fs-xs); margin-top: .6rem; }

/* ---------- Confiança ---------- */
.trust { padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.trust-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), border-color var(--t) var(--ease);
}
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.trust-ic {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--r-md);
  color: #fff; background: var(--grad-brand);
  box-shadow: 0 10px 22px -8px rgba(132, 27, 233, .55);
  margin-bottom: 1rem;
}
.trust-ic .ic { width: 1.35rem; height: 1.35rem; }
.trust-card h3 { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700; margin-bottom: .45rem; }
.trust-card p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Dicas ---------- */
.tips { padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0; }
.tips-head { text-align: center; max-width: 680px; margin: 0 auto clamp(1.8rem, 1.4rem + 2vw, 3rem); }
.tips-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl); font-weight: 800; line-height: 1.15; letter-spacing: -.015em;
  margin-top: 1.1rem;
}
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.tip {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.6rem 1.5rem;
  overflow: hidden;
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), border-color var(--t) var(--ease);
}
.tip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-200); background: var(--surface); }
.tip-num {
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-sm);
  color: var(--brand);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--r-pill);
  padding: .2rem .75rem;
  display: inline-block; margin-bottom: .85rem;
}
.tip h3 { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700; margin-bottom: .4rem; }
.tip p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(3rem, 2rem + 3vw, 5rem); }
.cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background:
    radial-gradient(80% 130% at 85% -20%, rgba(196, 155, 255, .35), transparent 60%),
    var(--grad-brand);
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 1.4rem + 2vw, 3rem);
  box-shadow: var(--shadow-brand);
  color: #fff;
}
.cta-txt h2 {
  font-family: var(--font-display);
  font-size: var(--fs-xl); font-weight: 800; line-height: 1.2; letter-spacing: -.01em;
}
.cta-txt p { margin-top: .5rem; opacity: .88; font-size: var(--fs-sm); max-width: 520px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 2rem 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
}
.footer-inner .logo img { height: 26px; }
.footer-note { color: var(--muted); font-size: var(--fs-xs); }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { color: var(--ink-2); font-size: var(--fs-xs); font-weight: 600; }
.footer-links a:hover { color: var(--brand); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300;
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: var(--fs-sm);
  color: #fff; background: var(--ink);
  border-radius: var(--r-pill);
  padding: .75rem 1.4rem;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 90px);
  opacity: 0;
  transition: transform .4s var(--ease-out), opacity .4s var(--ease);
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .ic { color: #4ade80; }

/* ---------- Acessibilidade ---------- */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr; }
  .cta-card { flex-direction: column; text-align: center; }
}
@media (max-width: 700px) {
  .badge-free { display: none; }
  .header-nav .btn-ghost { font-size: var(--fs-xs); padding: .6rem 1rem; }
  .logo img { height: 28px; }
  .output-wrap { flex-direction: column; }
  .output { min-height: 64px; justify-content: center; text-align: center; }
  .output-actions { justify-content: stretch; }
  .output-actions .btn-copy { flex: 1; }
  .tips-grid, .ctl-grid { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding-inline: .5rem; }
  .tab .ic { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
