:root {
  color-scheme: light;
  --ink: #17182d;
  --muted: #52546d;
  --paper: #f8f8fd;
  --card: #fff;
  --accent: #5041d7;
  --line: #e1e0ee;
  --tint: #eeebff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: #ded8ff; }
:focus-visible { outline: 3px solid #6958eb; outline-offset: 4px; }
a { color: var(--accent); text-underline-offset: .18em; }
p, li { line-height: 1.6; }
h1, h2 { margin: 0; letter-spacing: -.036em; line-height: 1.06; }
h1 { font-size: clamp(2.45rem, 5.2vw, 4.5rem); font-weight: 760; letter-spacing: -.055em; text-wrap: balance; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.4rem); }
.frame { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); background: #fffffff5; backdrop-filter: blur(12px); }
.header-row, .footer-row { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-size: 1.13rem; font-weight: 760; letter-spacing: -.04em; }
nav { display: flex; gap: clamp(10px, 3vw, 26px); align-items: center; flex-wrap: wrap; }
nav a { font-size: .89rem; text-decoration: none; font-weight: 630; }
nav a:hover { text-decoration: underline; }
.main-nav { gap: clamp(9px, 1.65vw, 23px); }
.main-nav a { color: var(--muted); display: flex; align-items: center; min-height: 40px; }
.main-nav a:hover { color: var(--accent); }
.header-action { border: 1px solid #d9d2ff; background: var(--tint); border-radius: 999px; padding: 9px 14px; color: var(--accent); font-size: .87rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-action:hover { background: #e1dbff; }
#tool, #examples, #backgrounds, #guides, #pricing, #faq, #editor, #product-pack { scroll-margin-top: 83px; }
.skip { position: absolute; inset: 8px auto auto 8px; transform: translateY(-160%); z-index: 10; padding: 8px 12px; background: white; }
.skip:focus { transform: translateY(0); }
.seller-hero { padding-block: clamp(38px, 6vw, 84px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(24px, 5vw, 68px); }
.home-page { background: radial-gradient(ellipse 46rem 32rem at 50% 8rem, #eeebff, transparent 100%), var(--paper); }
.hero { padding-block: clamp(34px, 5vw, 62px) 22px; }
.hero-copy { text-align: center; }
.hero-copy .kicker { margin-bottom: 12px; }
.hero-copy h1 { font-size: clamp(2.35rem, 5.3vw, 4.65rem); }
.hero-copy h1 span { color: var(--accent); }
.hero-copy .intro { max-width: 36rem; margin: 14px auto 0; text-wrap: balance; }
.hero-studio { margin-top: clamp(22px, 4vw, 38px); display: grid; grid-template-areas: "sample upload"; grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid #ded9ff; border-radius: 24px; background: #f0edff; box-shadow: 0 26px 80px -42px #4a369f7a; }
.studio-notes { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px 25px; padding: 0; margin: 15px 0 0; list-style: none; color: var(--muted); font-size: .8rem; font-weight: 600; }
.studio-notes li { display: flex; align-items: center; gap: 7px; }
.studio-notes li::before { content: ""; width: 5px; height: 5px; background: #8776e7; border-radius: 50%; }
.upload-card { grid-area: upload; display: flex; flex-direction: column; justify-content: center; border: 1px solid #e4dfff; border-radius: 17px; padding: clamp(13px, 2.4vw, 28px); background: var(--card); }
.upload-card h2 { font-size: clamp(1.18rem, 2vw, 1.48rem); }
.cutout-example { grid-area: sample; min-width: 0; margin: 0; padding: 11px; border-radius: 17px; background: #1b1934; color: #f3f1ff; }
.sample-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 3px 9px; font-size: .79rem; font-weight: 690; }
.sample-heading span:last-child { color: #c0b8eb; }
.sample-stage { --split: 52%; position: relative; aspect-ratio: 3 / 2; overflow: hidden; isolation: isolate; border-radius: 10px; background: #2b2d52; }
.sample-stage:focus-within { outline: 3px solid #c8bcff; outline-offset: 2px; }
.sample-stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sample-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split)); }
.sample-label { position: absolute; top: 10px; border-radius: 6px; padding: 4px 8px; color: #fff; background: #16152dea; font-size: .73rem; font-weight: 700; }
.sample-original { left: 10px; }
.sample-result { right: 10px; }
.sample-line { position: absolute; inset: 0 auto 0 var(--split); width: 2px; transform: translateX(-50%); background: #fff; box-shadow: 0 0 12px #201a5d65; }
.sample-handle { position: absolute; top: 50%; left: clamp(19px, var(--split), calc(100% - 19px)); transform: translate(-50%, -50%); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #e3ddff; color: var(--accent); background: #fff; box-shadow: 0 3px 16px #1b19345c; }
.sample-slider { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; appearance: none; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.sample-slider::-webkit-slider-thumb { appearance: none; width: 1px; height: 1px; }
.sample-slider::-moz-range-thumb { width: 1px; height: 1px; border: 0; }
.cutout-example figcaption { margin: 8px 3px 0; color: #d5cfff; font-size: .76rem; }
.transparent, .preview-area { background: #fff conic-gradient(#edebf6 25%, #fff 0 50%, #edebf6 0 75%, #fff 0) 0 0 / 20px 20px; }
.kicker { color: var(--accent); font-size: .74rem; font-weight: 780; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.kicker span { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 4px; }
.intro { max-width: 35rem; color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.2rem); margin: 22px 0; }
.pills { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 22px 0 0; gap: 8px; }
.pills li { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); font-weight: 640; font-size: .79rem; }
.tool-card, .editor, .batch-workspace { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 16px 42px -32px #30235b58; padding: clamp(17px, 3vw, 29px); min-width: 0; }
.drop-zone { background: #f9f7ff; border: 1px dashed #b5a9ee; border-radius: 14px; text-align: center; padding: clamp(14px, 3.5vw, 40px) 12px clamp(14px, 2.5vw, 26px); transition: background-color .2s, border-color .2s; }
.drop-zone p { color: var(--muted); font-size: .87rem; margin: 8px 0 0; }
.drop-zone .file-formats { font-size: .74rem; margin-top: 12px; }
.drop-zone .primary { margin-top: 19px; min-height: 50px; padding-inline: 20px; box-shadow: 0 8px 18px -10px #3b24b3; }
.dragging, .processing { background: #ede7ff; border-color: var(--accent); }
.upload-icon { display: block; width: 46px; height: 46px; padding: 10px; background: #ede7ff; color: var(--accent); border-radius: 14px; margin: 0 auto 12px; }
.muted, small, .status { color: var(--muted); }
.status { font-size: .85rem; min-height: 1.35rem; margin: 10px 0 0; overflow-wrap: anywhere; }
.status:empty { min-height: 0; margin: 0; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 12px; border: 1px solid transparent; font-size: .92rem; font-weight: 680; cursor: pointer; text-align: center; text-decoration: none; transition: background-color .2s, transform .2s; }
.primary { background: var(--accent); color: #fff; }
.primary:hover:enabled, a.primary:hover { background: #4030bd; transform: translateY(-1px); }
.primary:active { transform: none; }
.secondary { background: var(--card); color: var(--accent); border-color: #cfc8f0; }
.secondary:hover:enabled, .secondary[aria-pressed="true"] { background: var(--tint); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.example { margin: 10px auto -4px; padding: 4px 12px; background: transparent; color: var(--accent); display: flex; }
.example:hover { background: var(--tint); }
.editor-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.editor-top .kicker { margin-bottom: 8px; }
.preview-area { margin: 18px 0; text-align: center; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
#preview { width: auto; height: auto; max-width: 100%; max-height: min(65vh, 680px); vertical-align: middle; touch-action: none; cursor: crosshair; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.toolbar label { font-size: .88rem; color: var(--muted); }
#brush { width: 100px; accent-color: var(--accent); }
.home-section { padding-block: clamp(42px, 6.5vw, 78px); }
.section-heading { max-width: 38rem; margin-bottom: clamp(19px, 3vw, 29px); }
.section-heading .kicker { margin-bottom: 8px; }
.section-heading > p:last-child { margin: 10px 0 0; color: var(--muted); }
.home-band { border-block: 1px solid var(--line); background: #f0eefb; }
.example-grid, .finish-grid, .plan-grid { display: grid; gap: 16px; }
.example-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.finish-grid, .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.example-card, .finish-card, .guide-grid li, .plan-card { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.example-card { display: flex; flex-direction: column; overflow: hidden; }
.example-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.example-pair figure { position: relative; margin: 0; background-color: #fff; }
.example-pair img { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: contain; }
.example-pair figcaption { position: absolute; top: 7px; left: 7px; padding: 3px 6px; border-radius: 4px; background: #19172de8; color: #fff; font-size: .66rem; font-weight: 650; }
.example-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 17px; }
.example-copy .kicker, .finish-card .kicker, .plan-card .kicker { margin: 0 0 7px; }
.example-copy h3, .finish-card h3, .plan-card h3 { margin: 0; font-size: 1.14rem; letter-spacing: -.025em; }
.example-copy > p:not(.kicker), .finish-card p:not(.kicker), .strip p { margin: 7px 0 10px; color: var(--muted); font-size: .91rem; }
.text-button { display: inline-flex; align-items: center; gap: 6px; min-height: 39px; padding: 0; background: transparent; border: 0; color: var(--accent); text-decoration: none; cursor: pointer; font-size: .89rem; font-weight: 720; }
.text-button:hover { text-decoration: underline; }
.text-button:disabled { opacity: .55; cursor: not-allowed; }
.example-copy .text-button { margin-top: auto; }
.finish-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; gap: 15px; padding: 13px; }
.finish-card > div:last-child { padding: 8px 6px 8px 0; }
.finish-preview { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.finish-preview img { display: block; width: 100%; height: auto; }
.white-finish { background: white; }
.white-finish img { width: 92%; }
.strip { counter-reset: steps; margin: 21px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.strip li { counter-increment: steps; }
.guide-grid li { padding: clamp(15px, 2.7vw, 23px); }
.strip li::before { content: counter(steps); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--tint); color: var(--accent); font-weight: 750; font-size: .83rem; }
.strip h3 { font-size: 1.06rem; margin: 8px 0 0; }
.strip p { margin-bottom: 0; }
.plan-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(18px, 3.2vw, 30px); }
.plan-pro { border-color: #c9bcff; background: linear-gradient(155deg, #fff 30%, #eee8ff 100%); }
.plan-price { margin: 11px 0 8px; font-size: clamp(2.4rem, 4.5vw, 3.3rem); font-weight: 750; line-height: 1; letter-spacing: -.055em; }
.plan-price small { font-size: .88rem; font-weight: 620; letter-spacing: 0; }
.plan-card ul { margin: 10px 0 22px; padding-left: 18px; color: var(--muted); font-size: .93rem; }
.plan-card li + li { margin-top: 4px; }
.plan-card .button { margin-top: auto; }
.faq { padding-block: 46px; max-width: 880px; }
.faq.home-section { padding-block: clamp(42px, 6.5vw, 78px); }
.faq h2 { margin-bottom: 18px; }
details { border-top: 1px solid var(--line); padding: 13px 0; }
summary { font-weight: 700; color: var(--accent); cursor: pointer; }
details p { color: var(--muted); margin: 8px 0; }
.site-footer { border-top: 1px solid var(--line); background: var(--card); }
.price { font-size: clamp(2.55rem, 6vw, 4rem); }
.price small { font-size: .92rem; letter-spacing: normal; }
.price-card .button { margin: 5px 4px 0 0; }
.pro-account { margin-top: 17px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f9f7ff; }
.pro-account h3 { margin: 0 0 5px; font-size: .99rem; }
.pro-account p { margin: 0; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
#test-access { display: block; margin-top: 12px; }
.price-card details { margin-top: 11px; }
.price-card form { display: grid; gap: 8px; margin-top: 10px; }
.price-card label { font-size: .85rem; font-weight: 650; }
.price-card input, .batch-fields input, .batch-fields select, textarea { padding: 9px; color: var(--ink); background: #fff; border: 1px solid #b7b2d1; border-radius: 8px; min-width: 0; width: 100%; }
.batch-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin: 18px 0; }
.batch-fields label { display: grid; align-content: start; gap: 7px; font-size: .89rem; font-weight: 670; }
.batch-fields small { font-weight: 400; }
.batch-result { padding-left: 18px; font-size: .86rem; }
.pack-preview { margin-top: 28px; border: 1px solid var(--line); border-radius: 18px; padding: clamp(17px, 3vw, 27px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); gap: 18px; align-items: center; }
.pack-preview h2 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
.pack-preview p { color: var(--muted); margin: 7px 0 0; }
.pack-preview ul { margin: 0; padding: 12px 16px; list-style: none; background: var(--tint); border-radius: 12px; color: var(--accent); overflow-wrap: anywhere; }
.article { max-width: 800px; padding-block: 55px; }
.article h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); margin-bottom: 24px; }
.article h2 { font-size: 1.35rem; margin-top: 24px; }
.article p { color: var(--muted); max-width: 75ch; }
#analytics-preferences { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }
#analytics-consent { position: fixed; bottom: 14px; left: 14px; z-index: 2; width: min(390px, calc(100% - 28px)); padding: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 25px #271c5126; }
#analytics-consent p { margin: 5px 0 11px; font-size: .87rem; color: var(--muted); }
#analytics-consent > div { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 850px) {
  .site-header { position: relative; }
  .header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding-block: 9px 4px; }
  .main-nav { grid-area: 2 / 1 / 3 / -1; justify-content: space-between; column-gap: 11px; }
  #tool, #examples, #backgrounds, #guides, #pricing, #faq, #editor, #product-pack { scroll-margin-top: 16px; }
}
@media (max-width: 700px) {
  .frame { width: min(100% - 28px, 530px); }
  .hero-studio, .seller-hero, .strip, .batch-fields, .pack-preview, .example-grid, .finish-grid, .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .hero, .seller-hero { gap: 20px; padding-block: 28px; }
  .hero-studio { grid-template-areas: "upload" "sample"; gap: 8px; padding: 8px; border-radius: 19px; }
  .hero-copy h1 { max-width: 17ch; margin-inline: auto; }
  .hero-copy .intro { margin-top: 10px; }
  .drop-zone { padding-block: 14px; }
  .drop-zone .primary { margin-top: 12px; }
  .upload-icon { width: 36px; height: 36px; padding: 7px; margin-bottom: 8px; }
  .cutout-example { padding: 8px; }
  .footer-row { padding-block: 9px; }
  .footer-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .intro { margin-block: 15px; }
  .pills { margin-top: 14px; }
}
@media (max-width: 550px) {
  .main-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 6px; }
  .main-nav a { justify-content: center; min-height: 38px; }
}
@media (max-width: 390px) {
  .main-nav a { font-size: .77rem; }
  .studio-notes { column-gap: 9px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .drop-zone { transition: none; }
  .primary:hover:enabled, a.primary:hover { transform: none; }
}
