:root {
  --primary: #0c8ce9;
  --surface: #ffffff;
  --surface-alt: #f8f9fa;
  --text: #000000;
  --header-height: 88px;
  --footer-height: 50px;
  --container: 1376px;
  --radius-sm: 8px;
  --shadow-sm: 0 0 2px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Jaldi", sans-serif;
  color: var(--text);
  background: var(--surface);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 249, 250, 0.75);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: var(--header-height);
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  --logo-scale: 1;
  display: inline-flex;
  align-items: center;
  gap: calc(10.351px * var(--logo-scale));
}

.brand-icon-wrap {
  width: calc(40px * var(--logo-scale));
  height: calc(40px * var(--logo-scale));
  border-radius: calc(10px * var(--logo-scale));
  background: var(--primary);
  display: grid;
  place-items: center;
}

.brand-icon {
  width: calc(30px * var(--logo-scale));
  height: calc(30px * var(--logo-scale));
}

.brand-word {
  width: calc(149.682px * var(--logo-scale));
  height: calc(29.991px * var(--logo-scale));
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 24px;
}

.top-nav a.active {
  color: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-install-btn {
  gap: 8px;
  padding-inline: 8px;
  white-space: nowrap;
}

.header-install-btn img {
  width: 13.867px;
  height: 16px;
  flex: 0 0 auto;
}

.burger-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.burger-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #1f1f1f;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.burger-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  background: #ffffff;
  display: none;
  padding: 32px 24px;
}

.mobile-menu:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-menu-nav a {
  font-size: 32px;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .site-header {
  background: #ffffff;
}

.btn {
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-sm {
  height: 41px;
  padding-inline: 24px;
  font-size: 24px;
  box-shadow: var(--shadow-sm);
}

.btn-lg {
  min-height: 58px;
  padding: 8px 24px;
  font-size: 32px;
  box-shadow: 0 0 2px var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: var(--surface);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
}

.pricing-main {
  min-height: calc(100vh - var(--header-height) - var(--footer-height));
  display: grid;
  place-items: start center;
  padding-top: 64px;
  background: var(--surface);
}

.pricing-hero {
  width: min(1004.375px, calc(100% - 48px));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pricing-hero h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1;
}

.pricing-hero p {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.pricing-hero .btn {
  margin-top: 16px;
}

.pricing-hero .subtext {
  font-size: 24px;
}

.site-footer {
  border-top: 1px solid #d8d8d8;
}

.site-footer .container {
  min-height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
}

.footer-cta-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-cta-links a {
  font-size: 13px;
  color: #969696;
  text-decoration: none;
}

.footer-cta-links a:hover {
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  color: #969696;
  text-align: center;
}

@media (max-width: 1200px) {
  .header-inner {
    width: 100%;
  }

  .brand {
    --logo-scale: 0.9;
  }

  .top-nav {
    font-size: 22px;
  }

  .btn-sm {
    font-size: 22px;
  }
}

@media (max-width: 1167px) {
  .top-nav,
  .header-cta {
    display: none;
  }

  .burger-toggle {
    display: inline-flex;
  }
}

@media (max-width: 992px) {
  .header-inner {
    width: 100%;
  }

  .brand {
    --logo-scale: 0.85;
  }

  .mobile-menu-nav a {
    font-size: 24px;
  }

  .mobile-menu-actions .btn-sm {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    width: 100%;
    padding-inline: 16px;
  }

  .brand {
    --logo-scale: 0.75;
  }

  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .btn-sm {
    height: 38px;
    padding-inline: 14px;
    font-size: 20px;
  }

  .btn-lg {
    min-height: 48px;
    font-size: 28px;
  }

  .mobile-menu-nav a {
    font-size: 20px;
  }

  .pricing-main {
    padding-top: 48px;
  }

  .pricing-hero {
    width: calc(100% - 24px);
  }

  .pricing-hero h1 {
    font-size: 40px;
  }

  .pricing-hero p {
    font-size: 26px;
  }

  .pricing-hero p + p {
    font-size: 20px;
  }

  .pricing-hero .subtext {
    font-size: 16px;
  }

  .site-footer p {
    font-size: 8px;
  }
}

@media (max-width: 599px) {
  .header-inner {
    width: 100%;
    padding-inline: 12px;
  }

  .mobile-menu-actions,
  .pricing-hero .btn {
    display: none;
  }

  .brand {
    --logo-scale: 0.7;
  }

  .mobile-menu-nav a {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 66px;
  }

  .header-inner {
    min-height: 66px;
    width: 100%;
    padding-inline: 12px;
  }

  .brand {
    --logo-scale: 0.555;
  }

  .brand-word {
    width: calc(149.682px * var(--logo-scale));
    height: calc(29.991px * var(--logo-scale));
  }

  .burger-toggle {
    width: 39.6px;
    height: 39.6px;
    gap: 5.4px;
  }

  .burger-toggle span {
    width: 23.4px;
  }

  .mobile-menu-nav a {
    font-size: 16px;
  }
}

@media (max-width: 1200px) {
  h1 {
    font-size: 56px !important;
  }

  h2 {
    font-size: 28px !important;
  }

  p {
    font-size: 22px !important;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 48px !important;
  }

  h2 {
    font-size: 24px !important;
  }

  p {
    font-size: 20px !important;
  }
}

@media (max-width: 1032px) and (min-width: 993px) {
  .header-inner {
    width: 100%;
    margin-inline: 0;
    padding-inline: 24px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 40px !important;
  }

  h2 {
    font-size: 20px !important;
  }

  p {
    font-size: 18px !important;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 32px !important;
  }

  h2 {
    font-size: 18px !important;
  }

  p {
    font-size: 16px !important;
  }
}

/* Keep footer text size independent from global p !important rules */
.site-footer p {
  font-size: 12px !important;
}

@media (max-width: 768px) {
  .site-footer p {
    font-size: 8px !important;
  }
}
