@font-face { font-family: "Outfit"; src: url("/fonts/outfit-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Tokens from the TikFinity UI Library (ui.tikfinity.com, light theme) and Brand Kit 1.3 */
:root {
  --ink: #1d1c1c;            /* foreground (ink-900) */
  --ink-2: #3d3b3b;          /* foreground-2 (ink-700) */
  --ink-3: #575454;          /* muted-foreground (ink-600) */
  --page: #f3f2f1;           /* background, Paper (ink-100) */
  --card: #fff;              /* card (ink-0) */
  --surface-2: #eceae9;      /* ink-150 */
  --subtle: #f8f7f6;         /* ink-50 */
  --field: #f0eeed;
  --bg-2: rgb(29 28 28 / .055);  /* overlay-6 */
  --line: rgb(29 28 28 / .09);   /* overlay-10 */
  --secondary: #eceae9;
  --secondary-hover: #e0dddc;
  --secondary-active: #d2cfce;
  --disabled: #e3e0df;
  --disabled-fg: #a8a4a3;
  --crimson: #d43555;        /* primary-500 */
  --crimson-deep: #bf2c4a;   /* primary-hover */
  --crimson-press: #ab2943;  /* primary-600 */
  --crimson-text: #c52c4c;   /* primary-text */
  --crimson-tint: #fcedef;   /* primary-50 */
  --crimson-ink: #821d31;    /* primary-700 */
  --cyan: #0094ea;
  --ok: #0b6b36;             /* mint-700 */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-3xl: 24px;
  --radius-panel: 36px;
  --radius-full: 999px;
  --shadow-panel: 0 1px 2px rgb(29 28 28 / .04);
  --shadow-card: 0 1px 2px rgb(29 28 28 / .04), 0 6px 20px rgb(29 28 28 / .07);
  --shadow-float: 0 1px 2px rgb(29 28 28 / .06), 0 12px 32px rgb(29 28 28 / .14);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --sp-gross: clamp(64px, 8vw, 112px);
  --sp-klein: clamp(36px, 4.5vw, 64px);
  --wrap-pad: clamp(20px, 4vw, 40px);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body { margin: 0; background: var(--page); color: var(--ink-2); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font); color: var(--ink); margin: 0 0 .5em; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.5; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 500; }
a { color: var(--crimson-text); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--wrap-pad); }
.narrow { max-width: 720px; }

/* Floating pill nav */
header.top { position: sticky; top: 0; z-index: 5; padding-top: 14px; }
header.top .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 58px; padding: 0 8px 0 18px;
  background: rgb(255 255 255 / .92); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border-radius: var(--radius-full); box-shadow: var(--shadow-float); }
header.top .bar > .muted { padding-right: 12px; }
/* Official lockup (brand kit file, never retyped) plus a separate label; clear space = half the icon height */
.logo { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.logo img { height: 28px; width: auto; display: block; }
.logo .logo-label { padding-left: 14px; border-left: 1px solid var(--line); line-height: 24px; }
@media (max-width: 380px) { .logo .logo-label { display: none; } }

section { padding: var(--sp-klein) 0; }
[id] { scroll-margin-top: 96px; }
.hero { padding: clamp(48px, 7vw, 96px) 0 var(--sp-klein); }
.hero h1 { max-width: 720px; }
.panel.grid.two { gap: clamp(28px, 4vw, 56px); }
.eyebrow { display: inline-block; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--crimson-text); margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 4px 16px 4px 4px; margin-bottom: 22px; background: var(--card); border-radius: var(--radius-full); box-shadow: var(--shadow-panel); font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--ink-2); }
.badge b { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-full); background: var(--crimson); color: #fff; font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lead { font-size: 1.06rem; line-height: 1.55; color: var(--ink-2); max-width: 600px; margin-bottom: 28px; }
.accent { color: var(--crimson); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; gap: 24px; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border-radius: var(--radius-3xl); padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow-panel); }
.card p:last-child { margin-bottom: 0; }
.panel { background: var(--card); border-radius: var(--radius-panel); padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow-panel); }
.icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--crimson-tint); color: var(--crimson); font-weight: 700; margin-bottom: 16px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { content: counter(s); flex: 0 0 32px; height: 32px; border-radius: var(--radius-lg); background: var(--crimson-tint); color: var(--crimson-text); font-weight: 700; font-size: .875rem; line-height: 32px; text-align: center; font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--radius-full); border: 1px solid var(--bg-2); background: var(--crimson); color: #fff; font: 500 1rem/1.5rem var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .16s var(--ease), transform .16s var(--ease); }
.btn:hover { background: var(--crimson-deep); }
.btn:active { transform: scale(.965); }
.btn.lg { min-height: 48px; padding: 0 22px; }
.btn .arrow { transition: transform .16s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }
.btn:disabled { background: var(--disabled); color: var(--disabled-fg); cursor: not-allowed; transform: none; }
.btn.ghost { background: var(--secondary); color: var(--ink); }
.btn.ghost:hover { background: var(--secondary-hover); }
.btn.ghost:active { background: var(--secondary-active); }
.btn.small { min-height: 32px; padding: 0 14px; font-size: .875rem; line-height: 1rem; }
.btn.ok { background: var(--ok); }
.btn.danger { background: var(--card); color: var(--crimson-text); border-color: rgb(212 53 85 / .35); }
.btn.danger:hover, .btn.ok:hover { filter: brightness(.95); }

form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 500; font-size: .875rem; line-height: 1.25rem; color: var(--ink); }
label small { font-weight: 400; color: var(--ink-3); }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid transparent; border-radius: var(--radius-xl); font: 16px var(--font); color: var(--ink); background: var(--field); transition: border-color .16s var(--ease); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { min-height: 90px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
input[type="file"] { padding: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); }
.check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; padding: 0; border-radius: var(--radius-sm); accent-color: var(--crimson); }
.row { display: grid; gap: 16px; }
@media (min-width: 560px) { .row.two { grid-template-columns: 1fr 1fr; } }

.msg { padding: 12px 14px; border-radius: var(--radius-xl); font-size: .875rem; line-height: 1.25rem; overflow-wrap: anywhere; }
.msg.error { background: var(--crimson-tint); color: var(--crimson-ink); }
.msg.ok { background: rgb(24 165 88 / .1); color: var(--ok); }
.msg.info { background: #eef4ff; color: #00568b; }
.hidden { display: none !important; }
.muted { color: var(--ink-3); font-size: .875rem; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 500; color: var(--ink); list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--crimson-text); font-weight: 500; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; }
/* Payout box in the dashboard */
dl.payout { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 10px 0 0; }
dl.payout dt { font-weight: 500; }
dl.payout dd { margin: 0; }
details.translations { border: 0; padding: 10px 0 0; font-size: .88rem; }
details.translations summary { font-weight: 500; color: inherit; }
details.translations summary::after { color: inherit; float: none; margin-left: 6px; }
@media (max-width: 480px) { dl.payout { grid-template-columns: 1fr; gap: 0; } dl.payout dd { margin-bottom: 8px; } }

footer { padding: 36px 0 48px; color: var(--ink-3); font-size: .875rem; }

/* Dashboard */
.tracker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0 4px; }
.tracker .step { text-align: center; font-size: .75rem; line-height: 1rem; color: var(--ink-3); }
.tracker .bar { height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 8px; }
.tracker .step.done .bar { background: var(--crimson); }
.tracker .step.current .bar { background: var(--crimson); }
.tracker .step.current { color: var(--crimson-text); }
.tracker .step.done, .tracker .step.current { font-weight: 500; }
.tracker .step.done { color: var(--ink); }
.next { font-size: 1.05rem; color: var(--ink); }
.locked { opacity: .55; pointer-events: none; }
.progress { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--crimson); transition: width .2s; }
.dash-grid { display: grid; gap: 16px; margin-top: 16px; }

/* Admin */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: var(--card); border-radius: var(--radius-3xl); box-shadow: var(--shadow-panel); padding: 16px 20px; font-size: .875rem; }
.stat b { display: block; font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 2px 10px; border-radius: var(--radius-full); font-size: .75rem; line-height: 1rem; font-weight: 500; background: var(--bg-2); color: var(--ink); white-space: nowrap; }
.pill.signed_up { background: #fce5cd; } .pill.video_submitted { background: #e4ddf3; } .pill.approved { background: #dcefd6; }
.pill.posted { background: #cfe8f7; } .pill.invoice_received { background: #c3e3b6; } .pill.paid { background: #9fd08a; }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius-3xl); box-shadow: var(--shadow-panel); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
td strong { color: var(--ink); }
th { background: var(--subtle); color: var(--ink-3); font-weight: 500; white-space: nowrap; }
tr.detail td { background: var(--subtle); }
video { width: 100%; max-width: 360px; max-height: 480px; background: #000; border-radius: var(--radius-xl); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 24px 0 16px; }
.toolbar select, .toolbar input { width: auto; min-height: 40px; }
fieldset.vat-status { border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 12px 14px 14px; margin: 0; display: grid; gap: 10px; }
fieldset.vat-status legend { padding: 0 6px; font-weight: 500; font-size: .875rem; color: var(--ink); }

/* Product logos in the "What's new" cards */
.logo-tile { width: 48px; height: 48px; margin-bottom: 16px; display: grid; place-items: center; }
.logo-tile img { width: 100%; height: 100%; display: block; }
.logo-tile.reecorder { background: #86e3a0; border-radius: var(--radius-xl); overflow: hidden; }
.logo-tile.reecorder span { width: 62%; height: 62%; background: #2b2848;
  -webkit-mask: url("/img/reecorder-glyph.png") center / contain no-repeat; mask: url("/img/reecorder-glyph.png") center / contain no-repeat; }
.legal { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }

/* Thank-you view and finance check */
.logo-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.logo-row img, .logo-row .logo-tile { width: 56px; height: 56px; margin: 0; }
.logo-row .logo-tile { border-radius: var(--radius-xl); }
.pill.check { background: var(--crimson-tint); color: var(--crimson-ink); margin-top: 4px; cursor: help; }

/* TikTok embed in the admin review */
iframe.tiktok { width: 100%; max-width: 325px; aspect-ratio: 9 / 16; height: auto; border: 0; border-radius: var(--radius-xl); background: #000; display: block; }
