/* Tokens aligned with https://ownstage.app/branding/ (brand.json / tokens.css) */
:root {
  --ink: #0e0c0a;
  --ink-soft: #2a241c;
  --muted: #6b6258;
  --paper: #f7f3eb;
  --paper-tint: #efe8db;
  --amber: #e8a317;
  --amber-deep: #c4840a;
  --spot: #ffd56a;
  --line: rgba(14, 12, 10, 0.12);
  --success: #1f6b3a;
  --danger: #9b1c1c;
  --hero-photo: url("https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?auto=format&fit=crop&w=2000&q=80");
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

.hidden {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--amber-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

::selection {
  background: rgba(232, 163, 23, 0.35);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  background: linear-gradient(180deg, rgba(14, 12, 10, 0.85), rgba(14, 12, 10, 0.2));
  color: #f7f3eb;
}

.top__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--spot);
  text-decoration: none;
  line-height: 1.05;
}

.top__mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 8px;
}

.top__brand-text {
  display: flex;
  flex-direction: column;
}

.top__brand-co {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-top: 0.12rem;
}

.top__brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.top__product {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 243, 235, 0.72);
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(255, 213, 106, 0.35);
  border-radius: 999px;
}

.top__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.88rem;
}

.top__nav a {
  color: inherit;
  text-decoration: none;
}

.top__nav a:hover {
  color: var(--spot);
}

.top__nav .hidden {
  display: none !important;
}

.top__cta {
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 213, 106, 0.5);
  border-radius: 999px;
  color: var(--spot) !important;
}

.workspace {
  flex: 1 0 auto;
  padding-top: 3.5rem;
  background: var(--paper);
}

body.has-landing-hero .workspace {
  background: linear-gradient(180deg, #1a1612 0 32vh, var(--paper) 32vh);
}

.landing-hero {
  position: relative;
  min-height: 32vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7f3eb;
}

.landing-hero__media {
  position: absolute;
  inset: 0;
  background: var(--hero-photo) center / cover no-repeat;
  transform: scale(1.04);
}

.landing-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(14, 12, 10, 0.88) 0%, rgba(14, 12, 10, 0.55) 48%, rgba(14, 12, 10, 0.35) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(232, 163, 23, 0.28), transparent 55%);
}

.landing-hero__inner {
  position: relative;
  z-index: 1;
  padding: 2rem clamp(1rem, 4vw, 2rem) 2.5rem;
  max-width: 40rem;
  margin: 0 auto;
  width: 100%;
}

.landing-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 14ch;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.band {
  padding: 0 clamp(1rem, 4vw, 2rem) 3rem;
  background: var(--paper);
}

.band--tint {
  padding-top: 0.5rem;
  background:
    linear-gradient(180deg, rgba(232, 163, 23, 0.08), transparent 40%),
    var(--paper-tint);
}

.band__inner {
  max-width: 28rem;
  margin: 0 auto;
}

.band__inner--wide {
  max-width: 52rem;
}

.band__inner--narrow {
  max-width: 22rem;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 16px 48px rgba(14, 12, 10, 0.08);
  margin-top: -1.25rem;
  position: relative;
  z-index: 2;
}

.panel--cta {
  text-align: center;
  padding: 1.75rem 1.35rem;
}

.panel__title {
  margin: 0 0 1rem;
  font-weight: 600;
}

.panel__actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.page-head h1 {
  margin: 0;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

input[type="url"],
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  margin-bottom: 0.85rem;
}

input:focus {
  outline: 2px solid var(--amber);
  outline-offset: 0;
  border-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--block {
  width: 100%;
  margin-top: 0.25rem;
}

.btn--primary {
  background: var(--amber);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--spot);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(14, 12, 10, 0.2);
  color: var(--ink);
}

.top .btn--ghost {
  border-color: rgba(247, 243, 235, 0.4);
  color: #f7f3eb;
}

.btn--sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}

.usage-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.empty-state {
  color: var(--muted);
  margin: 2rem 0;
}

.result-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .result-grid {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .manage-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
  }
}

.qr-wrap {
  display: flex;
  justify-content: center;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field {
  margin-bottom: 1rem;
}

.field__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.field__value {
  margin: 0;
  word-break: break-all;
  color: var(--ink-soft);
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

code {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  word-break: break-all;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.actions--top {
  margin-top: 1rem;
}

.qr-customize {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.qr-customize--compact {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.logo-preview {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}

.file-label {
  cursor: pointer;
  margin: 0;
}

.manage-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inline-actions {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.inline-actions .text-btn {
  margin: 0;
}

.text-btn {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.hint {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.hint--fine {
  font-size: 0.8rem;
  margin-top: 0.65rem;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.link-list-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.link-list-hit {
  text-decoration: none;
  color: inherit;
}

.link-list-hit:hover .link-list-title {
  color: var(--amber-deep);
}

.link-list-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.link-list-dest {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-all;
}

.link-list-code {
  font-size: 0.75rem;
  color: var(--muted);
}

.status {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.foot {
  flex-shrink: 0;
  margin-top: auto;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 2rem;
  background: var(--ink);
  color: rgba(247, 243, 235, 0.75);
}

.foot__brand {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--spot);
  text-decoration: none;
  line-height: 1.05;
}

.foot__brand-co {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 243, 235, 0.75);
  margin-top: 0.35rem;
}

.fine {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .top__nav > a:first-of-type {
    display: none;
  }
}

.foot__legal {
  display: flex;
  gap: 1rem;
  margin-top: 0.65rem;
}

.foot__legal a {
  color: rgba(247, 243, 235, 0.72);
  text-decoration: none;
  font-size: 0.85rem;
}

.foot__legal a:hover {
  color: var(--spot);
}

.cookie-banner {
  position: fixed;
  z-index: 40;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: rgba(247, 243, 235, 0.9);
  border: 1px solid rgba(255, 213, 106, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.cookie-banner a {
  color: var(--spot);
  text-decoration: none;
}

.cookie-banner a:hover {
  text-decoration: underline;
}

body.page-legal {
  background:
    radial-gradient(1000px 480px at 8% -8%, rgba(232, 163, 23, 0.14), transparent 55%),
    var(--paper);
}

body.page-legal .legal {
  flex: 1 0 auto;
}

body.page-legal .top--solid {
  position: sticky;
  background: rgba(14, 12, 10, 0.94);
}

body.page-legal .top__product {
  color: rgba(247, 243, 235, 0.72);
}

.legal {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem) 3rem;
}

.legal--wide {
  max-width: 46rem;
}

.legal__caps {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.legal__note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
}

.legal p,
.legal ul {
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal__meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}
