:root {
  color-scheme: light;
  --bg: #fff;
  --bg-soft: #f7f8fc;
  --ink: #172033;
  --ink-muted: #58647a;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef2ff;
  --border: #e1e5ee;
  --border-strong: #cbd2e0;
  --green: #15803d;
  --red: #b42318;
  --radius: 14px;
  --header-h: 72px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-card: 0 12px 36px rgba(23, 32, 51, .055);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.025em; }
h1 { margin-bottom: 1.15rem; font-size: clamp(2.45rem, 5.1vw, 4.1rem); font-weight: 760; line-height: 1.08; letter-spacing: -.055em; }
h2 { margin-bottom: .7rem; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 720; letter-spacing: -.04em; }
h3 { margin-bottom: .45rem; font-size: 1.28rem; font-weight: 700; }
h4 { margin-bottom: .55rem; font-size: .92rem; font-weight: 700; }
ul, ol { margin-top: 0; }
[hidden] { display: none !important; }
.container { width: min(100% - 2.5rem, 1160px); margin-inline: auto; }
.narrow { max-width: 780px; }
.skip-link { position: fixed; z-index: 200; top: -5rem; left: 1rem; padding: .7rem 1rem; border-radius: 8px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 1rem; color: #fff; }
:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 3px; border-radius: 5px; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(225,229,238,.9); backdrop-filter: blur(14px); }
.header-inner { display: flex; min-height: var(--header-h); align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 750; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; background: var(--primary); color: white; }
.brand-name span { color: #68738a; font-weight: 600; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; min-height: 42px; align-items: center; padding: .45rem .8rem; border-radius: 8px; color: #465169; font-size: .94rem; font-weight: 600; text-decoration: none; transition: background .18s ease, color .18s ease; }
.site-nav a:hover { background: var(--bg-soft); color: var(--primary-dark); }
.nav-toggle { display: none; min-height: 42px; padding: 0 .85rem; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--ink); font-weight: 650; cursor: pointer; }
.js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
.js .site-nav { display: block; }

.hero { position: relative; overflow: hidden; padding: clamp(4.2rem, 8vw, 7rem) 0 clamp(4.4rem, 8vw, 7.5rem); background: linear-gradient(118deg, #f7f8ff 0%, #fff 53%, #f7f9ff 100%); }
.hero::before { position: absolute; top: -260px; right: -110px; width: 660px; height: 660px; border: 1px solid rgba(79,70,229,.08); border-radius: 50%; content: ""; pointer-events: none; }
.hero::after { position: absolute; top: -185px; right: -35px; width: 510px; height: 510px; border: 1px solid rgba(79,70,229,.07); border-radius: 50%; content: ""; pointer-events: none; }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .92fr); align-items: center; gap: clamp(2.5rem, 6vw, 6rem); }
.eyebrow { margin-bottom: .8rem; color: var(--primary); font-size: .76rem; font-weight: 750; letter-spacing: .11em; line-height: 1.3; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin-right: .45rem; border-radius: 50%; background: var(--primary); vertical-align: 1px; }
.hero h1 span { color: var(--primary); }
.lead { max-width: 580px; margin-bottom: 1.6rem; color: var(--ink-muted); font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.65; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: .65rem 1.4rem; margin: 0; padding: 0; color: #4d5a70; font-size: .91rem; font-weight: 600; list-style: none; }
.hero-benefits li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-benefits svg { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-upload-card { display: flex; min-height: 350px; flex-direction: column; align-items: center; justify-content: center; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px dashed #aeb8d1; border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 18px 55px rgba(31,41,75,.075); text-align: center; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.hero-upload-card.is-dragging { border-color: var(--primary); background: #f5f6ff; box-shadow: 0 0 0 4px rgba(79,70,229,.09), 0 18px 55px rgba(31,41,75,.09); }
.upload-icon { display: grid; width: 62px; height: 62px; margin: 0 auto 1.15rem; place-items: center; border: 1px solid #e0e4ff; border-radius: 17px; background: var(--primary-soft); color: var(--primary); }
.upload-icon svg { width: 29px; height: 29px; }
.hero-upload-card h2 { margin-bottom: .35rem; font-size: 1.35rem; letter-spacing: -.025em; }
.hero-upload-card > p { margin-bottom: .65rem; color: var(--ink-muted); font-size: .92rem; }
.hero-upload-card .upload-or { margin-bottom: .85rem; color: var(--ink-muted); font-size: .85rem; }
.browse-button { padding: .1rem .2rem; border: 0; background: transparent; color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.browse-button:hover { color: var(--primary-dark); }
.hero-upload-card .upload-file-note { max-width: 360px; margin-bottom: .5rem; color: #68748a; font-size: .78rem; line-height: 1.5; }
.hero-upload-card .upload-privacy { max-width: 360px; margin-bottom: 0; color: #69758b; font-size: .78rem; line-height: 1.5; }
.hero-upload-card .hero-upload-status { min-height: 1.45em; margin: .85rem 0 0; color: #556178; font-size: .82rem; }
.hero-upload-status[data-state="error"] { color: var(--red); font-weight: 650; }
.hero-upload-status[data-state="success"] { color: var(--green); font-weight: 650; }
.hero-explore-link { display: inline-flex; align-items: center; gap: .45rem; color: #536078; font-size: .94rem; font-weight: 650; text-decoration: none; transition: color .18s ease, gap .18s ease; }
.hero-explore-link:hover { gap: .65rem; color: var(--primary); }
.hero-explore-link span { color: var(--primary); font-size: 1.1rem; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .55rem; padding: .68rem 1.2rem; border: 1px solid transparent; border-radius: 9px; font-weight: 680; line-height: 1.2; text-align: center; text-decoration: none; transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 5px 12px rgba(79,70,229,.17); }
.btn-primary:hover { transform: translateY(-1px); border-color: var(--primary-dark); background: var(--primary-dark); color: #fff; box-shadow: 0 8px 18px rgba(79,70,229,.23); }
.btn:disabled { transform: none; border-color: #d9deea; background: #eef0f5; color: #68748a; box-shadow: none; cursor: not-allowed; opacity: 1; }
.hero-upload-button { width: 100%; cursor: pointer; }
.hero-upload-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-upload-card .upload-footnote { margin: 1rem 0 0; color: #737e91; font-size: .78rem; line-height: 1.5; }

.section { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.section-muted { background: var(--bg-soft); }
.section-heading { max-width: 700px; margin: 0 auto 2.25rem; text-align: center; }
.section-heading .eyebrow { margin-bottom: .55rem; }
.section-heading h2 { margin-bottom: .75rem; }
.section-intro { max-width: 650px; margin: 0 auto; color: var(--ink-muted); }
.tool-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 1rem; margin-bottom: 2rem; }
.tool-card { display: flex; min-width: 0; height: 210px; flex-direction: column; align-items: flex-start; gap: .9rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 3px 12px rgba(23,32,51,.025); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
a.tool-card:hover { transform: translateY(-2px); border-color: #c5c8fa; color: var(--ink); box-shadow: var(--shadow-card); }
.tool-card:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 3px; }
.tool-card-upcoming { cursor: default; }
.tool-icon { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border-radius: 11px; background: var(--primary-soft); color: var(--primary); }
.tool-icon svg { width: 22px; height: 22px; }
.tool-card-copy { display: flex; width: 100%; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; gap: .4rem; }
.tool-card-copy strong { font-size: .96rem; }
.tool-card-copy > span:not(.tool-action):not(.tool-coming-soon) { color: var(--ink-muted); font-size: .85rem; line-height: 1.5; }
.tool-card-copy .tool-action { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .4rem; color: var(--primary); font-size: .84rem; font-weight: 700; }
.tool-card-copy .tool-action span { transition: transform .18s ease; }
a.tool-card:hover .tool-action span { transform: translateX(3px); }
.tool-coming-soon { margin-top: auto; padding-top: .4rem; color: #667085; font-size: .78rem; font-weight: 650; }
.tool-workspaces { display: grid; gap: 1.25rem; }
.card { min-width: 0; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.tool-panel { scroll-margin-top: calc(var(--header-h) + 1rem); }
.tool-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tool-panel-heading .eyebrow { margin-bottom: .35rem; }
.tool-panel-heading h3 { margin-bottom: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.availability, .preset-badge { display: inline-flex; min-height: 30px; align-items: center; gap: .4rem; padding: .25rem .65rem; border: 1px solid #d8eee0; border-radius: 999px; background: #f4fbf6; color: #247342; font-size: .76rem; font-weight: 650; white-space: nowrap; }
.availability > span { width: 6px; height: 6px; border-radius: 50%; background: #35a65c; }
.preset-badge { border-color: #e1e3fc; background: var(--primary-soft); color: var(--primary-dark); }
.tool-description { max-width: 760px; margin: .65rem 0 1.15rem; color: var(--ink-muted); }
.tool-guide-link { margin: -.45rem 0 .75rem; font-size: .86rem; }
.tool-guide-link a { font-weight: 650; text-decoration: none; }
.tool-guide-link a:hover { text-decoration: underline; }
.guide-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.guide-card { display: grid; min-height: 118px; align-content: start; gap: .45rem; padding: 1.1rem; border: 1px solid var(--border); border-radius: 11px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.guide-card:hover { transform: translateY(-2px); border-color: #c5c8fa; color: var(--ink); box-shadow: var(--shadow-card); }
.guide-card:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 3px; }
.guide-card strong { font-size: .95rem; }
.guide-card span { color: var(--ink-muted); font-size: .84rem; line-height: 1.5; }
.seo-page { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.seo-content { max-width: 820px; }
.seo-breadcrumbs { margin: 0 0 1.5rem; color: var(--ink-muted); font-size: .84rem; }
.seo-breadcrumbs a { color: var(--primary-dark); text-decoration: none; }
.seo-breadcrumbs a:hover { text-decoration: underline; }
.seo-page h1 { max-width: 760px; margin-bottom: 1rem; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.seo-lead { max-width: 720px; margin-bottom: 1.5rem; color: var(--ink-muted); font-size: 1.1rem; }
.seo-tool-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin: 1.75rem 0 2.5rem; }
.seo-tool-cta p { margin: 0; color: var(--ink-muted); font-size: .88rem; }
.seo-article-section { margin-top: 2.5rem; }
.seo-article-section h2 { margin-bottom: .85rem; font-size: 1.55rem; }
.seo-article-section > p { color: var(--ink-muted); }
.seo-steps { display: grid; gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: guide-step; }
.seo-steps li { counter-increment: guide-step; display: grid; grid-template-columns: 2.1rem minmax(0,1fr); gap: .8rem; align-items: start; padding: 1rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.seo-steps li::before { content: counter(guide-step, decimal-leading-zero); color: var(--primary); font-size: .8rem; font-weight: 750; letter-spacing: .04em; }
.seo-steps strong { display: block; margin-bottom: .15rem; }
.seo-steps span { color: var(--ink-muted); font-size: .9rem; }
.seo-faq { margin-top: 2.5rem; }
.seo-faq h2 { margin-bottom: 1rem; font-size: 1.55rem; }
.seo-related { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.seo-related a { font-weight: 650; }
.seo-related li { min-width: 0; }
.legal-updated { margin: -.75rem 0 1.5rem; color: var(--ink-muted); font-size: .88rem; }
.legal-notice { margin: 1.5rem 0 2.25rem; padding: 1.15rem 1.25rem; border: 1px solid #e8d9b3; border-left: 4px solid #9a6b12; border-radius: 9px; background: #fffbf1; }
.legal-notice h2 { margin-bottom: .5rem; font-size: 1.05rem; letter-spacing: -.015em; }
.legal-notice p { margin: 0; color: #514a3b; font-size: .9rem; }
.legal-content .seo-article-section > p { line-height: 1.75; }
.legal-content .seo-article-section > ul { padding-left: 1.25rem; color: var(--ink-muted); }
.tool-upload-zone { display: flex; min-height: 174px; flex-direction: column; align-items: center; justify-content: center; gap: .28rem; margin-top: 1rem; padding: 1.15rem; border: 1px dashed #b8c1d3; border-radius: 12px; background: #fbfcff; text-align: center; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.tool-upload-zone.is-dragging { border-color: var(--primary); background: #f5f6ff; box-shadow: 0 0 0 4px rgba(79,70,229,.08); }
.tool-upload-icon { display: grid; width: 42px; height: 42px; margin-bottom: .35rem; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.tool-upload-icon svg { width: 22px; height: 22px; }
.tool-upload-zone > strong { font-size: .96rem; }
.tool-upload-zone .upload-or { margin: 0; color: var(--ink-muted); font-size: .84rem; }
.tool-upload-zone > small { max-width: 100%; margin-top: .2rem; color: #69758b; font-size: .77rem; line-height: 1.5; }
.tool-upload-zone .browse-button { font-size: inherit; }
.selected-file-panel { display: flex; min-width: 0; align-items: center; gap: .8rem; margin-top: 1rem; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: #fafbfe; }
.selected-file-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 9px; background: #eef2ff; color: var(--primary); }
.selected-file-icon svg { width: 20px; height: 20px; }
.selected-file-copy { min-width: 0; flex: 1; }
.selected-file-copy strong { display: block; font-size: .82rem; }
.selected-file-copy .image-details { min-height: 0; margin: .1rem 0 0; font-size: .8rem; }
.btn-reset { min-height: 38px; padding: .4rem .7rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: #566176; font-size: .8rem; font-weight: 650; cursor: pointer; }
.btn-reset:hover:not(:disabled) { border-color: var(--border-strong); background: #f6f7fa; color: var(--ink); }
.btn-reset:disabled { cursor: not-allowed; opacity: .5; }
.resizer-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.field-group { min-width: 0; }
.field-group label { display: block; margin-bottom: .38rem; font-size: .88rem; font-weight: 680; }
.field-group input:not([type="file"]), .field-group select { width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: var(--ink); }
.field-group input:not([type="file"]):hover, .field-group select:hover { border-color: #aab3c4; }
.field-group input[aria-invalid="true"] { border-color: var(--red); background: #fff8f7; }
.field-group input[aria-invalid="true"]:focus-visible { outline-color: var(--red); }
.field-group input:disabled, .field-group select:disabled { background: #f1f3f7; color: #758095; cursor: not-allowed; }
.field-group input[type="file"] { display: block; width: 100%; min-height: 44px; padding: .48rem 0; color: var(--ink-muted); font-size: .88rem; }
.field-group input[type="file"]::file-selector-button { min-height: 35px; margin-right: .7rem; padding: .4rem .7rem; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.field-group small { display: block; margin-top: .35rem; color: #69758b; font-size: .79rem; line-height: 1.5; }
.input-suffix { display: flex; align-items: center; gap: .65rem; }
.input-suffix input { max-width: 10rem; }
.input-suffix span { color: var(--ink-muted); font-size: .9rem; }
.tool-status { min-height: 1.55em; margin: .9rem 0 .3rem; padding: .65rem .8rem; border: 1px solid transparent; border-radius: 8px; color: var(--ink-muted); font-size: .86rem; font-weight: 580; }
.tool-status[data-state="error"] { border-color: #f2d2d0; background: #fff7f6; color: var(--red); }
.tool-status[data-state="success"] { border-color: #d7ebdd; background: #f5fbf6; color: var(--green); }
.tool-status[data-state="info"] { border-color: #e6eaf1; background: #f8f9fc; }
.resizer-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: .5rem; }
.image-panel { min-width: 0; }
.image-panel .card-subtitle { margin: .6rem 0 .55rem; color: #465169; }
.image-preview { display: grid; min-height: 200px; max-height: 400px; place-items: center; overflow: hidden; padding: .8rem; border: 1px solid var(--border); border-radius: 9px; background-color: #f8fafc; background-image: linear-gradient(45deg,#edf0f5 25%,transparent 25%),linear-gradient(-45deg,#edf0f5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf0f5 75%),linear-gradient(-45deg,transparent 75%,#edf0f5 75%); background-position: 0 0,0 8px,8px -8px,-8px 0; background-size: 16px 16px; }
.image-preview img { display: block; max-width: 100%; max-height: 360px; object-fit: contain; }
.image-preview img[hidden] { display: none; }
.image-preview span { padding: 1rem; color: var(--ink-muted); font-size: .88rem; text-align: center; }
.image-details { min-height: 1.5em; margin: .5rem 0 0; color: var(--ink-muted); font-size: .82rem; overflow-wrap: anywhere; }
.resize-settings { align-items: end; margin-top: 1.3rem; }
.dimension-fields { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: end; gap: .6rem; }
.dimension-fields .ratio-warning { grid-column: 1 / -1; }
.lock-button { min-height: 44px; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--primary-dark); font-size: .8rem; font-weight: 670; white-space: nowrap; cursor: pointer; }
.lock-button:disabled { color: var(--ink-muted); cursor: not-allowed; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.resizer-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.resizer-actions .btn { font: inherit; cursor: pointer; }
.resizer-actions .btn:disabled { opacity: .52; cursor: not-allowed; }
.tool-primary-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.tool-primary-actions .btn { min-width: 170px; cursor: pointer; }
.tool-primary-actions .btn:disabled { cursor: not-allowed; opacity: .52; }
.btn-secondary { border-color: var(--border); background: #fff; color: var(--ink); box-shadow: none; }
.btn-secondary:hover:not(:disabled) { border-color: #b8c1d3; background: #f8f9fc; color: var(--ink); }
.compressor-settings .compressor-note { min-height: 100%; }
.field-group input[type="range"] { min-height: 2rem; padding: 0; accent-color: var(--primary); }
.compressor-note, .thumbnail-guidance { margin: 0; }
.note { padding: .95rem 1rem; border: 1px solid #e5e8f4; border-left: 3px solid var(--primary); border-radius: 8px; background: #f8f9ff; color: #58647a; font-size: .88rem; }
.thumbnail-guidance { margin: 1rem 0; }
.thumbnail-guidance a { font-weight: 650; }
.thumbnail-result-preview { width: 100%; min-width: 0; aspect-ratio: 16 / 9; min-height: 0; }
.crop-controls[hidden] { display: none; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.steps li { min-width: 0; padding: 1.4rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.step-number { display: block; margin-bottom: 1rem; color: var(--primary); font-size: .78rem; font-weight: 780; letter-spacing: .1em; }
.steps h3 { margin-bottom: .45rem; font-size: 1.05rem; }
.steps p { margin-bottom: 0; color: var(--ink-muted); font-size: .9rem; }
.privacy-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 8vw, 7rem); }
.privacy-layout h2 { max-width: 490px; }
.privacy-layout .section-intro { margin: 0 0 1.1rem; }
.text-link { font-weight: 650; text-decoration: none; }
.privacy-points { display: grid; gap: 1.25rem; }
.privacy-point { display: flex; align-items: flex-start; gap: .8rem; }
.privacy-check { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 50%; background: #edf8f0; color: var(--green); }
.privacy-check svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.privacy-point h3 { margin: .1rem 0 .2rem; font-size: .98rem; letter-spacing: -.01em; }
.privacy-point p { margin: 0; color: var(--ink-muted); font-size: .88rem; }
.faq-item { margin-bottom: .7rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.faq-item summary { position: relative; padding: 1rem 3rem 1rem 1.15rem; color: var(--ink); font-weight: 650; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 50%; right: 1.2rem; color: var(--primary); content: "+"; font-size: 1.35rem; font-weight: 500; transform: translateY(-50%); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 1.15rem 1.05rem; color: var(--ink-muted); font-size: .92rem; }
.about-section { border-top: 1px solid #f0f1f5; }
.about-section .narrow > p:last-child, .terms-section .narrow > p { margin-bottom: .75rem; color: var(--ink-muted); }
.terms-section { padding-top: 0; }
.not-found { min-height: 58vh; display: grid; align-items: center; padding: 5rem 0; background: linear-gradient(135deg, #f7f8ff, #fff); text-align: center; }
.not-found-content { max-width: 650px; margin-inline: auto; }
.not-found-code { margin-bottom: .65rem; color: var(--primary); font-size: .82rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.not-found h1 { margin-bottom: .8rem; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.not-found p:not(.not-found-code) { margin: 0 auto 1.4rem; color: var(--ink-muted); }
.not-found-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }

.site-footer { padding: 3rem 0 1.25rem; background: #151c2b; color: #c3cada; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2.2rem; }
.footer-brand { color: white; }
.footer-brand:hover { color: white; }
.footer-brand .brand-name span { color: #c3cada; }
.footer-about > p { max-width: 290px; margin: .8rem 0 0; color: #aeb8c9; font-size: .88rem; }
.footer-column h2 { margin: .35rem 0 .8rem; color: white; font-size: .86rem; letter-spacing: 0; }
.footer-links { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #c3cada; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links a { font-size: .87rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid #343d4d; }
.copyright { margin: 0; color: #aeb8c9; font-size: .82rem; }
.back-to-top { font-size: .84rem; }

@media (max-width: 800px) {
  :root { --header-h: 66px; }
  .container { width: min(100% - 2rem, 680px); }
  .header-inner { flex-wrap: wrap; gap: 0; padding-top: .65rem; padding-bottom: .65rem; }
  .nav-toggle { min-width: 66px; }
  .site-nav { flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; gap: 0; padding: .45rem 0 .15rem; }
  .site-nav a { display: block; padding: .7rem .35rem; border-top: 1px solid var(--border); }
  .hero { padding: 4rem 0 4.5rem; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero-copy { max-width: 640px; }
  .hero-upload-card { max-width: 560px; }
  .tool-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .privacy-layout { grid-template-columns: 1fr; gap: 2rem; }
  .guide-directory { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 801px) {
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; flex-basis: auto; }
  .site-nav ul { flex-direction: row; }
  .site-nav a { border: 0; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { width: min(100% - 1.25rem, 520px); }
  .brand { gap: .5rem; font-size: .92rem; }
  .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
  .hero { padding: 3.25rem 0 3.5rem; }
  h1 { font-size: clamp(2.15rem, 11vw, 3rem); }
  .hero-benefits { display: grid; gap: .45rem; }
  .hero-upload-card { padding: 1.4rem; }
  .section { padding: 3.5rem 0; }
  .section-heading { margin-bottom: 1.65rem; }
  .tool-panel-heading { align-items: flex-start; }
  .tool-directory { grid-template-columns: 1fr; }
  .guide-directory { grid-template-columns: 1fr; }
  .tool-panel-heading h3 { font-size: 1.32rem; }
  .availability, .preset-badge { max-width: 45%; padding: .25rem .5rem; font-size: .68rem; white-space: normal; text-align: center; }
  .resizer-controls, .resizer-workspace { grid-template-columns: minmax(0,1fr); gap: .7rem; }
  .resizer-controls { margin-top: .8rem; }
  .resize-settings { margin-top: 1rem; }
  .tool-upload-zone { min-height: 165px; }
  .selected-file-panel { align-items: flex-start; flex-wrap: wrap; }
  .selected-file-copy { flex-basis: calc(100% - 55px); }
  .btn-reset { margin-left: 46px; }
  .tool-primary-actions { display: grid; grid-template-columns: 1fr; }
  .tool-primary-actions .btn { width: 100%; }
  .image-preview { min-height: 170px; }
  .image-preview img { max-height: 280px; }
  .dimension-fields { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .lock-button { padding-inline: .45rem; font-size: .73rem; }
  .steps { grid-template-columns: 1fr; gap: .7rem; }
  .steps li { display: grid; grid-template-columns: 42px 1fr; column-gap: .8rem; align-items: start; padding: 1rem; }
  .step-number { grid-row: 1 / 3; margin: .1rem 0 0; }
  .steps h3 { margin: 0 0 .25rem; }
  .steps p { grid-column: 2; }
  .footer-main { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem 1rem; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; }
}
@media (max-width: 360px) {
  .brand { font-size: .82rem; }
  .nav-toggle { min-width: 58px; padding-inline: .6rem; }
  .dimension-fields { grid-template-columns: minmax(0, 1fr); }
  .dimension-fields .ratio-warning { grid-column: 1; }
  .lock-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
