:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #617083;
  --line: #e1e7ef;
  --paper: #ffffff;
  --canvas: #f6f8fb;
  --brand: #2859d9;
  --brand-dark: #1744b7;
  --brand-soft: #edf2ff;
  --good: #137a53;
  --warning: #925b08;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(24, 42, 77, .07);
  --content: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, canvas, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, select, input[type="checkbox"], input[type="range"] { cursor: pointer; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid #8daeff; outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 8px; background: white; color: var(--ink); box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.container { width: min(var(--content), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); border-bottom: 1px solid rgba(225,231,239,.9); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.12rem; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: linear-gradient(135deg,#4778f4,#2850c8); border-radius: 12px; box-shadow: 0 5px 14px rgba(40,89,217,.22); }
.brand-mark svg { width: 22px; height: 22px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: #46566a; text-decoration: none; font-size: .92rem; font-weight: 650; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav-cta { padding: 9px 14px; border-radius: 10px; color: #fff !important; background: var(--brand); }
.nav-cta:hover { background: var(--brand-dark); }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; }
.menu-toggle svg { width: 21px; height: 21px; }
main { min-height: 58vh; }
.hero { padding: 76px 0 56px; background: radial-gradient(ellipse at 85% 12%, rgba(95,133,245,.13), transparent 32%), linear-gradient(180deg,#f9fbff 0%,#fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 58px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #4d75ed; }
h1,h2,h3 { line-height: 1.2; letter-spacing: -.035em; }
h1 { margin: 0 0 20px; font-size: clamp(2.35rem, 5.2vw, 4.15rem); font-weight: 820; }
h2 { margin: 0 0 14px; font-size: clamp(1.65rem, 3vw, 2.25rem); }
h3 { margin: 0 0 8px; font-size: 1.12rem; }
p { margin: 0 0 16px; }
.lead { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 11px 17px; border: 1px solid transparent; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; transition: background .15s ease, transform .15s ease, border-color .15s ease; }
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { color: var(--ink); background: #f7f9fc; border-color: #c8d2e0; }
.btn-small { min-height: 38px; padding: 8px 12px; border-radius: 9px; font-size: .9rem; }
.hero-art { position: relative; padding: 22px; border: 1px solid #e3e9f5; border-radius: 28px; background: rgba(255,255,255,.85); box-shadow: 0 26px 70px rgba(34,67,135,.12); transform: rotate(1deg); }
.hero-art-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 2px 17px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d4dce9; }
.art-image { min-height: 245px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: linear-gradient(135deg,#eaf0ff,#d9e7ff 55%,#eff8ff); }
.art-image svg { width: min(90%, 340px); height: auto; }
.art-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 12px; }
.art-stat { padding: 11px 9px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: center; }
.art-stat strong { display: block; font-size: .92rem; }
.art-stat span { color: var(--muted); font-size: .72rem; }
.section { padding: 70px 0; }
.section-soft { background: var(--canvas); }
.section-heading { max-width: 680px; margin-bottom: 30px; }
.section-heading p { color: var(--muted); font-size: 1.05rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.tool-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 5px 20px rgba(24,42,77,.025); transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.tool-card:hover { border-color: #cbd7f5; box-shadow: var(--shadow); transform: translateY(-3px); }
.tool-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px; color: var(--brand); background: var(--brand-soft); }
.tool-icon svg { width: 24px; height: 24px; }
.tool-card p { flex: 1; color: var(--muted); font-size: .95rem; }
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 5px; font-weight: 750; text-decoration: none; }
.ad-slot { display: flex; align-items: center; justify-content: center; min-height: 90px; width: 100%; margin: 25px 0; padding: 8px; border: 1px dashed #d8dfe9; border-radius: 12px; background: #fbfcfe; color: #99a4b3; font-size: .7rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.ad-slot::before { content: "Advertisement"; }
.ad-slot[data-ad-filled="true"]::before { content: none; }
.ad-slot[data-ad-filled="true"] { border-color: transparent; background: transparent; }
.page-hero { padding: 48px 0 30px; background: linear-gradient(180deg,#f7f9ff,#fff); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: .84rem; }
.breadcrumbs a { text-decoration: none; }
.page-hero h1 { max-width: 850px; margin-bottom: 14px; font-size: clamp(2rem,4.2vw,3.25rem); }
.page-hero .lead { max-width: 780px; font-size: 1.05rem; }
.tool-section { padding: 24px 0 68px; }
.tool-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 22px; }
.tool-panel { min-width: 0; padding: clamp(18px,3.4vw,32px); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.tool-panel h2 { font-size: 1.35rem; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.panel-head p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: #eef8f2; color: var(--good); white-space: nowrap; font-size: .74rem; font-weight: 800; }
.dropzone { display: flex; min-height: 190px; align-items: center; justify-content: center; padding: 25px; border: 1.5px dashed #bac8df; border-radius: 16px; background: #fafcff; text-align: center; transition: border-color .15s ease, background .15s ease; }
.dropzone.is-dragging { border-color: var(--brand); background: #f0f4ff; }
.drop-content { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.upload-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 3px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.upload-icon svg { width: 23px; height: 23px; }
.dropzone strong { font-size: 1rem; }
.dropzone p { margin: 0; color: var(--muted); font-size: .88rem; }
.file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.controls-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 23px; }
.control { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.control label, .control .control-label { color: #36465a; font-size: .9rem; font-weight: 750; }
.control input[type="number"], .control input[type="text"], .control input[type="email"], .control select, .control textarea, .form-control { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d6deea; border-radius: 10px; background: #fff; color: var(--ink); }
.control textarea, textarea.form-control { min-height: 130px; resize: vertical; }
.control input[type="range"] { width: 100%; accent-color: var(--brand); }
.control input[type="color"] { width: 56px; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.range-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.range-value { color: var(--brand); font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.help-text { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.check-row { display: flex; align-items: flex-start; gap: 9px; color: #425166; font-size: .91rem; }
.check-row input { margin-top: 5px; accent-color: var(--brand); }
.dimensions { margin-top: 16px; padding: 13px 15px; border-radius: 11px; background: #f6f8fb; color: var(--muted); font-size: .83rem; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.status { min-height: 24px; margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
.status[data-kind="success"] { color: var(--good); }
.status[data-kind="error"] { color: #b42318; }
.status[data-kind="warning"] { color: var(--warning); }
.result-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.result-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .86rem; font-weight: 800; }
.result-meta { color: var(--muted); font-size: .77rem; font-weight: 600; }
.preview-area { display: grid; min-height: 200px; place-items: center; padding: 14px; overflow: hidden; background-color: #f8fafd; background-image: linear-gradient(45deg,#eef1f6 25%,transparent 25%),linear-gradient(-45deg,#eef1f6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eef1f6 75%),linear-gradient(-45deg,transparent 75%,#eef1f6 75%); background-size: 20px 20px; background-position: 0 0,0 10px,10px -10px,-10px 0; }
.preview-area img { display: block; max-width: 100%; max-height: 400px; width: auto; height: auto; object-fit: contain; }
.preview-empty { padding: 20px; color: #8996a8; text-align: center; font-size: .86rem; }
.result-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.result-footer strong { font-size: .85rem; }
.note-box { padding: 16px 18px; border-left: 3px solid #9bb3fa; border-radius: 0 10px 10px 0; background: #f5f7ff; color: #45536b; font-size: .9rem; }
.content-section { padding: 28px 0 68px; }
.prose { color: #405065; }
.prose h2 { margin-top: 35px; color: var(--ink); font-size: 1.45rem; }
.prose h3 { margin-top: 25px; color: var(--ink); }
.prose ul { padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose .updated { color: var(--muted); font-size: .86rem; }
.faq-list { display: grid; gap: 11px; margin-top: 25px; }
details { padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
summary { color: var(--ink); font-weight: 750; cursor: pointer; }
details p { margin: 12px 0 0; color: var(--muted); }
.feature-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.feature { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }
.site-footer { padding: 42px 0 24px; border-top: 1px solid var(--line); background: #f8fafc; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 38px; }
.footer-brand p { max-width: 380px; margin-top: 13px; color: var(--muted); font-size: .9rem; }
.footer-title { margin: 2px 0 12px; font-size: .84rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.footer-links { display: grid; justify-items: start; gap: 8px; }
.footer-links a { color: #526176; text-decoration: none; font-size: .89rem; }
.footer-links a:hover { color: var(--brand); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--line); color: #758195; font-size: .8rem; }
.contact-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 25px 0; }
.contact-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.contact-card p { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.hidden { display: none !important; }
.crop-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.crop-grid .control label { font-size: .8rem; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-actions .btn { flex: 1 1 auto; }
@media (max-width: 900px) {
  .hero { padding: 58px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: 740px; }
  .hero-art { max-width: 560px; width: 100%; margin-inline: auto; }
  .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
}
@media (max-width: 680px) {
  .container, .narrow { width: min(100% - 32px, var(--content)); }
  .header-inner { min-height: 68px; gap: 12px; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 35px; height: 35px; border-radius: 11px; }
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 8px 16px 14px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 16px 24px rgba(24,42,77,.08); }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 10px; border-radius: 8px; }
  .nav-cta { text-align: center; margin-top: 5px; }
  .hero { padding: 46px 0 36px; }
  h1 { font-size: clamp(2.1rem, 10vw, 3.1rem); }
  .hero-grid { gap: 28px; }
  .hero-art { padding: 13px; border-radius: 22px; }
  .art-image { min-height: 175px; }
  .art-stats { gap: 6px; }
  .art-stat { padding: 9px 5px; }
  .section { padding: 52px 0; }
  .tool-grid { grid-template-columns: 1fr; gap: 12px; }
  .tool-card { padding: 21px; }
  .page-hero { padding: 34px 0 22px; }
  .tool-section { padding: 16px 0 48px; }
  .tool-panel { padding: 17px; border-radius: 17px; }
  .panel-head { flex-direction: column; margin-bottom: 17px; }
  .controls-grid, .result-grid, .contact-cards, .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .dropzone { min-height: 165px; padding: 18px; }
  .preview-area { min-height: 160px; }
  .crop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .action-row .btn { flex: 1 1 100%; }
  .feature-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .ad-slot { min-height: 100px; margin: 20px 0; }
}
@media (max-width: 380px) {
  .container, .narrow { width: calc(100% - 26px); }
  .art-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
/* Small layout utilities used by the page templates. */
.text-brand { color: var(--brand); }
.hero-benefits { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 28px; }
.hero-benefit strong { display: block; font-size: .92rem; }
.hero-benefit span { color: var(--muted); font-size: .82rem; }
.tool-extra { margin-top: 14px; }
.control-full { grid-column: 1 / -1; }
.label-spaced { margin-top: 8px; }


/* Adsterra placements: separated from the tool controls and labelled clearly. */
.ad-placement { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; max-width: 100%; min-width: 0; margin: 17px auto; text-align: center; }
.ad-label { display: block; color: #8a96a8; font-size: .62rem; line-height: 1.25; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.ad-placement--320 { width: 320px; max-width: 100vw; margin: 12px 0 16px; left: 50%; transform: translateX(-50%); }
.ad-placement--320 iframe { display: block; max-width: 100%; border: 0; }
.ad-placement--native { width: min(420px, 100%); margin: 15px auto 0; }
.native-ad-container { width: 100%; max-width: 420px; min-width: 0; aspect-ratio: 2 / 1; margin-inline: auto; overflow: hidden; }
.native-ad-container iframe { max-width: 100%; border: 0; }
.ad-placement--468 { width: 468px; max-width: calc(100vw - 32px); min-height: 60px; margin: 18px auto 22px; }
.ad-placement--468 iframe { display: block; max-width: 100%; border: 0; }
.ad-stack--home { display: flex; flex-direction: column; align-items: center; gap: 0; }
.ad-stack--home .ad-placement { flex: 0 0 auto; }
@media (max-width: 499px) { .ad-placement--468 { display: none !important; } }
@media (max-width: 319px) { .ad-placement--320 { display: none !important; } }
