:root {
  color-scheme: light;
  --paper: #faf6ef;
  --surface: #fffdf8;
  --ink: #231d1a;
  --muted: #64554d;
  --line: #e9ded1;
  --brand: #a53c25;
  --brand-dark: #7e2b1c;
  --soft: #f5e7dd;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
:focus-visible { outline: 3px solid #d47c39; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; line-height: 1.02; }
h2 { font-size: clamp(2.15rem, 4vw, 3.25rem); }
h3 { font-size: 1.15rem; letter-spacing: -.025em; }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.brand { font-size: 1.25rem; font-weight: 780; display: inline-flex; gap: 10px; align-items: center; letter-spacing: -.055em; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff6e8; background: var(--brand); font-size: .85rem; }
nav { display: flex; align-items: center; gap: clamp(16px, 4vw, 40px); font-size: .94rem; font-weight: 600; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65em; padding: 11px 17px; border: 1px solid transparent; border-radius: 10px; background: var(--brand); color: #fffaf4; font-size: .9rem; font-weight: 700; line-height: 1.35; text-align: center; }
.button:hover:not(:disabled) { background: var(--brand-dark); }
.button-small { padding: 9px 13px; }
.button-light { background: #fff2dc; color: #44251b; }
.button-light:hover:not(:disabled) { background: white; }
.button-subtle { background: var(--surface); color: var(--ink); border-color: #ded1c2; }
.button-subtle:hover:not(:disabled) { background: var(--soft); }
.hero { margin-top: 32px; display: grid; grid-template-columns: 1.25fr 1fr; min-height: 390px; background: radial-gradient(ellipse at 81% 74%, #78503a, transparent 53%), #34221e; border-radius: 24px; overflow: hidden; color: #fff7e8; }
.hero-copy { align-self: center; position: relative; z-index: 1; padding: 45px 0 51px clamp(25px, 5vw, 66px); }
.hero-label { display: inline-flex; gap: 8px; align-items: center; font-weight: 650; color: #f1c9a7; font-size: .86rem; }
.hero-label > span { width: 8px; height: 8px; border-radius: 50%; background: #ef9763; }
h1 { margin: 17px 0; font-size: clamp(2.8rem, 5.2vw, 4.7rem); }
.hero-description { color: #f9e4d2; max-width: 38ch; font-size: 1rem; margin-bottom: 24px; }
.hero-visual { position: relative; min-height: 330px; }
.hero-frame { position: absolute; display: block; width: clamp(111px, 16vw, 185px); aspect-ratio: 9/16; top: 50%; left: 50%; overflow: hidden; border-radius: 16px; outline: 1px solid #fff4dd70; border: 5px solid #27211f; background: #95634a; box-shadow: 0 18px 35px #21100c60; }
.hero-back { transform: translate(-105%, -46%) rotate(-14deg) scale(.8); }
.hero-side { transform: translate(2%, -51%) rotate(13deg) scale(.83); }
.hero-front { z-index: 1; transform: translate(-55%, -50%) rotate(-3deg); }
.hero-frame > .sample, .viewfinder > .sample { width: 180%; }
.hero-time, .view-time, .format-tag, .frame-format { position: absolute; border-radius: 6px; padding: 2px 7px; background: #221612e6; color: #fff7eb; font-size: .7rem; font-family: ui-monospace, monospace; }
.hero-time { left: 10px; bottom: 10px; }
.frame-format { right: 9%; bottom: 13%; background: #fff1db; color: #432b20; transform: rotate(5deg); font-size: .8rem; }
.sample { background: url("/images/galeria.png") 0 0 / 200% 200% no-repeat; display: block; position: absolute; top: 50%; left: 50%; width: 100%; aspect-ratio: 1; translate: -50% -50%; }
.sample-garrafa { background-position: 100% 0; }
.sample-luminaria { background-position: 0 100%; }
.sample-parede { background-position: 100% 100%; }
.section { margin-top: 58px; scroll-margin-top: 28px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 19px; }
.section-heading p { color: var(--muted); margin-top: 9px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.card.selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.card-media { aspect-ratio: 1.52; position: relative; overflow: hidden; margin: 7px 7px 0; border-radius: 9px; background: #dbb69e; }
.play-card { border: 1px solid #ffefd4b0; color: #fff9eb; position: absolute; right: 10px; bottom: 10px; border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; background: #2b1a15e0; }
.play-card:hover { background: var(--brand-dark); }
.card-body { padding: 11px 12px 13px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.card-group { font-size: .72rem; color: var(--brand-dark); font-weight: 700; }
.card h3 { margin: 2px 0 4px; }
.card p { font-size: .85rem; color: var(--muted); line-height: 1.4; margin-bottom: 10px; flex: 1; }
.card .button { min-height: 33px; padding: 5px 9px; }
.studio-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 17px; align-items: start; }
.account-grid { grid-template-columns: minmax(0, 510px); }
.draft-status { margin: -9px 0 12px; }
.panel { border: 1px solid var(--line); border-radius: 16px; padding: clamp(15px, 3vw, 26px); background: var(--surface); min-width: 0; }
.panel > h3 { margin-bottom: 12px; }
label { display: block; font-size: .88rem; font-weight: 650; margin: 13px 0 5px; }
label small { font-weight: 450; color: var(--muted); }
input:not([type=file]), select, textarea { width: 100%; background: #fffefa; color: var(--ink); border: 1px solid #d7cabc; border-radius: 8px; padding: 8px 10px; min-width: 0; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #786b60; }
.drop { display: grid; gap: 3px; justify-items: center; padding: 16px 9px; border: 1px dashed #ba8f74; border-radius: 10px; background: #fbefe4; cursor: pointer; text-align: center; overflow-wrap: anywhere; }
.drop.dragging, .drop:hover, .drop:has(+ input:focus-visible) { border-color: var(--brand-dark); background: var(--soft); outline: 2px solid var(--brand); }
.drop-icon { border-radius: 9px; background: var(--soft); display: grid; place-items: center; width: 34px; height: 34px; font-weight: 740; font-size: 1.2rem; color: var(--brand-dark); }
.file-input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.duration-row { display: flex; align-items: center; gap: 15px; margin-top: 12px; }
.duration-row label { margin: 0; }
.duration-row select { width: auto; }
.note, .feedback { color: var(--muted); font-size: .86rem; margin-top: 8px; }
.feedback[data-error="true"], .note[data-error="true"] { color: #a12c17; font-weight: 650; }
.voice-count { margin-top: 0; text-align: right; }
.full { width: 100%; margin-top: 13px; }
.preview { display: grid; justify-items: center; }
.preview-heading { text-align: center; margin-bottom: 12px; }
.preview-heading .note { margin-top: 2px; }
.viewfinder { width: min(175px, 100%); aspect-ratio: 9 / 16; position: relative; overflow: hidden; border-radius: 15px; outline: 1px solid #573e31; border: 4px solid #382822; background: #2b201b; margin-bottom: 12px; }
.preview-image.user-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.format-tag { top: 7px; right: 7px; }
.view-time { left: 7px; bottom: 7px; }
.timeline { display: grid; gap: 5px; list-style: none; padding: 0; margin: 15px 0 0; width: 100%; }
.timeline li { padding: 5px 7px; border-radius: 6px; background: #faf0e7; font-size: .79rem; line-height: 1.35; }
.timeline time { font-weight: 750; color: var(--brand-dark); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.text-link { color: var(--brand-dark); font-size: .9rem; font-weight: 650; }
details { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
summary { font-size: .9rem; font-weight: 700; }
.connect-steps { padding-left: 21px; margin: 10px 0; font-size: .88rem; }
.connect-steps li + li { margin-top: 5px; }
.flow-panel { display: flex; align-items: center; justify-content: space-between; gap: 17px; padding: 26px; border-radius: 16px; background: #f6e8d9; }
.flow-panel h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
.flow-panel p { margin-top: 8px; color: var(--muted); }
.flow-actions { flex-shrink: 0; justify-content: flex-end; }
.settings { list-style: none; padding: 0; margin: 13px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.settings li { padding: 4px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: .79rem; font-weight: 650; }
.publish-steps { padding: 0 0 0 20px; margin: 13px 0; }
.publish-steps li + li { margin-top: 6px; }
#save-video { margin-top: 10px; }
#video-player { display: block; width: min(100%, 270px); max-height: 440px; margin: 14px auto 0; background: var(--ink); border-radius: 10px; }
.footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 21px 0 30px; margin-top: 55px; }
[data-motion="push"] { --motion: push; }
[data-motion="macro"] { --motion: macro; }
[data-motion="slide"] { --motion: slide; }
[data-motion="reveal"] { --motion: reveal; }
[data-motion="rise"] { --motion: rise; }
[data-motion="tilt"] { --motion: tilt; }
[data-motion="diagonal"] { --motion: diagonal; }
[data-duration="10"] { --duration: 10s; }
.playing > :is(.sample,.preview-image) { animation: var(--motion) var(--duration, 8s) ease-in-out both; }
@keyframes push { 0%, 15% { transform: scale(1); } 80%, 100% { transform: scale(1.15); } }
@keyframes macro { 0%, 16% { transform: scale(1); } 76%, 100% { transform: scale(1.32); } }
@keyframes slide { 0%, 15% { transform: none; } 38% { transform: scale(1.13); } 81%, 100% { transform: scale(1.15) translateX(-4%); } }
@keyframes reveal { 0%, 15% { transform: none; } 53% { transform: scale(1.22); } 80%, 100% { transform: none; } }
@keyframes rise { 0%, 15% { transform: none; } 43% { transform: scale(1.14); } 85%, 100% { transform: scale(1.16) translateY(4%); } }
@keyframes tilt { 0%, 15% { transform: none; } 60% { transform: scale(1.12) rotate(3deg); } 85%, 100% { transform: scale(1.06); } }
@keyframes diagonal { 0%, 14% { transform: none; } 42% { transform: scale(1.15); } 76% { transform: scale(1.18) translate(-3%, 3%); } 100% { transform: scale(1.09); } }
@media (max-width: 950px) {
  .flow-panel { display: block; }
  .flow-actions { justify-content: start; }
}
@media (max-width: 740px) {
  .container { width: calc(100% - 32px); }
  .top-inner { min-height: 61px; }
  .top-actions { gap: 8px; }
  nav { display: none; }
  .hero { margin-top: 19px; grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 27px 22px 4px; }
  .hero-visual { min-height: 237px; }
  .hero-frame { width: 113px; }
  .hero-label { font-size: .8rem; }
  .section { margin-top: 38px; }
  .section-heading { flex-wrap: wrap; align-items: start; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .studio-grid { grid-template-columns: 1fr; }
  .footer { margin-top: 36px; }
}
@media (max-width: 410px) {
  .top-actions [data-studio-link] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
