/* mod-appoid landing. Bungee on the hero title to echo the mod-invest deck. */
@import url('https://fonts.googleapis.com/css2?family=Bungee&display=swap');

/* Tell the UA this page is already designed for dark — stops Chrome's
   auto-dark / Force-Dark heuristic from inverting screenshot thumbs
   (Damon: "the two shots after the bitcoin icon appear white in dark
   mode - look ok in normal mode"). Pairs with the <meta name="color-scheme">
   the okdunio landing wrapper emits. */
:root { color-scheme: dark; }

#appoid-app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: #0b0b14;
  color: #e4e4f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ap-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 56px;
  padding: 0 24px;
  background: rgba(11, 11, 20, 0.92);
  border-bottom: 1px solid #252540;
}
.ap-icon { justify-self: start; display: inline-flex; }
.ap-icon img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; display: block; }
.ap-top-spacer { justify-self: end; }
.ap-logo { height: 44px; width: auto; display: block; justify-self: center; }

/* Hero section — full-bleed background, with a centered 70%-wide
   content box. Title margins shrunk per Damon: -70% above title,
   -80% below the thumbs row. */
.ap-hero {
  position: relative;
  padding: 24px 0 10px;
  overflow: hidden;
}
.ap-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) brightness(.55);
}
.ap-hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,11,20,.35) 0%, rgba(7,11,20,.85) 75%, #0b0b14 100%);
}
.ap-hero-box {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 77%;
  max-width: 1210px;
  margin: 0 auto;
  padding: 14px 32px 8px;
  background: rgba(11, 11, 20, 0.78);
  border: 1px solid #353555;
  border-radius: 14px;
  backdrop-filter: blur(6px);
}
.ap-title {
  font-family: 'Bungee', system-ui, sans-serif;
  font-size: 38px;
  margin: 0 0 14px;
  letter-spacing: -.01em;
  color: #fff;
  line-height: 1.05;
}
.ap-title .ap-cyan   { color: #00e6d2; }
.ap-title .ap-orange { color: #f7931a; }
.ap-hero-box p {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #d4d4e4;
  margin: 0 0 18px;
}
.ap-hero-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  width: 100%;
}
/* Each thumb is a <figure> with an image + caption overlay revealed
   on hover. Caption: name (cyan) + short description. */
.ap-thumb {
  position: relative;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #353555;
  background: #1a1a2e;
  cursor: default;
  /* All five share the row equally → same width, one line, fills the full
     width; the 3rd thumb lands dead-centre. */
  flex: 1 1 0;
  min-width: 0;
}
.ap-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.ap-thumb figcaption {
  position: absolute;
  inset: 0;
  padding: 10px;
  background: linear-gradient(180deg, rgba(11,11,20,0.55) 0%, rgba(11,11,20,0.92) 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  opacity: 0;
  transition: opacity 140ms ease;
  pointer-events: none;
}
.ap-thumb:hover figcaption,
.ap-thumb:focus-within figcaption {
  opacity: 1;
}
.ap-thumb figcaption b {
  font-family: 'Bungee', system-ui, sans-serif;
  color: #00e6d2;
  font-size: 14px;
  letter-spacing: .02em;
  margin-bottom: 4px;
}
.ap-thumb figcaption span {
  color: #d4d4e4;
  font-size: 11px;
  line-height: 1.35;
}

.ap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 10px 56px 36px;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 820px) {
  .ap-grid { grid-template-columns: 1fr; padding: 10px 24px 24px; }
  .ap-hero-box { width: 92%; padding: 12px 18px 8px; }
  .ap-title { font-size: 28px; }
}

.ap-card {
  background: #12121f;
  border: 1px solid #252540;
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ap-card p { margin: 0; color: #c4c4d4; line-height: 1.45; }

.ap-card-gamoid .ap-gamoid-logo {
  width: 160px;
  height: auto;
  margin-bottom: 2px;
}
.ap-btn {
  align-self: flex-start;
  padding: 12px 22px;
  border-radius: 8px;
  background: #f7931a;
  color: #0b0b14;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}
.ap-btn:hover { background: #ffa838; }

.ap-card-deck h3 {
  margin: 0;
  font-size: 20px;
  color: #f7931a;
}
.ap-card-deck form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}
/* Two-column row: inputs stacked left, button to the right at full
   row height (Damon: "put the view deck button to the right of user
   name and password"). */
.ap-deck-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: stretch;
}
.ap-deck-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ap-card-deck input {
  background: #1a1a2e;
  border: 1px solid #353555;
  color: #e4e4f0;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
}
.ap-card-deck input:focus {
  outline: 0;
  border-color: #f7931a;
}
.ap-card-deck button {
  margin-top: 0;
  padding: 0 24px;
  background: #f7931a;
  color: #0b0b14;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.ap-card-deck button:hover { background: #ffa838; }
.ap-card-deck button:disabled { opacity: .5; cursor: wait; }
.ap-err {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(255, 70, 70, .15);
  border: 1px solid rgba(255, 70, 70, .35);
  border-radius: 6px;
  color: #ff8e8e;
  font-size: 13px;
}

/* /invest deck page — full-viewport iframe with a back button overlay
   in the top-left corner. */
.ap-deck-page {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #0b0b14;
  overflow: hidden;
}
.ap-back-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 8px 14px 8px 10px;
  background: rgba(11, 11, 20, 0.85);
  color: #e4e4f0;
  border: 1px solid #353555;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
}
.ap-back-btn:hover { background: rgba(247, 147, 26, 0.18); border-color: #f7931a; }
.ap-deck-page iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
