/*
 * Astry Brain reskin — ports the astry-brain (apps/web) light-mode design
 * onto the static Harvey landing export without touching its layout.
 * Loaded after /hv/_next/static/chunks/*.css so every rule here wins the cascade.
 *
 * Source of truth: astry-brain/apps/web/src/app/globals.css + tailwind.config.ts
 */

/* ---- Fonts: Suisse Intl (copied from astry-brain/apps/web/public/fonts/suisse) ---- */

@font-face {
  font-family: "Suisse Intl";
  src: url(/hv/fonts/suisse/suisse-intl-light.woff2) format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Intl";
  src: url(/hv/fonts/suisse/suisse-intl-regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Intl";
  src: url(/hv/fonts/suisse/suisse-intl-medium.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Intl";
  src: url(/hv/fonts/suisse/suisse-intl-semibold.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Intl";
  src: url(/hv/fonts/suisse/suisse-intl-bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Beat the next/font module classes on <html> (same specificity, later wins) */
  --harvey-sans: "Suisse Intl";
  /* astry-brain has no serif face — everything is Suisse Intl */
  --harvey-serif: "Suisse Intl";
  --font-harvey-sans: "Suisse Intl", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-harvey-serif: "Suisse Intl", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- Palette: Harvey warm grays -> astry-brain neutrals ----
   * Every [data-theme] block maps its semantic tokens onto these primitives,
   * so overriding them repaints the whole page. */
  --color-gray-50-ivory: #ffffff; /* --bg: page ground / text on dark    */
  --color-gray-100: #f5f5f5;      /* --selected: hover/active fill       */
  --color-gray-200: #e8e8e8;      /* --border                            */
  --color-gray-300: #dadada;      /* --border-strong                     */
  --color-gray-400: #b3b3b3;
  --color-gray-500: #7f7f7f;      /* --t-subtle                          */
  --color-gray-600: #5d5d5d;      /* --t-default (body text)             */
  --color-gray-700: #454545;
  --color-gray-800: #292929;      /* --t-strong (headings)               */
  --color-gray-900: #212121;      /* dark surface                        */
  --color-gray-950-ink: #1a1a1a;  /* dark section ground                 */

  /* Accent: Infra Red replaces Harvey red */
  --color-red-500: #e43d1a;       /* --accent                            */
  --color-red-50: #fdefed;        /* --accent-soft flattened on white    */

  /* ---- Radius: astry-brain two-step scale (10px rows/buttons, 16px cards) ----
   * rounded-lg -> var(--radius) = 16px; rounded-sm overridden below to 10px. */
  --radius: 16px;
}

/* astry-brain --radius-sm: 10px (rows, buttons, tiles) */
.rounded-sm {
  border-radius: 10px;
}

/* ---- Global type signatures ---- */

body {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Large text tracks tighter (astry-brain: -0.02em on headings/display) */
h1, h2, h3,
.text-2xl, .text-3xl, .text-4xl, .text-5xl, .text-6xl, .text-7xl {
  letter-spacing: -0.02em;
}

/* ---- Interaction signatures ---- */

::selection {
  background-color: #e43d1a;
  color: #ffffff;
}

*:focus-visible {
  outline: 2px solid #e43d1a;
  outline-offset: 2px;
}

/* Scrollbar: native (custom scrollbar removed on request) */

/* ---- Rebrand: hide footer items with no Astry destination ---- */
footer nav[class*="md:grid-cols-5"] > div:nth-child(1) ul li:nth-child(n+5),
footer nav[class*="md:grid-cols-5"] > div:nth-child(2) ul li:nth-child(n+3),
footer nav[class*="md:grid-cols-5"] > div:nth-child(3) ul li:nth-child(1),
footer nav[class*="md:grid-cols-5"] > div:nth-child(3) ul li:nth-child(2),
footer nav[class*="md:grid-cols-5"] > div:nth-child(3) ul li:nth-child(6),
footer nav[class*="md:grid-cols-5"] > div:nth-child(4) ul li:nth-child(2),
footer nav[class*="md:grid-cols-5"] > div:nth-child(4) ul li:nth-child(3),
footer nav[class*="md:grid-cols-5"] > div:nth-child(4) ul li:nth-child(4),
footer nav[class*="md:grid-cols-5"] > div:nth-child(4) ul li:nth-child(8),
footer nav[class*="md:grid-cols-5"] > div:nth-child(5) ul li:nth-child(3) {
  display: none;
}

/* Mobile hamburger re-enabled: menus now carry Astry content */

/* Marquee client logos: our SVGs have tight viewBoxes (no built-in padding),
   so cap their rendered height well below the original 60px slot */
img[class*="h-[60px]"] {
  height: 30px;
}
img[class*="h-[60px]"][alt="Eight Advisory"] {
  height: 28px;
}
img[class*="h-[60px]"][alt="Endemol"] {
  height: 34px;
}

/* Ticker: align the section heading with the focused (opaque) wheel word,
   which sits one notch above the wheel's geometric center */
h2.text-body-1.text-balance.font-medium {
  transform: translateY(-30px);
}

/* Header: Astry mark before the wordmark (pseudo-element keeps hydration intact) */
header a[aria-label="Home"] > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
header a[aria-label="Home"] > div::before {
  content: "";
  display: block;
  width: 24px;
  height: 19px;
  /* mask + currentColor: white over dark sections, ink over light ones */
  background-color: currentColor;
  -webkit-mask: url(/hv/astry-mark.svg) no-repeat center / contain;
  mask: url(/hv/astry-mark.svg) no-repeat center / contain;
}

/* Testimonials: no Astry logo under the quotes */
img[src*="bac54c7dcffff7853b25908073a829b723031e9c"] {
  display: none;
}

/* Card overlays (h-8 slot): big "client x astry" lockups */
img[class*="h-8"][class*="object-contain"] {
  height: 42px;
}
img[class*="h-8"][src="/hv/astry-mark.svg"] {
  height: 34px;
}
/* Bottom carousel strip (h-full slot): plain client logos, never the x lockup */
img[class*="h-full"][class*="object-contain"] {
  max-height: 30px;
}
img[class*="h-full"][src="/hv/lockup-eight.svg"] {
  content: url("/brand/clients/eight-advisory.svg");
}
img[class*="h-full"][src="/hv/lockup-banijay.svg"] {
  content: url("/hv/banijay-white.svg");
}
img[class*="h-full"][src="/hv/lockup-endemol.svg"] {
  content: url("/brand/clients/endemol.svg");
}
img[class*="h-full"][src="/hv/lockup-oopercast.svg"] {
  content: url("/hv/oopercast-white.svg");
  max-height: 17px;
}
/* Strip: drop the bare astry-mark entries (scenario cards), dividers included */
div.contents:has(> button[aria-label="Go to Astry"]) {
  display: none;
}

/* Product demo: keep the render's black backdrop as the player frame */
.post-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  outline: none;
}

/* Oopercast wordmark is extremely wide (14:1): keep it modest in the marquee */
img[class*="h-[60px]"][alt="Oopercast"] {
  height: 17px;
}

/* Hero: stronger black gradient behind the headline */
div[class*="from-black"][class*="w-11/12"] {
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  width: 62%;
}

/* Security grid: plain facts, no certification-style icons */
img[src*="0d3a7a49ed52f40d715bc3fdc7a25fb9eb559082"],
img[src*="6abcb754d5f2b1880712867d5e0127af9ca545d1"],
img[src*="2abf08853b267ca4912c770da034d6736e5b341d"],
img[src*="64ad46295013280ed1997a00745ee6e6251077f0"] {
  display: none;
}

/* Security grid: small clean line icons */
img[src^="/hv/icon-"] {
  display: block;
  width: 88px;
  height: 88px;
  max-width: 88px;
}

/* Testimonials: rounded profile photos, tighter presentation */
img[class*="rounded-image"] {
  border-radius: 16px;
}

/* ---- Owned mega-menu (replaces the buggy stacked React panels) ---- */
#astry-menu {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 60;
  background: #1a1a1a;
  border-top: 1px solid #292929;
  border-bottom: 1px solid #292929;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
#astry-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#astry-menu .am-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 48px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 56px;
  align-items: start;
  transition: opacity 120ms ease;
}
#astry-menu.switching .am-inner { opacity: 0; }
#astry-menu .am-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 40px;
}
#astry-menu .am-link {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 140ms ease;
}
#astry-menu .am-link:hover { background: #212121; }
#astry-menu .am-t {
  display: block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
#astry-menu .am-link:hover .am-t { color: #e43d1a; }
#astry-menu .am-d {
  display: block;
  margin-top: 4px;
  color: #7f7f7f;
  font-size: 13.5px;
  line-height: 1.45;
}
#astry-menu .am-card {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  padding: 14px;
  border: 1px solid #292929;
  transition: border-color 140ms ease;
}
#astry-menu .am-card:hover { border-color: #454545; }
#astry-menu .am-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}
#astry-menu .am-card .am-t { margin-top: 14px; font-size: 16px; }
#astry-menu .am-card .am-d { margin-top: 4px; }
@media (max-width: 900px) { #astry-menu { display: none !important; } }

/* Nav: carets on dropdown links + solid header while a menu is open */

header.am-open {
  background: #1a1a1a;
}
#astry-menu {
  border-top: none;
}

.am-caret {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 6px;
  vertical-align: -1px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 160ms ease;
}
a.am-active .am-caret {
  transform: rotate(180deg);
}

/* Log in: plain centered button, no chevron, no dropdown */
header button:has(path[d^="M5.5546"]) {
  padding-left: 14px;
  padding-right: 14px;
  gap: 0;
  justify-content: center;
}
header button:has(path[d^="M5.5546"]) svg {
  display: none;
}
header div:has(> a[href^="https://app.astry.agency"]) {
  display: none !important;
}

/* Security grid: center the Details links with their icon and label */
div:has(> img[src^="/hv/icon-"]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
div:has(> img[src^="/hv/icon-"]) a {
  margin-inline: auto;
}

/* ---- Why teams choose Astry (injected section) ---- */
#astry-why {
  background: #ffffff;
  padding: 96px 0 112px;
}
#astry-why .aw-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
#astry-why .aw-title {
  color: #292929;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 520px;
  margin-bottom: 64px;
}
#astry-why .aw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
#astry-why .aw-tile {
  border-radius: 16px;
  height: 380px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
#astry-why h3 {
  color: #292929;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
#astry-why p {
  color: #5d5d5d;
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 40ch;
}
/* tile 1: word stack */
#astry-why .aw-tile-words {
  background: #1a1a1a;
  gap: 10px;
}
#astry-why .aw-tile-words span {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #5d5d5d;
  opacity: 0.45;
}
#astry-why .aw-tile-words span:nth-child(3),
#astry-why .aw-tile-words span:nth-child(5) {
  opacity: 0.75;
}
#astry-why .aw-tile-words span.on {
  color: #ffffff;
  opacity: 1;
  font-size: 30px;
}
/* tile 2: trust card */
#astry-why .aw-tile-trust {
  background: #f5f5f5;
}
#astry-why .aw-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 18px 20px;
  width: 78%;
}
#astry-why .aw-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
#astry-why .aw-file {
  color: #292929;
  font-size: 14.5px;
  font-weight: 500;
}
#astry-why .aw-ok {
  color: #e43d1a;
  font-size: 12.5px;
  font-weight: 500;
}
#astry-why .aw-ok::before {
  content: "\2713\00a0";
}
#astry-why .aw-off .aw-file {
  color: #b3b3b3;
  text-decoration: line-through;
}
#astry-why .aw-no {
  color: #b3b3b3;
  font-size: 12.5px;
}
#astry-why .aw-no::before {
  content: "\00d7\00a0";
}
#astry-why .aw-cap {
  color: #7f7f7f;
  font-size: 12px;
  padding-top: 14px;
}
/* tile 3: connector chips */
#astry-why .aw-tile-conn {
  background: #212121;
  gap: 12px;
}
#astry-why .aw-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 18px;
  width: 62%;
  color: #292929;
  font-size: 15px;
  font-weight: 500;
}
#astry-why .aw-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
#astry-why .aw-chip em {
  font-style: normal;
  font-size: 11px;
  color: #7f7f7f;
  border: 1px solid #e8e8e8;
  border-radius: 9999px;
  padding: 1px 8px;
  margin-left: auto;
}
#astry-why .aw-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #25d366;
  display: inline-block;
}
#astry-why .aw-dot2 {
  background: #292929;
}
#astry-why .aw-chip:nth-child(odd) {
  transform: translateX(-14px);
}
#astry-why .aw-chip:nth-child(even) {
  transform: translateX(14px);
}
@media (max-width: 900px) {
  #astry-why .aw-grid { grid-template-columns: 1fr; }
  #astry-why .aw-title { font-size: 32px; }
}

/* ---- Pastel visual cards in the mega-menu ---- */
#astry-menu .am-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
#astry-menu .am-v-product .am-visual, #astry-menu .am-visual.am-v-product { background-image: url(/hv/bg-lavender.jpg); }
#astry-menu .am-visual.am-v-solutions { background-image: url(/hv/bg-cyan.jpg); }
#astry-menu .am-visual.am-v-blog { background-image: url(/hv/bg-cream.jpg); }
#astry-menu .am-visual.am-v-about { background-image: url(/hv/bg-rose.jpg); }
.am-vis-words {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.am-vis-words span {
  color: #1a1a1a;
  opacity: 0.38;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.am-vis-words span.on {
  opacity: 1;
  font-size: 18px;
}
.am-vis-chips {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.am-vis-chips span {
  background: rgba(255, 255, 255, 0.92);
  color: #292929;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 8px;
  padding: 6px 14px;
}
.am-vis-chips span:nth-child(odd) { transform: translateX(-10px); }
.am-vis-chips span:nth-child(even) { transform: translateX(10px); }
.am-vis-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 14px 18px;
}
.am-vis-steps div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #292929;
  font-size: 12.5px;
  font-weight: 500;
}
.am-vis-steps i {
  font-style: normal;
  color: #e43d1a;
  font-size: 11px;
}
.am-vis-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.am-vis-brand svg { width: 44px; height: 35px; }
.am-vis-brand span {
  color: #1a1a1a;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.am-vis-brand b { color: #e43d1a; font-weight: 500; }





/* Case carousel: our stills instead of the mux video thumbnails, no playback */
img[src*="cUPiX2c4j7q01qIMdUKel6Z2cRHyy7MJppwmQAgn5GG00"] {
  content: url("/hv/case-1.jpg");
}
img[src*="Lnv42xT01ij9VyApfAXYqPf9LuBXCA1eeKk8vfCUoNWs"] {
  content: url("/hv/case-2.jpg");
}
img[src*="bZIwtrolQYu2Ni2bomnbeCeaE02lIB9yClvMRLN1XUtA"] {
  content: url("/hv/case-3.jpg");
}
img[src*="01e1ErVvGUePhIe02h01m6OQuxCrduY36ZCws02p7UcBw00Q"] {
  content: url("/hv/case-4.jpg");
}
button[aria-label="Play Video"] {
  display: none;
}
