/* ============================================
   Intimassy Landing Page — "Airy light" theme
   Calm palette, privacy-first premium tone
   ============================================ */

/* Self-hosted Plus Jakarta Sans, variable weight axis 400-800. One file per
   subset replaces the five static weights the CSS uses. The unicode-range
   values are copied verbatim from the Google Fonts stylesheet — do not edit
   them by hand. Only the tr locale pulls latin-ext. Cyrillic and CJK have no
   subset in this family, so ru/ja/ko fall back to system-ui by design. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-v12-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/plus-jakarta-sans-v12-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F2F5F7;
  --surface: #FFFFFF;
  --ink: #16232B;
  --slate: #24404F;
  --muted: #5D6E79;
  --teal: #0E7C6F;
  --teal-soft: #D8F0EB;
  --button: #38596E;
  --border: #D4DDE2;
  --border-soft: #E9EFF3;
  --dark-accent: #55B9A8;
  --dark-text: #E8EDF0;
  --dark-muted: #9AAAB4;
  --gold: #8F6A12;
  --radius-card: 20px;
  --radius-panel: 28px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --nav-height: 72px;

  /* Legacy tokens: the static /privacy-policy and /terms-of-use pages
     reference these in their inline styles. Keep until those pages are
     migrated to the new token names. */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --color-primary: var(--teal);
  --color-border: var(--border);
  --color-text-primary: var(--ink);
  --color-text-secondary: var(--muted);
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(242, 245, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 var(--border-soft), 0 4px 20px rgba(36, 64, 79, 0.06);
}

.nav__inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--slate);
}

.nav__brand-icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link--active {
  color: var(--slate);
}

.nav__cta {
  background: var(--button);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav__cta:hover {
  background: var(--slate);
  transform: translateY(-1px);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Language switcher */
.nav__lang {
  position: relative;
}

.nav__lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav__lang-btn:hover {
  border-color: var(--muted);
  color: var(--slate);
}

.nav__lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(36, 64, 79, 0.14);
  padding: 6px;
  min-width: 150px;
  max-height: 70vh;
  overflow-y: auto;
}

.nav__lang-option {
  display: block;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
  transition: background 0.15s ease;
}

.nav__lang-option:hover {
  background: var(--bg);
  color: var(--ink);
}

.nav__lang-option--active {
  color: var(--teal);
  font-weight: 700;
  background: var(--teal-soft);
}

/* --- Hero --- */
.hero {
  padding-top: var(--nav-height);
  /* The ::before glow on .hero__visual bleeds 20% past its box; without a
     clip it widens the page and causes horizontal scroll on mobile. */
  overflow-x: hidden;
  overflow-x: clip;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 72px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.hero__badge {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
}

.hero__title {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  font-weight: 800;
  color: var(--ink);
  text-wrap: pretty;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

.hero__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.hero__stars {
  display: flex;
  gap: 2px;
}

.hero__stars svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
}

.hero__stars .star--half {
  fill: url(#star-gradient);
}

.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: -10% -20%;
  background: radial-gradient(ellipse at 50% 45%, rgba(85, 185, 168, 0.22), transparent 65%);
  pointer-events: none;
}

.hero__phone {
  width: 340px;
  border-radius: 34px;
  box-shadow: 0 32px 70px rgba(36, 64, 79, 0.28);
  display: block;
  position: relative;
}

/* --- Store badges --- */
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 9px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 35, 43, 0.25);
}

.store-badge svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-badge__label {
  font-size: 10px;
  opacity: 0.65;
  line-height: 1.3;
}

.store-badge__store {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.store-badge--solid {
  background: var(--button);
}

.store-badge--solid:hover {
  box-shadow: 0 8px 24px rgba(56, 89, 110, 0.35);
}

/* --- Numbers strip --- */
.strip {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 64px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.strip__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.strip__item b {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.3px;
}

/* --- Sections --- */
.section {
  padding: 72px 0;
}

.section--tight {
  padding: 56px 0;
}

.section__header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
}

.section__title {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.8px;
  font-weight: 800;
  color: var(--ink);
}

.section__desc {
  font-size: 16px;
  color: var(--muted);
}

/* --- About --- */
.about__content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  text-align: left;
}

/* --- Features --- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(36, 64, 79, 0.1);
}

.feature-card__screenshot {
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  cursor: zoom-in;
}

.feature-card__screenshot img {
  width: 100%;
  display: block;
}

.feature-card__title {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}

.feature-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* --- Patterns panel --- */
.patterns {
  border-radius: var(--radius-panel);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px 56px;
  overflow: hidden;
}

.patterns--reverse {
  grid-template-columns: 1fr 300px;
}

.patterns__phone {
  width: 240px;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(36, 64, 79, 0.22);
  display: block;
  justify-self: center;
}

.patterns__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.patterns__desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step__number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 17px;
  font-weight: 800;
  border-radius: 50%;
}

.step__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.step__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* --- Privacy panel --- */
.privacy {
  background: var(--ink);
  border-radius: var(--radius-panel);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
  padding: 52px 56px;
  overflow: hidden;
}

.privacy__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.privacy .section__label {
  color: var(--dark-accent);
}

.privacy .section__title {
  color: var(--dark-text);
}

.privacy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--dark-muted);
}

.privacy__item b {
  color: var(--dark-text);
}

.privacy__phone {
  width: 240px;
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  display: block;
  justify-self: center;
}

/* --- Testimonials --- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
}

.testimonial-card__stars svg {
  width: 15px;
  height: 15px;
  fill: var(--gold);
}

.testimonial-card__quote {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.testimonial-card__info {
  display: flex;
  flex-direction: column;
}

.testimonial-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.testimonial-card__date {
  font-size: 12.5px;
  color: var(--muted);
}

/* --- FAQ --- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  transition: background 0.15s ease;
}

.faq__question:hover {
  background: var(--bg);
}

.faq__chevron {
  flex: none;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.faq__question[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.faq__answer--open {
  display: block;
}

/* --- CTA --- */
.cta {
  padding: 72px 0 88px;
}

.cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.cta__title {
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.8px;
  font-weight: 800;
  color: var(--ink);
}

.cta__desc {
  font-size: 16px;
  color: var(--muted);
}

.cta__stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* --- Footer --- */
.footer {
  background: var(--ink);
  color: var(--dark-muted);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(232, 237, 240, 0.12);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--dark-text);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-muted);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--dark-text);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
}

.footer__store-links {
  display: flex;
  gap: 18px;
}

.footer__store-link {
  color: var(--dark-accent);
  font-weight: 600;
  font-size: 13px;
}

.footer__store-link:hover {
  color: var(--dark-text);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 26, 0.85);
}

.lightbox__content {
  position: relative;
  max-width: 420px;
  width: 90%;
}

.lightbox__img {
  width: 100%;
  border-radius: 20px;
  display: block;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  color: #fff;
  padding: 8px;
}

/* --- iOS coming-soon toast --- */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 300;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  /* left:50% halves the shrink-to-fit space; max-content restores it */
  width: max-content;
  max-width: min(400px, calc(100vw - 32px));
  padding: 16px 14px 16px 22px;
  background: var(--slate);
  color: var(--dark-muted);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 48px rgba(16, 22, 26, 0.35);
  animation: toast-in 0.3s ease;
}

.toast[hidden] {
  display: none;
}

.toast__title {
  display: block;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2px;
}

.toast__desc {
  font-size: 0.9rem;
}

.toast__close {
  color: var(--dark-muted);
  padding: 4px;
  flex-shrink: 0;
}

.toast__close:hover {
  color: var(--dark-text);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 12px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* --- Fade-in animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in--delay-1 { transition-delay: 0.05s; }
.fade-in--delay-2 { transition-delay: 0.15s; }
.fade-in--delay-3 { transition-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .toast { animation: none; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 320px;
    gap: 32px;
  }

  .hero__phone {
    width: 280px;
  }

  .features__grid,
  .testimonials__grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .privacy {
    padding: 44px 40px;
  }

  .patterns {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 16px 40px rgba(36, 64, 79, 0.12);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    display: none;
  }

  .nav__links--open {
    display: flex;
  }

  .nav__link {
    padding: 13px 8px;
    font-size: 15px;
    border-bottom: 1px solid var(--border-soft);
  }

  .nav__cta {
    margin-top: 12px;
    text-align: center;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 36px;
    padding-bottom: 48px;
    gap: 40px;
  }

  .hero__content {
    align-items: center;
    text-align: center;
  }

  .hero__stores {
    justify-content: center;
  }

  .hero__phone {
    width: 260px;
  }

  .section {
    padding: 52px 0;
  }

  .section--tight {
    padding: 40px 0;
  }

  .privacy {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    text-align: center;
  }

  .privacy__grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .privacy__phone {
    width: 200px;
  }

  .patterns {
    grid-template-columns: 1fr;
    padding: 32px 28px;
    text-align: center;
  }

  .patterns__phone {
    width: 200px;
    order: 2;
  }

  .strip__inner {
    gap: 12px 32px;
  }
}

@media (max-width: 560px) {
  .features__grid,
  .testimonials__grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 52px 0 64px;
  }
}
