@font-face { font-family: "Zalando Sans"; font-weight: 400; font-display: swap; src: url("assets/fonts/zalando-sans-400.ttf") format("truetype"); }
@font-face { font-family: "Zalando Sans"; font-weight: 700; font-display: swap; src: url("assets/fonts/zalando-sans-700.ttf") format("truetype"); }
@font-face { font-family: "Zalando Sans Expanded"; font-weight: 900; font-display: swap; src: url("assets/fonts/zalando-sans-expanded-900.ttf") format("truetype"); }

:root {
  --black: #0d0d0d;
  --ink: #161616;
  --line: #2a2a2a;
  --white: #ffffff;
  --muted: #a3a3a3;
  --yellow: #f9d000;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 16px/1.5 "Zalando Sans", system-ui, sans-serif;
}
a { color: inherit; }
h1, h2, h3 { font-family: "Zalando Sans Expanded", "Zalando Sans", sans-serif; font-weight: 900; margin: 0; }

/* Font Awesome icons as masks so they take currentColor. */
.i {
  display: inline-block; flex: 0 0 auto; width: 1em; height: 1em;
  background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}

.page { max-width: 520px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px 32px; }
.top { padding: 4px 0 28px; }
.logo { display: block; width: 104px; height: auto; }

.hero .avatar { display: block; width: 88px; height: 88px; border-radius: 10px; object-fit: cover; }
.hero h1 { margin-top: 20px; font-size: 30px; line-height: 1.1; }
.hero .role { margin: 6px 0 0; color: var(--muted); }
.hero .lead { margin: 16px 0 24px; font-size: 18px; }
.hero .hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.error { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--ink); border: 1px solid var(--line); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--ink); color: var(--white); font: 700 15px/1 "Zalando Sans", sans-serif;
  text-decoration: none; cursor: pointer;
}
.btn .i { color: var(--yellow); }
.btn-primary { width: 100%; min-height: 56px; border: 0; background: var(--white); color: var(--black); font-size: 16px; }
.btn-primary .i { color: var(--black); }
.btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.actions .btn { flex: 1 1 auto; }

.products { margin-top: 48px; display: grid; gap: 10px; }
.products h2 { font-size: 18px; margin-bottom: 6px; }
.product {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); text-decoration: none;
}
.product-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.product-logo--cm { height: auto; padding: 0; border-radius: 0; object-fit: contain; margin-top: 4px; }
.product h3 { font-size: 16px; }
.product p { margin: 6px 0 8px; font-size: 14px; color: #d6d6d6; }
.product .more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.product .more .i { color: var(--yellow); font-size: 12px; }

.foot { margin-top: 40px; font-size: 13px; color: var(--muted); }
.foot p { margin: 4px 0; }

/* AR overlay */
.ar { position: fixed; inset: 0; z-index: 10; background: #000; }
.ar[hidden] { display: none; }
.ar-stage { position: absolute; inset: 0; overflow: hidden; }
.ar-hint {
  position: absolute; left: 16px; right: 16px; bottom: max(24px, env(safe-area-inset-bottom)); margin: 0;
  padding: 12px 16px; border-radius: 999px; background: rgba(13, 13, 13, .8); text-align: center;
  font-weight: 700; font-size: 15px; pointer-events: none; transition: opacity .3s;
}
.ar-hint.is-hidden { opacity: 0; }
.ar-close {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(13, 13, 13, .8);
  color: var(--white); font-size: 18px; cursor: pointer;
}

/* AR: a tapped tile lifted out of the camera view into a steady card */
.ar-modal { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 16px; }
.ar-modal[hidden] { display: none; }
.ar-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .35s; }
.ar-modal.is-open .ar-modal-backdrop { opacity: 1; }
.ar-sheet {
  position: relative; width: min(360px, 100%); max-height: calc(100% - 32px); overflow: auto; padding: 24px;
  background: var(--white); color: var(--black); box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  transform-origin: 0 0; transition: transform .38s cubic-bezier(.2, .8, .2, 1), opacity .25s;
}
.ar-sheet-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: #efefef; color: var(--black); font-size: 14px; cursor: pointer;
}
.ar-sheet-head { display: flex; gap: 8px; }
.ar-sheet-head[hidden] { display: none; }
.ar-sheet-logo { width: 56px; height: 56px; object-fit: cover; }
.ar-badge { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--black); color: var(--yellow); font-size: 20px; }
.ar-sheet-name { margin-top: 16px; font-size: 22px; line-height: 1.15; }
.ar-sheet-line { margin: 8px 0 20px; font-size: 15px; line-height: 1.45; color: #5c5c5c; }
.ar-sheet-actions { display: grid; gap: 8px; }
.ar-sheet-btn {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  background: var(--black); color: var(--white); font: 700 15px/1 "Zalando Sans", sans-serif; text-decoration: none;
}
.ar-sheet-btn .i { color: var(--yellow); }
.ar-sheet-btn.is-small { min-height: 38px; padding: 0 14px; font-size: 13px; justify-self: start; }
.ar-item { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 4px; padding: 14px 0; border-top: 1px solid #e6e6e6; }
.ar-item:first-child { border-top: 0; padding-top: 0; }
.ar-item-logo { grid-row: span 2; width: 44px; height: 44px; object-fit: cover; }
.ar-item-logo.is-dark { background: var(--black); object-fit: contain; padding: 8px 5px; }
.ar-item strong { font: 900 15px/1.2 "Zalando Sans Expanded", "Zalando Sans", sans-serif; }
.ar-item p { margin: 0; font-size: 13px; line-height: 1.4; color: #5c5c5c; }
.ar-item .ar-sheet-btn { grid-column: 2; margin-top: 8px; }
.ar-socials { display: flex; gap: 10px; margin-top: 6px; }
.ar-socials .ar-badge { text-decoration: none; }
