/* onlinefotoshop.com — light default, dark via [data-theme="dark"] */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f3f1ed;
  --border: #e6e3de;
  --text: #1d1c1a;
  --muted: #57534e;
  --faint: #8a8580;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --on-accent: #ffffff;
  --shadow: 0 24px 60px rgba(29, 28, 26, 0.10);
  --mock-bg: #1b1d23;
  --mock-panel: #1f2127;
  --mock-border: #262930;
  --mock-tool: #2b2e36;
  --mock-text: #9aa0ab;
  --radius: 14px;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #131418;
  --surface: #1b1d23;
  --surface-2: #17181d;
  --border: #262930;
  --text: #e7e8ec;
  --muted: #a4a9b5;
  --faint: #6f7480;
  --accent: #4f8cff;
  --accent-hover: #6ea0ff;
  --on-accent: #0b1730;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
.only-dark { display: none; }
[data-theme="dark"] .only-dark { display: inline-flex; }
[data-theme="dark"] .only-light { display: none; }
.ic { flex-shrink: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
@media (min-width: 900px) { .wrap { padding-inline: 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--faint); color: var(--text); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 17px; }
.btn { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-xs { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; border-radius: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: var(--faint); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 35px; width: auto; }
[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }

.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { color: var(--text); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 60; }
.lang li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 14px; }
.lang li a:hover { background: var(--surface-2); }
.lang li a[aria-current="true"] { color: var(--accent); font-weight: 600; }

/* Hero */
.hero { padding: 64px 0 32px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hero .lead { max-width: 680px; }
.lead { font-size: 19px; line-height: 1.5; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* Editor */
.editor { padding: 16px 0 0; }
.editor-bleed { width: 100%; }
.editor-frame { position: relative; height: 100vh; min-height: 420px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--mock-bg); overflow: hidden; display: flex; flex-direction: column; }
.editor-frame iframe { flex: 1; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.editor-bar { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted); }
.editor-bar-actions { display: flex; gap: 6px; }
.editor-frame.is-fullscreen { position: fixed; inset: 0; z-index: 200; height: auto; min-height: 0; border-radius: 0; border: 0; }
body.editor-fullscreen { overflow: hidden; }
.editor-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: #c7cbd4; font-size: 14px; background: var(--mock-bg); pointer-events: none; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #3a3e48; border-top-color: #4f8cff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.editor-poster { position: absolute; inset: 0; }
.mock { position: absolute; inset: 0; display: flex; flex-direction: column; }
.mock-menu { height: 36px; display: flex; align-items: center; gap: 22px; padding: 0 16px; font-size: 13px; color: var(--mock-text); background: var(--mock-panel); border-bottom: 1px solid var(--mock-border); }
.mock-body { flex: 1; display: flex; min-height: 0; }
.mock-tools { width: 48px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 10px; background: var(--mock-panel); border-right: 1px solid var(--mock-border); }
.mock-tools i { width: 28px; height: 28px; border-radius: 6px; background: var(--mock-tool); }
.mock-tools i.on { background: #4f8cff; }
.mock-canvas { flex: 1; display: flex; align-items: center; justify-content: center; background-color: #16171c; background-image: linear-gradient(45deg, #1c1e24 25%, transparent 25%), linear-gradient(-45deg, #1c1e24 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #1c1e24 75%), linear-gradient(-45deg, transparent 75%, #1c1e24 75%); background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; }
.mock-doc { position: relative; width: min(560px, 70%); aspect-ratio: 3 / 2; border-radius: 4px; background: linear-gradient(160deg, #2f3a55 0%, #1e2536 60%, #151a26 100%); box-shadow: 0 30px 60px rgba(0,0,0,.5); overflow: hidden; }
.mock-doc b { position: absolute; left: 11%; top: 21%; width: 39%; aspect-ratio: 1; border-radius: 50%; background: #4f8cff; opacity: .55; }
.mock-doc u { position: absolute; right: 12%; bottom: 13%; width: 46%; height: 37%; border-radius: 8px; background: #e7e8ec; opacity: .12; }
.mock-panel { width: 240px; background: var(--mock-panel); border-left: 1px solid var(--mock-border); display: flex; flex-direction: column; padding: 8px; gap: 4px; }
.mock-panel-title { font-size: 12px; font-weight: 600; color: #c7cbd4; padding: 8px 6px 10px; border-bottom: 1px solid var(--mock-border); margin-bottom: 4px; }
.mock-layer { height: 40px; border-radius: 6px; display: flex; align-items: center; gap: 10px; padding: 0 10px; font-size: 12px; color: var(--mock-text); }
.mock-layer.on { background: var(--mock-tool); color: #e7e8ec; }
.mock-layer i { width: 22px; height: 22px; border-radius: 4px; background: #3a3e48; }
.mock-layer.on i { background: #4f8cff; }
.editor-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(19, 20, 24, .5); }
.editor-open { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 40px; border-radius: 18px; background: #1b1d23; border: 1px solid #2f323b; box-shadow: 0 24px 60px rgba(0,0,0,.55); color: #f5f6f8; text-align: center; transition: transform .15s, border-color .15s; }
.editor-open:hover { transform: translateY(-2px); border-color: #4f8cff; }
.editor-open-icon { width: 72px; height: 72px; border-radius: 50%; background: #4f8cff; color: #0b1730; display: flex; align-items: center; justify-content: center; }
.editor-open-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.editor-open-note { font-size: 14px; color: #9aa0ab; }

/* Strip */
.strip { padding: 28px 0 56px; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; font-size: 14px; color: var(--muted); }
.strip-item { display: inline-flex; align-items: center; gap: 8px; }
.strip-item .ic { color: var(--accent); }

/* Sections */
.section { padding: 0 0 80px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin-bottom: 32px; }
.section-head .lead { font-size: 17px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--accent); }
.step p, .feature p { font-size: 15px; color: var(--muted); }
.feature { display: flex; gap: 16px; }
.feature-icon { color: var(--accent); display: inline-flex; margin-top: 2px; }
.feature h3 { margin-bottom: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; font-weight: 500; }

.prose { max-width: 820px; }
.prose h2 { margin-bottom: 18px; }
.prose h1 { margin-bottom: 18px; font-size: clamp(32px, 4.5vw, 46px); }
.prose p { margin-bottom: 16px; font-size: 17px; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.prose .muted { font-size: 14px; color: var(--faint); }
.prose h2 + p, .prose h1 + p { margin-top: 0; }
.prose.center { text-align: center; margin: 0 auto; }
.page { padding-top: 56px; }
.page .prose h2 { font-size: 22px; margin-top: 32px; margin-bottom: 10px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-top: 1px solid var(--border); }
.compare thead th { border-top: 0; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.compare thead th.us { color: var(--accent); }
.compare tbody th { font-weight: 500; color: var(--text); }
.compare td { color: var(--muted); }
.compare td.us { color: var(--text); font-weight: 500; }

.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { color: var(--faint); transition: transform .2s; }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item p { padding: 0 0 20px; font-size: 15px; color: var(--muted); max-width: 720px; }

.cta { padding: 0 0 80px; }
.cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 56px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.cta p { color: var(--muted); font-size: 17px; max-width: 560px; }
.cta .btn { margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-2); padding: 36px 0 44px; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 14px; }
.footer-links, .footer-langs { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a, .footer-langs a { color: var(--muted); }
.footer-links a:hover, .footer-langs a:hover { color: var(--text); }
.footer-langs a[aria-current="true"] { color: var(--accent); font-weight: 600; }
.footer-legal { font-size: 13px; color: var(--faint); max-width: 980px; }

/* Responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-panel { display: none; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 12px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .hero { padding: 44px 0 24px; }
  .hero .lead { font-size: 16px; }
  .btn-lg { height: 50px; padding: 0 22px; font-size: 16px; width: 100%; }
  .hero-actions { width: 100%; flex-direction: column; }
  .editor-frame { min-height: 380px; }
  .editor-open { padding: 22px 26px; }
  .editor-open-icon { width: 56px; height: 56px; }
  .editor-open-title { font-size: 17px; }
  .mock-menu span:nth-child(n+6) { display: none; }
  .steps, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding-bottom: 56px; }
  .strip-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .strip { padding-bottom: 40px; }
  .cta-inner { padding: 36px 20px; }
  .cta .btn { width: 100%; }
}
