/* card.waylucid.com "Holo Card", shared by every person's card.
   Built on the WayLucid brand tokens. Purple is the brand.
   Souken Industries, Phoenix AZ. */

/* If you're reading this, you're exactly the kind of person we hire. */
/* careers@waylucid.com */

/* Brand fonts, self-hosted (latin subset, variable weight). Licences: ../fonts/LICENSES.txt */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --wl-bg-deep: #0B0014;
  --wl-bg-dark: #120723;
  --wl-bg-surface: #1E0A3C;
  --wl-purple-primary: #7C3AED;
  --wl-purple-vivid: #8B5CF6;
  --wl-purple-light: #A855F7;
  --wl-purple-soft: #C084FC;
  --wl-white: #FFFFFF;
  --wl-off-white: #F5F5F5;
  --wl-gray-muted: #9CA3AF;
  --wl-border: #374151;
  --wl-success: #10B981;
  --wl-gradient-primary: linear-gradient(135deg, #7C3AED, #A855F7);
  --wl-gradient-bg: linear-gradient(180deg, #0B0014, #1E0A3C);
  --wl-gradient-accent: linear-gradient(90deg, #8B5CF6, #C084FC);
  --wl-glow: 0 0 20px rgba(124, 58, 237, 0.15);

  --edge: rgba(124, 58, 237, 0.24);
  --edge-strong: rgba(192, 132, 252, 0.45);
  --panel: linear-gradient(135deg, rgba(124, 58, 237, 0.13), rgba(168, 85, 247, 0.04));

  --font-head: 'DM Sans', 'Inter', Arial, sans-serif;
  --font-body: 'Inter', 'DM Sans', 'Helvetica Neue', Helvetica, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --shell: 440px;
  --gutter: 20px;
  --dock-space: 92px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--wl-bg-deep);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--wl-bg-deep);
  color: var(--wl-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--wl-purple-soft);
  outline-offset: 3px;
}

.mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== Ambient background ===== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 42% at 50% -4%, rgba(124, 58, 237, 0.30), transparent 72%),
    radial-gradient(48% 36% at 100% 78%, rgba(168, 85, 247, 0.10), transparent 70%),
    radial-gradient(40% 30% at 0% 55%, rgba(124, 58, 237, 0.08), transparent 70%),
    var(--wl-bg-deep);
}
.ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 45% at 50% 0%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 45% at 50% 0%, #000 25%, transparent 80%);
}

/* ===== Layout ===== */
.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding:
    max(28px, calc(env(safe-area-inset-top) + 16px))
    max(var(--gutter), env(safe-area-inset-right))
    calc(var(--dock-space) + env(safe-area-inset-bottom) + 24px)
    max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ===== Holo card ===== */
.hero { padding-top: 8px; }

.stage {
  container-type: inline-size;
  position: relative;
  perspective: 1100px;
}
/* soft floor shadow */
.stage::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -26px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.40), transparent);
  filter: blur(10px);
  z-index: -1;
}

.card-float {
  transform-style: preserve-3d;
  animation: card-in 1.1s var(--ease-out) both;
}

.card {
  --rx: 0deg;
  --ry: 0deg;
  --px: 50%;
  --py: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}

/* Flip. WebKit (iOS Safari and every iPhone in-app browser) does not apply backface-visibility
   to descendants it draws on their own layers (the photo filter, sheen/glare blend modes, foil
   mask, z-indexed content), so the side facing away showed through, mirrored. Each face is
   therefore hidden with `visibility`, swapped at the exact middle of the flip, when the card is
   edge-on. The easing is symmetric so the middle of the time is also 90 degrees. Keep it that way. */
.card {
  --flip-duration: 0.7s;
  --flip-half: calc(var(--flip-duration) / 2);
}
.card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform var(--flip-duration) cubic-bezier(0.65, 0, 0.35, 1);
}
.card.is-flipped .card-inner { transform: rotateY(180deg); }
.card.is-flipped .face-front { visibility: hidden; }
.card.is-flipped .face-back { visibility: visible; }

.face {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: visibility 0s linear var(--flip-half);
  border: 1px solid var(--edge-strong);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(168, 85, 247, 0.30), transparent 55%),
    radial-gradient(110% 130% at 100% 100%, rgba(124, 58, 237, 0.34), transparent 60%),
    linear-gradient(135deg, #1E0A3C 0%, #120723 55%, #0B0014 100%);
  box-shadow:
    0 30px 60px -24px rgba(0, 0, 0, 0.75),
    0 0 44px rgba(124, 58, 237, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.face-back {
  visibility: hidden;
  transform: rotateY(180deg);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(168, 85, 247, 0.26), transparent 55%),
    radial-gradient(110% 130% at 0% 100%, rgba(124, 58, 237, 0.30), transparent 60%),
    linear-gradient(225deg, #1E0A3C 0%, #120723 55%, #0B0014 100%);
}

/* holographic foil: fine diagonal lines, brightest where the light hits */
.foil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
  -webkit-mask-image: radial-gradient(circle at var(--px) var(--py), #000 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.15) 100%);
  mask-image: radial-gradient(circle at var(--px) var(--py), #000 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.15) 100%);
}
.sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent 28%,
    rgba(139, 92, 246, 0.22) 38%,
    rgba(192, 132, 252, 0.34) 45%,
    rgba(255, 255, 255, 0.30) 50%,
    rgba(168, 85, 247, 0.26) 56%,
    transparent 68%);
  background-size: 300% 300%;
  background-position: var(--px) var(--py);
  mix-blend-mode: screen;
  opacity: 0.55;
}
.glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--px) var(--py), rgba(255, 255, 255, 0.16), transparent 48%);
  mix-blend-mode: soft-light;
}

.face-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 6.5cqi 7cqi;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-logo {
  width: max(108px, 34cqi);
  height: auto;
}
.nfc {
  width: max(22px, 7cqi);
  height: max(22px, 7cqi);
  color: var(--wl-purple-soft);
}

.card-id {
  display: flex;
  align-items: center;
  gap: 4.5cqi;
}
.avatar {
  position: relative;
  flex-shrink: 0;
  width: max(52px, 19cqi);
  height: max(52px, 19cqi);
  border-radius: 50%;
  padding: 2px;
  background: var(--wl-gradient-primary);
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.35);
}
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.06) brightness(0.96);
}
/* dark, moody purple grade over the light studio background */
.avatar::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.30), rgba(30, 10, 60, 0.50));
  mix-blend-mode: multiply;
}
.id-text { min-width: 0; }
.card h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(19px, 7.4cqi, 30px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--wl-white);
}
.role {
  margin-top: 0.35em;
  font-size: clamp(12.5px, 3.9cqi, 15px);
  font-weight: 500;
  color: var(--wl-purple-soft);
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: max(10.5px, 3.1cqi);
  color: var(--wl-gray-muted);
}
.hint {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--wl-purple-soft);
}
.hint svg { width: 1.25em; height: 1.25em; }

/* back face */
.back-layout {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6cqi;
}
.qr-tile {
  flex-shrink: 0;
  height: 100%;
  aspect-ratio: 1;
  padding: 2.2cqi;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 10px 30px rgba(0, 0, 0, 0.4);
}
.qr-tile img { width: 100%; height: 100%; }
.back-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2.4cqi;
}
.back-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(15px, 5.2cqi, 21px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
/* Breaks only at the <wbr> before a card's path (card.waylucid.com / jas), never inside the host. */
.back-url {
  font-size: max(10px, 3.1cqi);
  color: var(--wl-purple-soft);
  text-transform: none;
  letter-spacing: 0;
}
.back-email {
  font-size: max(10px, 2.9cqi);
  color: var(--wl-gray-muted);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}
/* narrow cards: give the text column room; the QR stays large enough to scan */
@container (max-width: 340px) {
  .back-layout { gap: 4.5cqi; }
  .qr-tile { height: 84%; }
}

/* the whole card is one big flip button */
.card-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 18px;
  transform: translateZ(2px);
  cursor: pointer;
}
.card-hit:focus-visible { outline-offset: 5px; }

/* ===== Pitch ===== */
.pitch h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 8.4vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pitch > p {
  margin-top: 14px;
  color: var(--wl-gray-muted);
  font-size: 16px;
  line-height: 1.6;
}
.cta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px 8px 8px 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--wl-bg-dark), var(--wl-bg-dark)) padding-box,
    var(--wl-gradient-primary) border-box;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  box-shadow: var(--wl-glow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.cta-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: var(--wl-purple-primary);
  background-image: var(--wl-gradient-primary);
  transition: transform 0.25s ease;
}
.cta-arrow svg { width: 20px; height: 20px; }
.cta:hover { box-shadow: 0 0 34px rgba(124, 58, 237, 0.32); }
.cta:hover .cta-arrow { transform: translateX(2px); }
.cta:active { transform: scale(0.99); }
.cta-alt {
  margin-top: 14px;
  font-size: 15px;
  color: var(--wl-gray-muted);
  text-align: center;
}
.cta-alt a {
  color: var(--wl-purple-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.cta-alt a:hover { color: var(--wl-white); }

/* ===== Section labels ===== */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wl-gray-muted);
}
.label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--edge-strong), transparent);
}

/* ===== Product rows ===== */
.rows { display: grid; gap: 10px; }
.row {
  display: grid;
  grid-template-columns: 44px 1fr 18px;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--edge);
  background: var(--panel);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.row-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(124, 58, 237, 0.16);
  color: var(--wl-purple-soft);
}
.row-icon svg { width: 21px; height: 21px; }
.row-text { display: flex; flex-direction: column; min-width: 0; }
.row-name {
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
}
.row-desc {
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--wl-gray-muted);
}
.row-arrow {
  width: 18px;
  height: 18px;
  color: var(--wl-gray-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}
.row:hover {
  border-color: var(--edge-strong);
  box-shadow: var(--wl-glow);
}
.row:hover .row-arrow { color: var(--wl-purple-soft); transform: translateX(2px); }
.row:active { transform: scale(0.99); }

/* ===== Elsewhere chips ===== */
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--edge);
  background: rgba(18, 7, 35, 0.6);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.chip svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--wl-purple-soft);
}
.chip-text { display: flex; flex-direction: column; min-width: 0; }
.chip-kind {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wl-gray-muted);
}
.chip-name {
  font-size: 14.5px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.chip:hover { border-color: var(--edge-strong); box-shadow: var(--wl-glow); }

/* ===== Footer ===== */
.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--wl-gray-muted);
}
.foot-logo { width: 132px; height: auto; margin-bottom: 6px; }
.stamp { font-size: 11px; letter-spacing: 0.06em; }

/* ===== Action dock ===== */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding:
    28px
    max(var(--gutter), env(safe-area-inset-right))
    calc(12px + env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  background: linear-gradient(to top, rgba(11, 0, 20, 0.95) 55%, rgba(11, 0, 20, 0));
  pointer-events: none;
  animation: dock-in 0.7s var(--ease-out) 0.5s both;
}
.dock-inner {
  pointer-events: auto;
  max-width: calc(var(--shell) - 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  gap: 8px;
  padding: 7px;
  border-radius: 18px;
  border: 1px solid var(--edge);
  background: rgba(18, 7, 35, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}
.dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background: rgba(124, 58, 237, 0.12);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.dock-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.dock-btn:hover { background-color: rgba(124, 58, 237, 0.22); }
.dock-btn:active { transform: scale(0.97); }
.dock-btn.primary {
  border: 0;
  background-color: var(--wl-purple-primary);
  background-image: var(--wl-gradient-primary);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.38);
}
.dock-btn.primary:hover { box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5); }
/* Cards without a Pay link: Save contact and Share only. */
.dock-inner.dock-inner--two { grid-template-columns: 1.4fr 1fr; }

/* Small phones (iPhone SE and similar): tighter gutters and dock so all three actions fit. */
@media (max-width: 374px) {
  :root { --gutter: 16px; }
  .dock-inner { gap: 6px; padding: 6px; grid-template-columns: 1.4fr 1fr 1fr; }
  .dock-inner.dock-inner--two { grid-template-columns: 1.3fr 1fr; }
  .dock-btn { gap: 6px; padding: 0 8px; font-size: 14px; }
  .dock-btn.primary svg { display: none; }
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-space) + env(safe-area-inset-bottom) + 14px);
  z-index: 11;
  transform: translate(-50%, 8px);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--edge-strong);
  background: var(--wl-bg-surface);
  color: var(--wl-white);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== Entrance ===== */
.rise { animation: rise 0.7s var(--ease-out) both; }
.rise[data-d="1"] { animation-delay: 0.45s; }
.rise[data-d="2"] { animation-delay: 0.55s; }
.rise[data-d="3"] { animation-delay: 0.65s; }
.rise[data-d="4"] { animation-delay: 0.75s; }

@keyframes card-in {
  from { transform: translateY(36px) rotateX(26deg) rotateY(-8deg) scale(0.94); }
  to { transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes dock-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card-float, .rise, .dock { animation: none; }
  .card-inner, .face { transition: none; }
  .cta, .cta-arrow, .row, .row-arrow, .dock-btn, .toast { transition: none; }
}

/* ===== 404 ===== */
.lost {
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
  padding-bottom: 48px;
  gap: 18px;
}
.lost .code { font-size: 12px; color: var(--wl-purple-soft); }
.lost h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 9vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lost p { color: var(--wl-gray-muted); }
.lost .cta { margin-top: 8px; }
