:root {
  --black: #080808;
  --ink: #101010;
  --panel: #151515;
  --panel-2: #1c1c1c;
  --line: #333333;
  --muted: #a3a3a3;
  --paper: #f3f0ea;
  --white: #ffffff;
  --blue: #075bff;
  --blue-soft: #8fb5ff;
  --orange: #ff5a00;
  --green: #39d98a;
  --red: #ff5c5c;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --body: "Manrope", sans-serif;
  --radius: 4px;
  --shell: min(1240px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, select, input[type="checkbox"], .drop-zone { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .5; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--black);
  padding: 10px 16px;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 4px; }
.section-shell { width: var(--shell); margin-inline: auto; }

.site-header, .app-header {
  width: var(--shell);
  min-height: 84px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 1.4px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: var(--white);
  transform: rotate(-5deg);
}
.site-nav, .app-header-actions { display: flex; align-items: center; gap: 24px; }
.site-nav > a:not(.button) { color: var(--muted); font-size: 13px; text-decoration: none; }
.site-nav > a:not(.button):hover { color: var(--white); }

.button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 50px;
  padding: 0 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-small { min-height: 38px; padding: 0 15px; border-color: var(--line); }
.button-primary { background: var(--blue); color: var(--white); }
.button-primary:hover:not(:disabled) { background: #0d50d7; }
.button-secondary { background: transparent; color: var(--white); border-color: var(--line); }
.button-quiet { background: transparent; color: var(--muted); border-color: transparent; min-height: 38px; }
.text-link, .text-button {
  color: var(--paper);
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 5px;
}
.danger-text { color: var(--red); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}
.eyebrow span { color: var(--blue-soft); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .9; letter-spacing: .015em; margin: 0; }
h1 em, h2 em { color: var(--orange); font-style: normal; }

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
  overflow: hidden;
}
.hero h1 { color: var(--white); font-size: clamp(88px, 10.5vw, 156px); }
.hero h1 em { color: var(--blue); }
.hero-lead { max-width: 580px; margin: 28px 0 0; color: #c7c7c7; font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; }
.microcopy { margin: 18px 0 0; color: #737373; font-size: 11px; }
.hero-art { position: relative; min-height: 570px; }
.orbit { position: absolute; border: 1px solid #292929; border-radius: 50%; }
.orbit-one { inset: 8% -20% 2% 8%; }
.orbit-two { inset: 20% -4% 14% 20%; border-color: #132c5e; }
.poster-card { position: absolute; box-shadow: 0 30px 80px rgba(0,0,0,.48); }
.poster-main { width: 330px; top: 50%; left: 47%; transform: translate(-50%, -50%) rotate(3deg); background: var(--panel); padding: 10px; }
.poster-main img { aspect-ratio: 4 / 5; object-fit: cover; }
.poster-label { display: block; padding: 5px 2px 10px; color: var(--muted); font-size: 9px; letter-spacing: .16em; }
.poster-side { top: 13%; right: -1%; width: 210px; padding: 20px; background: var(--orange); color: var(--black); transform: rotate(-4deg); }
.poster-side span { font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.poster-side strong { display: block; margin-top: 10px; font-family: var(--display); font-size: 35px; line-height: .9; }
.approval-stamp { position: absolute; left: 1%; bottom: 8%; width: 130px; height: 130px; display: grid; place-items: center; border: 2px solid var(--blue); border-radius: 50%; color: var(--blue-soft); font-family: var(--display); font-size: 23px; line-height: .8; text-align: center; transform: rotate(-12deg); }

.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); color: var(--black); }
.ticker div { width: max-content; padding: 16px 0; font-family: var(--display); font-size: 28px; letter-spacing: .05em; animation: marquee 24s linear infinite; }
.ticker span { margin: 0 22px; color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

.process { padding-block: 140px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 64px; }
.section-heading h2, .control-copy h2 { color: var(--white); font-size: clamp(64px, 8vw, 108px); }
.process-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.process-grid li { min-height: 300px; padding: 28px 34px 32px 0; border-right: 1px solid var(--line); }
.process-grid li + li { padding-left: 34px; }
.process-grid li:last-child { border-right: 0; }
.step-number { color: var(--blue-soft); font-size: 11px; letter-spacing: .15em; }
.process-grid h3 { margin-top: 78px; color: var(--white); font-size: 50px; }
.process-grid p { max-width: 330px; color: var(--muted); font-size: 14px; }

.control-panel { margin-bottom: 140px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 100px; padding: 80px; background: var(--panel); border-left: 8px solid var(--blue); }
.control-copy > p:not(.eyebrow) { max-width: 600px; color: #bdbdbd; }
.control-copy .button { margin-top: 22px; }
.control-list { border-top: 1px solid var(--line); }
.control-list > div { display: grid; grid-template-columns: 38px 1fr; gap: 8px 18px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.control-list span { grid-row: 1 / 3; color: var(--orange); font-family: var(--display); font-size: 24px; }
.control-list strong { color: var(--white); }
.control-list small { color: var(--muted); }

.site-footer { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-underline-offset: 4px; }

/* Legal */
.legal-shell { width: min(840px, calc(100% - 40px)); margin: 110px auto 130px; }
.legal-shell h1 { color: var(--white); font-size: clamp(74px, 10vw, 128px); margin-bottom: 40px; }
.legal-intro { margin: 0 0 70px; max-width: 700px; color: #c8c8c8; font-size: 20px; }
.legal-shell section { padding: 32px 0; border-top: 1px solid var(--line); }
.legal-shell section h2 { margin-bottom: 20px; color: var(--white); font-family: var(--body); font-size: 16px; font-weight: 700; line-height: 1.3; }
.legal-shell section p, .legal-shell section li { color: #b8b8b8; font-size: 14px; }
.legal-shell a { color: var(--blue-soft); }

/* App */
.app-header { position: sticky; top: 0; z-index: 30; width: 100%; padding-inline: max(20px, calc((100vw - 1240px) / 2)); background: rgba(8,8,8,.94); backdrop-filter: blur(18px); }
.environment-badge { padding: 7px 10px; border: 1px solid #294d94; color: var(--blue-soft); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.composer-shell { width: var(--shell); margin: 70px auto 130px; }
.composer-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 55px; }
.composer-intro h1 { color: var(--white); font-size: clamp(72px, 9vw, 118px); }
.destination { min-width: 310px; display: flex; align-items: center; gap: 14px; padding: 17px; background: var(--panel); border: 1px solid var(--line); }
.destination img, .avatar-skeleton { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #282828; }
.destination div:last-child { display: grid; }
.destination small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.destination strong { color: var(--white); }
.destination span { color: var(--muted); font-size: 11px; }
.composer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 410px; align-items: start; gap: 32px; }
.composer-main { display: grid; gap: 20px; }
.form-section, .result-panel { padding: 34px; background: var(--panel); border: 1px solid #282828; }
.section-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-row > div { display: flex; align-items: baseline; gap: 16px; }
.section-index { color: var(--blue-soft); font-size: 10px; font-weight: 800; }
.section-row h2 { color: var(--white); font-family: var(--body); font-size: 22px; font-weight: 700; line-height: 1.2; }
.section-status { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.drop-zone { min-height: 190px; border: 1px dashed #555; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; transition: background .2s, border-color .2s; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--blue); background: #0e2044; }
.drop-icon { margin-bottom: 15px; color: var(--blue-soft); font-size: 38px; line-height: 1; }
.drop-zone strong { color: var(--white); }
.drop-zone small { margin-top: 6px; color: var(--muted); }
.media-actions { display: flex; justify-content: space-between; gap: 20px; margin-top: 15px; }
.upload-progress { margin-top: 15px; }
.upload-progress > div { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.upload-progress progress { width: 100%; height: 4px; accent-color: var(--blue); }
.media-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.media-card { display: grid; grid-template-columns: 62px 34px 1fr auto; align-items: center; gap: 14px; padding: 10px; background: #101010; border: 1px solid #2b2b2b; }
.media-card img { width: 62px; height: 62px; object-fit: cover; }
.media-card-index { color: var(--blue-soft); font-family: var(--display); font-size: 25px; }
.media-card-copy { min-width: 0; }
.media-card-copy strong { display: block; overflow: hidden; color: var(--white); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.media-card-copy small { color: var(--muted); }
.media-card-actions { display: flex; gap: 5px; }
.icon-button { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--paper); }
.field-hint, .field-error { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.field-error { color: var(--red); }
.field-group + .field-group { margin-top: 25px; }
.field-group label, .option-group legend { display: block; margin-bottom: 10px; color: var(--paper); font-size: 12px; font-weight: 700; }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.label-row span { color: var(--muted); font-size: 10px; }
input[type="text"], textarea, select {
  width: 100%;
  border: 1px solid #3a3a3a;
  border-radius: 0;
  background: #0e0e0e;
  color: var(--white);
  padding: 15px;
}
textarea { min-height: 180px; resize: vertical; }
input[type="text"]::placeholder, textarea::placeholder { color: #656565; }
input[type="text"]:focus, textarea:focus, select:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(7,91,255,.18); }
.option-group { margin: 28px 0 0; padding: 22px 0 0; border: 0; border-top: 1px solid var(--line); }
.switch-row, .check-row { display: grid; grid-template-columns: 42px 1fr; align-items: start; gap: 14px; margin-top: 16px; }
.switch-row input { position: absolute; opacity: 0; }
.switch-control { position: relative; width: 40px; height: 22px; margin-top: 2px; background: #3d3d3d; border-radius: 30px; transition: background .2s; }
.switch-control::after { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; background: var(--white); border-radius: 50%; transition: transform .2s; }
.switch-row input:checked + .switch-control { background: var(--blue); }
.switch-row input:checked + .switch-control::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch-control { outline: 3px solid var(--blue-soft); outline-offset: 3px; }
.switch-row strong, .check-row strong { display: block; color: var(--white); font-size: 12px; }
.switch-row small, .check-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.nested-options { margin: 18px 0 0 56px; padding: 18px; background: #101010; border-left: 3px solid var(--orange); }
.nested-options > p { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.check-row { grid-template-columns: 20px 1fr; }
.check-row input { width: 17px; height: 17px; accent-color: var(--blue); }
.review-summary { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
.review-summary > div { padding: 16px; border-bottom: 1px solid var(--line); }
.review-summary > div:nth-child(odd) { border-right: 1px solid var(--line); }
.review-summary > div:nth-last-child(-n+2) { border-bottom: 0; }
.review-summary span, .review-summary strong { display: block; }
.review-summary span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.review-summary strong { margin-top: 5px; color: var(--white); font-size: 12px; }
.consent-row { display: grid; grid-template-columns: 20px 1fr; gap: 12px; margin-top: 25px; color: #c8c8c8; font-size: 11px; }
.consent-row input { width: 18px; height: 18px; accent-color: var(--blue); }
.consent-row a { color: var(--blue-soft); }
.processing-note { color: var(--muted); font-size: 10px; }
.publish-button { width: 100%; margin-top: 10px; }
.result-panel { display: grid; grid-template-columns: 76px 1fr; gap: 24px; border-left: 5px solid var(--green); }
.result-mark { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid var(--green); border-radius: 50%; color: var(--green); font-family: var(--display); font-size: 35px; }
.result-panel h2 { color: var(--white); font-size: 42px; }
.result-panel p { color: var(--muted); }
.result-panel dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-panel dl div { padding: 12px; background: #0f0f0f; }
.result-panel dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.result-panel dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--white); font-size: 11px; }
.notice { margin-bottom: 22px; padding: 18px; border: 1px solid var(--line); }
.notice p { margin: 4px 0 14px; }
.notice-error { background: #361616; border-color: #732b2b; color: #ffd0d0; }
.notice-info { background: #0d1e3e; border-color: #21478f; }

.preview-sticky { position: sticky; top: 110px; }
.preview-heading { display: flex; justify-content: space-between; align-items: start; }
.preview-heading > span { color: var(--muted); font-size: 10px; }
.phone-preview { width: 340px; margin: 0 auto; overflow: hidden; background: #000; border: 8px solid #282828; border-radius: 32px; box-shadow: 0 35px 80px rgba(0,0,0,.45); }
.phone-top { display: flex; justify-content: space-between; padding: 14px 20px 8px; color: #aaa; font-size: 8px; }
.preview-account { display: flex; align-items: center; gap: 9px; padding: 9px 13px; }
.mini-avatar { width: 27px; height: 27px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--blue)); }
.preview-account div:last-child { display: grid; }
.preview-account strong { font-size: 9px; }
.preview-account small { color: #888; font-size: 7px; }
.preview-canvas { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; background: #111; }
.preview-canvas > img { width: 100%; height: 100%; object-fit: cover; }
.preview-empty { display: grid; justify-items: center; gap: 7px; color: #777; text-align: center; }
.preview-empty span { font-size: 40px; }
.preview-empty strong { color: #aaa; font-size: 11px; }
.preview-empty small { font-size: 8px; }
.preview-arrow { position: absolute; top: 50%; width: 29px; height: 38px; transform: translateY(-50%); border: 0; background: rgba(0,0,0,.55); color: white; font-size: 25px; }
.preview-prev { left: 7px; }
.preview-next { right: 7px; }
.preview-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.preview-dots span { width: 5px; height: 5px; background: rgba(255,255,255,.5); border-radius: 50%; }
.preview-dots span.active { background: var(--blue); }
.preview-caption { min-height: 74px; padding: 11px 13px; font-size: 8px; }
.preview-caption strong { font-size: 9px; }
.preview-caption p { display: -webkit-box; margin: 3px 0 0; overflow: hidden; color: #ddd; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.preview-actions { display: flex; justify-content: space-around; padding: 9px 20px 16px; color: white; }
.preview-disclaimer { color: #777; font-size: 9px; text-align: center; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-block: 90px; }
  .hero-art { min-height: 500px; }
  .control-panel { grid-template-columns: 1fr; gap: 60px; }
  .composer-grid { grid-template-columns: 1fr; }
  .preview-column { grid-row: 1; }
  .preview-sticky { position: static; }
  .phone-preview { width: min(340px, 100%); }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 24px, 1240px); }
  .site-header, .app-header { min-height: 70px; }
  .site-nav > a:not(.button), .environment-badge { display: none; }
  .site-nav { gap: 0; }
  .app-header-actions .button { padding: 0 8px; font-size: 10px; }
  .hero { min-height: 0; gap: 20px; padding: 72px 0 40px; }
  .hero h1 { font-size: 78px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-art { min-height: 430px; }
  .poster-main { width: 250px; }
  .poster-side { width: 160px; right: 0; }
  .approval-stamp { width: 100px; height: 100px; font-size: 18px; }
  .process { padding-block: 90px; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; }
  .section-heading h2, .control-copy h2 { font-size: 62px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li, .process-grid li + li { min-height: auto; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-grid h3 { margin-top: 35px; }
  .control-panel { margin-bottom: 90px; padding: 42px 24px; border-left-width: 5px; }
  .site-footer { align-items: start; flex-direction: column; justify-content: center; padding-block: 32px; }
  .site-footer nav { flex-wrap: wrap; }
  .composer-shell { margin-top: 45px; }
  .composer-intro { align-items: stretch; flex-direction: column; }
  .composer-intro h1 { font-size: 68px; }
  .destination { min-width: 0; }
  .form-section, .result-panel { padding: 22px 18px; }
  .media-card { grid-template-columns: 50px 28px minmax(0, 1fr); }
  .media-card img { width: 50px; height: 50px; }
  .media-card-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .review-summary { grid-template-columns: 1fr; }
  .review-summary > div, .review-summary > div:nth-child(odd), .review-summary > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .review-summary > div:last-child { border-bottom: 0; }
  .result-panel { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
