/* Renan Matos — addon card identity system */

.addon-open {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.addon-open svg {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 18px;
  height: 18px;
  opacity: .55;
}
.addon-open svg, .addon-close svg, .addon-gumroad svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.addon-open:focus-visible { outline: 2px solid var(--white); outline-offset: -6px; }

.addon-dialog {
  position: fixed;
  width: min(1240px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100svh - 48px);
  margin: auto;
  padding: clamp(28px, 4vw, 52px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--white);
  background: var(--ink);
}
.addon-dialog::backdrop { background: rgba(0, 0, 0, .86); backdrop-filter: blur(8px); }
.addon-dialog[open] { animation: dialogIn 300ms var(--ease) both; }
.addon-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: -8px -8px -32px 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
}
.addon-close svg { width: 18px; height: 18px; }
.addon-close:hover { background: var(--ink-soft); }
.addon-detail-heading { margin: 0 40px 30px 0; }
.addon-eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.addon-detail-heading h2 { margin: 0; font-size: clamp(40px, 5.5vw, 72px); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.addon-subtitle { margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.addon-detail-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr); gap: clamp(24px, 3vw, 42px); align-items: start; }
.addon-player { min-width: 0; }
.addon-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; object-fit: contain; }
.addon-description p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.addon-gumroad { display: inline-flex; align-items: center; gap: 20px; min-height: 46px; margin-top: 8px; padding: 10px 0; border-bottom: 1px solid var(--white); color: var(--white); font-size: 13px; text-decoration: none; }
.addon-gumroad:hover { color: var(--muted); }
.addon-gumroad svg { width: 18px; height: 18px; }
.addon-video-error { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) {
  .addon-detail-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .addon-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); padding: 28px 20px; border-radius: 16px; }
  .addon-detail-heading { margin-right: 36px; margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .addon-dialog[open] { animation: none; }
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border: 0;
}

.tool-card.addon-identity-card {
  --tool-g1: #ff7a00;
  --tool-g2: #ff2558;

  container-type: inline-size;
  position: relative;
  min-width: 0;
  min-height: 380px;
  display: block;
  padding: 28px 26px 26px;
  overflow: hidden;
  isolation: isolate;

  border: 1px solid rgba(246, 244, 239, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(
      440px 280px at 14% 118%,
      color-mix(in srgb, var(--tool-g2) 12%, transparent),
      color-mix(in srgb, var(--tool-g1) 6%, transparent) 44%,
      transparent 72%
    ),
    #0a0a0a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.015),
    0 16px 40px rgba(0, 0, 0, 0.22);

  transition:
    transform 280ms var(--ease),
    border-color 280ms ease,
    background-color 280ms ease;
}

.tool-card.addon-identity-card:hover {
  background:
    radial-gradient(
      440px 280px at 14% 118%,
      color-mix(in srgb, var(--tool-g2) 15%, transparent),
      color-mix(in srgb, var(--tool-g1) 7%, transparent) 44%,
      transparent 72%
    ),
    #0d0d0c;
  border-color: rgba(246, 244, 239, 0.20);
  transform: translateY(-2px);
}

/* Fine gradient line */
.tool-card.addon-identity-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 2px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--tool-g1), var(--tool-g2));
  pointer-events: none;
}

/* Very subtle ghost word */
.tool-card.addon-identity-card::before {
  content: attr(data-tool);
  position: absolute;
  right: -0.08em;
  bottom: -0.16em;
  z-index: -1;

  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 244, 239, 0.04);
  font-size: clamp(66px, 24cqw, 112px);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.78;
  text-transform: uppercase;

  pointer-events: none;
  user-select: none;
}

.tool-card.addon-identity-card .tool-card__body {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.tool-card.addon-identity-card h3 {
  display: block;
  width: max-content;
  max-width: 100%;

  margin: 8px 0 24px -2px;
  padding: 18px 12px 20px 0;
  overflow: visible;

  font-family: "Creativo Local", "Comfortaa", "Archivo", sans-serif;
  font-size: clamp(66px, 20cqw, 104px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.075em;
  white-space: nowrap;
  text-transform: lowercase;

  background: linear-gradient(105deg, var(--tool-g1) 0%, var(--tool-g2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Extra vertical breathing room for the tallest wordmarks */
.tool-card.addon-identity-card[data-tool="stitchr"] h3,
.tool-card.addon-identity-card[data-tool="groomr"] h3 {
  font-size: clamp(62px, 18.5cqw, 98px);
  line-height: 1.18;
  padding-top: 22px;
  padding-bottom: 24px;
}

.tool-card.addon-identity-card .tool-card__description {
  position: relative;
  z-index: 1;
  max-width: 34ch;
  margin: 0;

  color: #a3a3a3;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}


/* Remove the old card UI completely. */
.tool-card__meta,
.tool-status,
.tool-card__release,
.tool-tags,
.tool-card__link,
.tools-note {
  display: none !important;
}

@media (max-width: 1120px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tool-card.addon-identity-card {
    min-height: 340px;
    border-radius: 20px;
  }

  .tool-card.addon-identity-card::after {
    border-radius: 20px 20px 0 0;
  }

  .tool-card.addon-identity-card h3 {
    font-size: clamp(68px, 21cqw, 100px);
  }

  .tool-card.addon-identity-card[data-tool="stitchr"] h3,
  .tool-card.addon-identity-card[data-tool="groomr"] h3 {
    font-size: clamp(64px, 19.5cqw, 94px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card.addon-identity-card {
    transition: none;
  }

  .tool-card.addon-identity-card:hover {
    transform: none;
  }
}

/* === ULTRA CLEAN ADDONS 2026 === */

.tool-card.addon-identity-card {
  min-height: 150px !important;
  display: flex !important;
  align-items: center !important;
  padding: 18px 20px !important;
}

.tool-card.addon-identity-card h3,
.tool-card.addon-identity-card[data-tool="stitchr"] h3,
.tool-card.addon-identity-card[data-tool="groomr"] h3 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(28px, 2.5vw, 42px) !important;
}

.tool-card.addon-identity-card .tool-card__description,
.tool-card__meta,
.tool-status,
.tool-card__release,
.tool-tags,
.tool-card__link,
.tools-note {
  display: none !important;
}


/* === IRIS STUDIO CARD === */


.tool-card.addon-identity-card[data-tool="iris-studio"] h3 {
  text-transform: none !important;
  letter-spacing: -0.045em !important;
  font-family: "Archivo", sans-serif !important;
  font-size: clamp(24px, 2.25vw, 38px) !important;
}


/* === ORGANIZED TOOLS GRID 2026 === */

/* Eight tools: balanced 4 x 2 desktop composition. */
.tools-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch;
}

.tool-card.addon-identity-card {
  min-height: 168px !important;
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center;
  padding: 20px 22px !important;
}

.tool-card.addon-identity-card .tool-card__body {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Use the requested product names exactly as written. */
.tool-card.addon-identity-card h3,
.tool-card.addon-identity-card[data-tool="stitchr"] h3,
.tool-card.addon-identity-card[data-tool="groomr"] h3,
.tool-card.addon-identity-card[data-tool="iris-studio"] h3 {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  text-transform: none !important;
  white-space: nowrap;
  font-family: "Archivo", sans-serif !important;
  font-size: clamp(28px, 2.45vw, 44px) !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: -0.045em !important;
}


/* Keep the ghost identity but make it quieter and aligned. */
.tool-card.addon-identity-card::before {
  right: -0.03em;
  bottom: -0.18em;
  opacity: .72;
}

@media (max-width: 1120px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .tools-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .tool-card.addon-identity-card {
    min-height: 138px !important;
  }

  .tool-card.addon-identity-card h3,
  .tool-card.addon-identity-card[data-tool="stitchr"] h3,
  .tool-card.addon-identity-card[data-tool="groomr"] h3,
  .tool-card.addon-identity-card[data-tool="iris-studio"] h3 {
    font-size: clamp(27px, 9vw, 42px) !important;
  }
}

/* Each tool has its own color family; Iris Studio keeps its existing identity. */
.tool-card.addon-identity-card[data-tool="iris-studio"] {
  --tool-g1: #6b5cff;
  --tool-g2: #28c7ff;
}

.tool-card.addon-identity-card[data-tool="groomr"] {
  --tool-g1: #00b85b;
  --tool-g2: #6bdf95;
}

.tool-card.addon-identity-card[data-tool="stitchr"] {
  --tool-g1: #e73c91;
  --tool-g2: #ff97c2;
}

.tool-card.addon-identity-card[data-tool="weavr"] {
  --tool-g1: #d8a600;
  --tool-g2: #ffe38c;
}

.tool-card.addon-identity-card[data-tool="cuttr"] {
  --tool-g1: #ff7a00;
  --tool-g2: #ffb86b;
}

.tool-card.addon-identity-card[data-tool="drawr"] {
  --tool-g1: #a3d900;
  --tool-g2: #dcff80;
}

.tool-card.addon-identity-card[data-tool="bridgr"] {
  --tool-g1: #00b6cc;
  --tool-g2: #7ae7f2;
}

.tool-card.addon-identity-card[data-tool="dformr"] {
  --tool-g1: #e44242;
  --tool-g2: #ff9590;
}
