:root {
  --blue: #1268f6;
  --blue-dark: #0953db;
  --ink: #0b1628;
  --muted: #61708a;
  --line: #e1eaf5;
  --soft-blue: #edf5ff;
  --shadow: 0 14px 36px rgba(31, 75, 141, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); font-family: Inter, Arial, sans-serif; background: radial-gradient(circle at 76% 17%, rgba(220, 235, 255, .67), transparent 26%), radial-gradient(circle at 10% 44%, rgba(244, 248, 255, .9), transparent 22%), #fbfcff; }
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(18, 104, 246, .32); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.site-shell { width: min(1300px, calc(100% - 64px)); margin: 0 auto; }
.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; }

.tool-header { position: relative; z-index: 10; height: 71px; border-bottom: 1px solid #e7edf6; background: rgba(255, 255, 255, .92); backdrop-filter: blur(13px); }
.header-inner { display: flex; align-items: center; height: 100%; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.8px; }
.brand > span:last-child span { color: var(--blue); }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; color: #fff; border-radius: 50%; background: linear-gradient(135deg, #247bff, #0951d6); box-shadow: 0 6px 14px rgba(18, 104, 246, .24); }
.brand-mark svg { width: 18px; height: 18px; }
.tool-nav { display: flex; align-items: center; gap: 34px; margin: 0 auto; font-size: 13px; font-weight: 600; }
.tool-nav a { display: inline-flex; align-items: center; gap: 4px; transition: color .2s ease; }
.tool-nav a:hover { color: var(--blue); }
.nav-down { width: 14px; height: 14px; }
.header-tools { display: flex; align-items: center; gap: 18px; }
.header-search { position: relative; display: flex; align-items: center; width: 358px; height: 39px; color: #71809a; border: 1px solid #d9e2ee; border-radius: 8px; background: #fff; }
.header-search input { width: 100%; height: 100%; padding: 0 39px 0 14px; color: var(--ink); font-size: 12px; border: 0; border-radius: inherit; background: transparent; outline: 0; }
.header-search input::placeholder { color: #78869d; }
.header-search svg { position: absolute; right: 13px; width: 18px; height: 18px; pointer-events: none; }
.login-button { min-width: 76px; height: 39px; padding: 0 16px; color: #fff; font-size: 12px; font-weight: 700; border: 0; border-radius: 7px; background: linear-gradient(135deg, #1d75fb, #105de8); box-shadow: 0 6px 13px rgba(18, 104, 246, .2); }
.mobile-menu { display: none; place-items: center; width: 38px; height: 38px; color: var(--ink); border: 0; border-radius: 7px; background: #f1f5fb; }
.mobile-menu svg { width: 21px; height: 21px; }

.breadcrumb { display: flex; align-items: center; gap: 13px; min-height: 55px; padding-top: 12px; color: #6c7d97; font-size: 12px; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb > svg { flex: 0 0 auto; width: 14px; height: 14px; color: #a1aec0; }
.breadcrumb a svg { width: 16px; height: 16px; }
.breadcrumb span[aria-current="page"] { color: #162137; font-weight: 600; }

.cpf-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(470px, .85fr); gap: 66px; align-items: center; padding: 55px 6px 46px; }
.tool-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 15px; padding: 6px 11px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .03em; border-radius: 999px; background: #edf4ff; }
.tool-badge span { font-size: 9px; }
.cpf-hero h1 { max-width: 610px; margin: 0; font-size: clamp(42px, 4vw, 56px); line-height: 1.09; letter-spacing: -2.65px; }
.cpf-hero h1 strong { color: var(--blue); font-weight: 800; }
.lead { max-width: 585px; margin: 17px 0 0; color: #5c6c86; font-size: 16px; line-height: 1.65; }
.hero-points { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 24px; color: #40516b; font-size: 11px; font-weight: 700; }
.hero-points span { display: inline-flex; align-items: center; gap: 5px; }
.hero-points svg { width: 16px; height: 16px; color: var(--blue); }
.responsible-note { display: flex; gap: 10px; max-width: 610px; margin-top: 27px; padding: 14px 15px; color: #725d2a; border: 1px solid #f1e4bc; border-radius: 10px; background: #fffaf0; }
.responsible-note svg { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 1px; color: #c69224; }
.responsible-note p { margin: 0; font-size: 11px; line-height: 1.55; }
.responsible-note b { color: #57461f; }

.generator-card, .results-card, .how-card, .warning-card { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow); }
.generator-card { padding: 27px; }
.generator-heading { display: flex; align-items: center; gap: 12px; }
.heading-icon, .results-icon { display: grid; flex: 0 0 auto; place-items: center; width: 41px; height: 41px; color: var(--blue); border-radius: 12px; background: #eaf3ff; }
.heading-icon svg, .results-icon svg { width: 23px; height: 23px; }
.generator-heading h2, .results-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.55px; }
.generator-heading p, .results-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.generator-fields { display: grid; gap: 22px; margin-top: 27px; }
.quantity-field { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px 14px; }
.quantity-field > label, .format-field legend { color: #34435b; font-size: 11px; font-weight: 700; }
.quantity-field small { grid-column: 1 / -1; color: #7a89a0; font-size: 10px; }
.quantity-control { display: grid; grid-template-columns: 38px 52px 38px; overflow: hidden; border: 1px solid #dce6f2; border-radius: 8px; background: #fff; }
.quantity-control button { display: grid; place-items: center; height: 38px; color: #5d7191; border: 0; background: #f8fbff; transition: color .2s, background .2s; }
.quantity-control button:hover { color: var(--blue); background: #eef5ff; }
.quantity-control button:first-child { border-right: 1px solid #e1e9f3; }
.quantity-control button:last-child { border-left: 1px solid #e1e9f3; }
.quantity-control button svg { width: 16px; height: 16px; }
.quantity-control input { width: 100%; min-width: 0; height: 38px; color: #27364d; font-size: 13px; font-weight: 800; text-align: center; border: 0; outline: 0; -moz-appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.format-field { display: grid; gap: 9px; padding: 0; margin: 0; border: 0; }
.format-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.format-options label { position: relative; display: block; cursor: pointer; }
.format-options input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.format-options span { display: flex; align-items: center; justify-content: center; min-height: 39px; padding: 0 8px; color: #66758c; font-size: 11px; font-weight: 700; text-align: center; border: 1px solid #dce6f2; border-radius: 8px; background: #fff; transition: color .2s, border-color .2s, background .2s, box-shadow .2s; }
.format-options input:checked + span { color: var(--blue); border-color: #5f9dff; background: #f2f7ff; box-shadow: inset 0 0 0 1px rgba(18, 104, 246, .05); }
.format-options input:focus-visible + span { outline: 3px solid rgba(18, 104, 246, .32); outline-offset: 2px; }
.check-field { display: flex; align-items: flex-start; gap: 9px; color: #3b4b63; cursor: pointer; }
.check-field > input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.custom-check { display: grid; flex: 0 0 auto; place-items: center; width: 18px; height: 18px; margin-top: 1px; color: transparent; border: 1px solid #bdccdf; border-radius: 5px; background: #fff; transition: color .2s, border-color .2s, background .2s; }
.custom-check svg { width: 13px; height: 13px; }
.check-field input:checked + .custom-check { color: #fff; border-color: var(--blue); background: var(--blue); }
.check-field input:focus-visible + .custom-check { outline: 3px solid rgba(18, 104, 246, .32); outline-offset: 2px; }
.check-field b { display: block; font-size: 11px; }
.check-field small { display: block; margin-top: 4px; color: #77869c; font-size: 10px; }
.generate-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 47px; margin-top: 27px; padding: 0 18px; color: #fff; font-size: 13px; font-weight: 700; border: 0; border-radius: 8px; background: linear-gradient(135deg, #2378fb, #0e5dea); box-shadow: 0 9px 17px rgba(18, 104, 246, .2); transition: transform .2s ease, box-shadow .2s ease; }
.generate-button:hover { box-shadow: 0 13px 23px rgba(18, 104, 246, .28); transform: translateY(-1px); }
.generate-button svg { width: 19px; height: 19px; }
.generate-button.is-loading svg { animation: spin .65s linear infinite; }
.local-note { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 13px 0 0; color: #77869c; font-size: 10px; }
.local-note svg { width: 14px; height: 14px; color: #5f8ee4; }

.results-card { padding: 25px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.results-heading > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.copy-all-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 13px; color: var(--blue); font-size: 11px; font-weight: 700; border: 1px solid #bfd7fb; border-radius: 7px; background: #f4f8ff; transition: background .2s, border-color .2s; }
.copy-all-button:hover { border-color: #81b1f8; background: #eaf3ff; }
.copy-all-button svg { width: 16px; height: 16px; }
.cpf-results { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 23px; }
.cpf-item { display: flex; flex-direction: column; min-width: 0; padding: 14px; border: 1px solid #e3ebf5; border-radius: 10px; background: linear-gradient(145deg, #fff, #fafeff); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.cpf-item:hover { border-color: #bcd5f9; box-shadow: 0 8px 17px rgba(31, 75, 141, .07); transform: translateY(-2px); }
.cpf-number { display: block; overflow: hidden; color: #1c2c44; font-size: clamp(13px, 1.25vw, 16px); font-weight: 800; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
.cpf-item-footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 12px; }
.cpf-label { color: #8190a5; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.copy-cpf { display: grid; place-items: center; width: 29px; height: 29px; color: #4f77ad; border: 1px solid #dbe7f5; border-radius: 6px; background: #f8fbff; transition: color .2s, background .2s, border-color .2s; }
.copy-cpf:hover, .copy-cpf.is-copied { color: var(--blue); border-color: #9ec4fb; background: #ebf4ff; }
.copy-cpf.is-copied { color: #168a5e; border-color: #a7e2c8; background: #effbf5; }
.copy-cpf svg { width: 15px; height: 15px; }
.result-footnote { display: flex; align-items: center; gap: 7px; margin: 19px 0 0; padding-top: 17px; color: #73829a; font-size: 10px; border-top: 1px solid #edf1f7; }
.result-footnote svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--blue); }

.ad-wrap { margin-top: 24px; }
.ad-slot { display: flex; align-items: center; justify-content: center; min-height: 52px; color: #94a1b5; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px dashed #dce6f2; border-radius: 10px; background: rgba(255, 255, 255, .5); }

.benefit-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; padding: 21px 25px; border: 1px solid #e3ebf5; border-radius: 14px; background: rgba(255, 255, 255, .76); }
.benefit-strip article { display: flex; align-items: center; gap: 11px; min-width: 0; }
.benefit-strip > article:not(:first-child) { border-left: 1px solid #e9eff7; padding-left: 18px; }
.benefit-strip article > span { display: grid; flex: 0 0 auto; place-items: center; width: 37px; height: 37px; border-radius: 11px; }
.benefit-strip article svg { width: 20px; height: 20px; }
.benefit-blue { color: var(--blue); background: #eaf3ff; }
.benefit-purple { color: #8051df; background: #f4efff; }
.benefit-green { color: #199b61; background: #eafaf1; }
.benefit-strip b { display: block; color: #27374e; font-size: 11px; line-height: 1.3; }
.benefit-strip p { margin: 4px 0 0; color: #71819a; font-size: 10px; line-height: 1.45; }

.info-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 21px; margin-top: 24px; }
.how-card, .warning-card { padding: 24px; }
.how-card h2, .warning-card h2 { margin: 0; font-size: 16px; letter-spacing: -.45px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.steps > div { position: relative; min-width: 0; padding-top: 47px; }
.steps > div:not(:last-child)::after { position: absolute; top: 20px; right: -8px; left: 48px; height: 1px; content: ""; border-top: 1px dashed #bdd3f3; }
.steps span { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 39px; height: 39px; color: var(--blue); font-size: 17px; font-weight: 800; border-radius: 50%; background: #eaf2ff; }
.steps b { display: block; color: #25344b; font-size: 11px; line-height: 1.3; }
.steps p { margin: 6px 0 0; color: #667691; font-size: 10px; line-height: 1.5; }
.warning-card { display: flex; align-items: flex-start; gap: 13px; border-color: #efe1b7; background: linear-gradient(145deg, #fffdf8, #fffaf0); }
.warning-icon { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; color: #b68118; border-radius: 11px; background: #fff2cc; }
.warning-icon svg { width: 22px; height: 22px; }
.warning-card p { margin: 10px 0 13px; color: #736448; font-size: 11px; line-height: 1.58; }
.warning-tag { display: inline-flex; padding: 5px 8px; color: #89691e; font-size: 9px; font-weight: 800; letter-spacing: .03em; border-radius: 5px; background: #fff0c7; }

.explore-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; margin-bottom: 30px; padding: 18px 70px; border-radius: 12px; background: linear-gradient(100deg, #eff6ff, #f8fbff); }
.explore-bar > div { display: flex; align-items: center; gap: 14px; }
.explore-mark { display: grid; place-items: center; width: 32px; height: 32px; color: #fff; border-radius: 50%; background: linear-gradient(135deg, #2580ff, #0754df); }
.explore-mark svg { width: 19px; height: 19px; }
.explore-bar p { margin: 0; }
.explore-bar b { display: block; color: #1e2c43; font-size: 12px; }
.explore-bar b span { color: var(--blue); }
.explore-bar small { display: block; margin-top: 4px; color: #71809a; font-size: 10px; }
.explore-bar a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 39px; padding: 0 16px; color: #fff; font-size: 11px; font-weight: 700; border-radius: 7px; background: linear-gradient(135deg, #2378fb, #0e5dea); box-shadow: 0 7px 14px rgba(18, 104, 246, .17); }
.explore-bar a svg { width: 16px; height: 16px; }

.login-dialog { position: relative; width: min(390px, calc(100% - 32px)); padding: 34px; color: var(--ink); border: 0; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 16, 43, .3); }
.login-dialog::backdrop { background: rgba(2, 11, 25, .62); backdrop-filter: blur(3px); }
.login-dialog > button:first-child { position: absolute; top: 13px; right: 13px; display: grid; place-items: center; width: 35px; height: 35px; color: #5c6a80; border: 0; border-radius: 50%; background: #f2f6fb; }
.login-dialog > button:first-child svg { width: 18px; height: 18px; }
.dialog-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 18px; color: #fff; border-radius: 13px; background: linear-gradient(145deg, #2582ff, #0753de); }
.dialog-icon svg { width: 28px; height: 28px; }
.login-dialog h2 { margin: 0; font-size: 22px; letter-spacing: -.8px; }
.login-dialog p { margin: 10px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.login-dialog > button:last-child { width: 100%; height: 44px; color: #fff; font-size: 13px; font-weight: 700; border: 0; border-radius: 8px; background: var(--blue); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; max-width: calc(100% - 32px); padding: 12px 18px; color: #fff; font-size: 13px; border-radius: 9px; background: #102039; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1190px) {
  .site-shell { width: min(1100px, calc(100% - 40px)); }
  .tool-nav { gap: 21px; }
  .header-search { width: 250px; }
  .cpf-hero { gap: 38px; grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr); }
  .cpf-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit-strip { padding: 20px; gap: 14px; }
  .benefit-strip > article:not(:first-child) { padding-left: 14px; }
}

@media (max-width: 980px) {
  .tool-header { height: 62px; }
  .tool-nav { position: absolute; top: 62px; right: 0; left: 0; display: grid; gap: 0; max-height: 0; margin: 0; overflow: hidden; visibility: hidden; background: #09192b; box-shadow: 0 13px 25px rgba(0, 9, 20, .2); transition: max-height .28s ease, visibility .28s ease; }
  .tool-header.nav-open .tool-nav { max-height: 340px; visibility: visible; }
  .tool-nav a { padding: 14px 20px; color: #f5f8fd; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .header-tools { margin-left: auto; }
  .header-search { width: min(320px, 38vw); }
  .mobile-menu { display: grid; }
  .cpf-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 38px; }
  .hero-copy { max-width: 670px; }
  .generator-card { max-width: 670px; }
  .benefit-strip { grid-template-columns: 1fr 1fr; }
  .benefit-strip > article:nth-child(3) { border-left: 0; padding-left: 0; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-shell { width: min(100% - 32px, 560px); }
  .brand { font-size: 18px; }
  .brand-mark { width: 27px; height: 27px; }
  .header-tools { gap: 10px; }
  .header-search { display: none; }
  .login-button { min-width: 64px; height: 36px; padding: 0 12px; }
  .breadcrumb { gap: 10px; min-height: 51px; overflow: auto; white-space: nowrap; }
  .breadcrumb > svg { width: 12px; height: 12px; }
  .cpf-hero { gap: 24px; padding: 29px 0 27px; }
  .cpf-hero h1 { font-size: clamp(38px, 11vw, 48px); letter-spacing: -2px; }
  .lead { margin-top: 14px; font-size: 14px; }
  .hero-points { gap: 10px 14px; margin-top: 19px; }
  .responsible-note { margin-top: 21px; padding: 13px; }
  .generator-card, .results-card, .how-card, .warning-card { border-radius: 12px; }
  .generator-card, .results-card, .how-card, .warning-card { padding: 19px; }
  .generator-fields { gap: 19px; margin-top: 22px; }
  .cpf-results { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
  .cpf-item { padding: 12px; }
  .cpf-number { font-size: 14px; }
  .results-heading { align-items: flex-start; }
  .copy-all-button { min-height: 36px; padding: 0 9px; }
  .copy-all-button span { display: none; }
  .copy-all-button svg { width: 17px; height: 17px; }
  .result-footnote { align-items: flex-start; margin-top: 15px; padding-top: 14px; }
  .benefit-strip { gap: 15px 12px; margin-top: 18px; padding: 18px; }
  .benefit-strip article { align-items: flex-start; }
  .benefit-strip > article:not(:first-child) { border-left: 0; padding-left: 0; }
  .benefit-strip article > span { width: 34px; height: 34px; }
  .info-grid { gap: 15px; margin-top: 18px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .steps > div { padding-top: 44px; }
  .steps > div:not(:last-child)::after { display: none; }
  .steps span { width: 36px; height: 36px; }
  .warning-card { gap: 10px; }
  .warning-icon { width: 36px; height: 36px; }
  .explore-bar { align-items: flex-start; flex-direction: column; margin-top: 15px; margin-bottom: 22px; padding: 18px; }
  .explore-bar a { width: 100%; justify-content: center; }
}

@media (max-width: 390px) {
  .site-shell { width: calc(100% - 24px); }
  .login-button { display: none; }
  .tool-badge { font-size: 9px; }
  .cpf-hero h1 { font-size: 36px; }
  .hero-points { display: grid; grid-template-columns: 1fr 1fr; font-size: 10px; }
  .format-options { grid-template-columns: 1fr; }
  .cpf-results { grid-template-columns: 1fr; }
  .benefit-strip { grid-template-columns: 1fr; }
  .benefit-strip article { min-height: 38px; }
  .warning-card { display: block; }
  .warning-icon { margin-bottom: 10px; }
}
