/* Clearance Check — Real Audio brand "sketched" system.
   Everything in the COPIED block is verbatim (the subset this page uses) from real-audio-creator
   src/index.css (tokens, surface, type scale, box / button / input classes).
   Do not edit those rules here; change them in Creator and re-copy.
   Only the PAGE LAYOUT block at the bottom is local, and it uses the proven
   layout values from real-audio-creator docs/design-system.md. */

@import url('https://fonts.googleapis.com/css2?family=Sometype+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* ── COPIED from real-audio-creator src/index.css ─────────────────────── */

:root {
  --brand-accent: 10.65 76.47% 56.67%;

  /* Design system tokens */
  --color-red: #E55A3C;
  --color-cream: #FFF8E0;
  --color-black: #1A1A1A;
  --color-gray-mid: #6B6258;
  --color-gray-light: #C7C0B5;
  --color-placeholder: rgba(229, 90, 60, 0.4);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --font-display: 'Patrick Hand', cursive;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Sometype Mono', monospace;
}

html {
  overflow-x: clip;
}

body {
  background-color: var(--color-cream);
  color: var(--color-black);
  font-family: var(--font-body);
  overflow-x: clip;
}

.surface-sketched {
  font-family: var(--font-display); /* Patrick Hand */
  background-color: #FFF8E0;
  background-image:
    linear-gradient(rgba(255, 248, 224, 0.75), rgba(255, 248, 224, 0.75)),
    url('/brand-assets/textures/paper-texture-linen.webp');
  background-repeat: repeat;
  background-size: 600px;
}

.text-h1 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
}




.text-label {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.text-caption {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .text-h1 { font-size: 64px; }
}

.box-sketched-heavy {
  border-image-source: url('/brand-assets/frames/frame-card-heavy-black.webp');
  border-image-slice: 120 fill;
  border-image-repeat: stretch;
  border-width: 28px;
  border-style: solid;
  padding: var(--space-6);
  background: transparent;
}

.box-sketched-light {
  border-image-source: url('/brand-assets/frames/frame-card-light-black.webp');
  border-image-slice: 100 fill;
  border-image-repeat: stretch;
  border-width: 18px;
  border-style: solid;
  padding: var(--space-4);
  background: transparent;
}

.box-sketched-light-red {
  border-image-source: url('/brand-assets/frames/frame-card-light-red.webp');
  border-image-slice: 100 fill;
  border-image-repeat: stretch;
  border-width: 18px;
  border-style: solid;
  padding: var(--space-4);
  background: transparent;
}

.btn-default,
.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: var(--space-3) var(--space-6);
  background: transparent;
  cursor: pointer;
  transition: transform 120ms ease, color 120ms ease, border-image-source 120ms ease, opacity 120ms ease, filter 120ms ease;
  user-select: none;
}

.btn-default:focus-visible,
.btn-primary-cta:focus-visible {
  outline: 2px solid hsl(var(--brand-accent));
  outline-offset: 3px;
}

.btn-default:disabled,
.btn-primary-cta:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-default {
  color: var(--color-black);
  border-image-source: url('/brand-assets/frames/frame-button-heavy-black.webp');
  border-image-slice: 90 fill;
  border-image-repeat: stretch;
  border-width: 14px;
  border-style: solid;
}

.btn-default:hover {
  color: var(--color-red);
  border-image-source: url('/brand-assets/frames/frame-button-heavy-red.webp');
}

.btn-default:active {
  transform: scale(0.98);
}

.btn-primary-cta {
  color: var(--color-red);
  border-image-source: url('/brand-assets/frames/frame-button-heavy-red.webp');
  border-image-slice: 90 fill;
  border-image-repeat: stretch;
  border-width: 14px;
  border-style: solid;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-primary-cta:hover {
  transform: scale(1.02);
  filter: brightness(0.92);
}

.btn-primary-cta:active {
  transform: scale(0.98);
  filter: brightness(0.88);
}




.input-text {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-black);
  background: transparent;
  border-image-source: url('/brand-assets/frames/frame-search-heavy-black.webp');
  border-image-slice: 140 fill;
  border-image-repeat: stretch;
  border-width: 22px;
  border-style: solid;
  padding: var(--space-3) var(--space-4);
  outline: none;
  transition: border-image-source 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.input-text::placeholder {
  color: var(--color-placeholder);
  opacity: 1;
}

.input-text:focus {
  filter: brightness(0) saturate(100%) invert(45%) sepia(95%) saturate(2400%) hue-rotate(346deg) brightness(98%) contrast(96%);
}

.input-text:focus,
.input-text:focus-visible {
  outline: none;
  color: var(--color-red);
}

.input-text.error {
  border-image-source: url('/brand-assets/frames/frame-search-heavy-red.webp');
  border-image-slice: 210 fill;
  border-width: 24px;
  color: var(--color-red);
}

.input-text:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Login form treatment (src/index.css .my-login-modal / .my-login-buttons,
   used by src/pages/Login.tsx): the site's existing form-in-a-frame. */
.my-login-modal {
  border-image-source: url('/brand-assets/frames/frame-search-heavy-black.webp') !important;
  border-image-slice: 140 !important;
  border-width: 12px !important;
}

.my-login-modal:hover {
  border-image-source: url('/brand-assets/frames/frame-search-heavy-black.webp') !important;
  transform: none !important;
}

.my-login-modal .input-text {
  border-image-slice: 140 !important;
  border-width: 9px 12px 9px 12px !important;
  padding: 4px 4px !important;
}

.my-login-modal .input-text:focus {
  border-image-source: url('/brand-assets/frames/frame-search-heavy-black.webp') !important;
  border-image-slice: 140 !important;
  border-width: 9px 12px 9px 12px !important;
  color: var(--color-black) !important;
  filter: none !important;
}

.my-login-buttons .btn-primary-cta {
  border-image-source: url('/brand-assets/frames/frame-search-heavy-red.webp') !important;
  border-image-slice: 210 !important;
  border-width: 15px !important;
}

/* SketchDivider (src/components/SketchDivider.tsx) as plain CSS:
   aspect-[3400/15] bg-left bg-no-repeat bg-[length:105%_100%]. */
.sketch-divider {
  aspect-ratio: 3400 / 15;
  background-image: url('/brand-assets/lines/line-thin-black.webp');
  background-position: left;
  background-repeat: no-repeat;
  background-size: 105% 100%;
}

/* ── PAGE LAYOUT (local; values from docs/design-system.md) ─────────── */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }

/* Page root: surface-sketched min-h-screen flex flex-col */
.page { min-height: 100vh; display: flex; flex-direction: column; }

/* Navigation: pt-1 px-3 … max-w-[1280px], logo h-8 → sm:h-10 md:h-12 lg:h-14 */
.nav { width: 100%; padding: 4px 12px 0; }
.nav-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; }
.nav-logo { display: block; height: 32px; width: auto; }
.nav-logo--desktop { display: none; }
@media (min-width: 640px) {
  .nav { padding: 6px 16px 0; }
  .nav-logo--mobile { display: none; }
  .nav-logo--desktop { display: block; height: 40px; }
}
@media (min-width: 768px) { .nav { padding: 8px 24px 0; } .nav-logo--desktop { height: 48px; } }
@media (min-width: 1024px) { .nav { padding: 12px 40px 0; } .nav-logo--desktop { height: 56px; } }
/* Line under the logo, as Navigation.tsx: line-medium-black, bleeds past the
   nav gutter (-mx-3 sm:-mx-4 md:-mx-6 lg:-mx-10), mt-1 → lg:mt-3, -mb-px. */
.nav-line { display: block; max-width: none; margin: 4px -12px -1px; width: calc(100% + 24px); }
@media (min-width: 640px) { .nav-line { margin: 6px -16px -1px; width: calc(100% + 32px); } }
@media (min-width: 768px) { .nav-line { margin: 8px -24px -1px; width: calc(100% + 48px); } }
@media (min-width: 1024px) { .nav-line { margin: 12px -40px -1px; width: calc(100% + 80px); } }

/* Reading page: max-w-[1084px], gutter px-5 md:px-10; hero pt-8 md:pt-12 pb-10 md:pb-14 */
.main { flex: 1; width: 100%; }
.container { max-width: 1084px; margin: 0 auto; padding: 32px 20px 40px; }
.narrow { max-width: 640px; margin: 0 auto; }
@media (min-width: 768px) { .container { padding: 48px 40px 56px; } }

/* Headline → subhead mb-8 md:mb-10; lead text-xl md:text-2xl text-black/90 */
.headline { color: var(--color-red); text-align: center; margin-bottom: 12px; }
/* Headline image: same width as lead/subheader in .narrow (Reject7). */
.headline-img { display: block; margin: 0 auto; width: 100%; height: auto; max-width: 100%; }

.lead { font-size: 20px; line-height: 1.625; color: rgba(26, 26, 26, 0.9); text-align: center; margin-bottom: 32px; }
@media (min-width: 768px) { .lead { font-size: 24px; margin-bottom: 40px; } }

.divider-quiet { width: 100%; opacity: 0.13; }

.stack > * + * { margin-top: 20px; }

/* Form: Login.tsx layout — max-w-md w-full border-solid py-4 px-6 md:px-8,
   space-y-3, label text-sm font-medium leading-none, CTA w-full in the
   display font, input pulled out to the frame edge (-mx-[19px] translate-x-[10px]
   on the row, -ml-[10px] on the input). */
.check-form { width: 100%; max-width: 448px; margin: 0 auto; border-style: solid; padding: 16px 24px; }
@media (min-width: 768px) { .check-form { padding: 16px 32px; } }
.check-form > * + * { margin-top: 12px; }
.field { margin: 0 -19px; transform: translateX(10px); }
.field .input-text { margin-left: -10px; margin-top: -2px; }
.field-label { display: block; font-size: 20px; font-weight: 500; line-height: 1; margin-bottom: 4px; }
.field-hint { color: rgba(26, 26, 26, 0.8); margin-top: 2px; }
.field-error { color: var(--color-red); margin-top: 2px; }
.field-error:empty { display: none; }
.my-login-buttons { margin-top: 24px; }
.btn-block { width: 100%; font-family: var(--font-display); }

/* File picker: native input visually hidden; the brand input frame is the control. */
.file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
/* Undo the .field frame pull-out so the button (and the lines under it) line
   up with the CTA below. Red at rest; hover only expands (no darken). */
.file-pick, .file-name, .file-hint, .file-error { margin-left: 9px; width: calc(100% - 38px); }
.file-pick { margin-top: 6px; }
/* The native input fills the button (invisible), so hovering either the
   button or the input grows the button; growth is instant, no darken. */
.file-pick { position: relative; overflow: hidden; }
.file-pick:hover { transform: scale(1.04); filter: none; transition: none; }
.file-name, .file-hint, .file-error { text-align: center; }
.field + .field { margin-top: 20px; }
.file-pick:has(.file-input:focus-visible) { outline: 2px solid hsl(var(--brand-accent)); outline-offset: 3px; }
.file-name { font-family: var(--font-mono); font-size: 14px; word-break: break-all; margin-top: 6px; }
.file-pick:not(.has-file) + .file-name { color: rgba(26, 26, 26, 0.8); }
/* Selected: button label shifts to FILE UPLOADED; filename brand red + drawn font (Reject8). */
.file-pick.has-file + .file-name {
  color: var(--color-red);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-top: 10px;
}


/* Reject8: all UI copy uses the same drawn-style font (Patrick Hand / --font-display).
   Overrides Inter/mono from the COPIED Creator block for this experiment only. */
.page .btn-default,
.page .btn-primary-cta,
.page .input-text,
.page .file-name,
.page .file-hint,
.page .platform-status,
.page .text-mono {
  font-family: var(--font-display);
}
.actions { display: flex; justify-content: center; padding-top: 8px; }

/* Result page */
/* Reject10: summary text width matches warning/platform card content (border 18 + pad 16). */
#summary.lead {
  padding-left: calc(18px + var(--space-4));
  padding-right: calc(18px + var(--space-4));
}
.platforms { list-style: none; margin: 0; padding: 0; }
.platform { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; padding: 12px 0; }
.platform + .platform { border-top: 0; }
/* Reject10: less outer gap above YouTube / below Instagram */
#platforms-box {
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.platform:first-child { padding-top: 4px; }
.platform:last-child { padding-bottom: 4px; }
/* Reject10: fixed icon column so names share a left edge (YT ~42px at h=28) */
.platform-label {
  display: inline-grid;
  grid-template-columns: 42px auto;
  align-items: center;
  column-gap: 10px;
  min-width: 0;
}
.platform-icon {
  /* Reject9: fixed height, width auto — keep natural aspect (YT is wider than TT/IG) */
  height: 28px;
  width: auto;
  max-width: 42px;
  flex-shrink: 0;
  display: block;
  /* Reject11: center each icon in the 42px column so glyph centers line up */
  justify-self: center;
  /* Spencer: start black (true black, not CF grey inactive) */
  filter: brightness(0) saturate(100%);
}
/* Reject11: TikTok glyph sits ~1.3px high in its artwork; nudge to match YT/IG centers */
/* Reject12: TikTok 10% larger than YT/IG (28px → 30.8px) */
.platform-icon[src*="tiktok"] { height: 30.8px; transform: translateY(1px); }
/* Cleared → brand red (~#E55A3C); exact ACTIVE chain from Creator-Facing socialLinks.ts */
.platform[data-result="clear"] .platform-icon {
  filter: brightness(0) saturate(100%) invert(52%) sepia(73%) saturate(2392%) hue-rotate(338deg) brightness(96%) contrast(91%);
}
.platform-name { font-size: 24px; color: var(--color-black); }
.platform[data-result="clear"] .platform-name { color: var(--color-red); }
.platform-status { font-size: 14px; }
.platform-status[data-result="clear"] { color: var(--color-red); }
.platform-status[data-result="claimed"],
.platform-status[data-result="muted"],
.platform-status[data-result="error"] { color: var(--color-red); }
.platform-status[data-result="pending"] { color: var(--color-black); }
/* Reject1: headline is black "Your result:" + the verdict in brand red at the
   same size (the verdict box is gone); track name red; email note red italic. */
.headline-label { color: var(--color-black); }
.track-name { color: var(--color-red); }
#footnote { color: var(--color-red); font-style: italic; }
/* Reject3: PASSED / FAILED stamps (Spencer's art) in the headline and per platform. */
.stamp { display: inline-block; width: auto; max-width: none; vertical-align: middle; }
.stamp-headline { height: 1.3em; margin-left: 0.05em; }
/* Reject4: vertical-align: middle leaves the stamp ~0.14em below the centre of
   the "Your result:" glyphs; lift it to almost centred without moving the line. */
.stamp-headline { position: relative; top: -0.12em; }
.stamp-platform { display: block; height: 32px; }

/* Reject5: platform context on hover of the FAILED stamp, not under the row.
   COPIED from real-audio-creator src/index.css (.download-nudge-tip: the
   branded hover tooltip, red hand-drawn banner + cream Patrick Hand), then
   re-anchored the way Creator's .source-badge-tip is: the stamp sits at the
   row's RIGHT edge, so the bubble is pinned there and grows left, wrapping
   rather than running off a 375px screen. */
.download-nudge-tip {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(3px) rotate(-2deg) scale(0.96);
  transform-origin: center bottom;
  background: url('/brand-assets/frames/frame-banner-heavy-red-filled.webp')
    center / 100% 100% no-repeat;
  color: #FFF8E0;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  padding: 8px 12px 11px;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition: opacity 140ms ease, transform 140ms ease;
}
.download-nudge-tip::after {
  content: "";
  position: absolute;
  top: calc(100% - 9px);
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: url('/brand-assets/frames/frame-banner-heavy-red-filled.webp')
    center / 46px 46px no-repeat;
  z-index: -1;
}
.platform-stamp {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: pointer;
}
.platform-stamp:focus-visible {
  outline: 2px solid hsl(var(--brand-accent));
  outline-offset: 2px;
}
/* Reject6/7: opaque bubble (the tip's banner crosshatch over solid brand red)
   with Creator's brand-black sketched outline: the frame TrackKebabMenu.tsx
   gives its small brand-sketched popover (frame-card-heavy-black at 5px, slice
   100, stretch, no outset, so the ink clamps to the edge). */
.platform-stamp-tip {
  background: url('/brand-assets/frames/frame-banner-heavy-red-filled.webp')
    center / 100% 100% no-repeat, var(--color-red);
  background-clip: padding-box;
  border-image-source: url('/brand-assets/frames/frame-card-heavy-black.webp');
  border-image-slice: 100;
  border-image-repeat: stretch;
  border-width: 5px;
  border-style: solid;
  padding: 4px 8px 6px;
  left: auto;
  right: 0;
  transform-origin: right bottom;
  transform: translateY(3px) rotate(-2deg) scale(0.96);
  white-space: normal;
  width: max-content;
  max-width: min(220px, calc(100vw - 40px));
  line-height: 1.15;
  text-align: center;
}
/* Tail under the stamp, not under the right-pinned bubble's centre; solid red
   under its crosshatch like the bubble, with the outline's brand black on its
   two outer edges so it reads as part of the framed bubble. */
.platform-stamp-tip::after {
  background-color: var(--color-red);
  border-right: 3px solid var(--color-black);
  border-bottom: 3px solid var(--color-black);
  top: calc(100% - 4px);
  left: auto;
  right: 28px;
  transform: rotate(45deg);
}
/* Desktop hover; keyboard focus; `.is-open` is the tap toggle for touch. */
.platform-stamp:hover .platform-stamp-tip,
.platform-stamp:focus-visible .platform-stamp-tip,
.platform-stamp.is-open .platform-stamp-tip {
  opacity: 1;
  transform: translateY(0) rotate(-2deg) scale(1);
}
.warning { font-size: 20px; line-height: 1.4; color: var(--color-red); }
/* Landing: same warning box as the result page, form width, above the form. */
.landing-warning { max-width: 448px; margin: 0 auto 24px; }
.muted { color: rgba(26, 26, 26, 0.8); }
.center { text-align: center; }
[hidden] { display: none !important; }
a.btn-default, a.btn-primary-cta { text-decoration: none; }
/* Reject1: result "upload another track" slightly bigger than the base CTA (16px). */
.actions .btn-primary-cta { font-size: 20px; padding: var(--space-4) var(--space-8); }
/* Reject9: result "upload another track" — red at rest + hover; only slight expand */
.actions .btn-primary-cta:hover {
  transform: scale(1.04);
  filter: none;
}
.actions .btn-primary-cta:active {
  transform: scale(0.98);
  filter: none;
}
/* Error state inside the login-style form: the red search frame at the slice
   Creator uses for that asset (.input-text.error / .my-login-buttons: 210). */
.my-login-modal .input-text.error,
.my-login-modal .input-text.error:focus {
  border-image-source: url('/brand-assets/frames/frame-search-heavy-red.webp') !important;
  border-image-slice: 210 !important;
  color: var(--color-red) !important;
}
