/* Shared landing-page styles for tool pages (Split, Merge, ...). Follows the homepage design system
   (home.min.css): organic corner blobs, wave dividers, icon-badge cards, how-to bands. */

.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; }
.sp-rel { position: relative; z-index: 1; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }

/* Breadcrumb */
.sp-breadcrumb { margin-top: 65px; background: var(--green-50); border-bottom: 1px solid var(--border); }
.sp-breadcrumb .container { padding-top: 10px; padding-bottom: 10px; }
.sp-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; padding: 0; font-size: 13px; color: var(--gray-600); }
.sp-breadcrumb a { color: var(--gray-600); text-decoration: none; }
.sp-breadcrumb a:hover { color: var(--primary-dark); }
.sp-breadcrumb li[aria-hidden] { color: var(--gray-400); }
.sp-breadcrumb li[aria-current] { color: var(--gray-900); font-weight: 600; }

/* Decorative blobs: corners only, never behind text */
.sp-blob { position: absolute; filter: blur(50px); pointer-events: none; z-index: 0; }
.sp-blob--1 { width: 380px; height: 380px; border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; background: radial-gradient(circle, rgba(34,197,94,.26) 0%, rgba(34,197,94,0) 72%); top: -120px; left: -170px; }
.sp-blob--2 { width: 360px; height: 360px; border-radius: 63% 37% 30% 70% / 50% 45% 55% 50%; background: radial-gradient(circle, rgba(59,130,246,.20) 0%, rgba(59,130,246,0) 72%); bottom: -150px; right: -160px; }
.sp-blob--3 { width: 300px; height: 300px; border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; background: radial-gradient(circle, rgba(234,179,8,.16) 0%, rgba(234,179,8,0) 72%); top: 10%; right: -140px; }
.sp-blob--4 { width: 300px; height: 300px; border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; background: radial-gradient(circle, rgba(168,85,247,.16) 0%, rgba(168,85,247,0) 72%); top: -60px; left: -150px; }
.sp-blob--5 { width: 320px; height: 320px; border-radius: 63% 37% 30% 70% / 50% 45% 55% 50%; background: radial-gradient(circle, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 72%); top: -140px; right: -100px; filter: blur(30px); }
.sp-dots { position: absolute; top: 120px; right: 9%; width: 84px; height: 84px; background-image: radial-gradient(circle, var(--green-300) 1.6px, transparent 1.6px); background-size: 12px 12px; opacity: .55; pointer-events: none; z-index: 0; }

/* Hero */
.sp-hero { position: relative; overflow: hidden; overflow: clip; text-align: center; padding: 56px 0 64px; background: linear-gradient(165deg, #f0fdf4 0%, #ffffff 48%, #eff6ff 100%); }
.sp-hero__inner { position: relative; z-index: 1; }
.sp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--green-200); color: var(--primary-dark); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.sp-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.08; letter-spacing: -1.5px; color: var(--gray-900); margin: 0 auto 18px; max-width: 900px; }
.sp-grad { display: block; background: linear-gradient(135deg, #15803d 0%, #22c55e 45%, #2563eb 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sp-subtitle { font-size: clamp(15px, 2.2vw, 18px); line-height: 1.65; color: var(--gray-600); max-width: 640px; margin: 0 auto 32px; }

.sp-upload { position: relative; max-width: 640px; margin: 0 auto; padding: 32px 28px 26px; background: #fff; border: 2px dashed var(--green-300); border-radius: var(--radius-xl); box-shadow: 0 18px 50px -18px rgba(21,128,61,.35), var(--shadow-sm); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.sp-upload:hover, .sp-upload.dragover { border-color: var(--primary); background: var(--green-50); }
.sp-upload.dragover { transform: scale(1.01); }
.sp-upload__art { margin: 0 auto 10px; width: 160px; height: 96px; }
.sp-upload__art svg { display: block; }
.sp-upload__title { font-size: 22px; font-weight: 800; color: var(--gray-900); margin: 0 0 4px; }
.sp-upload__sub { font-size: 14px; color: var(--gray-500); margin: 0 0 18px; }
.sp-upload__btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px; min-height: 52px; border-radius: 14px; background: var(--primary-dark); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 22px -6px rgba(21,128,61,.55); transition: background .2s, transform .15s, box-shadow .2s; }
.sp-upload__btn:hover { background: var(--green-800); transform: translateY(-1px); box-shadow: 0 12px 26px -6px rgba(21,128,61,.6); }
.sp-upload__btn:focus-within { outline: 3px solid var(--green-300); outline-offset: 3px; }
.sp-upload__hint { font-size: 12.5px; color: var(--gray-500); margin: 16px 0 0; }

.sp-trust { list-style: none; margin: 28px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: center; gap: 10px 26px; }
.sp-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--gray-700); }
.sp-trust__icon { width: 30px; height: 30px; border-radius: 50%; background: var(--green-100); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Section shell */
.sp-section { position: relative; overflow: hidden; padding-top: 72px; padding-bottom: 72px; }
.sp-eyebrow { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-dark); margin: 0 0 10px; }
.sp-title { text-align: center; font-size: clamp(24px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.6px; line-height: 1.2; color: var(--gray-900); margin: 0 auto 14px; max-width: 760px; }
.sp-title--sm { font-size: clamp(20px, 2.6vw, 26px); margin-bottom: 24px; }
.sp-lead { text-align: center; font-size: 16px; line-height: 1.7; color: var(--gray-600); max-width: 660px; margin: 0 auto 40px; }

/* Steps */
.sp-steps { background: #fff; }
.sp-steps__grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none; }
.sp-step { position: relative; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.sp-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--green-200); }
.sp-step__num { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-dark); color: #fff; font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 6px 16px -6px rgba(21,128,61,.6); }
.sp-step h3 { font-size: 17px; font-weight: 800; color: var(--gray-900); margin: 0 0 8px; }
.sp-step p { font-size: 14.5px; line-height: 1.65; color: var(--gray-600); margin: 0; }

/* Waves + modes band */
.sp-wave { display: block; width: 100%; height: 56px; }
.sp-modes { background: var(--green-50); padding-top: 40px; padding-bottom: 40px; }
.sp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sp-card { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px 22px 20px; text-decoration: none; color: inherit; transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s, border-color .22s; }
.sp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-200); }
.sp-card h3 { font-size: 17px; font-weight: 800; color: var(--gray-900); margin: 4px 0 0; letter-spacing: -.01em; }
.sp-card p { font-size: 14px; line-height: 1.6; color: var(--gray-600); margin: 0; flex: 1; }
.sp-card__icon, .sp-use__icon { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.sp-card__icon svg, .sp-use__icon svg { width: 21px; height: 21px; }
.sp-card:hover .sp-card__icon { transform: scale(1.1) rotate(-4deg); }
.sp-card__icon--green { background: var(--primary-dark); }
.sp-card__icon--blue { background: var(--blue-600); }
.sp-card__icon--rose { background: #e11d48; }
.sp-card__icon--orange { background: #c2410c; }
.sp-card__icon--purple { background: var(--purple-700); }
.sp-card__icon--gold { background: #a16207; }
.sp-card__more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 6px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--green-50); border: 1px solid var(--green-200); color: var(--primary-dark); font-size: 12.5px; font-weight: 700; }
.sp-card:hover .sp-card__more svg { transform: translateX(2px); }
.sp-card__more svg { transition: transform .2s; }

/* How-to bands (same pattern as home.min.css .howto-band) */
.sp-guides { background: #fff; padding-top: 64px; }
.sp-guides .sp-title { margin-bottom: 32px; }
.howto-band { position: relative; padding: 44px 24px; overflow: hidden; }
.howto-band--peach { background: linear-gradient(135deg, #fff1e6 0%, #ffe4cc 100%); }
.howto-band--mint { background: linear-gradient(135deg, #e6faf0 0%, #d7f5e3 100%); }
.howto-band--blue { background: linear-gradient(135deg, #e8f1ff 0%, #dae9ff 100%); }
.howto-band__inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.howto-band__title { font-size: 21px; font-weight: 800; color: var(--gray-900); margin: 0 0 16px; letter-spacing: -.01em; }
.howto-band__steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: howto; }
.howto-band__steps li { position: relative; padding-left: 32px; font-size: 15px; color: var(--gray-700); line-height: 1.6; }
.howto-band__steps li::before { counter-increment: howto; content: counter(howto); position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: var(--green-100); color: var(--primary-dark); font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.howto-band a { color: var(--primary-dark); font-weight: 600; }
.howto-band__note { margin: 16px 0 0; font-size: 14px; color: var(--gray-700); }
.howto-band--peach a { color: #c2410c; }
.howto-band--peach .howto-band__steps li::before { background: #ffe0c2; color: #c2410c; }
.howto-band--blue a { color: #1d4ed8; }
.howto-band--blue .howto-band__steps li::before { background: #dbeafe; color: #1d4ed8; }
.howto-blob { position: absolute; pointer-events: none; z-index: 0; }
.howto-band--peach .howto-blob { background: linear-gradient(135deg, rgba(249,115,22,.55) 0%, rgba(251,146,60,.3) 100%); }
.howto-band--mint .howto-blob { background: linear-gradient(135deg, rgba(34,197,94,.5) 0%, rgba(74,222,128,.28) 100%); }
.howto-band--blue .howto-blob { background: linear-gradient(135deg, rgba(59,130,246,.5) 0%, rgba(96,165,250,.28) 100%); }
.howto-blob--left { width: 150px; height: 170px; border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; top: 15px; left: -65px; }
.howto-blob--right { width: 130px; height: 150px; border-radius: 55% 45% 35% 65% / 45% 55% 45% 55%; bottom: 5px; right: -55px; }

/* Comparison */
.sp-compare { background: var(--gray-50); }
.sp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); border: 1.5px solid var(--border); background: #fff; box-shadow: var(--shadow-md); }
.sp-table-wrap:focus-visible { outline: 3px solid var(--green-300); }
.sp-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14.5px; }
.sp-table th, .sp-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); vertical-align: middle; }
.sp-table thead th { font-size: 13px; font-weight: 800; color: var(--gray-900); background: var(--gray-50); text-transform: none; }
.sp-table tbody th { font-weight: 600; color: var(--gray-900); width: 26%; }
.sp-table tbody tr:last-child th, .sp-table tbody tr:last-child td { border-bottom: 0; }
.sp-table .is-raha { background: var(--green-50); }
.sp-table thead .is-raha { background: var(--primary-dark); color: #fff; }
.sp-yes { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary-dark); }
.sp-yes::before { content: ''; width: 16px; height: 16px; flex-shrink: 0; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.sp-swipe { display: none; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--gray-500); margin: 0 0 10px; }
.sp-footnote { text-align: center; font-size: 13px; color: var(--gray-500); margin: 16px auto 0; max-width: 720px; line-height: 1.6; }
.sp-footnote a { color: var(--primary-dark); font-weight: 600; }

/* Use cases */
.sp-uses { background: #fff; }
.sp-uses__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.sp-use { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); background: #fff; transition: box-shadow .2s, border-color .2s; }
.sp-use:hover { box-shadow: var(--shadow-md); border-color: var(--green-200); }
.sp-use h3 { font-size: 16px; font-weight: 800; color: var(--gray-900); margin: 2px 0 6px; }
.sp-use p { font-size: 14.5px; line-height: 1.6; color: var(--gray-600); margin: 0; }
.sp-use a { color: var(--primary-dark); font-weight: 600; }

/* FAQ */
.sp-faq { background: var(--gray-50); }
.sp-faq__inner { max-width: 820px; }
.sp-faq .sp-title { margin-bottom: 32px; }
.sp-q { background: #fff; border: 1.5px solid var(--border); border-radius: 14px; margin-bottom: 12px; transition: border-color .2s, box-shadow .2s; }
.sp-q[open] { border-color: var(--green-200); box-shadow: var(--shadow-md); }
.sp-q summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 16px; font-weight: 700; color: var(--gray-900); }
.sp-q summary::-webkit-details-marker { display: none; }
.sp-q summary::after { content: ''; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--green-100) no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); transition: transform .2s; }
.sp-q[open] summary::after { transform: rotate(180deg); }
.sp-q summary:focus-visible { outline: 3px solid var(--green-300); outline-offset: 2px; border-radius: 14px; }
.sp-q p { margin: 0; padding: 0 22px 20px; font-size: 15px; line-height: 1.7; color: var(--gray-600); }
.sp-q a { color: var(--primary-dark); font-weight: 600; }

/* CTA */
.sp-cta { position: relative; overflow: hidden; text-align: center; padding: 72px 0; background: linear-gradient(135deg, #14532d 0%, #15803d 50%, #16a34a 100%); }
.sp-cta h2 { font-size: clamp(24px, 4vw, 38px); font-weight: 900; color: #fff; margin: 0 0 12px; letter-spacing: -.5px; }
.sp-cta p { font-size: 17px; color: rgba(255,255,255,.88); margin: 0 auto 30px; max-width: 520px; }
.sp-cta__btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 34px; border-radius: 14px; background: #fff; color: var(--primary-dark); font-size: 17px; font-weight: 800; text-decoration: none; box-shadow: 0 10px 28px -8px rgba(0,0,0,.35); transition: transform .15s, box-shadow .2s; }
.sp-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(0,0,0,.4); }

/* Next steps */
.sp-next { background: #fff; padding-top: 56px; padding-bottom: 56px; }
.sp-next__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sp-next__grid a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1.5px solid var(--border); border-radius: 14px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sp-next__grid a:hover { border-color: var(--green-300); box-shadow: 0 8px 20px -10px rgba(21,128,61,.45); transform: translateY(-2px); }
.sp-next__grid strong { font-size: 15px; color: var(--gray-900); }
.sp-next__grid span { font-size: 13px; color: var(--gray-500); }

/* Responsive */
@media (max-width: 960px) {
  .sp-cards { grid-template-columns: repeat(2, 1fr); }
  .sp-blob, .sp-dots { display: none; }
}
@media (max-width: 760px) {
  .sp-steps__grid, .sp-uses__grid { grid-template-columns: 1fr; }
  .sp-next__grid { grid-template-columns: repeat(2, 1fr); }
  .sp-trust { grid-template-columns: repeat(2, auto); }
  .sp-section { padding-top: 56px; padding-bottom: 56px; }
}
@media (max-width: 560px) {
  .sp-hero { padding: 36px 0 44px; }
  .sp-hero h1 { letter-spacing: -1px; }
  .sp-badge { font-size: 12px; padding: 6px 12px; margin-top: 44px; } /* clears the floating Share button */
  .sp-table { min-width: 560px; font-size: 13.5px; }
  .sp-table th, .sp-table td { padding: 12px 12px; }
  .sp-table tbody th { width: 112px; position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 var(--gray-100); }
  .sp-table thead th:first-child { position: sticky; left: 0; z-index: 1; }
  .sp-swipe { display: block; }
  .sp-upload { padding: 24px 16px 20px; border-radius: var(--radius-lg); }
  .sp-upload__btn { width: 100%; justify-content: center; padding: 14px 20px; }
  .sp-cards, .sp-next__grid { grid-template-columns: 1fr; }
  .howto-band { padding: 36px 4px; }
  .howto-band__title { font-size: 19px; }
  .sp-q summary { padding: 16px 16px; font-size: 15px; }
  .sp-q p { padding: 0 16px 18px; }
  .sp-use { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sp-card, .sp-step, .sp-upload, .sp-cta__btn, .sp-next__grid a { transition: none; }
}

/* ===== In-page converter (assets/converter-app.js) ===== */
.cv { max-width: 680px; margin: 0 auto; text-align: left; }
.cv .sp-upload { text-align: center; }
.cv.is-drag .sp-upload, .cv.is-drag .cv-panel { border-color: var(--primary); background: var(--green-50); }
.cv-panel { background: #fff; border: 1.5px solid var(--green-200); border-radius: var(--radius-xl); box-shadow: 0 18px 50px -18px rgba(21,128,61,.35), var(--shadow-sm); padding: 22px 24px 24px; }
.cv-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 16px; color: var(--gray-900); }
.cv-link { border: 0; background: none; padding: 0; color: var(--primary-dark); font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.cv-link:hover { text-decoration: underline; }
.cv-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.cv-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--gray-50); }
.cv-file.has-error { border-color: #fecaca; background: #fef2f2; }
.cv-file__icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--green-100); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; }
.cv-file__icon svg { width: 18px; height: 18px; }
.cv-file__main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.cv-file__name { font-weight: 700; font-size: 14.5px; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-file__meta { font-size: 12.5px; color: var(--gray-500); }
.cv-tag { display: inline-block; padding: 1px 7px; border-radius: 99px; background: #fef3c7; color: #92400e; font-weight: 700; font-size: 11.5px; }
.cv-file__x { width: 30px; height: 30px; flex-shrink: 0; border: 0; border-radius: 8px; background: none; color: var(--gray-400); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cv-file__x svg { width: 16px; height: 16px; }
.cv-file__x:hover { background: #fee2e2; color: #dc2626; }
.cv-add { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--primary-dark); cursor: pointer; }
.cv-add svg { width: 16px; height: 16px; }
.cv-opts { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.cv-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.cv-label { display: block; font-size: 14.5px; font-weight: 800; color: var(--gray-900); margin: 0 0 8px; padding: 0; }
.cv-help { font-size: 12.5px; color: var(--gray-500); margin: 6px 0 0; line-height: 1.5; }
.cv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.cv-choice { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.cv-choice:hover { border-color: var(--green-300); }
.cv-choice.is-on { border-color: var(--primary-dark); background: var(--green-50); }
.cv-choice input { position: absolute; opacity: 0; pointer-events: none; }
.cv-choice:focus-within { outline: 3px solid var(--green-300); outline-offset: 2px; }
.cv-choice__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 14.5px; color: var(--gray-900); }
.cv-choice__top em { font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--primary-dark); background: var(--green-100); padding: 2px 7px; border-radius: 99px; white-space: nowrap; }
.cv-choice__desc { font-size: 12.5px; color: var(--gray-600); line-height: 1.45; }
.cv-choice__where { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--gray-500); margin-top: 2px; }
.cv-choice__where svg { width: 13px; height: 13px; }
.cv-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-seg label { position: relative; flex: 1 1 auto; min-width: 110px; text-align: center; padding: 10px 12px; border: 2px solid var(--border); border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--gray-700); cursor: pointer; background: #fff; }
.cv-seg label.is-on { border-color: var(--primary-dark); background: var(--green-50); color: var(--primary-dark); }
.cv-seg input { position: absolute; opacity: 0; pointer-events: none; }
.cv-seg label:focus-within { outline: 3px solid var(--green-300); outline-offset: 2px; }
.cv-select, .cv-text { width: 100%; height: 44px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--gray-300); border-radius: 10px; background: #fff; font-size: 15px; color: var(--gray-900); font-family: inherit; }
.cv-select:focus, .cv-text:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.cv-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cv-check { position: relative; display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--gray-800); cursor: pointer; }
.cv-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cv-check__box { width: 22px; height: 22px; flex-shrink: 0; box-sizing: border-box; border: 2px solid var(--gray-300); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: transparent; background: #fff; }
.cv-check__box svg { width: 13px; height: 13px; }
.cv-check input:checked + .cv-check__box { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.cv-check input:focus-visible + .cv-check__box { box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
.cv-alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 11px 13px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13.5px; line-height: 1.5; }
.cv-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.cv-alert.is-ok { background: var(--green-50); border-color: var(--green-200); color: var(--primary-dark); }
.cv-alert.is-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.cv-privacy { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--gray-600); }
.cv-privacy svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; color: var(--gray-500); }
.cv-privacy.is-local svg { color: var(--primary-dark); }
.cv-go { width: 100%; margin-top: 16px; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; background: var(--primary-dark); color: #fff; font-size: 17px; font-weight: 800; font-family: inherit; cursor: pointer; box-shadow: 0 8px 22px -6px rgba(21,128,61,.55); transition: background .2s, transform .15s; }
.cv-go svg { width: 20px; height: 20px; }
.cv-go:hover:not(:disabled) { background: var(--green-800); transform: translateY(-1px); }
.cv-go:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.cv-ghost { width: 100%; margin-top: 10px; min-height: 46px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; color: var(--gray-700); font-weight: 700; font-size: 15px; font-family: inherit; cursor: pointer; }
.cv-ghost:hover { border-color: var(--green-300); color: var(--primary-dark); }
.cv-progress { text-align: center; padding: 40px 24px; }
.cv-spinner { width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%; border: 4px solid var(--green-100); border-top-color: var(--primary-dark); animation: cv-spin .9s linear infinite; }
@keyframes cv-spin { to { transform: rotate(360deg); } }
.cv-progress__title { font-size: 17px; font-weight: 800; color: var(--gray-900); margin: 0 0 14px; }
.cv-bar { height: 8px; border-radius: 99px; background: var(--gray-100); overflow: hidden; }
.cv-bar div { height: 100%; width: 2%; background: linear-gradient(90deg, #22c55e, #15803d); border-radius: 99px; transition: width .25s ease; }
.cv-progress__sub { margin: 12px 0 0; font-size: 13px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-result { text-align: center; }
.cv-result__badge { width: 56px; height: 56px; margin: 4px auto 10px; border-radius: 50%; background: var(--green-100); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; }
.cv-result__badge svg { width: 28px; height: 28px; }
.cv-result h3 { font-size: 20px; font-weight: 800; color: var(--gray-900); margin: 0 0 14px; }
.cv-outs { list-style: none; margin: 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.cv-outs li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--gray-50); font-size: 14px; }
.cv-outs li span:first-child { flex: 1; min-width: 0; font-weight: 600; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-outs li span:nth-child(2) { color: var(--gray-500); font-size: 12.5px; }
@media (max-width: 560px) {
  .cv-panel { padding: 18px 14px 18px; border-radius: var(--radius-lg); }
  .cv-langs { grid-template-columns: 1fr; }
  .cv-cards { grid-template-columns: 1fr; }
}
.cv-preview { margin: 4px 0 6px; text-align: left; }
.cv-preview__bar { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--gray-500); margin-bottom: 6px; }
.cv-preview__text { width: 100%; box-sizing: border-box; height: 220px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--gray-50); font: 14px/1.6 var(--font); color: var(--gray-800); resize: vertical; }
.cv-file__thumb { width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px; object-fit: cover; background: var(--gray-100); border: 1px solid var(--border); }
.cv-file__num { width: 22px; flex-shrink: 0; text-align: center; font-size: 12.5px; font-weight: 800; color: var(--gray-400); }
.cv-file__move { display: flex; flex-shrink: 0; }
.cv-file__move button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--gray-500); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cv-file__move button svg { width: 16px; height: 16px; }
.cv-file__move button:hover:not(:disabled) { background: var(--green-100); color: var(--primary-dark); }
.cv-file__move button:disabled { opacity: .3; cursor: default; }
.cv-file[draggable="true"] { cursor: grab; }
.cv-val { float: right; font-weight: 700; color: var(--primary-dark); font-size: 13.5px; }
.cv-range { width: 100%; accent-color: var(--primary-dark); height: 28px; }
.cv-color { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gray-700); font-variant-numeric: tabular-nums; }
.cv-color input { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--gray-300); border-radius: 8px; background: #fff; cursor: pointer; }
.cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cv-file.is-dragging { opacity: .45; }

/* ===== Performance: skip rendering below-the-fold sections until they are near the viewport.
   The content stays in the HTML (fully indexable); the browser just lays it out later. ===== */
.sp-steps, .sp-modes, .sp-guides, .sp-compare, .sp-uses, .sp-faq, .sp-cta, .sp-next { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.sp-table--plain { min-width: 520px; }
.sp-table--plain tbody th { font-weight: 700; color: var(--gray-900); white-space: nowrap; }
.sp-table--mono tbody th { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13.5px; font-weight: 600; }
.sp-next__guides { margin: 28px auto 0; max-width: 960px; text-align: left; }
.sp-next__guides h3 { font-size: 16px; font-weight: 800; color: var(--gray-900); margin: 0 0 10px; }
.sp-next__guides ul { margin: 0; padding-left: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 6px 28px; }
.sp-next__guides a { color: var(--primary-dark); font-weight: 600; font-size: 14.5px; }
.sp-next__guides a:hover { text-decoration: underline; }
