/* Adobestocksy public website. Light and dark themes, no external fonts. */
:root {
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #eef0f6; --border: #dfe2ea;
  --text: #14161c; --muted: #555b69; --faint: #858b98;
  --accent: #3f5bd8; --accent-2: #2f47b8; --accent-ink: #ffffff; --accent-soft: #e7ebfd;
  --ok: #12804c; --warn: #9a5800; --bad: #b8332a;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 20, 30, .05), 0 6px 22px rgba(16, 20, 30, .06);
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318; --surface: #1a1c23; --surface-2: #22252e; --border: #2d313c;
    --text: #eceef3; --muted: #a9aebb; --faint: #7d8290;
    --accent: #7d94ff; --accent-2: #9aacff; --accent-ink: #0b1020; --accent-soft: #232b4a;
    --ok: #4fd497; --warn: #f0b35a; --bad: #ff8a7f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right)); }
.wrap.narrow, .narrow { max-width: 820px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ header & navigation */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.12rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand-mark, .brand-logo { width: 32px; height: 32px; flex: none; }
.brand-logo { object-fit: contain; }
.bm-a { fill: var(--accent); } .bm-b { fill: color-mix(in srgb, var(--accent) 45%, var(--surface)); }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 550; font-size: .97rem; }
.nav-list a:hover { color: var(--text); background: var(--surface-2); }
.nav-list a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.menu-btn { display: inline-grid; place-items: center; width: 30px; height: 36px; margin-left: -6px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.menu-btn:hover { background: var(--surface-2); color: var(--text); }
.chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.menu-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(640px, 92vw); display: none; grid-template-columns: 1fr 1fr; gap: 2px; list-style: none; margin: 0; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.has-menu.open .mega { display: grid; }
@media (hover: hover) and (min-width: 901px) { .has-menu:hover .mega { display: grid; } }
.mega a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.mega a strong { display: block; font-size: .95rem; }
.mega a small { display: block; color: var(--muted); font-weight: 450; font-size: .82rem; line-height: 1.35; }
.mega-all { grid-column: 1 / -1; border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }
.mega-all a { color: var(--accent); font-weight: 600; align-items: center; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; place-items: center; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .2s, opacity .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav-privacy { display: none !important; }

@media (max-width: 900px) {
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .site-header { backdrop-filter: none; background: var(--surface); }
  .menu-toggle { display: inline-grid; }
  .site-nav { position: fixed; inset: calc(64px + env(safe-area-inset-top)) 0 0 0; background: var(--surface); border-top: 1px solid var(--border); overflow-y: auto; display: none; padding: 8px 16px 32px; margin: 0; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li { flex-wrap: wrap; }
  .nav-list > li > a { flex: 1; padding: 14px 12px; font-size: 1.05rem; }
  .menu-btn { width: 48px; height: 48px; margin: 0; }
  .mega { position: static; transform: none; width: 100%; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 8px 8px; background: transparent; }
  .has-menu:hover .mega { display: none; }
  .has-menu.open .mega { display: grid; }
  .nav-privacy { display: flex !important; }
  body.nav-open { overflow: hidden; }
}

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 11px; border: 1px solid transparent; font: inherit; font-weight: 620; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.lg { min-height: 50px; padding: 12px 22px; font-size: 1.04rem; }
.btn.sm { min-height: 38px; padding: 7px 13px; font-size: .92rem; }
.arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ hero & sections */
.notice { background: #fff4d6; color: #5c3b00; text-align: center; padding: 10px 16px; font-weight: 550; }
@media (prefers-color-scheme: dark) { .notice { background: #3a2e12; color: #ffe2a8; } }
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 5vw, 56px); background: radial-gradient(1000px 420px at 85% -10%, var(--accent-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 650; font-size: .92rem; letter-spacing: .01em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 340px; justify-self: end; }
.tile { aspect-ratio: 1; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.tile:nth-child(odd) { background: var(--accent-soft); }
.tile .ico { width: 40%; height: 40%; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section.tight { padding-top: 12px; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.section-head h2 { margin: 0; } .section-head p { margin: 0; color: var(--muted); flex: 1 1 260px; }
.page-head { padding: clamp(28px, 5vw, 56px) 0 clamp(16px, 3vw, 28px); }
.crumbs { font-size: .9rem; color: var(--faint); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.meta, .note { color: var(--faint); font-size: .92rem; }

/* ------------------------------------------------------------------ cards & grids */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.features { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.app-card { display: flex; flex-direction: column; gap: 10px; }
.card-head { display: flex; gap: 12px; align-items: center; }
.card-title { font-size: 1.12rem; margin: 0; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.tag { color: var(--muted); font-size: .9rem; margin: 0; font-weight: 450; }
.desc { color: var(--muted); margin: 0; }
.main-fn { font-size: .88rem; color: var(--faint); margin: 0; }
.main-fn span { color: var(--muted); font-weight: 600; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--accent); flex: none; }
.ico.sm { width: 20px; height: 20px; margin-top: 2px; }
.app-ico { width: 46px; height: 46px; padding: 11px; background: var(--accent-soft); border-radius: 12px; }
.app-ico.lg { width: 64px; height: 64px; padding: 15px; border-radius: 16px; }
.cat { margin: 0 0 34px; }
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 12px; }
.cat-head h3, .cat-head h2 { margin: 0; font-size: 1.2rem; }
.cat-head p { margin: 0; color: var(--muted); }
.search { position: relative; display: block; width: min(420px, 100%); }
.search svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--faint); stroke-width: 2; }
.search input { width: 100%; min-height: 46px; padding: 10px 14px 10px 40px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; }
.search input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.empty { color: var(--muted); padding: 20px 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 10px; }
.steps p, .features p { color: var(--muted); }
.dev-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .dev-grid { grid-template-columns: 1fr; } }
.sys dl { margin: 0 0 12px; display: grid; gap: 8px; }
.sys dl > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.sys dt { color: var(--muted); font-size: .9rem; } .sys dd { margin: 0; text-align: right; font-weight: 600; font-size: .9rem; word-break: break-word; }
.sys .ok { color: var(--ok); } .sys .warn { color: var(--warn); } .sys .bad { color: var(--bad); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 620; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq-a { padding: 0 18px 6px; color: var(--muted); }
.updates { list-style: none; padding: 0; margin: 0; }
.updates li { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin-bottom: 18px; }
.updates time { color: var(--faint); font-size: .88rem; }
.contact-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-strip p { margin: 0; color: var(--muted); }
.tool-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tool-list > li { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.tool-list h3 { margin: 0 0 4px; } .tool-list h3 a { color: var(--text); text-decoration: none; }
.tool-list p { color: var(--muted); margin: 0 0 6px; }
.mini { margin: 0; padding-left: 18px; color: var(--muted); font-size: .9rem; columns: 2; column-gap: 24px; }
@media (max-width: 640px) { .tool-list > li { grid-template-columns: 1fr; } .mini { columns: 1; } }

/* ------------------------------------------------------------------ application pages & prose */
.app-title { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.app-title h1 { margin: 0; }
.app-title .lead { margin: 4px 0 0; }
.app-layout { display: block; padding-bottom: 48px; }
.app-layout.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
.app-aside { position: sticky; top: 88px; align-self: start; }
@media (max-width: 1000px) { .app-layout.with-aside { grid-template-columns: 1fr; } .app-aside { display: none; } }
.prose { max-width: 76ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .35em; }
.prose .intro { font-size: 1.1rem; }
.legal h2 { font-size: 1.3rem; }
.formats { display: grid; gap: 8px; margin: 0; }
.formats > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.formats dt { font-weight: 650; } .formats dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .formats > div { grid-template-columns: 1fr; gap: 2px; } }
.cta-end { margin-top: 28px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
td a { margin-right: 10px; white-space: nowrap; }

/* ------------------------------------------------------------------ forms */
.form .field { margin-bottom: 16px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form input, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; min-height: 46px; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form [aria-invalid="true"] { border-color: var(--bad); }
.form .err { color: var(--bad); font-size: .88rem; margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: .88rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.status { margin: 0; font-weight: 600; }
.status.ok { color: var(--ok); } .status.bad { color: var(--bad); }

/* ------------------------------------------------------------------ advertisements */
.ad-slot { margin: 28px auto; text-align: center; max-width: 100%; contain: layout; }
.ad-label { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.ad-slot ins { display: block; }
/* Reserved space against layout shift. */
.ad-auto ins, .ad-auto .ad-ph { min-height: 280px; }
.ad-horizontal ins, .ad-horizontal .ad-ph { min-height: 100px; }
.ad-rectangle ins, .ad-rectangle .ad-ph { min-height: 250px; }
.app-aside .ad-slot { margin-top: 0; }
@media (min-width: 761px) { .hide-desktop { display: none !important; } }
@media (max-width: 760px) { .hide-mobile { display: none !important; } .ad-auto ins { min-height: 250px; } }
.ad-preview .ad-ph { display: grid; place-content: center; gap: 4px; border: 2px dashed var(--border); border-radius: 12px; color: var(--muted); padding: 16px; background: repeating-linear-gradient(45deg, transparent 0 10px, var(--surface-2) 10px 20px); }
.ad-preview.on .ad-ph { border-color: var(--accent); color: var(--text); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 24px; padding: 40px 0 calc(20px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr; gap: 28px; }
.foot-grid h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin-bottom: 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); text-decoration: underline; }
.foot-grid .cols { columns: 2; column-gap: 16px; }
.foot-brand p { color: var(--muted); font-size: .94rem; margin-top: 10px; }
.foot-base { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 16px; }
.foot-base p { color: var(--faint); font-size: .85rem; margin: 0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
