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

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

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

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

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

:root {
  --canvas-width: 1440px;
  --ink: #0f172a;
  --body-text: #475569;
  --muted: #94a3b8;
  --blue: #2563eb;
  --border: #e2e8f0;
  --surface: #ffffff;
  --page: #f8fafc;
  --footer: #0f172a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 0;
  background: var(--page);
}

body {
  color: var(--body-text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.scale-shell {
  margin: 0 auto;
  overflow: visible;
  position: relative;
}

.site-page {
  background: var(--page);
  display: flex;
  flex-direction: column;
  position: relative;
  transform-origin: top left;
  width: var(--canvas-width);
}

.site-page--home,
.site-page--contact {
  min-height: 900px;
}

.site-page--about {
  min-height: 676px;
}

.site-header {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  height: 70px;
  padding: 0;
  width: 100%;
}

.site-nav {
  align-items: flex-start;
  display: flex;
  gap: 32px;
  height: 22px;
  margin: 0 auto;
  padding: 0 80px;
  width: var(--canvas-width);
}

.site-nav a {
  color: var(--body-text);
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 500;
  gap: 4px;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a[aria-current="page"] {
  align-items: center;
  color: var(--blue);
  font-weight: 600;
}

.site-nav a[aria-current="page"]::after {
  background: url("../assets/images/nav-line.svg") center / 16px 2px no-repeat;
  content: "";
  display: block;
  height: 2px;
  width: 16px;
}

.site-nav a:focus-visible,
.product-card:focus-visible,
.email-link:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 4px;
}

.site-footer {
  align-items: center;
  background: var(--footer);
  display: flex;
  height: 113px;
  justify-content: center;
  margin-top: auto;
  padding: 48px 0;
  flex-shrink: 0;
  width: 100%;
}

.site-footer p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  margin: 0;
  max-width: var(--canvas-width);
  padding: 0 80px;
  text-align: center;
  width: 100%;
}

.site-page > main {
  flex-shrink: 0;
  margin-left: auto;
  margin-right: auto;
  width: var(--canvas-width);
}

.site-page--home .site-footer p,
.site-page--about .site-footer p {
  color: var(--body-text);
}

/* Home */
.home-hero {
  align-items: center;
  display: flex;
  gap: 64px;
  height: 300px;
  padding: 41px 80px;
}

.home-hero__copy {
  flex: 1 1 0;
  min-width: 0;
}

.home-hero h1 {
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

.home-hero p {
  color: var(--body-text);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.home-hero__visual {
  border-radius: 24px;
  display: block;
  height: 218px;
  object-fit: cover;
  width: 540px;
}

.products {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  height: 417px;
  padding: 20px 80px 26px;
}

.products h2 {
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 35px;
  margin: 0 0 40px;
}

.products-grid {
  display: flex;
  gap: 32px;
  justify-content: space-between;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: block;
  height: 296px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  width: 624px;
}

.product-card__media {
  height: 220px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.product-card__background {
  filter: blur(6px);
  height: 232px;
  left: -6px;
  object-fit: cover;
  position: absolute;
  top: -6px;
  width: 636px;
}

.product-card--joylog .product-card__background {
  filter: blur(8px);
}

.product-card__icon {
  height: 110px;
  left: 256px;
  object-fit: cover;
  position: absolute;
  top: 55px;
  width: 110px;
}

.product-card--cleaner .product-card__icon {
  border-radius: 20px;
}

.product-card__title {
  align-items: center;
  color: #0d54ff;
  display: flex;
  font-family: "Outfit", sans-serif;
  font-size: 22px;
  font-weight: 600;
  height: 76px;
  justify-content: center;
  line-height: 28px;
  text-decoration: underline;
  text-underline-position: from-font;
}

/* About */
.about-spacer {
  height: 33px;
}

.about-main {
  align-items: center;
  display: flex;
  height: 460px;
  padding: 0 80px 80px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 380px;
  justify-content: flex-start;
  padding: 32px;
  width: 100%;
}

.about-card p {
  color: var(--body-text);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* Contact */
.contact-main {
  align-items: center;
  display: flex;
  gap: 80px;
  height: 717px;
  justify-content: center;
  padding: 80px;
}

.contact-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.02);
  height: 420px;
  object-fit: cover;
  overflow: hidden;
  width: 540px;
}

.contact-info {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 40px;
  max-width: 600px;
  min-width: 0;
}

.contact-heading h1 {
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 53px;
  margin: 0 0 12px;
}

.contact-heading p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  gap: 20px;
  height: 97px;
  padding: 24px;
}

.contact-card__icon-box {
  align-items: center;
  background: #eff6ff;
  border-radius: 12px;
  display: flex;
  flex: 0 0 48px;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.contact-card__icon {
  display: block;
  height: 24px;
  width: 24px;
}

.contact-card__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-card__label {
  color: var(--body-text);
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 19px;
  margin: 0;
  text-transform: uppercase;
}

.email-link {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
}

.contact-notice {
  align-items: center;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  gap: 16px;
  min-height: 70px;
  padding: 20px;
}

.contact-notice img {
  display: block;
  flex: 0 0 20px;
  height: 20px;
  width: 20px;
}

.contact-notice p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Privacy v2 */
.privacy-main {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 64px 80px 84px;
}

.policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
  color: var(--body-text);
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 2641px;
  padding: 48px;
  width: 1000px;
}

.policy-card h1 {
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 53px;
  margin: 0 0 12px;
}

.policy-updated {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  margin: 0;
}

.policy-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
  width: 100%;
}

.policy-section,
.policy-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.policy-intro {
  gap: 18px;
}

.policy-card h2 {
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 25px;
  margin: 0;
}

.policy-card h3 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 8px;
}

.policy-card p,
.policy-card li {
  font-size: 15px;
  line-height: 1.7;
}

.policy-card p {
  margin: 0;
}

.policy-intro > p {
  font-size: 16px;
}

.policy-apps,
.policy-list {
  margin: 0;
}

.policy-apps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0 0 0 16px;
}

.policy-apps li {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-weight: 600;
  gap: 8px;
  line-height: 1.6;
}

.policy-apps li::before {
  background: var(--blue);
  border-radius: 50%;
  content: "";
  flex: 0 0 6px;
  height: 6px;
  width: 6px;
}

.policy-subsection + .policy-subsection {
  margin-top: 20px;
}

.policy-list {
  padding-left: 20px;
}

.policy-list li::marker {
  color: var(--blue);
}

.policy-card a {
  color: var(--blue);
  font-weight: 500;
  text-underline-position: from-font;
}

.policy-contacts {
  display: grid;
  gap: 2px;
}

.policy-contacts a {
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
