/*
 * Contact page aligned with the flat Claude storefront.
 * The header and content share one graphite background; only useful interactive
 * surfaces receive a subtle raised treatment.
 */

html:has(main.contact-page) {
  background: #181b20 !important;
}

html body.contact-flat-body {
  --contact-page-width: 1180px;
  --contact-page-gutter: clamp(14px, 3.5vw, 46px);
  --contact-text: rgba(247, 249, 252, 0.96);
  --contact-text-secondary: rgba(222, 228, 237, 0.72);
  --contact-text-muted: rgba(202, 211, 223, 0.58);
  --contact-border: rgba(255, 255, 255, 0.1);
  --contact-border-strong: rgba(255, 255, 255, 0.16);
  --contact-surface: rgba(255, 255, 255, 0.045);
  --contact-surface-hover: rgba(255, 255, 255, 0.075);
  color: var(--contact-text);
  background:
    radial-gradient(circle at 17% 16%, rgba(53, 229, 141, 0.085), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(148, 163, 184, 0.075), transparent 32%),
    linear-gradient(180deg, #22262d 0%, #1d2127 46%, #181b20 100%) !important;
  background-attachment: fixed !important;
}

html body.contact-flat-body::before {
  inset: -10% -8%;
  background:
    radial-gradient(circle at 18% 18%, rgba(53, 229, 141, 0.065), transparent 29%),
    radial-gradient(circle at 78% 14%, rgba(203, 213, 225, 0.055), transparent 30%) !important;
  filter: blur(90px) saturate(104%) !important;
  opacity: 0.68 !important;
}

html body.contact-flat-body::after {
  opacity: 0.022;
}

html body.contact-flat-body header,
html body.contact-flat-body main.contact-page {
  width: min(
    var(--contact-page-width),
    calc(100% - (var(--contact-page-gutter) * 2))
  ) !important;
  max-width: var(--contact-page-width) !important;
  margin-inline: auto !important;
}

html body.contact-flat-body header {
  width: min(calc(100% - clamp(28px, 7vw, 136px)), 1780px) !important;
  max-width: 1780px !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.contact-flat-body header :is(.nav, .nav-shell) {
  display: grid !important;
  grid-template-columns: auto auto minmax(140px, 1fr) auto !important;
  align-items: center !important;
  gap: clamp(10px, 1.35vw, 22px) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.contact-flat-body header .logo-img {
  width: auto !important;
  height: clamp(30px, 2.5vw, 42px) !important;
  max-width: min(231px, 23vw) !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.32)) !important;
}

html body.contact-flat-body .header-product-pill {
  min-height: 42px !important;
  padding: 7px 18px 7px 9px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

html body.contact-flat-body header .header-quick-links {
  justify-self: center !important;
  gap: 8px !important;
}

html body.contact-flat-body header .header-quick-link {
  min-height: 34px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

html body.contact-flat-body header .header-tools {
  justify-self: end !important;
}

html body.contact-flat-body .lang-current {
  min-height: 42px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
}

html body.contact-flat-body header.is-scrolled :is(.nav, .nav-shell) {
  background: rgba(38, 42, 49, 0.82) !important;
  box-shadow: 0 12px 36px rgba(8, 10, 14, 0.22) !important;
  backdrop-filter: blur(16px) saturate(112%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(112%) !important;
}

html body.contact-flat-body main.contact-page {
  display: grid;
  gap: 0;
  padding: clamp(26px, 3vw, 38px) 0 72px !important;
}

.contact-page *,
.contact-page *::before,
.contact-page *::after {
  box-sizing: border-box;
}

.contact-page__back {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  min-height: 40px;
  margin: 0 0 clamp(24px, 3.5vw, 42px);
  padding: 0 15px;
  border: 1px solid var(--contact-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.contact-page__back svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-page__back:hover {
  border-color: rgba(53, 229, 141, 0.38);
  background: rgba(53, 229, 141, 0.09);
  color: #fff;
}

.contact-page__back:focus-visible,
.contact-channel:focus-visible {
  outline: 2px solid rgba(83, 235, 158, 0.82);
  outline-offset: 3px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: end;
  padding: 0 0 clamp(52px, 7vw, 82px);
}

.contact-hero__copy,
.contact-response,
.contact-channel__body {
  min-width: 0;
}

.contact-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: rgba(83, 235, 158, 0.86);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--contact-text);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2.75rem, 7.5vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.contact-hero__copy > p {
  max-width: 680px;
  margin: 0;
  color: var(--contact-text-secondary);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.7;
}

.contact-response {
  padding: 22px 0 4px clamp(20px, 3vw, 38px);
  border-left: 1px solid var(--contact-border-strong);
}

.contact-response__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(224, 255, 239, 0.84);
  font-size: 12px;
  font-weight: 700;
}

.contact-response__status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35e58d;
  box-shadow: 0 0 0 5px rgba(53, 229, 141, 0.11);
}

.contact-response strong {
  display: block;
  margin-bottom: 7px;
  color: var(--contact-text);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.35;
}

.contact-response p {
  margin: 0;
  color: var(--contact-text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.contact-channels,
.contact-preparation {
  padding: clamp(38px, 5vw, 58px) 0 0;
  border-top: 1px solid var(--contact-border);
}

.contact-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.contact-section-heading h2,
.contact-preparation h2 {
  margin: 0;
  color: var(--contact-text);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.035em;
}

.contact-section-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.contact-section-heading p {
  margin: 0 0 4px;
  color: var(--contact-text-muted);
  font-size: 14px;
}

.contact-channel-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-channel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "icon body"
    "action action";
  gap: 16px;
  min-width: 0;
  min-height: 168px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--contact-border);
  border-radius: 22px;
  background: var(--contact-surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  color: var(--contact-text);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.contact-channel:hover {
  transform: translateY(-3px);
  border-color: var(--contact-border-strong);
  background: var(--contact-surface-hover);
  color: #fff;
}

.contact-channel__icon {
  grid-area: icon;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.075);
}

.contact-channel__icon img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.contact-channel__body {
  grid-area: body;
  display: grid;
  align-content: center;
  gap: 5px;
}

.contact-channel__body strong {
  color: var(--contact-text);
  font-size: 15px;
  line-height: 1.3;
}

.contact-channel__body span {
  overflow-wrap: anywhere;
  color: var(--contact-text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.contact-channel__action {
  grid-area: action;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.contact-channel:hover .contact-channel__action {
  color: rgba(105, 241, 170, 0.94);
}

.contact-preparation {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 8vw, 110px);
  margin-top: clamp(54px, 7vw, 82px);
}

.contact-preparation h2 {
  max-width: 360px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.contact-preparation ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-preparation li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--contact-text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.contact-preparation li:first-child {
  padding-top: 0;
}

.contact-preparation li span {
  color: rgba(83, 235, 158, 0.72);
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .contact-channel-list {
    grid-template-columns: 1fr;
  }

  .contact-channel {
    min-height: 0;
  }
}

@media (max-width: 980px) {
  html body.contact-flat-body header {
    width: calc(100% - 28px) !important;
  }

  html body.contact-flat-body header :is(.nav, .nav-shell) {
    grid-template-columns: auto auto 1fr !important;
  }

  html body.contact-flat-body header .header-quick-links {
    display: none !important;
  }
}

@media (max-width: 760px) {
  html body.contact-flat-body {
    --contact-page-gutter: 14px;
    background-attachment: scroll !important;
  }

  html body.contact-flat-body header {
    width: calc(100% - 28px) !important;
    margin-top: 4px !important;
  }

  html body.contact-flat-body main.contact-page {
    padding-top: 22px !important;
    padding-bottom: 54px !important;
  }

  .contact-hero,
  .contact-preparation {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .contact-hero {
    align-items: start;
    padding-bottom: 48px;
  }

  .contact-response {
    padding: 19px 0 0;
    border-top: 1px solid var(--contact-border);
    border-left: 0;
  }

  .contact-section-heading {
    display: grid;
    gap: 8px;
    align-items: start;
  }

  .contact-section-heading p {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page__back,
  .contact-channel {
    transition: none;
  }
}
