@import url("/apps/pokemon-card-scanner/assets/css/site.css");

/* Shared AnmolApps product layer. The imported foundation is the visual system
   created for the Pokémon Card Scanner launch page. */

body {
  background: var(--paper);
}

.nav {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 76px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav__inner {
  width: min(calc(100% - 40px), var(--max));
  max-width: none;
  height: 100%;
  margin-inline: auto;
  padding: 0;
  gap: 28px;
}

.nav__brand {
  gap: 11px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.nav__brand::before {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  content: "A";
  font-size: 0.92rem;
  font-weight: 950;
}

.nav__dot { display: none; }

.nav__links {
  justify-content: flex-end;
  gap: 20px;
}

.nav__link {
  padding: 7px 0;
  border-radius: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 750;
}

.nav__link:hover {
  background: transparent;
  color: var(--violet-dark);
}

.nav__actions .btn-store {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 17px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.aa-breadcrumb {
  display: flex;
  padding-top: 24px;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.aa-breadcrumb a {
  color: var(--violet-dark);
  text-decoration: none;
}

.aa-breadcrumb span[aria-hidden="true"] { opacity: 0.45; }

.product-hero {
  padding-top: clamp(40px, 6vw, 82px);
}

.product-hero .hero-grid {
  align-items: center;
}

.product-hero h1 {
  max-width: 760px;
  font-size: clamp(3.1rem, 6.4vw, 6rem);
}

.app-identity {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  gap: 14px;
}

.app-identity__icon,
.catalog-card__icon,
.download-icon {
  overflow: hidden;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.app-identity__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.app-identity__icon img,
.catalog-card__icon img,
.download-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-identity__name {
  display: block;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.25;
}

.app-identity__category {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 680;
}

.hero-rating {
  display: inline-flex;
  margin-top: 18px;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

.hero-rating strong { color: var(--ink); }

.product-phone {
  position: relative;
  z-index: 2;
  width: min(320px, 76vw);
  margin-inline: auto;
  padding: 11px;
  border: 3px solid var(--ink);
  border-radius: 50px;
  background: var(--ink);
  box-shadow: 18px 18px 0 var(--yellow);
  transform: rotate(3deg);
}

.product-phone::before {
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 50%;
  width: 94px;
  height: 24px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
  transform: translateX(-50%);
}

.product-phone img {
  width: 100%;
  aspect-ratio: 0.46;
  border-radius: 38px;
  object-fit: cover;
  object-position: top;
}

.product-phone__fallback {
  display: grid;
  min-height: 590px;
  padding: 65px 30px 35px;
  place-items: center;
  border-radius: 38px;
  background: linear-gradient(155deg, #fff9e4, #dcd6ff);
  text-align: center;
}

.product-phone__fallback img {
  width: 138px;
  height: 138px;
  border-radius: 32px;
}

.product-chip {
  position: absolute;
  z-index: 5;
  right: -18px;
  bottom: 88px;
  max-width: 220px;
  padding: 12px 15px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--mint);
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  transform: rotate(-3deg);
}

.answer-panel {
  display: grid;
  padding: clamp(30px, 5vw, 58px);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--yellow);
  box-shadow: 10px 10px 0 var(--ink);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
}

.answer-panel h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.answer-panel__copy {
  margin: 0;
  align-self: center;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 650;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature-card {
  min-height: 230px;
  padding: 30px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
}

.feature-card__number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #c9c1ff;
  font-size: 0.73rem;
  font-weight: 950;
}

.feature-card:nth-child(2) .feature-card__number { background: var(--mint); }
.feature-card:nth-child(3) .feature-card__number { background: var(--coral); }
.feature-card:nth-child(4) .feature-card__number { background: var(--yellow); }
.feature-card p { margin: 0; color: var(--ink-soft); }

.real-screenshots {
  display: grid;
  grid-auto-columns: minmax(230px, 290px);
  grid-auto-flow: column;
  gap: 26px;
  padding: 12px 8px 34px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
}

.real-screen {
  padding: 9px;
  border: 2px solid #fff;
  border-radius: 38px;
  background: #090c18;
  box-shadow: 9px 9px 0 rgba(255, 216, 77, 0.82);
  scroll-snap-align: start;
}

.real-screen img {
  width: 100%;
  aspect-ratio: 0.46;
  border-radius: 29px;
  object-fit: cover;
  object-position: top;
}

.notice-panel {
  display: grid;
  padding: 28px 32px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: #fff2ee;
  box-shadow: 6px 6px 0 var(--ink);
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 18px;
}

.notice-panel__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  font-weight: 950;
}

.notice-panel strong { display: block; margin-bottom: 5px; }
.notice-panel p { margin: 0; color: var(--ink-soft); }

.source-note {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.source-note a { color: var(--yellow); }

.compact-guide-grid .guide-card { min-height: 275px; }

.download-panel--app {
  grid-template-columns: 1.4fr auto;
}

.download-panel__brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.download-icon {
  width: 106px;
  height: 106px;
  flex: 0 0 auto;
  border-radius: 25px;
}

.download-actions {
  display: flex;
  margin-top: 25px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Homepage */
.home-hero h1 { max-width: 800px; }

.app-constellation {
  position: relative;
  width: min(520px, 90vw);
  min-height: 560px;
  margin-inline: auto;
}

.app-constellation::before {
  position: absolute;
  inset: 54px;
  border: 70px solid rgba(119, 101, 237, 0.13);
  border-radius: 50%;
  content: "";
}

.orbit-icon {
  position: absolute;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: #fff;
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(var(--rotate, 0));
}

.orbit-icon img { width: 100%; height: 100%; object-fit: cover; }
.orbit-icon--one { top: 14px; left: 50%; width: 145px; height: 145px; --rotate: 5deg; }
.orbit-icon--two { top: 170px; left: 18px; width: 126px; height: 126px; --rotate: -7deg; }
.orbit-icon--three { top: 210px; right: 12px; width: 132px; height: 132px; --rotate: 8deg; }
.orbit-icon--four { bottom: 14px; left: 35%; width: 150px; height: 150px; --rotate: -4deg; }

.constellation-chip {
  position: absolute;
  z-index: 3;
  top: 148px;
  left: 39%;
  padding: 11px 15px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
  transform: rotate(-4deg);
}

.launch-card {
  display: grid;
  padding: clamp(30px, 5vw, 54px);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--violet);
  box-shadow: 10px 10px 0 var(--ink);
  color: #fff;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px;
}

.launch-card h2 { margin-bottom: 10px; }
.launch-card p { max-width: 700px; margin: 0; color: rgba(255,255,255,.8); }

.catalog-group + .catalog-group { margin-top: 72px; }

.catalog-heading {
  display: flex;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.catalog-heading h3 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.catalog-heading span { color: var(--ink-soft); font-size: 0.8rem; font-weight: 800; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.catalog-card {
  position: relative;
  display: grid;
  min-height: 286px;
  padding: 28px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 7px 7px 0 var(--ink);
  grid-template-rows: auto 1fr auto;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.catalog-card:hover {
  box-shadow: 11px 11px 0 var(--ink);
  transform: translate(-4px, -4px);
}

.catalog-card::after {
  position: absolute;
  right: -44px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border: 32px solid var(--card-accent, rgba(119, 101, 237, 0.15));
  border-radius: 50%;
  content: "";
}

.catalog-card[data-theme="lime"] { --card-accent: rgba(132, 230, 195, .38); }
.catalog-card[data-theme="green"] { --card-accent: rgba(65, 187, 123, .25); }
.catalog-card[data-theme="yellow"] { --card-accent: rgba(255, 216, 77, .5); }
.catalog-card[data-theme="orange"] { --card-accent: rgba(255, 161, 75, .28); }
.catalog-card[data-theme="pink"], .catalog-card[data-theme="red"] { --card-accent: rgba(255, 123, 111, .28); }
.catalog-card[data-theme="cyan"] { --card-accent: rgba(75, 205, 220, .25); }
.catalog-card[data-theme="amber"] { --card-accent: rgba(225, 174, 67, .34); }
.catalog-card[data-theme="indigo"], .catalog-card[data-theme="blue"], .catalog-card[data-theme="violet"] { --card-accent: rgba(119, 101, 237, .22); }

.catalog-card[data-coming-soon="true"] {
  border-style: dashed;
  background: linear-gradient(145deg, #fff, #fff9dd);
}

.catalog-card[data-coming-soon="true"] .catalog-card__icon {
  display: grid;
  place-items: center;
  background: var(--yellow);
}

.catalog-card[data-coming-soon="true"] .catalog-card__icon img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}

.catalog-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.catalog-card__icon { width: 68px; height: 68px; border-radius: 17px; }
.catalog-card__keyword { color: var(--violet-dark); font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.catalog-card h4 { max-width: 380px; margin: 32px 0 9px; font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 900; line-height: 1.05; letter-spacing: -.04em; }
.catalog-card p { max-width: 430px; margin: 0; color: var(--ink-soft); font-size: .91rem; }
.catalog-card__link { z-index: 2; margin-top: 24px; font-size: .82rem; font-weight: 900; }

.guide-clusters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.guide-cluster {
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
}

.guide-cluster h3 { font-size: 1.45rem; }
.guide-list { display: grid; gap: 10px; }
.guide-link { display: block; padding-top: 12px; border-top: 1px solid var(--line); text-decoration: none; }
.guide-link strong { display: block; line-height: 1.3; }
.guide-link span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .8rem; line-height: 1.5; }
.guide-link:hover strong { color: var(--violet-dark); }

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.footer-brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 #fff;
  color: var(--ink);
}

@media (max-width: 980px) {
  .answer-panel { grid-template-columns: 1fr; }
  .app-constellation { min-height: 500px; }
  .download-panel--app { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { height: 68px; }
  .nav__inner { width: min(calc(100% - 28px), var(--max)); }
  .nav__links { display: none; }
  .nav__actions .btn-store { min-height: 40px; padding: 8px 13px; }
  .nav__brand::before { width: 36px; height: 36px; }
  .product-hero h1 { font-size: clamp(2.75rem, 13vw, 4.2rem); }
  .product-chip { right: -4px; }
  .feature-grid, .catalog-grid, .guide-clusters { grid-template-columns: 1fr; }
  .launch-card { grid-template-columns: 1fr; }
  .real-screenshots { grid-auto-columns: minmax(230px, 78vw); }
  .answer-panel, .launch-card { box-shadow: 7px 7px 0 var(--ink); }
  .download-panel__brand { align-items: flex-start; }
  .download-icon { width: 82px; height: 82px; border-radius: 20px; }
}

@media (max-width: 520px) {
  .nav__actions { display: none; }
  .product-phone { width: 270px; }
  .product-phone__fallback { min-height: 510px; }
  .app-constellation { min-height: 430px; }
  .orbit-icon--one { width: 116px; height: 116px; }
  .orbit-icon--two { top: 145px; width: 100px; height: 100px; }
  .orbit-icon--three { top: 180px; width: 105px; height: 105px; }
  .orbit-icon--four { width: 118px; height: 118px; }
  .constellation-chip { top: 120px; left: 33%; }
  .notice-panel { grid-template-columns: 1fr; padding: 24px; }
}
