/* Yinea landing. Tipografias espejadas de la app movil: Dahlia + Supreme. */

@font-face {
  font-family: "Dahlia";
  src: url("fonts/Dahlia-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Dahlia";
  src: url("fonts/Dahlia-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Supreme";
  src: url("fonts/Supreme-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Supreme";
  src: url("fonts/Supreme-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Supreme";
  src: url("fonts/Supreme-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #08080a;
  --muted: #5f5d62;
  --paper: #f3f2f0;
  --paper-warm: #faf9f6;
  --purple: #815cb8;
  --purple-dark: #6f50a7;
  --frame: #ffffff;
  --display: "Dahlia", Georgia, "Times New Roman", serif;
  --sans: "Supreme", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1px 3px),
    linear-gradient(120deg, var(--paper-warm), var(--paper) 42%, #eeece8);
  background-size: 7px 7px, auto;
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.hero {
  min-height: 100svh;
  display: grid;
}

.hero__shell {
  width: min(100%, 1640px);
  margin: 0 auto;
  padding: clamp(28px, 4.4vw, 58px) clamp(20px, 6vw, 112px) clamp(42px, 5vw, 72px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(32px, 5vw, 84px);
}

.brand {
  width: max-content;
  font-family: var(--display);
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 24px);
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--purple-dark);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(580px, 1.18fr);
  align-items: center;
  gap: clamp(36px, 6vw, 104px);
}

.hero__copy {
  max-width: 620px;
  align-self: center;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(64px, 6.5vw, 104px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero p {
  max-width: 560px;
  margin: clamp(18px, 1.8vw, 28px) 0 0;
  color: var(--muted);
  font-size: clamp(19px, 1.55vw, 26px);
  line-height: 1.42;
}

.download {
  width: min(100%, 382px);
  min-height: 78px;
  margin-top: clamp(34px, 5vw, 72px);
  padding: 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  box-shadow: 0 18px 28px rgba(129, 92, 184, 0.34);
  font-size: clamp(18px, 1.3vw, 22px);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.download:hover,
.download:focus-visible {
  background: var(--purple-dark);
  box-shadow: 0 22px 34px rgba(129, 92, 184, 0.42);
  transform: translateY(-2px);
}

.download:focus-visible {
  outline: 3px solid rgba(129, 92, 184, 0.35);
  outline-offset: 4px;
}

.phone-stage {
  position: relative;
  min-height: clamp(520px, 43vw, 720px);
  isolation: isolate;
}

.phone-stage::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 0;
  top: 10%;
  bottom: 8%;
  border-radius: 50%;
  background: rgba(35, 28, 48, 0.08);
  filter: blur(36px);
  z-index: -1;
}

.phone {
  --phone-w: clamp(206px, 17.2vw, 322px);
  position: absolute;
  top: 50%;
  width: var(--phone-w);
  aspect-ratio: 1170 / 2532;
  margin: 0;
  overflow: hidden;
  border: clamp(5px, 0.48vw, 8px) solid var(--frame);
  border-radius: clamp(30px, 2.8vw, 44px);
  background: var(--frame);
  box-shadow:
    0 28px 54px rgba(33, 27, 45, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.62);
}

.phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(8px, 0.8vw, 14px);
  width: 32%;
  height: 4px;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.86);
  transform: translateX(-50%);
  pointer-events: none;
}

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.phone--conversations {
  left: 0;
  z-index: 1;
  transform: translateY(-50%);
}

.phone--activity {
  left: 29%;
  z-index: 2;
  transform: translateY(-50%);
}

.phone--splash {
  left: 58%;
  z-index: 3;
  transform: translateY(-50%);
}

.phone--splash::after {
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1120px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__copy {
    max-width: 760px;
  }

  .phone-stage {
    width: min(100%, 720px);
    min-height: clamp(430px, 70vw, 650px);
    margin: 0 auto;
  }

  .phone {
    --phone-w: clamp(172px, 29vw, 262px);
  }
}

@media (max-width: 720px) {
  .hero__shell {
    padding: 30px 20px 34px;
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(54px, 16vw, 78px);
  }

  .hero p {
    font-size: 19px;
  }

  .download {
    min-height: 66px;
    margin-top: 34px;
    padding: 0 26px;
  }

  .phone-stage {
    min-height: clamp(360px, 104vw, 510px);
  }

  .phone {
    --phone-w: clamp(142px, 42vw, 200px);
    border-width: 5px;
    border-radius: 30px;
  }

  .phone--conversations {
    left: 0;
  }

  .phone--activity {
    left: 25%;
  }

  .phone--splash {
    left: 50%;
  }
}

@media (max-width: 430px) {
  .brand {
    font-size: 25px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 10px 16px;
  }

  .site-nav a {
    font-size: 14px;
  }

  .hero__copy {
    text-align: left;
  }

  .download {
    width: 100%;
  }

  .phone-stage {
    transform: translateX(-3%);
  }
}
