/* Product flow: reuse the editorial palette, keep controls practical. */
[hidden] { display: none !important; }
select, textarea { font: inherit; color: var(--ink); }
select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.button:disabled { opacity: .58; cursor: not-allowed; }
.button:disabled:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.hero h1 { font-size: clamp(50px, 5.7vw, 86px); }
.hero-copy .micro { margin-top: 20px; }
.studio-section { background: var(--paper); }
.studio-layout, .pack-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.studio-controls { display: grid; gap: 16px; }
.field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
select, textarea { width: 100%; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.custom-file-picker { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .15s ease; }
.custom-file-picker:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.custom-file-picker.drag-over { border-color: var(--accent); background: var(--surface); }
.file-picker-button { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; white-space: nowrap; user-select: none; transition: background .15s ease, border-color .15s ease; }
.file-picker-button:hover { background: var(--paper); border-color: var(--ink); }
.file-chosen-text { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.visually-hidden-file { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.option-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.source-preview { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.source-preview img { max-height: 470px; object-fit: contain; }
.source-preview > div { min-height: 320px; display: flex; flex-direction: column; justify-content: center; padding: 40px; gap: 16px; }
.source-preview figcaption { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.studio-controls .form-status { margin: 0; min-height: 28px; overflow-wrap: anywhere; color: var(--muted); }
.studio-controls .text-link { justify-self: start; border: 0; background: transparent; min-height: 44px; }
.pack-offer { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.pack-offer .plan-type { margin-bottom: 24px; }
.pack-offer ul { margin-block: 24px; }
.pack-offer .micro { margin-top: 16px; }
.pack-explanation { padding-top: 24px; display: grid; gap: 24px; }
.pack-explanation .text-link { justify-self: start; }
.test-section { background: var(--dark); color: #f5f3eb; }
.test-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; align-items: start; }
.test-copy { position: sticky; top: 130px; }
.test-copy .kicker { color: #c6b08a; }
.test-copy > p:not(.kicker) { color: #c0c5b9; max-width: 430px; margin-top: 24px; }
.test-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.test-facts p { padding-top: 16px; border-top: 1px solid #62685e; }
.test-facts strong, .test-facts span { display: block; }
.test-facts strong { font-family: var(--display); font-size: 18px; font-weight: 500; }
.test-facts span { color: #c0c5b9; font-size: 13px; margin-top: 3px; }
.waitlist-form { background: #ffffff0b; border: 1px solid #62685e; border-radius: var(--radius); padding: 34px; }
.waitlist-form input[type=email], .waitlist-form input[type=text], .waitlist-form select { width: 100%; min-width: 0; color: #f5f3eb; background: #ffffff0b; border: 1px solid #62685e; border-radius: var(--radius); padding: 13px; }
.waitlist-form select option { color: #26292b; background: #fff; }
.interest-field { display: grid; gap: 9px; border: 0; border-top: 1px solid #62685e; border-bottom: 1px solid #62685e; padding: 20px 0; margin: 22px 0 0; }
.interest-field legend { font-size: 14px; font-weight: 600; padding: 0 0 10px; }
.interest-field label { display: flex; align-items: center; gap: 10px; color: #d2d6cb; font-size: 14px; min-height: 36px; }
.interest-field input { width: 18px; height: 18px; accent-color: #e0be8b; }
.waitlist-form .support-consent { color: #d2d6cb; }
.waitlist-form .button { background: #e0be8b; color: #242924; border-color: #e0be8b; margin-top: 6px; }
.waitlist-form .form-status { color: #c0c5b9; min-height: 26px; margin-top: 14px; }
.waitlist-form .form-status.error { color: #ffc6af; }
.waitlist-form .form-status.success { color: #d5e8b3; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.early-access .button { margin-block: 24px 16px; }
.support-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 11; min-height: 48px; box-shadow: 0 5px 25px #0002; }
#supportDialog { width: min(580px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 36px; overflow-y: auto; }
#supportDialog h2 { font-size: 36px; margin-bottom: 16px; }
#supportDialog > .micro { margin-block: 12px; }
#supportDialog .form-status { min-height: 0; margin-block: 16px 8px; }
.support-log { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.support-message { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; margin-top: 10px; background: var(--surface); border-radius: 5px; font-size: 14px; }
#supportForm { margin-top: 20px; }
#supportMessage { resize: vertical; min-height: 90px; max-height: 250px; }
.support-consent { display: flex; gap: 10px; align-items: flex-start; margin-block: 16px; font-size: 12px; color: var(--muted); }
.support-consent input { flex: 0 0 auto; margin-top: 4px; width: 18px; height: 18px; }
#supportPrivacy { color: var(--ink); min-height: 44px; }
@media (max-width: 900px) {
  .studio-layout, .pack-layout, .test-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .test-copy { position: static; }
  .hero h1 { font-size: clamp(46px, 10.5vw, 76px); }
  .source-preview > div { min-height: 240px; padding: 28px; }
  .pack-explanation { padding-top: 0; }
  .support-launcher { right: 16px; bottom: 16px; }
  #supportDialog { padding: 28px 20px; }
  #supportDialog h2 { font-size: 30px; }
  .footer { padding-bottom: 90px; }
}
@media (max-width: 420px) {
  .option-fields { grid-template-columns: 1fr; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
}
.lang-toggle { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--ink); font-family: var(--body); font-size: 13px; font-weight: 600; min-height: 38px; padding: 0 10px; cursor: pointer; letter-spacing: .05em; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.lang-toggle:hover { background: var(--surface); border-color: var(--ink); }
.footer-lang-trigger { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.footer-lang-trigger:hover { color: var(--accent); }
