/* ==========================================================================
   Cardiance — Landing page
   Fonts: Unageo (Regular 400 / Medium 500) — self-hosted, SIL OFL license
   ========================================================================== */

@font-face {
  font-family: "Unageo";
  src: url("../assets/fonts/Unageo-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unageo";
  src: url("../assets/fonts/Unageo-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unageo";
  src: url("../assets/fonts/Unageo-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Unageo";
  src: url("../assets/fonts/Unageo-RegularItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --color-bg: #f6f6f6;
  --color-accent: #279dca;
  --color-headline-tint: #b4e9fc;
  --color-text-secondary: #777777;
  --color-teal: #dde8e8;
  --color-white: #ffffff;
  --color-ink: #10202a;
  --color-onbackground-primary: #232220;
  --color-border: #d6d0d0;

  --font-sans: "Unageo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-max: 1512px;
  --footer-max: 1200px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  background: var(--color-bg);
}

body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  max-width: 100%;
  margin-inline: auto;
  padding: 24px;
}

.hero__card {
  position: relative;
  overflow: visible;
  border-radius: 32px;
  background-color: var(--color-accent);
  background-image: url("../assets/images/hero-blob-mobile-card@2x.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 48px 16px 0;
  min-height: 90vh;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  animation: hero-rise 0.7s var(--ease-out) both;
}

.hero__logo {
  width: 186px;
  height: auto;
  animation: hero-rise 0.7s var(--ease-out) both;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 301px;
  text-align: center;
}

.hero__headline {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.3;
  color: var(--color-white);
  animation: hero-rise 0.7s 0.08s var(--ease-out) both;
}

.hero__headline em {
  font-style: normal;
  font-weight: 500;
  color: var(--color-headline-tint);
}

.hero__subtitle {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -1px;
  color: var(--color-bg);
  max-width: 301px;
  animation: hero-rise 0.7s 0.16s var(--ease-out) both;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 1px solid var(--color-white);
  border-radius: 999px;
  padding: 8px 24px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  animation: hero-rise 0.7s 0.24s var(--ease-out) both;
}

.hero__cta img {
  width: 112px;
  height: 30px;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 32, 42, 0.18);
}

.hero__cta:active {
  transform: translateY(0);
  box-shadow: none;
}

.hero__phones {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 321px;
  padding-inline: 16px;
  z-index: 2;
  pointer-events: none;
  animation: hero-rise-phones 0.8s 0.3s var(--ease-out) both;
}

.hero__phones img {
  width: 100%;
  height: auto;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-rise-phones {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 24px 24px 32px;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.site-footer__legal p,
.site-footer__legal a {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -1px;
  color: var(--color-text-secondary);
}

.site-footer__legal a {
  white-space: nowrap;
}

.site-footer__legal a {
  transition: color 0.2s var(--ease-out);
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  color: var(--color-ink);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.site-footer__social a img {
  width: 16px;
  height: 16px;
}

.site-footer__social a[aria-label="Facebook"] img {
  width: 25px;
  height: 24px;
}

.site-footer__social a.icon-circle {
  border-radius: 999px;
  background: var(--color-teal);
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  transform: translateY(-2px);
}

.site-footer__social a.icon-circle:hover,
.site-footer__social a.icon-circle:focus-visible {
  background: var(--color-accent);
}

.site-footer__social a.icon-circle:hover img,
.site-footer__social a.icon-circle:focus-visible img {
  filter: brightness(0) invert(1);
}

/* ==========================================================================
   Tablet — reference width 834px
   ========================================================================== */

@media (min-width: 768px) {
  .hero {
    padding: 32px;
  }

  .hero__card {
    border-radius: 48px;
    background-image: url("../assets/images/hero-blob-tablet.svg");
    background-size: cover;
    padding-top: 130px;
    min-height: 1090px;
  }

  .hero__logo {
    width: 232px;
  }

  .hero__copy,
  .hero__subtitle {
    max-width: 701px;
  }

  .hero__headline {
    font-size: 56px;
  }

  .hero__subtitle {
    font-size: 18px;
    letter-spacing: -1px;
  }

  .hero__phones {
    max-width: 688px;
    padding-inline: 32px;
  }

  .site-footer {
    padding: 32px 32px 32px;
  }

  .site-footer__legal {
    display: contents;
  }

  .site-footer__legal p,
  .site-footer__legal a {
    font-size: 14px;
    letter-spacing: -1px;
  }
}

/* ==========================================================================
   Desktop — reference width 1512px
   ========================================================================== */

@media (min-width: 1200px) {
  .hero__card {
    background-image: url("../assets/images/hero-blob-desktop.svg");
    padding-top: 48px;
    min-height: 882px;
  }

  .hero__phones {
    max-width: 794px;
    padding-inline: 0;
  }

  .site-footer {
    max-width: var(--footer-max);
    padding-inline: 0;
    padding-top: 21px;
  }
}

@media (min-width: 1920px) {
  .hero__card {
    min-height: 90vh;
  }
}
