:root {
  --ink: #14201c;
  --muted: #68756f;
  --paper: #f7f5ef;
  --card: #fffef9;
  --line: #dedfd7;
  --green: #0b5d4b;
  --green-dark: #08483a;
  --mint: #b9ead7;
  --mint-soft: #eaf7f1;
  --whatsapp: #1f9d59;
  --shadow: 0 24px 64px rgba(27, 52, 43, 0.09);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 3%, rgba(185, 234, 215, 0.34), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

button, input { font: inherit; }

button { cursor: pointer; }

.gtm-noscript-frame {
  display: none;
  visibility: hidden;
  width: 0;
  height: 0;
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(20, 32, 28, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo { display: block; width: 150px; height: auto; }

.site-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 330px;
  padding: 8px 12px 8px 9px;
  border: 1px solid #bcdccc;
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--green-dark);
  box-shadow: 0 5px 16px rgba(11, 93, 75, .07);
}

.site-security-icon {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--green);
  color: white;
}

.site-security-icon svg { width: 18px; fill: currentColor; }
.site-security-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.site-security-copy strong { font-size: 13px; line-height: 1.2; }
.site-security-copy small { color: #557067; font-size: 12px; line-height: 1.3; }

.hero {
  padding: 72px 0 52px;
  max-width: 850px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span { width: 30px; height: 2px; background: var(--green); }

.hero h1 {
  margin: 17px 0 22px;
  font-family: ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.01;
  letter-spacing: -0.055em;
}

.hero h1 em { color: var(--green); font-style: normal; }

.hero p {
  margin: 0;
  max-width: 670px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 22px;
  align-items: stretch;
}

.form-card, .preview-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.preview-card { background: var(--green); border-color: var(--green); color: white; }

.card-heading {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-bottom: 28px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--green);
  font-family: ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.card-heading h2 { margin: 0 0 4px; font-family: ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif; font-size: 20px; letter-spacing: -0.025em; }
.card-heading p { margin: 0; color: var(--muted); font-size: 13px; }

.preview-heading { border-color: rgba(255,255,255,.18); }
.preview-heading .step-number { background: rgba(255,255,255,.13); color: var(--mint); }
.preview-heading p { color: rgba(255,255,255,.65); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px 16px; }
.field-wide { grid-column: 1 / -1; }

.field > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #34413c;
  font-size: 14px;
  font-weight: 700;
}

.field > span b { color: #98a09c; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.field input {
  width: 100%;
  height: 49px;
  border: 1px solid #d7dbd5;
  border-radius: 11px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  transition: border-color .18s, box-shadow .18s;
}

.field input::placeholder { color: #a4aaa6; }
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 93, 75, .1); }
.field input[aria-invalid="true"] { border-color: #bb423d; box-shadow: 0 0 0 3px rgba(187,66,61,.09); }
.field small { display: block; margin-top: 6px; color: #89918d; font-size: 12px; line-height: 1.4; }

.pix-key-field { position: relative; }

.pix-key-composer {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 9px;
}

.key-type-picker { position: relative; }

.key-type-trigger {
  width: 100%;
  height: 49px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid #c9d7d0;
  border-radius: 11px;
  background: var(--mint-soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.key-type-trigger:hover { border-color: #9fc8b5; background: #e2f4eb; }
.key-type-trigger:focus-visible { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 93, 75, .1); }
.key-type-trigger[aria-expanded="true"] { border-color: var(--green); background: white; box-shadow: 0 0 0 3px rgba(11, 93, 75, .1); }

.key-type-icon,
.option-icon {
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  height: 27px;
  border-radius: 8px;
  background: white;
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(11, 93, 75, .11);
}

.key-type-icon svg,
.option-icon svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.key-type-chevron {
  width: 16px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform .18s;
}

.key-type-trigger[aria-expanded="true"] .key-type-chevron { transform: rotate(180deg); }

.key-type-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 7px);
  left: 0;
  width: 248px;
  padding: 7px;
  border: 1px solid #d7ded9;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(26, 51, 42, .17);
}

.key-type-option {
  width: 100%;
  min-height: 53px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.key-type-option:hover,
.key-type-option:focus-visible { outline: 0; background: var(--mint-soft); }
.key-type-option strong { display: block; font-size: 13px; line-height: 1.25; }
.key-type-option small { margin: 2px 0 0; color: #7c8983; font-size: 11px; }
.key-type-option .option-check { color: var(--green); font-size: 14px; font-weight: 800; opacity: 0; }
.key-type-option.is-selected .option-check { opacity: 1; }
.key-type-option.is-selected { background: #f1f9f5; }

.money-input { position: relative; }
.money-input > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--green); font-weight: 700; }
.money-input input { padding-left: 43px; font-weight: 700; }

.form-error {
  margin-top: 20px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #fff0ef;
  color: #9c302b;
  font-size: 13px;
}

.primary-button, .whatsapp-button {
  width: 100%;
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 11px;
  color: white;
  font-weight: 700;
  transition: transform .18s, background .18s, box-shadow .18s;
}

.primary-button { margin-top: 28px; background: var(--green); box-shadow: 0 10px 24px rgba(11,93,75,.17); }
.primary-button:hover { transform: translateY(-1px); background: var(--green-dark); box-shadow: 0 13px 28px rgba(11,93,75,.23); }
.primary-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.save-note { display: flex; justify-content: center; gap: 7px; align-items: center; margin: 13px 0 0; color: #89918d; font-size: 12px; }
.save-note svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.empty-preview {
  min-height: 408px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.phone-illustration {
  width: 107px;
  height: 168px;
  position: relative;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 18px;
  margin-bottom: 24px;
  background: rgba(255,255,255,.04);
}

.phone-speaker { width: 27px; height: 3px; margin: 9px auto; border-radius: 4px; background: rgba(255,255,255,.35); }
.message-bubble { position: absolute; height: 30px; border-radius: 8px; }
.bubble-one { width: 62px; top: 43px; left: 12px; background: rgba(255,255,255,.14); }
.bubble-two { width: 69px; top: 83px; right: 11px; background: var(--mint); }
.mini-check { position: absolute; display: grid; place-items: center; width: 27px; height: 27px; bottom: 18px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: rgba(185,234,215,.13); color: var(--mint); }
.empty-preview h3 { margin: 0 0 8px; font-family: ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif; font-size: 18px; }
.empty-preview p { max-width: 310px; margin: 0; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.55; }

.qr-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 15px;
  background: #fffdf7;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.13);
}

.qr-kicker {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.qr-copy h3 {
  margin: 6px 0 5px;
  font-family: ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.qr-copy > strong {
  display: block;
  color: var(--green);
  font-family: ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 25px;
  letter-spacing: -.035em;
}

.qr-copy > p {
  margin: 5px 0 13px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.qr-frame {
  display: grid;
  place-items: center;
  min-height: 168px;
  padding: 9px;
  border: 1px solid #dbe2dc;
  border-radius: 11px;
  background: white;
}

#qr-code { display: flex; justify-content: center; align-items: center; }
#qr-code img, #qr-code canvas { width: 148px !important; height: 148px !important; }

.qr-image-actions {
  display: flex;
  gap: 6px;
}

.qr-action-button {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #cdd9d2;
  border-radius: 8px;
  background: white;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.share-qr-button {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.share-qr-button:hover { background: var(--green-dark); }
.download-qr-button:hover { border-color: var(--green); background: var(--mint-soft); }
.qr-action-button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.share-hint { display: block; margin-top: 7px; color: #87918c; font-size: 12px; line-height: 1.35; }

.message-preview {
  position: relative;
  padding: 18px 18px 28px;
  border-radius: 13px;
  background: #eef8f1;
  color: #20302a;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.message-preview::after { content: ""; position: absolute; right: -9px; top: 14px; border: 10px solid transparent; border-top-color: #eef8f1; }
.message-topline { display: flex; align-items: center; justify-content: space-between; padding-bottom: 11px; margin-bottom: 12px; border-bottom: 1px solid #d7e9de; color: #62736b; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.ready-dot { display: inline-flex; align-items: center; gap: 5px; color: var(--green); }
.ready-dot i { width: 6px; height: 6px; border-radius: 50%; background: #3bc47b; }
.message-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.48; }
.message-text strong { font-weight: 700; }
.message-line-emphasis { font-weight: 700; }
.pix-inline { display: block; margin-top: 6px; padding: 8px; border-radius: 6px; background: #dfeee5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; line-height: 1.35; max-height: 70px; overflow: hidden; }
.message-time { position: absolute; right: 10px; bottom: 8px; color: #7e8a84; font-size: 9px; }
.message-time b { color: #40aee2; }

.action-stack { margin-top: 18px; }
.whatsapp-button { background: var(--whatsapp); box-shadow: 0 10px 24px rgba(7,49,34,.2); }
.whatsapp-button:hover { transform: translateY(-1px); background: #18884c; }
.whatsapp-button svg { width: 22px; fill: currentColor; }
.secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.secondary-button { min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; background: transparent; color: white; font-size: 12px; font-weight: 600; }
.secondary-button:hover { background: rgba(255,255,255,.08); }
.secondary-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.security-strip {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid #cfe3d9;
  border-radius: 15px;
  background: rgba(234,247,241,.75);
}

.security-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 10px;
  background: white;
  color: var(--green);
}

.security-icon svg { width: 21px; fill: currentColor; }
.security-strip strong { display: block; margin-bottom: 4px; font-size: 13px; }
.security-strip p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.clipboard-helper { position: fixed; opacity: 0; pointer-events: none; }

.how-it-works {
  margin: 78px 0 70px;
  padding: 54px 0;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 55px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-kicker { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.how-it-works h2 { margin: 12px 0 0; font-family: ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif; font-size: 34px; line-height: 1.16; letter-spacing: -.04em; }
.how-it-works ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.how-it-works li > span { display: grid; place-items: center; width: 29px; height: 29px; margin-bottom: 15px; border-radius: 50%; background: var(--mint-soft); color: var(--green); font-size: 11px; font-weight: 800; }
.how-it-works strong { font-family: ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif; font-size: 15px; }
.how-it-works p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

footer { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #87908c; font-size: 12px; }
footer p { margin: 0; }
footer span { color: var(--green); }
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.footer-links a, .inline-link { color: var(--green); font-weight: 700; text-underline-offset: 3px; }
.footer-links a:hover, .inline-link:hover { color: var(--green-dark); }

.privacy-page .page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.privacy-page main { flex: 1; }
.privacy-header-actions { display: flex; align-items: center; gap: 14px; }
.back-home { color: var(--green); font-size: 13px; font-weight: 750; text-decoration: none; }
.back-home:hover { text-decoration: underline; text-underline-offset: 4px; }
.privacy-hero { max-width: 820px; padding: 72px 0 35px; }
.privacy-hero h1 {
  margin: 17px 0 18px;
  font-family: ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.privacy-hero p { margin: 0; max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.privacy-card {
  margin-bottom: 64px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.privacy-card section + section { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line); }
.privacy-card h2 {
  margin: 0 0 12px;
  font-family: ui-rounded, "Arial Rounded MT Bold", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 21px;
  letter-spacing: -.025em;
}
.privacy-card p, .privacy-card li { color: var(--muted); font-size: 15px; line-height: 1.7; }
.privacy-card p { margin: 0; }
.privacy-card p + p { margin-top: 12px; }
.privacy-card ul { margin: 13px 0 0; padding-left: 21px; }
.privacy-card strong { color: var(--ink); }
.privacy-updated { display: inline-flex; margin-top: 20px; padding: 7px 10px; border-radius: 9px; background: var(--mint-soft); color: var(--green-dark); font-size: 12px; font-weight: 700; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 20;
  padding: 11px 17px;
  border-radius: 999px;
  background: #15251f;
  color: white;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 880px) {
  .workspace { grid-template-columns: 1fr; }
  .preview-card { min-height: 480px; }
  .how-it-works { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 600px) {
  .page-shell { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 70px; padding: 13px 0; gap: 10px; flex-direction: column; align-items: stretch; }
  .brand-logo { width: 142px; }
  .site-security-badge { width: 100%; max-width: none; padding: 8px 10px 8px 8px; }
  .site-security-copy small { max-width: none; }
  .hero { padding: 48px 2px 36px; }
  .hero h1 { font-size: clamp(38px, 12vw, 53px); }
  .hero p { font-size: 16px; }
  .form-card, .preview-card { padding: 23px 18px; border-radius: 17px; }
  .field-grid { grid-template-columns: 1fr; gap: 18px; }
  .field-wide { grid-column: auto; }
  .pix-key-composer { grid-template-columns: 144px minmax(0, 1fr); }
  .key-type-menu { width: min(248px, calc(100vw - 60px)); }
  .secondary-actions { grid-template-columns: 1fr; }
  .qr-spotlight { grid-template-columns: 1fr; text-align: center; }
  .qr-frame { width: min(100%, 190px); justify-self: center; }
  .qr-image-actions { justify-content: center; }
  .how-it-works { margin: 52px 0 38px; padding: 42px 3px; }
  .how-it-works h2 { font-size: 30px; }
  .how-it-works ol { grid-template-columns: 1fr; gap: 21px; }
  .how-it-works li { display: flex; align-items: flex-start; gap: 13px; }
  .how-it-works li > span { flex: 0 0 29px; margin: 0; }
  footer { min-height: 110px; flex-direction: column; justify-content: center; gap: 9px; text-align: center; }
  .footer-links { flex-direction: column; justify-content: center; gap: 7px; }
  .privacy-header-actions { align-items: flex-end; flex-direction: column-reverse; gap: 8px; }
  .privacy-header-actions .site-security-badge { width: auto; max-width: 260px; }
  .privacy-hero { padding: 48px 2px 28px; }
  .privacy-card { padding: 28px 20px; border-radius: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
