/* GRWD App teaser — charcoal handoff; store badges = platform chrome. */

.grwd-app {
  --grwd-app-surface: #464646;
  --grwd-app-ink: #ffffff;
  --grwd-app-muted: #d1d1d1;
  --grwd-app-accent: #96bb47;
  --grwd-app-on-accent: #000000;
  --grwd-app-line: rgba(255, 255, 255, 0.12);
  --grwd-app-store-bg: #000000;
  --grwd-app-store-ink: #ffffff;
  box-sizing: border-box;
  color: var(--grwd-app-ink);
  font-family: "Roboto", Arial, sans-serif;
}

.grwd-app *,
.grwd-app *::before,
.grwd-app *::after {
  box-sizing: border-box;
}

/* —— strip —— */
.grwd-app--strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  max-width: 720px;
  margin: 1.25rem auto 0;
  padding: 16px 18px;
  background: var(--grwd-app-surface);
  border: 1px solid var(--grwd-app-line);
  text-align: center;
}

.grwd-app--strip .grwd-app__text {
  margin: 0;
  flex: 1 1 100%;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--grwd-app-muted);
}

.grwd-app--strip .grwd-app__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

/* Home strip sits on canvas under the raised CTA band — not another #464646 slab */
body.home .grwd-app--strip[data-grwd-placement="home_strip"] {
  max-width: none;
  width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  padding: 1.35rem 1.25rem 1.6rem;
  background: #1a1a1a;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
}

/* Quiet home strip: text link + store badges only (no green open_app CTA) */
body.home .grwd-app--strip-quiet .grwd-app__text {
  flex: 1 1 auto;
  max-width: 40rem;
  color: var(--grwd-app-muted);
  font-size: 0.92rem;
}

body.home .grwd-app--strip-quiet .grwd-app__text-link {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--grwd-app-ink) !important;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

body.home .grwd-app--strip-quiet .grwd-app__text-link:hover,
body.home .grwd-app--strip-quiet .grwd-app__text-link:focus-visible {
  color: var(--grwd-app-accent) !important;
}

body.home .grwd-app--strip-quiet .grwd-app__actions {
  width: auto;
}

/* —— banner —— */
.grwd-app--banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1120px;
  margin: 0 0 1.5rem;
  padding: 24px 20px;
  background: var(--grwd-app-surface);
  border: 1px solid var(--grwd-app-line);
}

/* Request desk is 560px; keep the app teaser in that column. */
.grwd-app--banner.grwd-app--banner-narrow {
  max-width: 560px;
  margin: 1.5rem auto 0;
  padding: 20px 18px 22px;
  gap: 0;
}

.grwd-app--banner.grwd-app--banner-narrow .grwd-app__banner-media {
  display: none;
}

.grwd-app--banner.grwd-app--banner-narrow .grwd-app__title {
  font-size: 1.15rem;
}

.grwd-app--banner.grwd-app--banner-narrow .grwd-app__actions {
  gap: 8px;
}

@media (min-width: 768px) {
  .grwd-app--banner {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 200px);
    align-items: center;
    padding: 28px 32px;
    gap: 28px;
  }

  .grwd-app--banner.grwd-app--banner-wide {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 28px 32px 0;
    gap: 20px;
  }

  .grwd-app--banner.grwd-app--banner-narrow {
    grid-template-columns: 1fr;
    padding: 20px 18px 22px;
    gap: 0;
  }
}

.grwd-app--banner.grwd-app--banner-wide {
  overflow: hidden;
  padding-bottom: 0;
}

/* Decors archive: full-width row above the product grid. */
.tax-product_cat .grwd-app--banner {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  grid-column: 1 / -1;
  float: none;
  clear: both;
  margin: 0 0 1.75rem;
}

/* Copy left / mockup right — collection banner only. */
@media (min-width: 768px) {
  .grwd-app--banner.grwd-app--banner-split {
    grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
    align-items: stretch;
    min-height: 340px;
    padding: 0 0 0 32px;
    gap: 0;
    overflow: hidden;
  }

  .grwd-app--banner-split .grwd-app__banner-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 24px 28px 0;
  }

  .grwd-app--banner-split .grwd-app__title {
    font-size: 1.5rem;
  }

  .grwd-app--banner-split .grwd-app__banner-media {
    width: 100%;
    height: 100%;
    margin: 0;
    min-height: 340px;
    overflow: hidden;
  }

  .grwd-app--banner-split .grwd-app__device--wide {
    height: 100%;
  }

  .grwd-app--banner-split .grwd-app__device--wide .grwd-app__shot {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    object-position: 62% center;
  }
}

.grwd-app--banner-wide .grwd-app__banner-media {
  display: block;
  width: calc(100% + 40px);
  margin: 0 -20px;
}

@media (min-width: 768px) {
  .grwd-app--banner-wide .grwd-app__banner-media {
    width: calc(100% + 64px);
    margin: 0 -32px;
  }

  .grwd-app--banner-wide.grwd-app--banner-split .grwd-app__banner-media {
    width: 100%;
    height: 100%;
    margin: 0;
    min-height: 340px;
  }
}

.grwd-app__banner-copy {
  min-width: 0;
}

.grwd-app__kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grwd-app-muted);
}

.grwd-app__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--grwd-app-ink);
}

.grwd-app--banner .grwd-app__text {
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--grwd-app-muted);
}

.grwd-app--banner .grwd-app__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.grwd-app__guest {
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--grwd-app-muted);
}

.grwd-app__guest-link {
  color: var(--grwd-app-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.grwd-app__guest-link:hover,
.grwd-app__guest-link:focus-visible {
  color: var(--grwd-app-accent);
}

.grwd-app__note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--grwd-app-muted);
}

.grwd-app__banner-media {
  display: flex;
  justify-content: center;
}

/* Phone frame around portal screenshot */
.grwd-app__device {
  margin: 0;
  padding: 8px 8px 10px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  max-width: 168px;
}

.grwd-app__shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #0d0d0d;
}

.grwd-app__device.grwd-app__device--wide {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.grwd-app__device--wide .grwd-app__shot {
  border-radius: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}

/* —— card (PDP) —— */
.grwd-app--card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 24rem;
  margin: 0.75rem 0 0;
  padding: 12px 14px 14px;
  background: #3d3d3d;
  border: 1px solid var(--grwd-app-line);
  border-radius: 4px;
}

.grwd-app--card .grwd-app__kicker {
  margin: 0;
}

.grwd-app--card .grwd-app__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--grwd-app-muted);
}

.grwd-app--card .grwd-app__actions {
  margin-top: 4px;
}

/* —— Primary open_app CTA —— */
.grwd-app__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  box-sizing: border-box;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  border-radius: 0;
  cursor: pointer;
}

.grwd-app__cta--primary {
  background: var(--grwd-app-accent);
  color: var(--grwd-app-on-accent) !important;
  -webkit-text-fill-color: var(--grwd-app-on-accent);
}

.grwd-app__cta--primary:hover,
.grwd-app__cta--primary:focus,
.grwd-app__cta--primary:focus-visible {
  color: var(--grwd-app-on-accent) !important;
  -webkit-text-fill-color: var(--grwd-app-on-accent);
  text-decoration: none !important;
  opacity: 0.92;
}

/* —— Official-style store badges —— */
.grwd-app__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Compact strip: still show badges (recognisable), wrap under CTA on narrow */
.grwd-app__stores--compact {
  display: flex;
}

.grwd-app__store {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 148px;
  padding: 7px 14px 7px 11px;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1.05;
  background: var(--grwd-app-store-bg);
  color: var(--grwd-app-store-ink);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.grwd-app__store:hover,
.grwd-app__store:focus {
  color: var(--grwd-app-store-ink);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.grwd-app__store-icon {
  flex: 0 0 auto;
  display: block;
  width: 22px;
  height: 22px;
}

.grwd-app__store--apple .grwd-app__store-icon {
  width: 20px;
  height: 22px;
}

.grwd-app__store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  text-align: left;
}

.grwd-app__store-label {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  opacity: 0.92;
  white-space: nowrap;
}

.grwd-app__store-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

/* Play stays black badge; colour lives in the triangle icon only */
.grwd-app__store--play {
  background: #000000;
}

.grwd-app__store--apple {
  background: #000000;
}

@media (max-width: 420px) {
  .grwd-app__store {
    min-width: 0;
    flex: 1 1 calc(50% - 4px);
    padding: 7px 10px;
    gap: 8px;
  }

  .grwd-app__store-name {
    font-size: 0.85rem;
  }
}
