:root {
  color-scheme: dark;
  --ink: #171513;
  --ink-soft: #211d19;
  --paper: #f7eddd;
  --muted: #c7baac;
  --line: #443a32;
  --accent: #e6f878;
  --coral: #ff9979;
  --earth: #a5472d;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Arial Black", Arial, Helvetica, sans-serif;
  font-family: var(--sans);
  font-size: 16px;
  background: var(--ink);
  color: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }
[id] { scroll-margin-top: 24px; }

.wrap { width: min(100% - 88px, 1240px); margin-inline: auto; }
.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.preview-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: #201b15;
  background: #e9c4a5;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .045em;
  text-align: center;
}
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.54rem; font-weight: 850; letter-spacing: -.075em; white-space: nowrap; }
.wordmark img { width: 35px; height: 35px; flex: none; }
.wordmark-dot { color: var(--accent); }
.header-inner nav { display: flex; gap: 34px; color: var(--muted); font-size: .9rem; font-weight: 620; }
.header-inner nav a:hover, .site-footer a:hover { color: var(--accent); }
.header-action { display: inline-flex; align-items: center; gap: 11px; border: 1px solid #68584a; border-radius: 10px; padding: 9px 13px; font-size: .85rem; font-weight: 700; }
.header-action:hover { border-color: var(--accent); color: var(--accent); }

.hero {
  padding: clamp(52px, 6.3vw, 98px) 0 clamp(54px, 6.1vw, 89px);
  background: radial-gradient(ellipse at 87% 6%, #4a2a23 0, transparent 48%), var(--ink);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(30px, 5.2vw, 76px); }
.eyebrow { display: flex; align-items: center; gap: 9px; font-family: ui-monospace, "Courier New", monospace; font-size: .72rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.hero-eyebrow { color: #f3b698; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.slash { color: #ae826f; }
h1, h2 { font-family: var(--display); font-weight: 900; }
.hero h1 { margin-top: 19px; font-size: clamp(3.65rem, 6.5vw, 6.8rem); line-height: .91; letter-spacing: -.078em; }
.hero h1 span { color: var(--coral); }
.hero-summary { max-width: 390px; margin-top: 23px; color: #ddd0c0; font-size: clamp(1rem, 1.42vw, 1.23rem); line-height: 1.52; }
.hero-summary strong { color: var(--paper); font-weight: 800; }
.hero-prices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.hero-actions { margin-top: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 17px; border: 1px solid transparent; border-radius: 11px; font-size: .95rem; font-weight: 800; }
.button-primary { background: var(--accent); color: #1d2111; }
.button-primary:hover { background: #f0ffa4; }
.button-primary span { font-size: 1.18rem; }
.price { display: grid; min-width: 128px; gap: 2px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--ink-soft); }
.price strong { font-size: 1.15rem; letter-spacing: -.035em; }
.price small, .hero-detail { color: var(--muted); font-size: .8rem; }
.hero-detail { margin-top: 13px; }
.demo { min-width: 0; }
.demo-image { position: relative; overflow: hidden; border: 1px solid #a67559; border-radius: 17px; background: #624638; box-shadow: 0 18px 52px #100b0866; }
.demo-image img { aspect-ratio: 3 / 2; object-fit: cover; }
.demo-tag, .demo-arrow, .scene-number { position: absolute; display: grid; place-items: center; }
.demo-tag { top: 12px; padding: 5px 10px; background: #171513e8; color: var(--paper); border-radius: 99px; font-size: .69rem; font-weight: 750; }
.demo-before { left: 12px; }
.demo-after { right: 12px; background: var(--accent); color: var(--ink); }
.demo-watermark { position: absolute; right: 12px; bottom: 12px; padding: 4px 7px; border-radius: 4px; background: #171513d9; color: #fff7eb; font-size: clamp(.61rem, .94vw, .77rem); font-weight: 750; letter-spacing: .015em; }
.demo-arrow { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 39px; height: 39px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.2rem; font-weight: 800; box-shadow: 0 2px 12px #23170f4d; }
.demo figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 10px; margin-top: 13px; color: #d8c5b3; font-family: ui-monospace, "Courier New", monospace; font-size: .66rem; letter-spacing: .045em; text-transform: uppercase; }
.demo figcaption span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.demo figcaption b { color: var(--accent); }
.caption-rule { width: 12px; height: 1px; background: #a08370; }

.light { color-scheme: light; background: var(--paper); color: var(--ink); }
.collection, .steps, .faq { padding-block: clamp(52px, 6.8vw, 92px); }
.section-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 34px; }
.section-index { margin-bottom: 13px; }
.index-number { display: inline-grid; place-items: center; width: 27px; height: 21px; border: 1px solid currentColor; border-radius: 4px; font-size: .65rem; letter-spacing: 0; }
.light .section-index { color: #75422f; }
h2 { font-size: clamp(2.3rem, 5.6vw, 5rem); line-height: .97; letter-spacing: -.073em; }
h2 > span { color: var(--coral); }
.light h2 > span { color: var(--earth); }
.section-summary { max-width: 274px; color: #5f4a3c; line-height: 1.5; }

.collection-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.collection-choice { display: flex; align-items: center; gap: 11px; min-height: 66px; padding: 10px 13px; border: 1px solid #c5af98; border-radius: 11px; background: #fff7eb; color: var(--ink); text-align: left; }
.collection-choice:hover { border-color: var(--earth); }
.collection-choice[aria-pressed="true"] { border-color: var(--ink); background: var(--ink-soft); color: var(--paper); }
.choice-number { display: grid; place-items: center; flex: none; width: 30px; height: 28px; border: 1px solid #c5af98; border-radius: 5px; color: #75422f; font: 750 .7rem ui-monospace, "Courier New", monospace; }
.collection-choice[aria-pressed="true"] .choice-number { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.choice-label { display: grid; gap: 3px; }
.choice-label strong { font-size: clamp(.85rem, 1.55vw, 1.05rem); line-height: 1.12; letter-spacing: -.025em; }
.choice-label small { color: #5f4a3c; font-size: .73rem; line-height: 1.12; }
.collection-choice[aria-pressed="true"] small { color: var(--muted); }
.panel-head { margin-bottom: 17px; }
.panel-head h3 { font-size: clamp(1.45rem, 3.4vw, 2.35rem); line-height: 1.1; letter-spacing: -.055em; }
.panel-head p { margin-top: 5px; color: #5f4a3c; font-size: .93rem; line-height: 1.5; }

.scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.05vw, 26px); }
.scene-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 825px; }
.scene-card { display: grid; align-content: start; overflow: hidden; padding: 0; text-align: left; color: var(--ink); background: #fff7eb; border: 1px solid #c5af98; border-radius: 14px; }
.scene-card:hover { border-color: var(--earth); }
.scene-art { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4; background-color: #825347; }
.scene-art.split { background-size: 200% 100%; background-position: right top; }
.scene-art.crop-left { background-position: left top; }
.scene-art.praia { background-image: url("assets/praia-neon-v2.webp"); }
.scene-art.retro-art { background-image: url("assets/retro-80.webp"); }
.scene-art.manga-art { background-image: url("assets/manga.webp"); }
.scene-art img { width: 100%; height: 100%; object-fit: cover; }
.scene-number { top: 12px; left: 12px; min-width: 30px; height: 24px; padding-inline: 5px; border-radius: 5px; background: #201913ed; color: #fcf0de; font-family: ui-monospace, "Courier New", monospace; font-size: .72rem; }
.scene-caption { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; gap: 8px; min-height: 84px; padding: 13px 15px; }
.scene-name { display: block; font-size: clamp(.97rem, 1.55vw, 1.25rem); line-height: 1.13; letter-spacing: -.036em; }
.scene-description { display: block; margin-top: 5px; font-size: .78rem; line-height: 1.35; color: #644f42; }
.scene-arrow { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #c7b09b; border-radius: 50%; font-weight: 750; }
.scene-card:hover .scene-arrow { background: var(--accent); border-color: #6c752e; }

.steps { background: var(--ink-soft); }
.steps .section-index { color: #edb599; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; }
.step-grid li { border-top: 1px solid #655042; padding: 17px 8px 0 0; }
.step-number { color: var(--accent); font-family: ui-monospace, "Courier New", monospace; font-size: .78rem; font-weight: 700; }
.step-grid h3 { margin-top: 11px; font-size: 1.17rem; letter-spacing: -.035em; }
.step-grid p { margin-top: 7px; max-width: 290px; color: var(--muted); font-size: .94rem; line-height: 1.56; }
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: clamp(24px, 5vw, 75px); }
.faq h2 { font-size: clamp(2.3rem, 4.9vw, 4.25rem); }
.questions details { border-top: 1px solid #c6af98; }
.questions details:last-child { border-bottom: 1px solid #c6af98; }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 2px; cursor: pointer; font-weight: 730; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; flex: none; font-size: 1.25rem; color: #874629; }
.questions details[open] summary::after { content: "−"; }
.questions p { margin: 0 18px 17px 2px; color: #5f4a3c; font-size: .94rem; line-height: 1.55; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 20px; padding-block: 24px; }
.site-footer p, .site-footer .footer-inner > a:last-child { color: var(--muted); font-size: .83rem; }

dialog { width: min(100% - 32px, 480px); max-height: calc(100% - 32px); overflow: auto; padding: 25px; border: 1px solid #876652; border-radius: 17px; background: var(--ink-soft); color: var(--paper); box-shadow: 0 18px 80px #0008; }
dialog::backdrop { background: #12100dda; }
body:has(dialog[open]) { overflow: hidden; }
dialog h2 { margin: 9px 28px 0 0; font-size: clamp(2rem, 8vw, 2.9rem); }
.close-dialog { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; padding: 0; border: 1px solid #806656; border-radius: 50%; background: transparent; color: var(--paper); font-size: 1.35rem; }
.dialog-kicker { color: var(--coral); }
.order-collection { margin-top: 7px; color: var(--muted); font-size: .88rem; }
.order-versions { min-width: 0; margin: 16px 0 0; padding: 0; border: 0; }
.order-versions legend { padding: 0; margin-bottom: 8px; font-size: .86rem; font-weight: 750; }
.order-version { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 54px; padding: 8px 10px; border: 1px solid #655042; border-radius: 9px; cursor: pointer; }
.order-version + .order-version { margin-top: 7px; }
.order-version:has(input:checked) { border-color: var(--accent); background: #2b2b20; }
.order-version input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.order-version-copy { display: grid; gap: 2px; }
.order-version-copy strong, .order-version-price { font-size: .85rem; }
.order-version-copy small { color: var(--muted); font-size: .73rem; line-height: 1.34; }
.order-version-price { white-space: nowrap; }
.order-details { display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; padding-bottom: 13px; border-bottom: 1px solid var(--line); font-size: .88rem; }
.order-details span { color: var(--muted); }
.order-details output { white-space: nowrap; font-weight: 800; }
.order-note { margin: 16px 0; color: var(--muted); font-size: .9rem; line-height: 1.52; }
.order-note strong { color: var(--paper); }
.order-note p { margin-top: 4px; }
.dialog-action { width: 100%; }

@media (max-width: 1000px) {
  .wrap { width: min(100% - 58px, 1240px); }
  .hero-grid { gap: 25px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 61px; }
  .header-inner nav { display: none; }
  .hero { padding-top: 39px; }
  .hero-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 30px; }
  .hero h1 { font-size: clamp(3.5rem, 12vw, 5.8rem); }
  .hero-summary { margin-top: 15px; }
  .hero-prices { margin-top: 19px; }
  .hero-actions { margin-top: 14px; }
  .section-head { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 23px; }
  .section-summary { max-width: 400px; }
  .collection-picker { gap: 7px; margin-bottom: 21px; }
  .collection-choice { min-height: 56px; padding: 7px 8px; }
  .choice-number { display: none; }
  .choice-label small { font-size: .69rem; }
  .step-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 23px; }
  .step-grid p { max-width: 480px; }
}

@media (max-width: 560px) {
  .scene-grid, .scene-grid-pair { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .scene-card { grid-template-columns: 112px minmax(0, 1fr); align-content: stretch; }
  .scene-art { aspect-ratio: 3 / 4; }
  .scene-caption { padding-inline: 10px; }
  .scene-name { font-size: 1rem; }
  .scene-number { top: 7px; left: 7px; min-width: 24px; height: 19px; font-size: .63rem; }
  .demo-arrow { width: 31px; height: 31px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.dialog-back { display: flex; width: 100%; min-height: 38px; margin-top: 6px; color: var(--muted); background: transparent; }
.dialog-back:hover { color: var(--paper); }
.flow-shell { width: min(100% - 36px, 760px); margin-inline: auto; padding: 25px 0 64px; }
.flow-shell > .wordmark { margin-bottom: 26px; }
.flow-card { padding: clamp(20px, 4.8vw, 38px); border: 1px solid var(--line); border-radius: 17px; background: var(--ink-soft); }
.flow-kicker { margin-bottom: 12px; color: var(--coral); }
.flow-card h1 { font-size: clamp(2.15rem, 7vw, 3.55rem); line-height: .98; letter-spacing: -.07em; }
.flow-card p { margin-top: 12px; color: var(--muted); line-height: 1.53; }
.flow-card .flow-kicker { margin-top: 0; color: var(--coral); }
.flow-card .flow-order { color: var(--paper); font-weight: 730; }
.flow-card form { margin-top: 19px; }
.flow-card label { display: block; font-size: .9rem; font-weight: 750; }
.flow-card input[type=file] { display: block; width: 100%; margin: 8px 0 11px; padding: 10px; border: 1px dashed #8b6d59; border-radius: 9px; color: var(--paper); font: inherit; }
.flow-card input[type=file]::file-selector-button { margin-right: 8px; padding: 7px 9px; border: 0; border-radius: 6px; background: var(--paper); color: var(--ink); font-weight: 730; cursor: pointer; }
.flow-card .flow-fine { font-size: .79rem; line-height: 1.4; }
.flow-card .flow-warning { color: #ffb296; font-weight: 700; }
.flow-card > .button, .flow-card form > .button { margin-top: 17px; }
.receipts { display: grid; gap: 12px; margin-top: 20px; }
.receipt { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.receipt h2 { font-family: var(--sans); font-size: 1rem; letter-spacing: -.02em; line-height: 1.28; }
.receipt p { margin-top: 4px; font-size: .8rem; }
.receipt .button { min-height: 40px; padding: 7px 10px; }
.receipt-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.receipt-actions details { font-size: .82rem; color: var(--muted); }
.receipt-actions summary { cursor: pointer; }
.receipt-actions form { margin-top: 6px; }
.receipt-actions form .button { margin: 0; }
.button-outline { background: transparent; border-color: #876652; color: var(--paper); }

.flow-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.flow-contacts legend { padding: 0; margin-bottom: 9px; font-size: .96rem; font-weight: 750; }
.flow-contacts input { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 9px 10px; border: 1px solid #876652; border-radius: 8px; color: var(--paper); background: var(--ink); font: inherit; }
.flow-contacts input::placeholder { color: var(--muted); }
.receipt p { overflow-wrap: anywhere; }
.receipt p strong { color: var(--paper); }
@media (max-width: 560px) {
  .flow-contacts { grid-template-columns: minmax(0, 1fr); }
}

.flow-fields { display: grid; gap: 12px; }
.flow-fields input:not([type=checkbox]) { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 9px 10px; border: 1px solid #876652; border-radius: 8px; color: var(--paper); background: var(--ink); font: inherit; }
.flow-fields .button { justify-self: start; }
.flow-card .flow-check { display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; color: var(--paper); font-weight: 550; line-height: 1.45; }
.flow-check input { margin: .2em 0 0; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--coral); }
.flow-settings { margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.flow-settings summary { cursor: pointer; font-weight: 750; }
.flow-settings p { overflow-wrap: anywhere; }
