/* ==========================================================================
   DeployHub — static rebuild of deployhub.xyz
   Design ported from the live super.so render (light theme + optional dark).
   ========================================================================== */

/* ----- Fonts ----- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("assets/fonts/inter-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("assets/fonts/inter-700.woff2") format("woff2");
}

/* ----- Theme tokens ----- */
:root {
  --primary-color: #a79eea;
  --primary-color-hover: #8f84e0;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";

  /* Layout */
  --layout-max-width: 900px;
  --content-padding: 96px;
  --content-padding-mobile: 24px;
  --column-spacing: 46px;
  --navbar-height: 56px;
  --radius: 5px;
}

/* Light (default) */
html,
html.light {
  --color-text: #37352f;
  --color-text-light: #7d7c78;
  --color-text-gray: #787570;       /* hsl(36,2%,46%) */
  --color-accent-text: #8b7fe6;     /* brand purple, readable on light */
  --color-bg: #ffffff;
  --color-bg-subtle: #f7f6f3;
  --color-border: #e9e9e7;
  --color-ui-hover-bg: #efefef;
  --color-card-bg: #ffffff;
  --color-callout-gray-bg: rgba(241, 241, 239, 0.7);
  --navbar-bg: #ffffff;
  --navbar-text: #37352f;
  --color-shadow: rgba(15, 15, 15, 0.1);
}

/* Dark */
html.dark {
  --color-text: #e1e1e1;
  --color-text-light: #9b9b9b;
  --color-text-gray: #b4b3af;
  --color-accent-text: #b3a9f2;     /* brand purple, brightened for dark */
  --color-bg: #191919;
  --color-bg-subtle: #202020;
  --color-border: #373737;
  --color-ui-hover-bg: #262626;
  --color-card-bg: #232323;
  --color-callout-gray-bg: rgba(255, 255, 255, 0.045);
  --navbar-bg: #191919;
  --navbar-text: #e1e1e1;
  --color-shadow: rgba(0, 0, 0, 0.4);
}

/* ----- Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--navbar-height) + 6px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.2s ease, color 0.2s ease;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

/* ----- Navbar ----- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--navbar-height);
  background: var(--navbar-bg);
  color: var(--navbar-text);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease;
}

.navbar__content {
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}

.navbar__logo img {
  width: 100px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

.navbar__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar__link,
.navbar__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--navbar-text);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.navbar__link:hover,
.navbar__dropdown-trigger:hover {
  background: var(--color-ui-hover-bg);
}

/* Dropdown */
.navbar__dropdown {
  position: relative;
}

.navbar__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px var(--color-shadow);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.navbar__dropdown:hover .navbar__dropdown-menu,
.navbar__dropdown:focus-within .navbar__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
}

.navbar__dropdown-item:hover {
  background: var(--color-ui-hover-bg);
}

.navbar__dropdown-item svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--color-text-light);
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--navbar-text);
  cursor: pointer;
  padding: 0;
}

.theme-toggle:hover {
  background: var(--color-ui-hover-bg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}
html.dark .theme-toggle .icon-sun {
  display: block;
}
html.dark .theme-toggle .icon-moon {
  display: none;
}

/* ----- Layout / content ----- */
.content {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding) 120px;
}

.page-header {
  padding-top: 64px;
  margin-bottom: 8px;
}

.page-header__icon {
  width: 78px;
  height: 78px;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
  margin-bottom: 18px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

/* Typography */
h2.heading {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 2rem 0 0.5rem;
}

h3.heading {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 1.2rem 0 0.3rem;
}

.text {
  margin: 0.5rem 0;
}

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

.text-gray {
  color: var(--color-text-gray);
}

.spacer {
  height: 1.4rem;
}

.spacer--sm {
  height: 0.7rem;
}

.divider {
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: 1.4rem 0;
}

.inline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.inline-link:hover {
  color: var(--primary-color-hover);
}

/* Purple CTA button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.btn:hover {
  background: var(--primary-color-hover);
  color: #ffffff;
}

ul.list {
  margin: 0.5rem 0;
  padding-left: 1.6em;
}

ul.list li {
  margin: 0.15rem 0;
}

/* Images */
.image {
  margin: 1.4rem 0;
}

.image img {
  display: block;
  height: auto;
  border-radius: var(--radius);
}

.image--center {
  text-align: center;
}

.image--center img {
  margin: 0 auto;
}

/* Columns */
.columns {
  display: flex;
  gap: var(--column-spacing);
  align-items: center;
  margin: 1.2rem 0;
}

.columns--top {
  align-items: flex-start;
}

.column {
  min-width: 0;
  flex: 1 1 0;
}

/* Callouts (icon stacked above content) */
.callout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin: 10px 0;
  background: var(--color-card-bg);
}

.callout--gray {
  background: var(--color-callout-gray-bg);
}

.callout__icon {
  flex: none;
  width: 28px;
  height: 28px;
  margin: 0 0 2px;
}

.callout__icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.callout__content {
  min-width: 0;
}

.callout__content > *:first-child {
  margin-top: 0;
}

.callout__content h3.heading {
  margin-top: 0;
}

/* Service cards: stronger size hierarchy, smaller subtext */
.service-grid .callout__content h3.heading {
  font-size: 1.2rem;
}

.service-grid .callout__content .text {
  font-size: 0.875rem;
  line-height: 1.45;
}

.service-grid .callout .list {
  font-size: 0.9rem;
}

/* Journey cards: distinct lead-in label */
.callout--gray .callout__content .text {
  font-size: 0.95rem;
}

.callout--gray .callout__content strong {
  font-size: 1.0625rem;
  font-weight: 700;
}

.callout--gray .list {
  font-size: 0.9rem;
}

/* Callout grid (2x2 services) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--column-spacing);
  margin: 1.2rem 0;
}

.service-grid .stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ----- Pricing ----- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 1.4rem 0;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-card-bg);
}

.price-card--featured {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 8%, var(--color-card-bg));
}

.price-card__icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}

.price-card__name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.price-card__price {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.price-card__features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  flex: 1 1 auto;
}

.price-card__features li {
  position: relative;
  padding-left: 24px;
  margin: 8px 0;
  font-size: 0.95rem;
  color: var(--color-text-gray);
}

.price-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background: var(--primary-color);
  -webkit-mask: url("assets/icons/check.svg") center / contain no-repeat;
  mask: url("assets/icons/check.svg") center / contain no-repeat;
}

.price-card__cta {
  align-self: flex-start;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.price-card__cta:hover {
  color: var(--primary-color-hover);
}

/* ----- Contact ----- */
.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 1.6rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-card-bg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.contact-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.contact-item svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--primary-color);
}

.contact-item__label {
  font-weight: 600;
}

.contact-item__meta {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 400;
}

/* ----- Footer ----- */
.footer {
  background: var(--primary-color);
  color: #ffffff;
  margin-top: auto;
}

.footer__content {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer__icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer__icons a {
  color: #ffffff;
  display: inline-flex;
  opacity: 0.92;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.footer__icons a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer__icons svg {
  width: 22px;
  height: 22px;
}

/* Page wrapper to keep footer down */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page > .content {
  flex: 1 0 auto;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  :root {
    --content-padding: var(--content-padding-mobile);
  }
  .columns {
    flex-direction: column;
    align-items: stretch;
  }
  .service-grid,
  .pricing-grid,
  .contact-list {
    grid-template-columns: 1fr;
  }
  .page-title {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .navbar__link span.hide-sm {
    display: none;
  }
  .footer__content {
    justify-content: center;
    text-align: center;
  }
}
