/* Quickish catalog landing pages. Shared by Chatish, Ticketish, and Shopish. */

.catalog-page {
  --app-shot-position: top left;
  min-width: 320px;
}

.catalog-page header {
  position: absolute;
  inset: 0 0 auto;
}

.catalog-page .brand-product {
  color: var(--dim);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
}

.catalog-page .hero {
  min-height: min(900px, 100svh);
  padding: 128px 24px 72px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.catalog-page .hero::before {
  content: "";
  position: absolute;
  width: min(720px, 74vw);
  aspect-ratio: 1;
  left: -20%;
  top: 8%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  filter: blur(80px);
  pointer-events: none;
}

.hero-grid {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(480px, 1.18fr);
  gap: clamp(40px, 6vw, 82px);
  align-items: center;
  position: relative;
}

.hero-copy { min-width: 0; }

.chatish .hero-grid {
  grid-template-columns: minmax(0, .72fr) minmax(520px, 1.28fr);
}

.ticketish .hero-grid {
  grid-template-columns: minmax(520px, 1.22fr) minmax(0, .78fr);
  gap: clamp(42px, 5vw, 70px);
}

.ticketish .hero-copy {
  grid-column: 2;
  grid-row: 1;
}

.ticketish .hero-visual {
  grid-column: 1;
  grid-row: 1;
}

.shopish .hero {
  min-height: 980px;
  padding-bottom: 86px;
}

.shopish .hero-grid {
  width: min(1180px, 100%);
  grid-template-columns: 1fr;
  gap: 54px;
}

.shopish .hero-copy {
  width: min(820px, 100%);
  margin: 0 auto;
  text-align: center;
}

.shopish .hero-lede {
  margin-left: auto;
  margin-right: auto;
}

.shopish .hero-actions,
.shopish .promise-row {
  justify-content: center;
}

.shopish .hero-visual {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.kicker,
.proof-label,
.card-kicker,
.step-no,
.mini-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 10.5px;
  font-weight: 700;
}

.kicker {
  color: var(--accent-text);
  margin: 0 0 20px;
}

.hero h1 {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(45px, 7.1vw, 86px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .96;
  white-space: nowrap;
}

.ticketish .hero h1 { font-size: clamp(40px, 5.2vw, 68px); }

.hero h1 .caret,
.hero h1 .under { color: var(--accent-text); }

.hero-lede {
  max-width: 590px;
  margin: 25px 0 0;
  color: var(--dim);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions,
.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.hero .btn.primary,
.source-panel .btn.primary {
  box-shadow: 5px 5px 0 var(--hard-caster);
}

.hero .btn.primary:active,
.source-panel .btn.primary:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--hard-caster);
}

.hero .btn.ghost,
.source-panel .btn.ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.source-panel .btn.ghost {
  color: #0b0b0c;
  border-color: rgba(11,11,12,.28);
  background: transparent;
}

.source-panel .btn.ghost:hover {
  border-color: #0b0b0c;
  background: rgba(11,11,12,.04);
}

.source-panel .btn.ghost:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}

.promise-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.promise {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  white-space: nowrap;
}

.promise.live { color: var(--accent-text); }

.app-window {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface-2);
  overflow: hidden;
  box-shadow: 9px 9px 0 var(--hard-caster);
  transform: rotate(.7deg);
}

.ticketish .app-window { transform: rotate(-.65deg); }
.shopish .app-window { transform: none; border-radius: 28px 28px var(--r-lg) var(--r-lg); }

.window-bar {
  min-height: 46px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: #1c1c1f;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #414145;
}

.window-url {
  min-width: 0;
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-live {
  margin-left: auto;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.app-window img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: var(--app-shot-position);
}

.window-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px 14px;
  color: #ececea;
  background: #141416;
  font-family: var(--mono);
  font-size: 11.5px;
  text-decoration: none;
}

.window-link span:last-child { color: var(--accent); }
.window-link:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }

.proof-strip {
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: #0d0d0f;
  color: #fbfbf9;
}

.proof-strip-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof {
  min-width: 0;
  padding: 24px;
  border-left: 1px solid rgba(255,255,255,.14);
}

.proof:last-child { border-right: 1px solid rgba(255,255,255,.14); }
.proof-label { color: #78787d; }
.proof-value { margin-top: 7px; font-size: 14px; font-weight: 600; }
.proof-value .green { color: var(--accent); }

.story-section {
  padding: 112px 24px;
}

.story-section.dark {
  background: #0d0d0f;
  color: #fbfbf9;
  border-top: 1px solid rgba(255,255,255,.14);
}

.story-section.light {
  background: #f6f5f1;
  color: #0b0b0c;
  border-top: 1px solid rgba(11,11,12,.12);
}

.story-inner { width: min(1080px, 100%); margin: 0 auto; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(300px, .55fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 46px;
}

.section-head h2,
.source-panel h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -.045em;
}

.section-head p,
.source-panel > div > p {
  margin: 0;
  color: #aaa;
  font-size: 17px;
  line-height: 1.65;
}

.story-section.light .section-head p { color: #69675f; }

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

.feature-card {
  min-height: 250px;
  padding: 25px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  background: #141416;
  display: flex;
  flex-direction: column;
}

.feature-card .glyph {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 18px;
}

.feature-card h3 {
  margin: auto 0 8px;
  font-size: 20px;
  letter-spacing: -.02em;
}

.feature-card p {
  margin: 0;
  color: #9b9b9e;
  line-height: 1.55;
  font-size: 14px;
}

.showcase-section {
  padding: 112px 24px 124px;
  overflow: hidden;
}

.showcase-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.showcase-intro {
  max-width: 760px;
  margin-bottom: 48px;
}

.showcase-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.showcase-intro h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -.045em;
}

.showcase-intro > p:last-child {
  max-width: 640px;
  margin: 18px 0 0;
  color: #aaa;
  font-size: 17px;
  line-height: 1.65;
}

.showcase-grid {
  display: grid;
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.showcase-shot {
  margin: 0;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #141416;
  box-shadow: 7px 7px 0 rgba(0,0,0,.5);
}

.showcase-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
}

.showcase-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px 19px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #f5f5f2;
}

.showcase-shot figcaption span {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.showcase-shot figcaption strong {
  font-size: 14px;
  text-align: right;
}

.chatish .showcase-section {
  background: #171719;
  color: #fbfbf9;
  border-top: 1px solid rgba(255,255,255,.14);
}

.ticketish .showcase-section {
  background: #e9e6de;
  color: #0b0b0c;
  border-top: 1px solid rgba(11,11,12,.14);
}

.ticketish .showcase-intro > p:last-child { color: #68665f; }
.ticketish .showcase-kicker { color: var(--accent-deep); }
.ticketish .showcase-shot { border-color: #0b0b0c; box-shadow: 8px 8px 0 #0b0b0c; }
.ticketish .showcase-shot figcaption { background: #fbfbf9; color: #0b0b0c; border-top-color: rgba(11,11,12,.14); }

.shopish .showcase-section {
  background: #fbfbf9;
  color: #0b0b0c;
  border-top: 1px solid rgba(11,11,12,.14);
}

.shopish .showcase-inner { width: min(1180px, 100%); }
.shopish .showcase-intro { margin-left: auto; text-align: right; }
.shopish .showcase-intro > p:last-child { margin-left: auto; color: #68665f; }
.shopish .showcase-kicker { color: var(--accent-deep); }
.shopish .showcase-shot { border-color: #0b0b0c; box-shadow: 8px 8px 0 #0b0b0c; }
.shopish .showcase-shot figcaption { background: #0b0b0c; }

@media (min-width: 941px) {
  .showcase-grid { display: block; }

  .chatish .showcase-grid { padding: 0 4% 58px 0; }
  .chatish .showcase-shot:first-child { width: 82%; }
  .chatish .showcase-shot:nth-child(2) {
    width: 49%;
    margin: -150px 0 0 auto;
    position: relative;
    z-index: 2;
  }

  .ticketish .showcase-grid { padding: 54px 0 12px; }
  .ticketish .showcase-shot:first-child {
    width: 52%;
    position: relative;
    z-index: 2;
    transform: rotate(-.55deg);
  }
  .ticketish .showcase-shot:nth-child(2) {
    width: 82%;
    margin: -250px 0 0 auto;
    position: relative;
    z-index: 1;
  }

  .shopish .showcase-grid { padding: 0 0 48px; }
  .shopish .showcase-shot:first-child {
    width: 86%;
    margin-left: auto;
  }
  .shopish .showcase-shot:nth-child(2) {
    width: 48%;
    margin: -155px auto 0 0;
    position: relative;
    z-index: 2;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(11,11,12,.13);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 7px 7px 0 #0b0b0c;
  background: #fbfbf9;
}

.step { padding: 30px; min-height: 250px; }
.step + .step { border-left: 1px solid rgba(11,11,12,.13); }
.step-no { color: var(--accent-deep); }
.step h3 { margin: 64px 0 9px; font-size: 22px; letter-spacing: -.025em; }
.step p { margin: 0; color: #68665f; font-size: 14px; line-height: 1.6; }

.source-section {
  padding: 0 24px 112px;
  background: #f6f5f1;
  color: #0b0b0c;
}

.source-panel {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr);
  gap: 56px;
  align-items: center;
  border: 1px solid #0b0b0c;
  border-radius: var(--r-xl);
  background: #fbfbf9;
  box-shadow: 8px 8px 0 #0b0b0c;
}

.source-panel .card-kicker { color: var(--accent-deep); margin: 0 0 18px; }
.source-panel > div > p { color: #68665f; margin-top: 17px; }

.source-terminal {
  background: #141416;
  color: #f0f0ee;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: 5px 5px 0 #0b0b0c;
  font-family: var(--mono);
  font-size: 12px;
}

.source-terminal .mini-label { color: #737379; margin-bottom: 20px; }
.source-line { padding: 9px 0; display: flex; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); }
.source-line:first-of-type { border-top: 0; }
.source-line .ok { color: var(--accent); }
.source-line .dim { color: #97979b; }

.catalog-page footer { border-top-color: var(--line); }
.catalog-page .foot-cols { max-width: 760px; }
.catalog-page .foot-col { min-width: 170px; }

.sibling-apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
}

.sibling-apps span { color: var(--dim); }
.sibling-apps a { color: var(--fg); text-decoration: none; }
.sibling-apps a:hover { color: var(--accent-text); }

@media (max-width: 940px) {
  .catalog-page header { position: relative; }
  .catalog-page .hero { min-height: 0; padding-top: 54px; }
  .hero-grid,
  .chatish .hero-grid,
  .ticketish .hero-grid,
  .shopish .hero-grid { grid-template-columns: 1fr; }
  .ticketish .hero-copy,
  .ticketish .hero-visual { grid-column: 1; }
  .ticketish .hero-copy { grid-row: 1; }
  .ticketish .hero-visual { grid-row: 2; }
  .shopish .hero { min-height: 0; padding-bottom: 72px; }
  .hero-copy { text-align: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-actions, .promise-row { justify-content: center; }
  .hero-visual { width: min(720px, 100%); margin: 0 auto; }
  .section-head, .source-panel { grid-template-columns: 1fr; gap: 26px; }
  .showcase-grid,
  .chatish .showcase-grid,
  .ticketish .showcase-grid,
  .shopish .showcase-grid { grid-template-columns: 1fr; }
  .showcase-shot { width: auto; margin: 0; transform: none; }
}

@media (max-width: 720px) {
  .catalog-page .brand-product { display: none; }
  .catalog-page .hero { padding: 42px 17px 58px; }
  .hero-grid { gap: 30px; }
  .hero h1 { font-size: clamp(40px, 14vw, 64px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .promise-row { gap: 6px; }
  .promise { font-size: 9.5px; }
  .app-window { border-radius: var(--r-lg); box-shadow: 6px 6px 0 var(--hard-caster); transform: none !important; }
  .window-bar { min-height: 39px; padding: 8px 10px; }
  .window-dot { width: 8px; height: 8px; }
  .window-url { font-size: 9px; }
  .window-link { display: none; }
  .proof-strip-inner { grid-template-columns: 1fr 1fr; }
  .proof { padding: 18px; }
  .proof:nth-child(3) { border-top: 1px solid rgba(255,255,255,.14); }
  .proof:nth-child(4) { border-top: 1px solid rgba(255,255,255,.14); }
  .story-section { padding: 76px 17px; }
  .showcase-section { padding: 76px 17px 84px; }
  .showcase-intro { margin-bottom: 30px; }
  .showcase-intro > p:last-child { font-size: 15px; }
  .shopish .showcase-intro { text-align: left; }
  .shopish .showcase-intro > p:last-child { margin-left: 0; }
  .showcase-shot figcaption { align-items: flex-start; flex-direction: column; gap: 7px; }
  .showcase-shot figcaption strong { text-align: left; }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-head p { font-size: 15px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .feature-card { min-height: 210px; }
  .step { min-height: 210px; }
  .step + .step { border-left: 0; border-top: 1px solid rgba(11,11,12,.13); }
  .step h3 { margin-top: 46px; }
  .source-section { padding: 0 17px 80px; }
  .source-panel { padding: 28px 22px; }
  .source-actions { flex-direction: column; align-items: stretch; }
  .source-actions .btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
